volute 0.49.0 → 0.50.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 (210) hide show
  1. package/README.md +2 -2
  2. package/dist/{accept-KYNC5X3U.js → accept-5NK5XJB5.js} +2 -1
  3. package/dist/{activity-events-GJJAI2WT.js → activity-events-H7YI3BTF.js} +3 -3
  4. package/dist/{ai-service-A7FS7EC3.js → ai-service-V4CTNGI3.js} +5 -4
  5. package/dist/{archive-7E3YE6VF.js → archive-ORM3ENHI.js} +3 -3
  6. package/dist/{auth-ABYLOEZ7.js → auth-DT7GY7EZ.js} +10 -6
  7. package/dist/{avatar-image-6ATV2IOZ.js → avatar-image-QEPAP3A5.js} +3 -3
  8. package/dist/{backup-XYAMT4CU.js → backup-IE6PMXJO.js} +11 -12
  9. package/dist/{bridge-3FNSWLNQ.js → bridge-YK7NTRU5.js} +2 -1
  10. package/dist/{channels-SGQZHNQJ.js → channels-FSAHOQWI.js} +2 -1
  11. package/dist/{chat-OGXAEXMV.js → chat-W5K6HCBE.js} +9 -9
  12. package/dist/{chunk-3B427GUK.js → chunk-3BAFMGCJ.js} +2 -2
  13. package/dist/{chunk-4B62E4CG.js → chunk-4CN7OCJE.js} +2 -2
  14. package/dist/{chunk-VNRSXEBF.js → chunk-574M6I7F.js} +38 -5
  15. package/dist/{chunk-HCYQRME2.js → chunk-5FVANDON.js} +2 -2
  16. package/dist/{chunk-P4LHVRNE.js → chunk-5IIVOWSP.js} +27 -19
  17. package/dist/{chunk-TXJL36ZQ.js → chunk-5PKFJHCR.js} +2 -2
  18. package/dist/{chunk-JPGHSXSV.js → chunk-5TPC4KCV.js} +23 -9
  19. package/dist/{chunk-YIJGKHIS.js → chunk-632FJ23O.js} +24 -20
  20. package/dist/{chunk-IH5TKXX6.js → chunk-636GFQNE.js} +11 -11
  21. package/dist/{chunk-EFT2OALG.js → chunk-6BM2I736.js} +20 -5
  22. package/dist/{chunk-JCBPU57A.js → chunk-74T3CEXK.js} +6 -6
  23. package/dist/{chunk-EG5LSKHU.js → chunk-77IZUVBB.js} +2 -2
  24. package/dist/{chunk-K3JOLGWF.js → chunk-7DXLIYPY.js} +76 -63
  25. package/dist/chunk-7FDWPQCU.js +289 -0
  26. package/dist/chunk-7OZWKHA3.js +548 -0
  27. package/dist/{chunk-PY24ZL62.js → chunk-7UWXAJMK.js} +1 -1
  28. package/dist/{chunk-MG3Z34YE.js → chunk-7XDOTN4R.js} +1 -1
  29. package/dist/{chunk-SX72DOO3.js → chunk-AFSLNUTT.js} +1 -1
  30. package/dist/{chunk-DVN6DNMI.js → chunk-AJWFDIEY.js} +17 -2
  31. package/dist/chunk-ALIVXDM4.js +1014 -0
  32. package/dist/{chunk-RSBL3FAD.js → chunk-CAIYV33P.js} +234 -24
  33. package/dist/{chunk-ZX46PGCC.js → chunk-E5S3ILVA.js} +1 -1
  34. package/dist/{chunk-SHKM5RGD.js → chunk-EEOMA4DX.js} +1 -1
  35. package/dist/chunk-EQKSRVDE.js +2857 -0
  36. package/dist/chunk-FNJCBRD3.js +31 -0
  37. package/dist/{chunk-EADX54RG.js → chunk-HW6Q7AMB.js} +4 -4
  38. package/dist/chunk-JI67D7O2.js +1222 -0
  39. package/dist/{chunk-KHCKZ36O.js → chunk-KAEZOVP6.js} +1 -1
  40. package/dist/chunk-LNNI3MS4.js +54 -0
  41. package/dist/{chunk-BCG45AQB.js → chunk-M74I3HHF.js} +15 -5
  42. package/dist/chunk-MLZBBLMT.js +109 -0
  43. package/dist/{chunk-5T5YMX6S.js → chunk-PW65BXY5.js} +5 -0
  44. package/dist/{chunk-NOIAHMJB.js → chunk-QFVGPKJI.js} +1 -1
  45. package/dist/{chunk-VIUH5CHQ.js → chunk-SFRYRW37.js} +50 -33
  46. package/dist/{chunk-L27YYONJ.js → chunk-SSNZ6ZNN.js} +1 -1
  47. package/dist/{chunk-GWVFDUNB.js → chunk-TGJHGVBZ.js} +8 -10
  48. package/dist/{chunk-6HGEZJDH.js → chunk-U3EJJ7JN.js} +2 -2
  49. package/dist/{chunk-4DSGN4FL.js → chunk-UC6BNMGT.js} +43 -13
  50. package/dist/{chunk-JBIFXB6I.js → chunk-WBBKYUGF.js} +3 -5
  51. package/dist/{chunk-FBBS4BVR.js → chunk-X67VT4QO.js} +1 -1
  52. package/dist/{chunk-DAIIMBLB.js → chunk-YQOYZ6G7.js} +3 -5
  53. package/dist/{chunk-JCWB2ITW.js → chunk-ZUG76D3P.js} +35 -5
  54. package/dist/cli.js +34 -27
  55. package/dist/{clock-6JZL2FS6.js → clock-LH7UFNLJ.js} +4 -3
  56. package/dist/{cloud-sync-VFDTNNCA.js → cloud-sync-IDJFVDEP.js} +22 -19
  57. package/dist/{config-RPSLA2HX.js → config-UGJS57VT.js} +3 -3
  58. package/dist/{conversations-TUM5PJJ4.js → conversations-S2232Y5I.js} +8 -4
  59. package/dist/{create-Z5FSDNVZ.js → create-2M7DAHQX.js} +2 -2
  60. package/dist/{create-VIQVP3QB.js → create-M727VUDF.js} +2 -1
  61. package/dist/{daemon-client-ZFY5MOAL.js → daemon-client-VVYFZI2D.js} +2 -1
  62. package/dist/{daemon-restart-54L4B6AQ.js → daemon-restart-2AAGYFHE.js} +6 -7
  63. package/dist/daemon.js +1625 -529
  64. package/dist/{db-F6UMFRYD.js → db-QAY45Z56.js} +2 -2
  65. package/dist/{delete-ESEP7NGQ.js → delete-O7PEFQDF.js} +1 -1
  66. package/dist/delivery-manager-B4OKWD2P.js +33 -0
  67. package/dist/{delivery-router-VUOL5YSA.js → delivery-router-JE7SHYNU.js} +7 -5
  68. package/dist/{down-6X7KX7BZ.js → down-D4IRNEMJ.js} +5 -5
  69. package/dist/echo-text-WYAAODBV.js +39 -0
  70. package/dist/{env-ZYMSCB7B.js → env-ABM5IMA7.js} +3 -2
  71. package/dist/{env-KUL4XKN2.js → env-AZK5X4W7.js} +3 -3
  72. package/dist/{exec-FBXA3CM4.js → exec-2H65LMTA.js} +3 -3
  73. package/dist/{export-TNBPDH77.js → export-3E3EL6W3.js} +4 -4
  74. package/dist/{extension-J4ZQ2GHV.js → extension-MRYJWSMV.js} +2 -1
  75. package/dist/{extensions-AWNO3SZF.js → extensions-7KP3X6G7.js} +22 -19
  76. package/dist/{files-BVBRJJ2P.js → files-6BMKVG5G.js} +5 -4
  77. package/dist/{import-ZUNKMCKC.js → import-UPNTEBBT.js} +8 -8
  78. package/dist/{isolation-OPCZQRTH.js → isolation-OKDFM6WA.js} +5 -3
  79. package/dist/{join-34TR2GXQ.js → join-PYA36HEC.js} +1 -1
  80. package/dist/{list-PMUXZNAM.js → list-4BVGH7AN.js} +8 -3
  81. package/dist/{login-KAKNFCW5.js → login-MOXVLULE.js} +4 -3
  82. package/dist/{login-LKNLCJPA.js → login-RJJTCVR3.js} +2 -1
  83. package/dist/{logout-YZRMZ3O2.js → logout-BYV433X6.js} +2 -1
  84. package/dist/{logout-RLT62RQP.js → logout-DWD3OQVT.js} +4 -3
  85. package/dist/message-delivery-3456PXB7.js +43 -0
  86. package/dist/migrate-thread-config-4A5LW36Z.js +90 -0
  87. package/dist/{mind-IF6CGMFW.js → mind-NYRALSV2.js} +19 -19
  88. package/dist/{mind-activity-tracker-YMMERB6B.js → mind-activity-tracker-L7GCYXQR.js} +4 -4
  89. package/dist/{mind-contacts-BKUFPUCU.js → mind-contacts-QYU4TPEA.js} +3 -2
  90. package/dist/{mind-history-WI5OI3BW.js → mind-history-NXXOOTX6.js} +30 -7
  91. package/dist/{mind-list-OTHV4ZO4.js → mind-list-SYRA7CH5.js} +3 -2
  92. package/dist/{mind-profile-LUG353ZT.js → mind-profile-MRCVZPYT.js} +1 -1
  93. package/dist/mind-service-5TA7UJAT.js +47 -0
  94. package/dist/{mind-sleep-VBV7YRSU.js → mind-sleep-TH6BRQ5X.js} +4 -3
  95. package/dist/{mind-status-BJNPGXKC.js → mind-status-Z2LQFA6F.js} +3 -2
  96. package/dist/{mind-wake-LVTZ55EZ.js → mind-wake-LDGPRA42.js} +2 -1
  97. package/dist/{package-PD67VPHB.js → package-XYSV7NUT.js} +23 -23
  98. package/dist/{prompts-MDHDLWEX.js → prompts-QKFPX6DQ.js} +3 -3
  99. package/dist/{read-YSWUXYL7.js → read-ZXGUT4QC.js} +5 -3
  100. package/dist/{register-TWQDKQRT.js → register-OX4HRSGC.js} +2 -1
  101. package/dist/{registry-3ELJPUGJ.js → registry-4UF6OCOE.js} +6 -4
  102. package/dist/{reject-SXGCYN4A.js → reject-TWB4QJHG.js} +2 -1
  103. package/dist/{restart-5F5QDBOG.js → restart-AGEGNSYQ.js} +2 -1
  104. package/dist/{sandbox-XPYA7UIF.js → sandbox-EGEU5GGE.js} +7 -4
  105. package/dist/scheduler-UV6RUJ7P.js +25 -0
  106. package/dist/{schema-6YONVTKZ.js → schema-C2GIPD4V.js} +3 -3
  107. package/dist/{seed-NQED7PSX.js → seed-3IMBOAGK.js} +1 -1
  108. package/dist/{seed-check-TYD7RRZY.js → seed-check-NRJEQZST.js} +14 -5
  109. package/dist/{seed-cmd-QF3F2G4S.js → seed-cmd-U73XVQMI.js} +3 -3
  110. package/dist/{seed-create-XOO4N2OE.js → seed-create-FBLNVSUP.js} +4 -4
  111. package/dist/{seed-readiness-3LRYASA4.js → seed-readiness-QRA46ZJQ.js} +4 -5
  112. package/dist/{seed-sprout-HSBBGSS2.js → seed-sprout-3B4SZX7J.js} +9 -9
  113. package/dist/{send-IHRJYNXA.js → send-NBRZJXKX.js} +32 -10
  114. package/dist/{service-YCOPCTSZ.js → service-XMXAXGJD.js} +4 -4
  115. package/dist/{service-install-Y46OTF55.js → service-install-MOKTEG7B.js} +5 -5
  116. package/dist/{setup-TCN7VH5U.js → setup-CAJFOR2N.js} +10 -3
  117. package/dist/{setup-F4TE64YI.js → setup-JGYAXXW7.js} +6 -7
  118. package/dist/{skill-4CYJLYVY.js → skill-NXIHDQCG.js} +3 -2
  119. package/dist/skills/dreaming/references/INSTALL.md +2 -2
  120. package/dist/skills/imagegen/SKILL.md +21 -4
  121. package/dist/skills/imagegen/scripts/imagegen.ts +124 -21
  122. package/dist/skills/tending/SKILL.md +7 -7
  123. package/dist/skills/volute-mind/SKILL.md +3 -3
  124. package/dist/skills/volute-mind/references/integrations.md +2 -2
  125. package/dist/skills/volute-mind/references/routing.md +15 -15
  126. package/dist/{skills-NN5UZCUU.js → skills-5MSMT7PT.js} +4 -5
  127. package/dist/sleep-manager-LIEPO6WG.js +41 -0
  128. package/dist/{spirit-SSJMYC6A.js → spirit-IL5EMWYZ.js} +10 -7
  129. package/dist/spirit-availability-YFEGJNJ2.js +42 -0
  130. package/dist/{split-JF2VWTXA.js → split-BU5VWX6P.js} +1 -1
  131. package/dist/{sprout-AXA2SECQ.js → sprout-UPXGJ5HX.js} +1 -1
  132. package/dist/{src-YH6PQ7LJ.js → src-HGNE2XG4.js} +7 -1
  133. package/dist/{src-ZN4LXMPI.js → src-LCSOQY6Z.js} +57 -51
  134. package/dist/{src-JAOVXO5W.js → src-UDMJZ6MH.js} +8 -8
  135. package/dist/{start-BTVMTP3K.js → start-MUMNFR52.js} +2 -1
  136. package/dist/{status-VJGXMQ4L.js → status-IL67CYM4.js} +7 -6
  137. package/dist/{stop-YORESK4U.js → stop-EKERNYTX.js} +2 -1
  138. package/dist/system-events-A6IGCEC3.js +46 -0
  139. package/dist/system-install-YZSWCPDK.js +8 -0
  140. package/dist/{systems-5MH2ELQE.js → systems-VDRUZXNF.js} +5 -4
  141. package/dist/{tailscale-AMMVKDXB.js → tailscale-SJUW2ETR.js} +2 -2
  142. package/dist/{template-staleness-HKGCTS3H.js → template-staleness-T27VCGYA.js} +3 -3
  143. package/dist/{turn-tracker-JQ2YUUY2.js → turn-tracker-6EI2EL7G.js} +6 -6
  144. package/dist/{up-SDLTLPAO.js → up-CLL4665A.js} +5 -6
  145. package/dist/{update-WEA4N2TR.js → update-HVAUCQPN.js} +5 -5
  146. package/dist/{update-check-DZOTONII.js → update-check-2MGBBAFF.js} +3 -3
  147. package/dist/{upgrade-K5FIQPQD.js → upgrade-LIE46UBB.js} +1 -1
  148. package/dist/variant-cleanup-HJ7Z75R6.js +22 -0
  149. package/dist/{version-notify-WFA5XB5A.js → version-notify-7BUHWZNT.js} +10 -27
  150. package/dist/web-assets/assets/index-ClsUcXiW.js +95 -0
  151. package/dist/web-assets/assets/index-Dz3wTbtR.css +1 -0
  152. package/dist/web-assets/index.html +2 -2
  153. package/dist/xai-P42CRCZA.js +129 -0
  154. package/drizzle/0014_system_events.sql +26 -0
  155. package/drizzle/0015_rename_session_to_thread.sql +12 -0
  156. package/drizzle/0016_brain_to_human.sql +4 -0
  157. package/drizzle/0017_event_history_rows.sql +9 -0
  158. package/drizzle/meta/_journal.json +28 -0
  159. package/package.json +23 -23
  160. package/packages/extensions/notes/dist/ui/assets/index-BBs8pyel.js +67 -0
  161. package/packages/extensions/notes/dist/ui/index.html +1 -1
  162. package/packages/extensions/pages/dist/ui/assets/index-B589e8Xe.js +2 -0
  163. package/packages/extensions/pages/dist/ui/index.html +1 -1
  164. package/packages/extensions/plan/dist/ui/assets/index-B8s8wxyt.js +67 -0
  165. package/packages/extensions/plan/dist/ui/index.html +1 -1
  166. package/templates/_base/.init/.config/prompts.json +1 -0
  167. package/templates/_base/.init/.local/hooks/startup-context.ts +24 -9
  168. package/templates/_base/home/.config/routes.json +2 -2
  169. package/templates/_base/home/VOLUTE.md +18 -5
  170. package/templates/_base/src/lib/daemon-client.ts +1 -1
  171. package/templates/_base/src/lib/event-turn.ts +39 -0
  172. package/templates/_base/src/lib/format-prefix.ts +21 -2
  173. package/templates/_base/src/lib/router.ts +6 -2
  174. package/templates/_base/src/lib/routing.ts +8 -8
  175. package/templates/_base/src/lib/startup.ts +9 -1
  176. package/templates/_base/src/lib/types.ts +7 -1
  177. package/templates/_base/src/lib/volute-server.ts +30 -1
  178. package/templates/claude/.init/.config/routes.json +3 -3
  179. package/templates/claude/.init/CLAUDE.md +1 -1
  180. package/templates/claude/package.json.tmpl +4 -4
  181. package/templates/claude/src/agent.ts +4 -1
  182. package/templates/claude/src/lib/hooks/reply-instructions.ts +26 -1
  183. package/templates/codex/.init/.config/routes.json +3 -3
  184. package/templates/codex/.init/AGENTS.md +1 -1
  185. package/templates/codex/package.json.tmpl +4 -4
  186. package/templates/codex/src/agent.ts +11 -11
  187. package/templates/codex/src/lib/turn-context.ts +51 -0
  188. package/templates/pi/.init/.config/routes.json +3 -3
  189. package/templates/pi/.init/MINDS.md +1 -1
  190. package/templates/pi/package.json.tmpl +6 -6
  191. package/templates/pi/src/agent.ts +9 -1
  192. package/templates/pi/src/lib/event-handler.ts +1 -1
  193. package/templates/pi/src/lib/reply-instructions-extension.ts +28 -1
  194. package/dist/chunk-NJHN6IRB.js +0 -177
  195. package/dist/chunk-QQBOI3QA.js +0 -5345
  196. package/dist/chunk-XTEKINWG.js +0 -158
  197. package/dist/delivery-manager-RBXBPVWM.js +0 -36
  198. package/dist/echo-text-B6NZ5FGE.js +0 -36
  199. package/dist/message-delivery-ABPV76EA.js +0 -42
  200. package/dist/mind-service-42GDO4KH.js +0 -44
  201. package/dist/notices-N6BCGHFV.js +0 -25
  202. package/dist/scheduler-K7Y7Z7FQ.js +0 -34
  203. package/dist/sleep-manager-DSPXFHGX.js +0 -38
  204. package/dist/system-chat-M2XOBKEM.js +0 -40
  205. package/dist/variant-cleanup-P4MBNLJD.js +0 -33
  206. package/dist/web-assets/assets/index-BostMFoR.css +0 -1
  207. package/dist/web-assets/assets/index-CKlqUkyG.js +0 -92
  208. package/packages/extensions/notes/dist/ui/assets/index-D0-DgYyj.js +0 -67
  209. package/packages/extensions/pages/dist/ui/assets/index-DtzftuPA.js +0 -2
  210. package/packages/extensions/plan/dist/ui/assets/index-Cfzs-0G9.js +0 -67
