taskchef 8.6.2 → 8.7.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 (630) hide show
  1. package/.codex-plugin/plugin.json +1 -1
  2. package/README.md +8 -4
  3. package/assets/README.md +19 -0
  4. package/assets/taskchef-app-rounded.png +0 -0
  5. package/assets/taskchef-avatar-square.png +0 -0
  6. package/assets/taskchef-avatar-square.svg +8 -0
  7. package/assets/taskchef-sidebar-dark.svg +6 -0
  8. package/assets/taskchef-sidebar-light.svg +6 -0
  9. package/assets/taskchef-sidebar.svg +6 -0
  10. package/docs/advanced-guide.md +20 -29
  11. package/docs/dashboard-ui.md +15 -0
  12. package/docs/diagrams/taskchef-next-reply-lookup.drawio +38 -0
  13. package/docs/diagrams/taskchef-next-reply-lookup.drawio.png +0 -0
  14. package/docs/diagrams/taskchef-next-storage.drawio +41 -0
  15. package/docs/diagrams/taskchef-next-storage.drawio.png +0 -0
  16. package/docs/images/taskchef-pr-icon-comparison.jpg +0 -0
  17. package/docs/images/taskchef-unified-status-popup.jpg +0 -0
  18. package/docs/mcp-app.md +261 -6
  19. package/docs/spec.md +24 -69
  20. package/docs/taskchef-next-github.md +206 -0
  21. package/docs/taskchef-next-status-research.md +102 -0
  22. package/docs/taskchef-next-storage.md +167 -0
  23. package/docs/workflows.md +4 -2
  24. package/node_modules/@napi-rs/keyring/LICENSE +21 -0
  25. package/node_modules/@napi-rs/keyring/README.md +45 -0
  26. package/node_modules/@napi-rs/keyring/index.d.ts +232 -0
  27. package/node_modules/@napi-rs/keyring/index.js +706 -0
  28. package/node_modules/@napi-rs/keyring/keytar.d.ts +53 -0
  29. package/node_modules/@napi-rs/keyring/keytar.js +26 -0
  30. package/node_modules/@napi-rs/keyring/package.json +126 -0
  31. package/node_modules/@napi-rs/keyring-darwin-arm64/README.md +3 -0
  32. package/node_modules/@napi-rs/keyring-darwin-arm64/keyring.darwin-arm64.node +0 -0
  33. package/node_modules/@napi-rs/keyring-darwin-arm64/package.json +32 -0
  34. package/node_modules/@napi-rs/keyring-darwin-x64/README.md +3 -0
  35. package/node_modules/@napi-rs/keyring-darwin-x64/keyring.darwin-x64.node +0 -0
  36. package/node_modules/@napi-rs/keyring-darwin-x64/package.json +32 -0
  37. package/node_modules/@napi-rs/keyring-linux-arm64-gnu/README.md +3 -0
  38. package/node_modules/@napi-rs/keyring-linux-arm64-gnu/keyring.linux-arm64-gnu.node +0 -0
  39. package/node_modules/@napi-rs/keyring-linux-arm64-gnu/package.json +35 -0
  40. package/node_modules/@napi-rs/keyring-linux-arm64-musl/README.md +3 -0
  41. package/node_modules/@napi-rs/keyring-linux-arm64-musl/keyring.linux-arm64-musl.node +0 -0
  42. package/node_modules/@napi-rs/keyring-linux-arm64-musl/package.json +35 -0
  43. package/node_modules/@napi-rs/keyring-linux-x64-gnu/README.md +3 -0
  44. package/node_modules/@napi-rs/keyring-linux-x64-gnu/keyring.linux-x64-gnu.node +0 -0
  45. package/node_modules/@napi-rs/keyring-linux-x64-gnu/package.json +35 -0
  46. package/node_modules/@napi-rs/keyring-linux-x64-musl/README.md +3 -0
  47. package/node_modules/@napi-rs/keyring-linux-x64-musl/keyring.linux-x64-musl.node +0 -0
  48. package/node_modules/@napi-rs/keyring-linux-x64-musl/package.json +35 -0
  49. package/node_modules/@napi-rs/keyring-win32-arm64-msvc/README.md +3 -0
  50. package/node_modules/@napi-rs/keyring-win32-arm64-msvc/keyring.win32-arm64-msvc.node +0 -0
  51. package/node_modules/@napi-rs/keyring-win32-arm64-msvc/package.json +32 -0
  52. package/node_modules/@napi-rs/keyring-win32-x64-msvc/README.md +3 -0
  53. package/node_modules/@napi-rs/keyring-win32-x64-msvc/keyring.win32-x64-msvc.node +0 -0
  54. package/node_modules/@napi-rs/keyring-win32-x64-msvc/package.json +32 -0
  55. package/node_modules/@types/debug/LICENSE +21 -0
  56. package/node_modules/@types/debug/README.md +69 -0
  57. package/node_modules/@types/debug/index.d.ts +50 -0
  58. package/node_modules/@types/debug/package.json +58 -0
  59. package/node_modules/@types/mdast/LICENSE +21 -0
  60. package/node_modules/@types/mdast/README.md +15 -0
  61. package/node_modules/@types/mdast/index.d.ts +1123 -0
  62. package/node_modules/@types/mdast/package.json +47 -0
  63. package/node_modules/@types/ms/LICENSE +21 -0
  64. package/node_modules/@types/ms/README.md +82 -0
  65. package/node_modules/@types/ms/index.d.ts +63 -0
  66. package/node_modules/@types/ms/package.json +26 -0
  67. package/node_modules/@types/unist/LICENSE +21 -0
  68. package/node_modules/@types/unist/README.md +15 -0
  69. package/node_modules/@types/unist/index.d.ts +119 -0
  70. package/node_modules/@types/unist/package.json +60 -0
  71. package/node_modules/character-entities/index.d.ts +6 -0
  72. package/node_modules/character-entities/index.js +2132 -0
  73. package/node_modules/character-entities/license +22 -0
  74. package/node_modules/character-entities/package.json +78 -0
  75. package/node_modules/character-entities/readme.md +152 -0
  76. package/node_modules/decode-named-character-reference/index.d.ts +13 -0
  77. package/node_modules/decode-named-character-reference/index.d.ts.map +1 -0
  78. package/node_modules/decode-named-character-reference/index.dom.d.ts +6 -0
  79. package/node_modules/decode-named-character-reference/index.dom.d.ts.map +1 -0
  80. package/node_modules/decode-named-character-reference/index.dom.js +32 -0
  81. package/node_modules/decode-named-character-reference/index.js +19 -0
  82. package/node_modules/decode-named-character-reference/license +22 -0
  83. package/node_modules/decode-named-character-reference/package.json +90 -0
  84. package/node_modules/decode-named-character-reference/readme.md +136 -0
  85. package/node_modules/dequal/dist/index.js +86 -0
  86. package/node_modules/dequal/dist/index.min.js +1 -0
  87. package/node_modules/dequal/dist/index.mjs +84 -0
  88. package/node_modules/dequal/index.d.ts +1 -0
  89. package/node_modules/dequal/license +21 -0
  90. package/node_modules/dequal/lite/index.d.ts +1 -0
  91. package/node_modules/dequal/lite/index.js +31 -0
  92. package/node_modules/dequal/lite/index.min.js +1 -0
  93. package/node_modules/dequal/lite/index.mjs +29 -0
  94. package/node_modules/dequal/package.json +57 -0
  95. package/node_modules/dequal/readme.md +112 -0
  96. package/node_modules/devlop/lib/default.js +9 -0
  97. package/node_modules/devlop/lib/development.d.ts +84 -0
  98. package/node_modules/devlop/lib/development.js +238 -0
  99. package/node_modules/devlop/license +22 -0
  100. package/node_modules/devlop/package.json +80 -0
  101. package/node_modules/devlop/readme.md +360 -0
  102. package/node_modules/mdast-util-from-markdown/dev/index.d.ts +23 -0
  103. package/node_modules/mdast-util-from-markdown/dev/index.js +2 -0
  104. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +53 -0
  105. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +1 -0
  106. package/node_modules/mdast-util-from-markdown/dev/lib/index.js +1348 -0
  107. package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +295 -0
  108. package/node_modules/mdast-util-from-markdown/dev/lib/types.js +2 -0
  109. package/node_modules/mdast-util-from-markdown/index.d.ts +23 -0
  110. package/node_modules/mdast-util-from-markdown/index.js +2 -0
  111. package/node_modules/mdast-util-from-markdown/lib/index.d.ts +53 -0
  112. package/node_modules/mdast-util-from-markdown/lib/index.js +1177 -0
  113. package/node_modules/mdast-util-from-markdown/lib/types.d.ts +295 -0
  114. package/node_modules/mdast-util-from-markdown/lib/types.js +2 -0
  115. package/node_modules/mdast-util-from-markdown/license +22 -0
  116. package/node_modules/mdast-util-from-markdown/package.json +139 -0
  117. package/node_modules/mdast-util-from-markdown/readme.md +537 -0
  118. package/node_modules/mdast-util-to-string/index.d.ts +2 -0
  119. package/node_modules/mdast-util-to-string/index.js +5 -0
  120. package/node_modules/mdast-util-to-string/lib/index.d.ts +31 -0
  121. package/node_modules/mdast-util-to-string/lib/index.js +108 -0
  122. package/node_modules/mdast-util-to-string/license +22 -0
  123. package/node_modules/mdast-util-to-string/package.json +78 -0
  124. package/node_modules/mdast-util-to-string/readme.md +218 -0
  125. package/node_modules/micromark/dev/index.d.ts +82 -0
  126. package/node_modules/micromark/dev/index.d.ts.map +1 -0
  127. package/node_modules/micromark/dev/index.js +68 -0
  128. package/node_modules/micromark/dev/lib/compile.d.ts +16 -0
  129. package/node_modules/micromark/dev/lib/compile.d.ts.map +1 -0
  130. package/node_modules/micromark/dev/lib/compile.js +1162 -0
  131. package/node_modules/micromark/dev/lib/constructs.d.ts +73 -0
  132. package/node_modules/micromark/dev/lib/constructs.d.ts.map +1 -0
  133. package/node_modules/micromark/dev/lib/constructs.js +101 -0
  134. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts +46 -0
  135. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -0
  136. package/node_modules/micromark/dev/lib/create-tokenizer.js +718 -0
  137. package/node_modules/micromark/dev/lib/initialize/content.d.ts +4 -0
  138. package/node_modules/micromark/dev/lib/initialize/content.d.ts.map +1 -0
  139. package/node_modules/micromark/dev/lib/initialize/content.js +99 -0
  140. package/node_modules/micromark/dev/lib/initialize/document.d.ts +10 -0
  141. package/node_modules/micromark/dev/lib/initialize/document.d.ts.map +1 -0
  142. package/node_modules/micromark/dev/lib/initialize/document.js +449 -0
  143. package/node_modules/micromark/dev/lib/initialize/flow.d.ts +4 -0
  144. package/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +1 -0
  145. package/node_modules/micromark/dev/lib/initialize/flow.js +86 -0
  146. package/node_modules/micromark/dev/lib/initialize/text.d.ts +8 -0
  147. package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -0
  148. package/node_modules/micromark/dev/lib/initialize/text.js +248 -0
  149. package/node_modules/micromark/dev/lib/parse.d.ts +10 -0
  150. package/node_modules/micromark/dev/lib/parse.d.ts.map +1 -0
  151. package/node_modules/micromark/dev/lib/parse.js +58 -0
  152. package/node_modules/micromark/dev/lib/postprocess.d.ts +9 -0
  153. package/node_modules/micromark/dev/lib/postprocess.d.ts.map +1 -0
  154. package/node_modules/micromark/dev/lib/postprocess.js +19 -0
  155. package/node_modules/micromark/dev/lib/preprocess.d.ts +13 -0
  156. package/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -0
  157. package/node_modules/micromark/dev/lib/preprocess.js +139 -0
  158. package/node_modules/micromark/dev/stream.d.ts +35 -0
  159. package/node_modules/micromark/dev/stream.d.ts.map +1 -0
  160. package/node_modules/micromark/dev/stream.js +270 -0
  161. package/node_modules/micromark/index.d.ts +82 -0
  162. package/node_modules/micromark/index.d.ts.map +1 -0
  163. package/node_modules/micromark/index.js +60 -0
  164. package/node_modules/micromark/lib/compile.d.ts +16 -0
  165. package/node_modules/micromark/lib/compile.d.ts.map +1 -0
  166. package/node_modules/micromark/lib/compile.js +1068 -0
  167. package/node_modules/micromark/lib/constructs.d.ts +73 -0
  168. package/node_modules/micromark/lib/constructs.d.ts.map +1 -0
  169. package/node_modules/micromark/lib/constructs.js +85 -0
  170. package/node_modules/micromark/lib/create-tokenizer.d.ts +46 -0
  171. package/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -0
  172. package/node_modules/micromark/lib/create-tokenizer.js +613 -0
  173. package/node_modules/micromark/lib/initialize/content.d.ts +4 -0
  174. package/node_modules/micromark/lib/initialize/content.d.ts.map +1 -0
  175. package/node_modules/micromark/lib/initialize/content.js +79 -0
  176. package/node_modules/micromark/lib/initialize/document.d.ts +10 -0
  177. package/node_modules/micromark/lib/initialize/document.d.ts.map +1 -0
  178. package/node_modules/micromark/lib/initialize/document.js +370 -0
  179. package/node_modules/micromark/lib/initialize/flow.d.ts +4 -0
  180. package/node_modules/micromark/lib/initialize/flow.d.ts.map +1 -0
  181. package/node_modules/micromark/lib/initialize/flow.js +58 -0
  182. package/node_modules/micromark/lib/initialize/text.d.ts +8 -0
  183. package/node_modules/micromark/lib/initialize/text.d.ts.map +1 -0
  184. package/node_modules/micromark/lib/initialize/text.js +216 -0
  185. package/node_modules/micromark/lib/parse.d.ts +10 -0
  186. package/node_modules/micromark/lib/parse.d.ts.map +1 -0
  187. package/node_modules/micromark/lib/parse.js +56 -0
  188. package/node_modules/micromark/lib/postprocess.d.ts +9 -0
  189. package/node_modules/micromark/lib/postprocess.d.ts.map +1 -0
  190. package/node_modules/micromark/lib/postprocess.js +18 -0
  191. package/node_modules/micromark/lib/preprocess.d.ts +13 -0
  192. package/node_modules/micromark/lib/preprocess.d.ts.map +1 -0
  193. package/node_modules/micromark/lib/preprocess.js +112 -0
  194. package/node_modules/micromark/license +22 -0
  195. package/node_modules/micromark/package.json +87 -0
  196. package/node_modules/micromark/readme.md +488 -0
  197. package/node_modules/micromark/stream.d.ts +35 -0
  198. package/node_modules/micromark/stream.d.ts.map +1 -0
  199. package/node_modules/micromark/stream.js +256 -0
  200. package/node_modules/micromark-core-commonmark/dev/index.d.ts +23 -0
  201. package/node_modules/micromark-core-commonmark/dev/index.d.ts.map +1 -0
  202. package/node_modules/micromark-core-commonmark/dev/index.js +22 -0
  203. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +4 -0
  204. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +1 -0
  205. package/node_modules/micromark-core-commonmark/dev/lib/attention.js +294 -0
  206. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +4 -0
  207. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +1 -0
  208. package/node_modules/micromark-core-commonmark/dev/lib/autolink.js +269 -0
  209. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +4 -0
  210. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +1 -0
  211. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +62 -0
  212. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +4 -0
  213. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +1 -0
  214. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +162 -0
  215. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +4 -0
  216. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +1 -0
  217. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +69 -0
  218. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +4 -0
  219. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +1 -0
  220. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +166 -0
  221. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +4 -0
  222. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -0
  223. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +472 -0
  224. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +4 -0
  225. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +1 -0
  226. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +178 -0
  227. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +4 -0
  228. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +1 -0
  229. package/node_modules/micromark-core-commonmark/dev/lib/code-text.js +257 -0
  230. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +7 -0
  231. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +1 -0
  232. package/node_modules/micromark-core-commonmark/dev/lib/content.js +185 -0
  233. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +4 -0
  234. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +1 -0
  235. package/node_modules/micromark-core-commonmark/dev/lib/definition.js +295 -0
  236. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +4 -0
  237. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +1 -0
  238. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +65 -0
  239. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +4 -0
  240. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +1 -0
  241. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +229 -0
  242. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +4 -0
  243. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -0
  244. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +938 -0
  245. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +4 -0
  246. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +1 -0
  247. package/node_modules/micromark-core-commonmark/dev/lib/html-text.js +783 -0
  248. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +4 -0
  249. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +1 -0
  250. package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +658 -0
  251. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +4 -0
  252. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -0
  253. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +119 -0
  254. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +4 -0
  255. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -0
  256. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +71 -0
  257. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +4 -0
  258. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +1 -0
  259. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +34 -0
  260. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +4 -0
  261. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +1 -0
  262. package/node_modules/micromark-core-commonmark/dev/lib/list.js +306 -0
  263. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +4 -0
  264. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +1 -0
  265. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +67 -0
  266. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +4 -0
  267. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -0
  268. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +213 -0
  269. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +4 -0
  270. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +1 -0
  271. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +120 -0
  272. package/node_modules/micromark-core-commonmark/index.d.ts +23 -0
  273. package/node_modules/micromark-core-commonmark/index.d.ts.map +1 -0
  274. package/node_modules/micromark-core-commonmark/index.js +22 -0
  275. package/node_modules/micromark-core-commonmark/lib/attention.d.ts +4 -0
  276. package/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +1 -0
  277. package/node_modules/micromark-core-commonmark/lib/attention.js +231 -0
  278. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts +4 -0
  279. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +1 -0
  280. package/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
  281. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +4 -0
  282. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +1 -0
  283. package/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
  284. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +4 -0
  285. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +1 -0
  286. package/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
  287. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +4 -0
  288. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +1 -0
  289. package/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
  290. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +4 -0
  291. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +1 -0
  292. package/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
  293. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +4 -0
  294. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -0
  295. package/node_modules/micromark-core-commonmark/lib/code-fenced.js +422 -0
  296. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +4 -0
  297. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +1 -0
  298. package/node_modules/micromark-core-commonmark/lib/code-indented.js +159 -0
  299. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts +4 -0
  300. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +1 -0
  301. package/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
  302. package/node_modules/micromark-core-commonmark/lib/content.d.ts +7 -0
  303. package/node_modules/micromark-core-commonmark/lib/content.d.ts.map +1 -0
  304. package/node_modules/micromark-core-commonmark/lib/content.js +163 -0
  305. package/node_modules/micromark-core-commonmark/lib/definition.d.ts +4 -0
  306. package/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +1 -0
  307. package/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
  308. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +4 -0
  309. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +1 -0
  310. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
  311. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +4 -0
  312. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +1 -0
  313. package/node_modules/micromark-core-commonmark/lib/heading-atx.js +191 -0
  314. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +4 -0
  315. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -0
  316. package/node_modules/micromark-core-commonmark/lib/html-flow.js +827 -0
  317. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts +4 -0
  318. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +1 -0
  319. package/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
  320. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts +4 -0
  321. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +1 -0
  322. package/node_modules/micromark-core-commonmark/lib/label-end.js +561 -0
  323. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +4 -0
  324. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -0
  325. package/node_modules/micromark-core-commonmark/lib/label-start-image.js +110 -0
  326. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +4 -0
  327. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -0
  328. package/node_modules/micromark-core-commonmark/lib/label-start-link.js +63 -0
  329. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +4 -0
  330. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +1 -0
  331. package/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
  332. package/node_modules/micromark-core-commonmark/lib/list.d.ts +4 -0
  333. package/node_modules/micromark-core-commonmark/lib/list.d.ts.map +1 -0
  334. package/node_modules/micromark-core-commonmark/lib/list.js +213 -0
  335. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +4 -0
  336. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +1 -0
  337. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +61 -0
  338. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +4 -0
  339. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -0
  340. package/node_modules/micromark-core-commonmark/lib/setext-underline.js +187 -0
  341. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +4 -0
  342. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +1 -0
  343. package/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
  344. package/node_modules/micromark-core-commonmark/license +22 -0
  345. package/node_modules/micromark-core-commonmark/package.json +62 -0
  346. package/node_modules/micromark-core-commonmark/readme.md +171 -0
  347. package/node_modules/micromark-factory-destination/dev/index.d.ts +42 -0
  348. package/node_modules/micromark-factory-destination/dev/index.d.ts.map +1 -0
  349. package/node_modules/micromark-factory-destination/dev/index.js +255 -0
  350. package/node_modules/micromark-factory-destination/index.d.ts +42 -0
  351. package/node_modules/micromark-factory-destination/index.d.ts.map +1 -0
  352. package/node_modules/micromark-factory-destination/index.js +206 -0
  353. package/node_modules/micromark-factory-destination/license +22 -0
  354. package/node_modules/micromark-factory-destination/package.json +57 -0
  355. package/node_modules/micromark-factory-destination/readme.md +234 -0
  356. package/node_modules/micromark-factory-label/dev/index.d.ts +37 -0
  357. package/node_modules/micromark-factory-label/dev/index.d.ts.map +1 -0
  358. package/node_modules/micromark-factory-label/dev/index.js +172 -0
  359. package/node_modules/micromark-factory-label/index.d.ts +37 -0
  360. package/node_modules/micromark-factory-label/index.d.ts.map +1 -0
  361. package/node_modules/micromark-factory-label/index.js +148 -0
  362. package/node_modules/micromark-factory-label/license +22 -0
  363. package/node_modules/micromark-factory-label/package.json +60 -0
  364. package/node_modules/micromark-factory-label/readme.md +224 -0
  365. package/node_modules/micromark-factory-space/dev/index.d.ts +60 -0
  366. package/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -0
  367. package/node_modules/micromark-factory-space/dev/index.js +122 -0
  368. package/node_modules/micromark-factory-space/index.d.ts +60 -0
  369. package/node_modules/micromark-factory-space/index.d.ts.map +1 -0
  370. package/node_modules/micromark-factory-space/index.js +116 -0
  371. package/node_modules/micromark-factory-space/license +22 -0
  372. package/node_modules/micromark-factory-space/package.json +46 -0
  373. package/node_modules/micromark-factory-space/readme.md +225 -0
  374. package/node_modules/micromark-factory-title/dev/index.d.ts +36 -0
  375. package/node_modules/micromark-factory-title/dev/index.d.ts.map +1 -0
  376. package/node_modules/micromark-factory-title/dev/index.js +169 -0
  377. package/node_modules/micromark-factory-title/index.d.ts +36 -0
  378. package/node_modules/micromark-factory-title/index.d.ts.map +1 -0
  379. package/node_modules/micromark-factory-title/index.js +158 -0
  380. package/node_modules/micromark-factory-title/license +22 -0
  381. package/node_modules/micromark-factory-title/package.json +58 -0
  382. package/node_modules/micromark-factory-title/readme.md +229 -0
  383. package/node_modules/micromark-factory-whitespace/dev/index.d.ts +22 -0
  384. package/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +1 -0
  385. package/node_modules/micromark-factory-whitespace/dev/index.js +53 -0
  386. package/node_modules/micromark-factory-whitespace/index.d.ts +22 -0
  387. package/node_modules/micromark-factory-whitespace/index.d.ts.map +1 -0
  388. package/node_modules/micromark-factory-whitespace/index.js +44 -0
  389. package/node_modules/micromark-factory-whitespace/license +22 -0
  390. package/node_modules/micromark-factory-whitespace/package.json +57 -0
  391. package/node_modules/micromark-factory-whitespace/readme.md +205 -0
  392. package/node_modules/micromark-util-character/dev/index.d.ts +195 -0
  393. package/node_modules/micromark-util-character/dev/index.d.ts.map +1 -0
  394. package/node_modules/micromark-util-character/dev/index.js +252 -0
  395. package/node_modules/micromark-util-character/index.d.ts +195 -0
  396. package/node_modules/micromark-util-character/index.d.ts.map +1 -0
  397. package/node_modules/micromark-util-character/index.js +246 -0
  398. package/node_modules/micromark-util-character/license +22 -0
  399. package/node_modules/micromark-util-character/package.json +57 -0
  400. package/node_modules/micromark-util-character/readme.md +446 -0
  401. package/node_modules/micromark-util-chunked/dev/index.d.ts +41 -0
  402. package/node_modules/micromark-util-chunked/dev/index.d.ts.map +1 -0
  403. package/node_modules/micromark-util-chunked/dev/index.js +89 -0
  404. package/node_modules/micromark-util-chunked/index.d.ts +41 -0
  405. package/node_modules/micromark-util-chunked/index.d.ts.map +1 -0
  406. package/node_modules/micromark-util-chunked/index.js +81 -0
  407. package/node_modules/micromark-util-chunked/license +22 -0
  408. package/node_modules/micromark-util-chunked/package.json +57 -0
  409. package/node_modules/micromark-util-chunked/readme.md +219 -0
  410. package/node_modules/micromark-util-classify-character/dev/index.d.ts +18 -0
  411. package/node_modules/micromark-util-classify-character/dev/index.d.ts.map +1 -0
  412. package/node_modules/micromark-util-classify-character/dev/index.js +38 -0
  413. package/node_modules/micromark-util-classify-character/index.d.ts +18 -0
  414. package/node_modules/micromark-util-classify-character/index.d.ts.map +1 -0
  415. package/node_modules/micromark-util-classify-character/index.js +27 -0
  416. package/node_modules/micromark-util-classify-character/license +22 -0
  417. package/node_modules/micromark-util-classify-character/package.json +59 -0
  418. package/node_modules/micromark-util-classify-character/readme.md +205 -0
  419. package/node_modules/micromark-util-combine-extensions/index.d.ts +22 -0
  420. package/node_modules/micromark-util-combine-extensions/index.d.ts.map +1 -0
  421. package/node_modules/micromark-util-combine-extensions/index.js +143 -0
  422. package/node_modules/micromark-util-combine-extensions/license +22 -0
  423. package/node_modules/micromark-util-combine-extensions/package.json +52 -0
  424. package/node_modules/micromark-util-combine-extensions/readme.md +201 -0
  425. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +16 -0
  426. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +1 -0
  427. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +42 -0
  428. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +16 -0
  429. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +1 -0
  430. package/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
  431. package/node_modules/micromark-util-decode-numeric-character-reference/license +22 -0
  432. package/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
  433. package/node_modules/micromark-util-decode-numeric-character-reference/readme.md +184 -0
  434. package/node_modules/micromark-util-decode-string/dev/index.d.ts +14 -0
  435. package/node_modules/micromark-util-decode-string/dev/index.d.ts.map +1 -0
  436. package/node_modules/micromark-util-decode-string/dev/index.js +53 -0
  437. package/node_modules/micromark-util-decode-string/index.d.ts +14 -0
  438. package/node_modules/micromark-util-decode-string/index.d.ts.map +1 -0
  439. package/node_modules/micromark-util-decode-string/index.js +45 -0
  440. package/node_modules/micromark-util-decode-string/license +22 -0
  441. package/node_modules/micromark-util-decode-string/package.json +63 -0
  442. package/node_modules/micromark-util-decode-string/readme.md +179 -0
  443. package/node_modules/micromark-util-edit-map/dev/index.d.ts +78 -0
  444. package/node_modules/micromark-util-edit-map/dev/index.d.ts.map +1 -0
  445. package/node_modules/micromark-util-edit-map/dev/index.js +237 -0
  446. package/node_modules/micromark-util-edit-map/index.d.ts +78 -0
  447. package/node_modules/micromark-util-edit-map/index.d.ts.map +1 -0
  448. package/node_modules/micromark-util-edit-map/index.js +225 -0
  449. package/node_modules/micromark-util-edit-map/license +22 -0
  450. package/node_modules/micromark-util-edit-map/package.json +48 -0
  451. package/node_modules/micromark-util-edit-map/readme.md +234 -0
  452. package/node_modules/micromark-util-encode/index.d.ts +14 -0
  453. package/node_modules/micromark-util-encode/index.d.ts.map +1 -0
  454. package/node_modules/micromark-util-encode/index.js +33 -0
  455. package/node_modules/micromark-util-encode/license +22 -0
  456. package/node_modules/micromark-util-encode/package.json +47 -0
  457. package/node_modules/micromark-util-encode/readme.md +176 -0
  458. package/node_modules/micromark-util-html-tag-name/index.d.ts +30 -0
  459. package/node_modules/micromark-util-html-tag-name/index.d.ts.map +1 -0
  460. package/node_modules/micromark-util-html-tag-name/index.js +93 -0
  461. package/node_modules/micromark-util-html-tag-name/license +22 -0
  462. package/node_modules/micromark-util-html-tag-name/package.json +47 -0
  463. package/node_modules/micromark-util-html-tag-name/readme.md +193 -0
  464. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +21 -0
  465. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +1 -0
  466. package/node_modules/micromark-util-normalize-identifier/dev/index.js +38 -0
  467. package/node_modules/micromark-util-normalize-identifier/index.d.ts +21 -0
  468. package/node_modules/micromark-util-normalize-identifier/index.d.ts.map +1 -0
  469. package/node_modules/micromark-util-normalize-identifier/index.js +33 -0
  470. package/node_modules/micromark-util-normalize-identifier/license +22 -0
  471. package/node_modules/micromark-util-normalize-identifier/package.json +58 -0
  472. package/node_modules/micromark-util-normalize-identifier/readme.md +187 -0
  473. package/node_modules/micromark-util-resolve-all/index.d.ts +22 -0
  474. package/node_modules/micromark-util-resolve-all/index.d.ts.map +1 -0
  475. package/node_modules/micromark-util-resolve-all/index.js +32 -0
  476. package/node_modules/micromark-util-resolve-all/license +22 -0
  477. package/node_modules/micromark-util-resolve-all/package.json +48 -0
  478. package/node_modules/micromark-util-resolve-all/readme.md +238 -0
  479. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +36 -0
  480. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +1 -0
  481. package/node_modules/micromark-util-sanitize-uri/dev/index.js +124 -0
  482. package/node_modules/micromark-util-sanitize-uri/index.d.ts +36 -0
  483. package/node_modules/micromark-util-sanitize-uri/index.d.ts.map +1 -0
  484. package/node_modules/micromark-util-sanitize-uri/index.js +107 -0
  485. package/node_modules/micromark-util-sanitize-uri/license +22 -0
  486. package/node_modules/micromark-util-sanitize-uri/package.json +59 -0
  487. package/node_modules/micromark-util-sanitize-uri/readme.md +214 -0
  488. package/node_modules/micromark-util-subtokenize/dev/index.d.ts +12 -0
  489. package/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +1 -0
  490. package/node_modules/micromark-util-subtokenize/dev/index.js +284 -0
  491. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +161 -0
  492. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +1 -0
  493. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +288 -0
  494. package/node_modules/micromark-util-subtokenize/index.d.ts +12 -0
  495. package/node_modules/micromark-util-subtokenize/index.d.ts.map +1 -0
  496. package/node_modules/micromark-util-subtokenize/index.js +228 -0
  497. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +161 -0
  498. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +1 -0
  499. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
  500. package/node_modules/micromark-util-subtokenize/license +22 -0
  501. package/node_modules/micromark-util-subtokenize/package.json +60 -0
  502. package/node_modules/micromark-util-subtokenize/readme.md +181 -0
  503. package/node_modules/micromark-util-symbol/lib/codes.d.ts +139 -0
  504. package/node_modules/micromark-util-symbol/lib/codes.d.ts.map +1 -0
  505. package/node_modules/micromark-util-symbol/lib/codes.js +158 -0
  506. package/node_modules/micromark-util-symbol/lib/constants.d.ts +37 -0
  507. package/node_modules/micromark-util-symbol/lib/constants.d.ts.map +1 -0
  508. package/node_modules/micromark-util-symbol/lib/constants.js +44 -0
  509. package/node_modules/micromark-util-symbol/lib/default.d.ts +5 -0
  510. package/node_modules/micromark-util-symbol/lib/default.d.ts.map +1 -0
  511. package/node_modules/micromark-util-symbol/lib/default.js +4 -0
  512. package/node_modules/micromark-util-symbol/lib/types.d.ts +106 -0
  513. package/node_modules/micromark-util-symbol/lib/types.d.ts.map +1 -0
  514. package/node_modules/micromark-util-symbol/lib/types.js +453 -0
  515. package/node_modules/micromark-util-symbol/lib/values.d.ts +102 -0
  516. package/node_modules/micromark-util-symbol/lib/values.d.ts.map +1 -0
  517. package/node_modules/micromark-util-symbol/lib/values.js +109 -0
  518. package/node_modules/micromark-util-symbol/license +22 -0
  519. package/node_modules/micromark-util-symbol/package.json +43 -0
  520. package/node_modules/micromark-util-symbol/readme.md +168 -0
  521. package/node_modules/micromark-util-types/index.d.ts +1315 -0
  522. package/node_modules/micromark-util-types/index.js +2 -0
  523. package/node_modules/micromark-util-types/license +22 -0
  524. package/node_modules/micromark-util-types/package.json +37 -0
  525. package/node_modules/micromark-util-types/readme.md +151 -0
  526. package/node_modules/smol-toml/LICENSE +24 -0
  527. package/node_modules/smol-toml/README.md +605 -0
  528. package/node_modules/smol-toml/dist/date.d.ts +41 -0
  529. package/node_modules/smol-toml/dist/date.js +156 -0
  530. package/node_modules/smol-toml/dist/error.d.ts +37 -0
  531. package/node_modules/smol-toml/dist/error.js +67 -0
  532. package/node_modules/smol-toml/dist/extract.js +289 -0
  533. package/node_modules/smol-toml/dist/index.cjs +770 -0
  534. package/node_modules/smol-toml/dist/index.d.ts +44 -0
  535. package/node_modules/smol-toml/dist/index.js +34 -0
  536. package/node_modules/smol-toml/dist/parse.d.ts +73 -0
  537. package/node_modules/smol-toml/dist/parse.js +164 -0
  538. package/node_modules/smol-toml/dist/primitive.js +151 -0
  539. package/node_modules/smol-toml/dist/stringify.d.ts +32 -0
  540. package/node_modules/smol-toml/dist/stringify.js +219 -0
  541. package/node_modules/smol-toml/dist/struct.js +156 -0
  542. package/node_modules/smol-toml/dist/util.d.ts +43 -0
  543. package/node_modules/smol-toml/dist/util.js +57 -0
  544. package/node_modules/smol-toml/package.json +68 -0
  545. package/node_modules/unist-util-stringify-position/index.d.ts +1 -0
  546. package/node_modules/unist-util-stringify-position/index.js +1 -0
  547. package/node_modules/unist-util-stringify-position/lib/index.d.ts +61 -0
  548. package/node_modules/unist-util-stringify-position/lib/index.js +84 -0
  549. package/node_modules/unist-util-stringify-position/license +22 -0
  550. package/node_modules/unist-util-stringify-position/package.json +80 -0
  551. package/node_modules/unist-util-stringify-position/readme.md +206 -0
  552. package/package.json +27 -8
  553. package/scripts/prepare-github-keyring.js +29 -0
  554. package/src/codex-app.js +20 -2
  555. package/src/codex-pricing.js +79 -0
  556. package/src/codex-projects.js +90 -0
  557. package/src/codex-session-scanner.js +748 -0
  558. package/src/codex-session-usage.js +332 -0
  559. package/src/dashboard/app.js +2 -2
  560. package/src/dashboard/dist/app.js +135 -60
  561. package/src/dashboard/dist/app.js.map +1 -1
  562. package/src/dashboard/dist/styles.css +1 -1
  563. package/src/dashboard/react/components/AnimatedUsage.test.tsx +78 -0
  564. package/src/dashboard/react/components/CardStatusIcons.test.tsx +146 -0
  565. package/src/dashboard/react/components/CardStatusIcons.tsx +138 -0
  566. package/src/dashboard/react/components/ImageGallery.tsx +22 -0
  567. package/src/dashboard/react/components/ModelSettings.test.tsx +4 -4
  568. package/src/dashboard/react/components/ModelSettings.tsx +1 -1
  569. package/src/dashboard/react/components/OpenChatButton.test.tsx +19 -0
  570. package/src/dashboard/react/components/OpenChatButton.tsx +2 -1
  571. package/src/dashboard/react/components/PrGlyph.tsx +35 -0
  572. package/src/dashboard/react/components/PullRequestBadges.tsx +18 -0
  573. package/src/dashboard/react/components/QueuedPrompts.test.tsx +42 -0
  574. package/src/dashboard/react/components/QueuedPrompts.tsx +34 -0
  575. package/src/dashboard/react/components/RelativeTime.test.tsx +100 -0
  576. package/src/dashboard/react/components/RelativeTime.tsx +46 -11
  577. package/src/dashboard/react/components/ReplyCover.test.tsx +30 -0
  578. package/src/dashboard/react/components/ReplyCover.tsx +33 -0
  579. package/src/dashboard/react/components/ReplyImagePreview.test.tsx +90 -0
  580. package/src/dashboard/react/components/ReplyImagePreview.tsx +34 -0
  581. package/src/dashboard/react/components/ReplyMarkdown.test.tsx +108 -0
  582. package/src/dashboard/react/components/ReplyMarkdown.tsx +112 -0
  583. package/src/dashboard/react/components/SavedUsageFormat.test.tsx +11 -0
  584. package/src/dashboard/react/components/SavedUsageFormat.tsx +68 -0
  585. package/src/dashboard/react/components/StatusBadge.tsx +2 -2
  586. package/src/dashboard/react/components/TaskBoard.test.tsx +256 -1
  587. package/src/dashboard/react/components/TaskBoard.tsx +136 -28
  588. package/src/dashboard/react/components/TaskCard.tsx +7 -4
  589. package/src/dashboard/react/components/TaskDetail.test.tsx +92 -1
  590. package/src/dashboard/react/components/TaskDetail.tsx +37 -10
  591. package/src/dashboard/react/components/TurnContent.test.tsx +44 -0
  592. package/src/dashboard/react/components/TurnContent.tsx +53 -0
  593. package/src/dashboard/react/components/UsagePanel.tsx +2 -2
  594. package/src/dashboard/react/image-cache.test.ts +23 -0
  595. package/src/dashboard/react/image-cache.ts +33 -0
  596. package/src/dashboard/react/presentation.test.tsx +31 -0
  597. package/src/dashboard/react/styles.css +126 -2
  598. package/src/dashboard/react/types.ts +55 -1
  599. package/src/dashboard/time.js +39 -0
  600. package/src/dashboard.js +4 -3
  601. package/src/data/codex-pricing.json +537 -0
  602. package/src/mcp-app/dist/index.html +216 -112
  603. package/src/mcp-app/react/AppearancePicker.test.tsx +50 -0
  604. package/src/mcp-app/react/AppearancePicker.tsx +56 -0
  605. package/src/mcp-app/react/GitHubConnection.test.tsx +78 -0
  606. package/src/mcp-app/react/GitHubConnection.tsx +78 -0
  607. package/src/mcp-app/react/NextNotificationCenter.test.tsx +121 -0
  608. package/src/mcp-app/react/NextNotificationCenter.tsx +94 -0
  609. package/src/mcp-app/react/NextTaskDetail.test.tsx +124 -0
  610. package/src/mcp-app/react/NextTaskDetail.tsx +147 -0
  611. package/src/mcp-app/react/ProjectPicker.tsx +49 -0
  612. package/src/mcp-app/react/main.test.tsx +499 -49
  613. package/src/mcp-app/react/main.tsx +359 -86
  614. package/src/mcp-app/react/styles.css +186 -9
  615. package/src/mcp-app/react/themes.test.ts +34 -0
  616. package/src/mcp-app/react/themes.ts +112 -0
  617. package/src/mcp-app.js +238 -120
  618. package/src/mcp.js +8 -1
  619. package/src/next-cache.js +16 -0
  620. package/src/next-github.js +273 -0
  621. package/src/next-notifications.js +90 -0
  622. package/src/recorded-usage-tracker.js +92 -0
  623. package/src/reply-image.js +65 -0
  624. package/src/usage-tracker.js +7 -6
  625. package/src/usage.js +7 -355
  626. package/src/user-prompt.js +55 -0
  627. package/src/version.js +0 -1
  628. package/node_modules/proper-lockfile/CHANGELOG.md +0 -108
  629. package/node_modules/which/CHANGELOG.md +0 -166
  630. package/src/resolve-ccusage.js +0 -17
