abtars 0.3.3 → 0.3.4-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/bundle/{_registry.generated-7DRCE4V6.js → _registry.generated-ZJBAZMXN.js} +16 -15
  2. package/bundle/{_registry.generated-7DRCE4V6.js.map → _registry.generated-ZJBAZMXN.js.map} +1 -1
  3. package/bundle/abtars-browser.js +6 -5
  4. package/bundle/abtars-browser.js.map +1 -1
  5. package/bundle/abtars-cli.js +47 -39
  6. package/bundle/abtars-cli.js.map +2 -2
  7. package/bundle/abtars-restart.js +7 -7
  8. package/bundle/abtars-rss.js +2 -1
  9. package/bundle/abtars-rss.js.map +2 -2
  10. package/bundle/abtars-task.js +6 -5
  11. package/bundle/abtars-task.js.map +1 -1
  12. package/bundle/abtars-todo.js +2 -1
  13. package/bundle/abtars-todo.js.map +1 -1
  14. package/bundle/abtars.js +299 -209
  15. package/bundle/abtars.js.map +4 -4
  16. package/bundle/{acp-raw-client-AZJCEB6S.js → acp-raw-client-YTBGFN4S.js} +4 -3
  17. package/bundle/{acp-raw-client-AZJCEB6S.js.map → acp-raw-client-YTBGFN4S.js.map} +1 -1
  18. package/bundle/{action-gate-QYJL57IX.js → action-gate-YISTP773.js} +4 -3
  19. package/bundle/{action-gate-QYJL57IX.js.map → action-gate-YISTP773.js.map} +1 -1
  20. package/bundle/{agent-api-adapter-PYMNQXHE.js → agent-api-adapter-E4HWVJ32.js} +5 -4
  21. package/bundle/{agent-api-adapter-PYMNQXHE.js.map → agent-api-adapter-E4HWVJ32.js.map} +1 -1
  22. package/bundle/{agent-api-rate-limit-4GEZ4YN5.js → agent-api-rate-limit-VENFGOAD.js} +6 -5
  23. package/bundle/{agent-registry-563P4EUJ.js → agent-registry-DL7UT272.js} +9 -8
  24. package/bundle/bootstrap-V5MROD3X.js +62 -0
  25. package/bundle/bootstrap-V5MROD3X.js.map +7 -0
  26. package/bundle/{bridge-lock-transport-LXCF2IVN.js → bridge-lock-transport-BJAMHMXW.js} +6 -5
  27. package/bundle/{browser-2VZOGOGX.js → browser-PT54UWSW.js} +8 -7
  28. package/bundle/{budget-PPA7WY3D.js → budget-QNK6IIT6.js} +5 -4
  29. package/bundle/{budget-PPA7WY3D.js.map → budget-QNK6IIT6.js.map} +1 -1
  30. package/bundle/{capability-WXEA2WFK.js → capability-EKPGHQIO.js} +7 -6
  31. package/bundle/{chunk-C3EYYJN3.js → chunk-2BXXQG7P.js} +16 -4
  32. package/bundle/chunk-2BXXQG7P.js.map +7 -0
  33. package/bundle/{chunk-4PIVWXUJ.js → chunk-2ZD7VQRW.js} +2 -2
  34. package/bundle/{chunk-OY2HAK33.js → chunk-36ZEYDKZ.js} +1 -1
  35. package/bundle/chunk-36ZEYDKZ.js.map +7 -0
  36. package/bundle/{chunk-3QW2K53E.js → chunk-4IGLXZCC.js} +11 -19
  37. package/bundle/chunk-4IGLXZCC.js.map +7 -0
  38. package/bundle/{chunk-T7TAWGBX.js → chunk-52PQM4EZ.js} +2 -2
  39. package/bundle/{chunk-2RGR3LSV.js → chunk-5P5HF7IJ.js} +2 -2
  40. package/bundle/{chunk-LE23VPN3.js → chunk-63A7ZRIH.js} +4 -4
  41. package/bundle/{chunk-LE23VPN3.js.map → chunk-63A7ZRIH.js.map} +1 -1
  42. package/bundle/chunk-6IB3GVXK.js +77 -0
  43. package/bundle/chunk-6IB3GVXK.js.map +7 -0
  44. package/bundle/{chunk-OOKNHOCB.js → chunk-6S3G6GPO.js} +2 -2
  45. package/bundle/{chunk-E7MV7WFT.js → chunk-6VTHSN4V.js} +6 -6
  46. package/bundle/{chunk-NGZVJ52F.js → chunk-76YN7O3U.js} +7 -7
  47. package/bundle/{chunk-43DKPXTP.js → chunk-7LORCJCQ.js} +4 -4
  48. package/bundle/{chunk-HDOFJVFS.js → chunk-7OI46MH7.js} +3 -3
  49. package/bundle/{chunk-H2K23MOF.js → chunk-7XXISOHU.js} +21 -5
  50. package/bundle/chunk-7XXISOHU.js.map +7 -0
  51. package/bundle/{chunk-CB6S3ZRF.js → chunk-AFFW2LRY.js} +3 -3
  52. package/bundle/{chunk-TCI6FZTP.js → chunk-AHJDG6OM.js} +9 -9
  53. package/bundle/{chunk-NP72ZB7P.js → chunk-AMUJEP6L.js} +45 -45
  54. package/bundle/{chunk-NP72ZB7P.js.map → chunk-AMUJEP6L.js.map} +2 -2
  55. package/bundle/{chunk-BU7LTI2W.js → chunk-AWCO3DQ3.js} +6 -7
  56. package/bundle/chunk-AWCO3DQ3.js.map +7 -0
  57. package/bundle/{chunk-YME7NRGP.js → chunk-B2TIRDZC.js} +2 -2
  58. package/bundle/{chunk-SSCGWDIC.js → chunk-BWJ37KMW.js} +2 -2
  59. package/bundle/{chunk-ULO2PX3T.js → chunk-CCZ43JB7.js} +3 -3
  60. package/bundle/{chunk-FVUL44T4.js → chunk-CNENVY37.js} +2 -2
  61. package/bundle/{chunk-J5NOL4DB.js → chunk-DJOSXXM2.js} +2 -2
  62. package/bundle/{chunk-7RAGSHSH.js → chunk-DMDX35YT.js} +12 -10
  63. package/bundle/chunk-DMDX35YT.js.map +7 -0
  64. package/bundle/{chunk-DNDYD5SL.js → chunk-E7DZYCSF.js} +3 -3
  65. package/bundle/{chunk-M6Q3IQ4H.js → chunk-FF2F7ENH.js} +250 -118
  66. package/bundle/chunk-FF2F7ENH.js.map +7 -0
  67. package/bundle/{chunk-GCFIK6OB.js → chunk-FSGICOCX.js} +21 -21
  68. package/bundle/{chunk-IXKQ4JMX.js → chunk-GFAJSPMD.js} +33 -17
  69. package/bundle/chunk-GFAJSPMD.js.map +7 -0
  70. package/bundle/{chunk-FJF42RZY.js → chunk-GHRLO2UL.js} +3 -3
  71. package/bundle/{chunk-3LQOJVTB.js → chunk-HFOCNYEO.js} +1842 -1220
  72. package/bundle/{chunk-3LQOJVTB.js.map → chunk-HFOCNYEO.js.map} +4 -4
  73. package/bundle/{chunk-7WHXTCVD.js → chunk-HWFN7JGU.js} +2 -2
  74. package/bundle/{chunk-KBPVJGD7.js → chunk-IXGDDDAB.js} +3 -3
  75. package/bundle/chunk-JHLKEUHE.js +37 -0
  76. package/bundle/chunk-JHLKEUHE.js.map +7 -0
  77. package/bundle/{chunk-YEOZN5IE.js → chunk-JRGEEGZF.js} +2 -2
  78. package/bundle/{chunk-56D3Y44D.js → chunk-KLG4SCF7.js} +10 -10
  79. package/bundle/{chunk-ASYX43OU.js → chunk-LB43Q7G6.js} +26 -26
  80. package/bundle/{chunk-TVSPVZTX.js → chunk-LN5MNDSA.js} +3 -3
  81. package/bundle/{chunk-RJX45XIC.js → chunk-LPF2HELD.js} +9 -4
  82. package/bundle/chunk-LPF2HELD.js.map +7 -0
  83. package/bundle/{chunk-72T2Q7IG.js → chunk-MJACYH7A.js} +270 -282
  84. package/bundle/chunk-MJACYH7A.js.map +7 -0
  85. package/bundle/{chunk-SESM4GBM.js → chunk-MPQ2PJQX.js} +52 -25
  86. package/bundle/chunk-MPQ2PJQX.js.map +7 -0
  87. package/bundle/{chunk-FIAVVKGN.js → chunk-MTE32OQH.js} +3 -3
  88. package/bundle/{chunk-MV5KOWOR.js → chunk-N3Q3TASM.js} +7 -7
  89. package/bundle/{chunk-IQKADER4.js → chunk-O4YBJS2K.js} +2 -2
  90. package/bundle/{chunk-VJATH7AN.js → chunk-OOUCUCUW.js} +9 -8
  91. package/bundle/chunk-OOUCUCUW.js.map +7 -0
  92. package/bundle/{chunk-5V4VHKEA.js → chunk-OT6HLPEA.js} +3 -3
  93. package/bundle/{chunk-V6CV3QPH.js → chunk-OWPQIBAO.js} +2 -2
  94. package/bundle/{chunk-EDZGF6BC.js → chunk-QJPDBJDP.js} +11 -4
  95. package/bundle/chunk-QJPDBJDP.js.map +7 -0
  96. package/bundle/{chunk-N5VROZ7A.js → chunk-QMP2KC4W.js} +5 -5
  97. package/bundle/{chunk-4HNCOQSK.js → chunk-QOGZ7BFL.js} +7 -7
  98. package/bundle/{chunk-2LKQV2ND.js → chunk-R23FHZRY.js} +3 -3
  99. package/bundle/{chunk-SXNY6HC4.js → chunk-R4GYWVCR.js} +6 -6
  100. package/bundle/chunk-R4GYWVCR.js.map +7 -0
  101. package/bundle/{chunk-S7ZIGIR5.js → chunk-R76K6L6H.js} +27 -27
  102. package/bundle/{chunk-S7ZIGIR5.js.map → chunk-R76K6L6H.js.map} +1 -1
  103. package/bundle/{chunk-TY26WMQY.js → chunk-RCWQ34QR.js} +2 -2
  104. package/bundle/{chunk-MQJG7OJX.js → chunk-RJ2OUNFU.js} +38 -36
  105. package/bundle/chunk-RJ2OUNFU.js.map +7 -0
  106. package/bundle/{chunk-S6HEHCCG.js → chunk-RO3TAYBR.js} +83 -46
  107. package/bundle/chunk-RO3TAYBR.js.map +7 -0
  108. package/bundle/{chunk-ZOCEBV62.js → chunk-UU3RLJSD.js} +3 -3
  109. package/bundle/{chunk-P5O6QZDC.js → chunk-V7Y2LFO4.js} +10 -6
  110. package/bundle/chunk-V7Y2LFO4.js.map +7 -0
  111. package/bundle/{chunk-WP7FZHMI.js → chunk-W2PSVV2T.js} +2 -2
  112. package/bundle/{chunk-V2QIAXWZ.js → chunk-WEGFRA6G.js} +3 -3
  113. package/bundle/{chunk-ZY6DH2S4.js → chunk-WTIGZO3N.js} +80 -70
  114. package/bundle/chunk-WTIGZO3N.js.map +7 -0
  115. package/bundle/{chunk-O4GKI3Q3.js → chunk-X7DLKIQM.js} +4 -4
  116. package/bundle/{chunk-BNBC4T45.js → chunk-XZ4ZBDM5.js} +3 -3
  117. package/bundle/{chunk-24V4A6RP.js → chunk-YI2KSYB4.js} +4 -4
  118. package/bundle/{chunk-37EX63K4.js → chunk-YWHJJHJ2.js} +6998 -3621
  119. package/bundle/chunk-YWHJJHJ2.js.map +7 -0
  120. package/bundle/{chunk-IK4R3RBZ.js → chunk-YZCOA4DC.js} +3 -3
  121. package/bundle/{chunk-2FZJDMAF.js → chunk-ZGNSCJWH.js} +10 -10
  122. package/bundle/{chunk-W726UGI6.js → chunk-ZKMKAO75.js} +3 -3
  123. package/bundle/{chunk-WGWM4IZM.js → chunk-ZT5ZBGWS.js} +4 -4
  124. package/bundle/{chunk-WGWM4IZM.js.map → chunk-ZT5ZBGWS.js.map} +1 -1
  125. package/bundle/{commands-XXFU2ZF7.js → commands-2JQ5YTJX.js} +20 -20
  126. package/bundle/{config-EWDZ234X.js → config-ZEWIM5Z2.js} +8 -7
  127. package/bundle/{config-show-6J33O4TE.js → config-show-WBJPQPRD.js} +5 -5
  128. package/bundle/{context-OCS7HLJP.js → context-V75QNXB5.js} +5 -2
  129. package/bundle/{context-OCS7HLJP.js.map → context-V75QNXB5.js.map} +1 -1
  130. package/bundle/{daemon-LTDAXNA2.js → daemon-W7VQOSZC.js} +7 -7
  131. package/bundle/{delegation-tools-YDTWQMZD.js → delegation-tools-VGTRFQBF.js} +13 -11
  132. package/bundle/{registry-client-VN2MM2HI.js → deploy-5AGIULM2.js} +10 -6
  133. package/bundle/{deploy-lib-import-RGZJ3CGC.js → deploy-lib-import-ZBDYORN4.js} +5 -3
  134. package/bundle/{deps-PHSLIA77.js → deps-VB3S3RLF.js} +21 -19
  135. package/bundle/deps-VB3S3RLF.js.map +7 -0
  136. package/bundle/{direct-api-transport-OAKYQBJR.js → direct-api-transport-YSROTC35.js} +30 -28
  137. package/bundle/direct-api-transport-YSROTC35.js.map +7 -0
  138. package/bundle/{discord-adapter-WUNYPTDE.js → discord-adapter-LKBSIFLV.js} +26 -26
  139. package/bundle/{dist-7HEHHQI2.js → dist-KMK7TZGN.js} +376 -348
  140. package/bundle/dist-KMK7TZGN.js.map +7 -0
  141. package/bundle/{dns-wakeup-F55ALHXJ.js → dns-wakeup-KIURCCFJ.js} +4 -3
  142. package/bundle/{dns-wakeup-F55ALHXJ.js.map → dns-wakeup-KIURCCFJ.js.map} +1 -1
  143. package/bundle/{doctor-probes-3SLIUGKS.js → doctor-probes-46UKIROK.js} +4 -3
  144. package/bundle/{env-schema-MSDP2YBO.js → env-schema-YGHCKX5B.js} +5 -4
  145. package/bundle/{gossip-CS3G3447.js → gossip-VSEY2HSE.js} +7 -6
  146. package/bundle/{guardrails-24XK2COI.js → guardrails-U7M6H2GE.js} +6 -5
  147. package/bundle/{health-check-FRUNRVNQ.js → health-check-ASRLUJE5.js} +6 -2
  148. package/bundle/health-check-ASRLUJE5.js.map +7 -0
  149. package/bundle/{heartbeat-system-G4IFQXT6.js → heartbeat-system-MUXLT4E6.js} +7 -6
  150. package/bundle/{heartbeat-tier3-3ZO3EVXP.js → heartbeat-tier3-636ZMM4E.js} +45 -44
  151. package/bundle/heartbeat-tier3-636ZMM4E.js.map +7 -0
  152. package/bundle/{hook-system-X6INNJGV.js → hook-system-Z4XD6IM5.js} +5 -4
  153. package/bundle/{hotskills-6FQYTJIO.js → hotskills-AOUWVTQB.js} +7 -6
  154. package/bundle/{install-ZAHTZ5M5.js → install-3GGZUN22.js} +23 -20
  155. package/bundle/install-3GGZUN22.js.map +7 -0
  156. package/bundle/{install-manifest-QX7KVDCA.js → install-manifest-624KOB4S.js} +4 -3
  157. package/bundle/{install-manifest-QX7KVDCA.js.map → install-manifest-624KOB4S.js.map} +1 -1
  158. package/bundle/{irc-adapter-IEJQKKJF.js → irc-adapter-SA7GLJGR.js} +5 -4
  159. package/bundle/{irc-adapter-IEJQKKJF.js.map → irc-adapter-SA7GLJGR.js.map} +1 -1
  160. package/bundle/{irc-config-TTWNYFLH.js → irc-config-PG4X2I4M.js} +6 -5
  161. package/bundle/{irc-config-TTWNYFLH.js.map → irc-config-PG4X2I4M.js.map} +1 -1
  162. package/bundle/{kanban-board-J6RO3ZU7.js → kanban-board-4AI5Z6B5.js} +7 -5
  163. package/bundle/{kanban-channel-5EIXBFSA.js → kanban-channel-JMBYWGWD.js} +8 -6
  164. package/bundle/{lazy-require-V6EFUATC.js → lazy-require-GURNBC3C.js} +11 -6
  165. package/bundle/{logger-Y3VILPRH.js → logger-UQJPZMYV.js} +4 -3
  166. package/bundle/{logs-YS3GDURO.js → logs-2WTDLMB5.js} +5 -5
  167. package/bundle/{main-chat-YLZDNQPO.js → main-chat-EID5Y6H2.js} +6 -5
  168. package/bundle/{master-user-Z4M7KCJE.js → master-user-TKA7M2GL.js} +7 -6
  169. package/bundle/{media-utils-P6RZ2K3U.js → media-utils-X3UN342B.js} +44 -43
  170. package/bundle/{media-utils-P6RZ2K3U.js.map → media-utils-X3UN342B.js.map} +2 -2
  171. package/bundle/{message-pipeline-MHEBDJLH.js → message-pipeline-TAWXNEVS.js} +20 -20
  172. package/bundle/meta.json +9264 -8575
  173. package/bundle/{migrate-layout-RJJQLVGR.js → migrate-layout-KEAIIN26.js} +8 -4
  174. package/bundle/migrate-layout-KEAIIN26.js.map +7 -0
  175. package/bundle/{nerve-VZNMFDGY.js → nerve-TC34H4EL.js} +5 -4
  176. package/bundle/{notification-VV2OR6NW.js → notification-JQNVGICN.js} +8 -7
  177. package/bundle/{openrouter-credits-LXC7P4G6.js → openrouter-credits-5Q3EYWE5.js} +5 -4
  178. package/bundle/{openrouter-credits-LXC7P4G6.js.map → openrouter-credits-5Q3EYWE5.js.map} +1 -1
  179. package/bundle/{orc-KC4USP55.js → orc-74Z62W7B.js} +4 -4
  180. package/bundle/{orc-tools-CHRSXSAS.js → orc-tools-GME3DKIN.js} +5 -4
  181. package/bundle/{paths-EDK6KWHG.js → paths-BAUNPLNJ.js} +6 -2
  182. package/bundle/{paths-RZF6WDMG.js → paths-MZC2KU2C.js} +3 -2
  183. package/bundle/{peer-auth-SRONOLNG.js → peer-auth-VRO3JYL5.js} +9 -8
  184. package/bundle/{peer-client-VOF77T6C.js → peer-client-WLK5GZQS.js} +9 -8
  185. package/bundle/{peer-client-VOF77T6C.js.map → peer-client-WLK5GZQS.js.map} +1 -1
  186. package/bundle/{peer-config-FRWLEYQ5.js → peer-config-24WILLCJ.js} +6 -5
  187. package/bundle/{peer-jwt-XY3XRIA2.js → peer-jwt-ZR6RF3XM.js} +6 -5
  188. package/bundle/{peer-transport-UBBXTDRP.js → peer-transport-BK5VHI2M.js} +8 -7
  189. package/bundle/{phase-transport-4NQHZX75.js → phase-transport-7QJM7J6V.js} +18 -16
  190. package/bundle/{reconcile-2EUXJ6W5.js → reconcile-7N7OE2GU.js} +5 -4
  191. package/bundle/{reconciler-FFQGV4DO.js → reconciler-7LOOUK43.js} +13 -11
  192. package/bundle/{reconciler-FFQGV4DO.js.map → reconciler-7LOOUK43.js.map} +1 -1
  193. package/bundle/{restore-NFDE2RG6.js → restore-MENZ3I3K.js} +13 -9
  194. package/bundle/{restore-NFDE2RG6.js.map → restore-MENZ3I3K.js.map} +3 -3
  195. package/bundle/{rollback-MVZ53XS4.js → rollback-JOHY6KWW.js} +5 -5
  196. package/bundle/{chunk-SKY6656M.js → sandbox-runtime-T7RF4WJD.js} +11 -28
  197. package/bundle/{chunk-SKY6656M.js.map → sandbox-runtime-T7RF4WJD.js.map} +1 -1
  198. package/bundle/{self-healer-utils-KD6LV63S.js → self-healer-utils-OR2N6RLD.js} +5 -4
  199. package/bundle/{self-healer-utils-KD6LV63S.js.map → self-healer-utils-OR2N6RLD.js.map} +1 -1
  200. package/bundle/{sha-tracker-2DB4R2TW.js → sha-tracker-BXOLWZJL.js} +5 -4
  201. package/bundle/{skill-session-BPDVA6ZG.js → skill-session-H6EQ4NGN.js} +5 -4
  202. package/bundle/{skill-session-BPDVA6ZG.js.map → skill-session-H6EQ4NGN.js.map} +1 -1
  203. package/bundle/{skill-stats-TPD2NROA.js → skill-stats-7O777ZSZ.js} +6 -5
  204. package/bundle/{skill-watcher-D7QYYYON.js → skill-watcher-ZGLTDPG5.js} +6 -5
  205. package/bundle/{sleep-GH6DLBJJ.js → sleep-3LFZH727.js} +10 -9
  206. package/bundle/{soul-bundle-GXLMDBCC.js → soul-bundle-RQ2YQMJW.js} +10 -9
  207. package/bundle/{spin-4DBYHS3E.js → spin-76K4R6FK.js} +12 -10
  208. package/bundle/{spin-notifications-IKYJPER5.js → spin-notifications-LD46B4K5.js} +7 -5
  209. package/bundle/{spin-notifications-IKYJPER5.js.map → spin-notifications-LD46B4K5.js.map} +1 -1
  210. package/bundle/{spin-types-PLJH3SIK.js → spin-types-MOKTZXGB.js} +5 -4
  211. package/bundle/{src-SUFZ27S5.js → src-6BTCMOD3.js} +4 -4
  212. package/bundle/{sse-parser-anthropic-U7ILHOY5.js → sse-parser-anthropic-NV2CGBIT.js} +5 -4
  213. package/bundle/{sse-parser-anthropic-U7ILHOY5.js.map → sse-parser-anthropic-NV2CGBIT.js.map} +1 -1
  214. package/bundle/{sse-parser-responses-OI73R3AH.js → sse-parser-responses-FC3PFHQ5.js} +5 -4
  215. package/bundle/{sse-parser-responses-OI73R3AH.js.map → sse-parser-responses-FC3PFHQ5.js.map} +1 -1
  216. package/bundle/{ssrf-guard-6GP4QYVA.js → ssrf-guard-E2YPLW6G.js} +5 -4
  217. package/bundle/{ssrf-guard-6GP4QYVA.js.map → ssrf-guard-E2YPLW6G.js.map} +1 -1
  218. package/bundle/{start-JT2BPMSW.js → start-HPO5LYJP.js} +5 -5
  219. package/bundle/start-HPO5LYJP.js.map +7 -0
  220. package/bundle/{stt-KD3AABKG.js → stt-UE7EOYD7.js} +6 -5
  221. package/bundle/{subagent-runtime-LVECAUPV.js → subagent-runtime-4X3UHF4H.js} +6 -5
  222. package/bundle/system-status-PLPWV4RF.js +346 -0
  223. package/bundle/system-status-PLPWV4RF.js.map +7 -0
  224. package/bundle/{task-store-2XRDM3AW.js → task-store-RAFMDQ7N.js} +6 -5
  225. package/bundle/{telegram-adapter-UJ3RYYV6.js → telegram-adapter-PPXKTGOP.js} +35 -35
  226. package/bundle/{tool-registry-YU6WBXPA.js → tool-registry-NKIPNJZ5.js} +25 -23
  227. package/bundle/{tool-sandbox-RNNPDR5M.js → tool-sandbox-DQCP3UTU.js} +6 -5
  228. package/bundle/{transport-config-OK3MZPJK.js → transport-config-SF6GBV47.js} +9 -8
  229. package/bundle/{update-ENNPRW7Y.js → update-QOOGMFSJ.js} +6 -6
  230. package/bundle/{update-check-SJB6GV3A.js → update-check-LPZG3K5P.js} +3 -2
  231. package/bundle/{update-check-SJB6GV3A.js.map → update-check-LPZG3K5P.js.map} +1 -1
  232. package/bundle/{usage-tracker-HRSGC7QC.js → usage-tracker-TBDM4KE6.js} +2 -2
  233. package/bundle/{user-registry-6PUJJ5J2.js → user-registry-OYJVAHDD.js} +6 -5
  234. package/bundle/{wrapper-WLHLG4MI.js → wrapper-W66YICNZ.js} +3 -3
  235. package/bundle/{ws-peer-client-WHW3RJTD.js → ws-peer-client-G5QHOF6K.js} +15 -14
  236. package/bundle/{ws-peer-client-WHW3RJTD.js.map → ws-peer-client-G5QHOF6K.js.map} +2 -2
  237. package/package.json +3 -7
  238. package/scripts/emergency-deploy.sh +11 -8
  239. package/scripts/emergency-update.sh +156 -23
  240. package/templates/config/.env +1 -1
  241. package/templates/config/models.json +13 -0
  242. package/bundle/chunk-37EX63K4.js.map +0 -7
  243. package/bundle/chunk-3QW2K53E.js.map +0 -7
  244. package/bundle/chunk-72T2Q7IG.js.map +0 -7
  245. package/bundle/chunk-7RAGSHSH.js.map +0 -7
  246. package/bundle/chunk-BU7LTI2W.js.map +0 -7
  247. package/bundle/chunk-C3EYYJN3.js.map +0 -7
  248. package/bundle/chunk-CAOIIVFP.js +0 -110
  249. package/bundle/chunk-CAOIIVFP.js.map +0 -7
  250. package/bundle/chunk-EDZGF6BC.js.map +0 -7
  251. package/bundle/chunk-H2K23MOF.js.map +0 -7
  252. package/bundle/chunk-HAZHNBBY.js +0 -156
  253. package/bundle/chunk-HAZHNBBY.js.map +0 -7
  254. package/bundle/chunk-IXKQ4JMX.js.map +0 -7
  255. package/bundle/chunk-JAJ3DUQ2.js +0 -30
  256. package/bundle/chunk-JAJ3DUQ2.js.map +0 -7
  257. package/bundle/chunk-KMFR5AVY.js +0 -45
  258. package/bundle/chunk-KMFR5AVY.js.map +0 -7
  259. package/bundle/chunk-M6Q3IQ4H.js.map +0 -7
  260. package/bundle/chunk-MQJG7OJX.js.map +0 -7
  261. package/bundle/chunk-OY2HAK33.js.map +0 -7
  262. package/bundle/chunk-P5O6QZDC.js.map +0 -7
  263. package/bundle/chunk-RJX45XIC.js.map +0 -7
  264. package/bundle/chunk-S6HEHCCG.js.map +0 -7
  265. package/bundle/chunk-SESM4GBM.js.map +0 -7
  266. package/bundle/chunk-SXNY6HC4.js.map +0 -7
  267. package/bundle/chunk-VJATH7AN.js.map +0 -7
  268. package/bundle/chunk-ZY6DH2S4.js.map +0 -7
  269. package/bundle/deps-PHSLIA77.js.map +0 -7
  270. package/bundle/direct-api-transport-OAKYQBJR.js.map +0 -7
  271. package/bundle/dist-7HEHHQI2.js.map +0 -7
  272. package/bundle/health-check-FRUNRVNQ.js.map +0 -7
  273. package/bundle/heartbeat-tier3-3ZO3EVXP.js.map +0 -7
  274. package/bundle/install-ZAHTZ5M5.js.map +0 -7
  275. package/bundle/migrate-layout-RJJQLVGR.js.map +0 -7
  276. package/bundle/phase-config-V4XETN5F.js +0 -18
  277. package/bundle/sandbox-runtime-WHACQLLN.js +0 -22
  278. package/bundle/start-JT2BPMSW.js.map +0 -7
  279. package/bundle/system-status-XXJWTVJN.js +0 -243
  280. package/bundle/system-status-XXJWTVJN.js.map +0 -7
  281. package/bundle/user-registry-6PUJJ5J2.js.map +0 -7
  282. package/bundle/wrapper-WLHLG4MI.js.map +0 -7
  283. /package/bundle/{agent-api-rate-limit-4GEZ4YN5.js.map → agent-api-rate-limit-VENFGOAD.js.map} +0 -0
  284. /package/bundle/{agent-registry-563P4EUJ.js.map → agent-registry-DL7UT272.js.map} +0 -0
  285. /package/bundle/{bridge-lock-transport-LXCF2IVN.js.map → bridge-lock-transport-BJAMHMXW.js.map} +0 -0
  286. /package/bundle/{browser-2VZOGOGX.js.map → browser-PT54UWSW.js.map} +0 -0
  287. /package/bundle/{capability-WXEA2WFK.js.map → capability-EKPGHQIO.js.map} +0 -0
  288. /package/bundle/{chunk-4PIVWXUJ.js.map → chunk-2ZD7VQRW.js.map} +0 -0
  289. /package/bundle/{chunk-T7TAWGBX.js.map → chunk-52PQM4EZ.js.map} +0 -0
  290. /package/bundle/{chunk-2RGR3LSV.js.map → chunk-5P5HF7IJ.js.map} +0 -0
  291. /package/bundle/{chunk-OOKNHOCB.js.map → chunk-6S3G6GPO.js.map} +0 -0
  292. /package/bundle/{chunk-E7MV7WFT.js.map → chunk-6VTHSN4V.js.map} +0 -0
  293. /package/bundle/{chunk-NGZVJ52F.js.map → chunk-76YN7O3U.js.map} +0 -0
  294. /package/bundle/{chunk-43DKPXTP.js.map → chunk-7LORCJCQ.js.map} +0 -0
  295. /package/bundle/{chunk-HDOFJVFS.js.map → chunk-7OI46MH7.js.map} +0 -0
  296. /package/bundle/{chunk-CB6S3ZRF.js.map → chunk-AFFW2LRY.js.map} +0 -0
  297. /package/bundle/{chunk-TCI6FZTP.js.map → chunk-AHJDG6OM.js.map} +0 -0
  298. /package/bundle/{chunk-YME7NRGP.js.map → chunk-B2TIRDZC.js.map} +0 -0
  299. /package/bundle/{chunk-SSCGWDIC.js.map → chunk-BWJ37KMW.js.map} +0 -0
  300. /package/bundle/{chunk-ULO2PX3T.js.map → chunk-CCZ43JB7.js.map} +0 -0
  301. /package/bundle/{chunk-FVUL44T4.js.map → chunk-CNENVY37.js.map} +0 -0
  302. /package/bundle/{chunk-J5NOL4DB.js.map → chunk-DJOSXXM2.js.map} +0 -0
  303. /package/bundle/{chunk-DNDYD5SL.js.map → chunk-E7DZYCSF.js.map} +0 -0
  304. /package/bundle/{chunk-GCFIK6OB.js.map → chunk-FSGICOCX.js.map} +0 -0
  305. /package/bundle/{chunk-FJF42RZY.js.map → chunk-GHRLO2UL.js.map} +0 -0
  306. /package/bundle/{chunk-7WHXTCVD.js.map → chunk-HWFN7JGU.js.map} +0 -0
  307. /package/bundle/{chunk-KBPVJGD7.js.map → chunk-IXGDDDAB.js.map} +0 -0
  308. /package/bundle/{chunk-YEOZN5IE.js.map → chunk-JRGEEGZF.js.map} +0 -0
  309. /package/bundle/{chunk-56D3Y44D.js.map → chunk-KLG4SCF7.js.map} +0 -0
  310. /package/bundle/{chunk-ASYX43OU.js.map → chunk-LB43Q7G6.js.map} +0 -0
  311. /package/bundle/{chunk-TVSPVZTX.js.map → chunk-LN5MNDSA.js.map} +0 -0
  312. /package/bundle/{chunk-FIAVVKGN.js.map → chunk-MTE32OQH.js.map} +0 -0
  313. /package/bundle/{chunk-MV5KOWOR.js.map → chunk-N3Q3TASM.js.map} +0 -0
  314. /package/bundle/{chunk-IQKADER4.js.map → chunk-O4YBJS2K.js.map} +0 -0
  315. /package/bundle/{chunk-5V4VHKEA.js.map → chunk-OT6HLPEA.js.map} +0 -0
  316. /package/bundle/{chunk-V6CV3QPH.js.map → chunk-OWPQIBAO.js.map} +0 -0
  317. /package/bundle/{chunk-N5VROZ7A.js.map → chunk-QMP2KC4W.js.map} +0 -0
  318. /package/bundle/{chunk-4HNCOQSK.js.map → chunk-QOGZ7BFL.js.map} +0 -0
  319. /package/bundle/{chunk-2LKQV2ND.js.map → chunk-R23FHZRY.js.map} +0 -0
  320. /package/bundle/{chunk-TY26WMQY.js.map → chunk-RCWQ34QR.js.map} +0 -0
  321. /package/bundle/{chunk-ZOCEBV62.js.map → chunk-UU3RLJSD.js.map} +0 -0
  322. /package/bundle/{chunk-WP7FZHMI.js.map → chunk-W2PSVV2T.js.map} +0 -0
  323. /package/bundle/{chunk-V2QIAXWZ.js.map → chunk-WEGFRA6G.js.map} +0 -0
  324. /package/bundle/{chunk-O4GKI3Q3.js.map → chunk-X7DLKIQM.js.map} +0 -0
  325. /package/bundle/{chunk-BNBC4T45.js.map → chunk-XZ4ZBDM5.js.map} +0 -0
  326. /package/bundle/{chunk-24V4A6RP.js.map → chunk-YI2KSYB4.js.map} +0 -0
  327. /package/bundle/{chunk-IK4R3RBZ.js.map → chunk-YZCOA4DC.js.map} +0 -0
  328. /package/bundle/{chunk-2FZJDMAF.js.map → chunk-ZGNSCJWH.js.map} +0 -0
  329. /package/bundle/{chunk-W726UGI6.js.map → chunk-ZKMKAO75.js.map} +0 -0
  330. /package/bundle/{commands-XXFU2ZF7.js.map → commands-2JQ5YTJX.js.map} +0 -0
  331. /package/bundle/{config-EWDZ234X.js.map → config-ZEWIM5Z2.js.map} +0 -0
  332. /package/bundle/{config-show-6J33O4TE.js.map → config-show-WBJPQPRD.js.map} +0 -0
  333. /package/bundle/{daemon-LTDAXNA2.js.map → daemon-W7VQOSZC.js.map} +0 -0
  334. /package/bundle/{delegation-tools-YDTWQMZD.js.map → delegation-tools-VGTRFQBF.js.map} +0 -0
  335. /package/bundle/{deploy-lib-import-RGZJ3CGC.js.map → deploy-5AGIULM2.js.map} +0 -0
  336. /package/bundle/{doctor-probes-3SLIUGKS.js.map → deploy-lib-import-ZBDYORN4.js.map} +0 -0
  337. /package/bundle/{discord-adapter-WUNYPTDE.js.map → discord-adapter-LKBSIFLV.js.map} +0 -0
  338. /package/bundle/{env-schema-MSDP2YBO.js.map → doctor-probes-46UKIROK.js.map} +0 -0
  339. /package/bundle/{gossip-CS3G3447.js.map → env-schema-YGHCKX5B.js.map} +0 -0
  340. /package/bundle/{guardrails-24XK2COI.js.map → gossip-VSEY2HSE.js.map} +0 -0
  341. /package/bundle/{heartbeat-system-G4IFQXT6.js.map → guardrails-U7M6H2GE.js.map} +0 -0
  342. /package/bundle/{hook-system-X6INNJGV.js.map → heartbeat-system-MUXLT4E6.js.map} +0 -0
  343. /package/bundle/{hotskills-6FQYTJIO.js.map → hook-system-Z4XD6IM5.js.map} +0 -0
  344. /package/bundle/{kanban-board-J6RO3ZU7.js.map → hotskills-AOUWVTQB.js.map} +0 -0
  345. /package/bundle/{kanban-channel-5EIXBFSA.js.map → kanban-board-4AI5Z6B5.js.map} +0 -0
  346. /package/bundle/{lazy-require-V6EFUATC.js.map → kanban-channel-JMBYWGWD.js.map} +0 -0
  347. /package/bundle/{logger-Y3VILPRH.js.map → lazy-require-GURNBC3C.js.map} +0 -0
  348. /package/bundle/{main-chat-YLZDNQPO.js.map → logger-UQJPZMYV.js.map} +0 -0
  349. /package/bundle/{logs-YS3GDURO.js.map → logs-2WTDLMB5.js.map} +0 -0
  350. /package/bundle/{master-user-Z4M7KCJE.js.map → main-chat-EID5Y6H2.js.map} +0 -0
  351. /package/bundle/{message-pipeline-MHEBDJLH.js.map → master-user-TKA7M2GL.js.map} +0 -0
  352. /package/bundle/{nerve-VZNMFDGY.js.map → message-pipeline-TAWXNEVS.js.map} +0 -0
  353. /package/bundle/{notification-VV2OR6NW.js.map → nerve-TC34H4EL.js.map} +0 -0
  354. /package/bundle/{orc-tools-CHRSXSAS.js.map → notification-JQNVGICN.js.map} +0 -0
  355. /package/bundle/{orc-KC4USP55.js.map → orc-74Z62W7B.js.map} +0 -0
  356. /package/bundle/{paths-EDK6KWHG.js.map → orc-tools-GME3DKIN.js.map} +0 -0
  357. /package/bundle/{paths-RZF6WDMG.js.map → paths-BAUNPLNJ.js.map} +0 -0
  358. /package/bundle/{peer-auth-SRONOLNG.js.map → paths-MZC2KU2C.js.map} +0 -0
  359. /package/bundle/{peer-config-FRWLEYQ5.js.map → peer-auth-VRO3JYL5.js.map} +0 -0
  360. /package/bundle/{peer-jwt-XY3XRIA2.js.map → peer-config-24WILLCJ.js.map} +0 -0
  361. /package/bundle/{peer-transport-UBBXTDRP.js.map → peer-jwt-ZR6RF3XM.js.map} +0 -0
  362. /package/bundle/{phase-config-V4XETN5F.js.map → peer-transport-BK5VHI2M.js.map} +0 -0
  363. /package/bundle/{phase-transport-4NQHZX75.js.map → phase-transport-7QJM7J6V.js.map} +0 -0
  364. /package/bundle/{reconcile-2EUXJ6W5.js.map → reconcile-7N7OE2GU.js.map} +0 -0
  365. /package/bundle/{registry-client-VN2MM2HI.js.map → rollback-JOHY6KWW.js.map} +0 -0
  366. /package/bundle/{rollback-MVZ53XS4.js.map → sha-tracker-BXOLWZJL.js.map} +0 -0
  367. /package/bundle/{sandbox-runtime-WHACQLLN.js.map → skill-stats-7O777ZSZ.js.map} +0 -0
  368. /package/bundle/{sha-tracker-2DB4R2TW.js.map → skill-watcher-ZGLTDPG5.js.map} +0 -0
  369. /package/bundle/{skill-stats-TPD2NROA.js.map → sleep-3LFZH727.js.map} +0 -0
  370. /package/bundle/{skill-watcher-D7QYYYON.js.map → soul-bundle-RQ2YQMJW.js.map} +0 -0
  371. /package/bundle/{sleep-GH6DLBJJ.js.map → spin-76K4R6FK.js.map} +0 -0
  372. /package/bundle/{soul-bundle-GXLMDBCC.js.map → spin-types-MOKTZXGB.js.map} +0 -0
  373. /package/bundle/{spin-4DBYHS3E.js.map → src-6BTCMOD3.js.map} +0 -0
  374. /package/bundle/{spin-types-PLJH3SIK.js.map → stt-UE7EOYD7.js.map} +0 -0
  375. /package/bundle/{src-SUFZ27S5.js.map → subagent-runtime-4X3UHF4H.js.map} +0 -0
  376. /package/bundle/{stt-KD3AABKG.js.map → task-store-RAFMDQ7N.js.map} +0 -0
  377. /package/bundle/{telegram-adapter-UJ3RYYV6.js.map → telegram-adapter-PPXKTGOP.js.map} +0 -0
  378. /package/bundle/{subagent-runtime-LVECAUPV.js.map → tool-registry-NKIPNJZ5.js.map} +0 -0
  379. /package/bundle/{task-store-2XRDM3AW.js.map → tool-sandbox-DQCP3UTU.js.map} +0 -0
  380. /package/bundle/{tool-registry-YU6WBXPA.js.map → transport-config-SF6GBV47.js.map} +0 -0
  381. /package/bundle/{tool-sandbox-RNNPDR5M.js.map → update-QOOGMFSJ.js.map} +0 -0
  382. /package/bundle/{transport-config-OK3MZPJK.js.map → usage-tracker-TBDM4KE6.js.map} +0 -0
  383. /package/bundle/{update-ENNPRW7Y.js.map → user-registry-OYJVAHDD.js.map} +0 -0
  384. /package/bundle/{usage-tracker-HRSGC7QC.js.map → wrapper-W66YICNZ.js.map} +0 -0