@@ -450,7 +450,11 @@ function createCommands() {
450
450
  type: "page_published",
451
451
  mind: mindName,
452
452
  summary: `${mindName} published ${file}`,
453
- metadata: { file, iframeUrl: `/ext/pages/public/${mindName}/${file}` }
453
+ metadata: {
454
+ file,
455
+ url: `/minds/${mindName}/pages/${file}`,
456
+ iframeUrl: `/ext/pages/public/${mindName}/${file}`
457
+ }
454
458
  });
455
459
  }
456
460
  for (const file of diff.removed) {
@@ -717,54 +721,56 @@ var Le = d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[
717
721
  var _e = d(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, j).getRegex();
718
722
  var H = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
719
723
  var K = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
720
- var ze = d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", K).replace("tag", H).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
721
- var le = d(F).replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex();
722
- var Me = d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", le).getRegex();
723
- var W = { blockquote: Me, code: we, def: Le, fences: ye, heading: Pe, hr: B, html: ze, lheading: ae, list: _e, newline: Oe, paragraph: le, table: _, text: $e };
724
+ var ze = d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", K).replace("tag", H).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
725
+ var le = (l3) => d(F).replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", l3).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex();
726
+ var Me = le(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/);
727
+ var Ee = le(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/);
728
+ var Ie = d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ee).getRegex();
729
+ var W = { blockquote: Ie, code: we, def: Le, fences: ye, heading: Pe, hr: B, html: ze, lheading: ae, list: _e, newline: Oe, paragraph: Me, table: _, text: $e };
724
730
  var se = d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex();
725
- var Ee = { ...W, lheading: Se, table: se, paragraph: d(F).replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", se).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex() };
726
- var Ie = { ...W, html: d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", K).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: d(F).replace("hr", B).replace("heading", ` *#{1,6} *[^
731
+ var Ae = { ...W, lheading: Se, table: se, paragraph: d(F).replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", se).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex() };
732
+ var Ce = { ...W, html: d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", K).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: d(F).replace("hr", B).replace("heading", ` *#{1,6} *[^
727
733
  ]`).replace("lheading", ae).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() };
728
- var Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;
729
- var Ce = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
734
+ var Be = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;
735
+ var qe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
730
736
  var ue = /^( {2,}|\\)\n(?!\s*$)/;
731
- var Be = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
737
+ var De = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
732
738
  var I = /[\p{P}\p{S}]/u;
733
739
  var Z = /[\s\p{P}\p{S}]/u;
734
740
  var X = /[^\s\p{P}\p{S}]/u;
735
- var De = d(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Z).getRegex();
741
+ var ve = d(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Z).getRegex();
736
742
  var pe = /(?!~)[\p{P}\p{S}]/u;
737
- var qe = /(?!~)[\s\p{P}\p{S}]/u;
738
- var ve = /(?:[^\s\p{P}\p{S}]|~)/u;
739
- var He = d(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Te ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex();
743
+ var He = /(?!~)[\s\p{P}\p{S}]/u;
744
+ var Ze = /(?:[^\s\p{P}\p{S}]|~)/u;
745
+ var Ge = d(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Te ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex();
740
746
  var ce = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/;
741
- var Ze = d(ce, "u").replace(/punct/g, I).getRegex();
742
- var Ge = d(ce, "u").replace(/punct/g, pe).getRegex();
747
+ var Ne = d(ce, "u").replace(/punct/g, I).getRegex();
748
+ var Qe = d(ce, "u").replace(/punct/g, pe).getRegex();
743
749
  var he = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)";
744
- var Ne = d(he, "gu").replace(/notPunctSpace/g, X).replace(/punctSpace/g, Z).replace(/punct/g, I).getRegex();
745
- var Qe = d(he, "gu").replace(/notPunctSpace/g, ve).replace(/punctSpace/g, qe).replace(/punct/g, pe).getRegex();
746
- var je = d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, X).replace(/punctSpace/g, Z).replace(/punct/g, I).getRegex();
747
- var Fe = d(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, I).getRegex();
748
- var Ue = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)";
749
- var Ke = d(Ue, "gu").replace(/notPunctSpace/g, X).replace(/punctSpace/g, Z).replace(/punct/g, I).getRegex();
750
- var We = d(/\\(punct)/, "gu").replace(/punct/g, I).getRegex();
751
- var Xe = d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex();
752
- var Je = d(K).replace("(?:-->|$)", "-->").getRegex();
753
- var Ve = d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
750
+ var je = d(he, "gu").replace(/notPunctSpace/g, X).replace(/punctSpace/g, Z).replace(/punct/g, I).getRegex();
751
+ var Fe = d(he, "gu").replace(/notPunctSpace/g, Ze).replace(/punctSpace/g, He).replace(/punct/g, pe).getRegex();
752
+ var Ue = d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, X).replace(/punctSpace/g, Z).replace(/punct/g, I).getRegex();
753
+ var Ke = d(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, I).getRegex();
754
+ var We = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)";
755
+ var Xe = d(We, "gu").replace(/notPunctSpace/g, X).replace(/punctSpace/g, Z).replace(/punct/g, I).getRegex();
756
+ var Je = d(/\\(punct)/, "gu").replace(/punct/g, I).getRegex();
757
+ var Ve = d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex();
758
+ var Ye = d(K).replace("(?:-->|$)", "-->").getRegex();
759
+ var et = d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ye).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
754
760
  var v = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/;
755
- var Ye = d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", v).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
761
+ var tt = d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", v).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
756
762
  var ke = d(/^!?\[(label)\]\[(ref)\]/).replace("label", v).replace("ref", U).getRegex();
757
763
  var de = d(/^!?\[(ref)\](?:\[\])?/).replace("ref", U).getRegex();
758
- var et = d("reflink|nolink(?!\\()", "g").replace("reflink", ke).replace("nolink", de).getRegex();
764
+ var nt = d("reflink|nolink(?!\\()", "g").replace("reflink", ke).replace("nolink", de).getRegex();
759
765
  var ie = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/;
760
- var J = { _backpedal: _, anyPunctuation: We, autolink: Xe, blockSkip: He, br: ue, code: Ce, del: _, delLDelim: _, delRDelim: _, emStrongLDelim: Ze, emStrongRDelimAst: Ne, emStrongRDelimUnd: je, escape: Ae, link: Ye, nolink: de, punctuation: De, reflink: ke, reflinkSearch: et, tag: Ve, text: Be, url: _ };
761
- var tt = { ...J, link: d(/^!?\[(label)\]\((.*?)\)/).replace("label", v).getRegex(), reflink: d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", v).getRegex() };
762
- var Q = { ...J, emStrongRDelimAst: Qe, emStrongLDelim: Ge, delLDelim: Fe, delRDelim: Ke, url: d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ie).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ie).getRegex() };
763
- var nt = { ...Q, br: d(ue).replace("{2,}", "*").getRegex(), text: d(Q.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() };
764
- var D = { normal: W, gfm: Ee, pedantic: Ie };
765
- var A = { normal: J, gfm: Q, breaks: nt, pedantic: tt };
766
- var rt = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" };
767
- var ge = (l3) => rt[l3];
766
+ var J = { _backpedal: _, anyPunctuation: Je, autolink: Ve, blockSkip: Ge, br: ue, code: qe, del: _, delLDelim: _, delRDelim: _, emStrongLDelim: Ne, emStrongRDelimAst: je, emStrongRDelimUnd: Ue, escape: Be, link: tt, nolink: de, punctuation: ve, reflink: ke, reflinkSearch: nt, tag: et, text: De, url: _ };
767
+ var rt = { ...J, link: d(/^!?\[(label)\]\((.*?)\)/).replace("label", v).getRegex(), reflink: d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", v).getRegex() };
768
+ var Q = { ...J, emStrongRDelimAst: Fe, emStrongLDelim: Qe, delLDelim: Ke, delRDelim: Xe, url: d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ie).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ie).getRegex() };
769
+ var st = { ...Q, br: d(ue).replace("{2,}", "*").getRegex(), text: d(Q.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() };
770
+ var q = { normal: W, gfm: Ae, pedantic: Ce };
771
+ var A = { normal: J, gfm: Q, breaks: st, pedantic: rt };
772
+ var it = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" };
773
+ var ge = (l3) => it[l3];
768
774
  function O(l3, e) {
769
775
  if (e) {
770
776
  if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ge);
@@ -831,7 +837,7 @@ function xe(l3, e, t, n, s) {
831
837
  let u = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: r, title: i, text: o, tokens: n.inlineTokens(o) };
832
838
  return n.state.inLink = false, u;
833
839
  }
834
- function st(l3, e, t) {
840
+ function ot(l3, e, t) {
835
841
  let n = l3.match(t.other.indentCodeCompensation);
836
842
  if (n === null) return e;
837
843
  let s = n[1];
@@ -865,7 +871,7 @@ var w = class {
865
871
  fences(e) {
866
872
  let t = this.rules.block.fences.exec(e);
867
873
  if (t) {
868
- let n = t[0], s = st(n, t[3] || "", this.rules);
874
+ let n = t[0], s = ot(n, t[3] || "", this.rules);
869
875
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: s };
870
876
  }
871
877
  }
@@ -1174,11 +1180,11 @@ var x = class l {
1174
1180
  tokenizer;
1175
1181
  constructor(e) {
1176
1182
  this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new w(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
1177
- let t = { other: m, block: D.normal, inline: A.normal };
1178
- this.options.pedantic ? (t.block = D.pedantic, t.inline = A.pedantic) : this.options.gfm && (t.block = D.gfm, this.options.breaks ? t.inline = A.breaks : t.inline = A.gfm), this.tokenizer.rules = t;
1183
+ let t = { other: m, block: q.normal, inline: A.normal };
1184
+ this.options.pedantic ? (t.block = q.pedantic, t.inline = A.pedantic) : this.options.gfm && (t.block = q.gfm, this.options.breaks ? t.inline = A.breaks : t.inline = A.gfm), this.tokenizer.rules = t;
1179
1185
  }
1180
1186
  static get rules() {
1181
- return { block: D, inline: A };
1187
+ return { block: q, inline: A };
1182
1188
  }
1183
1189
  static lex(e, t) {
1184
1190
  return new l(t).lex(e);
@@ -1715,7 +1721,7 @@ var P = class {
1715
1721
  return e ? b.parse : b.parseInline;
1716
1722
  }
1717
1723
  };
1718
- var q = class {
1724
+ var D = class {
1719
1725
  defaults = M();
1720
1726
  options = this.setOptions;
1721
1727
  parse = this.parseMarkdown(true);
@@ -1876,7 +1882,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
1876
1882
  };
1877
1883
  }
1878
1884
  };
1879
- var z = new q();
1885
+ var z = new D();
1880
1886
  function g(l3, e) {
1881
1887
  return z.parse(l3, e);
1882
1888
  }
@@ -1901,16 +1907,16 @@ g.lexer = x.lex;
1901
1907
  g.Tokenizer = w;
1902
1908
  g.Hooks = P;
1903
1909
  g.parse = g;
1904
- var Ft = g.options;
1905
- var Ut = g.setOptions;
1906
- var Kt = g.use;
1907
- var Wt = g.walkTokens;
1908
- var Xt = g.parseInline;
1909
- var Vt = b.parse;
1910
- var Yt = x.lex;
1910
+ var Kt = g.options;
1911
+ var Wt = g.setOptions;
1912
+ var Xt = g.use;
1913
+ var Jt = g.walkTokens;
1914
+ var Vt = g.parseInline;
1915
+ var en = b.parse;
1916
+ var tn = x.lex;
1911
1917
 
1912
1918
  // packages/extensions/pages/src/markdown.ts
1913
- var marked = new q({ gfm: true });
1919
+ var marked = new D({ gfm: true });
1914
1920
  var BASE_STYLES = `
1915
1921
  *, *::before, *::after { box-sizing: border-box; }
1916
1922
  body {
@@ -117,7 +117,7 @@ function createCommands() {
117
117
  type: "plan_started",
118
118
  mind: user.username,
119
119
  summary: `${user.username} started plan: "${title}"`,
120
- metadata: { planId: plan.id, title }
120
+ metadata: { planId: plan.id, title, url: "/plan" }
121
121
  });
122
122
  return { output: `Plan started: ${plan.title}` };
123
123
  }
@@ -138,7 +138,7 @@ function createCommands() {
138
138
  type: "plan_message",
139
139
  mind: mindName,
140
140
  summary: `Plan message: "${content.slice(0, 100)}"`,
141
- metadata: { planId: plan.id, messageId: msg.id }
141
+ metadata: { planId: plan.id, messageId: msg.id, url: "/plan" }
142
142
  });
143
143
  const announced = await announceToSystem(`[Plan: ${plan.title}] ${content}`, ctx);
144
144
  return {
@@ -162,7 +162,7 @@ function createCommands() {
162
162
  type: "plan_progress",
163
163
  mind: mindName,
164
164
  summary: `${mindName} logged progress: "${content.slice(0, 100)}"`,
165
- metadata: { planId: plan.id, logId: log.id }
165
+ metadata: { planId: plan.id, logId: log.id, url: "/plan" }
166
166
  });
167
167
  return { output: "Progress logged." };
168
168
  }
@@ -227,7 +227,7 @@ function createCommands() {
227
227
  type: "plan_finished",
228
228
  mind: mindName,
229
229
  summary: `${mindName} finished plan: "${plan.title}"`,
230
- metadata: { planId: plan.id }
230
+ metadata: { planId: plan.id, url: "/plan" }
231
231
  });
