nolzu 0.0.1 → 0.1.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 (491) hide show
  1. package/LICENSE +105 -0
  2. package/README.md +24 -7
  3. package/build/client/_app/immutable/assets/0.SPD4wYkc.css +1 -0
  4. package/build/client/_app/immutable/assets/1.BRilEoOO.css +1 -0
  5. package/build/client/_app/immutable/assets/10.DwLiBGDj.css +1 -0
  6. package/build/client/_app/immutable/assets/11.D_TtWT3D.css +1 -0
  7. package/build/client/_app/immutable/assets/12.CSVGmtUY.css +1 -0
  8. package/build/client/_app/immutable/assets/13.qTa7IHbg.css +1 -0
  9. package/build/client/_app/immutable/assets/19.CbCFXKb8.css +1 -0
  10. package/build/client/_app/immutable/assets/2.CfHhgI77.css +1 -0
  11. package/build/client/_app/immutable/assets/20.C5CSZhyT.css +1 -0
  12. package/build/client/_app/immutable/assets/21.BBpYkZcc.css +1 -0
  13. package/build/client/_app/immutable/assets/22.C9RgY9kl.css +1 -0
  14. package/build/client/_app/immutable/assets/23.B6Dp9RJO.css +1 -0
  15. package/build/client/_app/immutable/assets/24.C7g2abUW.css +1 -0
  16. package/build/client/_app/immutable/assets/26.DTMI6ROV.css +1 -0
  17. package/build/client/_app/immutable/assets/27.AxXMpDkB.css +1 -0
  18. package/build/client/_app/immutable/assets/28.939ac-98.css +1 -0
  19. package/build/client/_app/immutable/assets/3.3lqex1t-.css +1 -0
  20. package/build/client/_app/immutable/assets/4.C52MzO_d.css +1 -0
  21. package/build/client/_app/immutable/assets/5.CsfJAwvS.css +1 -0
  22. package/build/client/_app/immutable/assets/8.ByspUp-s.css +1 -0
  23. package/build/client/_app/immutable/assets/9.BCSFZmce.css +1 -0
  24. package/build/client/_app/immutable/assets/Banner.DDqfpWLD.css +1 -0
  25. package/build/client/_app/immutable/assets/BoardOff.mpX08-Be.css +1 -0
  26. package/build/client/_app/immutable/assets/Button.BlwsEgUc.css +1 -0
  27. package/build/client/_app/immutable/assets/Chip.qAAa6_e5.css +1 -0
  28. package/build/client/_app/immutable/assets/Dialog.D5Ln60a8.css +1 -0
  29. package/build/client/_app/immutable/assets/FeaturePanels.DZ_Mth5M.css +1 -0
  30. package/build/client/_app/immutable/assets/FolderBrowser.DBmRWDCH.css +1 -0
  31. package/build/client/_app/immutable/assets/Geist-Variable.Bj2R_7yk.woff2 +0 -0
  32. package/build/client/_app/immutable/assets/GeistMono-Variable.Dispecij.woff2 +0 -0
  33. package/build/client/_app/immutable/assets/HelpTip.DF6T9nns.css +1 -0
  34. package/build/client/_app/immutable/assets/InfoBox.CpavOykF.css +1 -0
  35. package/build/client/_app/immutable/assets/KeyCaps.D2t-lY-8.css +1 -0
  36. package/build/client/_app/immutable/assets/LogLine.Bu4feLn5.css +1 -0
  37. package/build/client/_app/immutable/assets/Markdown.DI6AtWAc.css +1 -0
  38. package/build/client/_app/immutable/assets/ModelPicker.DQzj7Nj8.css +1 -0
  39. package/build/client/_app/immutable/assets/OptionButtons.BYiyOXOE.css +1 -0
  40. package/build/client/_app/immutable/assets/PeekPanel.DzMdHoqg.css +1 -0
  41. package/build/client/_app/immutable/assets/ScoutPage.CVIiLy5c.css +1 -0
  42. package/build/client/_app/immutable/assets/SetupSteps.B6pZP1Bk.css +1 -0
  43. package/build/client/_app/immutable/assets/Skeleton.BC-1_U5d.css +1 -0
  44. package/build/client/_app/immutable/assets/SlotsMeter.Dq7GGYlD.css +1 -0
  45. package/build/client/_app/immutable/assets/StartConfirm.DxNN2AOb.css +1 -0
  46. package/build/client/_app/immutable/assets/StatePill.CGWFVUUg.css +1 -0
  47. package/build/client/_app/immutable/assets/Streamed.DpZ6wgO2.css +1 -0
  48. package/build/client/_app/immutable/assets/card-pulls.C5uGMuAh.css +1 -0
  49. package/build/client/_app/immutable/assets/next-step.CKg1w06J.css +1 -0
  50. package/build/client/_app/immutable/chunks/-B5EclhK.js +1 -0
  51. package/build/client/_app/immutable/chunks/-Q3zApAy.js +1 -0
  52. package/build/client/_app/immutable/chunks/6-hwN_Ik.js +3 -0
  53. package/build/client/_app/immutable/chunks/B16UF4PA.js +11 -0
  54. package/build/client/_app/immutable/chunks/B1V3h1VF.js +1 -0
  55. package/build/client/_app/immutable/chunks/B2d2Mkuz.js +68 -0
  56. package/build/client/_app/immutable/chunks/B2yzhiEa.js +1 -0
  57. package/build/client/_app/immutable/chunks/B5zDDQUU.js +2 -0
  58. package/build/client/_app/immutable/chunks/B8DHSiWf.js +1 -0
  59. package/build/client/_app/immutable/chunks/B8z33EzI.js +1 -0
  60. package/build/client/_app/immutable/chunks/BCRkrH6c.js +1 -0
  61. package/build/client/_app/immutable/chunks/BCScjOxu.js +1 -0
  62. package/build/client/_app/immutable/chunks/BMUQtCEC.js +1 -0
  63. package/build/client/_app/immutable/chunks/BNnfkvZM.js +1 -0
  64. package/build/client/_app/immutable/chunks/BelWyZaW.js +1 -0
  65. package/build/client/_app/immutable/chunks/BhZpqODT.js +1 -0
  66. package/build/client/_app/immutable/chunks/Bjy-W4x2.js +81 -0
  67. package/build/client/_app/immutable/chunks/BmafI-Bs.js +1 -0
  68. package/build/client/_app/immutable/chunks/BvRk9kiK.js +0 -0
  69. package/build/client/_app/immutable/chunks/C4i6bdQg.js +1 -0
  70. package/build/client/_app/immutable/chunks/C8u5TyIB.js +1 -0
  71. package/build/client/_app/immutable/chunks/CFs2xhoy.js +1 -0
  72. package/build/client/_app/immutable/chunks/CIm2DioU.js +1 -0
  73. package/build/client/_app/immutable/chunks/CONqGBXC.js +1 -0
  74. package/build/client/_app/immutable/chunks/CSOz40qO.js +1 -0
  75. package/build/client/_app/immutable/chunks/CXxuD1ef.js +3 -0
  76. package/build/client/_app/immutable/chunks/CarrGsZA.js +2 -0
  77. package/build/client/_app/immutable/chunks/CdrmTD44.js +1 -0
  78. package/build/client/_app/immutable/chunks/CfJRH9gh.js +2 -0
  79. package/build/client/_app/immutable/chunks/Ci7C9Cki.js +1 -0
  80. package/build/client/_app/immutable/chunks/CkOTL1vK.js +1 -0
  81. package/build/client/_app/immutable/chunks/CngTtGc_.js +1 -0
  82. package/build/client/_app/immutable/chunks/Cp3A1zR8.js +1 -0
  83. package/build/client/_app/immutable/chunks/CwtMnwNL.js +3 -0
  84. package/build/client/_app/immutable/chunks/Cy7f_oXg.js +1 -0
  85. package/build/client/_app/immutable/chunks/D-wwLm5t.js +1 -0
  86. package/build/client/_app/immutable/chunks/D2imbgaf.js +1 -0
  87. package/build/client/_app/immutable/chunks/D32mip60.js +1 -0
  88. package/build/client/_app/immutable/chunks/D46Vk19W.js +1 -0
  89. package/build/client/_app/immutable/chunks/DCUUgo-6.js +1 -0
  90. package/build/client/_app/immutable/chunks/DFjnjJjy.js +1 -0
  91. package/build/client/_app/immutable/chunks/DHMbSbMg.js +1 -0
  92. package/build/client/_app/immutable/chunks/DJOFx2wx.js +1 -0
  93. package/build/client/_app/immutable/chunks/DV4tvxHp.js +3 -0
  94. package/build/client/_app/immutable/chunks/DXk_5YEw.js +1 -0
  95. package/build/client/_app/immutable/chunks/DjgnRLJt.js +1 -0
  96. package/build/client/_app/immutable/chunks/DlWlQ_vP.js +1 -0
  97. package/build/client/_app/immutable/chunks/DpIAei2y.js +2 -0
  98. package/build/client/_app/immutable/chunks/Dt-HX3Vu.js +1 -0
  99. package/build/client/_app/immutable/chunks/DuSthUWX.js +1 -0
  100. package/build/client/_app/immutable/chunks/Ecfl8TOn.js +2 -0
  101. package/build/client/_app/immutable/chunks/ITHE99Aa.js +1 -0
  102. package/build/client/_app/immutable/chunks/Khdge0KS.js +1 -0
  103. package/build/client/_app/immutable/chunks/LMEKNlm0.js +1 -0
  104. package/build/client/_app/immutable/chunks/OnIeaiuO.js +1 -0
  105. package/build/client/_app/immutable/chunks/VFQLu55q.js +1 -0
  106. package/build/client/_app/immutable/chunks/ZsUxKnQw.js +1 -0
  107. package/build/client/_app/immutable/chunks/aWP8DVhV.js +1 -0
  108. package/build/client/_app/immutable/chunks/bB04Xp1f.js +1 -0
  109. package/build/client/_app/immutable/chunks/eylBqhv8.js +3 -0
  110. package/build/client/_app/immutable/chunks/hx0ssLL_.js +2 -0
  111. package/build/client/_app/immutable/chunks/mumDj17t.js +1 -0
  112. package/build/client/_app/immutable/chunks/pZYp3_TE.js +1 -0
  113. package/build/client/_app/immutable/chunks/tImwjqWn.js +1 -0
  114. package/build/client/_app/immutable/chunks/uBIymjUX.js +1 -0
  115. package/build/client/_app/immutable/chunks/xihTtKlq.js +1 -0
  116. package/build/client/_app/immutable/entry/app.DVZ1wE36.js +2 -0
  117. package/build/client/_app/immutable/entry/start.DluCc61B.js +1 -0
  118. package/build/client/_app/immutable/nodes/0.CwNFevXf.js +1 -0
  119. package/build/client/_app/immutable/nodes/1.BR6FYiC-.js +1 -0
  120. package/build/client/_app/immutable/nodes/10.wNwBFtom.js +2 -0
  121. package/build/client/_app/immutable/nodes/11.DpoIbMNF.js +2 -0
  122. package/build/client/_app/immutable/nodes/12.CWdUJ8l3.js +2 -0
  123. package/build/client/_app/immutable/nodes/13.CZ2uTvNS.js +1 -0
  124. package/build/client/_app/immutable/nodes/14.CzgyXuvL.js +1 -0
  125. package/build/client/_app/immutable/nodes/15.CzgyXuvL.js +1 -0
  126. package/build/client/_app/immutable/nodes/16.odL9eB2N.js +1 -0
  127. package/build/client/_app/immutable/nodes/17.B-RnUeVU.js +1 -0
  128. package/build/client/_app/immutable/nodes/18.BLYKxyq2.js +1 -0
  129. package/build/client/_app/immutable/nodes/19.CgyFfPqF.js +3 -0
  130. package/build/client/_app/immutable/nodes/2.CCWT41Qr.js +1 -0
  131. package/build/client/_app/immutable/nodes/20.BBk5-krg.js +1 -0
  132. package/build/client/_app/immutable/nodes/21.CJoU3s1A.js +2 -0
  133. package/build/client/_app/immutable/nodes/22.CoRvPh8m.js +1 -0
  134. package/build/client/_app/immutable/nodes/23.zXO3NjnM.js +3 -0
  135. package/build/client/_app/immutable/nodes/24.CmO27TED.js +1 -0
  136. package/build/client/_app/immutable/nodes/26.TVKNr_xX.js +18 -0
  137. package/build/client/_app/immutable/nodes/27.RojtGU_o.js +1 -0
  138. package/build/client/_app/immutable/nodes/28.CVTdeeSI.js +2 -0
  139. package/build/client/_app/immutable/nodes/3.Cgib7Vi6.js +1 -0
  140. package/build/client/_app/immutable/nodes/4.CnMwOCec.js +1 -0
  141. package/build/client/_app/immutable/nodes/5.-NqYtQj_.js +1 -0
  142. package/build/client/_app/immutable/nodes/6.D5xk-UBM.js +1 -0
  143. package/build/client/_app/immutable/nodes/7.IL4b-DII.js +1 -0
  144. package/build/client/_app/immutable/nodes/8.DJrguHjO.js +11 -0
  145. package/build/client/_app/immutable/nodes/9.DTUSzWiK.js +1 -0
  146. package/build/client/_app/version.json +1 -0
  147. package/build/client/favicon.svg +7 -0
  148. package/build/env.js +70 -0
  149. package/build/handler.js +26 -0
  150. package/build/index.js +149 -0
  151. package/build/server/chunks/chunks/Banner.js-D4mtxUfF.js +17 -0
  152. package/build/server/chunks/chunks/BoardOff.js-Dg5-LoR3.js +1627 -0
  153. package/build/server/chunks/chunks/Button.js-Buh9rnpu.js +43 -0
  154. package/build/server/chunks/chunks/Chip.js-xZ7vFkHx.js +12 -0
  155. package/build/server/chunks/chunks/Dialog.js-CGpwdpM-.js +60 -0
  156. package/build/server/chunks/chunks/FeaturePanels.js-B2sKozgF.js +84 -0
  157. package/build/server/chunks/chunks/FolderBrowser.js-DUHFhDaX.js +28 -0
  158. package/build/server/chunks/chunks/HelpTip.js-CzemvmjC.js +19 -0
  159. package/build/server/chunks/chunks/InfoBox.js-BJiVzZgw.js +10 -0
  160. package/build/server/chunks/chunks/KeyCaps.js-BMI2Hrh2.js +37 -0
  161. package/build/server/chunks/chunks/LogLine.js-2b7uX__H.js +35 -0
  162. package/build/server/chunks/chunks/Markdown.js-Clud88KU.js +4233 -0
  163. package/build/server/chunks/chunks/ModelPicker.js-FuBgyKIA.js +141 -0
  164. package/build/server/chunks/chunks/OptionButtons.js-LQKrAwUX.js +28 -0
  165. package/build/server/chunks/chunks/PeekPanel.js-aZ-r_v3N.js +375 -0
  166. package/build/server/chunks/chunks/ScoutPage.js-2DcNia96.js +733 -0
  167. package/build/server/chunks/chunks/SetupSteps.js-D7TAF7xa.js +66 -0
  168. package/build/server/chunks/chunks/Skeleton.js-diCP2sd5.js +30 -0
  169. package/build/server/chunks/chunks/SlotsMeter.js-BV_sAGf5.js +18 -0
  170. package/build/server/chunks/chunks/StartConfirm.js-CzEdFtbO.js +124 -0
  171. package/build/server/chunks/chunks/StatePill.js-CM7-HXNM.js +27 -0
  172. package/build/server/chunks/chunks/Streamed.js-_NgwNMMs.js +43 -0
  173. package/build/server/chunks/chunks/_page.server.js-BaGoctEY.js +1419 -0
  174. package/build/server/chunks/chunks/activity.js-CSoPUQLq.js +84 -0
  175. package/build/server/chunks/chunks/add-repo.js-DtHEobfm.js +305 -0
  176. package/build/server/chunks/chunks/app-header.js-CCflgeEQ.js +13 -0
  177. package/build/server/chunks/chunks/app.js-CuPn8jtk.js +12 -0
  178. package/build/server/chunks/chunks/bin.js-Cyb2cYLc.js +58 -0
  179. package/build/server/chunks/chunks/board-keys.js-CW3qw-MC.js +32 -0
  180. package/build/server/chunks/chunks/board-page.js-D0tdsE9J.js +860 -0
  181. package/build/server/chunks/chunks/board.js-BxL3CjB1.js +203 -0
  182. package/build/server/chunks/chunks/browser-test.js-DJEpOoVz.js +170 -0
  183. package/build/server/chunks/chunks/card-pulls.js-d_uGmBB3.js +229 -0
  184. package/build/server/chunks/chunks/card-repos.js-QaMCxiyV.js +59 -0
  185. package/build/server/chunks/chunks/chain-store.js-D42m8DUo.js +91 -0
  186. package/build/server/chunks/chunks/chain.js-CJFRywIC.js +52 -0
  187. package/build/server/chunks/chunks/changes.js-D8ITRMgU.js +513 -0
  188. package/build/server/chunks/chunks/checkout.js-Ys5L_gA4.js +319 -0
  189. package/build/server/chunks/chunks/client.js-B7jIMDuS.js +68 -0
  190. package/build/server/chunks/chunks/clipboard.js-qXskOBim.js +12 -0
  191. package/build/server/chunks/chunks/cloud-status.js-hy-9zUVX.js +95 -0
  192. package/build/server/chunks/chunks/coach.js-BhNB14rV.js +296 -0
  193. package/build/server/chunks/chunks/comments.js-1nWJQptB.js +311 -0
  194. package/build/server/chunks/chunks/commit-message.js-CMcNZUZw.js +8 -0
  195. package/build/server/chunks/chunks/create-card.js-DKtprMG6.js +498 -0
  196. package/build/server/chunks/chunks/db.js-pqoVpAzG.js +80 -0
  197. package/build/server/chunks/chunks/diff-comments.js-BSCuay_U.js +95 -0
  198. package/build/server/chunks/chunks/discussion.js-rJ5OMfvX.js +355 -0
  199. package/build/server/chunks/chunks/display.js-Bf-vGQ7Q.js +61 -0
  200. package/build/server/chunks/chunks/elapsed.js-DikkNhaD.js +27 -0
  201. package/build/server/chunks/chunks/engine.js-DS5zUwsE.js +115 -0
  202. package/build/server/chunks/chunks/env.js-l0sNRNKZ.js +2 -0
  203. package/build/server/chunks/chunks/estimate.js-BHTYVTaQ.js +2484 -0
  204. package/build/server/chunks/chunks/evidence-timeline.js-Dk0dTZIy.js +253 -0
  205. package/build/server/chunks/chunks/evidence.js-CT3tWdbB.js +257 -0
  206. package/build/server/chunks/chunks/exports.js-Hn-WQRMB.js +150 -0
  207. package/build/server/chunks/chunks/features.svelte.js-DNsFmFZb.js +10 -0
  208. package/build/server/chunks/chunks/files.js-V46lE0-6.js +46 -0
  209. package/build/server/chunks/chunks/filter.js-CsmCtJMd.js +11 -0
  210. package/build/server/chunks/chunks/forms.js-03E8qnFz.js +35 -0
  211. package/build/server/chunks/chunks/gate.js-Cbqo8Yy0.js +82 -0
  212. package/build/server/chunks/chunks/getting-started.js-DKbHofN5.js +55 -0
  213. package/build/server/chunks/chunks/git.js-l43vBHqs.js +16 -0
  214. package/build/server/chunks/chunks/home-path.js-BXgrl3TP.js +11 -0
  215. package/build/server/chunks/chunks/hub-link.js-B5kjLyyd.js +1532 -0
  216. package/build/server/chunks/chunks/internal.js-DaSBO6jY.js +1239 -0
  217. package/build/server/chunks/chunks/internal2.js-D6AKyUgY.js +27 -0
  218. package/build/server/chunks/chunks/knowledge-page.js-D2ALB3v9.js +292 -0
  219. package/build/server/chunks/chunks/knowledge-revert.js-2eyN9Lcb.js +109 -0
  220. package/build/server/chunks/chunks/knowledge.js--eAgdzNx.js +394 -0
  221. package/build/server/chunks/chunks/last-board.js-BemeiK3t.js +23 -0
  222. package/build/server/chunks/chunks/log.js-R2zUph6T.js +228 -0
  223. package/build/server/chunks/chunks/loop.js-D3guWKLp.js +4038 -0
  224. package/build/server/chunks/chunks/loop2.js-B_Qd2m4y.js +67 -0
  225. package/build/server/chunks/chunks/navigation.js-DQJMz-SM.js +2 -0
  226. package/build/server/chunks/chunks/new-project.js-DNcr9JpB.js +305 -0
  227. package/build/server/chunks/chunks/next-step.js-B8Kl0Iv9.js +522 -0
  228. package/build/server/chunks/chunks/node.js-Bz2jT5wt.js +3381 -0
  229. package/build/server/chunks/chunks/now-live.svelte.js-hIaDgjJ3.js +13 -0
  230. package/build/server/chunks/chunks/now-snapshot.js-zGKLIzox.js +207 -0
  231. package/build/server/chunks/chunks/now.js-Dfm-o0Ha.js +765 -0
  232. package/build/server/chunks/chunks/onboard.js-LBqPOxyU.js +1525 -0
  233. package/build/server/chunks/chunks/ordinal.js-Bm_9QEBD.js +12 -0
  234. package/build/server/chunks/chunks/overview.js-C32iHkXD.js +1108 -0
  235. package/build/server/chunks/chunks/page-keys.svelte.js-D8vXA_8Z.js +14 -0
  236. package/build/server/chunks/chunks/patch.js-Bl7vwsUj.js +62 -0
  237. package/build/server/chunks/chunks/paths.js-DVRjNYFW.js +19 -0
  238. package/build/server/chunks/chunks/peek.js-D9sSjT9t.js +95 -0
  239. package/build/server/chunks/chunks/plan.js-DFq5ntMM.js +143 -0
  240. package/build/server/chunks/chunks/project-files-notice.js-CcqcBgUP.js +19 -0
  241. package/build/server/chunks/chunks/project-files.js-DTC4jUxy.js +52 -0
  242. package/build/server/chunks/chunks/project-folder.js-CoKgPiM0.js +22 -0
  243. package/build/server/chunks/chunks/projects.js-bw2V11od.js +989 -0
  244. package/build/server/chunks/chunks/prs.js-CLfImauu.js +118 -0
  245. package/build/server/chunks/chunks/publish.js-D2vWpIJU.js +195 -0
  246. package/build/server/chunks/chunks/pull-list.js-BCIBJdyz.js +691 -0
  247. package/build/server/chunks/chunks/qa-ask.svelte.js-8Hf1JWW2.js +47 -0
  248. package/build/server/chunks/chunks/qa-setup.js-DFOEcNxH.js +1241 -0
  249. package/build/server/chunks/chunks/quiet.js-1GKY40Ay.js +104 -0
  250. package/build/server/chunks/chunks/rail.js-BePBwOqZ.js +135 -0
  251. package/build/server/chunks/chunks/review.js-MPqnq9Gy.js +98 -0
  252. package/build/server/chunks/chunks/routing.js-B8s1QwSP.js +265 -0
  253. package/build/server/chunks/chunks/run-log.js-CnN2jOcg.js +94 -0
  254. package/build/server/chunks/chunks/run.js-COSejjLl.js +34 -0
  255. package/build/server/chunks/chunks/scout-findings.js-CqJti10a.js +940 -0
  256. package/build/server/chunks/chunks/scout.js-Bm7wQLX2.js +62 -0
  257. package/build/server/chunks/chunks/sentinels.js-BXvpnzr3.js +13 -0
  258. package/build/server/chunks/chunks/server.js-BR0D07DR.js +3803 -0
  259. package/build/server/chunks/chunks/settings-sections.js-V70W7BkZ.js +103 -0
  260. package/build/server/chunks/chunks/shared.js-BgfCUZUJ.js +776 -0
  261. package/build/server/chunks/chunks/sign-in.js-O-pBhi19.js +14 -0
  262. package/build/server/chunks/chunks/snapshot.js-BekzL_He.js +38 -0
  263. package/build/server/chunks/chunks/spend.js-BabnR69T.js +63 -0
  264. package/build/server/chunks/chunks/src.js-Cm8RAH_q.js +609 -0
  265. package/build/server/chunks/chunks/src2.js-CV8tsClO.js +1186 -0
  266. package/build/server/chunks/chunks/src3.js-h9tTEbVb.js +11222 -0
  267. package/build/server/chunks/chunks/stack.js-CMWXhMZS.js +13 -0
  268. package/build/server/chunks/chunks/standup.js-D-qBnMx4.js +103 -0
  269. package/build/server/chunks/chunks/state.js-BTDrgu7s.js +71 -0
  270. package/build/server/chunks/chunks/stream.js-D6r6iqjD.js +66 -0
  271. package/build/server/chunks/chunks/terms.js-DPZztSEn.js +88 -0
  272. package/build/server/chunks/chunks/ticket-system.js-Dj9R3XJw.js +147 -0
  273. package/build/server/chunks/chunks/ticket.js-6sj-2ZEM.js +110 -0
  274. package/build/server/chunks/chunks/timesheet.js-DfhIokoE.js +212 -0
  275. package/build/server/chunks/chunks/timesheet2.js-Cu95ddl3.js +84 -0
  276. package/build/server/chunks/chunks/to-workspace.js-DiOJP59J.js +308 -0
  277. package/build/server/chunks/chunks/toast-stack.svelte.js-CXIg3_KT.js +10 -0
  278. package/build/server/chunks/chunks/uneval.js-VnZcgzZr.js +488 -0
  279. package/build/server/chunks/chunks/utils.js-DQTBh7_6.js +1006 -0
  280. package/build/server/chunks/chunks/when-said.js-0F9asAma.js +35 -0
  281. package/build/server/chunks/chunks/workspace.js-BBdJRon9.js +212 -0
  282. package/build/server/chunks/entries/endpoints/api/board/_server.ts.js-BlYC_lpV.js +69 -0
  283. package/build/server/chunks/entries/endpoints/api/board/minimize/_server.ts.js-Wddt9YPR.js +68 -0
  284. package/build/server/chunks/entries/endpoints/api/board/move/_server.ts.js-BwZpCKx0.js +68 -0
  285. package/build/server/chunks/entries/endpoints/api/board/promote/_server.ts.js-Cw6kvkMq.js +68 -0
  286. package/build/server/chunks/entries/endpoints/api/board/pulls/_server.ts.js-DFhpbiMo.js +71 -0
  287. package/build/server/chunks/entries/endpoints/api/board/stop/_server.ts.js-D5eylDMw.js +68 -0
  288. package/build/server/chunks/entries/endpoints/api/card/_key_/answer/_server.ts.js-CG8xh52y.js +68 -0
  289. package/build/server/chunks/entries/endpoints/api/card/_key_/branch/_server.ts.js-a5_P9voA.js +40 -0
  290. package/build/server/chunks/entries/endpoints/api/card/_key_/chain/_server.ts.js-tJvQy6RK.js +70 -0
  291. package/build/server/chunks/entries/endpoints/api/card/_key_/checkouts/_server.ts.js-B2_gx6vF.js +41 -0
  292. package/build/server/chunks/entries/endpoints/api/card/_key_/choice/_server.ts.js-pmAdIQkK.js +34 -0
  293. package/build/server/chunks/entries/endpoints/api/card/_key_/comments/_id_/_server.ts.js-C5NxGWw3.js +68 -0
  294. package/build/server/chunks/entries/endpoints/api/card/_key_/comments/_server.ts.js-0rw7UNv8.js +64 -0
  295. package/build/server/chunks/entries/endpoints/api/card/_key_/commit/_server.ts.js-_yXWCOlQ.js +68 -0
  296. package/build/server/chunks/entries/endpoints/api/card/_key_/commit-diff/_server.ts.js-CRPV3z-g.js +61 -0
  297. package/build/server/chunks/entries/endpoints/api/card/_key_/commit-message/_server.ts.js-CO9mD3u6.js +82 -0
  298. package/build/server/chunks/entries/endpoints/api/card/_key_/context/_server.ts.js-7kzrigFz.js +42 -0
  299. package/build/server/chunks/entries/endpoints/api/card/_key_/delete/_server.ts.js-DH0nO9wG.js +516 -0
  300. package/build/server/chunks/entries/endpoints/api/card/_key_/file/_server.ts.js-D80SvJDi.js +35 -0
  301. package/build/server/chunks/entries/endpoints/api/card/_key_/files/_...path_/_server.ts.js-GxFjb2H0.js +34 -0
  302. package/build/server/chunks/entries/endpoints/api/card/_key_/fix/_server.ts.js-B-HAB050.js +68 -0
  303. package/build/server/chunks/entries/endpoints/api/card/_key_/knowledge/_server.ts.js-D4fN-j7X.js +81 -0
  304. package/build/server/chunks/entries/endpoints/api/card/_key_/link/_other_/_server.ts.js-C00pQDCu.js +42 -0
  305. package/build/server/chunks/entries/endpoints/api/card/_key_/log/_server.ts.js-BXW_tG-I.js +32 -0
  306. package/build/server/chunks/entries/endpoints/api/card/_key_/log/raw/_server.ts.js-pT8StZGR.js +32 -0
  307. package/build/server/chunks/entries/endpoints/api/card/_key_/message/_server.ts.js-ZMno2Hu6.js +68 -0
  308. package/build/server/chunks/entries/endpoints/api/card/_key_/models/_server.ts.js-DEZVpqO3.js +73 -0
  309. package/build/server/chunks/entries/endpoints/api/card/_key_/patch/_server.ts.js-BxfLi-Zs.js +61 -0
  310. package/build/server/chunks/entries/endpoints/api/card/_key_/peek/_server.ts.js-CsTKWIP_.js +169 -0
  311. package/build/server/chunks/entries/endpoints/api/card/_key_/pr/_server.ts.js-CsOeAXkf.js +53 -0
  312. package/build/server/chunks/entries/endpoints/api/card/_key_/pr/comments/_server.ts.js-DZ2XHOhF.js +71 -0
  313. package/build/server/chunks/entries/endpoints/api/card/_key_/pr/discuss/_server.ts.js-CO8eM0e8.js +72 -0
  314. package/build/server/chunks/entries/endpoints/api/card/_key_/pr/discussions/_server.ts.js-Lp7l0Yqv.js +71 -0
  315. package/build/server/chunks/entries/endpoints/api/card/_key_/pr/fix/_server.ts.js-CeIhjpQ4.js +68 -0
  316. package/build/server/chunks/entries/endpoints/api/card/_key_/pr/fix-all/_server.ts.js-D-DKoCpQ.js +68 -0
  317. package/build/server/chunks/entries/endpoints/api/card/_key_/pr/links/_server.ts.js-B_q3jUP3.js +72 -0
  318. package/build/server/chunks/entries/endpoints/api/card/_key_/pr/qa/_server.ts.js-BulVcJY9.js +68 -0
  319. package/build/server/chunks/entries/endpoints/api/card/_key_/pr/seen/_server.ts.js-Z06A6MS1.js +71 -0
  320. package/build/server/chunks/entries/endpoints/api/card/_key_/pr/triage/_server.ts.js-qADU4URF.js +68 -0
  321. package/build/server/chunks/entries/endpoints/api/card/_key_/pull/_server.ts.js-CHnTH9WK.js +58 -0
  322. package/build/server/chunks/entries/endpoints/api/card/_key_/push/_server.ts.js-BPdPwPo2.js +83 -0
  323. package/build/server/chunks/entries/endpoints/api/card/_key_/repos/_server.ts.js-Bjqa3Uoo.js +73 -0
  324. package/build/server/chunks/entries/endpoints/api/card/_key_/research/_server.ts.js-DzQjoHOZ.js +138 -0
  325. package/build/server/chunks/entries/endpoints/api/card/_key_/retry/_server.ts.js-CAodrXqd.js +68 -0
  326. package/build/server/chunks/entries/endpoints/api/card/_key_/send-back/_server.ts.js-CmJSnvTx.js +68 -0
  327. package/build/server/chunks/entries/endpoints/api/card/_key_/stack/_server.ts.js-DjI8S94J.js +82 -0
  328. package/build/server/chunks/entries/endpoints/api/card/_key_/tasks/_server.ts.js-BzX_nNJk.js +71 -0
  329. package/build/server/chunks/entries/endpoints/api/card/_key_/thread/_server.ts.js-Dn36Guxk.js +33 -0
  330. package/build/server/chunks/entries/endpoints/api/cards/_server.ts.js-DPMOBsvp.js +77 -0
  331. package/build/server/chunks/entries/endpoints/api/cards/context/_server.ts.js-D6y-g2O-.js +52 -0
  332. package/build/server/chunks/entries/endpoints/api/cards/next/_server.ts.js-C2se67rf.js +55 -0
  333. package/build/server/chunks/entries/endpoints/api/chain/_server.ts.js-DKO5Q8GV.js +70 -0
  334. package/build/server/chunks/entries/endpoints/api/clones/_server.ts.js-Bgcc_Beg.js +56 -0
  335. package/build/server/chunks/entries/endpoints/api/current-project/_server.ts.js-DZCtSlXs.js +81 -0
  336. package/build/server/chunks/entries/endpoints/api/evidence/timesheet/_server.ts.js-xJwzSrcl.js +32 -0
  337. package/build/server/chunks/entries/endpoints/api/folders/_server.ts.js-BdcE7k8S.js +83 -0
  338. package/build/server/chunks/entries/endpoints/api/gh/_server.ts.js-CGvM8fn7.js +66 -0
  339. package/build/server/chunks/entries/endpoints/api/gh/name/_server.ts.js-CHh3tAu7.js +36 -0
  340. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-DLUfrHo6.js +22 -0
  341. package/build/server/chunks/entries/endpoints/api/login-item/_server.ts.js-Cya7S7W6.js +77 -0
  342. package/build/server/chunks/entries/endpoints/api/notes/_server.ts.js-DaUFVqSM.js +26 -0
  343. package/build/server/chunks/entries/endpoints/api/notifications/_server.ts.js-DK6NFnII.js +76 -0
  344. package/build/server/chunks/entries/endpoints/api/now/_server.ts.js-xW0jeJdy.js +83 -0
  345. package/build/server/chunks/entries/endpoints/api/package/entry/_server.ts.js-DQyZanpo.js +35 -0
  346. package/build/server/chunks/entries/endpoints/api/projects/_server.ts.js-CzXJTj_l.js +58 -0
  347. package/build/server/chunks/entries/endpoints/api/qa-setup/_server.ts.js-DujrYbEP.js +76 -0
  348. package/build/server/chunks/entries/endpoints/api/remove-check/_server.ts.js-1KAi9LDi.js +58 -0
  349. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-D0MKtjR7.js +69 -0
  350. package/build/server/chunks/entries/endpoints/api/tickets/jira/_server.ts.js-Z2LdOr5l.js +39 -0
  351. package/build/server/chunks/entries/endpoints/api/tickets/read/_server.ts.js-BziHtc8Y.js +68 -0
  352. package/build/server/chunks/entries/endpoints/api/tools/_server.ts.js-oyvq8i1y.js +30 -0
  353. package/build/server/chunks/entries/endpoints/api/workspace/_server.ts.js-CMGBL5cX.js +58 -0
  354. package/build/server/chunks/entries/endpoints/api/workspace/commit/_server.ts.js-BZQQJ1YG.js +66 -0
  355. package/build/server/chunks/entries/endpoints/api/workspace/patch/_server.ts.js-xrjgHECx.js +64 -0
  356. package/build/server/chunks/entries/endpoints/api/workspace/push/_server.ts.js-CTdia7Uz.js +66 -0
  357. package/build/server/chunks/entries/hooks.server.js-B0jE-ELC.js +211 -0
  358. package/build/server/chunks/entries/pages/_error.svelte.js-DPcKI5sX.js +25 -0
  359. package/build/server/chunks/entries/pages/_layout.server.ts.js-Jj3i2Th9.js +134 -0
  360. package/build/server/chunks/entries/pages/_layout.svelte.js-Cu3ghN80.js +1251 -0
  361. package/build/server/chunks/entries/pages/_page.svelte.js-DEYydBCm.js +662 -0
  362. package/build/server/chunks/entries/pages/accept/_page.server.ts.js-BF7MrA5s.js +29 -0
  363. package/build/server/chunks/entries/pages/accept/_page.svelte.js-8yPsedd-.js +54 -0
  364. package/build/server/chunks/entries/pages/b/_board_/_page.svelte.js-S9acLF3f.js +68 -0
  365. package/build/server/chunks/entries/pages/b/_board_/_page.ts.js-BcKdG_Tp.js +21 -0
  366. package/build/server/chunks/entries/pages/b/research/_page.svelte.js-FW6Hw9g5.js +68 -0
  367. package/build/server/chunks/entries/pages/b/research/_page.ts.js-Ds2AjFFK.js +13 -0
  368. package/build/server/chunks/entries/pages/evidence/_page.server.ts.js-uwu2X7bA.js +1382 -0
  369. package/build/server/chunks/entries/pages/evidence/_page.svelte.js-DBCjiT59.js +594 -0
  370. package/build/server/chunks/entries/pages/f/_...path_/_page.svelte.js-DxwJaJzh.js +58 -0
  371. package/build/server/chunks/entries/pages/knowledge/_page.server.ts.js-BAUvFEcM.js +80 -0
  372. package/build/server/chunks/entries/pages/knowledge/_page.svelte.js-D9117gHM.js +732 -0
  373. package/build/server/chunks/entries/pages/new/_page.server.ts.js-BNCQQpyw.js +110 -0
  374. package/build/server/chunks/entries/pages/new/_page.svelte.js-Ben8-N_h.js +503 -0
  375. package/build/server/chunks/entries/pages/new/idea/_page.server.ts.js-jssA29y3.js +46 -0
  376. package/build/server/chunks/entries/pages/new/idea/_page.svelte.js-XoKspqAc.js +210 -0
  377. package/build/server/chunks/entries/pages/new/task/_page.server.ts.js-CmZgfvyt.js +66 -0
  378. package/build/server/chunks/entries/pages/new/task/_page.svelte.js-BKpERKvm.js +169 -0
  379. package/build/server/chunks/entries/pages/onboard/_page.server.ts.js-pmc_pXvs.js +12 -0
  380. package/build/server/chunks/entries/pages/onboard/_page.svelte.js-C7LNK-ba.js +5 -0
  381. package/build/server/chunks/entries/pages/projects/_page.server.ts.js-BEhLRfJ_.js +12 -0
  382. package/build/server/chunks/entries/pages/projects/_page.svelte.js-OraOjsyb.js +5 -0
  383. package/build/server/chunks/entries/pages/scout/_page.server.ts.js-hQYnMHwY.js +10 -0
  384. package/build/server/chunks/entries/pages/scout/_page.svelte.js-7q4d044Z.js +40 -0
  385. package/build/server/chunks/entries/pages/scout/f/_id_/_page.server.ts.js-BN4TnSpB.js +22 -0
  386. package/build/server/chunks/entries/pages/scout/f/_id_/_page.svelte.js-GzpLhARi.js +40 -0
  387. package/build/server/chunks/entries/pages/settings/_layout.server.ts.js-B5LgqMMT.js +12 -0
  388. package/build/server/chunks/entries/pages/settings/_layout.svelte.js-CSCpV6qA.js +81 -0
  389. package/build/server/chunks/entries/pages/settings/_page.svelte.js-DNpsNFo0.js +25 -0
  390. package/build/server/chunks/entries/pages/settings/_section_/_page.server.ts.js-nRDEV3i_.js +348 -0
  391. package/build/server/chunks/entries/pages/settings/_section_/_page.svelte.js-BihUf-nY.js +1052 -0
  392. package/build/server/chunks/entries/pages/settings/integrations/_page.server.ts.js-BTuRpg8m.js +58 -0
  393. package/build/server/chunks/entries/pages/settings/integrations/_page.svelte.js-C8i8ZmZR.js +161 -0
  394. package/build/server/chunks/entries/pages/settings/mcp/_page.server.ts.js-TFISfO1a.js +925 -0
  395. package/build/server/chunks/entries/pages/settings/mcp/_page.svelte.js-D1X0TNOm.js +433 -0
  396. package/build/server/chunks/entries/pages/settings/phases/_page.server.ts.js-CgK7MTZf.js +48 -0
  397. package/build/server/chunks/entries/pages/settings/phases/_page.svelte.js-u-sTQ-ue.js +80 -0
  398. package/build/server/chunks/entries/pages/settings/project/_page.server.ts.js-CCnk9WbO.js +363 -0
  399. package/build/server/chunks/entries/pages/settings/project/_page.svelte.js-MxvNqYlQ.js +1269 -0
  400. package/build/server/chunks/entries/pages/settings/wall/_page.server.ts.js-Bt5siY_N.js +12 -0
  401. package/build/server/chunks/entries/pages/settings/wall/_page.svelte.js-CMR4zSAt.js +43 -0
  402. package/build/server/chunks/entries/pages/t/_key_/_layout.server.ts.js-W6YPvOCA.js +124 -0
  403. package/build/server/chunks/entries/pages/t/_key_/_layout.svelte.js-CK0PiWsz.js +543 -0
  404. package/build/server/chunks/entries/pages/t/_key_/_page.server.ts.js-CdB7v0WX.js +15 -0
  405. package/build/server/chunks/entries/pages/t/_key_/_tab_/_page.server.ts.js-Bksaje8R.js +75 -0
  406. package/build/server/chunks/entries/pages/t/_key_/_tab_/_page.svelte.js-9OQ2eQxu.js +4607 -0
  407. package/build/server/chunks/entries/pages/team/_page.svelte.js-BdUSXC04.js +18 -0
  408. package/build/server/chunks/entries/pages/team/_page.ts.js-DfhJmoZI.js +20 -0
  409. package/build/server/chunks/entries/pages/workspace/_page.svelte.js-DLaWe23r.js +579 -0
  410. package/build/server/chunks/handler-Dlwmumt5.js +1735 -0
  411. package/build/server/chunks/index.js-BX0fZD5G.js +3701 -0
  412. package/build/server/chunks/manifest.js-B2Of6Dj7.js +761 -0
  413. package/build/server/chunks/nodes/0.js-DSzhdY0D.js +87 -0
  414. package/build/server/chunks/nodes/1.js-j4osL1br.js +9 -0
  415. package/build/server/chunks/nodes/10.js-jkvevEFY.js +75 -0
  416. package/build/server/chunks/nodes/11.js-plyiDP2n.js +72 -0
  417. package/build/server/chunks/nodes/12.js-DwtvDAyM.js +78 -0
  418. package/build/server/chunks/nodes/13.js-BpxwqFh4.js +72 -0
  419. package/build/server/chunks/nodes/14.js-B5iNIKGy.js +15 -0
  420. package/build/server/chunks/nodes/15.js-CXCAqUsG.js +15 -0
  421. package/build/server/chunks/nodes/16.js-oxkLEH0n.js +76 -0
  422. package/build/server/chunks/nodes/17.js-B-ZJEo9K.js +76 -0
  423. package/build/server/chunks/nodes/18.js-C0OUCEux.js +9 -0
  424. package/build/server/chunks/nodes/19.js-M8EAQJdW.js +76 -0
  425. package/build/server/chunks/nodes/2.js-ZedduK-3.js +33 -0
  426. package/build/server/chunks/nodes/20.js-BHvsLNjD.js +72 -0
  427. package/build/server/chunks/nodes/21.js-eOaW4si1.js +76 -0
  428. package/build/server/chunks/nodes/22.js-CbJ6tQSs.js +38 -0
  429. package/build/server/chunks/nodes/23.js-DXk8ejlx.js +81 -0
  430. package/build/server/chunks/nodes/24.js-C4qGJc4X.js +33 -0
  431. package/build/server/chunks/nodes/25.js-Cal8uT5V.js +21 -0
  432. package/build/server/chunks/nodes/26.js-Cp5jBcrN.js +80 -0
  433. package/build/server/chunks/nodes/27.js-Do55o_cb.js +17 -0
  434. package/build/server/chunks/nodes/28.js-SNz3QVix.js +9 -0
  435. package/build/server/chunks/nodes/3.js-DyivQ5dN.js +75 -0
  436. package/build/server/chunks/nodes/4.js-BGgTTQFR.js +9 -0
  437. package/build/server/chunks/nodes/5.js-DQYA2BBI.js +31 -0
  438. package/build/server/chunks/nodes/6.js-BVTi2KFL.js +24 -0
  439. package/build/server/chunks/nodes/7.js-CnprIn3p.js +12 -0
  440. package/build/server/chunks/nodes/8.js-Bdicn369.js +50 -0
  441. package/build/server/chunks/nodes/9.js-DVclPGXf.js +9 -0
  442. package/build/shims.js +33 -0
  443. package/dist/THIRD-PARTY-NOTICES.md +659 -0
  444. package/dist/detect-BmI_gskA.js +585 -0
  445. package/dist/fonts/OFL.txt +92 -0
  446. package/dist/nolzu.js +48 -0
  447. package/dist/package-vezZOzhD.js +181 -0
  448. package/dist/shared/finish.md +110 -0
  449. package/dist/shared/knowledge.md +72 -0
  450. package/dist/shared/verdict.md +42 -0
  451. package/dist/skills/.gitkeep +0 -0
  452. package/dist/skills/nolzu-architecture/SKILL.md +140 -0
  453. package/dist/skills/nolzu-architecture/finish.md +110 -0
  454. package/dist/skills/nolzu-assess/SKILL.md +99 -0
  455. package/dist/skills/nolzu-assess/finish.md +110 -0
  456. package/dist/skills/nolzu-design/SKILL.md +115 -0
  457. package/dist/skills/nolzu-design/finish.md +110 -0
  458. package/dist/skills/nolzu-feedback/SKILL.md +107 -0
  459. package/dist/skills/nolzu-feedback/finish.md +110 -0
  460. package/dist/skills/nolzu-implement/SKILL.md +138 -0
  461. package/dist/skills/nolzu-implement/finish.md +110 -0
  462. package/dist/skills/nolzu-investigate/SKILL.md +139 -0
  463. package/dist/skills/nolzu-investigate/finish.md +110 -0
  464. package/dist/skills/nolzu-learn-repo/SKILL.md +115 -0
  465. package/dist/skills/nolzu-learn-repo/finish.md +110 -0
  466. package/dist/skills/nolzu-learn-repo/knowledge.md +72 -0
  467. package/dist/skills/nolzu-optimize/SKILL.md +82 -0
  468. package/dist/skills/nolzu-optimize/finish.md +110 -0
  469. package/dist/skills/nolzu-optimize/knowledge.md +72 -0
  470. package/dist/skills/nolzu-orient/SKILL.md +115 -0
  471. package/dist/skills/nolzu-orient/finish.md +110 -0
  472. package/dist/skills/nolzu-orient/knowledge.md +72 -0
  473. package/dist/skills/nolzu-plan/SKILL.md +165 -0
  474. package/dist/skills/nolzu-plan/finish.md +110 -0
  475. package/dist/skills/nolzu-pr-review/SKILL.md +150 -0
  476. package/dist/skills/nolzu-pr-review/finish.md +110 -0
  477. package/dist/skills/nolzu-qa/SKILL.md +177 -0
  478. package/dist/skills/nolzu-qa/finish.md +110 -0
  479. package/dist/skills/nolzu-qa/verdict.md +42 -0
  480. package/dist/skills/nolzu-refine/SKILL.md +145 -0
  481. package/dist/skills/nolzu-refine/finish.md +110 -0
  482. package/dist/skills/nolzu-research/SKILL.md +140 -0
  483. package/dist/skills/nolzu-research/finish.md +110 -0
  484. package/dist/skills/nolzu-wrapup/SKILL.md +126 -0
  485. package/dist/skills/nolzu-wrapup/finish.md +110 -0
  486. package/dist/skills/nolzu-wrapup/knowledge.md +72 -0
  487. package/dist/src-BG8LaXLS.js +723 -0
  488. package/dist/src-DPfcvRqs.js +4 -0
  489. package/dist/start-ItZOcBtM.js +362 -0
  490. package/package.json +49 -9
  491. package/bin/nolzu.js +0 -8
