@openclaw/feishu 2026.10.2 → 2026.10.5-beta.2

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 (325) hide show
  1. package/dist/.setup/{app-registration-BB6TubaW.mjs → app-registration-DQOq5urV.mjs} +13 -32
  2. package/dist/.setup/{channel-DZakdZ3r.mjs → channel-CjGGyrdx.mjs} +87 -174
  3. package/dist/.setup/{channel.runtime-rXFuQXLL.mjs → channel.runtime-SaC_uTPM.mjs} +57 -74
  4. package/dist/.setup/{chat-mTBvMMvx.mjs → chat-fC3dvxFs.mjs} +16 -28
  5. package/dist/.setup/{client-CcxmEkoy.mjs → client-wwr8PGPH.mjs} +24 -30
  6. package/dist/.setup/{conversation-id-C1ofUfU8.mjs → conversation-id-D00i9uy5.mjs} +5 -10
  7. package/dist/.setup/{doctor-contract-DyOo8NvC.mjs → doctor-contract-oIpUWtNO.mjs} +8 -15
  8. package/dist/.setup/{monitor-CXaFHMmi.mjs → monitor-Yt__BUki.mjs} +33 -54
  9. package/dist/.setup/{monitor.account-cJ8gavqv.mjs → monitor.account-CVz16781.mjs} +359 -658
  10. package/dist/.setup/{probe-BjSykXB8.mjs → probe-DXnFxq5j.mjs} +14 -17
  11. package/dist/.setup/{reply-delivery-result-laBNOmBu.mjs → reply-delivery-result-iCCrdxE1.mjs} +153 -181
  12. package/dist/.setup/{session-conversation-C53IEUWt.mjs → session-conversation-BSBNK5Mq.mjs} +1 -1
  13. package/dist/.setup/{setup-api-fZcYXGxe.mjs → setup-api-B_LFQQ-Q.mjs} +1 -1
  14. package/dist/.setup/{subagent-hooks-C8Z_x3KJ.mjs → subagent-hooks-9Pc1-k37.mjs} +7 -17
  15. package/dist/.setup/{thread-bindings-jW2x5VuN.mjs → thread-bindings-DdNLxoL3.mjs} +21 -44
  16. package/dist/api.js +218 -326
  17. package/dist/channel-plugin-api.js +1 -1
  18. package/dist/contract-api.js +1 -1
  19. package/dist/doctor-contract-api.js +1 -1
  20. package/dist/session-binding-contract-api.js +1 -1
  21. package/dist/session-key-api.js +1 -1
  22. package/dist/setup-api.js +1 -1
  23. package/dist/setup-entry.js +1 -1
  24. package/dist/subagent-hooks-api.js +1 -1
  25. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +35 -0
  26. package/node_modules/@openclaw/fs-safe/README.md +1 -1
  27. package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +1 -1
  28. package/node_modules/@openclaw/fs-safe/dist/advanced.js +1 -1
  29. package/node_modules/@openclaw/fs-safe/dist/archive-durability.js +1 -1
  30. package/node_modules/@openclaw/fs-safe/dist/archive-merge.js +4 -4
  31. package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
  32. package/node_modules/@openclaw/fs-safe/dist/archive-read.js +5 -4
  33. package/node_modules/@openclaw/fs-safe/dist/archive-staging.d.ts +1 -1
  34. package/node_modules/@openclaw/fs-safe/dist/archive-staging.js +22 -38
  35. package/node_modules/@openclaw/fs-safe/dist/copy-path-admission.d.ts +17 -0
  36. package/node_modules/@openclaw/fs-safe/dist/copy-path-admission.js +117 -0
  37. package/node_modules/@openclaw/fs-safe/dist/copy-root-file-sync.d.ts +8 -5
  38. package/node_modules/@openclaw/fs-safe/dist/copy-root-file-sync.js +27 -50
  39. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.d.ts +3 -0
  40. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +57 -11
  41. package/node_modules/@openclaw/fs-safe/dist/guarded-mutation.js +5 -5
  42. package/node_modules/@openclaw/fs-safe/dist/guest-native-python.js +52 -5
  43. package/node_modules/@openclaw/fs-safe/dist/guest.js +1 -1
  44. package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +1 -0
  45. package/node_modules/@openclaw/fs-safe/dist/native-operations.d.ts +0 -1
  46. package/node_modules/@openclaw/fs-safe/dist/native-operations.js +22 -26
  47. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.js +5 -1
  48. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +4 -1
  49. package/node_modules/@openclaw/fs-safe/dist/permission-exec.js +2 -1
  50. package/node_modules/@openclaw/fs-safe/dist/pinned-write-types.d.ts +6 -1
  51. package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +2 -2
  52. package/node_modules/@openclaw/fs-safe/dist/publish-file.js +34 -7
  53. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.js +1 -4
  54. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +6 -0
  55. package/node_modules/@openclaw/fs-safe/dist/root-create-input.d.ts +15 -1
  56. package/node_modules/@openclaw/fs-safe/dist/root-create-input.js +4 -0
  57. package/node_modules/@openclaw/fs-safe/dist/root-directory-entry.js +1 -1
  58. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts +0 -1
  59. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.js +6 -12
  60. package/node_modules/@openclaw/fs-safe/dist/root-impl.js +15 -15
  61. package/node_modules/@openclaw/fs-safe/dist/root-paths.js +1 -1
  62. package/node_modules/@openclaw/fs-safe/dist/root-walk.js +4 -4
  63. package/node_modules/@openclaw/fs-safe/dist/root-write-verification.d.ts +10 -1
  64. package/node_modules/@openclaw/fs-safe/dist/root-write-verification.js +20 -0
  65. package/node_modules/@openclaw/fs-safe/dist/secure-temp-dir.js +19 -7
  66. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.js +25 -3
  67. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission.d.ts +2 -0
  68. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-retained.d.ts +14 -0
  69. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-retained.js +187 -0
  70. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock.js +15 -1
  71. package/node_modules/@openclaw/fs-safe/dist/temp-directory-diagnostics.d.ts +10 -0
  72. package/node_modules/@openclaw/fs-safe/dist/temp-directory-diagnostics.js +29 -0
  73. package/node_modules/@openclaw/fs-safe/dist/temp-target.js +1 -1
  74. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.js +6 -6
  75. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.d.ts +4 -4
  76. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.js +17 -16
  77. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-descriptor.js +20 -28
  78. package/node_modules/@openclaw/fs-safe/dist/walk.js +2 -13
  79. package/node_modules/@openclaw/fs-safe/dist/watch-native.d.ts +2 -2
  80. package/node_modules/@openclaw/fs-safe/dist/watch-native.js +3 -1
  81. package/node_modules/@openclaw/fs-safe/dist/watch-rescan.js +3 -9
  82. package/node_modules/@openclaw/fs-safe/dist/watch.js +2 -3
  83. package/node_modules/@openclaw/fs-safe/docs/advanced.md +1 -1
  84. package/node_modules/@openclaw/fs-safe/docs/archive.md +3 -0
  85. package/node_modules/@openclaw/fs-safe/docs/atomic.md +11 -3
  86. package/node_modules/@openclaw/fs-safe/docs/contributing.md +1 -1
  87. package/node_modules/@openclaw/fs-safe/docs/copy.md +48 -0
  88. package/node_modules/@openclaw/fs-safe/docs/guest.md +21 -4
  89. package/node_modules/@openclaw/fs-safe/docs/path-scope.md +4 -0
  90. package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +46 -8
  91. package/node_modules/@openclaw/fs-safe/docs/temp.md +12 -0
  92. package/node_modules/@openclaw/fs-safe/docs/watch.md +3 -2
  93. package/node_modules/@openclaw/fs-safe/package.json +15 -15
  94. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  95. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
  96. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  97. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
  98. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  99. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
  100. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  101. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
  102. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  103. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
  104. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  105. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
  106. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  107. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
  108. package/node_modules/follow-redirects/index.js +10 -1
  109. package/node_modules/follow-redirects/package.json +1 -1
  110. package/node_modules/mdast-util-to-markdown/index.d.ts +2 -0
  111. package/node_modules/mdast-util-to-markdown/lib/configure.d.ts +5 -0
  112. package/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +1 -1
  113. package/node_modules/mdast-util-to-markdown/lib/configure.js +19 -0
  114. package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +7 -0
  115. package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +1 -1
  116. package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +12 -1
  117. package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +7 -0
  118. package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +1 -1
  119. package/node_modules/mdast-util-to-markdown/lib/handle/break.js +16 -5
  120. package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +7 -0
  121. package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +1 -1
  122. package/node_modules/mdast-util-to-markdown/lib/handle/code.js +13 -2
  123. package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +7 -0
  124. package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +1 -1
  125. package/node_modules/mdast-util-to-markdown/lib/handle/definition.js +7 -0
  126. package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +30 -2
  127. package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +1 -1
  128. package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +39 -41
  129. package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +7 -0
  130. package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +1 -1
  131. package/node_modules/mdast-util-to-markdown/lib/handle/heading.js +11 -2
  132. package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +7 -0
  133. package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +1 -1
  134. package/node_modules/mdast-util-to-markdown/lib/handle/html.js +7 -0
  135. package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +10 -0
  136. package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +1 -1
  137. package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +17 -2
  138. package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +10 -0
  139. package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +1 -1
  140. package/node_modules/mdast-util-to-markdown/lib/handle/image.js +10 -0
  141. package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +9 -0
  142. package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +1 -1
  143. package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +14 -4
  144. package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +10 -0
  145. package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +1 -1
  146. package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +17 -2
  147. package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +13 -0
  148. package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +1 -1
  149. package/node_modules/mdast-util-to-markdown/lib/handle/link.js +24 -9
  150. package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +7 -0
  151. package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +1 -1
  152. package/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +12 -1
  153. package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +7 -0
  154. package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +1 -1
  155. package/node_modules/mdast-util-to-markdown/lib/handle/list.js +7 -0
  156. package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +7 -0
  157. package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +1 -1
  158. package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  159. package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +7 -0
  160. package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +1 -1
  161. package/node_modules/mdast-util-to-markdown/lib/handle/root.js +13 -2
  162. package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +30 -2
  163. package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +1 -1
  164. package/node_modules/mdast-util-to-markdown/lib/handle/strong.js +39 -41
  165. package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +7 -0
  166. package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +1 -1
  167. package/node_modules/mdast-util-to-markdown/lib/handle/text.js +7 -0
  168. package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +6 -0
  169. package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +1 -1
  170. package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +6 -0
  171. package/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +1 -1
  172. package/node_modules/mdast-util-to-markdown/lib/index.js +34 -8
  173. package/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +1 -1
  174. package/node_modules/mdast-util-to-markdown/lib/join.js +18 -1
  175. package/node_modules/mdast-util-to-markdown/lib/types.d.ts +50 -30
  176. package/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +1 -1
  177. package/node_modules/mdast-util-to-markdown/lib/unsafe.js +15 -1
  178. package/node_modules/mdast-util-to-markdown/lib/util/character.d.ts +23 -0
  179. package/node_modules/mdast-util-to-markdown/lib/util/character.d.ts.map +1 -0
  180. package/node_modules/mdast-util-to-markdown/lib/util/character.js +32 -0
  181. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +4 -0
  182. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +1 -1
  183. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -0
  184. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +4 -0
  185. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +1 -1
  186. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -0
  187. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +4 -0
  188. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +1 -1
  189. package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -0
  190. package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +4 -0
  191. package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +1 -1
  192. package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -0
  193. package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +4 -0
  194. package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +1 -1
  195. package/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -0
  196. package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +4 -0
  197. package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +1 -1
  198. package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -0
  199. package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +4 -0
  200. package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +1 -1
  201. package/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -0
  202. package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +4 -0
  203. package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +1 -1
  204. package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -0
  205. package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +4 -0
  206. package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +1 -1
  207. package/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -0
  208. package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +4 -0
  209. package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +1 -1
  210. package/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -0
  211. package/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +3 -1
  212. package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +2 -0
  213. package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +1 -1
  214. package/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +9 -0
  215. package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +95 -4
  216. package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +1 -1
  217. package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +636 -57
  218. package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +2 -2
  219. package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +1 -1
  220. package/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +1 -1
  221. package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +5 -0
  222. package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +1 -1
  223. package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +12 -7
  224. package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +5 -0
  225. package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +1 -1
  226. package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -2
  227. package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +5 -0
  228. package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +1 -1
  229. package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +20 -15
  230. package/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts +31 -0
  231. package/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts.map +1 -0
  232. package/node_modules/mdast-util-to-markdown/lib/util/html-kind.js +63 -0
  233. package/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +5 -0
  234. package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +5 -0
  235. package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +1 -1
  236. package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +11 -0
  237. package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +2 -2
  238. package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +1 -1
  239. package/node_modules/mdast-util-to-markdown/lib/util/safe.js +71 -7
  240. package/node_modules/mdast-util-to-markdown/package.json +13 -57
  241. package/node_modules/mdast-util-to-markdown/readme.md +139 -84
  242. package/node_modules/micromark/dev/lib/compile.d.ts.map +1 -1
  243. package/node_modules/micromark/dev/lib/compile.js +14 -4
  244. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -1
  245. package/node_modules/micromark/dev/lib/create-tokenizer.js +7 -6
  246. package/node_modules/micromark/dev/lib/initialize/document.js +25 -21
  247. package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -1
  248. package/node_modules/micromark/dev/lib/initialize/text.js +10 -6
  249. package/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -1
  250. package/node_modules/micromark/dev/lib/preprocess.js +19 -21
  251. package/node_modules/micromark/lib/compile.d.ts.map +1 -1
  252. package/node_modules/micromark/lib/compile.js +37 -29
  253. package/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -1
  254. package/node_modules/micromark/lib/create-tokenizer.js +37 -35
  255. package/node_modules/micromark/lib/initialize/document.js +21 -13
  256. package/node_modules/micromark/lib/initialize/text.d.ts.map +1 -1
  257. package/node_modules/micromark/lib/initialize/text.js +7 -3
  258. package/node_modules/micromark/lib/preprocess.d.ts.map +1 -1
  259. package/node_modules/micromark/lib/preprocess.js +16 -19
  260. package/node_modules/micromark/package.json +2 -15
  261. package/node_modules/micromark-core-commonmark/dev/lib/attention.js +18 -24
  262. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -1
  263. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +1 -43
  264. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +19 -43
  265. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +2 -6
  266. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -1
  267. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +2 -53
  268. package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +14 -12
  269. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -1
  270. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +14 -5
  271. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -1
  272. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +14 -5
  273. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +4 -0
  274. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +1 -0
  275. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +67 -0
  276. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -1
  277. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +8 -5
  278. package/node_modules/micromark-core-commonmark/lib/attention.js +14 -24
  279. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -1
  280. package/node_modules/micromark-core-commonmark/lib/code-fenced.js +1 -39
  281. package/node_modules/micromark-core-commonmark/lib/code-indented.js +11 -29
  282. package/node_modules/micromark-core-commonmark/lib/heading-atx.js +2 -6
  283. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -1
  284. package/node_modules/micromark-core-commonmark/lib/html-flow.js +2 -51
  285. package/node_modules/micromark-core-commonmark/lib/label-end.js +11 -10
  286. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -1
  287. package/node_modules/micromark-core-commonmark/lib/label-start-image.js +11 -3
  288. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -1
  289. package/node_modules/micromark-core-commonmark/lib/label-start-link.js +11 -3
  290. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +4 -0
  291. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +1 -0
  292. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +61 -0
  293. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -1
  294. package/node_modules/micromark-core-commonmark/lib/setext-underline.js +7 -5
  295. package/node_modules/micromark-core-commonmark/package.json +4 -16
  296. package/node_modules/micromark-factory-space/dev/index.d.ts +24 -1
  297. package/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -1
  298. package/node_modules/micromark-factory-space/dev/index.js +58 -3
  299. package/node_modules/micromark-factory-space/index.d.ts +24 -1
  300. package/node_modules/micromark-factory-space/index.d.ts.map +1 -1
  301. package/node_modules/micromark-factory-space/index.js +55 -3
  302. package/node_modules/micromark-factory-space/package.json +1 -10
  303. package/node_modules/micromark-factory-space/readme.md +25 -25
  304. package/node_modules/micromark-util-edit-map/dev/index.d.ts +78 -0
  305. package/node_modules/micromark-util-edit-map/dev/index.d.ts.map +1 -0
  306. package/node_modules/micromark-util-edit-map/dev/index.js +237 -0
  307. package/node_modules/micromark-util-edit-map/index.d.ts +78 -0
  308. package/node_modules/micromark-util-edit-map/index.d.ts.map +1 -0
  309. package/node_modules/micromark-util-edit-map/index.js +225 -0
  310. package/node_modules/micromark-util-edit-map/license +22 -0
  311. package/node_modules/micromark-util-edit-map/package.json +48 -0
  312. package/node_modules/micromark-util-edit-map/readme.md +234 -0
  313. package/node_modules/micromark-util-types/index.d.ts +6 -3
  314. package/node_modules/micromark-util-types/package.json +2 -36
  315. package/node_modules/ws/lib/websocket.js +17 -3
  316. package/node_modules/ws/package.json +1 -1
  317. package/package.json +5 -5
  318. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-arbitration.d.ts +0 -17
  319. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-arbitration.js +0 -66
  320. package/node_modules/@openclaw/fs-safe/dist/publish-file-native.d.ts +0 -4
  321. package/node_modules/@openclaw/fs-safe/dist/publish-file-native.js +0 -35
  322. package/node_modules/@openclaw/fs-safe/dist/root-move-preflight.d.ts +0 -7
  323. package/node_modules/@openclaw/fs-safe/dist/root-move-preflight.js +0 -16
  324. package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts +0 -7
  325. package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map +0 -1
