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,203 @@
1
+ import { E as ENGINE_LABELS } from './engine.js-DS5zUwsE.js';
2
+
3
+ //#region ../../packages/protocol/src/board.ts
4
+ var BOARD_KINDS = [
5
+ "delivery",
6
+ "epics",
7
+ "investigations",
8
+ "questions",
9
+ "prreview"
10
+ ];
11
+ var isBoardKind = (value) => BOARD_KINDS.includes(value);
12
+ var BOARD_LABELS = {
13
+ delivery: "Delivery",
14
+ epics: "Epics",
15
+ investigations: "Investigations",
16
+ questions: "Questions",
17
+ prreview: "PR reviews"
18
+ };
19
+ var RESEARCH_KINDS = ["questions", "investigations"];
20
+ var isResearchKind = (kind) => RESEARCH_KINDS.includes(kind);
21
+ var RESEARCH_KIND_LABELS = {
22
+ questions: "Question",
23
+ investigations: "Investigation"
24
+ };
25
+ var RESEARCH_REPORTS = {
26
+ questions: "research/answer.md",
27
+ investigations: "investigate/report.md"
28
+ };
29
+ var RESEARCH_PREFIXES = {
30
+ questions: "Q",
31
+ investigations: "INV"
32
+ };
33
+ var keyPrefixFor = (board, projectPrefix) => isResearchKind(board) ? RESEARCH_PREFIXES[board] : projectPrefix;
34
+ var choiceOf = (kind) => isResearchKind(kind) ? "research" : kind;
35
+ var choiceLabel = (choice) => choice === "research" ? "Research" : BOARD_LABELS[choice];
36
+ var choicesOf = (kinds) => [...new Set(kinds.map(choiceOf))];
37
+ var CARD_STATES = [
38
+ "idle",
39
+ "queued",
40
+ "running",
41
+ "ready",
42
+ "blocked",
43
+ "failed"
44
+ ];
45
+ var CARD_SIZES = [
46
+ "small",
47
+ "medium",
48
+ "large"
49
+ ];
50
+ var isCardSize = (value) => CARD_SIZES.includes(value);
51
+ var DELIVERY_PHASES = [
52
+ "refine",
53
+ "plan",
54
+ "implement",
55
+ "qa",
56
+ "wrapup",
57
+ "architecture",
58
+ "design",
59
+ "investigate",
60
+ "research",
61
+ "pr-review",
62
+ "feedback"
63
+ ];
64
+ var PHASE_LABELS = {
65
+ refine: "Refine",
66
+ plan: "Plan",
67
+ implement: "Implement",
68
+ qa: "QA",
69
+ wrapup: "Wrap-up",
70
+ optimize: "Optimize",
71
+ orient: "Learn this project",
72
+ "learn-repo": "Learn your repositories",
73
+ "extract-summary": "Plain summary",
74
+ "commit-message": "Commit message",
75
+ "thread-title": "Discussion subject",
76
+ architecture: "Architecture",
77
+ design: "Design",
78
+ mockups: "Mockups",
79
+ investigate: "Investigate",
80
+ research: "Research",
81
+ "pr-review": "PR review",
82
+ feedback: "Triage",
83
+ assess: "Assessment",
84
+ ask: "Ask"
85
+ };
86
+ var PHASE_HELP = {
87
+ refine: "Turns a rough ticket into a brief with acceptance checks. On Delivery and Epics.",
88
+ plan: "Writes the numbered plan and the QA checks before any code. On Delivery and Epics.",
89
+ implement: "Makes the change in the card's checkout and writes the pull request text. On Delivery.",
90
+ qa: "Runs the project's checks against the brief and ends with a verdict. On Delivery.",
91
+ wrapup: "Adds what a finished card taught to the knowledge files. Near the end of most boards.",
92
+ architecture: "Decides the shape of an epic: its pieces, data and decisions. On Epics.",
93
+ design: "Draws the screens an epic changes as HTML pages. On Epics.",
94
+ investigate: "Reads the code and logs to find what caused a problem. On Research, for an Investigation.",
95
+ research: "Answers a question from the repository and the project's documents. On Research, for a Question.",
96
+ "pr-review": "Reviews a pull request and writes findings with file and line. On PR reviews.",
97
+ feedback: "Triages the comments on a card's pull request and drafts replies. From its PRs tab.",
98
+ optimize: "Rewrites one knowledge file shorter and truer. Runs from the Optimize button on Knowledge.",
99
+ orient: "Reads the project's docs, asks you a few questions, and writes knowledge you review. On Knowledge.",
100
+ "learn-repo": "Writes how to run a repository and the rules its code keeps. On Knowledge.",
101
+ assess: "Reads one Scout finding against the code and writes what is behind it. On Scout.",
102
+ ask: "Answers your question about a card in a read-only session. From a card's Discussion tab.",
103
+ "extract-summary": "Writes the plain summary after a run, commit messages and Ask discussion subjects."
104
+ };
105
+ var PHASE_INSTRUCTION_HELP = {
106
+ refine: {
107
+ writes: "It writes refine/refined.md in the card folder.",
108
+ use: "Good for what every brief must cover.",
109
+ example: "Name the user role behind each acceptance check."
110
+ },
111
+ plan: {
112
+ writes: "It writes plan/plan.md and qa/checks.md.",
113
+ use: "Good for parts your team wants in every plan.",
114
+ example: "Add a Risks section to plan.md."
115
+ },
116
+ implement: {
117
+ writes: "It writes the code, implement/pr.md and implement/deviations.md.",
118
+ use: "Good for code rules your repository docs do not say.",
119
+ example: "Add a CHANGELOG line for every change a user can see."
120
+ },
121
+ qa: {
122
+ writes: "It writes qa/report.md with the verdict.",
123
+ use: "Good for checks QA must always run.",
124
+ example: "Always open each changed page at 390px wide."
125
+ },
126
+ wrapup: {
127
+ writes: "It writes to the knowledge files and wrapup/changes.md.",
128
+ use: "Good for what is worth keeping.",
129
+ example: "Keep what helps the next card, not the story of this one."
130
+ },
131
+ architecture: {
132
+ writes: "It writes architecture/architecture.md.",
133
+ use: "Good for the decisions your team wants on paper.",
134
+ example: "Name every new database table and the service that owns it."
135
+ },
136
+ design: {
137
+ writes: "It writes one HTML page per screen and design/design.md.",
138
+ use: "Good for the look and the parts to reuse.",
139
+ example: "Reuse the buttons and colours of the settings pages."
140
+ },
141
+ investigate: {
142
+ writes: "It writes investigate/report.md.",
143
+ use: "Good for where to look first.",
144
+ example: "Read the newest logs in logs/ before the code."
145
+ },
146
+ research: {
147
+ writes: "It writes research/answer.md.",
148
+ use: "Good for the sources to trust and the shape of the answer.",
149
+ example: "Start the answer with a one line yes or no."
150
+ },
151
+ "pr-review": {
152
+ writes: "It writes a round of findings, each with a file and a line.",
153
+ use: "Good for what reviews in your team care about.",
154
+ example: "Flag every new database query that has no index."
155
+ },
156
+ feedback: {
157
+ writes: "It writes feedback/triage.md with the draft replies.",
158
+ use: "Good for the tone of the replies.",
159
+ example: "Keep each reply under three sentences."
160
+ },
161
+ optimize: {
162
+ writes: "It writes the shorter knowledge file and optimize/changes.md.",
163
+ use: "Good for what must never be cut.",
164
+ example: "Never drop a command from run-recipe.md."
165
+ },
166
+ orient: {
167
+ writes: "It writes the first knowledge files and orient/changes.md.",
168
+ use: "Good for the documents to read first.",
169
+ example: "Read docs/architecture.md before the README."
170
+ },
171
+ "learn-repo": {
172
+ writes: "It writes the repository's knowledge file and learn-repo/changes.md.",
173
+ use: "Good for the files to read in each repository.",
174
+ example: "Read the Makefile before package.json."
175
+ },
176
+ assess: {
177
+ writes: "It writes assess/assessment.md.",
178
+ use: "Good for what makes a finding matter in this project.",
179
+ example: "Say whether the finding touches billing code."
180
+ },
181
+ ask: {
182
+ writes: "It writes no file, only the answer.",
183
+ use: "Good for how the answers read.",
184
+ example: "Answer in Spanish, and keep file names as they are."
185
+ }
186
+ };
187
+ var PASSES = [
188
+ "extract-summary",
189
+ "commit-message",
190
+ "thread-title"
191
+ ];
192
+ var isPass = (phase) => PASSES.includes(phase);
193
+ var phaseLabel = (phase) => PHASE_LABELS[phase] ?? phase;
194
+ var PRESET_LABELS = {
195
+ light: "Light",
196
+ default: "Balanced",
197
+ heavy: "Heavy"
198
+ };
199
+ var presetLabel = (preset) => PRESET_LABELS[preset] ?? preset;
200
+ var presetTitle = (preset, engine) => engine === null ? presetLabel(preset) : `${presetLabel(preset)} on ${ENGINE_LABELS[engine]}`;
201
+
202
+ export { BOARD_LABELS as B, CARD_STATES as C, DELIVERY_PHASES as D, PASSES as P, RESEARCH_KINDS as R, isResearchKind as a, isPass as b, RESEARCH_PREFIXES as c, PHASE_LABELS as d, presetLabel as e, RESEARCH_REPORTS as f, BOARD_KINDS as g, isCardSize as h, isBoardKind as i, choicesOf as j, keyPrefixFor as k, choiceLabel as l, choiceOf as m, RESEARCH_KIND_LABELS as n, PHASE_HELP as o, phaseLabel as p, presetTitle as q, PHASE_INSTRUCTION_HELP as r };
203
+ //# sourceMappingURL=board.js-BxL3CjB1.js.map
@@ -0,0 +1,170 @@
1
+ import { bK as walledCommand, X as mcpConfigProblem, bL as HIDDEN_FOR_EVERY_RUN, bM as HIDDEN_ON, bN as ENGINE_WALLS } from './src3.js-h9tTEbVb.js';
2
+ import { mkdtempSync, writeFileSync, rmSync, readFileSync } from 'node:fs';
3
+ import { join } from 'node:path';
4
+ import { tmpdir, homedir } from 'node:os';
5
+ import { spawn } from 'node:child_process';
6
+
7
+ //#region src/lib/browser-test.ts
8
+ /**
9
+ * The wall a server Nolzu starts itself runs in, as a run's wall leaves it: the temp folder is all that
10
+ * is writable outside a card's copy, and the logins, the browser profiles and the history files are
11
+ * hidden. The browser test and the MCP probe both start their server in it.
12
+ */
13
+ function serverWall() {
14
+ const home = homedir();
15
+ const system = process.platform === "linux" ? "linux" : "darwin";
16
+ const hidden = [
17
+ ...HIDDEN_FOR_EVERY_RUN,
18
+ ...HIDDEN_ON[system],
19
+ ...Object.values(ENGINE_WALLS).flatMap((row) => row.logins)
20
+ ].map((path) => join(home, path.slice(2)));
21
+ return {
22
+ writable: [tmpdir()],
23
+ hidden,
24
+ writeDenied: [],
25
+ envRoots: [],
26
+ envExceptions: []
27
+ };
28
+ }
29
+ var TIMEOUT_MS = 12e4;
30
+ var PROTOCOL = "2025-06-18";
31
+ function firstServer(path) {
32
+ const problem = mcpConfigProblem(path);
33
+ if (problem !== null) return problem;
34
+ try {
35
+ const servers = JSON.parse(readFileSync(path, "utf8")).mcpServers ?? {};
36
+ const server = Object.values(servers)[0];
37
+ if (typeof server?.command !== "string") return `The browser config at ${path} names no server with a command.`;
38
+ return {
39
+ command: server.command,
40
+ args: Array.isArray(server.args) ? server.args.map(String) : [],
41
+ env: server.env ?? {}
42
+ };
43
+ } catch {
44
+ return `The browser config at ${path} is not JSON the engine can read.`;
45
+ }
46
+ }
47
+ var tellingLine = (stderr) => {
48
+ const lines = stderr.split("\n").map((line) => line.trim()).filter((line) => line !== "");
49
+ const code = lines.find((line) => line.startsWith("npm error code "));
50
+ if (code !== void 0) {
51
+ const path = lines.find((line) => line.startsWith("npm error path "))?.slice(10);
52
+ return path === void 0 ? code : `${code} (${path})`;
53
+ }
54
+ return lines.find((line) => /Error:/.test(line)) ?? lines.at(-1) ?? "";
55
+ };
56
+ var firstLine = (text) => text.split("\n").map((line) => line.trim()).find((line) => line !== "" && !line.startsWith("#")) ?? "";
57
+ async function testBrowser(configPath, options = {}) {
58
+ const server = firstServer(configPath);
59
+ if (typeof server === "string") return {
60
+ passed: false,
61
+ said: server
62
+ };
63
+ const folder = mkdtempSync(join(tmpdir(), "nolzu-browser-test-"));
64
+ const page = join(folder, "page.html");
65
+ writeFileSync(page, "<!doctype html><title>Nolzu browser test</title><p>The browser works.</p>\n");
66
+ const walled = (options.wall ?? walledCommand)(serverWall(), server.command, server.args);
67
+ const outside = "refused" in walled ? walled.refused : null;
68
+ const command = "refused" in walled ? {
69
+ command: server.command,
70
+ args: server.args
71
+ } : walled;
72
+ const started = Date.now();
73
+ const child = (options.spawn ?? spawn)(command.command, command.args, {
74
+ cwd: folder,
75
+ detached: true,
76
+ env: {
77
+ ...process.env,
78
+ ...server.env
79
+ },
80
+ stdio: [
81
+ "pipe",
82
+ "pipe",
83
+ "pipe"
84
+ ]
85
+ });
86
+ let stderr = "";
87
+ child.stderr?.on("data", (chunk) => stderr = `${stderr}${chunk.toString()}`.slice(-8e3));
88
+ const send = (message) => child.stdin?.write(`${JSON.stringify(message)}\n`);
89
+ child.stdin?.on("error", () => {});
90
+ const answer = await new Promise((done) => {
91
+ const fail = (why) => done({
92
+ passed: false,
93
+ said: `The browser did not open a page: ${why}`
94
+ });
95
+ const timer = setTimeout(() => fail(`no answer in ${Math.ceil((options.timeoutMs ?? TIMEOUT_MS) / 1e3)} s.${stderr.trim() === "" ? "" : ` ${tellingLine(stderr)}`}`), options.timeoutMs ?? TIMEOUT_MS);
96
+ const end = (result) => {
97
+ clearTimeout(timer);
98
+ if (typeof result === "string") fail(result);
99
+ else done(result);
100
+ };
101
+ child.on("error", (error) => end(error.message));
102
+ child.on("exit", (code) => end(tellingLine(stderr) || `the server stopped with exit code ${code ?? "none"} before it answered.`));
103
+ let buffer = "";
104
+ child.stdout?.on("data", (chunk) => {
105
+ buffer += chunk.toString();
106
+ let at;
107
+ while ((at = buffer.indexOf("\n")) >= 0) {
108
+ const line = buffer.slice(0, at).trim();
109
+ buffer = buffer.slice(at + 1);
110
+ let message;
111
+ try {
112
+ message = JSON.parse(line);
113
+ } catch {
114
+ continue;
115
+ }
116
+ if (message.error !== void 0 && (message.id === 1 || message.id === 2)) end(firstLine(message.error.message ?? "the server refused the call."));
117
+ else if (message.id === 1) {
118
+ send({
119
+ jsonrpc: "2.0",
120
+ method: "notifications/initialized"
121
+ });
122
+ send({
123
+ jsonrpc: "2.0",
124
+ id: 2,
125
+ method: "tools/call",
126
+ params: {
127
+ name: "browser_navigate",
128
+ arguments: { url: `file://${page}` }
129
+ }
130
+ });
131
+ } else if (message.id === 2) {
132
+ if (message.result?.isError) end(firstLine(message.result.content?.map((part) => part.text ?? "").join("\n") ?? "") || "the server refused to open the page.");
133
+ else {
134
+ const seconds = Math.max(1, Math.round((Date.now() - started) / 1e3));
135
+ end({
136
+ passed: true,
137
+ said: outside === null ? `The browser opened a page inside the wall in ${seconds} s.` : `The browser opened a page in ${seconds} s, outside the wall. ${outside}`
138
+ });
139
+ }
140
+ }
141
+ }
142
+ });
143
+ send({
144
+ jsonrpc: "2.0",
145
+ id: 1,
146
+ method: "initialize",
147
+ params: {
148
+ protocolVersion: PROTOCOL,
149
+ capabilities: {},
150
+ clientInfo: {
151
+ name: "nolzu",
152
+ version: "0"
153
+ }
154
+ }
155
+ });
156
+ });
157
+ const closed = new Promise((gone) => child.exitCode !== null || child.signalCode !== null ? gone(null) : child.once("close", gone));
158
+ try {
159
+ if (child.pid !== void 0) process.kill(-child.pid, "SIGKILL");
160
+ } catch {}
161
+ await Promise.race([closed, new Promise((wait) => setTimeout(wait, 5e3))]);
162
+ rmSync(folder, {
163
+ recursive: true,
164
+ force: true
165
+ });
166
+ return answer;
167
+ }
168
+
169
+ export { serverWall as s, testBrowser as t };
170
+ //# sourceMappingURL=browser-test.js-DJEpOoVz.js.map
@@ -0,0 +1,229 @@
1
+ import { ag as escape_html, am as ensure_array_like, ai as attr, ao as stringify, P as derived } from './server.js-BR0D07DR.js';
2
+ import { c as engineName, d as effortInModel, w as wallLabel } from './engine.js-DS5zUwsE.js';
3
+ import { f as formatCost, b as formatTokens, a as formatDuration } from './spend.js-BabnR69T.js';
4
+ import './src.js-Cm8RAH_q.js';
5
+ import { a as ago } from './peek.js-D9sSjT9t.js';
6
+
7
+ //#region ../../packages/ui/src/ticket/Ago.svelte
8
+ var FULL = new Intl.DateTimeFormat("en-GB", {
9
+ dateStyle: "full",
10
+ timeStyle: "short"
11
+ });
12
+ function Ago($$renderer, $$props) {
13
+ $$renderer.component(($$renderer) => {
14
+ let { at, now } = $$props;
15
+ const said = derived(() => ago(at, now, true));
16
+ const full = derived(() => Number.isNaN(Date.parse(at)) ? "" : FULL.format(new Date(at)));
17
+ if (said() !== null) $$renderer.push(`<!--[0--><time${attr("datetime", at)}${attr("title", full())}>${escape_html(said())}</time>`);
18
+ else $$renderer.push("<!--[-1-->");
19
+ $$renderer.push(`<!--]-->`);
20
+ });
21
+ }
22
+ //#endregion
23
+ //#region ../../packages/ui/src/pips.ts
24
+ function runWord(run) {
25
+ if (run.state === "complete") return run.question === null ? "done" : "asked a question";
26
+ if (run.state === "waiting_lane") return "waiting";
27
+ if (run.state === "waiting_review") return "waiting for Knowledge";
28
+ return run.state ?? "queued";
29
+ }
30
+ var noVerdict = (run) => run.phase === "qa" && run.state === "complete" && run.question === null && run.verdict === null;
31
+ function runSaid(run) {
32
+ if (run.verdict === "FAIL") return "failed";
33
+ return noVerdict(run) ? "gave no verdict" : runWord(run);
34
+ }
35
+ function pipOf(segment) {
36
+ const run = segment.run;
37
+ if (run === null) return "none";
38
+ if (run.state === "failed" || run.verdict === "FAIL") return "failed";
39
+ if (run.state === "running" || run.state === "retrying") return "now";
40
+ if (noVerdict(run)) return "none";
41
+ if (run.state === "complete") return run.question === null ? "done" : "asked";
42
+ return "none";
43
+ }
44
+ //#endregion
45
+ //#region ../../packages/ui/src/ticket/PhaseStrip.svelte
46
+ function PhaseStrip($$renderer, $$props) {
47
+ $$renderer.component(($$renderer) => {
48
+ let { strip, spend, logBase, moves = [], since = null, now = /* @__PURE__ */ new Date() } = $$props;
49
+ const movedInto = (phase) => moves.findLast((move) => move.phase === phase) ?? null;
50
+ const goneOn = (phase) => moves.findLast((move) => move.reason !== void 0 && move.from === phase) ?? null;
51
+ const WILL = {
52
+ refine: "rewrites the ticket so done is clear",
53
+ plan: "writes the steps and what QA will check",
54
+ implement: "changes the code in the checkout",
55
+ qa: "runs the checks the plan wrote",
56
+ wrapup: "writes what it learned"
57
+ };
58
+ const next = derived(() => strip.findIndex((segment, at) => segment.run === null && at > 0 && pipOf(strip[at - 1]) === "done"));
59
+ const mark = (segment, at) => at === next() ? "next" : pipOf(segment);
60
+ const newest = derived(() => strip.reduce((best, segment, at) => segment.run !== null && (best < 0 || segment.run.id > (strip[best]?.run?.id ?? 0)) ? at : best, -1));
61
+ const waits = (at) => since !== null && at === newest();
62
+ const tokenTitle = (run) => run.tokens === null ? "" : `${formatTokens(run.tokens.input + run.tokens.output)} tok: ${formatTokens(run.tokens.input)} in · ${formatTokens(run.tokens.output)} out · ${formatTokens(run.tokens.cacheRead)} cache read · ${formatTokens(run.tokens.cacheCreation)} cache written`;
63
+ const total = derived(() => spend);
64
+ const pending = (run) => run.state === null || run.state === "queued" || run.state === "waiting_lane" || run.state === "waiting_review" || run.state === "running" || run.state === "retrying";
65
+ const showsCost = (run) => run.costUsd !== null || pending(run);
66
+ const totalCost = derived(() => total().costUsd === null ? null : formatCost(total().costUsd));
67
+ const totalTime = derived(() => total().durationMs === 0 ? null : formatDuration(total().durationMs));
68
+ const rest = derived(() => [totalTime(), total().tokens === null ? null : `${formatTokens(total().tokens)} tok`].filter((one) => one !== null).join(" · "));
69
+ const heading = derived(() => totalCost() !== null || totalTime() !== null);
70
+ const coverage = derived(() => total().costUsd === null ? `No cost reported for ${total().runs} ${total().runs === 1 ? "run" : "runs"}.` : total().partial ? `The cost covers ${total().reported} of ${total().runs} runs.` : "");
71
+ const tokensOnly = derived(() => total().tokensOnly === 0 || total().costUsd === null ? "" : ` ${total().tokensOnly} of those ${total().tokensOnly === 1 ? "runs reports" : "runs report"} tokens only, no cost reported.`);
72
+ const note = derived(() => heading() ? `${coverage()}${tokensOnly()}`.trim() : "");
73
+ const detail = (run) => [
74
+ run.engine === void 0 ? null : engineName(run.engine),
75
+ run.model ?? "no model",
76
+ effortInModel(run.engine) ? null : run.effort ?? "no effort",
77
+ wallLabel(run.wall),
78
+ run.durationMs === null ? null : formatDuration(run.durationMs)
79
+ ].filter((one) => one !== null).join(" · ");
80
+ const failLine = (run) => ["FAIL", run.verdictReason ?? null].filter((one) => one !== null && one !== "").join(", ");
81
+ $$renderer.push(`<section class="strip svelte-1powdxq" aria-labelledby="trail"><div class="head svelte-1powdxq"><h2 class="label svelte-1powdxq" id="trail">Trail</h2> `);
82
+ if (heading()) {
83
+ $$renderer.push(`<!--[0--><p class="mono total svelte-1powdxq"><span class="hidden svelte-1powdxq">Total so far</span>`);
84
+ if (totalCost() !== null) $$renderer.push(`<!--[0--><span title="Estimated value">${escape_html(totalCost())} <span class="hidden svelte-1powdxq">estimated</span></span>`);
85
+ else $$renderer.push("<!--[-1-->");
86
+ $$renderer.push(`<!--]-->${escape_html(totalCost() !== null && rest() !== "" ? " · " : "")}${escape_html(rest())}</p>`);
87
+ } else $$renderer.push("<!--[-1-->");
88
+ $$renderer.push(`<!--]--></div> <ol class="svelte-1powdxq"><!--[-->`);
89
+ const each_array = ensure_array_like(strip);
90
+ for (let at = 0, $$length = each_array.length; at < $$length; at++) {
91
+ let segment = each_array[at];
92
+ $$renderer.push(`<li${attr("data-phase", segment.phase)}${attr("data-mark", mark(segment, at))}${attr("data-state", segment.run?.verdict === "FAIL" ? "failed" : segment.run?.state ?? "none")}${attr("data-asked", segment.run?.question ? "true" : void 0)} class="svelte-1powdxq"><span class="dot svelte-1powdxq" aria-hidden="true">`);
93
+ if (mark(segment, at) === "done") $$renderer.push(`<!--[0--><svg viewBox="0 0 24 24" class="svelte-1powdxq"><path d="m5 12 5 5 9-10"></path></svg>`);
94
+ else if (mark(segment, at) === "asked") $$renderer.push(`<!--[1-->?`);
95
+ else if (mark(segment, at) === "failed") $$renderer.push(`<!--[2--><svg viewBox="0 0 24 24" class="svelte-1powdxq"><path d="M6 6l12 12M18 6 6 18"></path></svg>`);
96
+ else $$renderer.push("<!--[-1-->");
97
+ $$renderer.push(`<!--]--></span> <p class="phase svelte-1powdxq"><span>${escape_html(segment.label)} `);
98
+ if (segment.count > 1) $$renderer.push(`<!--[0--><span class="quiet svelte-1powdxq">· ran ${escape_html(segment.count)} times</span>`);
99
+ else $$renderer.push("<!--[-1-->");
100
+ $$renderer.push(`<!--]--></span> `);
101
+ if (segment.run !== null) $$renderer.push(`<!--[0--><a${attr("href", `${stringify(logBase)}?run=${stringify(segment.run.id)}`)} class="svelte-1powdxq">log <span class="hidden svelte-1powdxq">of the ${escape_html(segment.label)} run</span></a>`);
102
+ else $$renderer.push("<!--[-1-->");
103
+ $$renderer.push(`<!--]--></p> `);
104
+ if (segment.run === null) {
105
+ $$renderer.push("<!--[0-->");
106
+ if (at === next()) $$renderer.push(`<!--[0--><p class="mono amber svelte-1powdxq">waits for your approval</p>`);
107
+ else $$renderer.push(`<!--[-1--><p class="mono quiet svelte-1powdxq">${escape_html(WILL[segment.phase] ?? "not run yet")}</p>`);
108
+ $$renderer.push(`<!--]-->`);
109
+ } else {
110
+ $$renderer.push("<!--[-1-->");
111
+ const run = segment.run;
112
+ const moved = movedInto(segment.phase);
113
+ const accepted = goneOn(segment.phase);
114
+ $$renderer.push(`<p class="mono svelte-1powdxq"${attr("title", tokenTitle(run) || void 0)}>${escape_html(detail(run))} `);
115
+ if (showsCost(run)) {
116
+ $$renderer.push(`<!--[0-->· <span title="Estimated value">${escape_html(formatCost(run.costUsd))} `);
117
+ if (run.costUsd !== null) $$renderer.push(`<!--[0--><span class="hidden svelte-1powdxq">estimated</span>`);
118
+ else $$renderer.push("<!--[-1-->");
119
+ $$renderer.push(`<!--]--></span>`);
120
+ } else $$renderer.push("<!--[-1-->");
121
+ $$renderer.push(`<!--]-->`);
122
+ if (run.costUsd === null && run.tokens !== null) $$renderer.push(`<!--[0-->${escape_html(` · ${formatTokens(run.tokens.input + run.tokens.output)} tok`)}`);
123
+ else $$renderer.push("<!--[-1-->");
124
+ $$renderer.push(`<!--]--></p> `);
125
+ if (mark(segment, at) === "asked") {
126
+ $$renderer.push(`<!--[0--><p class="mono violet svelte-1powdxq">`);
127
+ if (waits(at) && since !== null) {
128
+ $$renderer.push(`<!--[0-->asked you `);
129
+ Ago($$renderer, {
130
+ at: since,
131
+ now
132
+ });
133
+ $$renderer.push(`<!---->`);
134
+ } else $$renderer.push(`<!--[-1-->asked a question`);
135
+ $$renderer.push(`<!--]--></p>`);
136
+ } else if (run.verdict === "FAIL") {
137
+ $$renderer.push(`<!--[1--><p class="mono red svelte-1powdxq">${escape_html(failLine(run))}`);
138
+ if (run.endedAt != null) {
139
+ $$renderer.push(`<!--[0-->, `);
140
+ Ago($$renderer, {
141
+ at: run.endedAt,
142
+ now
143
+ });
144
+ $$renderer.push(`<!---->`);
145
+ } else $$renderer.push("<!--[-1-->");
146
+ $$renderer.push(`<!--]--></p>`);
147
+ } else if (mark(segment, at) === "done") $$renderer.push(`<!--[2--><p class="hidden svelte-1powdxq">done</p>`);
148
+ else $$renderer.push(`<!--[-1--><p class="mono svelte-1powdxq">${escape_html(runSaid(run))}</p>`);
149
+ $$renderer.push(`<!--]--> `);
150
+ if (moved !== null) {
151
+ $$renderer.push(`<!--[0--><p class="mono quiet svelte-1powdxq" data-moved="">${escape_html(moved.said)}`);
152
+ if (moved.at !== void 0) {
153
+ $$renderer.push(`<!--[0-->, `);
154
+ Ago($$renderer, {
155
+ at: moved.at,
156
+ now
157
+ });
158
+ $$renderer.push(`<!---->`);
159
+ } else $$renderer.push("<!--[-1-->");
160
+ $$renderer.push(`<!--]--></p>`);
161
+ } else $$renderer.push("<!--[-1-->");
162
+ $$renderer.push(`<!--]--> `);
163
+ if (accepted !== null) {
164
+ $$renderer.push(`<!--[0--><p class="quiet svelte-1powdxq" data-reason="">${escape_html(accepted.back ? "Sent back" : "Accepted anyway")}, ${escape_html(accepted.said)}`);
165
+ if (accepted.at !== void 0) {
166
+ $$renderer.push(`<!--[0-->, `);
167
+ Ago($$renderer, {
168
+ at: accepted.at,
169
+ now
170
+ });
171
+ $$renderer.push(`<!---->`);
172
+ } else $$renderer.push("<!--[-1-->");
173
+ $$renderer.push(`<!--]--></p> <p class="why svelte-1powdxq">${escape_html(accepted.reason)}</p>`);
174
+ } else $$renderer.push("<!--[-1-->");
175
+ $$renderer.push(`<!--]-->`);
176
+ }
177
+ $$renderer.push(`<!--]--></li>`);
178
+ }
179
+ $$renderer.push(`<!--]--></ol> `);
180
+ if (note() !== "") $$renderer.push(`<!--[0--><p class="quiet svelte-1powdxq">${escape_html(note())}</p>`);
181
+ else $$renderer.push("<!--[-1-->");
182
+ $$renderer.push(`<!--]--></section>`);
183
+ });
184
+ }
185
+ //#endregion
186
+ //#region src/lib/card-pulls.ts
187
+ var REUSE_MS = 1e4;
188
+ var held = null;
189
+ /**
190
+ * The pull request state of a closed card, read through the app's `GET /api/card/<key>/pr`. The card
191
+ * head's "Changes merged" and the Overview's pull request lines both ask, and share one read.
192
+ */
193
+ function readCardPulls(url, get = fetch) {
194
+ if (held !== null && held.url === url && Date.now() - held.at < REUSE_MS) return held.read;
195
+ const read = (async () => {
196
+ try {
197
+ const answer = await get(url);
198
+ if (answer.ok) return await answer.json();
199
+ } catch {}
200
+ return {
201
+ pulls: [],
202
+ said: "The pull request state could not be read. The local app is not answering."
203
+ };
204
+ })();
205
+ held = {
206
+ url,
207
+ at: Date.now(),
208
+ read
209
+ };
210
+ return read;
211
+ }
212
+ var merged = (read) => read.pulls.length > 0 && read.pulls.every((pull) => pull.state === "merged");
213
+ /**
214
+ * A closed card's Pull request row in the record: "#42 opened" and ", merged by you", each with its
215
+ * time. Null for a line gh did not read a number for, and each part is left out when gh did not say it.
216
+ */
217
+ function pullTrail(pull) {
218
+ if (pull.number === null) return null;
219
+ const timed = (words, at) => at === void 0 ? { words } : {
220
+ words,
221
+ at
222
+ };
223
+ const opened = timed(pull.openedAt === void 0 ? `#${pull.number}` : `#${pull.number} opened`, pull.openedAt);
224
+ if (pull.state !== "merged") return [opened];
225
+ return [opened, timed(pull.mergedBy === void 0 ? ", merged" : `, merged by ${pull.mergedBy}`, pull.mergedAt)];
226
+ }
227
+
228
+ export { Ago as A, PhaseStrip as P, merged as m, pullTrail as p, readCardPulls as r };
229
+ //# sourceMappingURL=card-pulls.js-d_uGmBB3.js.map
@@ -0,0 +1,59 @@
1
+ import { e as projectRepos } from './estimate.js-BHTYVTaQ.js';
2
+ import { g as getSetting, b as reposOfCard, a7 as setCardRepos, J as cardRepos } from './node.js-Bz2jT5wt.js';
3
+ import './src2.js-CV8tsClO.js';
4
+ import { t as checkoutPath } from './src3.js-h9tTEbVb.js';
5
+ import { existsSync } from 'node:fs';
6
+ import { join } from 'node:path';
7
+
8
+ //#region src/lib/card-repos.ts
9
+ var hasCard = (db, key) => db.prepare("SELECT 1 FROM cards WHERE key = ?").get(key) !== void 0;
10
+ function cardReposFor(db, key) {
11
+ if (!hasCard(db, key)) return null;
12
+ const project = projectRepos({
13
+ repos: getSetting(db, "repos"),
14
+ baseBranch: getSetting(db, "baseBranch")
15
+ }).map((repo) => repo.path);
16
+ if (project.length < 2) return null;
17
+ const stored = cardRepos(db, key);
18
+ return {
19
+ repos: project.map((path) => ({
20
+ path,
21
+ picked: path === "." || (stored?.repos.includes(path) ?? false),
22
+ fixed: path === "."
23
+ })),
24
+ by: stored?.by ?? null
25
+ };
26
+ }
27
+ var answer = (status, body) => new Response(JSON.stringify(body), {
28
+ status,
29
+ headers: { "content-type": "application/json" }
30
+ });
31
+ /**
32
+ * The person's own list of the card's repositories, which refine and plan never replace.
33
+ *
34
+ * An empty list clears it, so the next refine or plan picks one again. A repository whose checkout
35
+ * is on disk stays, because the card's work there would be left out of its changes. One added to a
36
+ * started card gets its checkout from the next run that needs one.
37
+ */
38
+ async function saveCardRepos(db, key, request) {
39
+ let asked;
40
+ try {
41
+ asked = (await request.json())?.repos;
42
+ } catch {
43
+ asked = void 0;
44
+ }
45
+ if (!Array.isArray(asked) || !asked.every((repo) => typeof repo === "string")) return answer(400, { message: "Send the repositories as a list of folder names." });
46
+ if (!hasCard(db, key)) return answer(404, { message: `There is no card ${key}, so it has no repositories to set.` });
47
+ const project = getSetting(db, "projectPath");
48
+ const kept = project === null ? void 0 : (reposOfCard(db, key) ?? []).find((repo) => repo !== "." && !asked.includes(repo) && existsSync(join(checkoutPath(project, key, repo), ".git")));
49
+ if (kept !== void 0) return answer(400, { message: `${key} has a checkout of ${kept} already, so ${kept} stays in its list.` });
50
+ try {
51
+ setCardRepos(db, key, asked, "person");
52
+ } catch (error) {
53
+ return answer(400, { message: error.message });
54
+ }
55
+ return answer(200, { ok: true });
56
+ }
57
+
58
+ export { cardReposFor as c, saveCardRepos as s };
59
+ //# sourceMappingURL=card-repos.js-QaMCxiyV.js.map