232
232
  const announcement = message ? `[Plan finished: ${plan.title}] ${message}` : `[Plan finished: ${plan.title}]`;
233
233
  const announced = await announceToSystem(announcement, ctx);
@@ -320,7 +320,7 @@ function createRoutes(ctx) {
320
320
  type: "plan_started",
321
321
  mind: actor.username,
322
322
  summary: `${actor.username} started plan: "${body.title}"`,
323
- metadata: { planId: plan.id, title: body.title }
323
+ metadata: { planId: plan.id, title: body.title, url: "/plan" }
324
324
  });
325
325
  return c.json(plan, 201);
326
326
  }).post("/:id{[0-9]+}/message", async (c) => {
@@ -338,7 +338,7 @@ function createRoutes(ctx) {
338
338
  type: "plan_message",
339
339
  mind: actor.username,
340
340
  summary: `Plan message: "${body.content.slice(0, 100)}"`,
341
- metadata: { planId, messageId: msg.id }
341
+ metadata: { planId, messageId: msg.id, url: "/plan" }
342
342
  });
343
343
  return c.json(msg, 201);
344
344
  }).post("/:id{[0-9]+}/log", async (c) => {
@@ -356,7 +356,7 @@ function createRoutes(ctx) {
356
356
  type: "plan_progress",
357
357
  mind: actor.username,
358
358
  summary: `${actor.username} logged progress: "${body.content.slice(0, 100)}"`,
359
- metadata: { planId, logId: log.id }
359
+ metadata: { planId, logId: log.id, url: "/plan" }
360
360
  });
361
361
  return c.json(log, 201);
362
362
  }).patch("/:id{[0-9]+}/finish", async (c) => {
@@ -375,7 +375,7 @@ function createRoutes(ctx) {
375
375
  type: "plan_finished",
376
376
  mind: actor.username,
377
377
  summary: `${actor.username} finished a plan`,
378
- metadata: { planId }
378
+ metadata: { planId, url: "/plan" }
379
379
  });
380
380
  return c.json({ ok: true });
381
381
  }).get("/feed", async (c) => {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  daemonFetch
4
- } from "./chunk-BCG45AQB.js";
4
+ } from "./chunk-M74I3HHF.js";
5
5
  import {
6
6
  getClient,
7
7
  urlOf
@@ -10,6 +10,7 @@ import {
10
10
  command
11
11
  } from "./chunk-TXSA4Q3V.js";
12
12
  import "./chunk-O7IGP7ZW.js";
13
+ import "./chunk-FNJCBRD3.js";
13
14
  import "./chunk-K3NQKI34.js";
14
15
 
15
16
  // packages/cli/src/commands/start.ts
@@ -1,14 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  getAuthToken
4
- } from "./chunk-BCG45AQB.js";
4
+ } from "./chunk-M74I3HHF.js";
5
5
  import {
6
6
  command
7
7
  } from "./chunk-TXSA4Q3V.js";
