@tickernelz/paperclip-pro-server 2026.926.6 → 2026.927.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/dist/build-info.json +1 -1
  2. package/dist/routes/agents.d.ts.map +1 -1
  3. package/dist/routes/agents.js +3 -2
  4. package/dist/routes/agents.js.map +1 -1
  5. package/dist/routes/issues.d.ts +2 -1
  6. package/dist/routes/issues.d.ts.map +1 -1
  7. package/dist/routes/issues.js +200 -52
  8. package/dist/routes/issues.js.map +1 -1
  9. package/dist/routes/openapi.d.ts.map +1 -1
  10. package/dist/routes/openapi.js +27 -3
  11. package/dist/routes/openapi.js.map +1 -1
  12. package/dist/routes/paperclip-mcp.d.ts.map +1 -1
  13. package/dist/routes/paperclip-mcp.js +4 -15
  14. package/dist/routes/paperclip-mcp.js.map +1 -1
  15. package/dist/services/instance-settings.d.ts.map +1 -1
  16. package/dist/services/instance-settings.js +3 -1
  17. package/dist/services/instance-settings.js.map +1 -1
  18. package/dist/services/teams-catalog.d.ts +1 -0
  19. package/dist/services/teams-catalog.d.ts.map +1 -1
  20. package/dist/services/teams-catalog.js +31 -1
  21. package/dist/services/teams-catalog.js.map +1 -1
  22. package/node_modules/mdast-util-to-markdown/index.d.ts +2 -0
  23. package/node_modules/mdast-util-to-markdown/lib/configure.d.ts +5 -0
  24. package/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +1 -1
  25. package/node_modules/mdast-util-to-markdown/lib/configure.js +19 -0
  26. package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +7 -0
  27. package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +1 -1
  28. package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +12 -1
  29. package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +7 -0
  30. package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +1 -1
  31. package/node_modules/mdast-util-to-markdown/lib/handle/break.js +16 -5
  32. package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +7 -0
  33. package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +1 -1
  34. package/node_modules/mdast-util-to-markdown/lib/handle/code.js +13 -2
  35. package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +7 -0
  36. package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +1 -1
  37. package/node_modules/mdast-util-to-markdown/lib/handle/definition.js +7 -0
  38. package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +30 -2
  39. package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +1 -1
  40. package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +39 -41
  41. package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +7 -0
  42. package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +1 -1
  43. package/node_modules/mdast-util-to-markdown/lib/handle/heading.js +11 -2
  44. package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +7 -0
  45. package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +1 -1
  46. package/node_modules/mdast-util-to-markdown/lib/handle/html.js +7 -0
  47. package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +10 -0
  48. package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +1 -1
  49. package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +17 -2
  50. package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +10 -0
  51. package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +1 -1
  52. package/node_modules/mdast-util-to-markdown/lib/handle/image.js +10 -0
  53. package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +9 -0
  54. package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +1 -1
  55. package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +14 -4
  56. package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +10 -0
  57. package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +1 -1
  58. package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +17 -2
  59. package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +13 -0
  60. package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +1 -1
  61. package/node_modules/mdast-util-to-markdown/lib/handle/link.js +24 -9
  62. package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +7 -0
  63. package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +1 -1
  64. package/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +12 -1
  65. package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +7 -0
  66. package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +1 -1
  67. package/node_modules/mdast-util-to-markdown/lib/handle/list.js +7 -0
  68. package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +7 -0
  69. package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +1 -1
  70. package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  71. package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +7 -0
  72. package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +1 -1
  73. package/node_modules/mdast-util-to-markdown/lib/handle/root.js +13 -2
  74. package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +30 -2
  75. package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +1 -1
  76. package/node_modules/mdast-util-to-markdown/lib/handle/strong.js +39 -41
  77. package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +7 -0
  78. package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +1 -1
  79. package/node_modules/mdast-util-to-markdown/lib/handle/text.js +7 -0
  80. package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +6 -0
  81. package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +1 -1
  82. package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +6 -0
  83. package/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +1 -1
  84. package/node_modules/mdast-util-to-markdown/lib/index.js +34 -8
  85. package/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +1 -1
  86. package/node_modules/mdast-util-to-markdown/lib/join.js +18 -1
  87. package/node_modules/mdast-util-to-markdown/lib/types.d.ts +50 -30
  88. package/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +1 -1
  89. package/node_modules/mdast-util-to-markdown/lib/unsafe.js +15 -1
  90. package/node_modules/mdast-util-to-markdown/lib/util/character.d.ts +23 -0
  91. package/node_modules/mdast-util-to-markdown/lib/util/character.d.ts.map +1 -0
  92. package/node_modules/mdast-util-to-markdown/lib/util/character.js +32 -0
  93. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +4 -0
  94. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +1 -1
  95. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -0
  96. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +4 -0
  97. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +1 -1
  98. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -0
  99. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +4 -0
  100. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +1 -1
  101. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -0
  102. package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +4 -0
  103. package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +1 -1
  104. package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -0
  105. package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +4 -0
  106. package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +1 -1
  107. package/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -0
  108. package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +4 -0
  109. package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +1 -1
  110. package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -0
  111. package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +4 -0
  112. package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +1 -1
  113. package/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -0
  114. package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +4 -0
  115. package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +1 -1
  116. package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -0
  117. package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +4 -0
  118. package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +1 -1
  119. package/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -0
  120. package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +4 -0
  121. package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +1 -1
  122. package/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -0
  123. package/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +3 -1
  124. package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +2 -0
  125. package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +1 -1
  126. package/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +9 -0
  127. package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +95 -4
  128. package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +1 -1
  129. package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +636 -57
  130. package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +2 -2
  131. package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +1 -1
  132. package/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +1 -1
  133. package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +5 -0
  134. package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +1 -1
  135. package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +12 -7
  136. package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +5 -0
  137. package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +1 -1
  138. package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -2
  139. package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +5 -0
  140. package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +1 -1
  141. package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +20 -15
  142. package/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts +31 -0
  143. package/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts.map +1 -0
  144. package/node_modules/mdast-util-to-markdown/lib/util/html-kind.js +63 -0
  145. package/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +5 -0
  146. package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +5 -0
  147. package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +1 -1
  148. package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +11 -0
  149. package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +2 -2
  150. package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +1 -1
  151. package/node_modules/mdast-util-to-markdown/lib/util/safe.js +71 -7
  152. package/node_modules/mdast-util-to-markdown/package.json +13 -57
  153. package/node_modules/mdast-util-to-markdown/readme.md +139 -84
  154. package/package.json +21 -20
  155. package/ui-dist/assets/{AgentAvatar-CnpBTXF0.js → AgentAvatar-PT82VwmU.js} +1 -1
  156. package/ui-dist/assets/{AgentIdentity-CV55DQtR.js → AgentIdentity-MCshmbhZ.js} +1 -1
  157. package/ui-dist/assets/{Agents.production-DVAeGpcj.js → Agents.production-M_NY58co.js} +2 -2
  158. package/ui-dist/assets/{CompanyActivity.production-CfhZMRXj.js → CompanyActivity.production-DYQKd80o.js} +1 -1
  159. package/ui-dist/assets/{CompanyExport-gwDWvzqx.js → CompanyExport-Ch4DvzDC.js} +1 -1
  160. package/ui-dist/assets/{CompanySkills.production-BT_6NNEX.js → CompanySkills.production-BGOAW-TP.js} +1 -1
  161. package/ui-dist/assets/{Costs.production-rBVKz6XI.js → Costs.production-AiD1rIrs.js} +1 -1
  162. package/ui-dist/assets/{EmptyState-DeVTy8IU.js → EmptyState-DPcc0zYh.js} +1 -1
  163. package/ui-dist/assets/{MarkdownBody-Da7yUIDf.js → MarkdownBody-D0eCfSWN.js} +1 -1
  164. package/ui-dist/assets/{MarkdownEditor-7JCtdEaZ.js → MarkdownEditor-Pip4OXiJ.js} +49 -49
  165. package/ui-dist/assets/{OrgChart.production-BUvWpHy6.js → OrgChart.production-WmGsXZUQ.js} +1 -1
  166. package/ui-dist/assets/{PageSkeleton-DRRnaWWU.js → PageSkeleton-DHjTwRT3.js} +1 -1
  167. package/ui-dist/assets/{RoutineDetail.production-DOdpoBuO.js → RoutineDetail.production-B8ydFpMP.js} +1 -1
  168. package/ui-dist/assets/{RoutineRunVariablesDialog-Bj-Q_Ua3.js → RoutineRunVariablesDialog-IRX4TLng.js} +1 -1
  169. package/ui-dist/assets/{Routines.production-DaUtfMFw.js → Routines.production-Bcb1R-Uu.js} +1 -1
  170. package/ui-dist/assets/{SidebarContext-CxjppFTY.js → SidebarContext-D01pu4wh.js} +1 -1
  171. package/ui-dist/assets/{StatusIcon-j05cEqDO.js → StatusIcon-BuUYMqqU.js} +1 -1
  172. package/ui-dist/assets/{agents-ZcIBncVi.js → agents-BlSzFh-1.js} +1 -1
  173. package/ui-dist/assets/{badge-B4sBXDQo.js → badge-Cf7ihb3q.js} +1 -1
  174. package/ui-dist/assets/{bot-CcFVz40n.js → bot-DZDpMzjD.js} +1 -1
  175. package/ui-dist/assets/{button-LkWt40cm.js → button-CAPbz11u.js} +1 -1
  176. package/ui-dist/assets/{card-DbvoJZ3K.js → card-dmVcp3AX.js} +1 -1
  177. package/ui-dist/assets/{check-CgfxcCMv.js → check-DDiXDm2i.js} +1 -1
  178. package/ui-dist/assets/{checkbox-CLAkJpms.js → checkbox-CmMbs2PZ.js} +1 -1
  179. package/ui-dist/assets/{chevron-down-CpKmud_n.js → chevron-down-F9aZv-V7.js} +1 -1
  180. package/ui-dist/assets/{chevron-right-IZydUoW5.js → chevron-right-B9JUOr38.js} +1 -1
  181. package/ui-dist/assets/{clipboard-CjMs5cp9.js → clipboard-CYJ5Q78m.js} +1 -1
  182. package/ui-dist/assets/{company-members-Dyq_pnza.js → company-members-BcZm1g8Q.js} +1 -1
  183. package/ui-dist/assets/createLucideIcon-r3v6fbGz.js +92 -0
  184. package/ui-dist/assets/{definition-6XjQ-LsW.js → definition-Irgr7mY_.js} +1 -1
  185. package/ui-dist/assets/{dist-pDmgIRxg.js → dist-5v80Jc6A.js} +1 -1
  186. package/ui-dist/assets/{dist-Cqh7BG-j.js → dist-D1zgkcBw.js} +1 -1
  187. package/ui-dist/assets/{environments-xbdxVBLT.js → environments-BVeNFanj.js} +1 -1
  188. package/ui-dist/assets/{external-link-BbeUY6zf.js → external-link-0lrOvZWO.js} +1 -1
  189. package/ui-dist/assets/{file-text-BMJQ4LZs.js → file-text-C9vgFckt.js} +1 -1
  190. package/ui-dist/assets/{health-Bj6kLXe5.js → health-DeeeogeJ.js} +1 -1
  191. package/ui-dist/assets/{heartbeats-DFiFf4Zf.js → heartbeats-CK_aXmx5.js} +1 -1
  192. package/ui-dist/assets/{index-Cf2CHzHP.js → index-F2pxxyIV.js} +153 -153
  193. package/ui-dist/assets/{input-a7SggR2b.js → input-DpsS9it-.js} +1 -1
  194. package/ui-dist/assets/{label-Dnc69R1W.js → label-C2ddSDJj.js} +1 -1
  195. package/ui-dist/assets/{loader-circle-Cu72DKdC.js → loader-circle-BD9wx-lw.js} +1 -1
  196. package/ui-dist/assets/{mention-chips-BEaOTvHT.js → mention-chips-DXumPrOR.js} +1 -1
  197. package/ui-dist/assets/{octagon-alert-DfqJ6RjK.js → octagon-alert-rGMwyrWA.js} +1 -1
  198. package/ui-dist/assets/{rotate-ccw-DiFaj3XM.js → rotate-ccw-CRAQ3Xng.js} +1 -1
  199. package/ui-dist/assets/{router-G1KztA90.js → router-DyZkoSkG.js} +2 -2
  200. package/ui-dist/assets/{save-D9PtvKKu.js → save-DUnPDT6R.js} +1 -1
  201. package/ui-dist/assets/{select-DSr2hsz2.js → select-mS22eY6T.js} +1 -1
  202. package/ui-dist/assets/{sheet-H27vJn3G.js → sheet-DeCxNmfl.js} +1 -1
  203. package/ui-dist/assets/{skeleton-CPVPMT4g.js → skeleton-CKir8TUW.js} +1 -1
  204. package/ui-dist/assets/{tabs-D8G3-AL7.js → tabs-DWRZjksg.js} +1 -1
  205. package/ui-dist/assets/{triangle-alert-DiD4Atur.js → triangle-alert-CgJcxSQX.js} +1 -1
  206. package/ui-dist/assets/{use-adapter-capabilities-D_QCYxa2.js → use-adapter-capabilities-BiWYK4zJ.js} +1 -1
  207. package/ui-dist/assets/{useHiddenSettings-vbDpbX0U.js → useHiddenSettings-2JpxuJV7.js} +1 -1
  208. package/ui-dist/assets/{zap-CCqZhqc3.js → zap-P-cXfK28.js} +1 -1
  209. package/ui-dist/index.html +45 -45
  210. package/ui-dist/sw.js +1 -1
  211. package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts +0 -7
  212. package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map +0 -1
  213. package/ui-dist/assets/createLucideIcon-CZEG6UJ7.js +0 -92
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred strong option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['strong'], null | undefined>}
10
+ * Preferred strong marker.
7
11
  */
