groove-dev 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/docs/FILE-EDITOR-PLAN.md +253 -0
  2. package/node_modules/@codemirror/autocomplete/.github/workflows/dispatch.yml +16 -0
  3. package/node_modules/@codemirror/autocomplete/CHANGELOG.md +639 -0
  4. package/node_modules/@codemirror/autocomplete/LICENSE +21 -0
  5. package/node_modules/@codemirror/autocomplete/README.md +43 -0
  6. package/node_modules/@codemirror/autocomplete/dist/index.cjs +2151 -0
  7. package/node_modules/@codemirror/autocomplete/dist/index.d.cts +648 -0
  8. package/node_modules/@codemirror/autocomplete/dist/index.d.ts +648 -0
  9. package/node_modules/@codemirror/autocomplete/dist/index.js +2120 -0
  10. package/node_modules/@codemirror/autocomplete/package.json +41 -0
  11. package/node_modules/@codemirror/commands/.github/workflows/dispatch.yml +16 -0
  12. package/node_modules/@codemirror/commands/CHANGELOG.md +386 -0
  13. package/node_modules/@codemirror/commands/LICENSE +21 -0
  14. package/node_modules/@codemirror/commands/README.md +35 -0
  15. package/node_modules/@codemirror/commands/dist/index.cjs +1909 -0
  16. package/node_modules/@codemirror/commands/dist/index.d.cts +650 -0
  17. package/node_modules/@codemirror/commands/dist/index.d.ts +650 -0
  18. package/node_modules/@codemirror/commands/dist/index.js +1795 -0
  19. package/node_modules/@codemirror/commands/package.json +42 -0
  20. package/node_modules/@codemirror/lang-css/.github/workflows/dispatch.yml +16 -0
  21. package/node_modules/@codemirror/lang-css/CHANGELOG.md +106 -0
  22. package/node_modules/@codemirror/lang-css/LICENSE +21 -0
  23. package/node_modules/@codemirror/lang-css/README.md +50 -0
  24. package/node_modules/@codemirror/lang-css/dist/index.cjs +269 -0
  25. package/node_modules/@codemirror/lang-css/dist/index.d.cts +28 -0
  26. package/node_modules/@codemirror/lang-css/dist/index.d.ts +28 -0
  27. package/node_modules/@codemirror/lang-css/dist/index.js +264 -0
  28. package/node_modules/@codemirror/lang-css/package.json +42 -0
  29. package/node_modules/@codemirror/lang-html/.github/workflows/dispatch.yml +16 -0
  30. package/node_modules/@codemirror/lang-html/CHANGELOG.md +210 -0
  31. package/node_modules/@codemirror/lang-html/LICENSE +21 -0
  32. package/node_modules/@codemirror/lang-html/README.md +147 -0
  33. package/node_modules/@codemirror/lang-html/dist/index.cjs +667 -0
  34. package/node_modules/@codemirror/lang-html/dist/index.d.cts +115 -0
  35. package/node_modules/@codemirror/lang-html/dist/index.d.ts +115 -0
  36. package/node_modules/@codemirror/lang-html/dist/index.js +661 -0
  37. package/node_modules/@codemirror/lang-html/package.json +46 -0
  38. package/node_modules/@codemirror/lang-javascript/.github/workflows/dispatch.yml +16 -0
  39. package/node_modules/@codemirror/lang-javascript/CHANGELOG.md +206 -0
  40. package/node_modules/@codemirror/lang-javascript/LICENSE +21 -0
  41. package/node_modules/@codemirror/lang-javascript/README.md +125 -0
  42. package/node_modules/@codemirror/lang-javascript/dist/index.cjs +526 -0
  43. package/node_modules/@codemirror/lang-javascript/dist/index.d.cts +93 -0
  44. package/node_modules/@codemirror/lang-javascript/dist/index.d.ts +93 -0
  45. package/node_modules/@codemirror/lang-javascript/dist/index.js +513 -0
  46. package/node_modules/@codemirror/lang-javascript/package.json +45 -0
  47. package/node_modules/@codemirror/lang-json/.github/workflows/dispatch.yml +16 -0
  48. package/node_modules/@codemirror/lang-json/CHANGELOG.md +59 -0
  49. package/node_modules/@codemirror/lang-json/LICENSE +21 -0
  50. package/node_modules/@codemirror/lang-json/README.md +56 -0
  51. package/node_modules/@codemirror/lang-json/dist/index.cjs +68 -0
  52. package/node_modules/@codemirror/lang-json/dist/index.d.cts +22 -0
  53. package/node_modules/@codemirror/lang-json/dist/index.d.ts +22 -0
  54. package/node_modules/@codemirror/lang-json/dist/index.js +64 -0
  55. package/node_modules/@codemirror/lang-json/package.json +39 -0
  56. package/node_modules/@codemirror/lang-markdown/.github/workflows/dispatch.yml +16 -0
  57. package/node_modules/@codemirror/lang-markdown/CHANGELOG.md +246 -0
  58. package/node_modules/@codemirror/lang-markdown/LICENSE +21 -0
  59. package/node_modules/@codemirror/lang-markdown/README.md +162 -0
  60. package/node_modules/@codemirror/lang-markdown/dist/index.cjs +501 -0
  61. package/node_modules/@codemirror/lang-markdown/dist/index.d.cts +124 -0
  62. package/node_modules/@codemirror/lang-markdown/dist/index.d.ts +124 -0
  63. package/node_modules/@codemirror/lang-markdown/dist/index.js +492 -0
  64. package/node_modules/@codemirror/lang-markdown/package.json +44 -0
  65. package/node_modules/@codemirror/lang-python/.github/workflows/dispatch.yml +16 -0
  66. package/node_modules/@codemirror/lang-python/CHANGELOG.md +174 -0
  67. package/node_modules/@codemirror/lang-python/LICENSE +21 -0
  68. package/node_modules/@codemirror/lang-python/README.md +61 -0
  69. package/node_modules/@codemirror/lang-python/dist/index.cjs +313 -0
  70. package/node_modules/@codemirror/lang-python/dist/index.d.cts +26 -0
  71. package/node_modules/@codemirror/lang-python/dist/index.d.ts +26 -0
  72. package/node_modules/@codemirror/lang-python/dist/index.js +308 -0
  73. package/node_modules/@codemirror/lang-python/package.json +42 -0
  74. package/node_modules/@codemirror/language/.github/workflows/dispatch.yml +16 -0
  75. package/node_modules/@codemirror/language/CHANGELOG.md +412 -0
  76. package/node_modules/@codemirror/language/LICENSE +21 -0
  77. package/node_modules/@codemirror/language/README.md +66 -0
  78. package/node_modules/@codemirror/language/dist/index.cjs +2742 -0
  79. package/node_modules/@codemirror/language/dist/index.d.cts +1220 -0
  80. package/node_modules/@codemirror/language/dist/index.d.ts +1220 -0
  81. package/node_modules/@codemirror/language/dist/index.js +2687 -0
  82. package/node_modules/@codemirror/language/package.json +44 -0
  83. package/node_modules/@codemirror/lint/.github/workflows/dispatch.yml +16 -0
  84. package/node_modules/@codemirror/lint/CHANGELOG.md +318 -0
  85. package/node_modules/@codemirror/lint/LICENSE +21 -0
  86. package/node_modules/@codemirror/lint/README.md +18 -0
  87. package/node_modules/@codemirror/lint/dist/index.cjs +958 -0
  88. package/node_modules/@codemirror/lint/dist/index.d.cts +195 -0
  89. package/node_modules/@codemirror/lint/dist/index.d.ts +195 -0
  90. package/node_modules/@codemirror/lint/dist/index.js +945 -0
  91. package/node_modules/@codemirror/lint/package.json +40 -0
  92. package/node_modules/@codemirror/search/.github/workflows/dispatch.yml +16 -0
  93. package/node_modules/@codemirror/search/CHANGELOG.md +324 -0
  94. package/node_modules/@codemirror/search/LICENSE +21 -0
  95. package/node_modules/@codemirror/search/README.md +18 -0
  96. package/node_modules/@codemirror/search/dist/index.cjs +1237 -0
  97. package/node_modules/@codemirror/search/dist/index.d.cts +385 -0
  98. package/node_modules/@codemirror/search/dist/index.d.ts +385 -0
  99. package/node_modules/@codemirror/search/dist/index.js +1217 -0
  100. package/node_modules/@codemirror/search/package.json +40 -0
  101. package/node_modules/@codemirror/state/.github/workflows/dispatch.yml +16 -0
  102. package/node_modules/@codemirror/state/CHANGELOG.md +308 -0
  103. package/node_modules/@codemirror/state/LICENSE +21 -0
  104. package/node_modules/@codemirror/state/README.md +18 -0
  105. package/node_modules/@codemirror/state/dist/index.cjs +3922 -0
  106. package/node_modules/@codemirror/state/dist/index.d.cts +1713 -0
  107. package/node_modules/@codemirror/state/dist/index.d.ts +1713 -0
  108. package/node_modules/@codemirror/state/dist/index.js +3892 -0
  109. package/node_modules/@codemirror/state/package.json +38 -0
  110. package/node_modules/@codemirror/theme-one-dark/.github/workflows/dispatch.yml +16 -0
  111. package/node_modules/@codemirror/theme-one-dark/CHANGELOG.md +97 -0
  112. package/node_modules/@codemirror/theme-one-dark/LICENSE +21 -0
  113. package/node_modules/@codemirror/theme-one-dark/README.md +46 -0
  114. package/node_modules/@codemirror/theme-one-dark/dist/index.cjs +139 -0
  115. package/node_modules/@codemirror/theme-one-dark/dist/index.d.cts +39 -0
  116. package/node_modules/@codemirror/theme-one-dark/dist/index.d.ts +39 -0
  117. package/node_modules/@codemirror/theme-one-dark/dist/index.js +134 -0
  118. package/node_modules/@codemirror/theme-one-dark/package.json +41 -0
  119. package/node_modules/@codemirror/view/.github/workflows/dispatch.yml +16 -0
  120. package/node_modules/@codemirror/view/CHANGELOG.md +2284 -0
  121. package/node_modules/@codemirror/view/LICENSE +21 -0
  122. package/node_modules/@codemirror/view/README.md +37 -0
  123. package/node_modules/@codemirror/view/dist/index.cjs +11796 -0
  124. package/node_modules/@codemirror/view/dist/index.d.cts +2389 -0
  125. package/node_modules/@codemirror/view/dist/index.d.ts +2389 -0
  126. package/node_modules/@codemirror/view/dist/index.js +11745 -0
  127. package/node_modules/@codemirror/view/package.json +41 -0
  128. package/node_modules/@groove-dev/daemon/src/api.js +157 -2
  129. package/node_modules/@groove-dev/daemon/src/filewatcher.js +59 -0
  130. package/node_modules/@groove-dev/daemon/src/index.js +28 -1
  131. package/node_modules/@groove-dev/daemon/src/skills.js +20 -0
  132. package/node_modules/@groove-dev/gui/dist/assets/index-Dxg9hdf3.js +103 -0
  133. package/node_modules/@groove-dev/gui/dist/index.html +1 -1
  134. package/node_modules/@groove-dev/gui/package.json +15 -2
  135. package/node_modules/@groove-dev/gui/src/App.jsx +3 -0
  136. package/node_modules/@groove-dev/gui/src/components/CodeEditor.jsx +143 -0
  137. package/node_modules/@groove-dev/gui/src/components/EditorTabs.jsx +83 -0
  138. package/node_modules/@groove-dev/gui/src/components/FileTree.jsx +193 -0
  139. package/node_modules/@groove-dev/gui/src/stores/groove.js +158 -1
  140. package/node_modules/@groove-dev/gui/src/views/FileEditor.jsx +142 -0
  141. package/node_modules/@groove-dev/gui/src/views/SkillsMarketplace.jsx +112 -1
  142. package/node_modules/@lezer/common/LICENSE +21 -0
  143. package/node_modules/@lezer/common/README.md +14 -0
  144. package/node_modules/@lezer/common/dist/index.cjs +2209 -0
  145. package/node_modules/@lezer/common/dist/index.d.cts +1174 -0
  146. package/node_modules/@lezer/common/dist/index.d.ts +1174 -0
  147. package/node_modules/@lezer/common/dist/index.js +2196 -0
  148. package/node_modules/@lezer/common/package.json +32 -0
  149. package/node_modules/@lezer/css/CHANGELOG.md +307 -0
  150. package/node_modules/@lezer/css/LICENSE +21 -0
  151. package/node_modules/@lezer/css/README.md +6 -0
  152. package/node_modules/@lezer/css/dist/index.cjs +151 -0
  153. package/node_modules/@lezer/css/dist/index.d.cts +3 -0
  154. package/node_modules/@lezer/css/dist/index.d.ts +3 -0
  155. package/node_modules/@lezer/css/dist/index.js +147 -0
  156. package/node_modules/@lezer/css/package.json +36 -0
  157. package/node_modules/@lezer/css/rollup.config.js +16 -0
  158. package/node_modules/@lezer/css/src/css.grammar +290 -0
  159. package/node_modules/@lezer/css/src/highlight.js +36 -0
  160. package/node_modules/@lezer/css/src/parser.js +31 -0
  161. package/node_modules/@lezer/css/src/parser.terms.js +63 -0
  162. package/node_modules/@lezer/css/src/tokens.js +75 -0
  163. package/node_modules/@lezer/css/test/declarations.txt +241 -0
  164. package/node_modules/@lezer/css/test/selector.txt +178 -0
  165. package/node_modules/@lezer/css/test/statements.txt +227 -0
  166. package/node_modules/@lezer/css/test/test-css.js +16 -0
  167. package/node_modules/@lezer/highlight/LICENSE +21 -0
  168. package/node_modules/@lezer/highlight/README.md +14 -0
  169. package/node_modules/@lezer/highlight/dist/index.cjs +936 -0
  170. package/node_modules/@lezer/highlight/dist/index.d.cts +623 -0
  171. package/node_modules/@lezer/highlight/dist/index.d.ts +623 -0
  172. package/node_modules/@lezer/highlight/dist/index.js +927 -0
  173. package/node_modules/@lezer/highlight/package.json +31 -0
  174. package/node_modules/@lezer/html/CHANGELOG.md +303 -0
  175. package/node_modules/@lezer/html/LICENSE +21 -0
  176. package/node_modules/@lezer/html/README.md +37 -0
  177. package/node_modules/@lezer/html/dist/index.cjs +354 -0
  178. package/node_modules/@lezer/html/dist/index.d.cts +14 -0
  179. package/node_modules/@lezer/html/dist/index.d.ts +14 -0
  180. package/node_modules/@lezer/html/dist/index.js +349 -0
  181. package/node_modules/@lezer/html/package.json +37 -0
  182. package/node_modules/@lezer/html/rollup.config.js +16 -0
  183. package/node_modules/@lezer/html/src/.tern-port +1 -0
  184. package/node_modules/@lezer/html/src/content.js +87 -0
  185. package/node_modules/@lezer/html/src/highlight.js +15 -0
  186. package/node_modules/@lezer/html/src/html.grammar +181 -0
  187. package/node_modules/@lezer/html/src/index.js +2 -0
  188. package/node_modules/@lezer/html/src/parser.js +27 -0
  189. package/node_modules/@lezer/html/src/parser.terms.js +53 -0
  190. package/node_modules/@lezer/html/src/tokens.js +199 -0
  191. package/node_modules/@lezer/html/test/mixed.txt +69 -0
  192. package/node_modules/@lezer/html/test/tags.txt +370 -0
  193. package/node_modules/@lezer/html/test/test-html.js +29 -0
  194. package/node_modules/@lezer/html/test/test-incremental.js +97 -0
  195. package/node_modules/@lezer/html/test/vue.txt +56 -0
  196. package/node_modules/@lezer/javascript/CHANGELOG.md +485 -0
  197. package/node_modules/@lezer/javascript/LICENSE +21 -0
  198. package/node_modules/@lezer/javascript/README.md +14 -0
  199. package/node_modules/@lezer/javascript/dist/index.cjs +196 -0
  200. package/node_modules/@lezer/javascript/dist/index.d.cts +3 -0
  201. package/node_modules/@lezer/javascript/dist/index.d.ts +3 -0
  202. package/node_modules/@lezer/javascript/dist/index.js +192 -0
  203. package/node_modules/@lezer/javascript/package.json +36 -0
  204. package/node_modules/@lezer/javascript/rollup.config.js +16 -0
  205. package/node_modules/@lezer/javascript/src/highlight.js +62 -0
  206. package/node_modules/@lezer/javascript/src/javascript.grammar +735 -0
  207. package/node_modules/@lezer/javascript/src/parser.js +33 -0
  208. package/node_modules/@lezer/javascript/src/parser.terms.js +177 -0
  209. package/node_modules/@lezer/javascript/src/tokens.js +87 -0
  210. package/node_modules/@lezer/javascript/test/decorator.txt +64 -0
  211. package/node_modules/@lezer/javascript/test/expression.txt +686 -0
  212. package/node_modules/@lezer/javascript/test/jsx.txt +79 -0
  213. package/node_modules/@lezer/javascript/test/semicolon.txt +77 -0
  214. package/node_modules/@lezer/javascript/test/statement.txt +404 -0
  215. package/node_modules/@lezer/javascript/test/test-javascript.js +17 -0
  216. package/node_modules/@lezer/javascript/test/typescript.txt +401 -0
  217. package/node_modules/@lezer/json/CHANGELOG.md +79 -0
  218. package/node_modules/@lezer/json/LICENSE +21 -0
  219. package/node_modules/@lezer/json/README.md +7 -0
  220. package/node_modules/@lezer/json/dist/index.cjs +41 -0
  221. package/node_modules/@lezer/json/dist/index.d.cts +3 -0
  222. package/node_modules/@lezer/json/dist/index.d.ts +3 -0
  223. package/node_modules/@lezer/json/dist/index.js +37 -0
  224. package/node_modules/@lezer/json/package.json +36 -0
  225. package/node_modules/@lezer/json/rollup.config.js +15 -0
  226. package/node_modules/@lezer/json/src/highlight.js +12 -0
  227. package/node_modules/@lezer/json/src/json.grammar +38 -0
  228. package/node_modules/@lezer/json/src/parser.js +23 -0
  229. package/node_modules/@lezer/json/src/parser.terms.js +12 -0
  230. package/node_modules/@lezer/json/test/arrays.txt +34 -0
  231. package/node_modules/@lezer/json/test/literals.txt +23 -0
  232. package/node_modules/@lezer/json/test/numbers.txt +87 -0
  233. package/node_modules/@lezer/json/test/objects.txt +34 -0
  234. package/node_modules/@lezer/json/test/strings.txt +50 -0
  235. package/node_modules/@lezer/json/test/test-json.js +17 -0
  236. package/node_modules/@lezer/lr/LICENSE +21 -0
  237. package/node_modules/@lezer/lr/README.md +25 -0
  238. package/node_modules/@lezer/lr/dist/constants.d.ts +45 -0
  239. package/node_modules/@lezer/lr/dist/constants.js +5 -0
  240. package/node_modules/@lezer/lr/dist/index.cjs +1891 -0
  241. package/node_modules/@lezer/lr/dist/index.d.cts +303 -0
  242. package/node_modules/@lezer/lr/dist/index.d.ts +303 -0
  243. package/node_modules/@lezer/lr/dist/index.js +1884 -0
  244. package/node_modules/@lezer/lr/package.json +32 -0
  245. package/node_modules/@lezer/markdown/CHANGELOG.md +279 -0
  246. package/node_modules/@lezer/markdown/LICENSE +21 -0
  247. package/node_modules/@lezer/markdown/README.md +725 -0
  248. package/node_modules/@lezer/markdown/bin/build-readme.cjs +39 -0
  249. package/node_modules/@lezer/markdown/build.js +16 -0
  250. package/node_modules/@lezer/markdown/dist/index.cjs +2352 -0
  251. package/node_modules/@lezer/markdown/dist/index.d.cts +600 -0
  252. package/node_modules/@lezer/markdown/dist/index.d.ts +600 -0
  253. package/node_modules/@lezer/markdown/dist/index.js +2335 -0
  254. package/node_modules/@lezer/markdown/package.json +37 -0
  255. package/node_modules/@lezer/markdown/src/README.md +83 -0
  256. package/node_modules/@lezer/markdown/src/extension.ts +301 -0
  257. package/node_modules/@lezer/markdown/src/index.ts +5 -0
  258. package/node_modules/@lezer/markdown/src/markdown.ts +1961 -0
  259. package/node_modules/@lezer/markdown/src/nest.ts +46 -0
  260. package/node_modules/@lezer/markdown/test/compare-tree.ts +14 -0
  261. package/node_modules/@lezer/markdown/test/spec.ts +79 -0
  262. package/node_modules/@lezer/markdown/test/test-extension.ts +269 -0
  263. package/node_modules/@lezer/markdown/test/test-incremental.ts +265 -0
  264. package/node_modules/@lezer/markdown/test/test-markdown.ts +3574 -0
  265. package/node_modules/@lezer/markdown/test/test-nesting.ts +86 -0
  266. package/node_modules/@lezer/markdown/test/tsconfig.json +12 -0
  267. package/node_modules/@lezer/markdown/tsconfig.json +14 -0
  268. package/node_modules/@lezer/python/CHANGELOG.md +243 -0
  269. package/node_modules/@lezer/python/LICENSE +21 -0
  270. package/node_modules/@lezer/python/README.md +6 -0
  271. package/node_modules/@lezer/python/dist/index.cjs +330 -0
  272. package/node_modules/@lezer/python/dist/index.d.cts +3 -0
  273. package/node_modules/@lezer/python/dist/index.d.ts +3 -0
  274. package/node_modules/@lezer/python/dist/index.js +326 -0
  275. package/node_modules/@lezer/python/package.json +36 -0
  276. package/node_modules/@lezer/python/rollup.config.js +16 -0
  277. package/node_modules/@lezer/python/src/highlight.js +35 -0
  278. package/node_modules/@lezer/python/src/python.grammar +381 -0
  279. package/node_modules/@lezer/python/src/tokens.js +224 -0
  280. package/node_modules/@lezer/python/test/expression.txt +231 -0
  281. package/node_modules/@lezer/python/test/statement.txt +442 -0
  282. package/node_modules/@lezer/python/test/test-incremental.js +33 -0
  283. package/node_modules/@lezer/python/test/test-python.js +17 -0
  284. package/node_modules/@marijn/find-cluster-break/LICENSE +21 -0
  285. package/node_modules/@marijn/find-cluster-break/README.md +28 -0
  286. package/node_modules/@marijn/find-cluster-break/dist/index.cjs +85 -0
  287. package/node_modules/@marijn/find-cluster-break/dist/index.d.cts +15 -0
  288. package/node_modules/@marijn/find-cluster-break/package.json +35 -0
  289. package/node_modules/@marijn/find-cluster-break/rollup.config.js +7 -0
  290. package/node_modules/@marijn/find-cluster-break/src/index.d.ts +15 -0
  291. package/node_modules/@marijn/find-cluster-break/src/index.js +87 -0
  292. package/node_modules/@marijn/find-cluster-break/test/test-cluster.js +30 -0
  293. package/node_modules/crelt/LICENSE +19 -0
  294. package/node_modules/crelt/README.md +23 -0
  295. package/node_modules/crelt/dist/index.cjs +31 -0
  296. package/node_modules/crelt/dist/index.d.cts +4 -0
  297. package/node_modules/crelt/index.d.ts +4 -0
  298. package/node_modules/crelt/index.js +28 -0
  299. package/node_modules/crelt/package.json +35 -0
  300. package/node_modules/crelt/rollup.config.js +13 -0
  301. package/node_modules/style-mod/LICENSE +19 -0
  302. package/node_modules/style-mod/README.md +98 -0
  303. package/node_modules/style-mod/dist/style-mod.cjs +165 -0
  304. package/node_modules/style-mod/dist/style-mod.d.cts +16 -0
  305. package/node_modules/style-mod/package.json +39 -0
  306. package/node_modules/style-mod/src/README.md +34 -0
  307. package/node_modules/style-mod/src/style-mod.d.ts +16 -0
  308. package/node_modules/style-mod/src/style-mod.js +172 -0
  309. package/node_modules/style-mod/test/test-style-mod.js +104 -0
  310. package/node_modules/w3c-keyname/.tern-port +1 -0
  311. package/node_modules/w3c-keyname/LICENSE +19 -0
  312. package/node_modules/w3c-keyname/README.md +18 -0
  313. package/node_modules/w3c-keyname/index.cjs +127 -0
  314. package/node_modules/w3c-keyname/index.d.cts +5 -0
  315. package/node_modules/w3c-keyname/index.d.ts +5 -0
  316. package/node_modules/w3c-keyname/index.js +119 -0
  317. package/node_modules/w3c-keyname/package.json +37 -0
  318. package/package.json +1 -1
  319. package/packages/daemon/src/api.js +157 -2
  320. package/packages/daemon/src/filewatcher.js +59 -0
  321. package/packages/daemon/src/index.js +28 -1
  322. package/packages/daemon/src/skills.js +20 -0
  323. package/packages/gui/dist/assets/index-Dxg9hdf3.js +103 -0
  324. package/packages/gui/dist/index.html +1 -1
  325. package/packages/gui/package.json +15 -2
  326. package/packages/gui/src/App.jsx +3 -0
  327. package/packages/gui/src/components/CodeEditor.jsx +143 -0
  328. package/packages/gui/src/components/EditorTabs.jsx +83 -0
  329. package/packages/gui/src/components/FileTree.jsx +193 -0
  330. package/packages/gui/src/stores/groove.js +158 -1
  331. package/packages/gui/src/views/FileEditor.jsx +142 -0
  332. package/packages/gui/src/views/SkillsMarketplace.jsx +112 -1
  333. package/node_modules/@groove-dev/gui/dist/assets/index-CNCSwHwH.js +0 -74
  334. package/packages/gui/dist/assets/index-CNCSwHwH.js +0 -74