8
8
  import "./chunk-O7IGP7ZW.js";
9
+ import "./chunk-FNJCBRD3.js";
9
10
  import {
10
11
  checkForUpdate
11
- } from "./chunk-SX72DOO3.js";
12
+ } from "./chunk-AFSLNUTT.js";
12
13
  import {
13
14
  LAUNCHD_PLIST_LABEL,
14
15
  LAUNCHD_PLIST_PATH,
@@ -20,10 +21,10 @@ import {
20
21
  getServiceMode,
21
22
  modeLabel,
22
23
  readDaemonConfig
23
- } from "./chunk-HCYQRME2.js";
24
- import "./chunk-DVN6DNMI.js";
25
- import "./chunk-RSBL3FAD.js";
26
- import "./chunk-P4LHVRNE.js";
24
+ } from "./chunk-5FVANDON.js";
25
+ import "./chunk-AJWFDIEY.js";
26
+ import "./chunk-CAIYV33P.js";
27
+ import "./chunk-5IIVOWSP.js";
27
28
  import "./chunk-K3NQKI34.js";
28
29
 
29
30
  // src/commands/status.ts
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-BTY4WNFE.js";
5
5
  import {
6
6
  daemonFetch
7
- } from "./chunk-BCG45AQB.js";
7
+ } from "./chunk-M74I3HHF.js";
8
8
  import {
9
9
  getClient,
10
10
  urlOf
@@ -13,6 +13,7 @@ import {
13
13
  command
14
14
  } from "./chunk-TXSA4Q3V.js";
15
15
  import "./chunk-O7IGP7ZW.js";
16
+ import "./chunk-FNJCBRD3.js";
16
17
  import "./chunk-K3NQKI34.js";
17
18
 
18
19
  // packages/cli/src/commands/stop.ts
@@ -0,0 +1,46 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ MIND_LEVEL_THREAD,
4
+ captureReflection,
5
+ clearDeliveredEvents,
6
+ deliverEvent,
7
+ drainEvents,
8
+ eventChannel,
9
+ eventLabel,
10
+ flushQueuedEvents,
11
+ formatEvents,
12
+ hasUndeliveredEvent,
13
+ latestEvent,
14
+ latestFailureEvent,
15
+ listEvents,
16
+ parseMeta,
17
+ pendingEventCount,
18
+ pendingEventsLine,
19
+ recordNotice,
20
+ recordReflection
21
+ } from "./chunk-7OZWKHA3.js";
22
+ import "./chunk-LNNI3MS4.js";
23
+ import "./chunk-QUSMYGNQ.js";
24
+ import "./chunk-CAIYV33P.js";
25
+ import "./chunk-5IIVOWSP.js";
26
+ import "./chunk-K3NQKI34.js";
27
+ export {
28
+ MIND_LEVEL_THREAD,
29
+ captureReflection,
30
+ clearDeliveredEvents,
31
+ deliverEvent,
32
+ drainEvents,
33
+ eventChannel,
34
+ eventLabel,
35
+ flushQueuedEvents,
36
+ formatEvents,
37
+ hasUndeliveredEvent,
38
+ latestEvent,
39
+ latestFailureEvent,
40
+ listEvents,
41
+ parseMeta,
42
+ pendingEventCount,
43
+ pendingEventsLine,
44
+ recordNotice,
45
+ recordReflection
46
+ };
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ detectSystemInstallHint
4
+ } from "./chunk-FNJCBRD3.js";
5
+ import "./chunk-K3NQKI34.js";
6
+ export {
7
+ detectSystemInstallHint
8
+ };
@@ -1,11 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  daemonFetch
4
- } from "./chunk-BCG45AQB.js";
4
+ } from "./chunk-M74I3HHF.js";
5
5
  import {
6
6
  subcommands
7
7
  } from "./chunk-TXSA4Q3V.js";