@@ -392,22 +392,6 @@ export type ContainerPhrasing = (parent: PhrasingParents, info: Info) => string
392
392
  */
393
393
  export type CreateTracker = (info: TrackFields) => Tracker
394
394
 
395
- /**
396
- * Whether to encode things — with fields representing the surrounding of a
397
- * whole.
398
- */
399
- export interface EncodeSurrounding {
400
- /**
401
- * Whether to encode after.
402
- */
403
- after: boolean
404
-
405
- /**
406
- * Whether to encode before.
407
- */
408
- before: boolean
409
- }
410
-
411
395
  /**
412
396
  * Whether to encode things — with fields representing the relationship to a
413
397
  * whole.
@@ -482,12 +466,54 @@ export type Handlers = Record<Nodes['type'], Handle>
482
466
  * Serialized markdown representing `node`.
483
467
  */
484
468
  export type Handle = (
469
+ // type-coverage:ignore-next-line
485
470
  node: any,
486
471
  parent: Parents | undefined,
487
472
  state: State,
488
473
  Info: Info
489
474
  ) => string
490
475
 
476
+ /**
477
+ * Serialize a node as attention (emphasis, strong, strikethrough).
478
+ *
479
+ * Set as the `attention` field of a handler (`handle.attention = x`).
480
+ * This switches to a different algorithm,
481
+ * where attention is properly handled by `containerPhrasing`.
482
+ *
483
+ * @param node
484
+ * Expected mdast node.
485
+ * @param state
486
+ * Info passed around about the current state.
487
+ * @returns
488
+ * Info on how to serialize `node`.
489
+ */
490
+ export type Attention = (
491
+ // type-coverage:ignore-next-line
492
+ node: any,
493
+ state: State
494
+ ) => AttentionInfo
495
+
496
+ /**
497
+ * Info on how to serialize attention.
498
+ */
499
+ export interface AttentionInfo {
500
+ /**
501
+ * Construct to enter (such as `'emphasis'`).
502
+ */
503
+ construct: ConstructName
504
+ /**
505
+ * Markers that can be used in order of preference (such as `['*', '_']`);
506
+ * one or more strings, each just one ASCII punctuation character.
507
+ */
508
+ markers: Array<string>
509
+ /**
510
+ * Sizes of sequences that can be used in order of preference (such as `[2]`
511
+ * for strong or `[2, 1]` for GFM strikethrough);
512
+ * one or more numbers, each a positive integer.
513
+ */
514
+ sizes: Array<number>
515
+ }
516
+
491
517
  /**
492
518
  * Pad serialized markdown.
493
519
  *
@@ -610,7 +636,10 @@ export interface Options {
610
636
  */