@@ -0,0 +1,1315 @@
1
+ // Note: this file is authored manually, not generated from `index.js`.
2
+
3
+ /**
4
+ * A character code.
5
+ *
6
+ * This is often the same as what `String#charCodeAt()` yields but micromark
7
+ * adds meaning to certain other values.
8
+ *
9
+ * `null` represents the end of the input stream (called eof).
10
+ * Negative integers are used instead of certain sequences of characters (such
11
+ * as line endings and tabs).
12
+ */
13
+ export type Code = number | null
14
+
15
+ /**
16
+ * A chunk is either a character code or a slice of a buffer in the form of a
17
+ * string.
18
+ *
19
+ * Chunks are used because strings are more efficient storage that character
20
+ * codes, but limited in what they can represent.
21
+ */
22
+ export type Chunk = Code | string
23
+
24
+ /**
25
+ * Enumeration of the content types.
26
+ *
27
+ * Technically `document` is also a content type, which includes containers
28
+ * (lists, block quotes) and flow.
29
+ * As `ContentType` is used on tokens to define the type of subcontent but
30
+ * `document` is the highest level of content, so it’s not listed here.
31
+ *
32
+ * Containers in markdown come from the margin and include more constructs
33
+ * on the lines that define them.
34
+ * Take for example a block quote with a paragraph inside it (such as
35
+ * `> asd`).
36
+ *
37
+ * `flow` represents the sections, such as headings, code, and content, which
38
+ * is also parsed per line
39
+ * An example is HTML, which has a certain starting condition (such as
40
+ * `<script>` on its own line), then continues for a while, until an end
41
+ * condition is found (such as `</style>`).
42
+ * If that line with an end condition is never found, that flow goes until
43
+ * the end.
44
+ *
45
+ * `content` is zero or more definitions, and then zero or one paragraph.
46
+ * It’s a weird one, and needed to make certain edge cases around definitions
47
+ * spec compliant.
48
+ * Definitions are unlike other things in markdown, in that they behave like
49
+ * `text` in that they can contain arbitrary line endings, but *have* to end
50
+ * at a line ending.
51
+ * If they end in something else, the whole definition instead is seen as a
52
+ * paragraph.
53
+ *
54
+ * The content in markdown first needs to be parsed up to this level to
55
+ * figure out which things are defined, for the whole document, before
56
+ * continuing on with `text`, as whether a link or image reference forms or
57
+ * not depends on whether it’s defined.
58
+ * This unfortunately prevents a true streaming markdown to HTML compiler.
59
+ *
60
+ * `text` contains phrasing content such as attention (emphasis, strong),
61
+ * media (links, images), and actual text.
62
+ *
63
+ * `string` is a limited `text` like content type which only allows character
64
+ * references and character escapes.
65
+ * It exists in things such as identifiers (media references, definitions),
66
+ * titles, or URLs.
67
+ */
68
+ export type ContentType = 'content' | 'document' | 'flow' | 'string' | 'text'
69
+
70
+ /**
71
+ * A location in the document (`line`/`column`/`offset`) and chunk (`_index`,
72
+ * `_bufferIndex`).
73
+ *
74
+ * `_bufferIndex` is `-1` when `_index` points to a code chunk and it’s a
75
+ * non-negative integer when pointing to a string chunk.
76
+ *
77
+ * The interface for the location in the document comes from unist `Point`:
78
+ * <https://github.com/syntax-tree/unist#point>
79
+ */
80
+ export interface Point {
81
+ /**
82
+ * Position in a string chunk (or `-1` when pointing to a numeric chunk).
83
+ */
84
+ _bufferIndex: number
85
+
86
+ /**
87
+ * Position in a list of chunks.
88
+ */
89
+ _index: number
90
+
91
+ /**
92
+ * 1-indexed column number.
93
+ */
94
+ column: number
95
+
96
+ /**
97
+ * 1-indexed line number.
98
+ */
99
+ line: number
100
+
101
+ /**
102
+ * 0-indexed position in the document.
103
+ */
104
+ offset: number
105
+ }
106
+
107
+ /**
108
+ * A token: a span of chunks.
109
+ *
110
+ * Tokens are what the core of micromark produces: the built in HTML compiler
111
+ * or other tools can turn them into different things.
112
+ *
113
+ * Tokens are essentially names attached to a slice of chunks, such as
114
+ * `lineEndingBlank` for certain line endings, or `codeFenced` for a whole
115
+ * fenced code.
116
+ *
117
+ * Sometimes, more info is attached to tokens, such as `_open` and `_close`
118
+ * by `attention` (strong, emphasis) to signal whether the sequence can open
119
+ * or close an attention run.
120
+ *
121
+ * Linked tokens are used because outer constructs are parsed first.
122
+ * Take for example:
123
+ *
124
+ * ```markdown
125
+ * > *a
126
+ * b*.
127
+ * ```
128
+ *
129
+ * 1. The block quote marker and the space after it is parsed first
130
+ * 2. The rest of the line is a `chunkFlow` token
131
+ * 3. The two spaces on the second line are a `linePrefix`
132
+ * 4. The rest of the line is another `chunkFlow` token
133
+ *
134
+ * The two `chunkFlow` tokens are linked together.
135
+ * The chunks they span are then passed through the flow tokenizer.
136
+ */
137
+ export interface Token {
138
+ /**
139
+ * Token type.
140
+ */
141
+ type: TokenType
142
+
143
+ /**
144
+ * Point where the token starts.
145
+ */
146
+ start: Point
147
+
148
+ /**
149
+ * Point where the token ends.
150
+ */
151
+ end: Point
152
+
153
+ /**
154
+ * The previous token in a list of linked tokens.
155
+ */
156
+ previous?: Token | undefined
157
+
158
+ /**
159
+ * The next token in a list of linked tokens.
160
+ */
161
+ next?: Token | undefined
162
+
163
+ /**
164
+ * Declares a token as having content of a certain type.
165
+ */
166
+ contentType?: ContentType | undefined
167
+
168
+ /**
169
+ * Declares that trailing whitespace is sensitive,
170
+ * is allowed,
171
+ * when `contentType` is `text` (or `string`).
172
+ * Normally,
173
+ * trailing spaces and tabs are dropped.
174
+ */
175
+ _contentTypeTextTrailing?: boolean | undefined
176
+
177
+ /**
178
+ * Connected tokenizer.
179
+ *
180
+ * Used when dealing with linked tokens.
181
+ * A child tokenizer is needed to tokenize them, which is stored on those
182
+ * tokens.
183
+ */
184
+ _tokenizer?: TokenizeContext | undefined
185
+
186
+ /**
187
+ * Field to help parse attention.
188
+ *
189
+ * Depending on the character before sequences (`**`), the sequence can open,
190
+ * close, both, or none.
191
+ */
192
+ _open?: boolean | undefined
193
+
194
+ /**
195
+ * Field to help parse attention.
196
+ *
197
+ * Depending on the character before sequences (`**`), the sequence can open,
198
+ * close, both, or none.
199
+ */
200
+ _close?: boolean | undefined
201
+
202
+ /**
203
+ * Field to help parse GFM task lists.
204
+ *
205
+ * This boolean is used internally to figure out if a token is in the first
206
+ * content of a list item construct.
207
+ */
208
+ _isInFirstContentOfListItem?: boolean | undefined
209
+
210
+ /**
211
+ * Field to help parse containers.
212
+ *
213
+ * This boolean is used internally to figure out if a token is a container
214
+ * token.
215
+ */
216
+ _container?: boolean | undefined
217
+
218
+ /**
219
+ * Field to help parse lists.
220
+ *
221
+ * This boolean is used internally to figure out if a list is loose or not.
222
+ */
223
+ _loose?: boolean | undefined
224
+
225
+ /**
226
+ * Field to help parse links.
227
+ *
228
+ * This boolean is used internally to figure out if a link opening
229
+ * can’t be used (because links in links are incorrect).
230
+ */
231
+ _inactive?: boolean | undefined
232
+
233
+ /**
234
+ * Field to help parse links.
235
+ *
236
+ * This boolean is used internally to figure out if a link opening is
237
+ * balanced: it’s not a link opening but has a balanced closing.
238
+ */
239
+ _balanced?: boolean | undefined
240
+ }
241
+
242
+ /**
243
+ * The start or end of a token amongst other events.
244
+ *
245
+ * Tokens can “contain” other tokens, even though they are stored in a flat
246
+ * list, through `enter`ing before them, and `exit`ing after them.
247
+ */
248
+ export type Event = ['enter' | 'exit', Token, TokenizeContext]
249
+
250
+ /**
251
+ * Open a token.
252
+ *
253
+ * @param type
254
+ * Token type.
255
+ * @param fields
256
+ * Extra fields.
257
+ * @returns {Token}
258
+ * Token.
259
+ */
260
+ export type Enter = (
261
+ type: TokenType,
262
+ fields?: Omit<Partial<Token>, 'type'> | undefined
263
+ ) => Token
264
+
265
+ /**
266
+ * Close a token.
267
+ *
268
+ * @param type
269
+ * Token type.
270
+ * @returns
271
+ * Token.
272
+ */
273
+ export type Exit = (type: TokenType) => Token
274
+
275
+ /**
276
+ * Deal with the character and move to the next.
277
+ *
278
+ * @param code
279
+ * Current code.
280
+ */
281
+ export type Consume = (code: Code) => undefined
282
+
283
+ /**
284
+ * Attempt deals with several values, and tries to parse according to those
285
+ * values.
286
+ *
287
+ * If a value resulted in `ok`, it worked, the tokens that were made are used,
288
+ * and `ok` is switched to.
289
+ * If the result is `nok`, the attempt failed, so we revert to the original
290
+ * state, and `nok` is used.
291
+ *
292
+ * @param construct
293
+ * Construct(s) to try.
294
+ * @param ok
295
+ * State to move to when successful.
296
+ * @param nok
297
+ * State to move to when unsuccessful.
298
+ * @returns
299
+ * Next state.
300
+ */
301
+ export type Attempt = (
302
+ construct: Array<Construct> | ConstructRecord | Construct,
303
+ ok: State,
304
+ nok?: State | undefined
305
+ ) => State
306
+
307
+ /**
308
+ * A context object to transition the state machine.
309
+ */
310
+ export interface Effects {
311
+ /**
312
+ * Try to tokenize a construct.
313
+ */
314
+ attempt: Attempt
315
+
316
+ /**
317
+ * Attempt, then revert.
318
+ */
319
+ check: Attempt
320
+
321
+ /**
322
+ * Deal with the character and move to the next.
323
+ */
324
+ consume: Consume
325
+
326
+ /**
327
+ * Start a new token.
328
+ */
329
+ enter: Enter
330
+
331
+ /**
332
+ * End a started token.
333
+ */
334
+ exit: Exit
335
+
336
+ /**
337
+ * Interrupt is used for stuff right after a line of content.
338
+ */
339
+ interrupt: Attempt
340
+ }
341
+
342
+ /**
343
+ * The main unit in the state machine: a function that gets a character code
344
+ * and has certain effects.
345
+ *
346
+ * A state function should return another function: the next
347
+ * state-as-a-function to go to.
348
+ *
349
+ * But there is one case where they return `undefined`: for the eof character
350
+ * code (at the end of a value).
351
+ * The reason being: well, there isn’t any state that makes sense, so
352
+ * `undefined` works well.
353
+ * Practically that has also helped: if for some reason it was a mistake, then
354
+ * an exception is throw because there is no next function, meaning it
355
+ * surfaces early.
356
+ *
357
+ * @param code
358
+ * Current code.
359
+ * @returns
360
+ * Next state.
361
+ */
362
+ export type State = (code: Code) => State | undefined
363
+
364
+ /**
365
+ * A resolver handles and cleans events coming from `tokenize`.
366
+ *
367
+ * @param events
368
+ * List of events.
369
+ * @param context
370
+ * Tokenize context.
371
+ * @returns
372
+ * The given, modified, events.
373
+ */
374
+ export type Resolver = (
375
+ events: Array<Event>,
376
+ context: TokenizeContext
377
+ ) => Array<Event>
378
+
379
+ /**
380
+ * A tokenize function sets up a state machine to handle character codes streaming in.
381
+ *
382
+ * @param this
383
+ * Tokenize context.
384
+ * @param effects
385
+ * Effects.
386
+ * @param ok
387
+ * State to go to when successful.
388
+ * @param nok
389
+ * State to go to when unsuccessful.
390
+ * @returns
391
+ * First state.
392
+ */
393
+ export type Tokenizer = (
394
+ this: TokenizeContext,
395
+ effects: Effects,
396
+ ok: State,
397
+ nok: State
398
+ ) => State
399
+
400
+ /**
401
+ * Like a tokenizer, but without `ok` or `nok`.
402
+ *
403
+ * @param this
404
+ * Tokenize context.
405
+ * @param effects
406
+ * Effects.
407
+ * @returns
408
+ * First state.
409
+ */
410
+ export type Initializer = (this: TokenizeContext, effects: Effects) => State
411
+
412
+ /**
413
+ * Like a tokenizer, but without `ok` or `nok`, and returning `undefined`.
414
+ *
415
+ * This is the final hook when a container must be closed.
416
+ *
417
+ * @param this
418
+ * Tokenize context.
419
+ * @param effects
420
+ * Effects.
421
+ * @returns
422
+ * Nothing.
423
+ */
424
+ export type Exiter = (this: TokenizeContext, effects: Effects) => undefined
425
+
426
+ /**
427
+ * Guard whether `code` can come before the construct.
428
+ *
429
+ * In certain cases a construct can hook into many potential start characters.
430
+ * Instead of setting up an attempt to parse that construct for most
431
+ * characters, this is a speedy way to reduce that.
432
+ *
433
+ * @param this
434
+ * Tokenize context.
435
+ * @param code
436
+ * Previous code.
437
+ * @returns
438
+ * Whether `code` is allowed before.
439
+ */
440
+ export type Previous = (this: TokenizeContext, code: Code) => boolean
441
+
442
+ /**
443
+ * An object describing how to parse a markdown construct.
444
+ */
445
+ export interface Construct {
446
+ /**
447
+ * Whether the construct, when in a `ConstructRecord`, precedes over existing
448
+ * constructs for the same character code when merged.
449
+ *
450
+ * The default is that new constructs precede over existing ones.
451
+ */
452
+ add?: 'after' | 'before' | undefined
453
+
454
+ /**
455
+ * Concrete constructs cannot be interrupted by more containers.
456
+ *
457
+ * For example, when parsing the document (containers, such as block quotes
458
+ * and lists) and this construct is parsing fenced code:
459
+ *
460
+ * ````markdown
461
+ * > ```js
462
+ * > - list?
463
+ * ````
464
+ *
465
+ * …then `- list?` cannot form if this fenced code construct is concrete.
466
+ *
467
+ * An example of a construct that is not concrete is a GFM table:
468
+ *
469
+ * ````markdown
470
+ * | a |
471
+ * | - |
472
+ * > | b |
473
+ * ````
474
+ *
475
+ * …`b` is not part of the table.
476
+ */
477
+ concrete?: boolean | undefined
478
+
479
+ /**
480
+ * For containers, a continuation construct.
481
+ */
482
+ continuation?: Construct | undefined
483
+
484
+ /**
485
+ * For containers, a final hook.
486
+ */
487
+ exit?: Exiter | undefined
488
+
489
+ /**
490
+ * Name of the construct, used to toggle constructs off.
491
+ *
492
+ * Named constructs must not be `partial`.
493
+ */
494
+ name?: string | undefined
495
+
496
+ /**
497
+ * Whether this construct represents a partial construct.
498
+ *
499
+ * Partial constructs must not have a `name`.
500
+ */
501
+ partial?: boolean | undefined
502
+
503
+ /**
504
+ * Guard whether the previous character can come before the construct.
505
+ */
506
+ previous?: Previous | undefined
507
+
508
+ /**
509
+ * Resolve all events when the content is complete, from the start to the end.
510
+ * Only used if `tokenize` is successful once in the content.
511
+ *
512
+ * For example, if we’re currently parsing a link title and this construct
513
+ * parses character references, then `resolveAll` is called *if* at least one
514
+ * character reference is found, ranging from the start to the end of the link
515
+ * title to the end.
516
+ */
517
+ resolveAll?: Resolver | undefined
518
+
519
+ /**
520
+ * Resolve the events from the start of the content (which includes other
521
+ * constructs) to the last one parsed by `tokenize`.
522
+ *
523
+ * For example, if we’re currently parsing a link title and this construct
524
+ * parses character references, then `resolveTo` is called with the events
525
+ * ranging from the start of the link title to the end of a character
526
+ * reference each time one is found.
527
+ */
528
+ resolveTo?: Resolver | undefined
529
+
530
+ /**
531
+ * Resolve the events parsed by `tokenize`.
532
+ *
533
+ * For example, if we’re currently parsing a link title and this construct
534
+ * parses character references, then `resolve` is called with the events
535
+ * ranging from the start to the end of a character reference each time one is
536
+ * found.
537
+ */
538
+ resolve?: Resolver | undefined
539
+
540
+ /**
541
+ * Set up a state machine to handle character codes streaming in.
542
+ */
543
+ tokenize: Tokenizer
544
+ }
545
+
546
+ /**
547
+ * Like a construct, but `tokenize` does not accept `ok` or `nok`.
548
+ */
549
+ export interface InitialConstruct extends Omit<Construct, 'tokenize'> {
550
+ tokenize: Initializer
551
+ }
552
+
553
+ /**
554
+ * Several constructs, mapped from their initial codes.
555
+ */
556
+ export type ConstructRecord = Record<
557
+ string,
558
+ Array<Construct> | Construct | undefined
559
+ >
560
+
561
+ /**
562
+ * State shared between container calls.
563
+ */
564
+ export interface ContainerState {
565
+ /**
566
+ * Special field to close the current flow (or containers).
567
+ */
568
+ _closeFlow?: boolean | undefined
569
+
570
+ /**
571
+ * Whether there are further blank lines, used by lists.
572
+ */
573
+ furtherBlankLines?: boolean | undefined
574
+
575
+ /**
576
+ * Whether there first line is blank, used by lists.
577
+ */
578
+ initialBlankLine?: boolean | undefined
579
+
580
+ /**
581
+ * Current marker, used by lists.
582
+ */
583
+ marker?: Code | undefined
584
+
585
+ /**
586
+ * Used by block quotes.
587
+ */
588
+ open?: boolean | undefined
589
+
590
+ /**
591
+ * Current size, used by lists.
592
+ */
593
+ size?: number | undefined
594
+
595
+ /**
596
+ * Current token type, used by lists.
597
+ */
598
+ type?: TokenType | undefined
599
+ }
600
+
601
+ /**
602
+ * A context object that helps w/ tokenizing markdown constructs.
603
+ */
604
+ export interface TokenizeContext {
605
+ // To do: next major: remove `_gfmTableDynamicInterruptHack` (no longer
606
+ // needed in micromark-extension-gfm-table@1.0.6).
607
+ /**
608
+ * Internal boolean shared with `micromark-extension-gfm-table` whose body
609
+ * rows are not affected by normal interruption rules.
610
+ * “Normal” rules are, for example, that an empty list item can’t interrupt:
611
+ *
612
+ * ````markdown
613
+ * a
614
+ * *
615
+ * ````
616
+ *
617
+ * The above is one paragraph.
618
+ * These rules don’t apply to table body rows:
619
+ *
620
+ * ````markdown
621
+ * | a |
622
+ * | - |
623
+ * *
624
+ * ````
625
+ *
626
+ * The above list interrupts the table.
627
+ */
628
+ _gfmTableDynamicInterruptHack?: boolean
629
+
630
+ /**
631
+ * Internal boolean shared with `micromark-extension-gfm-task-list-item` to
632
+ * signal whether the tokenizer is tokenizing the first content of a list item
633
+ * construct.
634
+ */
635
+ _gfmTasklistFirstContentOfListItem?: boolean | undefined
636
+
637
+ /**
638
+ * Declares that trailing whitespace is sensitive,
639
+ * is allowed,
640
+ * when tokenizing `text` (or `string`).
641
+ * Normally,
642
+ * trailing spaces and tabs are dropped.
643
+ */
644
+ _contentTypeTextTrailing?: boolean | undefined
645
+
646
+ /**
647
+ * Stack of label start tokens that can still close.
648
+ */
649
+ _labelStarts?: Array<Token> | undefined
650
+
651
+ /**
652
+ * Current code.
653
+ */
654
+ code: Code
655
+
656
+ /**
657
+ * Share state set when parsing containers.
658
+ *
659
+ * Containers are parsed in separate phases: their first line (`tokenize`),
660
+ * continued lines (`continuation.tokenize`), and finally `exit`.
661
+ * This record can be used to store some information between these hooks.
662
+ */
663
+ containerState?: ContainerState | undefined
664
+
665
+ /**
666
+ * The current construct.
667
+ *
668
+ * Constructs that are not `partial` are set here.
669
+ */
670
+ currentConstruct?: Construct | undefined
671
+
672
+ /**
673
+ * Current list of events.
674
+ */
675
+ events: Array<Event>
676
+
677
+ /**
678
+ * Whether we’re currently interrupting.
679
+ *
680
+ * Take for example:
681
+ *
682
+ * ```markdown
683
+ * a
684
+ * # b
685
+ * ```
686
+ *
687
+ * At 2:1, we’re “interrupting”.
688
+ */
689
+ interrupt?: boolean | undefined
690
+
691
+ /**
692
+ * The relevant parsing context.
693
+ */
694
+ parser: ParseContext
695
+
696
+ /**
697
+ * The previous code.
698
+ */
699
+ previous: Code
700
+
701
+ /**
702
+ * Define a skip
703
+ *
704
+ * As containers (block quotes, lists), “nibble” a prefix from the margins,
705
+ * where a line starts after that prefix is defined here.
706
+ * When the tokenizers moves after consuming a line ending corresponding to
707
+ * the line number in the given point, the tokenizer shifts past the prefix
708
+ * based on the column in the shifted point.
709
+ *
710
+ * @param point
711
+ * Skip.
712
+ * @returns
713
+ * Nothing.
714
+ */
715
+ defineSkip(point: Point): undefined
716
+
717
+ /**
718
+ * Get the current place.
719
+ *
720
+ * @returns
721
+ * Current point.
722
+ */
723
+ now(): Point
724
+
725
+ /**
726
+ * Get the source text that spans a token (or location).
727
+ *
728
+ * @param token
729
+ * Start/end in stream.
730
+ * @param expandTabs
731
+ * Whether to expand tabs.
732
+ * @returns
733
+ * Serialized chunks.
734
+ */
735
+ sliceSerialize(
736
+ token: Pick<Token, 'end' | 'start'>,
737
+ expandTabs?: boolean | undefined
738
+ ): string
739
+
740
+ /**
741
+ * Get the chunks that span a token (or location).
742
+ *
743
+ * @param token
744
+ * Start/end in stream.
745
+ * @returns
746
+ * List of chunks.
747
+ */
748
+ sliceStream(token: Pick<Token, 'end' | 'start'>): Array<Chunk>
749
+
750
+ /**
751
+ * Write a slice of chunks.
752
+ *
753
+ * The eof code (`null`) can be used to signal the end of the stream.
754
+ *
755
+ * @param slice
756
+ * Chunks.
757
+ * @returns
758
+ * Events.
759
+ */
760
+ write(slice: Array<Chunk>): Array<Event>
761
+ }
762
+
763
+ /**
764
+ * Encodings supported by `TextEncoder`.
765
+ *
766
+ * Arbitrary encodings can be supported depending on how the engine is built.
767
+ * So any string *could* be valid.
768
+ * But you probably want `utf-8`.
769
+ */
770
+ export type Encoding =
771
+ // Encodings supported in Node by default or when built with the small-icu option.
772
+ // Does not include aliases.
773
+ | 'utf-8' // Always supported in Node.
774
+ | 'utf-16le' // Always supported in Node.
775
+ | 'utf-16be' // Not supported when ICU is disabled.
776
+ // Everything else (depends on browser, or full ICU data).
777
+ | (string & {})
778
+
779
+ /**
780
+ * Contents of the file.
781
+ *
782
+ * Can either be text, or a `Uint8Array` like structure.
783
+ */
784
+ export type Value = Uint8Array | string
785
+
786
+ /**
787
+ * A syntax extension changes how markdown is tokenized.
788
+ *
789
+ * See: <https://github.com/micromark/micromark#syntaxextension>
790
+ */
791
+ export interface Extension {
792
+ attentionMarkers?: {null?: Array<Code> | undefined} | undefined
793
+ contentInitial?: ConstructRecord | undefined
794
+ disable?: {null?: Array<string> | undefined} | undefined
795
+ document?: ConstructRecord | undefined
796
+ flowInitial?: ConstructRecord | undefined
797
+ flow?: ConstructRecord | undefined
798
+ insideSpan?:
799
+ {null?: Array<Pick<Construct, 'resolveAll'>> | undefined} | undefined
800
+ string?: ConstructRecord | undefined
801
+ text?: ConstructRecord | undefined
802
+ }
803
+
804
+ /**
805
+ * A filtered, combined, extension.
806
+ */
807
+ export type NormalizedExtension = {
808
+ [Key in keyof Extension]: Exclude<Extension[Key], undefined>
809
+ }
810
+
811
+ /**
812
+ * A full, filtereed, normalized, extension.
813
+ */
814
+ export type FullNormalizedExtension = {
815
+ [Key in keyof Extension]-?: Exclude<Extension[Key], undefined>
816
+ }
817
+
818
+ /**
819
+ * Create a context.
820
+ *
821
+ * @param from
822
+ * Where to create from.
823
+ * @returns
824
+ * Context.
825
+ */
826
+ export type Create = (
827
+ from?: Omit<Point, '_bufferIndex' | '_index'> | undefined
828
+ ) => TokenizeContext
829
+
830
+ /**
831
+ * Config defining how to parse.
832
+ */
833
+ export interface ParseOptions {
834
+ /**
835
+ * Array of syntax extensions (default: `[]`).
836
+ */
837
+ extensions?: Array<Extension> | null | undefined
838
+ }
839
+
840
+ /**
841
+ * A context object that helps w/ parsing markdown.
842
+ */
843
+ export interface ParseContext {
844
+ /**
845
+ * All constructs.
846
+ */
847
+ constructs: FullNormalizedExtension
848
+
849
+ /**
850
+ * List of defined identifiers.
851
+ */
852
+ defined: Array<string>
853
+
854
+ /**
855
+ * Map of line numbers to whether they are lazy (as opposed to the line before
856
+ * them).
857
+ * Take for example:
858
+ *
859
+ * ```markdown
860
+ * > a
861
+ * b
862
+ * ```
863
+ *
864
+ * L1 here is not lazy, L2 is.
865
+ */
866
+ lazy: Record<number, boolean>
867
+
868
+ /**
869
+ * Create a content tokenizer.
870
+ */
871
+ content: Create
872
+
873
+ /**
874
+ * Create a document tokenizer.
875
+ */
876
+ document: Create
877
+
878
+ /**
879
+ * Create a flow tokenizer.
880
+ */
881
+ flow: Create
882
+
883
+ /**
884
+ * Create a string tokenizer.
885
+ */
886
+ string: Create
887
+
888
+ /**
889
+ * Create a text tokenizer.
890
+ */
891
+ text: Create
892
+ }
893
+
894
+ /**
895
+ * HTML compiler context.
896
+ */
897
+ export interface CompileContext {
898
+ /**
899
+ * Configuration passed by the user.
900
+ */
901
+ options: CompileOptions
902
+
903
+ /**
904
+ * Capture some of the output data.
905
+ *
906
+ * @returns
907
+ * Nothing.
908
+ */
909
+ buffer(): undefined
910
+
911
+ /**
912
+ * Make a value safe for injection in HTML (except w/ `ignoreEncode`).
913
+ *
914
+ * @param value
915
+ * Raw value.
916
+ * @returns
917
+ * Safe value.
918
+ */
919
+ encode(value: string): string
920
+
921
+ /**
922
+ * Get data from the key-value store.
923
+ *
924
+ * @param key
925
+ * Key.
926
+ * @returns
927
+ * Value at `key` in compile data.
928
+ */
929
+ getData<Key extends keyof CompileData>(key: Key): CompileData[Key]
930
+
931
+ /**
932
+ * Output an extra line ending if the previous value wasn’t EOF/EOL.
933
+ *
934
+ * @returns
935
+ * Nothing.
936
+ */
937
+ lineEndingIfNeeded(): undefined
938
+
939
+ /**
940
+ * Output raw data.
941
+ *
942
+ * @param value
943
+ * Raw value.
944
+ * @returns
945
+ * Nothing.
946
+ */
947
+ raw(value: string): undefined
948
+
949
+ /**
950
+ * Stop capturing and access the output data.
951
+ *
952
+ * @returns
953
+ * Captured data.
954
+ */
955
+ resume(): string
956
+
957
+ /**
958
+ * Set data into the key-value store.
959
+ *
960
+ * @param key
961
+ * Key.
962
+ * @param value
963
+ * Value.
964
+ * @returns
965
+ * Nothing.
966
+ */
967
+ setData<Key extends keyof CompileData>(
968
+ key: Key,
969
+ value?: CompileData[Key]
970
+ ): undefined
971
+
972
+ /**
973
+ * Get the string value of a token.
974
+ *
975
+ * @param token
976
+ * Start/end in stream.
977
+ * @param expandTabs
978
+ * Whether to expand tabs.
979
+ * @returns
980
+ * Serialized chunks.
981
+ */
982
+ sliceSerialize(
983
+ token: Pick<Token, 'end' | 'start'>,
984
+ expandTabs?: boolean | undefined
985
+ ): string
986
+
987
+ /**
988
+ * Output (parts of) HTML tags.
989
+ *
990
+ * @param value
991
+ * Raw value.
992
+ * @returns
993
+ * Nothing.
994
+ */
995
+ tag(value: string): undefined
996
+ }
997
+
998
+ /**
999
+ * Serialize micromark events as HTML.
1000
+ */
1001
+ export type Compile = (events: Array<Event>) => string
1002
+
1003
+ /**
1004
+ * Handle one token.
1005
+ *
1006
+ * @param token
1007
+ * Token.
1008
+ * @returns
1009
+ * Nothing.
1010
+ */
1011
+ export type Handle = (this: CompileContext, token: Token) => undefined
1012
+
1013
+ /**
1014
+ * Handle the whole document.
1015
+ *
1016
+ * @returns
1017
+ * Nothing.
1018
+ */
1019
+ export type DocumentHandle = (
1020
+ this: Omit<CompileContext, 'sliceSerialize'>
1021
+ ) => undefined
1022
+
1023
+ /**
1024
+ * Token types mapping to handles.
1025
+ */
1026
+ export interface Handles extends Partial<Record<TokenType, Handle>> {
1027
+ /**
1028
+ * Document handle.
1029
+ */
1030
+ null?: DocumentHandle
1031
+ }
1032
+
1033
+ /**
1034
+ * Normalized extenion.
1035
+ */
1036
+ export interface HtmlExtension {
1037
+ enter?: Handles | undefined
1038
+ exit?: Handles | undefined
1039
+ }
1040
+
1041
+ /**
1042
+ * An HTML extension changes how markdown tokens are serialized.
1043
+ */
1044
+ export type NormalizedHtmlExtension = {
1045
+ [Key in keyof HtmlExtension]-?: Exclude<HtmlExtension[Key], undefined>
1046
+ }
1047
+
1048
+ /**
1049
+ * Definition.
1050
+ */
1051
+ export interface Definition {
1052
+ /**
1053
+ * Destination.
1054
+ */
1055
+ destination?: string | undefined
1056
+ /**
1057
+ * Title.
1058
+ */
1059
+ title?: string | undefined
1060
+ }
1061
+
1062
+ /**
1063
+ * State tracked to compile events as HTML.
1064
+ */
1065
+ export interface CompileData {
1066
+ /**
1067
+ * Whether the first list item is expected, used by lists.
1068
+ */
1069
+ expectFirstItem?: boolean | undefined
1070
+
1071
+ /**
1072
+ * Current character reference kind.
1073
+ */
1074
+ characterReferenceType?: string | undefined
1075
+
1076
+ /**
1077
+ * Collected definitions.
1078
+ */
1079
+ definitions: Record<string, Definition>
1080
+
1081
+ /**
1082
+ * Whether we’re in fenced code, used by code (fenced).
1083
+ */
1084
+ fencedCodeInside?: boolean | undefined
1085
+
1086
+ /**
1087
+ * Number of fences that were seen, used by code (fenced).
1088
+ */
1089
+ fencesCount?: number | undefined
1090
+
1091
+ /**
1092
+ * Whether we’ve seen code data, used by code (fenced, indented).
1093
+ */
1094
+ flowCodeSeenData?: boolean | undefined
1095
+
1096
+ /**
1097
+ * Current heading rank, used by heading (atx, setext).
1098
+ */
1099
+ headingRank?: number | undefined
1100
+
1101
+ /**
1102
+ * Ignore encoding unsafe characters, used for example for URLs which are
1103
+ * first percent encoded, or by HTML when supporting it.
1104
+ */
1105
+ ignoreEncode?: boolean | undefined
1106
+
1107
+ /**
1108
+ * Whether we’re in code data, used by code (text).
1109
+ */
1110
+ inCodeText?: boolean | undefined
1111
+
1112
+ /**
1113
+ * Whether the last emitted value was a tag.
1114
+ */
1115
+ lastWasTag?: boolean | undefined
1116
+
1117
+ /**
1118
+ * Whether to slurp all future line endings (has to be unset manually).
1119
+ */
1120
+ slurpAllLineEndings?: boolean | undefined
1121
+
1122
+ /**
1123
+ * Whether to slurp the next line ending (resets itself on the next line
1124
+ * ending).
1125
+ */
1126
+ slurpOneLineEnding?: boolean | undefined
1127
+
1128
+ /**
1129
+ * Stack of containers, whether they’re tight or not.
1130
+ */
1131
+ tightStack: Array<boolean>
1132
+ }
1133
+
1134
+ /**
1135
+ * Type of line ending in markdown.
1136
+ */
1137
+ export type LineEnding = '\r' | '\n' | '\r\n'
1138
+
1139
+ /**
1140
+ * Compile options.
1141
+ */
1142
+ export interface CompileOptions {
1143
+ /**
1144
+ * Whether to allow (dangerous) HTML (`boolean`, default: `false`).
1145
+ *
1146
+ * The default is `false`, which still parses the HTML according to
1147
+ * `CommonMark` but shows the HTML as text instead of as elements.
1148
+ *
1149
+ * Pass `true` for trusted content to get actual HTML elements.
1150
+ */
1151
+ allowDangerousHtml?: boolean | null | undefined
1152
+
1153
+ /**
1154
+ * Whether to allow dangerous protocols in links and images (`boolean`,
1155
+ * default: `false`).
1156
+ *
1157
+ * The default is `false`, which drops URLs in links and images that use
1158
+ * dangerous protocols.
1159
+ *
1160
+ * Pass `true` for trusted content to support all protocols.
1161
+ *
1162
+ * URLs that have no protocol (which means it’s relative to the current page,
1163
+ * such as `./some/page.html`) and URLs that have a safe protocol (for
1164
+ * images: `http`, `https`; for links: `http`, `https`, `irc`, `ircs`,
1165
+ * `mailto`, `xmpp`), are safe.
1166
+ * All other URLs are dangerous and dropped.
1167
+ */
1168
+ allowDangerousProtocol?: boolean | null | undefined
1169
+
1170
+ /**
1171
+ * Default line ending to use when compiling to HTML, for line endings not in
1172
+ * `value`.
1173
+ *
1174
+ * Generally, `micromark` copies line endings (`\r`, `\n`, `\r\n`) in the
1175
+ * markdown document over to the compiled HTML.
1176
+ * In some cases, such as `> a`, CommonMark requires that extra line endings
1177
+ * are added: `<blockquote>\n<p>a</p>\n</blockquote>`.
1178
+ *
1179
+ * To create that line ending, the document is checked for the first line
1180
+ * ending that is used.
1181
+ * If there is no line ending, `defaultLineEnding` is used.
1182
+ * If that isn’t configured, `\n` is used.
1183
+ */
1184
+ defaultLineEnding?: LineEnding | null | undefined
1185
+
1186
+ /**
1187
+ * Array of HTML extensions (default: `[]`).
1188
+ */
1189
+ htmlExtensions?: Array<HtmlExtension> | null | undefined
1190
+ }
1191
+
1192
+ /**
1193
+ * Configuration.
1194
+ */
1195
+ export type Options = CompileOptions & ParseOptions
1196
+
1197
+ /**
1198
+ * Enum of allowed token types.
1199
+ */
1200
+ export type TokenType = keyof TokenTypeMap
1201
+
1202
+ // Note: when changing the next interface, you likely also have to change
1203
+ // `micromark-util-symbol`.
1204
+ /**
1205
+ * Map of allowed token types.
1206
+ */
1207
+ export interface TokenTypeMap {
1208
+ // Note: these are compiled away.
1209
+ attentionSequence: 'attentionSequence' // To do: remove.
1210
+ space: 'space' // To do: remove.
1211
+
1212
+ data: 'data'
1213
+ whitespace: 'whitespace'
1214
+ lineEnding: 'lineEnding'
1215
+ lineEndingBlank: 'lineEndingBlank'
1216
+ linePrefix: 'linePrefix'
1217
+ lineSuffix: 'lineSuffix'
1218
+ atxHeading: 'atxHeading'
1219
+ atxHeadingSequence: 'atxHeadingSequence'
1220
+ atxHeadingText: 'atxHeadingText'
1221
+ autolink: 'autolink'
1222
+ autolinkEmail: 'autolinkEmail'
1223
+ autolinkMarker: 'autolinkMarker'
1224
+ autolinkProtocol: 'autolinkProtocol'
1225
+ characterEscape: 'characterEscape'
1226
+ characterEscapeValue: 'characterEscapeValue'
1227
+ characterReference: 'characterReference'
1228
+ characterReferenceMarker: 'characterReferenceMarker'
1229
+ characterReferenceMarkerNumeric: 'characterReferenceMarkerNumeric'
1230
+ characterReferenceMarkerHexadecimal: 'characterReferenceMarkerHexadecimal'
1231
+ characterReferenceValue: 'characterReferenceValue'
1232
+ codeFenced: 'codeFenced'
1233
+ codeFencedFence: 'codeFencedFence'
1234
+ codeFencedFenceSequence: 'codeFencedFenceSequence'
1235
+ codeFencedFenceInfo: 'codeFencedFenceInfo'
1236
+ codeFencedFenceMeta: 'codeFencedFenceMeta'
1237
+ codeFlowValue: 'codeFlowValue'
1238
+ codeIndented: 'codeIndented'
1239
+ codeText: 'codeText'
1240
+ codeTextData: 'codeTextData'
1241
+ codeTextPadding: 'codeTextPadding'
1242
+ codeTextSequence: 'codeTextSequence'
1243
+ content: 'content'
1244
+ definition: 'definition'
1245
+ definitionDestination: 'definitionDestination'
1246
+ definitionDestinationLiteral: 'definitionDestinationLiteral'
1247
+ definitionDestinationLiteralMarker: 'definitionDestinationLiteralMarker'
1248
+ definitionDestinationRaw: 'definitionDestinationRaw'
1249
+ definitionDestinationString: 'definitionDestinationString'
1250
+ definitionLabel: 'definitionLabel'
1251
+ definitionLabelMarker: 'definitionLabelMarker'
1252
+ definitionLabelString: 'definitionLabelString'
1253
+ definitionMarker: 'definitionMarker'
1254
+ definitionTitle: 'definitionTitle'
1255
+ definitionTitleMarker: 'definitionTitleMarker'
1256
+ definitionTitleString: 'definitionTitleString'
1257
+ emphasis: 'emphasis'
1258
+ emphasisSequence: 'emphasisSequence'
1259
+ emphasisText: 'emphasisText'
1260
+ escapeMarker: 'escapeMarker'
1261
+ hardBreakEscape: 'hardBreakEscape'
1262
+ hardBreakTrailing: 'hardBreakTrailing'
1263
+ htmlFlow: 'htmlFlow'
1264
+ htmlFlowData: 'htmlFlowData'
1265
+ htmlText: 'htmlText'
1266
+ htmlTextData: 'htmlTextData'
1267
+ image: 'image'
1268
+ label: 'label'
1269
+ labelText: 'labelText'
1270
+ labelLink: 'labelLink'
1271
+ labelImage: 'labelImage'
1272
+ labelMarker: 'labelMarker'
1273
+ labelImageMarker: 'labelImageMarker'
1274
+ labelEnd: 'labelEnd'
1275
+ link: 'link'
1276
+ paragraph: 'paragraph'
1277
+ reference: 'reference'
1278
+ referenceMarker: 'referenceMarker'
1279
+ referenceString: 'referenceString'
1280
+ resource: 'resource'
1281
+ resourceDestination: 'resourceDestination'
1282
+ resourceDestinationLiteral: 'resourceDestinationLiteral'
1283
+ resourceDestinationLiteralMarker: 'resourceDestinationLiteralMarker'
1284
+ resourceDestinationRaw: 'resourceDestinationRaw'
1285
+ resourceDestinationString: 'resourceDestinationString'
1286
+ resourceMarker: 'resourceMarker'
1287
+ resourceTitle: 'resourceTitle'
1288
+ resourceTitleMarker: 'resourceTitleMarker'
1289
+ resourceTitleString: 'resourceTitleString'
1290
+ setextHeading: 'setextHeading'
1291
+ setextHeadingText: 'setextHeadingText'
1292
+ setextHeadingLine: 'setextHeadingLine'
1293
+ setextHeadingLineSequence: 'setextHeadingLineSequence'
1294
+ strong: 'strong'
1295
+ strongSequence: 'strongSequence'
1296
+ strongText: 'strongText'
1297
+ thematicBreak: 'thematicBreak'
1298
+ thematicBreakSequence: 'thematicBreakSequence'
1299
+ blockQuote: 'blockQuote'
1300
+ blockQuotePrefix: 'blockQuotePrefix'
1301
+ blockQuoteMarker: 'blockQuoteMarker'
1302
+ blockQuotePrefixWhitespace: 'blockQuotePrefixWhitespace'
1303
+ listOrdered: 'listOrdered'
1304
+ listUnordered: 'listUnordered'
1305
+ listItemIndent: 'listItemIndent'
1306
+ listItemMarker: 'listItemMarker'
1307
+ listItemPrefix: 'listItemPrefix'
1308
+ listItemPrefixWhitespace: 'listItemPrefixWhitespace'
1309
+ listItemValue: 'listItemValue'
1310
+ chunkDocument: 'chunkDocument'
1311
+ chunkContent: 'chunkContent'
1312
+ chunkFlow: 'chunkFlow'
1313
+ chunkText: 'chunkText'
1314
+ chunkString: 'chunkString'
1315
+ }