8
8
  import "./chunk-O7IGP7ZW.js";
9
+ import "./chunk-FNJCBRD3.js";
9
10
  import "./chunk-K3NQKI34.js";
10
11
 
11
12
  // packages/cli/src/commands/systems.ts
@@ -34,15 +35,15 @@ var cmd = subcommands({
34
35
  },
35
36
  register: {
36
37
  description: "Register a system on volute.systems",
37
- run: (args) => import("./register-TWQDKQRT.js").then((m) => m.run(args))
38
+ run: (args) => import("./register-OX4HRSGC.js").then((m) => m.run(args))
38
39
  },
39
40
  login: {
40
41
  description: "Log in with an existing API key",
41
- run: (args) => import("./login-LKNLCJPA.js").then((m) => m.run(args))
42
+ run: (args) => import("./login-RJJTCVR3.js").then((m) => m.run(args))
42
43
  },
43
44
  logout: {
44
45
  description: "Remove stored credentials",
45
- run: (args) => import("./logout-YZRMZ3O2.js").then((m) => m.run(args))
46
+ run: (args) => import("./logout-BYV433X6.js").then((m) => m.run(args))
46
47
  }
47
48
  }
48
49
  });
@@ -4,8 +4,8 @@ import {
4
4
  } from "./chunk-QUSMYGNQ.js";