611
637
  closeAtx?: boolean | null | undefined
612
638
  /**
613
- * Marker to use for emphasis (default: `'*'`).
639
+ * Preferred marker to use for emphasis (default: `'*'`).
640
+ *
641
+ * The other marker is sometimes used, to form for example emphasis next to
642
+ * or inside of other emphasis (`*a*_b_`).
614
643
  */
615
644
  emphasis?: '*' | '_' | null | undefined
616
645
  /**
@@ -687,7 +716,10 @@ export interface Options {
687
716
  */
688
717
  setext?: boolean | null | undefined
689
718
  /**
690
- * Marker to use for strong (default: `'*'`).
719
+ * Preferred marker to use for strong (default: `'*'`).
720
+ *
721
+ * The other marker is sometimes used, to form for example strong next to or
722
+ * inside of other strong (`**a**__b__`).
691
723
  */
692
724
  strong?: '*' | '_' | null | undefined
693
725
  /**
@@ -786,18 +818,6 @@ export interface State {
786
818
  * Get an identifier from an association to match it to others.
787
819
  */
788
820
  associationId: AssociationId
789
- /**
790
- * Info on whether to encode the surrounding of *attention*.
791
- *
792
- * Whether attention (emphasis, strong, strikethrough) forms
793
- * depends on the characters inside and outside them.
794
- * The characters inside can be handled by *attention* itself.
795
- * However the outside characters are already handled.
796
- * Or handled afterwards.
797
- * This field can be used to signal from *attention* that some parent
798
- * function (practically `containerPhrasing`) has to handle the surrounding.
799
- */
800
- attentionEncodeSurroundingInfo: EncodeSurrounding | undefined
801
821
  /**
802
822
  * List marker currently in use.
803
823
  */