8
12
  export function checkStrong(state: State): Exclude<Options["strong"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-strong.d.ts","sourceRoot":"","sources":["check-strong.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,mCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAcxD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-strong.d.ts","sourceRoot":"","sources":["check-strong.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,mCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAexD;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred strong option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['strong'], null | undefined>}
11
+ * Preferred strong marker.
8
12
  */
9
13
  export function checkStrong(state) {
10
14
  const marker = state.options.strong || '*'
@@ -3,6 +3,8 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Compiles a pattern object into a regular expression.
7
+ *
6
8
  * @type {CompilePattern}
7
9
  */
8
10
  export function compilePattern(pattern) {
@@ -13,7 +15,7 @@ export function compilePattern(pattern) {
13
15
 
14
16
  pattern._compiled = new RegExp(
15
17
  (before ? '(' + before + ')' : '') +
16
- (/[|\\{}()[\]^$+*?.-]/.test(pattern.character) ? '\\' : '') +
18
+ (/[$()*+\-.?[\\\]^{|}]/.test(pattern.character) ? '\\' : '') +
17
19
  pattern.character +
18
20
  (pattern.after ? '(?:' + pattern.after + ')' : ''),
19
21
  'g'
@@ -3,6 +3,8 @@
3
3
  * @import {FlowChildren, FlowParents, TrackFields} from '../types.js'
4
4
  */
5
5
  /**
6
+ * Serialize the children of a parent that contains flow children.
7
+ *
6
8
  * @param {FlowParents} parent
7
9
  * Parent of flow nodes.
8
10
  * @param {State} state
@@ -1 +1 @@
1
- {"version":3,"file":"container-flow.d.ts","sourceRoot":"","sources":["container-flow.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;GASG;AACH,sCATW,WAAW,SAEX,KAAK,QAEL,WAAW,GAET,MAAM,CA0ClB;iCApDwD,aAAa;2BAD9C,wBAAwB;iCACS,aAAa"}
1
+ {"version":3,"file":"container-flow.d.ts","sourceRoot":"","sources":["container-flow.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;GAWG;AACH,sCATW,WAAW,SAEX,KAAK,QAEL,WAAW,GAET,MAAM,CA0ClB;iCAtDwD,aAAa;2BAD9C,wBAAwB;iCACS,aAAa"}
@@ -4,6 +4,8 @@
4
4
  */
5
5
 
6
6
  /**
7
+ * Serialize the children of a parent that contains flow children.
8
+ *
7
9
  * @param {FlowParents} parent
8
10
  * Parent of flow nodes.
9
11
  * @param {State} state
@@ -55,11 +57,18 @@ export function containerFlow(parent, state, info) {
55
57
  }
56
58
 
57
59
  /**
60
+ * Determine the markdown to insert between two flow nodes.
61
+ *
58
62
  * @param {FlowChildren} left
63
+ * Left flow node.
59
64
  * @param {FlowChildren} right
65
+ * Right flow node.
60
66
  * @param {FlowParents} parent
67
+ * Parent of the flow nodes.
61
68
  * @param {State} state
69
+ * Info passed around.
62
70
  * @returns {string}
71
+ * Markdown to insert between the two flow nodes.
63
72
  */
64
73
  function between(left, right, parent, state) {
65
74
  let index = state.join.length
@@ -1,18 +1,109 @@
1
1
  /**
2
2
  * Serialize the children of a parent that contains phrasing children.
3
3
  *
4
- * These children will be joined flush together.
5
- *
6
4
  * @param {PhrasingParents} parent
7
- * Parent of flow nodes.
5
+ * Parent of phrasing nodes.
8
6
  * @param {State} state
9
7
  * Info passed around about the current state.
10
8
  * @param {Info} info
11
9
  * Info on where we are in the document we are generating.
12
10
  * @returns {string}
13
- * Serialized children, joined together.
11
+ * Serialized result.
14
12
  */
15
13
  export function containerPhrasing(parent: PhrasingParents, state: State, info: Info): string;
14
+ /**
15
+ * Attention, of which the sequence is chosen later.
16
+ */
17
+ export type AttentionResult = {
18
+ /**
19
+ * Serialized children.
20
+ */
21
+ children: Array<Item>;
22
+ /**
23
+ * Sequences that can be used, in order of preference.
24
+ */
25
+ sequences: Array<string>;
26
+ };
27
+ /**
28
+ * Improvement of attention sequences.
29
+ */
30
+ export type Improvement = {
31
+ /**
32
+ * Chosen sequences for each attention.
33
+ */
34
+ chosen: Map<AttentionResult, string>;
35
+ /**
36
+ * Tokens involved in the improvement.
37
+ */
38
+ tokens: Array<Token>;
39
+ /**
40
+ * Mistake that led to this improvement, if any.
41
+ */
42
+ mistake: Mistake | undefined;
43
+ };
44
+ /**
45
+ * Serialized phrasing.
46
+ */
47
+ export type Item = AttentionResult | string;
48
+ /**
49
+ * Sequence that does not form its attention.
50
+ */
51
+ export type Mistake = {
52
+ /**
53
+ * Attention to try other sequences for.
54
+ */
55
+ attention: Array<AttentionResult>;
56
+ /**
57
+ * Index of the token.
58
+ */
59
+ index: number;
60
+ };
61
+ /**
62
+ * Sequences next to each other with the same marker.
63
+ */
64
+ export type Run = {
65
+ /**
66
+ * Whether it can close.
67
+ */
68
+ close: boolean;
69
+ /**
70
+ * Index after the last marker not used (to open).
71
+ */
72
+ end: number;
73
+ /**
74
+ * Sequence of each marker.
75
+ */
76
+ markers: Array<Token>;
77
+ /**
78
+ * Whether it can open.
79
+ */
80
+ open: boolean;
81
+ /**
82
+ * Whether it can be split (built-in attention).
83
+ */
84
+ split: boolean;
85
+ /**
86
+ * Index of the first marker not used (to close).
87
+ */
88
+ start: number;
89
+ /**
90
+ * Sequences.
91
+ */
92
+ tokens: Array<Token>;
93
+ };
94
+ /**
95
+ * Rendered phrasing.
96
+ */
97
+ export type Token = {
98
+ /**
99
+ * Attention, if this is one of its sequences.
100
+ */
101
+ attention: AttentionResult | undefined;
102
+ /**
103
+ * Value.
104
+ */
105
+ value: string;
106
+ };
16
107
  import type { PhrasingParents } from '../types.js';
17
108
  import type { State } from 'mdast-util-to-markdown';
18
109
  import type { Info } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"container-phrasing.d.ts","sourceRoot":"","sources":["container-phrasing.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,0CATW,eAAe,SAEf,KAAK,QAEL,IAAI,GAEF,MAAM,CA0GlB;qCA1HiC,aAAa;2BADT,wBAAwB;0BAAxB,wBAAwB"}
1
+ {"version":3,"file":"container-phrasing.d.ts","sourceRoot":"","sources":["container-phrasing.js"],"names":[],"mappings":"AA+NA;;;;;;;;;;;GAWG;AACH,0CATW,eAAe,SAEf,KAAK,QAEL,IAAI,GAEF,MAAM,CAKlB;;;;;;;;cA5Ma,KAAK,CAAC,IAAI,CAAC;;;;eAEX,KAAK,CAAC,MAAM,CAAC;;;;;;;;;YAOb,GAAG,CAAC,eAAe,EAAE,MAAM,CAAC;;;;YAE5B,KAAK,CAAC,KAAK,CAAC;;;;aAEZ,OAAO,GAAG,SAAS;;;;;mBAKpB,eAAe,GAAG,MAAM;;;;;;;;eAOvB,KAAK,CAAC,eAAe,CAAC;;;;WAEtB,MAAM;;;;;;;;;WAON,OAAO;;;;SAEP,MAAM;;;;aAEN,KAAK,CAAC,KAAK,CAAC;;;;UAEZ,OAAO;;;;WAEP,OAAO;;;;WAEP,MAAM;;;;YAEN,KAAK,CAAC,KAAK,CAAC;;;;;;;;;eAOZ,eAAe,GAAG,SAAS;;;;WAE3B,MAAM;;qCAtFc,aAAa;2BADE,wBAAwB;0BAAxB,wBAAwB"}