5
5
  import {
6
6
  voluteHome
7
- } from "./chunk-RSBL3FAD.js";
8
- import "./chunk-P4LHVRNE.js";
7
+ } from "./chunk-CAIYV33P.js";
8
+ import "./chunk-5IIVOWSP.js";
9
9
  import "./chunk-K3NQKI34.js";
10
10
 
11
11
  // packages/daemon/src/lib/tailscale.ts
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  computeMindTemplateHash,
4
4
  isTemplateStale
5
- } from "./chunk-L27YYONJ.js";
5
+ } from "./chunk-SSNZ6ZNN.js";
6
6
  import "./chunk-C3KLHJDB.js";
7
7
  import "./chunk-RRZ4RQQU.js";
8
8
  import "./chunk-QUSMYGNQ.js";
9
- import "./chunk-RSBL3FAD.js";
10
- import "./chunk-P4LHVRNE.js";
9
+ import "./chunk-CAIYV33P.js";
10
+ import "./chunk-5IIVOWSP.js";
11
11
  import "./chunk-K3NQKI34.js";
12
12
  export {
13
13
  computeMindTemplateHash,
@@ -14,13 +14,13 @@ import {
14
14
  sweepWedgedTurns,
15
15
  takeErrored,
16
16
  trackToolUse
17
- } from "./chunk-K3JOLGWF.js";
18
- import "./chunk-JPGHSXSV.js";
19
- import "./chunk-YIJGKHIS.js";
20
- import "./chunk-NJHN6IRB.js";
17
+ } from "./chunk-7DXLIYPY.js";
18
+ import "./chunk-LNNI3MS4.js";
19
+ import "./chunk-5TPC4KCV.js";
20
+ import "./chunk-632FJ23O.js";
21
21
  import "./chunk-QUSMYGNQ.js";
