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,609 @@
1
+ //#region ../../packages/protocol/src/ticket.ts
2
+ var KEY = /^([A-Z][A-Z0-9]*)-(\d+)$/;
3
+ var OWNER_REPO_NUMBER = /^(?:([A-Za-z0-9._-]+)\/)?([A-Za-z0-9._-]+)#(\d+)$/;
4
+ var GITHUB_URL = /^https?:\/\/github\.com\/([A-Za-z0-9._-]+)\/([A-Za-z0-9._-]+)\/(?:issues|pull)\/(\d+)\/?$/;
5
+ function gitHubRef(owner, repo, rawNumber) {
6
+ if (!repo || !rawNumber) return null;
7
+ const number = Number(rawNumber);
8
+ return number > 0 ? {
9
+ kind: "github",
10
+ owner,
11
+ repo,
12
+ number
13
+ } : null;
14
+ }
15
+ function parseTicketRef(input, localPrefix) {
16
+ const text = input.trim();
17
+ if (text === "") return {
18
+ kind: "text",
19
+ text: ""
20
+ };
21
+ const url = GITHUB_URL.exec(text);
22
+ if (url) {
23
+ const ref = gitHubRef(url[1] ?? null, url[2], url[3]);
24
+ if (ref) return ref;
25
+ }
26
+ const hash = OWNER_REPO_NUMBER.exec(text);
27
+ if (hash) {
28
+ const ref = gitHubRef(hash[1] ?? null, hash[2], hash[3]);
29
+ if (ref) return ref;
30
+ }
31
+ const key = KEY.exec(text);
32
+ if (key) return localPrefix !== void 0 && key[1] === localPrefix ? {
33
+ kind: "local",
34
+ key: text
35
+ } : {
36
+ kind: "external",
37
+ key: text
38
+ };
39
+ return {
40
+ kind: "text",
41
+ text
42
+ };
43
+ }
44
+ var JIRA_BROWSE = /\/browse\/([A-Z][A-Z0-9]*-\d+)\/?$/;
45
+ var LINEAR_ISSUE = /^\/[^/]+\/issue\/([A-Z][A-Z0-9]*-\d+)(?:\/[^/]*)?\/?$/;
46
+ function ticketLink(input) {
47
+ const text = input.trim();
48
+ const github = GITHUB_URL.exec(text);
49
+ if (github) {
50
+ const ref = gitHubRef(github[1] ?? null, github[2], github[3]);
51
+ return ref?.kind === "github" && ref.owner !== null ? {
52
+ system: "github",
53
+ owner: ref.owner,
54
+ repo: ref.repo,
55
+ number: ref.number,
56
+ pull: text.includes("/pull/")
57
+ } : null;
58
+ }
59
+ let url;
60
+ try {
61
+ url = new URL(text);
62
+ } catch {
63
+ return null;
64
+ }
65
+ if (url.protocol !== "https:" && url.protocol !== "http:" || url.username !== "" || url.password !== "") return null;
66
+ if (url.hostname === "github.com") return null;
67
+ if (url.hostname === "linear.app") {
68
+ const key = LINEAR_ISSUE.exec(url.pathname)?.[1];
69
+ return key === void 0 ? null : {
70
+ system: "linear",
71
+ key
72
+ };
73
+ }
74
+ const key = JIRA_BROWSE.exec(url.pathname)?.[1] ?? url.searchParams.get("selectedIssue") ?? "";
75
+ return KEY.test(key) ? {
76
+ system: "jira",
77
+ key,
78
+ host: url.host
79
+ } : null;
80
+ }
81
+ var PULL_URL_TAIL = /^(https?:\/\/github\.com\/[^/]+\/[^/]+\/pull\/\d+)[/?#].*$/;
82
+ var ISSUE_URL = /^https?:\/\/github\.com\/[^/]+\/[^/]+\/issues\//;
83
+ var PASTE_PULL = "Paste a pull request link, as in https://github.com/owner/repo/pull/12, or type owner/repo#12.";
84
+ /**
85
+ * The pull request a pasted link or a typed owner/repo#N names, with its name in lower case as the
86
+ * card's list shows it, or the sentence that says what to type instead. An issue link is refused here,
87
+ * so it costs no call to GitHub.
88
+ */
89
+ function pullRequestRef(input) {
90
+ const text = input.trim().replace(PULL_URL_TAIL, "$1");
91
+ if (ISSUE_URL.test(text)) return { refused: `That link is to an issue. ${PASTE_PULL}` };
92
+ const ref = parseTicketRef(text);
93
+ if (ref.kind !== "github") return { refused: PASTE_PULL };
94
+ if (ref.owner === null) return { refused: `Type the owner as well, as in owner/${ref.repo}#${ref.number}.` };
95
+ return {
96
+ owner: ref.owner,
97
+ repo: ref.repo,
98
+ number: ref.number,
99
+ name: `${ref.owner}/${ref.repo}#${ref.number}`.toLowerCase()
100
+ };
101
+ }
102
+ /** `text` cut to `cap` characters on a word, with an ellipsis, so no screen shows half a word. */
103
+ function cutOnWord(text, cap) {
104
+ const whole = text.trim();
105
+ if (whole.length <= cap) return whole;
106
+ const room = whole.slice(0, cap - 1);
107
+ const space = room.search(/\s\S*$/);
108
+ return `${(space > 0 ? room.slice(0, space) : room).trimEnd()}…`;
109
+ }
110
+ /** The title of a local card made from typed text: its first line with words, cut to `TITLE_CAP`. */
111
+ function localTitle(text) {
112
+ return cutOnWord(text.split("\n").find((line) => line.trim() !== "") ?? "", 80);
113
+ }
114
+ /**
115
+ * The title the refine skill wrote on the first heading of `refined.md`, `# <KEY>: <title>`, cut to
116
+ * `TITLE_CAP`. Null when the first heading names another card or no title, so a brief in another
117
+ * shape leaves the card's title alone.
118
+ */
119
+ function refinedTitle(markdown, key) {
120
+ const heading = markdown.split("\n").find((line) => /^#\s/.test(line));
121
+ const prefix = `${key}:`;
122
+ const rest = heading?.slice(1).trim();
123
+ if (rest === void 0 || !rest.startsWith(prefix)) return null;
124
+ const title = localTitle(rest.slice(prefix.length));
125
+ return title === "" ? null : title;
126
+ }
127
+ var BRANCH_TYPES = [
128
+ "feature",
129
+ "fix",
130
+ "chore"
131
+ ];
132
+ /**
133
+ * The `Kind:` and `Branch:` lines the refine skill writes under the title of `refined.md`, for the
134
+ * {type} and {desc} of the branch name. Null for a line that is missing, and for a kind that is none
135
+ * of the three, so the branch name falls back.
136
+ */
137
+ function refinedBranch(markdown) {
138
+ const lines = markdown.split(/\r?\n/);
139
+ const heading = lines.findIndex((one) => /^#\s/.test(one));
140
+ const top = [];
141
+ for (const one of heading < 0 ? [] : lines.slice(heading + 1)) {
142
+ if (one.trim() === "" && top.length === 0) continue;
143
+ if (!/^(kind|branch):/i.test(one.trim())) break;
144
+ top.push(one.trim());
145
+ }
146
+ const line = (label) => {
147
+ const value = top.map((one) => new RegExp(`^${label}:(.*)$`, "i").exec(one)?.[1]?.trim() ?? "").find((one) => one !== "") ?? "";
148
+ return value === "" ? null : value;
149
+ };
150
+ const kind = line("Kind")?.toLowerCase() ?? null;
151
+ return {
152
+ type: BRANCH_TYPES.find((one) => one === kind) ?? null,
153
+ desc: line("Branch")
154
+ };
155
+ }
156
+ function briefSection(markdown, heading) {
157
+ const lines = markdown.split(/\r?\n/);
158
+ const start = lines.findIndex((line) => line.trim().replace(/\s+/g, " ").toLowerCase() === heading);
159
+ if (start === -1) return [];
160
+ const after = lines.slice(start + 1);
161
+ const end = after.findIndex((line) => /^#{1,2} /.test(line));
162
+ return end === -1 ? after : after.slice(0, end);
163
+ }
164
+ var CRITERION_LEVELS = ["must", "should"];
165
+ /**
166
+ * The acceptance checks of `refined.md`: `- AC1 (must): <text>` with an indented `Check:` line, or
167
+ * with `Check:` after the text on the same line. A brief written before the levels reads too, with a
168
+ * null level and check.
169
+ */
170
+ function refinedCriteria(markdown) {
171
+ const found = [];
172
+ for (const line of briefSection(markdown, "## acceptance checks")) {
173
+ const item = /^[-*] (AC\d+)\b(?:\s*\((\w+)\))?\s*:\s*(.*)$/i.exec(line);
174
+ if (item !== null) {
175
+ const level = item[2]?.toLowerCase();
176
+ const [text = "", check] = (item[3] ?? "").split(/(?<=[.!?)"'`])\s+Check:\s*/);
177
+ found.push({
178
+ id: (item[1] ?? "").toUpperCase(),
179
+ level: CRITERION_LEVELS.find((one) => one === level) ?? null,
180
+ text: text.trim(),
181
+ check: check?.trim() || null
182
+ });
183
+ continue;
184
+ }
185
+ const check = /^\s*check\s*:\s*(.*)$/i.exec(line);
186
+ const last = found.at(-1);
187
+ if (check !== null && last !== void 0 && last.check === null) last.check = (check[1] ?? "").trim();
188
+ }
189
+ return found;
190
+ }
191
+ /**
192
+ * The open questions of `refined.md`: `- Q1: <question> Default: <answer>. blocks: yes`. The
193
+ * architecture writes them in the same shape under `## What is still open`.
194
+ */
195
+ function refinedQuestions(markdown, heading = "## Open questions") {
196
+ return briefSection(markdown, heading.toLowerCase()).flatMap((line) => {
197
+ const item = /^[-*] (.*)$/.exec(line.trimEnd());
198
+ if (item === null) return [];
199
+ let rest = item[1] ?? "";
200
+ const id = /^(Q\d+)\s*:\s*/i.exec(rest);
201
+ if (id !== null) rest = rest.slice(id[0].length);
202
+ const blocks = /\s*\bblocks\s*:\s*(yes|no)\b\.?$/i.exec(rest);
203
+ if (blocks !== null) rest = rest.slice(0, blocks.index);
204
+ const answer = /\s*\bDefault\s*:\s*(.*)$/i.exec(rest);
205
+ if (answer !== null) rest = rest.slice(0, answer.index);
206
+ const text = (answer?.[1] ?? "").trim().replace(/\.$/, "");
207
+ return [{
208
+ id: id?.[1]?.toUpperCase() ?? null,
209
+ question: rest.trim(),
210
+ answer: text === "" ? null : text,
211
+ blocks: blocks === null ? null : blocks[1]?.toLowerCase() === "yes"
212
+ }];
213
+ });
214
+ }
215
+ /**
216
+ * The `- D1: <rule>. Not: <option turned down>` lines of an architecture (`## The decisions`) and of a
217
+ * plan (`## Decisions`), which goes on from the architecture's last id. An indented line under one
218
+ * belongs to it. The first line of an id wins. A file written before the ids gives none.
219
+ */
220
+ function decisionLines(markdown) {
221
+ const found = [];
222
+ let last = null;
223
+ for (const line of [...briefSection(markdown, "## the decisions"), ...briefSection(markdown, "## decisions")]) {
224
+ const item = /^[-*] (D\d+)\s*:\s*(.*)$/i.exec(line.trimEnd());
225
+ if (item !== null) found.push(last = {
226
+ id: (item[1] ?? "").toUpperCase(),
227
+ text: (item[2] ?? "").trim()
228
+ });
229
+ else if (last !== null && /^\s+\S/.test(line)) last.text = `${last.text} ${line.trim()}`;
230
+ else if (line.trim() !== "") last = null;
231
+ }
232
+ return found.filter((one, at) => found.findIndex((other) => other.id === one.id) === at);
233
+ }
234
+ function localKey(prefix, counter) {
235
+ return `${prefix}-${counter}`;
236
+ }
237
+ var pullKey = (repo, number) => `${repo.toLowerCase()}#${number}`;
238
+ /**
239
+ * The card key of a ticket reference: `group/project#12` is `project#12`, and a key with no path is
240
+ * its own card key.
241
+ *
242
+ * A card key names one folder, so a path in it means no checkout and no run. The full reference is the
243
+ * card's source ref. Lower case, because GitHub and GitLab names are case insensitive, and a name typed
244
+ * by hand and one the API answered would otherwise be two cards.
245
+ */
246
+ function cardKeyOf(ref) {
247
+ const cut = ref.lastIndexOf("/");
248
+ return cut === -1 ? ref : ref.slice(cut + 1).toLowerCase();
249
+ }
250
+ var CARD_KEY_MAX_BYTES = 255;
251
+ /**
252
+ * Why this text cannot be a card key, or null when it can.
253
+ *
254
+ * Checked at the write, because a key from a ticket system is copied out of somebody else's answer.
255
+ * Refused and never repaired: a repaired key is a key that system does not know, so the next check
256
+ * finds the ticket again and makes a second card for it.
257
+ *
258
+ * Characters are read by code point rather than by one regular expression, which cannot carry a
259
+ * control character without tripping the lint rule that exists to catch one written by accident.
260
+ */
261
+ function cardKeyProblem(key) {
262
+ if (key === "") return "A card key cannot be empty.";
263
+ if (key === "." || key === "..") return "A card key cannot be . or .., because the key names the card folder.";
264
+ const bytes = new TextEncoder().encode(key).length;
265
+ if (bytes > CARD_KEY_MAX_BYTES) return `A card key is ${CARD_KEY_MAX_BYTES} bytes or less, and that one is ${bytes}.`;
266
+ return lineProblem(key);
267
+ }
268
+ /**
269
+ * Why a ticket reference cannot start a card, or null when it can.
270
+ *
271
+ * The card takes the last part as its key and keeps the whole reference as its source ref, which
272
+ * pages print. So the part the cut takes off is one line of plain text too. It has no length cap,
273
+ * because a source ref names no folder.
274
+ */
275
+ function ticketRefProblem(ref) {
276
+ return cardKeyProblem(cardKeyOf(ref)) ?? lineProblem(ref);
277
+ }
278
+ function lineProblem(text) {
279
+ for (const character of text) {
280
+ const code = character.codePointAt(0) ?? 0;
281
+ if (code < 32 || code === 127) return "A card key is one line of plain text, with no line break and no control character.";
282
+ if (/\s/.test(character)) return "A card key holds no space.";
283
+ }
284
+ return null;
285
+ }
286
+ //#endregion
287
+ //#region ../../packages/protocol/src/hub.ts
288
+ var HUB_PROTOCOL = "nolzu.1";
289
+ var TOKEN = /^[!#$%&'*+.^_`|~\dA-Za-z-]+$/;
290
+ function handshakeProtocols(token) {
291
+ if (!TOKEN.test(token)) throw new Error("The device token holds a character the handshake cannot carry. Run npx nolzu@latest login again.");
292
+ return [HUB_PROTOCOL, `bearer.${token}`];
293
+ }
294
+ var PING = "ping";
295
+ var PONG = "pong";
296
+ var HUB_PATH = "/connect";
297
+ var TEAM_HUB_PATH = "/connect/team";
298
+ var isHubRefusal = (code) => code === 4401 || code === 4426 || code === 4402;
299
+ var isCloudDataDeleted = (code, reason = "") => code === 4410 || reason === "The cloud data of this account was deleted. Send the board again.";
300
+ var SERVER_MESSAGES = [
301
+ "run.start",
302
+ "question.answer",
303
+ "card.move",
304
+ "scout.assess",
305
+ "report.write",
306
+ "knowledge.commit",
307
+ "claim.answer",
308
+ "project.join",
309
+ "project.list"
310
+ ];
311
+ var RUNNER_MESSAGES = [
312
+ "card.state",
313
+ "evidence.blocks",
314
+ "finding.results",
315
+ "knowledge.proposals",
316
+ "project.sync",
317
+ "scout.schedule",
318
+ "report.weekly",
319
+ "run.cost"
320
+ ];
321
+ var JOB_ACK = "job.ack";
322
+ var MESSAGE_TYPES = /* @__PURE__ */ new Set([
323
+ ...SERVER_MESSAGES,
324
+ ...RUNNER_MESSAGES,
325
+ JOB_ACK
326
+ ]);
327
+ /**
328
+ * What each message the runner sends carries away from the machine, in the words the client shows a
329
+ * person in What goes to a hub, a box on Settings, Cloud.
330
+ *
331
+ * The sentence sits beside the wire so the two cannot drift. A message type added to
332
+ * `RUNNER_MESSAGES` with no line here fails the typecheck and the test below, which is the only
333
+ * guard there is against a new frame sending something the screen never mentions.
334
+ *
335
+ * Server messages are not here: they come down to the machine. `job.ack` is not here either,
336
+ * because it carries null.
337
+ *
338
+ * The stage moves, the run times and the costs travel inside `card.state`, which is why its line
339
+ * names them too.
340
+ */
341
+ var SYNCED_DATA = {
342
+ "card.state": "Card keys, titles, stages and states, and the ticket or pull request each card came from, with its author, review state, draft flag, last commit time and whether it is open, closed or merged. Every stage move, with who made it and when. For each run, its phase, engine, model, effort, lane, attempt, start and end, cost, duration and token counts. Also its QA verdict with the reason, its plain summary, cut to 600 characters, the question a blocked card waits on with the answers it offers, and whether it failed, without the reason. For a card that can start its next step, the engine, model and effort that step runs on, with its estimate of cost and time when runs measured one.",
343
+ "evidence.blocks": "The evidence blocks of a day: each stage move and run with its card, time and spend, and each commit in the project folder that day with its short id and message. That includes commits other people made that this machine fetched.",
344
+ "finding.results": "Each Scout finding: the source id, its id for the event, its kind and status, how often and when it was first and last seen, where it happens, the ticket it is about and the card it became. The lines the source reported stay on this machine, and so do the source settings and its token.",
345
+ "knowledge.proposals": "Knowledge proposals on a team project, as diffs of the knowledge files, with the card and run each one came out of.",
346
+ "project.sync": "An id this machine mints for the project, its name, the client it is billed to, its hourly rate and currency, its delivery flow, and whether it is a team project. Also the time of this sync, and the job types this build can run.",
347
+ "scout.schedule": "The schedule you chose for a Scout source: the project and source, how often you asked Nolzu cloud to check it, whether you asked for a notification, and whether the source may make cards and start an assessment without asking. Nolzu cloud checks no source yet, so a schedule changes nothing today.",
348
+ "report.weekly": "The week a report covers, the name of the project folder, and for each card of that week its key, title, pull request reference, minutes and cost.",
349
+ "run.cost": "On a team project, to the team's hub: for each run, its card key, phase, model, start time, cost, duration and token counts. The team's hub never gets the run's question, verdict reason, failure reason, log or transcript."
350
+ };
351
+ var NEVER_SENT = [
352
+ "Code",
353
+ "Diffs of your code",
354
+ "Transcripts",
355
+ "Engine logins",
356
+ "Engine limit state and the usage window",
357
+ "Scout source tokens · in your keychain",
358
+ "The lines a Scout source read",
359
+ "Run logs",
360
+ "Plan steps",
361
+ "Paths on this machine",
362
+ "Tool activity",
363
+ "Discussion messages"
364
+ ];
365
+ /** A plain summary cut to `SUMMARY_CAP`, on a word and with an ellipsis, so the hub never gets half a word. */
366
+ function capSummary(text) {
367
+ return cutOnWord(text, 600);
368
+ }
369
+ var hubEnvelope = (type, job, payload, project) => ({
370
+ version: HUB_PROTOCOL,
371
+ type,
372
+ job,
373
+ ...project === void 0 ? {} : { project },
374
+ payload
375
+ });
376
+ function serializeHubFrame(frame) {
377
+ return typeof frame === "string" ? frame : JSON.stringify(frame);
378
+ }
379
+ /**
380
+ * Reads one frame off the socket, or throws.
381
+ *
382
+ * A frame this build cannot read is refused and never dropped. A dropped job is a card that sits in
383
+ * `queued` for ever with nobody to ask, so the reader says what is wrong, the caller reports that
384
+ * sentence and never acks the frame, and the hub keeps the job. The connection stays open: closing it
385
+ * would cost the heartbeat and every other job on it, and the same frame would arrive again on the
386
+ * next connect.
387
+ *
388
+ * Nothing from the frame is repeated in the message. These sentences reach a log, and the frame is not
389
+ * ours to trust.
390
+ */
391
+ function parseHubFrame(text) {
392
+ if (text === "ping") return PING;
393
+ if (text === "pong") return PONG;
394
+ let raw;
395
+ try {
396
+ raw = JSON.parse(text);
397
+ } catch {
398
+ throw new Error("A hub frame arrived that is not JSON.");
399
+ }
400
+ if (typeof raw !== "object" || raw === null || Array.isArray(raw)) throw new Error("A hub frame arrived that is not a message object.");
401
+ const { version, type, job, project } = raw;
402
+ if (version !== "nolzu.1") throw new Error(`A hub frame speaks another protocol version. This side speaks ${HUB_PROTOCOL}.`);
403
+ if (typeof type !== "string" || !MESSAGE_TYPES.has(type)) throw new Error("A hub frame names a message type this build does not know.");
404
+ if (typeof job !== "number") throw new Error("A hub frame carries no job id. Every message belongs to a job.");
405
+ if (!Number.isSafeInteger(job) || job < 1) throw new Error("A hub frame carries a job id that is not a whole number above zero. Job ids start at 1.");
406
+ if (!("payload" in raw)) throw new Error("A hub frame carries no payload.");
407
+ const named = project === void 0 || project === null ? void 0 : project;
408
+ if (named !== void 0 && (typeof named !== "number" || !Number.isSafeInteger(named) || named < 1)) throw new Error("A hub frame names a project that is not a whole number above zero.");
409
+ return {
410
+ version,
411
+ type,
412
+ job,
413
+ ...named === void 0 ? {} : { project: named },
414
+ payload: raw.payload
415
+ };
416
+ }
417
+ var MAX_SCOUT_INTERVAL_MINUTES = 10080;
418
+ function settingsText(value, subject, field) {
419
+ if (value === void 0 || value === null) return null;
420
+ if (typeof value !== "string") throw new Error(`${subject} carries a ${field} that is not text.`);
421
+ const trimmed = value.trim();
422
+ return trimmed === "" ? null : trimmed;
423
+ }
424
+ function settingsObject(payload, subject) {
425
+ if (typeof payload !== "object" || payload === null || Array.isArray(payload)) throw new Error(`${subject} arrived that is not a message object.`);
426
+ return payload;
427
+ }
428
+ var STAMP = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-]\d{2}:\d{2})$/;
429
+ /** Reads a `project.list` payload, or throws a sentence naming the field that is wrong. */
430
+ function readProjectList(payload) {
431
+ const subject = "A project list";
432
+ const raw = settingsObject(payload, subject);
433
+ if (!Array.isArray(raw.projects)) throw new Error(`${subject} carries no list of projects.`);
434
+ const projects = raw.projects.map((entry) => {
435
+ const one = settingsObject(entry, subject);
436
+ const id = settingsText(one.id, subject, "project id");
437
+ if (id === null) throw new Error(`${subject} carries a project with no id.`);
438
+ const name = settingsText(one.name, subject, "project name");
439
+ if (name === null) throw new Error(`${subject} carries a project with no name.`);
440
+ const at = one.lastActivity ?? null;
441
+ if (at !== null && (typeof at !== "string" || !STAMP.test(at) || Number.isNaN(Date.parse(at)))) throw new Error(`${subject} carries a last activity time that is not an ISO timestamp, such as 2026-09-28T12:00:00.000Z.`);
442
+ return {
443
+ id,
444
+ name,
445
+ lastActivity: at === null ? null : new Date(at).toISOString()
446
+ };
447
+ });
448
+ if (new Set(projects.map((one) => one.id)).size !== projects.length) throw new Error(`${subject} names the same project twice.`);
449
+ return { projects };
450
+ }
451
+ //#endregion
452
+ //#region ../../packages/protocol/src/review-round.ts
453
+ /**
454
+ * The round of findings a pull request review wrote, read into blocks.
455
+ *
456
+ * The file is `<card folder>/pr-review/round.md` and the `nolzu-pr-review` skill owns its shape. Each
457
+ * block is a conventional comment (conventionalcomments.org) with its place on a line of its own above
458
+ * it:
459
+ *
460
+ * src/recipes/import.ts:88-92
461
+ * issue (blocking): An empty recipe file stops the whole import
462
+ *
463
+ * The discussion, over as many lines and paragraphs as it needs.
464
+ *
465
+ * A block starts where a location line (`path:line` or `path:start-end`) stands right above a label
466
+ * line, so the discussion may hold blank lines. A round written before the location line, whose label
467
+ * line held the place (`issue: src/a.ts:12`), still reads, one block per paragraph.
468
+ *
469
+ * The Review tab, the copy of a whole round and the output check all read through here, so a round the
470
+ * page shows is the round the check counted. Nothing is read or fetched here.
471
+ */
472
+ var ROUND_LABELS = [
473
+ "praise",
474
+ "nitpick",
475
+ "suggestion",
476
+ "issue",
477
+ "todo",
478
+ "question",
479
+ "thought",
480
+ "chore",
481
+ "note"
482
+ ];
483
+ function normaliseRound(text) {
484
+ const body = text.replace(/\r\n/g, "\n").replace(/[ \t]+$/gm, "").replace(/\n{3,}/g, "\n\n").replace(/^\n+|\n+$/g, "");
485
+ return body === "" ? "" : `${body}\n`;
486
+ }
487
+ var LABEL_LINE = new RegExp(`^(${ROUND_LABELS.join("|")})(?:[ \\t]*\\(([^)\\n]*)\\))?:[ \\t]*(.*)$`);
488
+ var LOOKS_LABELLED = /^([A-Za-z][A-Za-z-]*)(?:[ \t]*\([^)\n]*\))?:/;
489
+ var LOCATION = /^(\S+?):(\d+)(?:-(\d+))?$/;
490
+ var quote = (line) => JSON.stringify(line.length > 60 ? `${line.slice(0, 60)}...` : line);
491
+ var LABELS = ROUND_LABELS.join(", ");
492
+ function refusal(first) {
493
+ if (LABEL_LINE.test(first.trimStart())) return `The block starting ${quote(first)} is indented. A block starts at the left margin, so move it there and write the round again.`;
494
+ const named = LOOKS_LABELLED.exec(first.trimStart());
495
+ if (named !== null) {
496
+ const indented = first !== first.trimStart() ? " It is indented as well, and a block starts at the left margin." : "";
497
+ return `The block starting ${quote(first)} carries the label "${named[1] ?? ""}", which this round file may not use. The labels are ${LABELS}.${indented}`;
498
+ }
499
+ return `The block starting ${quote(first)} carries no label, so it cannot be shown as a finding. Every comment starts with one of the labels: ${LABELS}.`;
500
+ }
501
+ var decorationOf = (found) => found[2]?.trim() || null;
502
+ function oldRound(normalised) {
503
+ const blocks = [];
504
+ for (const chunk of normalised.slice(0, -1).split("\n\n")) {
505
+ const lines = chunk.split("\n");
506
+ const first = lines[0] ?? "";
507
+ const match = LABEL_LINE.exec(first);
508
+ if (match === null) return {
509
+ ok: false,
510
+ problem: refusal(first)
511
+ };
512
+ const place = match[3] ?? "";
513
+ const at = /^(.*):(\d+)$/.exec(place);
514
+ blocks.push({
515
+ label: match[1],
516
+ decoration: decorationOf(match),
517
+ subject: null,
518
+ path: (at === null ? place : at[1] ?? "") || null,
519
+ line: at === null ? null : Number(at[2]),
520
+ end: null,
521
+ body: lines.slice(1).join("\n"),
522
+ text: chunk
523
+ });
524
+ }
525
+ return {
526
+ ok: true,
527
+ blocks
528
+ };
529
+ }
530
+ /**
531
+ * The blocks of a round file, or the one sentence saying why it cannot be shown.
532
+ *
533
+ * All the blocks or none of them. A comment with no location above it would read as part of the
534
+ * finding before it, and drawing the blocks beside a broken one would print half a finding as a whole
535
+ * one. The file itself stays readable on the Files tab, so refusing the round loses nothing.
536
+ */
537
+ function parseRound(text) {
538
+ const normalised = normaliseRound(text);
539
+ if (normalised === "") return {
540
+ ok: false,
541
+ problem: "The round file is empty, so there is no finding to show. A round holds at least one block, and a review that found nothing to change writes one praise block saying so."
542
+ };
543
+ const lines = normalised.slice(0, -1).split("\n");
544
+ const first = lines[0] ?? "";
545
+ if (!LOCATION.test(first) && LOOKS_LABELLED.test(first.trimStart())) return oldRound(normalised);
546
+ const starts = lines.flatMap((line, at) => LOCATION.test(line) && LABEL_LINE.test(lines[at + 1] ?? "") ? [at] : []);
547
+ if (starts[0] !== 0) {
548
+ if (LOCATION.test(first)) return {
549
+ ok: false,
550
+ problem: refusal(lines[1] ?? "")
551
+ };
552
+ return {
553
+ ok: false,
554
+ problem: `The round starts with ${quote(first)}, which is not a location. Every block starts with its file and line on a line of its own, such as src/a.ts:12 or src/a.ts:12-18, and its label line under it.`
555
+ };
556
+ }
557
+ for (const [at, line] of lines.entries()) {
558
+ if (at === 0 || lines[at - 1] !== "" || starts.includes(at)) continue;
559
+ if (LABEL_LINE.test(line)) return {
560
+ ok: false,
561
+ problem: `The block starting ${quote(line)} has no location line above it, so it would read as part of the finding before it. Put its file and line on the line above the label.`
562
+ };
563
+ if (LOCATION.test(line) && LOOKS_LABELLED.test((lines[at + 1] ?? "").trimStart())) return {
564
+ ok: false,
565
+ problem: refusal(lines[at + 1] ?? "")
566
+ };
567
+ }
568
+ const blocks = [];
569
+ for (const [index, start] of starts.entries()) {
570
+ const chunk = lines.slice(start, starts[index + 1] ?? lines.length);
571
+ while (chunk.at(-1) === "") chunk.pop();
572
+ const place = LOCATION.exec(chunk[0] ?? "");
573
+ const label = LABEL_LINE.exec(chunk[1] ?? "");
574
+ if (place === null || label === null) return {
575
+ ok: false,
576
+ problem: refusal(chunk[1] ?? "")
577
+ };
578
+ const subject = (label[3] ?? "").trim();
579
+ if (subject === "") return {
580
+ ok: false,
581
+ problem: `The comment at ${chunk[0] ?? ""} has no subject after its label. Write what the finding is about on the label line.`
582
+ };
583
+ const rest = chunk.slice(2);
584
+ const end = place[3] === void 0 ? null : Number(place[3]);
585
+ blocks.push({
586
+ label: label[1],
587
+ decoration: decorationOf(label),
588
+ subject,
589
+ path: place[1] ?? null,
590
+ line: Number(place[2]),
591
+ end: end === Number(place[2]) ? null : end,
592
+ body: (rest[0] === "" ? rest.slice(1) : rest).join("\n"),
593
+ text: chunk.slice(1).join("\n")
594
+ });
595
+ }
596
+ return {
597
+ ok: true,
598
+ blocks
599
+ };
600
+ }
601
+ var blockPlace = (block) => block.path === null ? null : block.line === null ? block.path : `${block.path}:${block.line}${block.end === null ? "" : `-${block.end}`}`;
602
+ function isBlocking(block) {
603
+ const marks = (block.decoration ?? "").split(",").map((one) => one.trim());
604
+ if (marks.includes("non-blocking")) return false;
605
+ return block.label === "issue" || block.label === "todo" || marks.includes("blocking");
606
+ }
607
+
608
+ export { SYNCED_DATA as A, BRANCH_TYPES as B, HUB_PATH as H, JOB_ACK as J, MAX_SCOUT_INTERVAL_MINUTES as M, NEVER_SENT as N, PING as P, ROUND_LABELS as R, SERVER_MESSAGES as S, TEAM_HUB_PATH as T, localKey as a, cardKeyProblem as b, cardKeyOf as c, refinedCriteria as d, refinedQuestions as e, pullKey as f, parseHubFrame as g, handshakeProtocols as h, isBlocking as i, PONG as j, hubEnvelope as k, localTitle as l, isCloudDataDeleted as m, isHubRefusal as n, refinedBranch as o, parseRound as p, blockPlace as q, readProjectList as r, serializeHubFrame as s, ticketRefProblem as t, decisionLines as u, capSummary as v, parseTicketRef as w, ticketLink as x, pullRequestRef as y, refinedTitle as z };
609
+ //# sourceMappingURL=src.js-Cm8RAH_q.js.map