@@ -0,0 +1,860 @@
1
+ import { p as profileName, c as engineName, d as effortInModel, r as ranOn, m as missingProfileText, f as goneSentence } from './engine.js-DS5zUwsE.js';
2
+ import { i as isBoardKind } from './board.js-BxL3CjB1.js';
3
+ import { a as formatDuration, f as formatCost } from './spend.js-BabnR69T.js';
4
+ import { h as boardFor, ae as estimateFrom, af as estimateText, n as estimateSum, f as canMove } from './estimate.js-BHTYVTaQ.js';
5
+ import { x as ticketLink } from './src.js-Cm8RAH_q.js';
6
+ import { c as cardStarts } from './snapshot.js-BekzL_He.js';
7
+ import './src2.js-CV8tsClO.js';
8
+ import { f as forwardMove, r as retryStage, p as postWrite } from './ticket.js-6sj-2ZEM.js';
9
+
10
+ //#region ../../packages/ui/src/board/drop.ts
11
+ var STARTS_NOTHING = "Move here, starts nothing";
12
+ var RUNS_HERE = "Runs on this machine, in your checkout.";
13
+ var FIVE_HOURS = 18e6;
14
+ var DAY = 864e5;
15
+ var KNOWN_WINDOWS = {
16
+ five_hour: {
17
+ name: "5-hour window",
18
+ lasts: FIVE_HOURS
19
+ },
20
+ seven_day: {
21
+ name: "weekly window",
22
+ lasts: 7 * DAY
23
+ }
24
+ };
25
+ /**
26
+ * The windows of one profile's last reading that are at 90% or more and have not reset since.
27
+ *
28
+ * The share is the one the engine measured, and nothing shows without a reading (owner question 57).
29
+ * The reset time carries the day when it is a day or more away, as a weekly window's is.
30
+ */
31
+ function nearLimits(limit, now, timeZone) {
32
+ if (limit === void 0) return [];
33
+ return limit.windows.flatMap((window) => {
34
+ const known = KNOWN_WINDOWS[window.name];
35
+ if (known === void 0 || window.used === null || window.used < .9 || now - limit.seenAt > known.lasts) return [];
36
+ const resets = window.resetsAt === null ? null : window.resetsAt * 1e3;
37
+ if (resets !== null && resets <= now) return [];
38
+ const used = `${known.name} ${Math.round(window.used * 100)}% used`;
39
+ if (resets === null) return [{
40
+ window: window.name,
41
+ name: known.name,
42
+ resetsAt: null,
43
+ text: used
44
+ }];
45
+ const day = resets - now >= DAY ? {
46
+ day: "numeric",
47
+ month: "short"
48
+ } : {};
49
+ const at = new Intl.DateTimeFormat("en-GB", {
50
+ timeZone,
51
+ ...day,
52
+ hour: "2-digit",
53
+ minute: "2-digit",
54
+ hour12: false
55
+ }).format(resets);
56
+ return [{
57
+ window: window.name,
58
+ name: known.name,
59
+ resetsAt: window.resetsAt,
60
+ text: `${used}, resets ${at}`
61
+ }];
62
+ });
63
+ }
64
+ function usageLine(limit, now, timeZone) {
65
+ const near = nearLimits(limit, now, timeZone);
66
+ if (near.length > 0) return near.map((one) => one.text).join(" · ");
67
+ const window = limit?.windows.find((one) => one.name === "five_hour");
68
+ if (limit === void 0 || window === void 0 || window.used === null || now - limit.seenAt > FIVE_HOURS) return null;
69
+ if (window.resetsAt !== null && window.resetsAt * 1e3 <= now) return null;
70
+ const share = `5h window ${Math.round(window.used * 100)}%`;
71
+ if (window.resetsAt === null) return share;
72
+ return `${share} · resets ${new Intl.DateTimeFormat("en-GB", {
73
+ timeZone,
74
+ hour: "2-digit",
75
+ minute: "2-digit",
76
+ hour12: false
77
+ }).format(window.resetsAt * 1e3)}`;
78
+ }
79
+ var startsCommand = (starts) => [
80
+ starts.severalProfiles === true ? profileName(starts.engine) : engineName(starts.engine),
81
+ starts.model,
82
+ ...effortInModel(starts.engine) ? [] : [starts.effort]
83
+ ].join(" · ");
84
+ function dropTarget(stage, startsRun, usage) {
85
+ const starts = stage.starts;
86
+ if (!startsRun) return {
87
+ kind: "nothing",
88
+ says: STARTS_NOTHING
89
+ };
90
+ if (starts === null) return {
91
+ kind: "nothing",
92
+ says: STARTS_NOTHING
93
+ };
94
+ if (starts.modelState === "no-profile") return {
95
+ kind: "refused",
96
+ reason: `${missingProfileText(starts.engine)} Set the row back to inherit in the card settings, or in Settings, Models.`
97
+ };
98
+ if (starts.refusal !== null) return {
99
+ kind: "refused",
100
+ reason: starts.refusal
101
+ };
102
+ if (starts.modelState === "gone") return {
103
+ kind: "refused",
104
+ reason: `${starts.model} is gone. Pick another model in the card settings, or in Settings, Models.`
105
+ };
106
+ const estimate = starts.estimate;
107
+ const window = usage === void 0 ? null : usageLine(usage.limits[starts.engine], usage.now, usage.timeZone);
108
+ return {
109
+ kind: "starts",
110
+ command: startsCommand(starts),
111
+ estimate: estimate === void 0 ? void 0 : {
112
+ text: estimateText(estimate),
113
+ from: estimateFrom(estimate)
114
+ },
115
+ usage: window ?? void 0
116
+ };
117
+ }
118
+ function chainTarget(first, then, usage) {
119
+ const one = dropTarget(first, true, usage);
120
+ if (one.kind !== "starts") return one;
121
+ const two = dropTarget(then, true);
122
+ if (two.kind !== "starts") return two;
123
+ const sum = estimateSum(first.starts?.estimate, then.starts?.estimate);
124
+ return {
125
+ kind: "starts",
126
+ command: `${one.command}, then ${two.command}`,
127
+ estimate: sum === void 0 ? void 0 : {
128
+ text: estimateText(sum),
129
+ from: `${first.label} and ${then.label} together`
130
+ },
131
+ usage: one.usage
132
+ };
133
+ }
134
+ function refuseDrop(stage, direction) {
135
+ const starts = stage.starts;
136
+ if (direction !== "forward" || starts === null || starts.modelState === "ok" && starts.refusal === null) return null;
137
+ if (starts.modelState === "no-profile") return {
138
+ message: `${missingProfileText(starts.engine)} ${stage.label} cannot start a run.`,
139
+ fix: "Set the row back to inherit in the card settings, or in Settings, Models.",
140
+ act: "Set the row back to inherit"
141
+ };
142
+ if (starts.refusal !== null) return {
143
+ message: starts.refusal,
144
+ fix: null
145
+ };
146
+ return {
147
+ message: goneSentence(stage.label, starts.model, starts.engine),
148
+ fix: "Pick another in the card settings, or in Settings, Models.",
149
+ code: starts.model,
150
+ act: "Pick another"
151
+ };
152
+ }
153
+ function keyStart(stage) {
154
+ const refusal = refuseDrop(stage, "forward");
155
+ if (refusal !== null) return {
156
+ kind: "refused",
157
+ refusal
158
+ };
159
+ return dropTarget(stage, true).kind === "starts" ? { kind: "ask" } : { kind: "send" };
160
+ }
161
+ function refusalFromServer(message) {
162
+ const said = message.trim();
163
+ return {
164
+ message: said === "" ? "The move was refused." : said,
165
+ fix: null
166
+ };
167
+ }
168
+ //#endregion
169
+ //#region ../../packages/ui/src/toasts.ts
170
+ var TOAST_MS = 6e3;
171
+ var TOAST_LONG_MS = 1e4;
172
+ var toastLife = (toast) => toast.kind === "error" || (toast.link ?? null) !== null ? TOAST_LONG_MS : TOAST_MS;
173
+ function splitCode(text, code) {
174
+ const at = code === null || code === void 0 || code === "" ? -1 : text.indexOf(code);
175
+ if (at === -1 || code === null || code === void 0) return null;
176
+ return [
177
+ text.slice(0, at),
178
+ code,
179
+ text.slice(at + code.length)
180
+ ];
181
+ }
182
+ function pushToast(stack, toast) {
183
+ return [...dropToast(stack, toast.card.key), toast].slice(-3);
184
+ }
185
+ function dropToast(stack, key) {
186
+ return stack.filter((one) => one.card.key !== key);
187
+ }
188
+ function runLine(run) {
189
+ if (run === null || run === void 0) return null;
190
+ const said = [
191
+ ranOn(run.engine, run.model, null) || null,
192
+ run.durationMs === null ? null : formatDuration(run.durationMs),
193
+ run.costUsd === null ? null : formatCost(run.costUsd)
194
+ ].filter((part) => part !== null);
195
+ return said.length === 0 ? null : said.join(" · ");
196
+ }
197
+ //#endregion
198
+ //#region ../../packages/ui/src/ticket/actions.ts
199
+ function settle(clicked, card) {
200
+ if (clicked === null) return null;
201
+ return clicked.key === card.key && clicked.stage === card.stage && clicked.state === card.state ? clicked : null;
202
+ }
203
+ function runView(card, pressed) {
204
+ const busy = settle(pressed, card) !== null;
205
+ if (card.state === "failed") return {
206
+ kind: "retry",
207
+ text: "Retry",
208
+ runId: null,
209
+ busy
210
+ };
211
+ if ((card.state === "queued" || card.state === "running") && card.runId !== null) return {
212
+ kind: "stop",
213
+ text: "Stop",
214
+ runId: card.runId,
215
+ busy
216
+ };
217
+ return null;
218
+ }
219
+ var FRESH = "A fresh run, because a session belongs to one profile. The checkout is not touched, so it goes on from the plan, the progress file and the changes already there.";
220
+ /**
221
+ * The "Run on" offer as the card draws it, on a failed card and on no other.
222
+ *
223
+ * A card that is running or ready has nothing to move: the offer exists so a phase that stopped,
224
+ * on a usage limit or on anything else, can be started on another login. The words come before the
225
+ * buttons, so the fresh run is not a surprise after the press.
226
+ */
227
+ function runOnView(card, offer, pressed) {
228
+ if (offer === null || card.state !== "failed") return null;
229
+ const empty = offer.profiles.length === 0;
230
+ return {
231
+ profiles: offer.profiles,
232
+ fresh: empty ? null : FRESH,
233
+ note: empty ? offer.note : null,
234
+ busy: settle(pressed, card) !== null
235
+ };
236
+ }
237
+ //#endregion
238
+ //#region ../../packages/ui/src/ticket/decision.ts
239
+ var none = {
240
+ title: null,
241
+ lead: null,
242
+ go: null,
243
+ move: null,
244
+ accept: null
245
+ };
246
+ /**
247
+ * Fix it on a card whose QA failed, read off one snapshot's stages. One press is the consent for both
248
+ * runs (owner question 12), so the label names both. Null on every other card, and on a board with no
249
+ * Implement column to go back to.
250
+ */
251
+ function fixItOf(card, stages) {
252
+ if (card.state !== "ready" || card.verdict !== "FAIL") return null;
253
+ const qa = stages.find((stage) => stage.id === card.stage);
254
+ const implement = stages.find((stage) => stage.starts?.phase === "implement");
255
+ if (qa?.starts?.phase !== "qa" || implement === void 0) return null;
256
+ const own = (stage) => ({
257
+ ...stage,
258
+ starts: cardStarts(stage, card)
259
+ });
260
+ return {
261
+ label: `Fix it: run ${implement.label} again with this reason, then ${qa.label}`,
262
+ implement: own(implement),
263
+ qa: own(qa)
264
+ };
265
+ }
266
+ /**
267
+ * Send back with comments, read off one snapshot's stages and the card's open comment count. The
268
+ * server's rule: a ready or idle card in Implement or after it, short of the last column, with at
269
+ * least one open comment. Null on every other card, and on a board with no Implement column.
270
+ */
271
+ function sendBackOf(card, stages, open) {
272
+ if (!(open > 0) || card.state !== "ready" && card.state !== "idle") return null;
273
+ const from = stages.findIndex((stage) => stage.starts?.phase === "implement");
274
+ const at = stages.findIndex((stage) => stage.id === card.stage);
275
+ const implement = stages[from];
276
+ if (implement === void 0 || at < from || at === stages.length - 1) return null;
277
+ return {
278
+ label: `Send back to ${implement.label} with ${open} ${open === 1 ? "comment" : "comments"}`,
279
+ implement: {
280
+ ...implement,
281
+ starts: cardStarts(implement, card)
282
+ },
283
+ count: open
284
+ };
285
+ }
286
+ /**
287
+ * The next decision on a card. `next` is the stage one column on and `retry` the card's own stage,
288
+ * both with the card's own models over the stage's. A start is amber (owner question 3), and only a
289
+ * card that waits on nobody gets one: a run in progress and a question offer none. A QA FAIL offers
290
+ * `fix`, Fix it, when the board has one. Open diff comments (`back`) make Send back with comments the
291
+ * start, with the next step plain beside it. `since` is when a blocked card started to wait, as the
292
+ * page says a time ("15:02"), or null when the page has none.
293
+ */
294
+ function decisionOf(card, stage, next, retry, live, fix = null, back = null, since = null) {
295
+ if (card.state === "queued" && card.runState === "waiting_review") return {
296
+ ...none,
297
+ kind: "queued",
298
+ title: "Waits for Knowledge",
299
+ lead: `${stage} writes knowledge, so it starts by itself once no change waits on Knowledge and no other knowledge run is going. Apply or return what waits there.`,
300
+ link: {
301
+ label: "Open Knowledge",
302
+ href: "/knowledge"
303
+ }
304
+ };
305
+ if (card.state === "queued") {
306
+ const lane = card.runState === "waiting_lane" && card.lane !== null ? card.lane : null;
307
+ return {
308
+ ...none,
309
+ kind: "queued",
310
+ title: `${stage} waits to start`,
311
+ lead: lane === null ? "It starts when a slot is free." : `It waits for the ${lane.charAt(0).toUpperCase()}${lane.slice(1)} lane.`
312
+ };
313
+ }
314
+ if (card.state === "running") {
315
+ if (live !== null && live.quiet !== null) return {
316
+ ...none,
317
+ kind: "quiet",
318
+ title: `${stage} has printed nothing for ${live.quiet}`,
319
+ lead: "The run goes on. Stop it if it looks stuck."
320
+ };
321
+ const said = card.runState === "retrying" ? "It waits to try again after an API error." : live?.line == null ? null : live.since === null ? live.line : `${live.line} · ${live.since}`;
322
+ return {
323
+ ...none,
324
+ kind: "running",
325
+ title: `${stage} is running`,
326
+ lead: said
327
+ };
328
+ }
329
+ if (card.state === "blocked") return {
330
+ ...none,
331
+ kind: "asks",
332
+ title: "The agent is waiting for you",
333
+ lead: `${stage} stopped${since === null ? "" : ` at ${since}`} with one question. Nothing runs until you answer.`
334
+ };
335
+ if (card.state === "failed") {
336
+ const failed = {
337
+ ...none,
338
+ title: `${stage} failed`,
339
+ lead: card.failureReason
340
+ };
341
+ return retry === null ? {
342
+ ...failed,
343
+ kind: "failed"
344
+ } : {
345
+ ...failed,
346
+ kind: "retry",
347
+ go: {
348
+ label: `Retry ${retry.label}`,
349
+ stage: retry,
350
+ to: null
351
+ }
352
+ };
353
+ }
354
+ if (card.state === "ready" && card.verdict === "FAIL") {
355
+ const accept = next !== null && next.starts === null ? {
356
+ label: `Accept anyway, move to ${next.label}`,
357
+ to: next.id
358
+ } : null;
359
+ const go = fix === null ? null : {
360
+ label: fix.label,
361
+ stage: fix.implement,
362
+ to: null,
363
+ then: fix.qa
364
+ };
365
+ return {
366
+ ...none,
367
+ kind: "qa-failed",
368
+ go,
369
+ accept
370
+ };
371
+ }
372
+ if (back !== null) return {
373
+ ...none,
374
+ kind: "send-back",
375
+ go: {
376
+ label: back.label,
377
+ stage: back.implement,
378
+ to: null,
379
+ back: true
380
+ },
381
+ instead: next === null ? null : {
382
+ label: `Move to ${next.label} instead`,
383
+ to: next.id
384
+ }
385
+ };
386
+ if (card.state === "idle" && retry !== null) return {
387
+ ...none,
388
+ kind: "retry",
389
+ title: `${stage} was stopped`,
390
+ lead: "Nothing runs on this card now.",
391
+ go: {
392
+ label: `Start ${retry.label} again`,
393
+ stage: retry,
394
+ to: null
395
+ },
396
+ instead: next === null ? null : {
397
+ label: `Move to ${next.label} instead`,
398
+ to: next.id
399
+ }
400
+ };
401
+ if (next === null) return {
402
+ ...none,
403
+ kind: "closed"
404
+ };
405
+ if (next.starts === null) return {
406
+ ...none,
407
+ kind: "move",
408
+ move: {
409
+ label: `Move to ${next.label}`,
410
+ to: next.id
411
+ }
412
+ };
413
+ return {
414
+ ...none,
415
+ kind: "start",
416
+ go: {
417
+ label: card.state === "ready" ? `Approve and start ${next.label}` : `Start ${next.label}`,
418
+ stage: next,
419
+ to: next.id
420
+ }
421
+ };
422
+ }
423
+ //#endregion
424
+ //#region src/lib/board-page.ts
425
+ function allowedFor(board, card) {
426
+ return (stage) => {
427
+ if (card === null || !canMove(board, card, stage)) return false;
428
+ const index = (id) => board.stages.findIndex((one) => one.id === id);
429
+ return index(stage) > index(card.stage) ? "forward" : "back";
430
+ };
431
+ }
432
+ var NOUNS = {
433
+ epics: ["epic", "epics"],
434
+ prreview: ["pull request", "pull requests"]
435
+ };
436
+ function boardCount(snapshot, kind) {
437
+ const open = openCards(snapshot);
438
+ if (kind === "prreview") {
439
+ const pulls = open.filter((card) => card.pull?.ended === void 0);
440
+ const repos = [...new Set(pulls.flatMap((card) => card.key.includes("#") ? [card.key.slice(0, card.key.lastIndexOf("#"))] : []))];
441
+ return repos.length === 0 ? `${pulls.length} open` : `${pulls.length} open · ${wordList(repos)}`;
442
+ }
443
+ const line = countLine(open.length, kind);
444
+ if (kind !== "epics") return line;
445
+ const tasks = open.reduce((sum, card) => sum + (card.tasks?.length ?? 0), 0);
446
+ return tasks === 0 ? line : `${line} · ${tasks} ${tasks === 1 ? "task" : "tasks"} on Delivery`;
447
+ }
448
+ var wordList = (words) => words.length < 2 ? words.join("") : `${words.slice(0, -1).join(", ")} and ${words.at(-1)}`;
449
+ var openCards = (snapshot) => {
450
+ const archive = new Set(snapshot.stages.filter((stage) => stage.role === "archive").map((stage) => stage.id));
451
+ return snapshot.cards.filter((card) => !archive.has(card.stage));
452
+ };
453
+ function openCount(snapshot) {
454
+ return openCards(snapshot).length;
455
+ }
456
+ function countLine(n, kind) {
457
+ const [one, many] = NOUNS[kind] ?? ["card", "cards"];
458
+ return `${n} ${n === 1 ? one : many}`;
459
+ }
460
+ function stageBack(board, card) {
461
+ const before = board.stages[board.stages.findIndex((stage) => stage.id === card.stage) - 1];
462
+ return before !== void 0 && allowedFor(board, card)(before.id) === "back" ? before.id : null;
463
+ }
464
+ function stageBefore(board, stage) {
465
+ return board.stages[board.stages.findIndex((one) => one.id === stage) - 1]?.id ?? null;
466
+ }
467
+ function stageForward(snapshot, key) {
468
+ const card = snapshot.cards.find((found) => found.key === key);
469
+ if (card === void 0) return null;
470
+ const board = boardFor(snapshot.kind, snapshot.flow);
471
+ const after = board.stages[board.stages.findIndex((stage) => stage.id === card.stage) + 1];
472
+ const stage = after === void 0 || allowedFor(board, card)(after.id) !== "forward" ? void 0 : snapshot.stages.find((one) => one.id === after.id);
473
+ return stage === void 0 ? null : {
474
+ ...stage,
475
+ starts: cardStarts(stage, card)
476
+ };
477
+ }
478
+ function keyWrite(snapshot, key, action) {
479
+ const card = snapshot.cards.find((found) => found.key === key);
480
+ if (card === void 0) return null;
481
+ if (action === "forward") {
482
+ const stage = stageForward(snapshot, key);
483
+ if (stage === null) return null;
484
+ const next = keyStart(stage);
485
+ if (next.kind === "refused") return {
486
+ kind: "refused",
487
+ refusal: {
488
+ ...next.refusal,
489
+ stage: stage.label
490
+ },
491
+ at: stage.id
492
+ };
493
+ return next.kind === "ask" ? {
494
+ kind: "ask",
495
+ move: stage.id
496
+ } : {
497
+ kind: "send",
498
+ to: "/api/board/move",
499
+ body: {
500
+ key,
501
+ to: stage.id
502
+ }
503
+ };
504
+ }
505
+ if (action === "minimize") return {
506
+ kind: "send",
507
+ to: "/api/board/minimize",
508
+ body: {
509
+ key,
510
+ minimized: !card.minimized
511
+ }
512
+ };
513
+ if (action === "promote") return card.state === "queued" && card.runId !== null ? {
514
+ kind: "send",
515
+ to: "/api/board/promote",
516
+ body: { runId: card.runId }
517
+ } : null;
518
+ if (action === "stop") {
519
+ const run = runView(card, null);
520
+ return run?.kind === "stop" ? {
521
+ kind: "send",
522
+ to: "/api/board/stop",
523
+ body: { runId: run.runId }
524
+ } : null;
525
+ }
526
+ const fix = fixItOf(card, snapshot.stages);
527
+ if (fix !== null) {
528
+ for (const run of [fix.implement, fix.qa]) {
529
+ const next = keyStart(run);
530
+ if (next.kind === "refused") return {
531
+ ...next,
532
+ at: run.id
533
+ };
534
+ }
535
+ return { kind: "ask" };
536
+ }
537
+ const stage = retryStage(snapshot, key);
538
+ if (stage === null) return null;
539
+ const next = keyStart(stage);
540
+ if (next.kind === "refused") return {
541
+ ...next,
542
+ at: stage.id
543
+ };
544
+ return next.kind === "send" ? {
545
+ kind: "send",
546
+ to: "retry",
547
+ body: {}
548
+ } : next;
549
+ }
550
+ function confirmStage(snapshot, starting) {
551
+ if (starting.move === null) return retryStage(snapshot, starting.key) ?? confirmFix(snapshot, starting)?.implement ?? null;
552
+ const next = stageForward(snapshot, starting.key);
553
+ return next?.id === starting.move ? next : null;
554
+ }
555
+ function confirmFix(snapshot, starting) {
556
+ const card = snapshot.cards.find((found) => found.key === starting.key);
557
+ return starting.move !== null || card === void 0 ? null : fixItOf(card, snapshot.stages);
558
+ }
559
+ function boardKind(name) {
560
+ return isBoardKind(name) ? name : null;
561
+ }
562
+ async function sendMove(send, url, key, to) {
563
+ const said = await postWrite(send, url, {
564
+ key,
565
+ to
566
+ });
567
+ return said === null ? null : refusalFromServer(said);
568
+ }
569
+ function pullsAddress(base, kind) {
570
+ if (kind === "prreview") return base;
571
+ return kind === "delivery" ? `${base}?board=delivery` : null;
572
+ }
573
+ async function readPullsSaid(send, url) {
574
+ try {
575
+ const response = await send(url, { method: "POST" });
576
+ const said = await response.json().catch(() => ({}));
577
+ return said.said ?? said.message ?? `The pull requests were not read. The board answered ${response.status} and gave no reason.`;
578
+ } catch {
579
+ return "The board could not be reached. Check that Nolzu is still running.";
580
+ }
581
+ }
582
+ function isBoardRoute(id) {
583
+ return id === "/b/[board]";
584
+ }
585
+ async function postCard(send, url, payload) {
586
+ try {
587
+ const response = await send(url, {
588
+ method: "POST",
589
+ headers: { "content-type": "application/json" },
590
+ body: JSON.stringify(payload)
591
+ });
592
+ const said = await response.json().catch(() => ({}));
593
+ if (!response.ok || said.key === void 0) return {
594
+ ok: false,
595
+ reason: said.message ?? `The card was not made. The board answered ${response.status} and gave no reason.`
596
+ };
597
+ return {
598
+ ok: true,
599
+ key: said.key,
600
+ note: said.note ?? null,
601
+ ...said.refused === void 0 ? {} : { refused: said.refused }
602
+ };
603
+ } catch {
604
+ return {
605
+ ok: false,
606
+ reason: "The board could not be reached. Check that Nolzu is still running."
607
+ };
608
+ }
609
+ }
610
+ function researchCard(text, board) {
611
+ const link = ticketLink(text);
612
+ return link?.system === "github" && !link.pull ? {
613
+ input: text.trim(),
614
+ board
615
+ } : {
616
+ input: "",
617
+ title: text.trim(),
618
+ board
619
+ };
620
+ }
621
+ async function postJira(send, url, form) {
622
+ try {
623
+ const response = await send(url, {
624
+ method: "POST",
625
+ headers: { "content-type": "application/json" },
626
+ body: JSON.stringify(form)
627
+ });
628
+ if (response.ok) return { ok: true };
629
+ return {
630
+ ok: false,
631
+ reason: (await response.json().catch(() => ({}))).message ?? `Jira was not connected. Nolzu answered ${response.status} and gave no reason.`
632
+ };
633
+ } catch {
634
+ return {
635
+ ok: false,
636
+ reason: "Nolzu could not be reached. Check that it is still running."
637
+ };
638
+ }
639
+ }
640
+ async function nextKey(send, url) {
641
+ try {
642
+ const response = await send(url);
643
+ return response.ok ? (await response.json()).key ?? null : null;
644
+ } catch {
645
+ return null;
646
+ }
647
+ }
648
+ function addRequest(asked, snapshot) {
649
+ if (asked.start !== true) return {
650
+ payload: asked,
651
+ start: null
652
+ };
653
+ const stage = snapshot?.stages[1];
654
+ const refusal = stage === void 0 ? null : refuseDrop(stage, "forward");
655
+ const start = stage === void 0 || stage.starts === null ? null : {
656
+ stage,
657
+ refusal: refusal === null ? null : {
658
+ ...refusal,
659
+ stage: stage.label
660
+ }
661
+ };
662
+ if (start !== null && start.refusal === null) return {
663
+ payload: asked,
664
+ start
665
+ };
666
+ const { start: _, ...payload } = asked;
667
+ return {
668
+ payload,
669
+ start
670
+ };
671
+ }
672
+ function addOrHold(asked, snapshot, gates) {
673
+ const asks = addRequest(asked, snapshot);
674
+ if (!gates || asks.start === null || asks.start.refusal !== null) return {
675
+ ...asks,
676
+ held: null
677
+ };
678
+ const { start: _, ...payload } = asks.payload;
679
+ return {
680
+ payload,
681
+ start: null,
682
+ held: asks.start.stage.id
683
+ };
684
+ }
685
+ function addedOf(made, snapshot, start) {
686
+ const first = snapshot?.stages[0]?.label ?? "the first column";
687
+ if (start === null) return {
688
+ key: made.key,
689
+ note: made.note,
690
+ column: first,
691
+ refusal: null,
692
+ at: null
693
+ };
694
+ const refusal = start.refusal ?? (made.refused === void 0 ? null : refusalFromServer(made.refused));
695
+ return {
696
+ key: made.key,
697
+ note: made.note,
698
+ column: refusal === null ? start.stage.label : first,
699
+ refusal,
700
+ at: start.refusal === null ? null : start.stage.id
701
+ };
702
+ }
703
+ function addedToast(state, card, added, link) {
704
+ if (added.refusal === null) return cardAdded(state, card, added.column, added.note);
705
+ return refusedDrop(state, card, added.refusal, added.at === null ? void 0 : link);
706
+ }
707
+ async function contextCards(send, url) {
708
+ try {
709
+ const response = await send(url);
710
+ return response.ok ? await response.json() : [];
711
+ } catch {
712
+ return [];
713
+ }
714
+ }
715
+ var NO_TOASTS = {
716
+ toasts: [],
717
+ press: 0,
718
+ latest: {}
719
+ };
720
+ var CARD_LINK = "Open card settings";
721
+ var refusalToast = (card, refusal, link) => ({
722
+ kind: "error",
723
+ refused: true,
724
+ card,
725
+ ...refusal.stage === void 0 ? {} : { headline: `did not move to ${refusal.stage}` },
726
+ message: refusal.message,
727
+ ...refusal.code === void 0 ? {} : { code: refusal.code },
728
+ fix: refusalFix(refusal, link),
729
+ ...link === void 0 ? {} : { link }
730
+ });
731
+ function refusalFix(refusal, link) {
732
+ return link === void 0 || refusal.act === void 0 ? refusal.fix : `${refusal.act} in ${link.label === CARD_LINK ? "the card settings" : "Settings, Models"}.`;
733
+ }
734
+ function fixLink(snapshot, key, stage, hrefs) {
735
+ const project = snapshot.stages.find((found) => found.id === stage)?.starts ?? null;
736
+ const own = project === null ? void 0 : snapshot.cards.find((found) => found.key === key)?.starts?.[project.phase];
737
+ return own !== void 0 && project !== null && (own.engine !== project.engine || own.model !== project.model || own.effort !== project.effort) ? {
738
+ label: CARD_LINK,
739
+ href: hrefs.card
740
+ } : {
741
+ label: "Open Settings, Models",
742
+ href: hrefs.models
743
+ };
744
+ }
745
+ /**
746
+ * What the Next step block needs besides the card, read off one snapshot, so the panel, its button and
747
+ * the pill never show two moments. The card page and the peek both call it, so they offer one step.
748
+ * Null for a card the snapshot does not hold.
749
+ */
750
+ function nextStepOf(snapshot, key, openComments, hrefs) {
751
+ const forward = forwardMove(snapshot, key);
752
+ if (forward === null) return null;
753
+ const { card, next } = forward;
754
+ const retry = retryStage(snapshot, key);
755
+ const to = stageBack(boardFor(snapshot.kind, snapshot.flow), card);
756
+ const back = to === null ? null : {
757
+ to,
758
+ label: snapshot.stages.find((one) => one.id === to)?.label ?? to
759
+ };
760
+ const fixIt = fixItOf(card, snapshot.stages);
761
+ const sendBack = sendBackOf(card, snapshot.stages, openComments);
762
+ const go = fixIt?.implement ?? (card.state === "failed" ? retry : sendBack?.implement ?? retry ?? next);
763
+ const refused = [go, fixIt?.qa ?? null].find((stage) => stage !== null && refuseDrop(stage, "forward") !== null) ?? null;
764
+ const refusal = refused === null ? null : refuseDrop(refused, "forward");
765
+ let fix = null;
766
+ if (refused !== null && refusal !== null) {
767
+ const link = fixLink(snapshot, key, refused.id, hrefs);
768
+ fix = {
769
+ text: refusalFix(refusal, link),
770
+ label: link.label,
771
+ href: link.href
772
+ };
773
+ }
774
+ return {
775
+ card,
776
+ next,
777
+ retry,
778
+ back,
779
+ fixIt,
780
+ sendBack,
781
+ go,
782
+ fix
783
+ };
784
+ }
785
+ function pressed(state, key) {
786
+ const press = state.press + 1;
787
+ return {
788
+ toasts: dropToast(state.toasts, key),
789
+ press,
790
+ latest: {
791
+ ...state.latest,
792
+ [key]: press
793
+ }
794
+ };
795
+ }
796
+ function refusedDrop(state, card, refusal, link) {
797
+ const press = state.press + 1;
798
+ return {
799
+ toasts: pushToast(state.toasts, refusalToast(card, refusal, link)),
800
+ press,
801
+ latest: {
802
+ ...state.latest,
803
+ [card.key]: press
804
+ }
805
+ };
806
+ }
807
+ function answered(state, press, card, said) {
808
+ if (said === null || state.latest[card.key] !== press) return state;
809
+ return {
810
+ ...state,
811
+ toasts: pushToast(state.toasts, refusalToast(card, said))
812
+ };
813
+ }
814
+ function cardAdded(state, card, column, note) {
815
+ return {
816
+ ...state,
817
+ toasts: pushToast(state.toasts, {
818
+ kind: "success",
819
+ card,
820
+ message: `added to ${column}.`,
821
+ fix: note
822
+ })
823
+ };
824
+ }
825
+ function keyCopied(state, card, copied) {
826
+ const toast = copied ? {
827
+ kind: "success",
828
+ card,
829
+ message: "copied to the clipboard.",
830
+ fix: null
831
+ } : {
832
+ kind: "error",
833
+ card,
834
+ message: "not copied. The browser did not allow the clipboard.",
835
+ fix: "Select the key on the card and copy it from there."
836
+ };
837
+ return {
838
+ ...state,
839
+ toasts: pushToast(state.toasts, toast)
840
+ };
841
+ }
842
+ function dismissed(state, key) {
843
+ return {
844
+ ...state,
845
+ toasts: dropToast(state.toasts, key)
846
+ };
847
+ }
848
+ function filterOn(url) {
849
+ return url.searchParams.get("w") === "1";
850
+ }
851
+ function filterQuery(url, on) {
852
+ const params = new URLSearchParams(url.searchParams);
853
+ if (on) params.set("w", "1");
854
+ else params.delete("w");
855
+ const query = params.toString();
856
+ return query === "" ? "" : `?${query}`;
857
+ }
858
+
859
+ export { nextStepOf as A, stageBefore as B, pressed as C, answered as D, boardCount as E, pullsAddress as F, readPullsSaid as G, allowedFor as H, postCard as I, researchCard as J, cardAdded as K, keyCopied as L, sendMove as M, NO_TOASTS as N, addOrHold as O, addedOf as P, postJira as Q, RUNS_HERE as R, nextKey as S, contextCards as T, confirmStage as U, confirmFix as V, addedToast as W, sendBackOf as X, stageForward as a, boardKind as b, chainTarget as c, dropTarget as d, stageBack as e, fixItOf as f, filterQuery as g, filterOn as h, isBoardRoute as i, countLine as j, splitCode as k, dismissed as l, keyWrite as m, nearLimits as n, openCount as o, fixLink as p, decisionOf as q, runLine as r, startsCommand as s, toastLife as t, refuseDrop as u, settle as v, runView as w, runOnView as x, refusedDrop as y, refusalFromServer as z };
860
+ //# sourceMappingURL=board-page.js-D0tdsE9J.js.map