22
- import "./chunk-RSBL3FAD.js";
23
- import "./chunk-P4LHVRNE.js";
22
+ import "./chunk-CAIYV33P.js";
23
+ import "./chunk-5IIVOWSP.js";
24
24
  import "./chunk-K3NQKI34.js";
25
25
  export {
26
26
  assignSession,
@@ -2,16 +2,15 @@
2
2
  import {
3
3
  formatStartupFailure,
4
4
  run
5
- } from "./chunk-DAIIMBLB.js";
5
+ } from "./chunk-YQOYZ6G7.js";
6
6
  import "./chunk-TXSA4Q3V.js";
7
7
  import "./chunk-O7IGP7ZW.js";
8
- import "./chunk-HCYQRME2.js";
9
- import "./chunk-DVN6DNMI.js";
8
+ import "./chunk-5FVANDON.js";
9
+ import "./chunk-AJWFDIEY.js";
10
10
  import {
11
11
  readGlobalConfig
12
- } from "./chunk-NJHN6IRB.js";
13
- import "./chunk-RSBL3FAD.js";
14
- import "./chunk-P4LHVRNE.js";
12
+ } from "./chunk-CAIYV33P.js";
13
+ import "./chunk-5IIVOWSP.js";
15
14
  import "./chunk-K3NQKI34.js";