@@ -1 +1 @@
1
- {"version":3,"file":"unsafe.d.ts","sourceRoot":"","sources":["unsafe.js"],"names":[],"mappings":"AAqBA,4BAA4B;AAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CA4HvB;4BAhJuC,wBAAwB"}
1
+ {"version":3,"file":"unsafe.d.ts","sourceRoot":"","sources":["unsafe.js"],"names":[],"mappings":"AAqBA,4BAA4B;AAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CAmIvB;4BAvJuC,wBAAwB"}
@@ -49,6 +49,10 @@ export const unsafe = [
49
49
  'headingAtx'
50
50
  ]
51
51
  },
52
+ {character: '\r', before: '[\\r\\n]', inConstruct: 'phrasing'},
53
+ {character: '\r', after: '\\r', inConstruct: 'phrasing'},
54
+ {character: '\n', before: '\\n', inConstruct: 'phrasing'},
55
+ {character: '\n', after: '[\\r\\n]', inConstruct: 'phrasing'},
52
56
  {character: ' ', after: '[\\r\\n]', inConstruct: 'phrasing'},
53
57
  {character: ' ', before: '[\\r\\n]', inConstruct: 'phrasing'},
54
58
  {
@@ -142,5 +146,15 @@ export const unsafe = [
142
146
  // Left brace, vertical bar, right brace are not used in markdown for
143
147
  // constructs.
144
148
  // A tilde can start code (fenced).
145
- {atBreak: true, character: '~'}
149
+ {atBreak: true, character: '~'},
150
+ {character: '<', inConstruct: 'autolink'},
151
+ {character: '>', inConstruct: 'autolink'},
152
+ {character: '\u007F', inConstruct: 'autolink'}
146
153
  ]
154
+
155
+ // Also the low ASCII control characters including space.
156
+ let code = -1
157
+
158
+ while (++code < 33) {
159
+ unsafe.push({character: String.fromCharCode(code), inConstruct: 'autolink'})
160
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Get the first character of a value.
3
+ *
4
+ * Is aware of astral characters (such as emoji).
5
+ *
6
+ * @param {string} value
7
+ * Value.
8
+ * @returns {string}
9
+ * First character; empty if `value` is empty.
10
+ */
11
+ export function firstCharacter(value: string): string;
12
+ /**
13
+ * Get the last character of a value.
14
+ *
15
+ * Is aware of astral characters (such as emoji).
16
+ *
17
+ * @param {string} value
18
+ * Value.
19
+ * @returns {string}
20
+ * Last character; empty if `value` is empty.
21
+ */
22
+ export function lastCharacter(value: string): string;
23
+ //# sourceMappingURL=character.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"character.d.ts","sourceRoot":"","sources":["character.js"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,sCALW,MAAM,GAEJ,MAAM,CAMlB;AAED;;;;;;;;;GASG;AACH,qCALW,MAAM,GAEJ,MAAM,CASlB"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Get the first character of a value.
3
+ *
4
+ * Is aware of astral characters (such as emoji).
5
+ *
6
+ * @param {string} value
7
+ * Value.
8
+ * @returns {string}
9
+ * First character; empty if `value` is empty.
10
+ */
11
+ export function firstCharacter(value) {
12
+ const code = value.codePointAt(0)
13
+ return code === undefined ? '' : String.fromCodePoint(code)
14
+ }
15
+
16
+ /**
17
+ * Get the last character of a value.
18
+ *
19
+ * Is aware of astral characters (such as emoji).
20
+ *
21
+ * @param {string} value
22
+ * Value.
23
+ * @returns {string}
24
+ * Last character; empty if `value` is empty.
25
+ */
26
+ export function lastCharacter(value) {
27
+ // Only a surrogate pair gives a code point above the BMP.
28
+ const code = value.codePointAt(value.length - 2)
29
+ return code !== undefined && code > 0xff_ff
30
+ ? value.slice(-2)
31
+ : value.slice(-1)
32
+ }
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred ordered list bullet option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['bulletOrdered'], null | undefined>}
10
+ * Preferred ordered list bullet.
7
11
  */
8
12
  export function checkBulletOrdered(state: State): Exclude<Options["bulletOrdered"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-bullet-ordered.d.ts","sourceRoot":"","sources":["check-bullet-ordered.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,0CAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAc/D;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-bullet-ordered.d.ts","sourceRoot":"","sources":["check-bullet-ordered.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,0CALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAe/D;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred ordered list bullet option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['bulletOrdered'], null | undefined>}
11
+ * Preferred ordered list bullet.
8
12
  */
9
13
  export function checkBulletOrdered(state) {
10
14
  const marker = state.options.bulletOrdered || '.'
@@ -1,6 +1,10 @@
1
1
  /**
2
+ * Checks the preferred alternate list bullet option.
3
+ *
2
4
  * @param {State} state
5
+ * Info passed around.
3
6
  * @returns {Exclude<Options['bullet'], null | undefined>}
7
+ * Preferred alternate list bullet.
4
8
  */
5
9
  export function checkBulletOther(state: State): Exclude<Options["bullet"], null | undefined>;
6
10
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-bullet-other.d.ts","sourceRoot":"","sources":["check-bullet-other.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CA6BxD;2BApCgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-bullet-other.d.ts","sourceRoot":"","sources":["check-bullet-other.js"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,wCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CA8BxD;2BAxCgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -5,8 +5,12 @@
5
5
  import {checkBullet} from './check-bullet.js'
6
6
 
7
7
  /**
8
+ * Checks the preferred alternate list bullet option.
9
+ *
8
10
  * @param {State} state
11
+ * Info passed around.
9
12
  * @returns {Exclude<Options['bullet'], null | undefined>}
13
+ * Preferred alternate list bullet.
10
14
  */
11
15
  export function checkBulletOther(state) {
12
16
  const bullet = checkBullet(state)
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred list bullet option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['bullet'], null | undefined>}
10
+ * Preferred list bullet.
7
11
  */
8
12
  export function checkBullet(state: State): Exclude<Options["bullet"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-bullet.d.ts","sourceRoot":"","sources":["check-bullet.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-bullet.d.ts","sourceRoot":"","sources":["check-bullet.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 list bullet option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['bullet'], null | undefined>}
11
+ * Preferred list bullet.
8
12
  */
9
13
  export function checkBullet(state) {
10
14
  const marker = state.options.bullet || '*'
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred emphasis option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['emphasis'], null | undefined>}
10
+ * Preferred emphasis marker.
7
11
  */
8
12
  export function checkEmphasis(state: State): Exclude<Options["emphasis"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-emphasis.d.ts","sourceRoot":"","sources":["check-emphasis.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,qCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAc1D;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-emphasis.d.ts","sourceRoot":"","sources":["check-emphasis.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,qCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAe1D;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred emphasis option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['emphasis'], null | undefined>}
11
+ * Preferred emphasis marker.
8
12
  */
9
13
  export function checkEmphasis(state) {
10
14
  const marker = state.options.emphasis || '*'
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred fence option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['fence'], null | undefined>}
10
+ * Preferred fence marker.
7
11
  */
8
12
  export function checkFence(state: State): Exclude<Options["fence"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-fence.d.ts","sourceRoot":"","sources":["check-fence.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,kCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAcvD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-fence.d.ts","sourceRoot":"","sources":["check-fence.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,kCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAevD;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred fence option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['fence'], null | undefined>}
11
+ * Preferred fence marker.
8
12
  */
9
13
  export function checkFence(state) {
10
14
  const marker = state.options.fence || '`'
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred list item indent option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['listItemIndent'], null | undefined>}
10
+ * Preferred list item indent.
7
11
  */
8
12
  export function checkListItemIndent(state: State): Exclude<Options["listItemIndent"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-list-item-indent.d.ts","sourceRoot":"","sources":["check-list-item-indent.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,2CAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAchE;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-list-item-indent.d.ts","sourceRoot":"","sources":["check-list-item-indent.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,2CALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAehE;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred list item indent option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['listItemIndent'], null | undefined>}
11
+ * Preferred list item indent.
8
12
  */
9
13
  export function checkListItemIndent(state) {
10
14
  const style = state.options.listItemIndent || 'one'
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred quote option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['quote'], null | undefined>}
10
+ * Preferred quote.
7
11
  */
8
12
  export function checkQuote(state: State): Exclude<Options["quote"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-quote.d.ts","sourceRoot":"","sources":["check-quote.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,kCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAcvD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-quote.d.ts","sourceRoot":"","sources":["check-quote.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,kCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAevD;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred quote option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['quote'], null | undefined>}
11
+ * Preferred quote.
8
12
  */
9
13
  export function checkQuote(state) {
10
14
  const marker = state.options.quote || '"'
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred rule repetition option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['ruleRepetition'], null | undefined>}
10
+ * Preferred rule repetition.
7
11
  */
8
12
  export function checkRuleRepetition(state: State): Exclude<Options["ruleRepetition"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-rule-repetition.d.ts","sourceRoot":"","sources":["check-rule-repetition.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,2CAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAchE;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-rule-repetition.d.ts","sourceRoot":"","sources":["check-rule-repetition.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,2CALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAehE;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred rule repetition option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['ruleRepetition'], null | undefined>}
11
+ * Preferred rule repetition.
8
12
  */
9
13
  export function checkRuleRepetition(state) {
10
14
  const repetition = state.options.ruleRepetition || 3
@@ -2,8 +2,12 @@
2
2
  * @import {Options, State} from 'mdast-util-to-markdown'
3
3
  */
4
4
  /**
5
+ * Checks the preferred rule option.
6
+ *
5
7
  * @param {State} state
8
+ * Info passed around.
6
9
  * @returns {Exclude<Options['rule'], null | undefined>}
10
+ * Preferred rule marker.
7
11
  */
8
12
  export function checkRule(state: State): Exclude<Options["rule"], null | undefined>;
9
13
  import type { State } from 'mdast-util-to-markdown';
@@ -1 +1 @@
1
- {"version":3,"file":"check-rule.d.ts","sourceRoot":"","sources":["check-rule.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,iCAHW,KAAK,GACH,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CActD;2BAnBgC,wBAAwB;6BAAxB,wBAAwB"}
1
+ {"version":3,"file":"check-rule.d.ts","sourceRoot":"","sources":["check-rule.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;GAOG;AACH,iCALW,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAetD;2BAvBgC,wBAAwB;6BAAxB,wBAAwB"}
@@ -3,8 +3,12 @@
3
3
  */
4
4
 
5
5
  /**
6
+ * Checks the preferred rule option.
7
+ *
6
8
  * @param {State} state
9
+ * Info passed around.
7
10
  * @returns {Exclude<Options['rule'], null | undefined>}
11
+ * Preferred rule marker.
8
12
  */
9
13
  export function checkRule(state) {
10
14
  const marker = state.options.rule || '*'
@@ -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