@@ -0,0 +1,936 @@
1
+ 'use strict';
2
+
3
+ var common = require('@lezer/common');
4
+
5
+ let nextTagID = 0;
6
+ /**
7
+ Highlighting tags are markers that denote a highlighting category.
8
+ They are [associated](#highlight.styleTags) with parts of a syntax
9
+ tree by a language mode, and then mapped to an actual CSS style by
10
+ a [highlighter](#highlight.Highlighter).
11
+
12
+ Because syntax tree node types and highlight styles have to be
13
+ able to talk the same language, CodeMirror uses a mostly _closed_
14
+ [vocabulary](#highlight.tags) of syntax tags (as opposed to
15
+ traditional open string-based systems, which make it hard for
16
+ highlighting themes to cover all the tokens produced by the
17
+ various languages).
18
+
19
+ It _is_ possible to [define](#highlight.Tag^define) your own
20
+ highlighting tags for system-internal use (where you control both
21
+ the language package and the highlighter), but such tags will not
22
+ be picked up by regular highlighters (though you can derive them
23
+ from standard tags to allow highlighters to fall back to those).
24
+ */
25
+ class Tag {
26
+ /**
27
+ @internal
28
+ */
29
+ constructor(
30
+ /**
31
+ The optional name of the base tag @internal
32
+ */
33
+ name,
34
+ /**
35
+ The set of this tag and all its parent tags, starting with
36
+ this one itself and sorted in order of decreasing specificity.
37
+ */
38
+ set,
39
+ /**
40
+ The base unmodified tag that this one is based on, if it's
41
+ modified @internal
42
+ */
43
+ base,
44
+ /**
45
+ The modifiers applied to this.base @internal
46
+ */
47
+ modified) {
48
+ this.name = name;
49
+ this.set = set;
50
+ this.base = base;
51
+ this.modified = modified;
52
+ /**
53
+ @internal
54
+ */
55
+ this.id = nextTagID++;
56
+ }
57
+ toString() {
58
+ let { name } = this;
59
+ for (let mod of this.modified)
60
+ if (mod.name)
61
+ name = `${mod.name}(${name})`;
62
+ return name;
63
+ }
64
+ static define(nameOrParent, parent) {
65
+ let name = typeof nameOrParent == "string" ? nameOrParent : "?";
66
+ if (nameOrParent instanceof Tag)
67
+ parent = nameOrParent;
68
+ if (parent === null || parent === void 0 ? void 0 : parent.base)
69
+ throw new Error("Can not derive from a modified tag");
70
+ let tag = new Tag(name, [], null, []);
71
+ tag.set.push(tag);
72
+ if (parent)
73
+ for (let t of parent.set)
74
+ tag.set.push(t);
75
+ return tag;
76
+ }
77
+ /**
78
+ Define a tag _modifier_, which is a function that, given a tag,
79
+ will return a tag that is a subtag of the original. Applying the
80
+ same modifier to a twice tag will return the same value (`m1(t1)
81
+ == m1(t1)`) and applying multiple modifiers will, regardless or
82
+ order, produce the same tag (`m1(m2(t1)) == m2(m1(t1))`).
83
+
84
+ When multiple modifiers are applied to a given base tag, each
85
+ smaller set of modifiers is registered as a parent, so that for
86
+ example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,
87
+ `m1(m3(t1)`, and so on.
88
+ */
89
+ static defineModifier(name) {
90
+ let mod = new Modifier(name);
91
+ return (tag) => {
92
+ if (tag.modified.indexOf(mod) > -1)
93
+ return tag;
94
+ return Modifier.get(tag.base || tag, tag.modified.concat(mod).sort((a, b) => a.id - b.id));
95
+ };
96
+ }
97
+ }
98
+ let nextModifierID = 0;
99
+ class Modifier {
100
+ constructor(name) {
101
+ this.name = name;
102
+ this.instances = [];
103
+ this.id = nextModifierID++;
104
+ }
105
+ static get(base, mods) {
106
+ if (!mods.length)
107
+ return base;
108
+ let exists = mods[0].instances.find(t => t.base == base && sameArray(mods, t.modified));
109
+ if (exists)
110
+ return exists;
111
+ let set = [], tag = new Tag(base.name, set, base, mods);
112
+ for (let m of mods)
113
+ m.instances.push(tag);
114
+ let configs = powerSet(mods);
115
+ for (let parent of base.set)
116
+ if (!parent.modified.length)
117
+ for (let config of configs)
118
+ set.push(Modifier.get(parent, config));
119
+ return tag;
120
+ }
121
+ }
122
+ function sameArray(a, b) {
123
+ return a.length == b.length && a.every((x, i) => x == b[i]);
124
+ }
125
+ function powerSet(array) {
126
+ let sets = [[]];
127
+ for (let i = 0; i < array.length; i++) {
128
+ for (let j = 0, e = sets.length; j < e; j++) {
129
+ sets.push(sets[j].concat(array[i]));
130
+ }
131
+ }
132
+ return sets.sort((a, b) => b.length - a.length);
133
+ }
134
+ /**
135
+ This function is used to add a set of tags to a language syntax
136
+ via [`NodeSet.extend`](#common.NodeSet.extend) or
137
+ [`LRParser.configure`](#lr.LRParser.configure).
138
+
139
+ The argument object maps node selectors to [highlighting
140
+ tags](#highlight.Tag) or arrays of tags.
141
+
142
+ Node selectors may hold one or more (space-separated) node paths.
143
+ Such a path can be a [node name](#common.NodeType.name), or
144
+ multiple node names (or `*` wildcards) separated by slash
145
+ characters, as in `"Block/Declaration/VariableName"`. Such a path
146
+ matches the final node but only if its direct parent nodes are the
147
+ other nodes mentioned. A `*` in such a path matches any parent,
148
+ but only a single level—wildcards that match multiple parents
149
+ aren't supported, both for efficiency reasons and because Lezer
150
+ trees make it rather hard to reason about what they would match.)
151
+
152
+ A path can be ended with `/...` to indicate that the tag assigned
153
+ to the node should also apply to all child nodes, even if they
154
+ match their own style (by default, only the innermost style is
155
+ used).
156
+
157
+ When a path ends in `!`, as in `Attribute!`, no further matching
158
+ happens for the node's child nodes, and the entire node gets the
159
+ given style.
160
+
161
+ In this notation, node names that contain `/`, `!`, `*`, or `...`
162
+ must be quoted as JSON strings.
163
+
164
+ For example:
165
+
166
+ ```javascript
167
+ parser.configure({props: [
168
+ styleTags({
169
+ // Style Number and BigNumber nodes
170
+ "Number BigNumber": tags.number,
171
+ // Style Escape nodes whose parent is String
172
+ "String/Escape": tags.escape,
173
+ // Style anything inside Attributes nodes
174
+ "Attributes!": tags.meta,
175
+ // Add a style to all content inside Italic nodes
176
+ "Italic/...": tags.emphasis,
177
+ // Style InvalidString nodes as both `string` and `invalid`
178
+ "InvalidString": [tags.string, tags.invalid],
179
+ // Style the node named "/" as punctuation
180
+ '"/"': tags.punctuation
181
+ })
182
+ ]})
183
+ ```
184
+ */
185
+ function styleTags(spec) {
186
+ let byName = Object.create(null);
187
+ for (let prop in spec) {
188
+ let tags = spec[prop];
189
+ if (!Array.isArray(tags))
190
+ tags = [tags];
191
+ for (let part of prop.split(" "))
192
+ if (part) {
193
+ let pieces = [], mode = 2 /* Mode.Normal */, rest = part;
194
+ for (let pos = 0;;) {
195
+ if (rest == "..." && pos > 0 && pos + 3 == part.length) {
196
+ mode = 1 /* Mode.Inherit */;
197
+ break;
198
+ }
199
+ let m = /^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(rest);
200
+ if (!m)
201
+ throw new RangeError("Invalid path: " + part);
202
+ pieces.push(m[0] == "*" ? "" : m[0][0] == '"' ? JSON.parse(m[0]) : m[0]);
203
+ pos += m[0].length;
204
+ if (pos == part.length)
205
+ break;
206
+ let next = part[pos++];
207
+ if (pos == part.length && next == "!") {
208
+ mode = 0 /* Mode.Opaque */;
209
+ break;
210
+ }
211
+ if (next != "/")
212
+ throw new RangeError("Invalid path: " + part);
213
+ rest = part.slice(pos);
214
+ }
215
+ let last = pieces.length - 1, inner = pieces[last];
216
+ if (!inner)
217
+ throw new RangeError("Invalid path: " + part);
218
+ let rule = new Rule(tags, mode, last > 0 ? pieces.slice(0, last) : null);
219
+ byName[inner] = rule.sort(byName[inner]);
220
+ }
221
+ }
222
+ return ruleNodeProp.add(byName);
223
+ }
224
+ const ruleNodeProp = new common.NodeProp({
225
+ combine(a, b) {
226
+ let cur, root, take;
227
+ while (a || b) {
228
+ if (!a || b && a.depth >= b.depth) {
229
+ take = b;
230
+ b = b.next;
231
+ }
232
+ else {
233
+ take = a;
234
+ a = a.next;
235
+ }
236
+ if (cur && cur.mode == take.mode && !take.context && !cur.context)
237
+ continue;
238
+ let copy = new Rule(take.tags, take.mode, take.context);
239
+ if (cur)
240
+ cur.next = copy;
241
+ else
242
+ root = copy;
243
+ cur = copy;
244
+ }
245
+ return root;
246
+ }
247
+ });
248
+ class Rule {
249
+ constructor(tags, mode, context, next) {
250
+ this.tags = tags;
251
+ this.mode = mode;
252
+ this.context = context;
253
+ this.next = next;
254
+ }
255
+ get opaque() { return this.mode == 0 /* Mode.Opaque */; }
256
+ get inherit() { return this.mode == 1 /* Mode.Inherit */; }
257
+ sort(other) {
258
+ if (!other || other.depth < this.depth) {
259
+ this.next = other;
260
+ return this;
261
+ }
262
+ other.next = this.sort(other.next);
263
+ return other;
264
+ }
265
+ get depth() { return this.context ? this.context.length : 0; }
266
+ }
267
+ Rule.empty = new Rule([], 2 /* Mode.Normal */, null);
268
+ /**
269
+ Define a [highlighter](#highlight.Highlighter) from an array of
270
+ tag/class pairs. Classes associated with more specific tags will
271
+ take precedence.
272
+ */
273
+ function tagHighlighter(tags, options) {
274
+ let map = Object.create(null);
275
+ for (let style of tags) {
276
+ if (!Array.isArray(style.tag))
277
+ map[style.tag.id] = style.class;
278
+ else
279
+ for (let tag of style.tag)
280
+ map[tag.id] = style.class;
281
+ }
282
+ let { scope, all = null } = options || {};
283
+ return {
284
+ style: (tags) => {
285
+ let cls = all;
286
+ for (let tag of tags) {
287
+ for (let sub of tag.set) {
288
+ let tagClass = map[sub.id];
289
+ if (tagClass) {
290
+ cls = cls ? cls + " " + tagClass : tagClass;
291
+ break;
292
+ }
293
+ }
294
+ }
295
+ return cls;
296
+ },
297
+ scope
298
+ };
299
+ }
300
+ function highlightTags(highlighters, tags) {
301
+ let result = null;
302
+ for (let highlighter of highlighters) {
303
+ let value = highlighter.style(tags);
304
+ if (value)
305
+ result = result ? result + " " + value : value;
306
+ }
307
+ return result;
308
+ }
309
+ /**
310
+ Highlight the given [tree](#common.Tree) with the given
311
+ [highlighter](#highlight.Highlighter). Often, the higher-level
312
+ [`highlightCode`](#highlight.highlightCode) function is easier to
313
+ use.
314
+ */
315
+ function highlightTree(tree, highlighter,
316
+ /**
317
+ Assign styling to a region of the text. Will be called, in order
318
+ of position, for any ranges where more than zero classes apply.
319
+ `classes` is a space separated string of CSS classes.
320
+ */
321
+ putStyle,
322
+ /**
323
+ The start of the range to highlight.
324
+ */
325
+ from = 0,
326
+ /**
327
+ The end of the range.
328
+ */
329
+ to = tree.length) {
330
+ let builder = new HighlightBuilder(from, Array.isArray(highlighter) ? highlighter : [highlighter], putStyle);
331
+ builder.highlightRange(tree.cursor(), from, to, "", builder.highlighters);
332
+ builder.flush(to);
333
+ }
334
+ /**
335
+ Highlight the given tree with the given highlighter, calling
336
+ `putText` for every piece of text, either with a set of classes or
337
+ with the empty string when unstyled, and `putBreak` for every line
338
+ break.
339
+ */
340
+ function highlightCode(code, tree, highlighter, putText, putBreak, from = 0, to = code.length) {
341
+ let pos = from;
342
+ function writeTo(p, classes) {
343
+ if (p <= pos)
344
+ return;
345
+ for (let text = code.slice(pos, p), i = 0;;) {
346
+ let nextBreak = text.indexOf("\n", i);
347
+ let upto = nextBreak < 0 ? text.length : nextBreak;
348
+ if (upto > i)
349
+ putText(text.slice(i, upto), classes);
350
+ if (nextBreak < 0)
351
+ break;
352
+ putBreak();
353
+ i = nextBreak + 1;
354
+ }
355
+ pos = p;
356
+ }
357
+ highlightTree(tree, highlighter, (from, to, classes) => {
358
+ writeTo(from, "");
359
+ writeTo(to, classes);
360
+ }, from, to);
361
+ writeTo(to, "");
362
+ }
363
+ class HighlightBuilder {
364
+ constructor(at, highlighters, span) {
365
+ this.at = at;
366
+ this.highlighters = highlighters;
367
+ this.span = span;
368
+ this.class = "";
369
+ }
370
+ startSpan(at, cls) {
371
+ if (cls != this.class) {
372
+ this.flush(at);
373
+ if (at > this.at)
374
+ this.at = at;
375
+ this.class = cls;
376
+ }
377
+ }
378
+ flush(to) {
379
+ if (to > this.at && this.class)
380
+ this.span(this.at, to, this.class);
381
+ }
382
+ highlightRange(cursor, from, to, inheritedClass, highlighters) {
383
+ let { type, from: start, to: end } = cursor;
384
+ if (start >= to || end <= from)
385
+ return;
386
+ if (type.isTop)
387
+ highlighters = this.highlighters.filter(h => !h.scope || h.scope(type));
388
+ let cls = inheritedClass;
389
+ let rule = getStyleTags(cursor) || Rule.empty;
390
+ let tagCls = highlightTags(highlighters, rule.tags);
391
+ if (tagCls) {
392
+ if (cls)
393
+ cls += " ";
394
+ cls += tagCls;
395
+ if (rule.mode == 1 /* Mode.Inherit */)
396
+ inheritedClass += (inheritedClass ? " " : "") + tagCls;
397
+ }
398
+ this.startSpan(Math.max(from, start), cls);
399
+ if (rule.opaque)
400
+ return;
401
+ let mounted = cursor.tree && cursor.tree.prop(common.NodeProp.mounted);
402
+ if (mounted && mounted.overlay) {
403
+ let inner = cursor.node.enter(mounted.overlay[0].from + start, 1);
404
+ let innerHighlighters = this.highlighters.filter(h => !h.scope || h.scope(mounted.tree.type));
405
+ let hasChild = cursor.firstChild();
406
+ for (let i = 0, pos = start;; i++) {
407
+ let next = i < mounted.overlay.length ? mounted.overlay[i] : null;
408
+ let nextPos = next ? next.from + start : end;
409
+ let rangeFrom = Math.max(from, pos), rangeTo = Math.min(to, nextPos);
410
+ if (rangeFrom < rangeTo && hasChild) {
411
+ while (cursor.from < rangeTo) {
412
+ this.highlightRange(cursor, rangeFrom, rangeTo, inheritedClass, highlighters);
413
+ this.startSpan(Math.min(rangeTo, cursor.to), cls);
414
+ if (cursor.to >= nextPos || !cursor.nextSibling())
415
+ break;
416
+ }
417
+ }
418
+ if (!next || nextPos > to)
419
+ break;
420
+ pos = next.to + start;
421
+ if (pos > from) {
422
+ this.highlightRange(inner.cursor(), Math.max(from, next.from + start), Math.min(to, pos), "", innerHighlighters);
423
+ this.startSpan(Math.min(to, pos), cls);
424
+ }
425
+ }
426
+ if (hasChild)
427
+ cursor.parent();
428
+ }
429
+ else if (cursor.firstChild()) {
430
+ if (mounted)
431
+ inheritedClass = "";
432
+ do {
433
+ if (cursor.to <= from)
434
+ continue;
435
+ if (cursor.from >= to)
436
+ break;
437
+ this.highlightRange(cursor, from, to, inheritedClass, highlighters);
438
+ this.startSpan(Math.min(to, cursor.to), cls);
439
+ } while (cursor.nextSibling());
440
+ cursor.parent();
441
+ }
442
+ }
443
+ }
444
+ /**
445
+ Match a syntax node's [highlight rules](#highlight.styleTags). If
446
+ there's a match, return its set of tags, and whether it is
447
+ opaque (uses a `!`) or applies to all child nodes (`/...`).
448
+ */
449
+ function getStyleTags(node) {
450
+ let rule = node.type.prop(ruleNodeProp);
451
+ while (rule && rule.context && !node.matchContext(rule.context))
452
+ rule = rule.next;
453
+ return rule || null;
454
+ }
455
+ const t = Tag.define;
456
+ const comment = t(), name = t(), typeName = t(name), propertyName = t(name), literal = t(), string = t(literal), number = t(literal), content = t(), heading = t(content), keyword = t(), operator = t(), punctuation = t(), bracket = t(punctuation), meta = t();
457
+ /**
458
+ The default set of highlighting [tags](#highlight.Tag).
459
+
460
+ This collection is heavily biased towards programming languages,
461
+ and necessarily incomplete. A full ontology of syntactic
462
+ constructs would fill a stack of books, and be impractical to
463
+ write themes for. So try to make do with this set. If all else
464
+ fails, [open an
465
+ issue](https://github.com/codemirror/codemirror.next) to propose a
466
+ new tag, or [define](#highlight.Tag^define) a local custom tag for
467
+ your use case.
468
+
469
+ Note that it is not obligatory to always attach the most specific
470
+ tag possible to an element—if your grammar can't easily
471
+ distinguish a certain type of element (such as a local variable),
472
+ it is okay to style it as its more general variant (a variable).
473
+
474
+ For tags that extend some parent tag, the documentation links to
475
+ the parent.
476
+ */
477
+ const tags = {
478
+ /**
479
+ A comment.
480
+ */
481
+ comment,
482
+ /**
483
+ A line [comment](#highlight.tags.comment).
484
+ */
485
+ lineComment: t(comment),
486
+ /**
487
+ A block [comment](#highlight.tags.comment).
488
+ */
489
+ blockComment: t(comment),
490
+ /**
491
+ A documentation [comment](#highlight.tags.comment).
492
+ */
493
+ docComment: t(comment),
494
+ /**
495
+ Any kind of identifier.
496
+ */
497
+ name,
498
+ /**
499
+ The [name](#highlight.tags.name) of a variable.
500
+ */
501
+ variableName: t(name),
502
+ /**
503
+ A type [name](#highlight.tags.name).
504
+ */
505
+ typeName: typeName,
506
+ /**
507
+ A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
508
+ */
509
+ tagName: t(typeName),
510
+ /**
511
+ A property or field [name](#highlight.tags.name).
512
+ */
513
+ propertyName: propertyName,
514
+ /**
515
+ An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
516
+ */
517
+ attributeName: t(propertyName),
518
+ /**
519
+ The [name](#highlight.tags.name) of a class.
520
+ */
521
+ className: t(name),
522
+ /**
523
+ A label [name](#highlight.tags.name).
524
+ */
525
+ labelName: t(name),
526
+ /**
527
+ A namespace [name](#highlight.tags.name).
528
+ */
529
+ namespace: t(name),
530
+ /**
531
+ The [name](#highlight.tags.name) of a macro.
532
+ */
533
+ macroName: t(name),
534
+ /**
535
+ A literal value.
536
+ */
537
+ literal,
538
+ /**
539
+ A string [literal](#highlight.tags.literal).
540
+ */
541
+ string,
542
+ /**
543
+ A documentation [string](#highlight.tags.string).
544
+ */
545
+ docString: t(string),
546
+ /**
547
+ A character literal (subtag of [string](#highlight.tags.string)).
548
+ */
549
+ character: t(string),
550
+ /**
551
+ An attribute value (subtag of [string](#highlight.tags.string)).
552
+ */
553
+ attributeValue: t(string),
554
+ /**
555
+ A number [literal](#highlight.tags.literal).
556
+ */
557
+ number,
558
+ /**
559
+ An integer [number](#highlight.tags.number) literal.
560
+ */
561
+ integer: t(number),
562
+ /**
563
+ A floating-point [number](#highlight.tags.number) literal.
564
+ */
565
+ float: t(number),
566
+ /**
567
+ A boolean [literal](#highlight.tags.literal).
568
+ */
569
+ bool: t(literal),
570
+ /**
571
+ Regular expression [literal](#highlight.tags.literal).
572
+ */
573
+ regexp: t(literal),
574
+ /**
575
+ An escape [literal](#highlight.tags.literal), for example a
576
+ backslash escape in a string.
577
+ */
578
+ escape: t(literal),
579
+ /**
580
+ A color [literal](#highlight.tags.literal).
581
+ */
582
+ color: t(literal),
583
+ /**
584
+ A URL [literal](#highlight.tags.literal).
585
+ */
586
+ url: t(literal),
587
+ /**
588
+ A language keyword.
589
+ */
590
+ keyword,
591
+ /**
592
+ The [keyword](#highlight.tags.keyword) for the self or this
593
+ object.
594
+ */
595
+ self: t(keyword),
596
+ /**
597
+ The [keyword](#highlight.tags.keyword) for null.
598
+ */
599
+ null: t(keyword),
600
+ /**
601
+ A [keyword](#highlight.tags.keyword) denoting some atomic value.
602
+ */
603
+ atom: t(keyword),
604
+ /**
605
+ A [keyword](#highlight.tags.keyword) that represents a unit.
606
+ */
607
+ unit: t(keyword),
608
+ /**
609
+ A modifier [keyword](#highlight.tags.keyword).
610
+ */
611
+ modifier: t(keyword),
612
+ /**
613
+ A [keyword](#highlight.tags.keyword) that acts as an operator.
614
+ */
615
+ operatorKeyword: t(keyword),
616
+ /**
617
+ A control-flow related [keyword](#highlight.tags.keyword).
618
+ */
619
+ controlKeyword: t(keyword),
620
+ /**
621
+ A [keyword](#highlight.tags.keyword) that defines something.
622
+ */
623
+ definitionKeyword: t(keyword),
624
+ /**
625
+ A [keyword](#highlight.tags.keyword) related to defining or
626
+ interfacing with modules.
627
+ */
628
+ moduleKeyword: t(keyword),
629
+ /**
630
+ An operator.
631
+ */
632
+ operator,
633
+ /**
634
+ An [operator](#highlight.tags.operator) that dereferences something.
635
+ */
636
+ derefOperator: t(operator),
637
+ /**
638
+ Arithmetic-related [operator](#highlight.tags.operator).
639
+ */
640
+ arithmeticOperator: t(operator),
641
+ /**
642
+ Logical [operator](#highlight.tags.operator).
643
+ */
644
+ logicOperator: t(operator),
645
+ /**
646
+ Bit [operator](#highlight.tags.operator).
647
+ */
648
+ bitwiseOperator: t(operator),
649
+ /**
650
+ Comparison [operator](#highlight.tags.operator).
651
+ */
652
+ compareOperator: t(operator),
653
+ /**
654
+ [Operator](#highlight.tags.operator) that updates its operand.
655
+ */
656
+ updateOperator: t(operator),
657
+ /**
658
+ [Operator](#highlight.tags.operator) that defines something.
659
+ */
660
+ definitionOperator: t(operator),
661
+ /**
662
+ Type-related [operator](#highlight.tags.operator).
663
+ */
664
+ typeOperator: t(operator),
665
+ /**
666
+ Control-flow [operator](#highlight.tags.operator).
667
+ */
668
+ controlOperator: t(operator),
669
+ /**
670
+ Program or markup punctuation.
671
+ */
672
+ punctuation,
673
+ /**
674
+ [Punctuation](#highlight.tags.punctuation) that separates
675
+ things.
676
+ */
677
+ separator: t(punctuation),
678
+ /**
679
+ Bracket-style [punctuation](#highlight.tags.punctuation).
680
+ */
681
+ bracket,
682
+ /**
683
+ Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
684
+ tokens).
685
+ */
686
+ angleBracket: t(bracket),
687
+ /**
688
+ Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
689
+ tokens).
690
+ */
691
+ squareBracket: t(bracket),
692
+ /**
693
+ Parentheses (usually `(` and `)` tokens). Subtag of
694
+ [bracket](#highlight.tags.bracket).
695
+ */
696
+ paren: t(bracket),
697
+ /**
698
+ Braces (usually `{` and `}` tokens). Subtag of
699
+ [bracket](#highlight.tags.bracket).
700
+ */
701
+ brace: t(bracket),
702
+ /**
703
+ Content, for example plain text in XML or markup documents.
704
+ */
705
+ content,
706
+ /**
707
+ [Content](#highlight.tags.content) that represents a heading.
708
+ */
709
+ heading,
710
+ /**
711
+ A level 1 [heading](#highlight.tags.heading).
712
+ */
713
+ heading1: t(heading),
714
+ /**
715
+ A level 2 [heading](#highlight.tags.heading).
716
+ */
717
+ heading2: t(heading),
718
+ /**
719
+ A level 3 [heading](#highlight.tags.heading).
720
+ */
721
+ heading3: t(heading),
722
+ /**
723
+ A level 4 [heading](#highlight.tags.heading).
724
+ */
725
+ heading4: t(heading),
726
+ /**
727
+ A level 5 [heading](#highlight.tags.heading).
728
+ */
729
+ heading5: t(heading),
730
+ /**
731
+ A level 6 [heading](#highlight.tags.heading).
732
+ */
733
+ heading6: t(heading),
734
+ /**
735
+ A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
736
+ */
737
+ contentSeparator: t(content),
738
+ /**
739
+ [Content](#highlight.tags.content) that represents a list.
740
+ */
741
+ list: t(content),
742
+ /**
743
+ [Content](#highlight.tags.content) that represents a quote.
744
+ */
745
+ quote: t(content),
746
+ /**
747
+ [Content](#highlight.tags.content) that is emphasized.
748
+ */
749
+ emphasis: t(content),
750
+ /**
751
+ [Content](#highlight.tags.content) that is styled strong.
752
+ */
753
+ strong: t(content),
754
+ /**
755
+ [Content](#highlight.tags.content) that is part of a link.
756
+ */
757
+ link: t(content),
758
+ /**
759
+ [Content](#highlight.tags.content) that is styled as code or
760
+ monospace.
761
+ */
762
+ monospace: t(content),
763
+ /**
764
+ [Content](#highlight.tags.content) that has a strike-through
765
+ style.
766
+ */
767
+ strikethrough: t(content),
768
+ /**
769
+ Inserted text in a change-tracking format.
770
+ */
771
+ inserted: t(),
772
+ /**
773
+ Deleted text.
774
+ */
775
+ deleted: t(),
776
+ /**
777
+ Changed text.
778
+ */
779
+ changed: t(),
780
+ /**
781
+ An invalid or unsyntactic element.
782
+ */
783
+ invalid: t(),
784
+ /**
785
+ Metadata or meta-instruction.
786
+ */
787
+ meta,
788
+ /**
789
+ [Metadata](#highlight.tags.meta) that applies to the entire
790
+ document.
791
+ */
792
+ documentMeta: t(meta),
793
+ /**
794
+ [Metadata](#highlight.tags.meta) that annotates or adds
795
+ attributes to a given syntactic element.
796
+ */
797
+ annotation: t(meta),
798
+ /**
799
+ Processing instruction or preprocessor directive. Subtag of
800
+ [meta](#highlight.tags.meta).
801
+ */
802
+ processingInstruction: t(meta),
803
+ /**
804
+ [Modifier](#highlight.Tag^defineModifier) that indicates that a
805
+ given element is being defined. Expected to be used with the
806
+ various [name](#highlight.tags.name) tags.
807
+ */
808
+ definition: Tag.defineModifier("definition"),
809
+ /**
810
+ [Modifier](#highlight.Tag^defineModifier) that indicates that
811
+ something is constant. Mostly expected to be used with
812
+ [variable names](#highlight.tags.variableName).
813
+ */
814
+ constant: Tag.defineModifier("constant"),
815
+ /**
816
+ [Modifier](#highlight.Tag^defineModifier) used to indicate that
817
+ a [variable](#highlight.tags.variableName) or [property
818
+ name](#highlight.tags.propertyName) is being called or defined
819
+ as a function.
820
+ */
821
+ function: Tag.defineModifier("function"),
822
+ /**
823
+ [Modifier](#highlight.Tag^defineModifier) that can be applied to
824
+ [names](#highlight.tags.name) to indicate that they belong to
825
+ the language's standard environment.
826
+ */
827
+ standard: Tag.defineModifier("standard"),
828
+ /**
829
+ [Modifier](#highlight.Tag^defineModifier) that indicates a given
830
+ [names](#highlight.tags.name) is local to some scope.
831
+ */
832
+ local: Tag.defineModifier("local"),
833
+ /**
834
+ A generic variant [modifier](#highlight.Tag^defineModifier) that
835
+ can be used to tag language-specific alternative variants of
836
+ some common tag. It is recommended for themes to define special
837
+ forms of at least the [string](#highlight.tags.string) and
838
+ [variable name](#highlight.tags.variableName) tags, since those
839
+ come up a lot.
840
+ */
841
+ special: Tag.defineModifier("special")
842
+ };
843
+ for (let name in tags) {
844
+ let val = tags[name];
845
+ if (val instanceof Tag)
846
+ val.name = name;
847
+ }
848
+ /**
849
+ This is a highlighter that adds stable, predictable classes to
850
+ tokens, for styling with external CSS.
851
+
852
+ The following tags are mapped to their name prefixed with `"tok-"`
853
+ (for example `"tok-comment"`):
854
+
855
+ * [`link`](#highlight.tags.link)
856
+ * [`heading`](#highlight.tags.heading)
857
+ * [`emphasis`](#highlight.tags.emphasis)
858
+ * [`strong`](#highlight.tags.strong)
859
+ * [`keyword`](#highlight.tags.keyword)
860
+ * [`atom`](#highlight.tags.atom)
861
+ * [`bool`](#highlight.tags.bool)
862
+ * [`url`](#highlight.tags.url)
863
+ * [`labelName`](#highlight.tags.labelName)
864
+ * [`inserted`](#highlight.tags.inserted)
865
+ * [`deleted`](#highlight.tags.deleted)
866
+ * [`literal`](#highlight.tags.literal)
867
+ * [`string`](#highlight.tags.string)
868
+ * [`number`](#highlight.tags.number)
869
+ * [`variableName`](#highlight.tags.variableName)
870
+ * [`typeName`](#highlight.tags.typeName)
871
+ * [`namespace`](#highlight.tags.namespace)
872
+ * [`className`](#highlight.tags.className)
873
+ * [`macroName`](#highlight.tags.macroName)
874
+ * [`propertyName`](#highlight.tags.propertyName)
875
+ * [`operator`](#highlight.tags.operator)
876
+ * [`comment`](#highlight.tags.comment)
877
+ * [`meta`](#highlight.tags.meta)
878
+ * [`punctuation`](#highlight.tags.punctuation)
879
+ * [`invalid`](#highlight.tags.invalid)
880
+
881
+ In addition, these mappings are provided:
882
+
883
+ * [`regexp`](#highlight.tags.regexp),
884
+ [`escape`](#highlight.tags.escape), and
885
+ [`special`](#highlight.tags.special)[`(string)`](#highlight.tags.string)
886
+ are mapped to `"tok-string2"`
887
+ * [`special`](#highlight.tags.special)[`(variableName)`](#highlight.tags.variableName)
888
+ to `"tok-variableName2"`
889
+ * [`local`](#highlight.tags.local)[`(variableName)`](#highlight.tags.variableName)
890
+ to `"tok-variableName tok-local"`
891
+ * [`definition`](#highlight.tags.definition)[`(variableName)`](#highlight.tags.variableName)
892
+ to `"tok-variableName tok-definition"`
893
+ * [`definition`](#highlight.tags.definition)[`(propertyName)`](#highlight.tags.propertyName)
894
+ to `"tok-propertyName tok-definition"`
895
+ */
896
+ const classHighlighter = tagHighlighter([
897
+ { tag: tags.link, class: "tok-link" },
898
+ { tag: tags.heading, class: "tok-heading" },
899
+ { tag: tags.emphasis, class: "tok-emphasis" },
900
+ { tag: tags.strong, class: "tok-strong" },
901
+ { tag: tags.keyword, class: "tok-keyword" },
902
+ { tag: tags.atom, class: "tok-atom" },
903
+ { tag: tags.bool, class: "tok-bool" },
904
+ { tag: tags.url, class: "tok-url" },
905
+ { tag: tags.labelName, class: "tok-labelName" },
906
+ { tag: tags.inserted, class: "tok-inserted" },
907
+ { tag: tags.deleted, class: "tok-deleted" },
908
+ { tag: tags.literal, class: "tok-literal" },
909
+ { tag: tags.string, class: "tok-string" },
910
+ { tag: tags.number, class: "tok-number" },
911
+ { tag: [tags.regexp, tags.escape, tags.special(tags.string)], class: "tok-string2" },
912
+ { tag: tags.variableName, class: "tok-variableName" },
913
+ { tag: tags.local(tags.variableName), class: "tok-variableName tok-local" },
914
+ { tag: tags.definition(tags.variableName), class: "tok-variableName tok-definition" },
915
+ { tag: tags.special(tags.variableName), class: "tok-variableName2" },
916
+ { tag: tags.definition(tags.propertyName), class: "tok-propertyName tok-definition" },
917
+ { tag: tags.typeName, class: "tok-typeName" },
918
+ { tag: tags.namespace, class: "tok-namespace" },
919
+ { tag: tags.className, class: "tok-className" },
920
+ { tag: tags.macroName, class: "tok-macroName" },
921
+ { tag: tags.propertyName, class: "tok-propertyName" },
922
+ { tag: tags.operator, class: "tok-operator" },
923
+ { tag: tags.comment, class: "tok-comment" },
924
+ { tag: tags.meta, class: "tok-meta" },
925
+ { tag: tags.invalid, class: "tok-invalid" },
926
+ { tag: tags.punctuation, class: "tok-punctuation" }
927
+ ]);
928
+
929
+ exports.Tag = Tag;
930
+ exports.classHighlighter = classHighlighter;
931
+ exports.getStyleTags = getStyleTags;
932
+ exports.highlightCode = highlightCode;
933
+ exports.highlightTree = highlightTree;
934
+ exports.styleTags = styleTags;
935
+ exports.tagHighlighter = tagHighlighter;
936
+ exports.tags = tags;