16
15
  export {
17
16
  formatStartupFailure,
@@ -7,23 +7,23 @@ import {
7
7
  checkForUpdate,
8
8
  getResolvedVersion,
9
9
  resolveVoluteInstall
10
- } from "./chunk-SX72DOO3.js";
10
+ } from "./chunk-AFSLNUTT.js";
11
11
  import {
12
12
  getServiceMode,
13
13
  modeLabel,
14
14
  pollHealth,
15
15
  readDaemonConfig,
16
16
  restartService
17
- } from "./chunk-HCYQRME2.js";
17
+ } from "./chunk-5FVANDON.js";
18
18
  import {
19
19
  exec,
20
20
  execInherit,
21
21
  resolveVoluteBin
22
- } from "./chunk-DVN6DNMI.js";
22
+ } from "./chunk-AJWFDIEY.js";
23
23
  import {
24
24
  voluteSystemDir
25
- } from "./chunk-RSBL3FAD.js";
26
- import "./chunk-P4LHVRNE.js";
25
+ } from "./chunk-CAIYV33P.js";
26
+ import "./chunk-5IIVOWSP.js";
27
27
  import "./chunk-K3NQKI34.js";
28
28
 
29
29
  // src/commands/update.ts
@@ -8,9 +8,9 @@ import {
8
8
  getResolvedVersion,
9
9
  isNewer,
10
10
  resolveVoluteInstall
11
- } from "./chunk-SX72DOO3.js";
12
- import "./chunk-RSBL3FAD.js";
13
- import "./chunk-P4LHVRNE.js";
11
+ } from "./chunk-AFSLNUTT.js";
12
+ import "./chunk-CAIYV33P.js";
13
+ import "./chunk-5IIVOWSP.js";
14
14
  import "./chunk-K3NQKI34.js";
15
15
  export {
16
16
  analyzeInstallPath,
@@ -21,7 +21,7 @@ var cmd = command({
21
21
  },
22
22
  run: async ({ args, flags }) => {
23
23
  const mindName = resolveMindName({ mind: args.name });
24
- const { daemonFetch } = await import("./daemon-client-ZFY5MOAL.js");
24
+ const { daemonFetch } = await import("./daemon-client-VVYFZI2D.js");
25
25
  const { getClient, urlOf } = await import("./api-client-LC5YRA32.js");
26
26
  const client = getClient();
27
27
  const res = await daemonFetch(
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ cleanupVariant,
4
+ reconcileVariants
5
+ } from "./chunk-HW6Q7AMB.js";
6
+ import "./chunk-ALIVXDM4.js";
7
+ import "./chunk-7DXLIYPY.js";
8
+ import "./chunk-7OZWKHA3.js";
9
+ import "./chunk-LNNI3MS4.js";
10
+ import "./chunk-5TPC4KCV.js";
11
+ import "./chunk-ZUG76D3P.js";
12
+ import "./chunk-AJWFDIEY.js";
13
+ import "./chunk-7UWXAJMK.js";
14
+ import "./chunk-632FJ23O.js";
15
+ import "./chunk-QUSMYGNQ.js";
16
+ import "./chunk-CAIYV33P.js";
17
+ import "./chunk-5IIVOWSP.js";
18
+ import "./chunk-K3NQKI34.js";
19
+ export {
20
+ cleanupVariant,
21
+ reconcileVariants
22
+ };