@@ -5,9 +5,9 @@ import {
5
5
  __toESM
6
6
  } from "./chunk-7K2YZTLD.js";
7
7
 
8
- // node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
8
+ // node_modules/sisteransi/src/index.js
9
9
  var require_src = __commonJS({
10
- "node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
10
+ "node_modules/sisteransi/src/index.js"(exports, module) {
11
11
  "use strict";
12
12
  var ESC2 = "\x1B";
13
13
  var CSI2 = `${ESC2}[`;
@@ -61,13 +61,13 @@ var require_src = __commonJS({
61
61
  }
62
62
  });
63
63
 
64
- // node_modules/.pnpm/@clack+core@1.4.1/node_modules/@clack/core/dist/index.mjs
64
+ // node_modules/@clack/core/dist/index.mjs
65
65
  import { styleText } from "node:util";
66
66
  import { stdout, stdin } from "node:process";
67
67
  import * as l from "node:readline";
68
68
  import l__default from "node:readline";
69
69
 
70
- // node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js
70
+ // node_modules/fast-string-truncated-width/dist/utils.js
71
71
  var getCodePointsLength = /* @__PURE__ */ (() => {
72
72
  const SURROGATE_PAIR_RE = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
73
73
  return (input) => {
@@ -86,7 +86,7 @@ var isWideNotCJKTNotEmoji = (x2) => {
86
86
  return x2 === 8987 || x2 === 9001 || x2 >= 12272 && x2 <= 12287 || x2 >= 12289 && x2 <= 12350 || x2 >= 12441 && x2 <= 12543 || x2 >= 12549 && x2 <= 12591 || x2 >= 12593 && x2 <= 12686 || x2 >= 12688 && x2 <= 12771 || x2 >= 12783 && x2 <= 12830 || x2 >= 12832 && x2 <= 12871 || x2 >= 12880 && x2 <= 19903 || x2 >= 65040 && x2 <= 65049 || x2 >= 65072 && x2 <= 65106 || x2 >= 65108 && x2 <= 65126 || x2 >= 65128 && x2 <= 65131 || x2 >= 127488 && x2 <= 127490 || x2 >= 127504 && x2 <= 127547 || x2 >= 127552 && x2 <= 127560 || x2 >= 131072 && x2 <= 196605 || x2 >= 196608 && x2 <= 262141;
87
87
  };
88
88
 
89
- // node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/index.js
89
+ // node_modules/fast-string-truncated-width/dist/index.js
90
90
  var ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y;
91
91
  var CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
92
92
  var CJKT_WIDE_RE = /(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu;
@@ -184,7 +184,7 @@ var getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {})
184
184
  };
185
185
  var dist_default = getStringTruncatedWidth;
186
186
 
187
- // node_modules/.pnpm/fast-string-width@3.0.2/node_modules/fast-string-width/dist/index.js
187
+ // node_modules/fast-string-width/dist/index.js
188
188
  var NO_TRUNCATION2 = {
189
189
  limit: Infinity,
190
190
  ellipsis: "",
@@ -195,7 +195,7 @@ var fastStringWidth = (input, options = {}) => {
195
195
  };
196
196
  var dist_default2 = fastStringWidth;
197
197
 
198
- // node_modules/.pnpm/fast-wrap-ansi@0.2.2/node_modules/fast-wrap-ansi/lib/main.js
198
+ // node_modules/fast-wrap-ansi/lib/main.js
199
199
  var ESC = "\x1B";
200
200
  var CSI = "\x9B";
201
201
  var END_CODE = 39;
@@ -403,7 +403,7 @@ function wrapAnsi(string, columns, options) {
403
403
  return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
404
404
  }
405
405
 
406
- // node_modules/.pnpm/@clack+core@1.4.1/node_modules/@clack/core/dist/index.mjs
406
+ // node_modules/@clack/core/dist/index.mjs
407
407
  var import_sisteransi = __toESM(require_src(), 1);
408
408
  import { ReadStream } from "node:tty";
409
409
  function findCursor(s, o2, l2) {
@@ -543,8 +543,8 @@ function block({
543
543
  return;
544
544
  }
545
545
  if (!o2) return;
546
- const i2 = a3 === "return" ? 0 : -1, m2 = a3 === "return" ? -1 : 0;
547
- l.moveCursor(r2, i2, m2, () => {
546
+ const i2 = a3 === "return" ? 0 : -1, m3 = a3 === "return" ? -1 : 0;
547
+ l.moveCursor(r2, i2, m3, () => {
548
548
  l.clearLine(r2, 1, () => {
549
549
  e.once("keypress", n2);
550
550
  });
@@ -562,9 +562,9 @@ function wrapTextWithPrefix(e, r2, o2, t2 = o2, s = o2, n2) {
562
562
  hard: true,
563
563
  trim: false
564
564
  }).split(`
565
- `).map((c3, i2, m2) => {
566
- const d2 = n2 ? n2(c3, i2) : c3;
567
- return i2 === 0 ? `${t2}${d2}` : i2 === m2.length - 1 ? `${s}${d2}` : `${o2}${d2}`;
565
+ `).map((c3, i2, m3) => {
566
+ const d = n2 ? n2(c3, i2) : c3;
567
+ return i2 === 0 ? `${t2}${d}` : i2 === m3.length - 1 ? `${s}${d}` : `${o2}${d}`;
568
568
  }).join(`
569
569
  `);
570
570
  }
@@ -935,12 +935,12 @@ var U = class extends V {
935
935
  this._setUserInput(this.#l(this.#t)), this._setValue(C(this.#t) ?? void 0);
936
936
  }
937
937
  constructor(t2) {
938
- const i2 = t2.format ? { segments: M(t2.format), separator: t2.separator ?? "/" } : P(t2.locale), s = t2.separator ?? i2.separator, n2 = t2.format ? M(t2.format) : i2.segments, e = t2.initialValue ?? t2.defaultValue, m2 = e ? {
938
+ const i2 = t2.format ? { segments: M(t2.format), separator: t2.separator ?? "/" } : P(t2.locale), s = t2.separator ?? i2.separator, n2 = t2.format ? M(t2.format) : i2.segments, e = t2.initialValue ?? t2.defaultValue, m3 = e ? {
939
939
  year: String(e.getUTCFullYear()).padStart(4, "0"),
940
940
  month: String(e.getUTCMonth() + 1).padStart(2, "0"),
941
941
  day: String(e.getUTCDate()).padStart(2, "0")
942
- } : { year: "____", month: "__", day: "__" }, o2 = n2.map((a3) => m2[a3.type]).join(s);
943
- super({ ...t2, initialUserInput: o2 }, false), this.#i = n2, this.#o = s, this.#t = m2, this.#h = t2.minDate, this.#u = t2.maxDate, this.#r(), this.on("cursor", (a3) => this.#f(a3)), this.on("key", (a3, u4) => this.#y(a3, u4)), this.on("finalize", () => this.#p(t2));
942
+ } : { year: "____", month: "__", day: "__" }, o2 = n2.map((a3) => m3[a3.type]).join(s);
943
+ super({ ...t2, initialUserInput: o2 }, false), this.#i = n2, this.#o = s, this.#t = m3, this.#h = t2.minDate, this.#u = t2.maxDate, this.#r(), this.on("cursor", (a3) => this.#f(a3)), this.on("key", (a3, u4) => this.#y(a3, u4)), this.on("finalize", () => this.#p(t2));
944
944
  }
945
945
  #a() {
946
946
  const t2 = Math.max(0, Math.min(this.#e.segmentIndex, this.#i.length - 1)), i2 = this.#i[t2];
@@ -961,14 +961,14 @@ var U = class extends V {
961
961
  #d(t2) {
962
962
  const i2 = this.#a();
963
963
  if (!i2) return;
964
- const { segment: s } = i2, n2 = this.#t[s.type], e = !n2 || n2.replace(/_/g, "") === "", m2 = Number.parseInt((n2 || "0").replace(/_/g, "0"), 10) || 0, o2 = T2(
964
+ const { segment: s } = i2, n2 = this.#t[s.type], e = !n2 || n2.replace(/_/g, "") === "", m3 = Number.parseInt((n2 || "0").replace(/_/g, "0"), 10) || 0, o2 = T2(
965
965
  s.type,
966
966
  f(this.#t),
967
967
  this.#h,
968
968
  this.#u
969
969
  );
970
970
  let a3;
971
- e ? a3 = t2 === 1 ? o2.min : o2.max : a3 = Math.max(Math.min(o2.max, m2 + t2), o2.min), this.#t = {
971
+ e ? a3 = t2 === 1 ? o2.min : o2.max : a3 = Math.max(Math.min(o2.max, m3 + t2), o2.min), this.#t = {
972
972
  ...this.#t,
973
973
  [s.type]: a3.toString().padStart(s.len, "0")
974
974
  }, this.#n = true, this.#s = null, this.#r();
@@ -1002,16 +1002,16 @@ var U = class extends V {
1002
1002
  this.inlineError = "";
1003
1003
  const n2 = this.#a();
1004
1004
  if (!n2) return;
1005
- const e = i2.shift ? -1 : 1, m2 = n2.index + e;
1006
- m2 >= 0 && m2 < this.#i.length && (this.#e.segmentIndex = m2, this.#e.positionInSegment = 0, this.#n = true);
1005
+ const e = i2.shift ? -1 : 1, m3 = n2.index + e;
1006
+ m3 >= 0 && m3 < this.#i.length && (this.#e.segmentIndex = m3, this.#e.positionInSegment = 0, this.#n = true);
1007
1007
  return;
1008
1008
  }
1009
1009
  if (t2 && /^[0-9]$/.test(t2)) {
1010
1010
  const n2 = this.#a();
1011
1011
  if (!n2) return;
1012
- const { segment: e } = n2, m2 = !this.#t[e.type].replace(/_/g, "");
1013
- if (this.#n && this.#s !== null && !m2) {
1014
- const h2 = this.#s + t2, d2 = { ...this.#t, [e.type]: h2 }, g2 = this.#g(d2, e);
1012
+ const { segment: e } = n2, m3 = !this.#t[e.type].replace(/_/g, "");
1013
+ if (this.#n && this.#s !== null && !m3) {
1014
+ const h2 = this.#s + t2, d = { ...this.#t, [e.type]: h2 }, g2 = this.#g(d, e);
1015
1015
  if (g2) {
1016
1016
  this.inlineError = g2, this.#s = null, this.#n = false;
1017
1017
  return;
@@ -1019,7 +1019,7 @@ var U = class extends V {
1019
1019
  this.inlineError = "", this.#t[e.type] = h2, this.#s = null, this.#n = false, this.#r(), n2.index < this.#i.length - 1 && (this.#e.segmentIndex = n2.index + 1, this.#e.positionInSegment = 0, this.#n = true);
1020
1020
  return;
1021
1021
  }
1022
- this.#n && !m2 && (this.#t[e.type] = "_".repeat(e.len), this.#e.positionInSegment = 0), this.#n = false, this.#s = null;
1022
+ this.#n && !m3 && (this.#t[e.type] = "_".repeat(e.len), this.#e.positionInSegment = 0), this.#n = false, this.#s = null;
1023
1023
  const o2 = this.#t[e.type], a3 = o2.indexOf("_"), u4 = a3 >= 0 ? a3 : Math.min(this.#e.positionInSegment, e.len - 1);
1024
1024
  if (u4 < 0 || u4 >= e.len) return;
1025
1025
  let l2 = o2.slice(0, u4) + t2 + o2.slice(u4 + 1), D = false;
@@ -1028,19 +1028,19 @@ var U = class extends V {
1028
1028
  l2 = `0${t2}`, D = h2 <= (e.type === "month" ? 1 : 2);
1029
1029
  }
1030
1030
  if (e.type === "year" && (l2 = (o2.replace(/_/g, "") + t2).padStart(e.len, "_")), !l2.includes("_")) {
1031
- const h2 = { ...this.#t, [e.type]: l2 }, d2 = this.#g(h2, e);
1032
- if (d2) {
1033
- this.inlineError = d2;
1031
+ const h2 = { ...this.#t, [e.type]: l2 }, d = this.#g(h2, e);
1032
+ if (d) {
1033
+ this.inlineError = d;
1034
1034
  return;
1035
1035
  }
1036
1036
  }
1037
1037
  this.inlineError = "", this.#t[e.type] = l2;
1038
1038
  const y = l2.includes("_") ? void 0 : b(this.#t);
1039
1039
  if (y) {
1040
- const { year: h2, month: d2 } = y, g2 = c(h2, d2);
1040
+ const { year: h2, month: d } = y, g2 = c(h2, d);
1041
1041
  this.#t = {
1042
1042
  year: String(Math.max(0, Math.min(9999, h2))).padStart(4, "0"),
1043
- month: String(Math.max(1, Math.min(12, d2))).padStart(2, "0"),
1043
+ month: String(Math.max(1, Math.min(12, d))).padStart(2, "0"),
1044
1044
  day: String(Math.max(1, Math.min(g2, y.day))).padStart(2, "0")
1045
1045
  };
1046
1046
  }
@@ -1125,8 +1125,8 @@ var u$1 = class u extends V {
1125
1125
  };
1126
1126
  var o$1 = /* @__PURE__ */ new Set(["up", "down", "left", "right"]);
1127
1127
  var h = class extends V {
1128
- #s = false;
1129
- #t;
1128
+ #t = false;
1129
+ #s;
1130
1130
  focused = "editor";
1131
1131
  get userInputWithCursor() {
1132
1132
  if (this.state === "submit")
@@ -1134,10 +1134,10 @@ var h = class extends V {
1134
1134
  const t2 = this.userInput;
1135
1135
  if (this.cursor >= t2.length)
1136
1136
  return `${t2}\u2588`;
1137
- const s = t2.slice(0, this.cursor), r2 = t2[this.cursor], e = t2.slice(this.cursor + 1);
1137
+ const s = t2.slice(0, this.cursor), r2 = t2[this.cursor], i2 = t2.slice(this.cursor + 1);
1138
1138
  return r2 === `
1139
1139
  ` ? `${s}\u2588
1140
- ${e}` : `${s}${styleText("inverse", r2)}${e}`;
1140
+ ${i2}` : `${s}${styleText("inverse", r2)}${i2}`;
1141
1141
  }
1142
1142
  get cursor() {
1143
1143
  return this._cursor;
@@ -1169,43 +1169,50 @@ ${e}` : `${s}${styleText("inverse", r2)}${e}`;
1169
1169
  }
1170
1170
  }
1171
1171
  _shouldSubmit(t2, s) {
1172
- if (this.#t)
1172
+ if (this.#s)
1173
1173
  return this.focused === "submit" ? true : (this.#r(`
1174
1174
  `), this._cursor++, false);
1175
- const r2 = this.#s;
1176
- return this.#s = true, r2 ? (this.userInput[this.cursor - 1] === `
1175
+ const r2 = this.#t;
1176
+ return this.#t = true, r2 && this.cursor === this.userInput.length ? (this.userInput[this.cursor - 1] === `
1177
1177
  ` && (this._setUserInput(
1178
1178
  this.userInput.slice(0, this.cursor - 1) + this.userInput.slice(this.cursor)
1179
1179
  ), this._cursor--), true) : (this.#r(`
1180
1180
  `), this._cursor++, false);
1181
1181
  }
1182
1182
  constructor(t2) {
1183
- super(t2, false), this.#t = t2.showSubmit ?? false, this.on("key", (s, r2) => {
1184
- if (r2?.name && o$1.has(r2.name)) {
1185
- this.#i(r2.name);
1183
+ const s = t2.initialUserInput ?? t2.initialValue;
1184
+ super(
1185
+ {
1186
+ ...t2,
1187
+ initialUserInput: s
1188
+ },
1189
+ false
1190
+ ), s !== void 0 && (this._cursor = s.length), this.#s = t2.showSubmit ?? false, this.on("key", (r2, i2) => {
1191
+ if (i2?.name && o$1.has(i2.name)) {
1192
+ this.#t = false, this.#i(i2.name);
1186
1193
  return;
1187
1194
  }
1188
- if (s === " " && this.#t) {
1195
+ if (r2 === " " && this.#s) {
1189
1196
  this.focused = this.focused === "editor" ? "submit" : "editor";
1190
1197
  return;
1191
1198
  }
1192
- if (r2?.name !== "return") {
1193
- if (this.#s = false, r2?.name === "backspace" && this.cursor > 0) {
1199
+ if (i2?.name !== "return") {
1200
+ if (this.#t = false, i2?.name === "backspace" && this.cursor > 0) {
1194
1201
  this._setUserInput(
1195
1202
  this.userInput.slice(0, this.cursor - 1) + this.userInput.slice(this.cursor)
1196
1203
  ), this._cursor--;
1197
1204
  return;
1198
1205
  }
1199
- if (r2?.name === "delete" && this.cursor < this.userInput.length) {
1206
+ if (i2?.name === "delete" && this.cursor < this.userInput.length) {
1200
1207
  this._setUserInput(
1201
1208
  this.userInput.slice(0, this.cursor) + this.userInput.slice(this.cursor + 1)
1202
1209
  );
1203
1210
  return;
1204
1211
  }
1205
- s && (this.#t && this.focused === "submit" && (this.focused = "editor"), this.#r(s ?? ""), this._cursor++);
1212
+ r2 && (this.#s && this.focused === "submit" && (this.focused = "editor"), this.#r(r2 ?? ""), this._cursor++);
1206
1213
  }
1207
- }), this.on("userInput", (s) => {
1208
- this._setValue(s);
1214
+ }), this.on("userInput", (r2) => {
1215
+ this._setValue(r2);
1209
1216
  }), this.on("finalize", () => {
1210
1217
  this.value || (this.value = t2.defaultValue), this.value === void 0 && (this.value = "");
1211
1218
  });
@@ -1275,15 +1282,17 @@ var o = class extends V {
1275
1282
  const t2 = this.userInput;
1276
1283
  if (this.cursor >= t2.length)
1277
1284
  return `${this.masked}${styleText(["inverse", "hidden"], "_")}`;
1278
- const s = this.masked, r2 = s.slice(0, this.cursor), e = s.slice(this.cursor);
1279
- return `${r2}${styleText("inverse", e[0])}${e.slice(1)}`;
1285
+ const s = this.masked, e = s.slice(0, this.cursor), r2 = s.slice(this.cursor);
1286
+ return `${e}${styleText("inverse", r2[0])}${r2.slice(1)}`;
1280
1287
  }
1281
1288
  clear() {
1282
1289
  this._clearUserInput();
1283
1290
  }
1284
1291
  constructor({ mask: t2, ...s }) {
1285
- super(s), this._mask = t2 ?? "\u2022", this.on("userInput", (r2) => {
1286
- this._setValue(r2);
1292
+ super(s), this._mask = t2 ?? "\u2022", this.on("userInput", (e) => {
1293
+ this._setValue(e);
1294
+ }), this.on("finalize", () => {
1295
+ this.value === void 0 && (this.value = "");
1287
1296
  });
1288
1297
  }
1289
1298
  };
@@ -1356,7 +1365,7 @@ var n = class extends V {
1356
1365
  }
1357
1366
  };
1358
1367
 
1359
- // node_modules/.pnpm/@clack+prompts@1.5.1/node_modules/@clack/prompts/dist/index.mjs
1368
+ // node_modules/@clack/prompts/dist/index.mjs
1360
1369
  import { styleText as styleText2, stripVTControlCharacters } from "node:util";
1361
1370
  import process$1 from "node:process";
1362
1371
  var import_sisteransi2 = __toESM(require_src(), 1);
@@ -1370,8 +1379,8 @@ function isUnicodeSupported() {
1370
1379
  }
1371
1380
  var unicode = isUnicodeSupported();
1372
1381
  var isCI = () => process.env.CI === "true";
1373
- var isTTY = (e) => e.isTTY === true;
1374
- var unicodeOr = (e, o2) => unicode ? e : o2;
1382
+ var isTTY = (o2) => o2.isTTY === true;
1383
+ var unicodeOr = (o2, e) => unicode ? o2 : e;
1375
1384
  var S_STEP_ACTIVE = unicodeOr("\u25C6", "*");
1376
1385
  var S_STEP_CANCEL = unicodeOr("\u25A0", "x");
1377
1386
  var S_STEP_ERROR = unicodeOr("\u25B2", "x");
@@ -1397,8 +1406,8 @@ var S_INFO = unicodeOr("\u25CF", "\u2022");
1397
1406
  var S_SUCCESS = unicodeOr("\u25C6", "*");
1398
1407
  var S_WARN = unicodeOr("\u25B2", "!");
1399
1408
  var S_ERROR = unicodeOr("\u25A0", "x");
1400
- var symbol = (e) => {
1401
- switch (e) {
1409
+ var symbol = (o2) => {
1410
+ switch (o2) {
1402
1411
  case "initial":
1403
1412
  case "active":
1404
1413
  return styleText2("cyan", S_STEP_ACTIVE);
@@ -1410,8 +1419,8 @@ var symbol = (e) => {
1410
1419
  return styleText2("green", S_STEP_SUBMIT);
1411
1420
  }
1412
1421
  };
1413
- var symbolBar = (e) => {
1414
- switch (e) {
1422
+ var symbolBar = (o2) => {
1423
+ switch (o2) {
1415
1424
  case "initial":
1416
1425
  case "active":
1417
1426
  return styleText2("cyan", S_BAR);
@@ -1423,6 +1432,10 @@ var symbolBar = (e) => {
1423
1432
  return styleText2("green", S_BAR);
1424
1433
  }
1425
1434
  };
1435
+ function formatInstructionFooter(o2, e) {
1436
+ const r2 = [`${e ? `${styleText2("cyan", S_BAR)} ` : ""}${o2.join(" \u2022 ")}`];
1437
+ return e && r2.push(styleText2("cyan", S_BAR_END)), r2;
1438
+ }
1426
1439
  var E$1 = (l2, o2, g2, c3, h2, O = false) => {
1427
1440
  let r2 = o2, w = 0;
1428
1441
  if (O)
@@ -1442,19 +1455,19 @@ var limitOptions = ({
1442
1455
  columnPadding: O = 0,
1443
1456
  rowPadding: r2 = 4
1444
1457
  }) => {
1445
- const i2 = getColumns(c3) - O, I = getRows(c3), C3 = styleText2("dim", "..."), x2 = Math.max(I - r2, 0), m2 = Math.max(Math.min(h2, x2), 5);
1458
+ const i2 = getColumns(c3) - O, I = getRows(c3), C3 = styleText2("dim", "..."), x2 = Math.max(I - r2, 0), m3 = Math.max(Math.min(h2, x2), 5);
1446
1459
  let p3 = 0;
1447
- l2 >= m2 - 3 && (p3 = Math.max(
1448
- Math.min(l2 - m2 + 3, o2.length - m2),
1460
+ l2 >= m3 - 3 && (p3 = Math.max(
1461
+ Math.min(l2 - m3 + 3, o2.length - m3),
1449
1462
  0
1450
1463
  ));
1451
- let f2 = m2 < o2.length && p3 > 0, u4 = m2 < o2.length && p3 + m2 < o2.length;
1464
+ let f2 = m3 < o2.length && p3 > 0, u4 = m3 < o2.length && p3 + m3 < o2.length;
1452
1465
  const W2 = Math.min(
1453
- p3 + m2,
1466
+ p3 + m3,
1454
1467
  o2.length
1455
1468
  ), e = [];
1456
- let d2 = 0;
1457
- f2 && d2++, u4 && d2++;
1469
+ let d = 0;
1470
+ f2 && d++, u4 && d++;
1458
1471
  const v = p3 + (f2 ? 1 : 0), P3 = W2 - (u4 ? 1 : 0);
1459
1472
  for (let t2 = v; t2 < P3; t2++) {
1460
1473
  const n2 = wrapAnsi(g2(o2[t2], t2 === l2), i2, {
@@ -1462,10 +1475,10 @@ var limitOptions = ({
1462
1475
  trim: false
1463
1476
  }).split(`
1464
1477
  `);
1465
- e.push(n2), d2 += n2.length;
1478
+ e.push(n2), d += n2.length;
1466
1479
  }
1467
- if (d2 > x2) {
1468
- let t2 = 0, n2 = 0, s = d2;
1480
+ if (d > x2) {
1481
+ let t2 = 0, n2 = 0, s = d;
1469
1482
  const M2 = l2 - v;
1470
1483
  let a3 = x2;
1471
1484
  const T3 = () => E$1(e, s, 0, M2, a3), L = () => E$1(
@@ -1511,7 +1524,7 @@ var autocomplete = (t2) => new T$1({
1511
1524
  output: t2.output,
1512
1525
  validate: t2.validate,
1513
1526
  render() {
1514
- const n2 = t2.withGuide ?? settings.withGuide, i2 = n2 ? [`${styleText2("gray", S_BAR)}`, `${symbol(this.state)} ${t2.message}`] : [`${symbol(this.state)} ${t2.message}`], l2 = this.userInput, o2 = this.options, m2 = t2.placeholder, p3 = l2 === "" && m2 !== void 0, $ = (r2, s) => {
1527
+ const n2 = t2.withGuide ?? settings.withGuide, i2 = n2 ? [`${styleText2("gray", S_BAR)}`, `${symbol(this.state)} ${t2.message}`] : [`${symbol(this.state)} ${t2.message}`], l2 = this.userInput, o2 = this.options, m3 = t2.placeholder, p3 = l2 === "" && m3 !== void 0, $ = (r2, s) => {
1515
1528
  const a3 = P2(r2), u4 = r2.hint && r2.value === this.focusedValue ? styleText2("dim", ` (${r2.hint})`) : "";
1516
1529
  switch (s) {
1517
1530
  case "active":
@@ -1539,8 +1552,8 @@ ${s}${r2}`;
1539
1552
  const r2 = this.state === "error" ? "yellow" : "cyan", s = n2 ? `${styleText2(r2, S_BAR)} ` : "", a3 = n2 ? styleText2(r2, S_BAR_END) : "";
1540
1553
  let u4 = "";
1541
1554
  if (this.isNavigating || p3) {
1542
- const d2 = p3 ? m2 : l2;
1543
- u4 = d2 !== "" ? ` ${styleText2("dim", d2)}` : "";
1555
+ const d = p3 ? m3 : l2;
1556
+ u4 = d !== "" ? ` ${styleText2("dim", d)}` : "";
1544
1557
  } else
1545
1558
  u4 = ` ${this.userInputWithCursor}`;
1546
1559
  const V2 = this.filteredOptions.length !== o2.length ? styleText2(
@@ -1562,16 +1575,16 @@ ${s}${r2}`;
1562
1575
  columnPadding: n2 ? 3 : 0,
1563
1576
  // for `| ` when guide is shown
1564
1577
  rowPadding: i2.length + g2.length,
1565
- style: (d2, f2) => $(
1566
- d2,
1567
- d2.disabled ? "disabled" : f2 ? "active" : "inactive"
1578
+ style: (d, f2) => $(
1579
+ d,
1580
+ d.disabled ? "disabled" : f2 ? "active" : "inactive"
1568
1581
  ),
1569
1582
  maxItems: t2.maxItems,
1570
1583
  output: t2.output
1571
1584
  });
1572
1585
  return [
1573
1586
  ...i2,
1574
- ...O.map((d2) => `${s}${d2}`),
1587
+ ...O.map((d) => `${s}${d}`),
1575
1588
  ...g2
1576
1589
  ].join(`
1577
1590
  `);
@@ -1580,8 +1593,8 @@ ${s}${r2}`;
1580
1593
  }
1581
1594
  }).prompt();
1582
1595
  var autocompleteMultiselect = (t2) => {
1583
- const c3 = (i2, l2, o2, m2) => {
1584
- const p3 = o2.includes(i2.value), $ = i2.label ?? String(i2.value ?? ""), r2 = i2.hint && m2 !== void 0 && i2.value === m2 ? styleText2("dim", ` (${i2.hint})`) : "", s = p3 ? styleText2("green", S_CHECKBOX_SELECTED) : styleText2("dim", S_CHECKBOX_INACTIVE);
1596
+ const c3 = (i2, l2, o2, m3) => {
1597
+ const p3 = o2.includes(i2.value), $ = i2.label ?? String(i2.value ?? ""), r2 = i2.hint && m3 !== void 0 && i2.value === m3 ? styleText2("dim", ` (${i2.hint})`) : "", s = p3 ? styleText2("green", S_CHECKBOX_SELECTED) : styleText2("dim", S_CHECKBOX_INACTIVE);
1585
1598
  return i2.disabled ? `${styleText2("gray", S_CHECKBOX_INACTIVE)} ${styleText2(["strikethrough", "gray"], $)}` : l2 ? `${s} ${$}${r2}` : `${s} ${styleText2("dim", $)}`;
1586
1599
  }, n2 = new T$1({
1587
1600
  options: t2.options,
@@ -1599,7 +1612,7 @@ var autocompleteMultiselect = (t2) => {
1599
1612
  render() {
1600
1613
  const i2 = t2.withGuide ?? settings.withGuide, l2 = `${i2 ? `${styleText2("gray", S_BAR)}
1601
1614
  ` : ""}${symbol(this.state)} ${t2.message}
1602
- `, o2 = this.userInput, m2 = t2.placeholder, p3 = o2 === "" && m2 !== void 0, $ = this.isNavigating || p3 ? styleText2("dim", p3 ? m2 : o2) : this.userInputWithCursor, r2 = this.options, s = this.filteredOptions.length !== r2.length ? styleText2(
1615
+ `, o2 = this.userInput, m3 = t2.placeholder, p3 = o2 === "" && m3 !== void 0, $ = this.isNavigating || p3 ? styleText2("dim", p3 ? m3 : o2) : this.userInputWithCursor, r2 = this.options, s = this.filteredOptions.length !== r2.length ? styleText2(
1603
1616
  "dim",
1604
1617
  ` (${this.filteredOptions.length} match${this.filteredOptions.length === 1 ? "" : "es"})`
1605
1618
  ) : "";
@@ -1626,7 +1639,7 @@ var autocompleteMultiselect = (t2) => {
1626
1639
  `${u4}${styleText2("dim", "Search:")} ${$}${s}`,
1627
1640
  ...b3,
1628
1641
  ...v
1629
- ], O = [`${u4}${y.join(" \u2022 ")}`, V2], d2 = limitOptions({
1642
+ ], O = [`${u4}${y.join(" \u2022 ")}`, V2], d = limitOptions({
1630
1643
  cursor: this.cursor,
1631
1644
  options: this.filteredOptions,
1632
1645
  style: (f2, _2) => c3(f2, _2, this.selectedValues, this.focusedValue),
@@ -1636,7 +1649,7 @@ var autocompleteMultiselect = (t2) => {
1636
1649
  });
1637
1650
  return [
1638
1651
  ...g2,
1639
- ...d2.map((f2) => `${u4}${f2}`),
1652
+ ...d.map((f2) => `${u4}${f2}`),
1640
1653
  ...O
1641
1654
  ].join(`
1642
1655
  `);
@@ -1659,7 +1672,7 @@ function A$1(n2, e, t2, o2) {
1659
1672
  }
1660
1673
  var Q = (n2) => n2;
1661
1674
  var box = (n2 = "", e = "", t2) => {
1662
- const o2 = t2?.output ?? process.stdout, i2 = getColumns(o2), R2 = 1 * 2, u4 = t2?.titlePadding ?? 1, h2 = t2?.contentPadding ?? 2, w = t2?.width === void 0 || t2.width === "auto" ? 1 : Math.min(1, t2.width), m2 = t2?.withGuide ?? settings.withGuide ? `${S_BAR} ` : "", b3 = t2?.formatBorder ?? Q, a3 = (t2?.rounded ? J : K).map(b3), _2 = b3(S_BAR_H), B = b3(S_BAR), p3 = dist_default2(m2), x2 = dist_default2(e), O = i2 - p3;
1675
+ const o2 = t2?.output ?? process.stdout, i2 = getColumns(o2), R2 = 1 * 2, u4 = t2?.titlePadding ?? 1, h2 = t2?.contentPadding ?? 2, w = t2?.width === void 0 || t2.width === "auto" ? 1 : Math.min(1, t2.width), m3 = t2?.withGuide ?? settings.withGuide ? `${S_BAR} ` : "", b3 = t2?.formatBorder ?? Q, a3 = (t2?.rounded ? J : K).map(b3), _2 = b3(S_BAR_H), B = b3(S_BAR), p3 = dist_default2(m3), x2 = dist_default2(e), O = i2 - p3;
1663
1676
  let r2 = Math.floor(i2 * w) - p3;
1664
1677
  if (t2?.width === "auto") {
1665
1678
  const c3 = n2.split(`
@@ -1673,17 +1686,17 @@ var box = (n2 = "", e = "", t2) => {
1673
1686
  g2 < r2 && (r2 = g2);
1674
1687
  }
1675
1688
  r2 % 2 !== 0 && (r2 < O ? r2++ : r2--);
1676
- const d2 = r2 - R2, S = d2 - u4 * 2, T3 = x2 > S ? `${e.slice(0, S - 3)}...` : e, [y, W2] = A$1(
1689
+ const d = r2 - R2, S = d - u4 * 2, T3 = x2 > S ? `${e.slice(0, S - 3)}...` : e, [y, W2] = A$1(
1677
1690
  dist_default2(T3),
1678
- d2,
1691
+ d,
1679
1692
  u4,
1680
1693
  t2?.titleAlign
1681
- ), L = wrapAnsi(n2, d2 - h2 * 2, {
1694
+ ), L = wrapAnsi(n2, d - h2 * 2, {
1682
1695
  hard: true,
1683
1696
  trim: false
1684
1697
  });
1685
1698
  o2.write(
1686
- `${m2}${a3[0]}${_2.repeat(y)}${T3}${_2.repeat(W2)}${a3[1]}
1699
+ `${m3}${a3[0]}${_2.repeat(y)}${T3}${_2.repeat(W2)}${a3[1]}
1687
1700
  `
1688
1701
  );
1689
1702
  const E2 = L.split(`
@@ -1691,16 +1704,16 @@ var box = (n2 = "", e = "", t2) => {
1691
1704
  for (const c3 of E2) {
1692
1705
  const [s, g2] = A$1(
1693
1706
  dist_default2(c3),
1694
- d2,
1707
+ d,
1695
1708
  h2,
1696
1709
  t2?.contentAlign
1697
1710
  );
1698
1711
  o2.write(
1699
- `${m2}${B}${" ".repeat(s)}${c3}${" ".repeat(g2)}${B}
1712
+ `${m3}${B}${" ".repeat(s)}${c3}${" ".repeat(g2)}${B}
1700
1713
  `
1701
1714
  );
1702
1715
  }
1703
- o2.write(`${m2}${a3[2]}${_2.repeat(d2)}${a3[3]}
1716
+ o2.write(`${m3}${a3[2]}${_2.repeat(d)}${a3[3]}
1704
1717
  `);
1705
1718
  };
1706
1719
  var confirm = (i2) => {
@@ -1760,12 +1773,12 @@ var date = (e) => {
1760
1773
  render() {
1761
1774
  const t2 = (e?.withGuide ?? settings.withGuide) !== false, i2 = `${`${t2 ? `${styleText2("gray", S_BAR)}
1762
1775
  ` : ""}${symbol(this.state)} `}${e.message}
1763
- `, l2 = this.state !== "initial" ? this.state : "active", d2 = b2(this, l2), c3 = this.value instanceof Date ? this.formattedValue : "";
1776
+ `, l2 = this.state !== "initial" ? this.state : "active", d = b2(this, l2), c3 = this.value instanceof Date ? this.formattedValue : "";
1764
1777
  switch (this.state) {
1765
1778
  case "error": {
1766
1779
  const a3 = this.error ? ` ${styleText2("yellow", this.error)}` : "", s = t2 ? `${styleText2("yellow", S_BAR)} ` : "", f2 = t2 ? styleText2("yellow", S_BAR_END) : "";
1767
1780
  return `${i2.trim()}
1768
- ${s}${d2}
1781
+ ${s}${d}
1769
1782
  ${f2}${a3}
1770
1783
  `;
1771
1784
  }
@@ -1781,7 +1794,7 @@ ${s}` : ""}`;
1781
1794
  default: {
1782
1795
  const a3 = t2 ? `${styleText2("cyan", S_BAR)} ` : "", s = t2 ? styleText2("cyan", S_BAR_END) : "", f2 = t2 ? `${styleText2("cyan", S_BAR)} ` : "", g2 = this.inlineError ? `
1783
1796
  ${f2}${styleText2("yellow", this.inlineError)}` : "";
1784
- return `${i2}${a3}${d2}${g2}
1797
+ return `${i2}${a3}${d}${g2}
1785
1798
  ${s}
1786
1799
  `;
1787
1800
  }
@@ -1794,8 +1807,8 @@ function b2(e, r2) {
1794
1807
  if (r2 === "submit" || r2 === "cancel")
1795
1808
  return e.formattedValue;
1796
1809
  const i2 = styleText2("gray", e.separator);
1797
- return e.segments.map((l2, d2) => {
1798
- const c3 = d2 === o2.segmentIndex && !["submit", "cancel"].includes(r2), a3 = p2[l2.type];
1810
+ return e.segments.map((l2, d) => {
1811
+ const c3 = d === o2.segmentIndex && !["submit", "cancel"].includes(r2), a3 = p2[l2.type];
1799
1812
  return x(t2[l2.type], { isActive: c3, label: a3 });
1800
1813
  }).join(i2);
1801
1814
  }
@@ -1822,83 +1835,195 @@ var group = async (o2, r2) => {
1822
1835
  }
1823
1836
  return t2;
1824
1837
  };
1825
- var groupMultiselect = (u4) => {
1826
- const { selectableGroups: h2 = true, groupSpacing: x2 = 0 } = u4, m2 = (i2, l2, g2 = []) => {
1827
- const c3 = i2.label ?? String(i2.value), t2 = typeof i2.group == "string", s = t2 && (g2[g2.indexOf(i2) + 1] ?? { group: true }), o2 = t2 && s && s.group === true;
1828
- let n2 = "", a3 = "";
1829
- t2 && (h2 ? (n2 = o2 ? `${S_BAR_END} ` : `${S_BAR} `, a3 = o2 ? " " : `${S_BAR} `) : n2 = " ");
1830
- let r2 = "";
1831
- if (x2 > 0 && !t2 && (r2 = `
1832
- `.repeat(x2)), l2 === "active")
1838
+ var MULTISELECT_INSTRUCTIONS = [
1839
+ `${styleText2("dim", "\u2191/\u2193")} to navigate`,
1840
+ `${styleText2("dim", "Space:")} select`,
1841
+ `${styleText2("dim", "Enter:")} confirm`
1842
+ ];
1843
+ var m2 = (n2, o2) => n2.split(`
1844
+ `).map((d) => o2(d)).join(`
1845
+ `);
1846
+ var multiselect = (n2) => {
1847
+ const o2 = (t2, a3) => {
1848
+ const r2 = t2.label ?? String(t2.value);
1849
+ return a3 === "disabled" ? `${styleText2("gray", S_CHECKBOX_INACTIVE)} ${m2(r2, (l2) => styleText2(["strikethrough", "gray"], l2))}${t2.hint ? ` ${styleText2("dim", `(${t2.hint ?? "disabled"})`)}` : ""}` : a3 === "active" ? `${styleText2("cyan", S_CHECKBOX_ACTIVE)} ${r2}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}` : a3 === "selected" ? `${styleText2("green", S_CHECKBOX_SELECTED)} ${m2(r2, (l2) => styleText2("dim", l2))}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}` : a3 === "cancelled" ? `${m2(r2, (l2) => styleText2(["strikethrough", "dim"], l2))}` : a3 === "active-selected" ? `${styleText2("green", S_CHECKBOX_SELECTED)} ${r2}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}` : a3 === "submitted" ? `${m2(r2, (l2) => styleText2("dim", l2))}` : `${styleText2("dim", S_CHECKBOX_INACTIVE)} ${m2(r2, (l2) => styleText2("dim", l2))}`;
1850
+ }, d = n2.required ?? true;
1851
+ return new a$1({
1852
+ options: n2.options,
1853
+ signal: n2.signal,
1854
+ input: n2.input,
1855
+ output: n2.output,
1856
+ initialValues: n2.initialValues,
1857
+ required: d,
1858
+ cursorAt: n2.cursorAt,
1859
+ validate(t2) {
1860
+ if (d && (t2 === void 0 || t2.length === 0))
1861
+ return `Please select at least one option.
1862
+ ${styleText2(
1863
+ "reset",
1864
+ styleText2(
1865
+ "dim",
1866
+ `Press ${styleText2(["gray", "bgWhite", "inverse"], " space ")} to select, ${styleText2(
1867
+ "gray",
1868
+ styleText2("bgWhite", styleText2("inverse", " enter "))
1869
+ )} to submit`
1870
+ )
1871
+ )}`;
1872
+ },
1873
+ render() {
1874
+ const t2 = n2.withGuide ?? settings.withGuide, a3 = wrapTextWithPrefix(
1875
+ n2.output,
1876
+ n2.message,
1877
+ t2 ? `${symbolBar(this.state)} ` : "",
1878
+ `${symbol(this.state)} `
1879
+ ), r2 = `${t2 ? `${styleText2("gray", S_BAR)}
1880
+ ` : ""}${a3}
1881
+ `, l2 = this.value ?? [], p3 = (i2, u4) => {
1882
+ if (i2.disabled)
1883
+ return o2(i2, "disabled");
1884
+ const s = l2.includes(i2.value);
1885
+ return u4 && s ? o2(i2, "active-selected") : s ? o2(i2, "selected") : o2(i2, u4 ? "active" : "inactive");
1886
+ };
1887
+ switch (this.state) {
1888
+ case "submit": {
1889
+ const i2 = this.options.filter(({ value: s }) => l2.includes(s)).map((s) => o2(s, "submitted")).join(styleText2("dim", ", ")) || styleText2("dim", "none"), u4 = wrapTextWithPrefix(
1890
+ n2.output,
1891
+ i2,
1892
+ t2 ? `${styleText2("gray", S_BAR)} ` : ""
1893
+ );
1894
+ return `${r2}${u4}`;
1895
+ }
1896
+ case "cancel": {
1897
+ const i2 = this.options.filter(({ value: s }) => l2.includes(s)).map((s) => o2(s, "cancelled")).join(styleText2("dim", ", "));
1898
+ if (i2.trim() === "")
1899
+ return `${r2}${styleText2("gray", S_BAR)}`;
1900
+ const u4 = wrapTextWithPrefix(
1901
+ n2.output,
1902
+ i2,
1903
+ t2 ? `${styleText2("gray", S_BAR)} ` : ""
1904
+ );
1905
+ return `${r2}${u4}${t2 ? `
1906
+ ${styleText2("gray", S_BAR)}` : ""}`;
1907
+ }
1908
+ case "error": {
1909
+ const i2 = t2 ? `${styleText2("yellow", S_BAR)} ` : "", u4 = this.error.split(`
1910
+ `).map(
1911
+ ($, x2) => x2 === 0 ? `${t2 ? `${styleText2("yellow", S_BAR_END)} ` : ""}${styleText2("yellow", $)}` : ` ${$}`
1912
+ ).join(`
1913
+ `), s = r2.split(`
1914
+ `).length, g2 = u4.split(`
1915
+ `).length + 1;
1916
+ return `${r2}${i2}${limitOptions({
1917
+ output: n2.output,
1918
+ options: this.options,
1919
+ cursor: this.cursor,
1920
+ maxItems: n2.maxItems,
1921
+ columnPadding: i2.length,
1922
+ rowPadding: s + g2,
1923
+ style: p3
1924
+ }).join(`
1925
+ ${i2}`)}
1926
+ ${u4}
1927
+ `;
1928
+ }
1929
+ default: {
1930
+ const i2 = t2 ? `${styleText2("cyan", S_BAR)} ` : "", u4 = r2.split(`
1931
+ `).length, s = formatInstructionFooter(MULTISELECT_INSTRUCTIONS, t2), g2 = s.join(`
1932
+ `), $ = s.length + 1;
1933
+ return `${r2}${i2}${limitOptions({
1934
+ output: n2.output,
1935
+ options: this.options,
1936
+ cursor: this.cursor,
1937
+ maxItems: n2.maxItems,
1938
+ columnPadding: i2.length,
1939
+ rowPadding: u4 + $,
1940
+ style: p3
1941
+ }).join(`
1942
+ ${i2}`)}
1943
+ ${g2}
1944
+ `;
1945
+ }
1946
+ }
1947
+ }
1948
+ }).prompt();
1949
+ };
1950
+ var groupMultiselect = (o2) => {
1951
+ const { selectableGroups: f2 = true, groupSpacing: b3 = 0 } = o2, m3 = (n2, l2, g2 = []) => {
1952
+ const a3 = n2.label ?? String(n2.value), t2 = typeof n2.group == "string", u4 = t2 && (g2[g2.indexOf(n2) + 1] ?? { group: true }), s = t2 && u4 && u4.group === true;
1953
+ let r2 = "", c3 = "";
1954
+ t2 && (f2 ? (r2 = s ? `${S_BAR_END} ` : `${S_BAR} `, c3 = s ? " " : `${S_BAR} `) : r2 = " ");
1955
+ let i2 = "";
1956
+ if (b3 > 0 && !t2 && (i2 = `
1957
+ `.repeat(b3)), l2 === "active")
1833
1958
  return wrapTextWithPrefix(
1834
- u4.output,
1835
- `${c3}${i2.hint ? ` ${styleText2("dim", `(${i2.hint})`)}` : ""}`,
1836
- `${r2}${styleText2("dim", n2)} `,
1837
- `${r2}${styleText2("dim", n2)}${styleText2("cyan", S_CHECKBOX_ACTIVE)} `,
1838
- `${r2}${styleText2("dim", a3)} `
1959
+ o2.output,
1960
+ `${a3}${n2.hint ? ` ${styleText2("dim", `(${n2.hint})`)}` : ""}`,
1961
+ `${i2}${styleText2("dim", r2)} `,
1962
+ `${i2}${styleText2("dim", r2)}${styleText2("cyan", S_CHECKBOX_ACTIVE)} `,
1963
+ `${i2}${styleText2("dim", c3)} `
1839
1964
  );
1840
1965
  if (l2 === "group-active")
1841
1966
  return wrapTextWithPrefix(
1842
- u4.output,
1843
- c3,
1844
- `${r2}${n2} `,
1845
- `${r2}${n2}${styleText2("cyan", S_CHECKBOX_ACTIVE)} `,
1846
- `${r2}${a3} `,
1847
- (d2) => styleText2("dim", d2)
1967
+ o2.output,
1968
+ a3,
1969
+ `${i2}${r2} `,
1970
+ `${i2}${r2}${styleText2("cyan", S_CHECKBOX_ACTIVE)} `,
1971
+ `${i2}${c3} `,
1972
+ (d) => styleText2("dim", d)
1848
1973
  );
1849
1974
  if (l2 === "group-active-selected")
1850
1975
  return wrapTextWithPrefix(
1851
- u4.output,
1852
- c3,
1853
- `${r2}${n2} `,
1854
- `${r2}${n2}${styleText2("green", S_CHECKBOX_SELECTED)} `,
1855
- `${r2}${a3} `,
1856
- (d2) => styleText2("dim", d2)
1976
+ o2.output,
1977
+ a3,
1978
+ `${i2}${r2} `,
1979
+ `${i2}${r2}${styleText2("green", S_CHECKBOX_SELECTED)} `,
1980
+ `${i2}${c3} `,
1981
+ (d) => styleText2("dim", d)
1857
1982
  );
1858
1983
  if (l2 === "selected") {
1859
- const d2 = t2 || h2 ? styleText2("green", S_CHECKBOX_SELECTED) : "";
1984
+ const d = t2 || f2 ? styleText2("green", S_CHECKBOX_SELECTED) : "";
1860
1985
  return wrapTextWithPrefix(
1861
- u4.output,
1862
- `${c3}${i2.hint ? ` (${i2.hint})` : ""}`,
1863
- `${r2}${styleText2("dim", n2)} `,
1864
- `${r2}${styleText2("dim", n2)}${d2} `,
1865
- `${r2}${styleText2("dim", a3)} `,
1866
- (V2) => styleText2("dim", V2)
1986
+ o2.output,
1987
+ `${a3}${n2.hint ? ` (${n2.hint})` : ""}`,
1988
+ `${i2}${styleText2("dim", r2)} `,
1989
+ `${i2}${styleText2("dim", r2)}${d} `,
1990
+ `${i2}${styleText2("dim", c3)} `,
1991
+ (S) => styleText2("dim", S)
1867
1992
  );
1868
1993
  }
1869
1994
  if (l2 === "cancelled")
1870
- return `${styleText2(["strikethrough", "dim"], c3)}`;
1995
+ return `${styleText2(["strikethrough", "dim"], a3)}`;
1871
1996
  if (l2 === "active-selected")
1872
1997
  return wrapTextWithPrefix(
1873
- u4.output,
1874
- `${c3}${i2.hint ? ` ${styleText2("dim", `(${i2.hint})`)}` : ""}`,
1875
- `${r2}${styleText2("dim", n2)} `,
1876
- `${r2}${styleText2("dim", n2)}${styleText2("green", S_CHECKBOX_SELECTED)} `,
1877
- `${r2}${styleText2("dim", a3)} `
1998
+ o2.output,
1999
+ `${a3}${n2.hint ? ` ${styleText2("dim", `(${n2.hint})`)}` : ""}`,
2000
+ `${i2}${styleText2("dim", r2)} `,
2001
+ `${i2}${styleText2("dim", r2)}${styleText2("green", S_CHECKBOX_SELECTED)} `,
2002
+ `${i2}${styleText2("dim", c3)} `
1878
2003
  );
1879
2004
  if (l2 === "submitted")
1880
- return `${styleText2("dim", c3)}`;
1881
- const f2 = t2 || h2 ? styleText2("dim", S_CHECKBOX_INACTIVE) : "";
2005
+ return `${styleText2("dim", a3)}`;
2006
+ const h2 = t2 || f2 ? styleText2("dim", S_CHECKBOX_INACTIVE) : "";
1882
2007
  return wrapTextWithPrefix(
1883
- u4.output,
1884
- c3,
1885
- `${r2}${styleText2("dim", n2)} `,
1886
- `${r2}${styleText2("dim", n2)}${f2} `,
1887
- `${r2}${styleText2("dim", a3)} `,
1888
- (d2) => styleText2("dim", d2)
2008
+ o2.output,
2009
+ a3,
2010
+ `${i2}${styleText2("dim", r2)} `,
2011
+ `${i2}${styleText2("dim", r2)}${h2} `,
2012
+ `${i2}${styleText2("dim", c3)} `,
2013
+ (d) => styleText2("dim", d)
1889
2014
  );
1890
- }, y = u4.required ?? true;
2015
+ }, x2 = o2.required ?? true;
1891
2016
  return new u$1({
1892
- options: u4.options,
1893
- signal: u4.signal,
1894
- input: u4.input,
1895
- output: u4.output,
1896
- initialValues: u4.initialValues,
1897
- required: y,
1898
- cursorAt: u4.cursorAt,
1899
- selectableGroups: h2,
1900
- validate(i2) {
1901
- if (y && (i2 === void 0 || i2.length === 0))
2017
+ options: o2.options,
2018
+ signal: o2.signal,
2019
+ input: o2.input,
2020
+ output: o2.output,
2021
+ initialValues: o2.initialValues,
2022
+ required: x2,
2023
+ cursorAt: o2.cursorAt,
2024
+ selectableGroups: f2,
2025
+ validate(n2) {
2026
+ if (x2 && (n2 === void 0 || n2.length === 0))
1902
2027
  return `Please select at least one option.
1903
2028
  ${styleText2(
1904
2029
  "reset",
@@ -1912,57 +2037,58 @@ ${styleText2(
1912
2037
  )}`;
1913
2038
  },
1914
2039
  render() {
1915
- const i2 = u4.withGuide ?? settings.withGuide, l2 = `${i2 ? `${styleText2("gray", S_BAR)}
1916
- ` : ""}${symbol(this.state)} ${u4.message}
1917
- `, g2 = this.value ?? [], c3 = (t2, s) => {
1918
- const o2 = this.options, n2 = g2.includes(t2.value) || t2.group === true && this.isGroupSelected(`${t2.value}`);
1919
- return !s && typeof t2.group == "string" && this.options[this.cursor].value === t2.group ? m2(t2, n2 ? "group-active-selected" : "group-active", o2) : s && n2 ? m2(t2, "active-selected", o2) : n2 ? m2(t2, "selected", o2) : m2(t2, s ? "active" : "inactive", o2);
2040
+ const n2 = o2.withGuide ?? settings.withGuide, l2 = `${n2 ? `${styleText2("gray", S_BAR)}
2041
+ ` : ""}${symbol(this.state)} ${o2.message}
2042
+ `, g2 = this.value ?? [], a3 = (t2, u4) => {
2043
+ const s = this.options, r2 = g2.includes(t2.value) || t2.group === true && this.isGroupSelected(`${t2.value}`);
2044
+ return !u4 && typeof t2.group == "string" && this.options[this.cursor].value === t2.group ? m3(t2, r2 ? "group-active-selected" : "group-active", s) : u4 && r2 ? m3(t2, "active-selected", s) : r2 ? m3(t2, "selected", s) : m3(t2, u4 ? "active" : "inactive", s);
1920
2045
  };
1921
2046
  switch (this.state) {
1922
2047
  case "submit": {
1923
- const t2 = this.options.filter(({ value: o2 }) => g2.includes(o2)).map((o2) => m2(o2, "submitted")), s = t2.length === 0 ? "" : ` ${t2.join(styleText2("dim", ", "))}`;
1924
- return `${l2}${i2 ? styleText2("gray", S_BAR) : ""}${s}`;
2048
+ const t2 = this.options.filter(({ value: s }) => g2.includes(s)).map((s) => m3(s, "submitted")), u4 = t2.length === 0 ? "" : ` ${t2.join(styleText2("dim", ", "))}`;
2049
+ return `${l2}${n2 ? styleText2("gray", S_BAR) : ""}${u4}`;
1925
2050
  }
1926
2051
  case "cancel": {
1927
- const t2 = this.options.filter(({ value: s }) => g2.includes(s)).map((s) => m2(s, "cancelled")).join(styleText2("dim", ", "));
1928
- return `${l2}${i2 ? `${styleText2("gray", S_BAR)} ` : ""}${t2.trim() ? `${t2}${i2 ? `
2052
+ const t2 = this.options.filter(({ value: u4 }) => g2.includes(u4)).map((u4) => m3(u4, "cancelled")).join(styleText2("dim", ", "));
2053
+ return `${l2}${n2 ? `${styleText2("gray", S_BAR)} ` : ""}${t2.trim() ? `${t2}${n2 ? `
1929
2054
  ${styleText2("gray", S_BAR)}` : ""}` : ""}`;
1930
2055
  }
1931
2056
  case "error": {
1932
- const t2 = i2 ? `${styleText2("yellow", S_BAR)} ` : "", s = this.error.split(`
2057
+ const t2 = n2 ? `${styleText2("yellow", S_BAR)} ` : "", u4 = this.error.split(`
1933
2058
  `).map(
1934
- (r2, f2) => f2 === 0 ? `${i2 ? `${styleText2("yellow", S_BAR_END)} ` : ""}${styleText2("yellow", r2)}` : ` ${r2}`
2059
+ (i2, h2) => h2 === 0 ? `${n2 ? `${styleText2("yellow", S_BAR_END)} ` : ""}${styleText2("yellow", i2)}` : ` ${i2}`
1935
2060
  ).join(`
1936
- `), o2 = l2.split(`
1937
- `).length, n2 = s.split(`
1938
- `).length + 1, a3 = limitOptions({
1939
- output: u4.output,
2061
+ `), s = l2.split(`
2062
+ `).length, r2 = u4.split(`
2063
+ `).length + 1, c3 = limitOptions({
2064
+ output: o2.output,
1940
2065
  options: this.options,
1941
2066
  cursor: this.cursor,
1942
- maxItems: u4.maxItems,
2067
+ maxItems: o2.maxItems,
1943
2068
  columnPadding: t2.length,
1944
- rowPadding: o2 + n2,
1945
- style: c3
2069
+ rowPadding: s + r2,
2070
+ style: a3
1946
2071
  }).join(`
1947
2072
  ${t2}`);
1948
- return `${l2}${t2}${a3}
1949
- ${s}
2073
+ return `${l2}${t2}${c3}
2074
+ ${u4}
1950
2075
  `;
1951
2076
  }
1952
2077
  default: {
1953
- const t2 = i2 ? `${styleText2("cyan", S_BAR)} ` : "", s = l2.split(`
1954
- `).length, o2 = (i2 ? 1 : 0) + 1, n2 = limitOptions({
1955
- output: u4.output,
2078
+ const t2 = n2 ? `${styleText2("cyan", S_BAR)} ` : "", u4 = l2.split(`
2079
+ `).length, s = formatInstructionFooter(MULTISELECT_INSTRUCTIONS, n2), r2 = s.join(`
2080
+ `), c3 = s.length + 1, i2 = limitOptions({
2081
+ output: o2.output,
1956
2082
  options: this.options,
1957
2083
  cursor: this.cursor,
1958
- maxItems: u4.maxItems,
2084
+ maxItems: o2.maxItems,
1959
2085
  columnPadding: t2.length,
1960
- rowPadding: s + o2,
1961
- style: c3
2086
+ rowPadding: u4 + c3,
2087
+ style: a3
1962
2088
  }).join(`
1963
2089
  ${t2}`);
1964
- return `${l2}${t2}${n2}
1965
- ${i2 ? styleText2("cyan", S_BAR_END) : ""}
2090
+ return `${l2}${t2}${i2}
2091
+ ${r2}
1966
2092
  `;
1967
2093
  }
1968
2094
  }
@@ -1973,7 +2099,7 @@ var log = {
1973
2099
  message: (s = [], {
1974
2100
  symbol: e = styleText2("gray", S_BAR),
1975
2101
  secondarySymbol: r2 = styleText2("gray", S_BAR),
1976
- output: m2 = process.stdout,
2102
+ output: m3 = process.stdout,
1977
2103
  spacing: l2 = 1,
1978
2104
  withGuide: c3
1979
2105
  } = {}) => {
@@ -1988,7 +2114,7 @@ var log = {
1988
2114
  for (const p3 of y)
1989
2115
  p3.length > 0 ? t2.push(`${u4}${p3}`) : t2.push(o2 ? r2 : "");
1990
2116
  }
1991
- m2.write(`${t2.join(`
2117
+ m3.write(`${t2.join(`
1992
2118
  `)}
1993
2119
  `);
1994
2120
  },
@@ -2082,141 +2208,35 @@ ${r2}${c3}
2082
2208
  }
2083
2209
  }
2084
2210
  }).prompt();
2085
- var d = (n2, a3) => n2.split(`
2086
- `).map((m2) => a3(m2)).join(`
2087
- `);
2088
- var multiselect = (n2) => {
2089
- const a3 = (t2, o2) => {
2090
- const r2 = t2.label ?? String(t2.value);
2091
- return o2 === "disabled" ? `${styleText2("gray", S_CHECKBOX_INACTIVE)} ${d(r2, (l2) => styleText2(["strikethrough", "gray"], l2))}${t2.hint ? ` ${styleText2("dim", `(${t2.hint ?? "disabled"})`)}` : ""}` : o2 === "active" ? `${styleText2("cyan", S_CHECKBOX_ACTIVE)} ${r2}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}` : o2 === "selected" ? `${styleText2("green", S_CHECKBOX_SELECTED)} ${d(r2, (l2) => styleText2("dim", l2))}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}` : o2 === "cancelled" ? `${d(r2, (l2) => styleText2(["strikethrough", "dim"], l2))}` : o2 === "active-selected" ? `${styleText2("green", S_CHECKBOX_SELECTED)} ${r2}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}` : o2 === "submitted" ? `${d(r2, (l2) => styleText2("dim", l2))}` : `${styleText2("dim", S_CHECKBOX_INACTIVE)} ${d(r2, (l2) => styleText2("dim", l2))}`;
2092
- }, m2 = n2.required ?? true;
2093
- return new a$1({
2094
- options: n2.options,
2095
- signal: n2.signal,
2096
- input: n2.input,
2097
- output: n2.output,
2098
- initialValues: n2.initialValues,
2099
- required: m2,
2100
- cursorAt: n2.cursorAt,
2101
- validate(t2) {
2102
- if (m2 && (t2 === void 0 || t2.length === 0))
2103
- return `Please select at least one option.
2104
- ${styleText2(
2105
- "reset",
2106
- styleText2(
2107
- "dim",
2108
- `Press ${styleText2(["gray", "bgWhite", "inverse"], " space ")} to select, ${styleText2(
2109
- "gray",
2110
- styleText2("bgWhite", styleText2("inverse", " enter "))
2111
- )} to submit`
2112
- )
2113
- )}`;
2114
- },
2115
- render() {
2116
- const t2 = n2.withGuide ?? settings.withGuide, o2 = wrapTextWithPrefix(
2117
- n2.output,
2118
- n2.message,
2119
- t2 ? `${symbolBar(this.state)} ` : "",
2120
- `${symbol(this.state)} `
2121
- ), r2 = `${t2 ? `${styleText2("gray", S_BAR)}
2122
- ` : ""}${o2}
2123
- `, l2 = this.value ?? [], g2 = (i2, u4) => {
2124
- if (i2.disabled)
2125
- return a3(i2, "disabled");
2126
- const s = l2.includes(i2.value);
2127
- return u4 && s ? a3(i2, "active-selected") : s ? a3(i2, "selected") : a3(i2, u4 ? "active" : "inactive");
2128
- };
2129
- switch (this.state) {
2130
- case "submit": {
2131
- const i2 = this.options.filter(({ value: s }) => l2.includes(s)).map((s) => a3(s, "submitted")).join(styleText2("dim", ", ")) || styleText2("dim", "none"), u4 = wrapTextWithPrefix(
2132
- n2.output,
2133
- i2,
2134
- t2 ? `${styleText2("gray", S_BAR)} ` : ""
2135
- );
2136
- return `${r2}${u4}`;
2137
- }
2138
- case "cancel": {
2139
- const i2 = this.options.filter(({ value: s }) => l2.includes(s)).map((s) => a3(s, "cancelled")).join(styleText2("dim", ", "));
2140
- if (i2.trim() === "")
2141
- return `${r2}${styleText2("gray", S_BAR)}`;
2142
- const u4 = wrapTextWithPrefix(
2143
- n2.output,
2144
- i2,
2145
- t2 ? `${styleText2("gray", S_BAR)} ` : ""
2146
- );
2147
- return `${r2}${u4}${t2 ? `
2148
- ${styleText2("gray", S_BAR)}` : ""}`;
2149
- }
2150
- case "error": {
2151
- const i2 = t2 ? `${styleText2("yellow", S_BAR)} ` : "", u4 = this.error.split(`
2152
- `).map(
2153
- (h2, x2) => x2 === 0 ? `${t2 ? `${styleText2("yellow", S_BAR_END)} ` : ""}${styleText2("yellow", h2)}` : ` ${h2}`
2154
- ).join(`
2155
- `), s = r2.split(`
2156
- `).length, v = u4.split(`
2157
- `).length + 1;
2158
- return `${r2}${i2}${limitOptions({
2159
- output: n2.output,
2160
- options: this.options,
2161
- cursor: this.cursor,
2162
- maxItems: n2.maxItems,
2163
- columnPadding: i2.length,
2164
- rowPadding: s + v,
2165
- style: g2
2166
- }).join(`
2167
- ${i2}`)}
2168
- ${u4}
2169
- `;
2170
- }
2171
- default: {
2172
- const i2 = t2 ? `${styleText2("cyan", S_BAR)} ` : "", u4 = r2.split(`
2173
- `).length, s = t2 ? 2 : 1;
2174
- return `${r2}${i2}${limitOptions({
2175
- output: n2.output,
2176
- options: this.options,
2177
- cursor: this.cursor,
2178
- maxItems: n2.maxItems,
2179
- columnPadding: i2.length,
2180
- rowPadding: u4 + s,
2181
- style: g2
2182
- }).join(`
2183
- ${i2}`)}
2184
- ${t2 ? styleText2("cyan", S_BAR_END) : ""}
2185
- `;
2186
- }
2187
- }
2188
- }
2189
- }).prompt();
2190
- };
2191
- var W$1 = (o2) => styleText2("dim", o2);
2211
+ var W$1 = (o2) => o2;
2192
2212
  var C2 = (o2, e, s) => {
2193
2213
  const a3 = {
2194
2214
  hard: true,
2195
2215
  trim: false
2196
2216
  }, i2 = wrapAnsi(o2, e, a3).split(`
2197
- `), c3 = i2.reduce((n2, r2) => Math.max(dist_default2(r2), n2), 0), u4 = i2.map(s).reduce((n2, r2) => Math.max(dist_default2(r2), n2), 0), g2 = e - (u4 - c3);
2217
+ `), c3 = i2.reduce((n2, t2) => Math.max(dist_default2(t2), n2), 0), u4 = i2.map(s).reduce((n2, t2) => Math.max(dist_default2(t2), n2), 0), g2 = e - (u4 - c3);
2198
2218
  return wrapAnsi(o2, g2, a3);
2199
2219
  };
2200
2220
  var note = (o2 = "", e = "", s) => {
2201
2221
  const a3 = s?.output ?? process$1.stdout, i2 = s?.withGuide ?? settings.withGuide, c3 = s?.format ?? W$1, g2 = ["", ...C2(o2, getColumns(a3) - 6, c3).split(`
2202
- `).map(c3), ""], n2 = dist_default2(e), r2 = Math.max(
2203
- g2.reduce((m2, F) => {
2222
+ `).map(c3), ""], n2 = dist_default2(e), t2 = Math.max(
2223
+ g2.reduce((m3, F) => {
2204
2224
  const O = dist_default2(F);
2205
- return O > m2 ? O : m2;
2225
+ return O > m3 ? O : m3;
2206
2226
  }, 0),
2207
2227
  n2
2208
2228
  ) + 2, h2 = g2.map(
2209
- (m2) => `${styleText2("gray", S_BAR)} ${m2}${" ".repeat(r2 - dist_default2(m2))}${styleText2("gray", S_BAR)}`
2229
+ (m3) => `${styleText2("gray", S_BAR)} ${m3}${" ".repeat(t2 - dist_default2(m3))}${styleText2("gray", S_BAR)}`
2210
2230
  ).join(`
2211
2231
  `), T3 = i2 ? `${styleText2("gray", S_BAR)}
2212
2232
  ` : "", l$1 = i2 ? S_CONNECT_LEFT : S_CORNER_BOTTOM_LEFT;
2213
2233
  a3.write(
2214
2234
  `${T3}${styleText2("green", S_STEP_SUBMIT)} ${styleText2("reset", e)} ${styleText2(
2215
2235
  "gray",
2216
- S_BAR_H.repeat(Math.max(r2 - n2 - 1, 1)) + S_CORNER_TOP_RIGHT
2236
+ S_BAR_H.repeat(Math.max(t2 - n2 - 1, 1)) + S_CORNER_TOP_RIGHT
2217
2237
  )}
2218
2238
  ${h2}
2219
- ${styleText2("gray", l$1 + S_BAR_H.repeat(r2 + 2) + S_CORNER_BOTTOM_RIGHT)}
2239
+ ${styleText2("gray", l$1 + S_BAR_H.repeat(t2 + 2) + S_CORNER_BOTTOM_RIGHT)}
2220
2240
  `
2221
2241
  );
2222
2242
  };
@@ -2279,11 +2299,11 @@ var path = (e) => {
2279
2299
  existsSync(t2) ? lstatSync(t2).isDirectory() && (!e.directory || t2.endsWith("/")) ? i2 = t2 : i2 = dirname(t2) : i2 = dirname(t2);
2280
2300
  const c3 = t2.length > 1 && t2.endsWith("/") ? t2.slice(0, -1) : t2;
2281
2301
  return readdirSync(i2).map((r2) => {
2282
- const n2 = join(i2, r2), m2 = lstatSync(n2);
2302
+ const n2 = join(i2, r2), m3 = lstatSync(n2);
2283
2303
  return {
2284
2304
  name: r2,
2285
2305
  path: n2,
2286
- isDirectory: m2.isDirectory()
2306
+ isDirectory: m3.isDirectory()
2287
2307
  };
2288
2308
  }).filter(
2289
2309
  ({ path: r2, isDirectory: n2 }) => r2.startsWith(c3) && (n2 || !e.directory)
@@ -2305,18 +2325,18 @@ var spinner = ({
2305
2325
  errorMessage: O,
2306
2326
  frames: E2 = unicode ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"],
2307
2327
  delay: F = unicode ? 80 : 120,
2308
- signal: m2,
2328
+ signal: m3,
2309
2329
  ...I
2310
2330
  } = {}) => {
2311
2331
  const u4 = isCI();
2312
- let M2, T3, d2 = false, S = false, s = "", p3, w = performance.now();
2332
+ let M2, T3, d = false, S = false, s = "", p3, w = performance.now();
2313
2333
  const x2 = getColumns(n2), k = I?.styleFrame ?? W, g2 = (e) => {
2314
2334
  const r2 = e > 1 ? O ?? settings.messages.error : G ?? settings.messages.cancel;
2315
- S = e === 1, d2 && (a3(r2, e), S && typeof h2 == "function" && h2());
2335
+ S = e === 1, d && (a3(r2, e), S && typeof h2 == "function" && h2());
2316
2336
  }, f2 = () => g2(2), i2 = () => g2(1), A2 = () => {
2317
- process.on("uncaughtExceptionMonitor", f2), process.on("unhandledRejection", f2), process.on("SIGINT", i2), process.on("SIGTERM", i2), process.on("exit", g2), m2 && m2.addEventListener("abort", i2);
2337
+ process.on("uncaughtExceptionMonitor", f2), process.on("unhandledRejection", f2), process.on("SIGINT", i2), process.on("SIGTERM", i2), process.on("exit", g2), m3 && m3.addEventListener("abort", i2);
2318
2338
  }, H = () => {
2319
- process.removeListener("uncaughtExceptionMonitor", f2), process.removeListener("unhandledRejection", f2), process.removeListener("SIGINT", i2), process.removeListener("SIGTERM", i2), process.removeListener("exit", g2), m2 && m2.removeEventListener("abort", i2);
2339
+ process.removeListener("uncaughtExceptionMonitor", f2), process.removeListener("unhandledRejection", f2), process.removeListener("SIGINT", i2), process.removeListener("SIGTERM", i2), process.removeListener("exit", g2), m3 && m3.removeEventListener("abort", i2);
2320
2340
  }, y = () => {
2321
2341
  if (p3 === void 0) return;
2322
2342
  u4 && n2.write(`
@@ -2331,7 +2351,7 @@ var spinner = ({
2331
2351
  const r2 = (performance.now() - e) / 1e3, t2 = Math.floor(r2 / 60), o2 = Math.floor(r2 % 60);
2332
2352
  return t2 > 0 ? `[${t2}m ${o2}s]` : `[${o2}s]`;
2333
2353
  }, N2 = I.withGuide ?? settings.withGuide, P3 = (e = "") => {
2334
- d2 = true, M2 = block({ output: n2 }), s = C3(e), w = performance.now(), N2 && n2.write(`${styleText2("gray", S_BAR)}
2354
+ d = true, M2 = block({ output: n2 }), s = C3(e), w = performance.now(), N2 && n2.write(`${styleText2("gray", S_BAR)}
2335
2355
  `);
2336
2356
  let r2 = 0, t2 = 0;
2337
2357
  A2(), T3 = setInterval(() => {
@@ -2355,8 +2375,8 @@ var spinner = ({
2355
2375
  n2.write(j), r2 = r2 + 1 < E2.length ? r2 + 1 : 0, t2 = t2 < 4 ? t2 + 0.125 : 0;
2356
2376
  }, F);
2357
2377
  }, a3 = (e = "", r2 = 0, t2 = false) => {
2358
- if (!d2) return;
2359
- d2 = false, clearInterval(T3), y();
2378
+ if (!d) return;
2379
+ d = false, clearInterval(T3), y();
2360
2380
  const o2 = r2 === 0 ? styleText2("green", S_STEP_SUBMIT) : r2 === 1 ? styleText2("red", S_STEP_CANCEL) : styleText2("red", S_STEP_ERROR);
2361
2381
  s = e ?? s, t2 || (l2 === "timer" ? n2.write(`${o2} ${s} ${_2(w)}
2362
2382
  `) : n2.write(`${o2} ${s}
@@ -2383,13 +2403,13 @@ var u3 = {
2383
2403
  };
2384
2404
  function progress({
2385
2405
  style: o2 = "heavy",
2386
- max: d2 = 100,
2406
+ max: d = 100,
2387
2407
  size: v = 40,
2388
2408
  ...x2
2389
2409
  } = {}) {
2390
2410
  const r2 = spinner(x2);
2391
2411
  let a3 = 0, n2 = "";
2392
- const c3 = Math.max(1, d2), l2 = Math.max(1, v), S = (t2) => {
2412
+ const c3 = Math.max(1, d), l2 = Math.max(1, v), S = (t2) => {
2393
2413
  switch (t2) {
2394
2414
  case "initial":
2395
2415
  case "active":
@@ -2403,8 +2423,8 @@ function progress({
2403
2423
  return (e) => styleText2("magenta", e);
2404
2424
  }
2405
2425
  }, p3 = (t2, e) => {
2406
- const m2 = Math.floor(a3 / c3 * l2);
2407
- return `${S(t2)(u3[o2].repeat(m2))}${styleText2("dim", u3[o2].repeat(l2 - m2))} ${e}`;
2426
+ const m3 = Math.floor(a3 / c3 * l2);
2427
+ return `${S(t2)(u3[o2].repeat(m3))}${styleText2("dim", u3[o2].repeat(l2 - m3))} ${e}`;
2408
2428
  }, h2 = (t2 = "") => {
2409
2429
  n2 = t2, r2.start(p3("initial", t2));
2410
2430
  }, g2 = (t2 = 1, e) => {
@@ -2421,20 +2441,24 @@ function progress({
2421
2441
  message: (t2) => g2(0, t2)
2422
2442
  };
2423
2443
  }
2424
- var c2 = (e, a3) => e.includes(`
2425
- `) ? e.split(`
2426
- `).map((t2) => a3(t2)).join(`
2427
- `) : a3(e);
2428
- var select = (e) => {
2429
- const a3 = (t2, d2) => {
2430
- const s = t2.label ?? String(t2.value);
2431
- switch (d2) {
2444
+ var SELECT_INSTRUCTIONS = [
2445
+ `${styleText2("dim", "\u2191/\u2193")} to navigate`,
2446
+ `${styleText2("dim", "Enter:")} confirm`
2447
+ ];
2448
+ var c2 = (t2, a3) => t2.includes(`
2449
+ `) ? t2.split(`
2450
+ `).map((i2) => a3(i2)).join(`
2451
+ `) : a3(t2);
2452
+ var select = (t2) => {
2453
+ const a3 = (i2, m3) => {
2454
+ const s = i2.label ?? String(i2.value);
2455
+ switch (m3) {
2432
2456
  case "disabled":
2433
- return `${styleText2("gray", S_RADIO_INACTIVE)} ${c2(s, (n2) => styleText2("gray", n2))}${t2.hint ? ` ${styleText2("dim", `(${t2.hint ?? "disabled"})`)}` : ""}`;
2457
+ return `${styleText2("gray", S_RADIO_INACTIVE)} ${c2(s, (n2) => styleText2("gray", n2))}${i2.hint ? ` ${styleText2("dim", `(${i2.hint ?? "disabled"})`)}` : ""}`;
2434
2458
  case "selected":
2435
2459
  return `${c2(s, (n2) => styleText2("dim", n2))}`;
2436
2460
  case "active":
2437
- return `${styleText2("green", S_RADIO_ACTIVE)} ${s}${t2.hint ? ` ${styleText2("dim", `(${t2.hint})`)}` : ""}`;
2461
+ return `${styleText2("green", S_RADIO_ACTIVE)} ${s}${i2.hint ? ` ${styleText2("dim", `(${i2.hint})`)}` : ""}`;
2438
2462
  case "cancelled":
2439
2463
  return `${c2(s, (n2) => styleText2(["strikethrough", "dim"], n2))}`;
2440
2464
  default:
@@ -2442,52 +2466,53 @@ var select = (e) => {
2442
2466
  }
2443
2467
  };
2444
2468
  return new a2({
2445
- options: e.options,
2446
- signal: e.signal,
2447
- input: e.input,
2448
- output: e.output,
2449
- initialValue: e.initialValue,
2469
+ options: t2.options,
2470
+ signal: t2.signal,
2471
+ input: t2.input,
2472
+ output: t2.output,
2473
+ initialValue: t2.initialValue,
2450
2474
  render() {
2451
- const t2 = e.withGuide ?? settings.withGuide, d2 = `${symbol(this.state)} `, s = `${symbolBar(this.state)} `, n2 = wrapTextWithPrefix(
2452
- e.output,
2453
- e.message,
2475
+ const i2 = t2.withGuide ?? settings.withGuide, m3 = `${symbol(this.state)} `, s = `${symbolBar(this.state)} `, n2 = wrapTextWithPrefix(
2476
+ t2.output,
2477
+ t2.message,
2454
2478
  s,
2455
- d2
2456
- ), u4 = `${t2 ? `${styleText2("gray", S_BAR)}
2479
+ m3
2480
+ ), u4 = `${i2 ? `${styleText2("gray", S_BAR)}
2457
2481
  ` : ""}${n2}
2458
2482
  `;
2459
2483
  switch (this.state) {
2460
2484
  case "submit": {
2461
- const r2 = t2 ? `${styleText2("gray", S_BAR)} ` : "", l2 = wrapTextWithPrefix(
2462
- e.output,
2485
+ const r2 = i2 ? `${styleText2("gray", S_BAR)} ` : "", o2 = wrapTextWithPrefix(
2486
+ t2.output,
2463
2487
  a3(this.options[this.cursor], "selected"),
2464
2488
  r2
2465
2489
  );
2466
- return `${u4}${l2}`;
2490
+ return `${u4}${o2}`;
2467
2491
  }
2468
2492
  case "cancel": {
2469
- const r2 = t2 ? `${styleText2("gray", S_BAR)} ` : "", l2 = wrapTextWithPrefix(
2470
- e.output,
2493
+ const r2 = i2 ? `${styleText2("gray", S_BAR)} ` : "", o2 = wrapTextWithPrefix(
2494
+ t2.output,
2471
2495
  a3(this.options[this.cursor], "cancelled"),
2472
2496
  r2
2473
2497
  );
2474
- return `${u4}${l2}${t2 ? `
2498
+ return `${u4}${o2}${i2 ? `
2475
2499
  ${styleText2("gray", S_BAR)}` : ""}`;
2476
2500
  }
2477
2501
  default: {
2478
- const r2 = t2 ? `${styleText2("cyan", S_BAR)} ` : "", l2 = t2 ? styleText2("cyan", S_BAR_END) : "", g2 = u4.split(`
2479
- `).length, h2 = t2 ? 2 : 1;
2502
+ const r2 = i2 ? `${styleText2("cyan", S_BAR)} ` : "", o2 = u4.split(`
2503
+ `).length, $ = formatInstructionFooter(SELECT_INSTRUCTIONS, i2), h2 = $.join(`
2504
+ `), b3 = $.length + 1;
2480
2505
  return `${u4}${r2}${limitOptions({
2481
- output: e.output,
2506
+ output: t2.output,
2482
2507
  cursor: this.cursor,
2483
2508
  options: this.options,
2484
- maxItems: e.maxItems,
2509
+ maxItems: t2.maxItems,
2485
2510
  columnPadding: r2.length,
2486
- rowPadding: g2 + h2,
2487
- style: (p3, b3) => a3(p3, p3.disabled ? "disabled" : b3 ? "active" : "inactive")
2511
+ rowPadding: o2 + b3,
2512
+ style: (p3, x2) => a3(p3, p3.disabled ? "disabled" : x2 ? "active" : "inactive")
2488
2513
  }).join(`
2489
2514
  ${r2}`)}
2490
- ${l2}
2515
+ ${h2}
2491
2516
  `;
2492
2517
  }
2493
2518
  }
@@ -2582,7 +2607,7 @@ var tasks = async (o2, e) => {
2582
2607
  };
2583
2608
  var A = (l2) => l2.replace(/\x1b\[(?:\d+;)*\d*[ABCDEFGHfJKSTsu]|\x1b\[(s|u)/g, "");
2584
2609
  var taskLog = (l2) => {
2585
- const r2 = l2.output ?? process.stdout, O = getColumns(r2), i2 = styleText2("gray", S_BAR), p3 = l2.spacing ?? 1, k = 3, m2 = l2.retainLog === true, d2 = !isCI() && isTTY(r2);
2610
+ const r2 = l2.output ?? process.stdout, O = getColumns(r2), i2 = styleText2("gray", S_BAR), p3 = l2.spacing ?? 1, k = 3, m3 = l2.retainLog === true, d = !isCI() && isTTY(r2);
2586
2611
  r2.write(`${i2}
2587
2612
  `), r2.write(`${styleText2("green", S_STEP_SUBMIT)} ${l2.title}
2588
2613
  `);
@@ -2638,7 +2663,7 @@ ${e.value}` : e.value;
2638
2663
  }, T3 = () => {
2639
2664
  for (const e of n2) {
2640
2665
  const { header: s, value: t2, full: o2 } = e;
2641
- (s === void 0 || s.length === 0) && t2.length === 0 || h2(e, void 0, m2 === true && o2.length > 0);
2666
+ (s === void 0 || s.length === 0) && t2.length === 0 || h2(e, void 0, m3 === true && o2.length > 0);
2642
2667
  }
2643
2668
  }, L = (e, s, t2) => {
2644
2669
  if (f2(false), (t2?.raw !== true || !v) && e.value !== "" && (e.value += `
@@ -2647,19 +2672,19 @@ ${e.value}` : e.value;
2647
2672
  `), a3 = o2.length - l2.limit;
2648
2673
  if (a3 > 0) {
2649
2674
  const g2 = o2.splice(0, a3);
2650
- m2 && (e.full += (e.full === "" ? "" : `
2675
+ m3 && (e.full += (e.full === "" ? "" : `
2651
2676
  `) + g2.join(`
2652
2677
  `));
2653
2678
  }
2654
2679
  e.value = o2.join(`
2655
2680
  `);
2656
2681
  }
2657
- d2 && y();
2682
+ d && y();
2658
2683
  }, y = () => {
2659
2684
  for (const e of n2)
2660
2685
  e.result ? e.result.status === "error" ? log.error(e.result.message, { output: r2, secondarySymbol: i2, spacing: 0 }) : log.success(e.result.message, { output: r2, secondarySymbol: i2, spacing: 0 }) : e.value !== "" && h2(e, 0);
2661
2686
  }, B = (e, s) => {
2662
- f2(false), e.result = s, d2 && y();
2687
+ f2(false), e.result = s, d && y();
2663
2688
  };
2664
2689
  return {
2665
2690
  message(e, s) {
@@ -2711,10 +2736,10 @@ var text = (t2) => new n({
2711
2736
  `, c3 = t2.placeholder ? styleText2("inverse", t2.placeholder[0]) + styleText2("dim", t2.placeholder.slice(1)) : styleText2(["inverse", "hidden"], "_"), o2 = this.userInput ? this.userInputWithCursor : c3, a3 = this.value ?? "";
2712
2737
  switch (this.state) {
2713
2738
  case "error": {
2714
- const n2 = this.error ? ` ${styleText2("yellow", this.error)}` : "", r2 = i2 ? `${styleText2("yellow", S_BAR)} ` : "", d2 = i2 ? styleText2("yellow", S_BAR_END) : "";
2739
+ const n2 = this.error ? ` ${styleText2("yellow", this.error)}` : "", r2 = i2 ? `${styleText2("yellow", S_BAR)} ` : "", d = i2 ? styleText2("yellow", S_BAR_END) : "";
2715
2740
  return `${s.trim()}
2716
2741
  ${r2}${o2}
2717
- ${d2}${n2}
2742
+ ${d}${n2}
2718
2743
  `;
2719
2744
  }
2720
2745
  case "submit": {
@@ -2736,6 +2761,8 @@ ${r2}
2736
2761
  }
2737
2762
  }).prompt();
2738
2763
  export {
2764
+ MULTISELECT_INSTRUCTIONS,
2765
+ SELECT_INSTRUCTIONS,
2739
2766
  S_BAR,
2740
2767
  S_BAR_END,
2741
2768
  S_BAR_END_RIGHT,
@@ -2767,6 +2794,7 @@ export {
2767
2794
  cancel,
2768
2795
  confirm,
2769
2796
  date,
2797
+ formatInstructionFooter,
2770
2798
  group,
2771
2799
  groupMultiselect,
2772
2800
  intro,
@@ -2796,4 +2824,4 @@ export {
2796
2824
  unicodeOr,
2797
2825
  updateSettings
2798
2826
  };
2799
- //# sourceMappingURL=dist-7HEHHQI2.js.map
2827
+ //# sourceMappingURL=dist-KMK7TZGN.js.map