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.
- package/LICENSE +105 -0
- package/README.md +24 -7
- package/build/client/_app/immutable/assets/0.SPD4wYkc.css +1 -0
- package/build/client/_app/immutable/assets/1.BRilEoOO.css +1 -0
- package/build/client/_app/immutable/assets/10.DwLiBGDj.css +1 -0
- package/build/client/_app/immutable/assets/11.D_TtWT3D.css +1 -0
- package/build/client/_app/immutable/assets/12.CSVGmtUY.css +1 -0
- package/build/client/_app/immutable/assets/13.qTa7IHbg.css +1 -0
- package/build/client/_app/immutable/assets/19.CbCFXKb8.css +1 -0
- package/build/client/_app/immutable/assets/2.CfHhgI77.css +1 -0
- package/build/client/_app/immutable/assets/20.C5CSZhyT.css +1 -0
- package/build/client/_app/immutable/assets/21.BBpYkZcc.css +1 -0
- package/build/client/_app/immutable/assets/22.C9RgY9kl.css +1 -0
- package/build/client/_app/immutable/assets/23.B6Dp9RJO.css +1 -0
- package/build/client/_app/immutable/assets/24.C7g2abUW.css +1 -0
- package/build/client/_app/immutable/assets/26.DTMI6ROV.css +1 -0
- package/build/client/_app/immutable/assets/27.AxXMpDkB.css +1 -0
- package/build/client/_app/immutable/assets/28.939ac-98.css +1 -0
- package/build/client/_app/immutable/assets/3.3lqex1t-.css +1 -0
- package/build/client/_app/immutable/assets/4.C52MzO_d.css +1 -0
- package/build/client/_app/immutable/assets/5.CsfJAwvS.css +1 -0
- package/build/client/_app/immutable/assets/8.ByspUp-s.css +1 -0
- package/build/client/_app/immutable/assets/9.BCSFZmce.css +1 -0
- package/build/client/_app/immutable/assets/Banner.DDqfpWLD.css +1 -0
- package/build/client/_app/immutable/assets/BoardOff.mpX08-Be.css +1 -0
- package/build/client/_app/immutable/assets/Button.BlwsEgUc.css +1 -0
- package/build/client/_app/immutable/assets/Chip.qAAa6_e5.css +1 -0
- package/build/client/_app/immutable/assets/Dialog.D5Ln60a8.css +1 -0
- package/build/client/_app/immutable/assets/FeaturePanels.DZ_Mth5M.css +1 -0
- package/build/client/_app/immutable/assets/FolderBrowser.DBmRWDCH.css +1 -0
- package/build/client/_app/immutable/assets/Geist-Variable.Bj2R_7yk.woff2 +0 -0
- package/build/client/_app/immutable/assets/GeistMono-Variable.Dispecij.woff2 +0 -0
- package/build/client/_app/immutable/assets/HelpTip.DF6T9nns.css +1 -0
- package/build/client/_app/immutable/assets/InfoBox.CpavOykF.css +1 -0
- package/build/client/_app/immutable/assets/KeyCaps.D2t-lY-8.css +1 -0
- package/build/client/_app/immutable/assets/LogLine.Bu4feLn5.css +1 -0
- package/build/client/_app/immutable/assets/Markdown.DI6AtWAc.css +1 -0
- package/build/client/_app/immutable/assets/ModelPicker.DQzj7Nj8.css +1 -0
- package/build/client/_app/immutable/assets/OptionButtons.BYiyOXOE.css +1 -0
- package/build/client/_app/immutable/assets/PeekPanel.DzMdHoqg.css +1 -0
- package/build/client/_app/immutable/assets/ScoutPage.CVIiLy5c.css +1 -0
- package/build/client/_app/immutable/assets/SetupSteps.B6pZP1Bk.css +1 -0
- package/build/client/_app/immutable/assets/Skeleton.BC-1_U5d.css +1 -0
- package/build/client/_app/immutable/assets/SlotsMeter.Dq7GGYlD.css +1 -0
- package/build/client/_app/immutable/assets/StartConfirm.DxNN2AOb.css +1 -0
- package/build/client/_app/immutable/assets/StatePill.CGWFVUUg.css +1 -0
- package/build/client/_app/immutable/assets/Streamed.DpZ6wgO2.css +1 -0
- package/build/client/_app/immutable/assets/card-pulls.C5uGMuAh.css +1 -0
- package/build/client/_app/immutable/assets/next-step.CKg1w06J.css +1 -0
- package/build/client/_app/immutable/chunks/-B5EclhK.js +1 -0
- package/build/client/_app/immutable/chunks/-Q3zApAy.js +1 -0
- package/build/client/_app/immutable/chunks/6-hwN_Ik.js +3 -0
- package/build/client/_app/immutable/chunks/B16UF4PA.js +11 -0
- package/build/client/_app/immutable/chunks/B1V3h1VF.js +1 -0
- package/build/client/_app/immutable/chunks/B2d2Mkuz.js +68 -0
- package/build/client/_app/immutable/chunks/B2yzhiEa.js +1 -0
- package/build/client/_app/immutable/chunks/B5zDDQUU.js +2 -0
- package/build/client/_app/immutable/chunks/B8DHSiWf.js +1 -0
- package/build/client/_app/immutable/chunks/B8z33EzI.js +1 -0
- package/build/client/_app/immutable/chunks/BCRkrH6c.js +1 -0
- package/build/client/_app/immutable/chunks/BCScjOxu.js +1 -0
- package/build/client/_app/immutable/chunks/BMUQtCEC.js +1 -0
- package/build/client/_app/immutable/chunks/BNnfkvZM.js +1 -0
- package/build/client/_app/immutable/chunks/BelWyZaW.js +1 -0
- package/build/client/_app/immutable/chunks/BhZpqODT.js +1 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js +81 -0
- package/build/client/_app/immutable/chunks/BmafI-Bs.js +1 -0
- package/build/client/_app/immutable/chunks/BvRk9kiK.js +0 -0
- package/build/client/_app/immutable/chunks/C4i6bdQg.js +1 -0
- package/build/client/_app/immutable/chunks/C8u5TyIB.js +1 -0
- package/build/client/_app/immutable/chunks/CFs2xhoy.js +1 -0
- package/build/client/_app/immutable/chunks/CIm2DioU.js +1 -0
- package/build/client/_app/immutable/chunks/CONqGBXC.js +1 -0
- package/build/client/_app/immutable/chunks/CSOz40qO.js +1 -0
- package/build/client/_app/immutable/chunks/CXxuD1ef.js +3 -0
- package/build/client/_app/immutable/chunks/CarrGsZA.js +2 -0
- package/build/client/_app/immutable/chunks/CdrmTD44.js +1 -0
- package/build/client/_app/immutable/chunks/CfJRH9gh.js +2 -0
- package/build/client/_app/immutable/chunks/Ci7C9Cki.js +1 -0
- package/build/client/_app/immutable/chunks/CkOTL1vK.js +1 -0
- package/build/client/_app/immutable/chunks/CngTtGc_.js +1 -0
- package/build/client/_app/immutable/chunks/Cp3A1zR8.js +1 -0
- package/build/client/_app/immutable/chunks/CwtMnwNL.js +3 -0
- package/build/client/_app/immutable/chunks/Cy7f_oXg.js +1 -0
- package/build/client/_app/immutable/chunks/D-wwLm5t.js +1 -0
- package/build/client/_app/immutable/chunks/D2imbgaf.js +1 -0
- package/build/client/_app/immutable/chunks/D32mip60.js +1 -0
- package/build/client/_app/immutable/chunks/D46Vk19W.js +1 -0
- package/build/client/_app/immutable/chunks/DCUUgo-6.js +1 -0
- package/build/client/_app/immutable/chunks/DFjnjJjy.js +1 -0
- package/build/client/_app/immutable/chunks/DHMbSbMg.js +1 -0
- package/build/client/_app/immutable/chunks/DJOFx2wx.js +1 -0
- package/build/client/_app/immutable/chunks/DV4tvxHp.js +3 -0
- package/build/client/_app/immutable/chunks/DXk_5YEw.js +1 -0
- package/build/client/_app/immutable/chunks/DjgnRLJt.js +1 -0
- package/build/client/_app/immutable/chunks/DlWlQ_vP.js +1 -0
- package/build/client/_app/immutable/chunks/DpIAei2y.js +2 -0
- package/build/client/_app/immutable/chunks/Dt-HX3Vu.js +1 -0
- package/build/client/_app/immutable/chunks/DuSthUWX.js +1 -0
- package/build/client/_app/immutable/chunks/Ecfl8TOn.js +2 -0
- package/build/client/_app/immutable/chunks/ITHE99Aa.js +1 -0
- package/build/client/_app/immutable/chunks/Khdge0KS.js +1 -0
- package/build/client/_app/immutable/chunks/LMEKNlm0.js +1 -0
- package/build/client/_app/immutable/chunks/OnIeaiuO.js +1 -0
- package/build/client/_app/immutable/chunks/VFQLu55q.js +1 -0
- package/build/client/_app/immutable/chunks/ZsUxKnQw.js +1 -0
- package/build/client/_app/immutable/chunks/aWP8DVhV.js +1 -0
- package/build/client/_app/immutable/chunks/bB04Xp1f.js +1 -0
- package/build/client/_app/immutable/chunks/eylBqhv8.js +3 -0
- package/build/client/_app/immutable/chunks/hx0ssLL_.js +2 -0
- package/build/client/_app/immutable/chunks/mumDj17t.js +1 -0
- package/build/client/_app/immutable/chunks/pZYp3_TE.js +1 -0
- package/build/client/_app/immutable/chunks/tImwjqWn.js +1 -0
- package/build/client/_app/immutable/chunks/uBIymjUX.js +1 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js +1 -0
- package/build/client/_app/immutable/entry/app.DVZ1wE36.js +2 -0
- package/build/client/_app/immutable/entry/start.DluCc61B.js +1 -0
- package/build/client/_app/immutable/nodes/0.CwNFevXf.js +1 -0
- package/build/client/_app/immutable/nodes/1.BR6FYiC-.js +1 -0
- package/build/client/_app/immutable/nodes/10.wNwBFtom.js +2 -0
- package/build/client/_app/immutable/nodes/11.DpoIbMNF.js +2 -0
- package/build/client/_app/immutable/nodes/12.CWdUJ8l3.js +2 -0
- package/build/client/_app/immutable/nodes/13.CZ2uTvNS.js +1 -0
- package/build/client/_app/immutable/nodes/14.CzgyXuvL.js +1 -0
- package/build/client/_app/immutable/nodes/15.CzgyXuvL.js +1 -0
- package/build/client/_app/immutable/nodes/16.odL9eB2N.js +1 -0
- package/build/client/_app/immutable/nodes/17.B-RnUeVU.js +1 -0
- package/build/client/_app/immutable/nodes/18.BLYKxyq2.js +1 -0
- package/build/client/_app/immutable/nodes/19.CgyFfPqF.js +3 -0
- package/build/client/_app/immutable/nodes/2.CCWT41Qr.js +1 -0
- package/build/client/_app/immutable/nodes/20.BBk5-krg.js +1 -0
- package/build/client/_app/immutable/nodes/21.CJoU3s1A.js +2 -0
- package/build/client/_app/immutable/nodes/22.CoRvPh8m.js +1 -0
- package/build/client/_app/immutable/nodes/23.zXO3NjnM.js +3 -0
- package/build/client/_app/immutable/nodes/24.CmO27TED.js +1 -0
- package/build/client/_app/immutable/nodes/26.TVKNr_xX.js +18 -0
- package/build/client/_app/immutable/nodes/27.RojtGU_o.js +1 -0
- package/build/client/_app/immutable/nodes/28.CVTdeeSI.js +2 -0
- package/build/client/_app/immutable/nodes/3.Cgib7Vi6.js +1 -0
- package/build/client/_app/immutable/nodes/4.CnMwOCec.js +1 -0
- package/build/client/_app/immutable/nodes/5.-NqYtQj_.js +1 -0
- package/build/client/_app/immutable/nodes/6.D5xk-UBM.js +1 -0
- package/build/client/_app/immutable/nodes/7.IL4b-DII.js +1 -0
- package/build/client/_app/immutable/nodes/8.DJrguHjO.js +11 -0
- package/build/client/_app/immutable/nodes/9.DTUSzWiK.js +1 -0
- package/build/client/_app/version.json +1 -0
- package/build/client/favicon.svg +7 -0
- package/build/env.js +70 -0
- package/build/handler.js +26 -0
- package/build/index.js +149 -0
- package/build/server/chunks/chunks/Banner.js-D4mtxUfF.js +17 -0
- package/build/server/chunks/chunks/BoardOff.js-Dg5-LoR3.js +1627 -0
- package/build/server/chunks/chunks/Button.js-Buh9rnpu.js +43 -0
- package/build/server/chunks/chunks/Chip.js-xZ7vFkHx.js +12 -0
- package/build/server/chunks/chunks/Dialog.js-CGpwdpM-.js +60 -0
- package/build/server/chunks/chunks/FeaturePanels.js-B2sKozgF.js +84 -0
- package/build/server/chunks/chunks/FolderBrowser.js-DUHFhDaX.js +28 -0
- package/build/server/chunks/chunks/HelpTip.js-CzemvmjC.js +19 -0
- package/build/server/chunks/chunks/InfoBox.js-BJiVzZgw.js +10 -0
- package/build/server/chunks/chunks/KeyCaps.js-BMI2Hrh2.js +37 -0
- package/build/server/chunks/chunks/LogLine.js-2b7uX__H.js +35 -0
- package/build/server/chunks/chunks/Markdown.js-Clud88KU.js +4233 -0
- package/build/server/chunks/chunks/ModelPicker.js-FuBgyKIA.js +141 -0
- package/build/server/chunks/chunks/OptionButtons.js-LQKrAwUX.js +28 -0
- package/build/server/chunks/chunks/PeekPanel.js-aZ-r_v3N.js +375 -0
- package/build/server/chunks/chunks/ScoutPage.js-2DcNia96.js +733 -0
- package/build/server/chunks/chunks/SetupSteps.js-D7TAF7xa.js +66 -0
- package/build/server/chunks/chunks/Skeleton.js-diCP2sd5.js +30 -0
- package/build/server/chunks/chunks/SlotsMeter.js-BV_sAGf5.js +18 -0
- package/build/server/chunks/chunks/StartConfirm.js-CzEdFtbO.js +124 -0
- package/build/server/chunks/chunks/StatePill.js-CM7-HXNM.js +27 -0
- package/build/server/chunks/chunks/Streamed.js-_NgwNMMs.js +43 -0
- package/build/server/chunks/chunks/_page.server.js-BaGoctEY.js +1419 -0
- package/build/server/chunks/chunks/activity.js-CSoPUQLq.js +84 -0
- package/build/server/chunks/chunks/add-repo.js-DtHEobfm.js +305 -0
- package/build/server/chunks/chunks/app-header.js-CCflgeEQ.js +13 -0
- package/build/server/chunks/chunks/app.js-CuPn8jtk.js +12 -0
- package/build/server/chunks/chunks/bin.js-Cyb2cYLc.js +58 -0
- package/build/server/chunks/chunks/board-keys.js-CW3qw-MC.js +32 -0
- package/build/server/chunks/chunks/board-page.js-D0tdsE9J.js +860 -0
- package/build/server/chunks/chunks/board.js-BxL3CjB1.js +203 -0
- package/build/server/chunks/chunks/browser-test.js-DJEpOoVz.js +170 -0
- package/build/server/chunks/chunks/card-pulls.js-d_uGmBB3.js +229 -0
- package/build/server/chunks/chunks/card-repos.js-QaMCxiyV.js +59 -0
- package/build/server/chunks/chunks/chain-store.js-D42m8DUo.js +91 -0
- package/build/server/chunks/chunks/chain.js-CJFRywIC.js +52 -0
- package/build/server/chunks/chunks/changes.js-D8ITRMgU.js +513 -0
- package/build/server/chunks/chunks/checkout.js-Ys5L_gA4.js +319 -0
- package/build/server/chunks/chunks/client.js-B7jIMDuS.js +68 -0
- package/build/server/chunks/chunks/clipboard.js-qXskOBim.js +12 -0
- package/build/server/chunks/chunks/cloud-status.js-hy-9zUVX.js +95 -0
- package/build/server/chunks/chunks/coach.js-BhNB14rV.js +296 -0
- package/build/server/chunks/chunks/comments.js-1nWJQptB.js +311 -0
- package/build/server/chunks/chunks/commit-message.js-CMcNZUZw.js +8 -0
- package/build/server/chunks/chunks/create-card.js-DKtprMG6.js +498 -0
- package/build/server/chunks/chunks/db.js-pqoVpAzG.js +80 -0
- package/build/server/chunks/chunks/diff-comments.js-BSCuay_U.js +95 -0
- package/build/server/chunks/chunks/discussion.js-rJ5OMfvX.js +355 -0
- package/build/server/chunks/chunks/display.js-Bf-vGQ7Q.js +61 -0
- package/build/server/chunks/chunks/elapsed.js-DikkNhaD.js +27 -0
- package/build/server/chunks/chunks/engine.js-DS5zUwsE.js +115 -0
- package/build/server/chunks/chunks/env.js-l0sNRNKZ.js +2 -0
- package/build/server/chunks/chunks/estimate.js-BHTYVTaQ.js +2484 -0
- package/build/server/chunks/chunks/evidence-timeline.js-Dk0dTZIy.js +253 -0
- package/build/server/chunks/chunks/evidence.js-CT3tWdbB.js +257 -0
- package/build/server/chunks/chunks/exports.js-Hn-WQRMB.js +150 -0
- package/build/server/chunks/chunks/features.svelte.js-DNsFmFZb.js +10 -0
- package/build/server/chunks/chunks/files.js-V46lE0-6.js +46 -0
- package/build/server/chunks/chunks/filter.js-CsmCtJMd.js +11 -0
- package/build/server/chunks/chunks/forms.js-03E8qnFz.js +35 -0
- package/build/server/chunks/chunks/gate.js-Cbqo8Yy0.js +82 -0
- package/build/server/chunks/chunks/getting-started.js-DKbHofN5.js +55 -0
- package/build/server/chunks/chunks/git.js-l43vBHqs.js +16 -0
- package/build/server/chunks/chunks/home-path.js-BXgrl3TP.js +11 -0
- package/build/server/chunks/chunks/hub-link.js-B5kjLyyd.js +1532 -0
- package/build/server/chunks/chunks/internal.js-DaSBO6jY.js +1239 -0
- package/build/server/chunks/chunks/internal2.js-D6AKyUgY.js +27 -0
- package/build/server/chunks/chunks/knowledge-page.js-D2ALB3v9.js +292 -0
- package/build/server/chunks/chunks/knowledge-revert.js-2eyN9Lcb.js +109 -0
- package/build/server/chunks/chunks/knowledge.js--eAgdzNx.js +394 -0
- package/build/server/chunks/chunks/last-board.js-BemeiK3t.js +23 -0
- package/build/server/chunks/chunks/log.js-R2zUph6T.js +228 -0
- package/build/server/chunks/chunks/loop.js-D3guWKLp.js +4038 -0
- package/build/server/chunks/chunks/loop2.js-B_Qd2m4y.js +67 -0
- package/build/server/chunks/chunks/navigation.js-DQJMz-SM.js +2 -0
- package/build/server/chunks/chunks/new-project.js-DNcr9JpB.js +305 -0
- package/build/server/chunks/chunks/next-step.js-B8Kl0Iv9.js +522 -0
- package/build/server/chunks/chunks/node.js-Bz2jT5wt.js +3381 -0
- package/build/server/chunks/chunks/now-live.svelte.js-hIaDgjJ3.js +13 -0
- package/build/server/chunks/chunks/now-snapshot.js-zGKLIzox.js +207 -0
- package/build/server/chunks/chunks/now.js-Dfm-o0Ha.js +765 -0
- package/build/server/chunks/chunks/onboard.js-LBqPOxyU.js +1525 -0
- package/build/server/chunks/chunks/ordinal.js-Bm_9QEBD.js +12 -0
- package/build/server/chunks/chunks/overview.js-C32iHkXD.js +1108 -0
- package/build/server/chunks/chunks/page-keys.svelte.js-D8vXA_8Z.js +14 -0
- package/build/server/chunks/chunks/patch.js-Bl7vwsUj.js +62 -0
- package/build/server/chunks/chunks/paths.js-DVRjNYFW.js +19 -0
- package/build/server/chunks/chunks/peek.js-D9sSjT9t.js +95 -0
- package/build/server/chunks/chunks/plan.js-DFq5ntMM.js +143 -0
- package/build/server/chunks/chunks/project-files-notice.js-CcqcBgUP.js +19 -0
- package/build/server/chunks/chunks/project-files.js-DTC4jUxy.js +52 -0
- package/build/server/chunks/chunks/project-folder.js-CoKgPiM0.js +22 -0
- package/build/server/chunks/chunks/projects.js-bw2V11od.js +989 -0
- package/build/server/chunks/chunks/prs.js-CLfImauu.js +118 -0
- package/build/server/chunks/chunks/publish.js-D2vWpIJU.js +195 -0
- package/build/server/chunks/chunks/pull-list.js-BCIBJdyz.js +691 -0
- package/build/server/chunks/chunks/qa-ask.svelte.js-8Hf1JWW2.js +47 -0
- package/build/server/chunks/chunks/qa-setup.js-DFOEcNxH.js +1241 -0
- package/build/server/chunks/chunks/quiet.js-1GKY40Ay.js +104 -0
- package/build/server/chunks/chunks/rail.js-BePBwOqZ.js +135 -0
- package/build/server/chunks/chunks/review.js-MPqnq9Gy.js +98 -0
- package/build/server/chunks/chunks/routing.js-B8s1QwSP.js +265 -0
- package/build/server/chunks/chunks/run-log.js-CnN2jOcg.js +94 -0
- package/build/server/chunks/chunks/run.js-COSejjLl.js +34 -0
- package/build/server/chunks/chunks/scout-findings.js-CqJti10a.js +940 -0
- package/build/server/chunks/chunks/scout.js-Bm7wQLX2.js +62 -0
- package/build/server/chunks/chunks/sentinels.js-BXvpnzr3.js +13 -0
- package/build/server/chunks/chunks/server.js-BR0D07DR.js +3803 -0
- package/build/server/chunks/chunks/settings-sections.js-V70W7BkZ.js +103 -0
- package/build/server/chunks/chunks/shared.js-BgfCUZUJ.js +776 -0
- package/build/server/chunks/chunks/sign-in.js-O-pBhi19.js +14 -0
- package/build/server/chunks/chunks/snapshot.js-BekzL_He.js +38 -0
- package/build/server/chunks/chunks/spend.js-BabnR69T.js +63 -0
- package/build/server/chunks/chunks/src.js-Cm8RAH_q.js +609 -0
- package/build/server/chunks/chunks/src2.js-CV8tsClO.js +1186 -0
- package/build/server/chunks/chunks/src3.js-h9tTEbVb.js +11222 -0
- package/build/server/chunks/chunks/stack.js-CMWXhMZS.js +13 -0
- package/build/server/chunks/chunks/standup.js-D-qBnMx4.js +103 -0
- package/build/server/chunks/chunks/state.js-BTDrgu7s.js +71 -0
- package/build/server/chunks/chunks/stream.js-D6r6iqjD.js +66 -0
- package/build/server/chunks/chunks/terms.js-DPZztSEn.js +88 -0
- package/build/server/chunks/chunks/ticket-system.js-Dj9R3XJw.js +147 -0
- package/build/server/chunks/chunks/ticket.js-6sj-2ZEM.js +110 -0
- package/build/server/chunks/chunks/timesheet.js-DfhIokoE.js +212 -0
- package/build/server/chunks/chunks/timesheet2.js-Cu95ddl3.js +84 -0
- package/build/server/chunks/chunks/to-workspace.js-DiOJP59J.js +308 -0
- package/build/server/chunks/chunks/toast-stack.svelte.js-CXIg3_KT.js +10 -0
- package/build/server/chunks/chunks/uneval.js-VnZcgzZr.js +488 -0
- package/build/server/chunks/chunks/utils.js-DQTBh7_6.js +1006 -0
- package/build/server/chunks/chunks/when-said.js-0F9asAma.js +35 -0
- package/build/server/chunks/chunks/workspace.js-BBdJRon9.js +212 -0
- package/build/server/chunks/entries/endpoints/api/board/_server.ts.js-BlYC_lpV.js +69 -0
- package/build/server/chunks/entries/endpoints/api/board/minimize/_server.ts.js-Wddt9YPR.js +68 -0
- package/build/server/chunks/entries/endpoints/api/board/move/_server.ts.js-BwZpCKx0.js +68 -0
- package/build/server/chunks/entries/endpoints/api/board/promote/_server.ts.js-Cw6kvkMq.js +68 -0
- package/build/server/chunks/entries/endpoints/api/board/pulls/_server.ts.js-DFhpbiMo.js +71 -0
- package/build/server/chunks/entries/endpoints/api/board/stop/_server.ts.js-D5eylDMw.js +68 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/answer/_server.ts.js-CG8xh52y.js +68 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/branch/_server.ts.js-a5_P9voA.js +40 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/chain/_server.ts.js-tJvQy6RK.js +70 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/checkouts/_server.ts.js-B2_gx6vF.js +41 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/choice/_server.ts.js-pmAdIQkK.js +34 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/comments/_id_/_server.ts.js-C5NxGWw3.js +68 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/comments/_server.ts.js-0rw7UNv8.js +64 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/commit/_server.ts.js-_yXWCOlQ.js +68 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/commit-diff/_server.ts.js-CRPV3z-g.js +61 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/commit-message/_server.ts.js-CO9mD3u6.js +82 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/context/_server.ts.js-7kzrigFz.js +42 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/delete/_server.ts.js-DH0nO9wG.js +516 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/file/_server.ts.js-D80SvJDi.js +35 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/files/_...path_/_server.ts.js-GxFjb2H0.js +34 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/fix/_server.ts.js-B-HAB050.js +68 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/knowledge/_server.ts.js-D4fN-j7X.js +81 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/link/_other_/_server.ts.js-C00pQDCu.js +42 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/log/_server.ts.js-BXW_tG-I.js +32 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/log/raw/_server.ts.js-pT8StZGR.js +32 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/message/_server.ts.js-ZMno2Hu6.js +68 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/models/_server.ts.js-DEZVpqO3.js +73 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/patch/_server.ts.js-BxfLi-Zs.js +61 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/peek/_server.ts.js-CsTKWIP_.js +169 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/pr/_server.ts.js-CsOeAXkf.js +53 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/pr/comments/_server.ts.js-DZ2XHOhF.js +71 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/pr/discuss/_server.ts.js-CO8eM0e8.js +72 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/pr/discussions/_server.ts.js-Lp7l0Yqv.js +71 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/pr/fix/_server.ts.js-CeIhjpQ4.js +68 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/pr/fix-all/_server.ts.js-D-DKoCpQ.js +68 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/pr/links/_server.ts.js-B_q3jUP3.js +72 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/pr/qa/_server.ts.js-BulVcJY9.js +68 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/pr/seen/_server.ts.js-Z06A6MS1.js +71 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/pr/triage/_server.ts.js-qADU4URF.js +68 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/pull/_server.ts.js-CHnTH9WK.js +58 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/push/_server.ts.js-BPdPwPo2.js +83 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/repos/_server.ts.js-Bjqa3Uoo.js +73 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/research/_server.ts.js-DzQjoHOZ.js +138 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/retry/_server.ts.js-CAodrXqd.js +68 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/send-back/_server.ts.js-CmJSnvTx.js +68 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/stack/_server.ts.js-DjI8S94J.js +82 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/tasks/_server.ts.js-BzX_nNJk.js +71 -0
- package/build/server/chunks/entries/endpoints/api/card/_key_/thread/_server.ts.js-Dn36Guxk.js +33 -0
- package/build/server/chunks/entries/endpoints/api/cards/_server.ts.js-DPMOBsvp.js +77 -0
- package/build/server/chunks/entries/endpoints/api/cards/context/_server.ts.js-D6y-g2O-.js +52 -0
- package/build/server/chunks/entries/endpoints/api/cards/next/_server.ts.js-C2se67rf.js +55 -0
- package/build/server/chunks/entries/endpoints/api/chain/_server.ts.js-DKO5Q8GV.js +70 -0
- package/build/server/chunks/entries/endpoints/api/clones/_server.ts.js-Bgcc_Beg.js +56 -0
- package/build/server/chunks/entries/endpoints/api/current-project/_server.ts.js-DZCtSlXs.js +81 -0
- package/build/server/chunks/entries/endpoints/api/evidence/timesheet/_server.ts.js-xJwzSrcl.js +32 -0
- package/build/server/chunks/entries/endpoints/api/folders/_server.ts.js-BdcE7k8S.js +83 -0
- package/build/server/chunks/entries/endpoints/api/gh/_server.ts.js-CGvM8fn7.js +66 -0
- package/build/server/chunks/entries/endpoints/api/gh/name/_server.ts.js-CHh3tAu7.js +36 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-DLUfrHo6.js +22 -0
- package/build/server/chunks/entries/endpoints/api/login-item/_server.ts.js-Cya7S7W6.js +77 -0
- package/build/server/chunks/entries/endpoints/api/notes/_server.ts.js-DaUFVqSM.js +26 -0
- package/build/server/chunks/entries/endpoints/api/notifications/_server.ts.js-DK6NFnII.js +76 -0
- package/build/server/chunks/entries/endpoints/api/now/_server.ts.js-xW0jeJdy.js +83 -0
- package/build/server/chunks/entries/endpoints/api/package/entry/_server.ts.js-DQyZanpo.js +35 -0
- package/build/server/chunks/entries/endpoints/api/projects/_server.ts.js-CzXJTj_l.js +58 -0
- package/build/server/chunks/entries/endpoints/api/qa-setup/_server.ts.js-DujrYbEP.js +76 -0
- package/build/server/chunks/entries/endpoints/api/remove-check/_server.ts.js-1KAi9LDi.js +58 -0
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-D0MKtjR7.js +69 -0
- package/build/server/chunks/entries/endpoints/api/tickets/jira/_server.ts.js-Z2LdOr5l.js +39 -0
- package/build/server/chunks/entries/endpoints/api/tickets/read/_server.ts.js-BziHtc8Y.js +68 -0
- package/build/server/chunks/entries/endpoints/api/tools/_server.ts.js-oyvq8i1y.js +30 -0
- package/build/server/chunks/entries/endpoints/api/workspace/_server.ts.js-CMGBL5cX.js +58 -0
- package/build/server/chunks/entries/endpoints/api/workspace/commit/_server.ts.js-BZQQJ1YG.js +66 -0
- package/build/server/chunks/entries/endpoints/api/workspace/patch/_server.ts.js-xrjgHECx.js +64 -0
- package/build/server/chunks/entries/endpoints/api/workspace/push/_server.ts.js-CTdia7Uz.js +66 -0
- package/build/server/chunks/entries/hooks.server.js-B0jE-ELC.js +211 -0
- package/build/server/chunks/entries/pages/_error.svelte.js-DPcKI5sX.js +25 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-Jj3i2Th9.js +134 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-Cu3ghN80.js +1251 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-DEYydBCm.js +662 -0
- package/build/server/chunks/entries/pages/accept/_page.server.ts.js-BF7MrA5s.js +29 -0
- package/build/server/chunks/entries/pages/accept/_page.svelte.js-8yPsedd-.js +54 -0
- package/build/server/chunks/entries/pages/b/_board_/_page.svelte.js-S9acLF3f.js +68 -0
- package/build/server/chunks/entries/pages/b/_board_/_page.ts.js-BcKdG_Tp.js +21 -0
- package/build/server/chunks/entries/pages/b/research/_page.svelte.js-FW6Hw9g5.js +68 -0
- package/build/server/chunks/entries/pages/b/research/_page.ts.js-Ds2AjFFK.js +13 -0
- package/build/server/chunks/entries/pages/evidence/_page.server.ts.js-uwu2X7bA.js +1382 -0
- package/build/server/chunks/entries/pages/evidence/_page.svelte.js-DBCjiT59.js +594 -0
- package/build/server/chunks/entries/pages/f/_...path_/_page.svelte.js-DxwJaJzh.js +58 -0
- package/build/server/chunks/entries/pages/knowledge/_page.server.ts.js-BAUvFEcM.js +80 -0
- package/build/server/chunks/entries/pages/knowledge/_page.svelte.js-D9117gHM.js +732 -0
- package/build/server/chunks/entries/pages/new/_page.server.ts.js-BNCQQpyw.js +110 -0
- package/build/server/chunks/entries/pages/new/_page.svelte.js-Ben8-N_h.js +503 -0
- package/build/server/chunks/entries/pages/new/idea/_page.server.ts.js-jssA29y3.js +46 -0
- package/build/server/chunks/entries/pages/new/idea/_page.svelte.js-XoKspqAc.js +210 -0
- package/build/server/chunks/entries/pages/new/task/_page.server.ts.js-CmZgfvyt.js +66 -0
- package/build/server/chunks/entries/pages/new/task/_page.svelte.js-BKpERKvm.js +169 -0
- package/build/server/chunks/entries/pages/onboard/_page.server.ts.js-pmc_pXvs.js +12 -0
- package/build/server/chunks/entries/pages/onboard/_page.svelte.js-C7LNK-ba.js +5 -0
- package/build/server/chunks/entries/pages/projects/_page.server.ts.js-BEhLRfJ_.js +12 -0
- package/build/server/chunks/entries/pages/projects/_page.svelte.js-OraOjsyb.js +5 -0
- package/build/server/chunks/entries/pages/scout/_page.server.ts.js-hQYnMHwY.js +10 -0
- package/build/server/chunks/entries/pages/scout/_page.svelte.js-7q4d044Z.js +40 -0
- package/build/server/chunks/entries/pages/scout/f/_id_/_page.server.ts.js-BN4TnSpB.js +22 -0
- package/build/server/chunks/entries/pages/scout/f/_id_/_page.svelte.js-GzpLhARi.js +40 -0
- package/build/server/chunks/entries/pages/settings/_layout.server.ts.js-B5LgqMMT.js +12 -0
- package/build/server/chunks/entries/pages/settings/_layout.svelte.js-CSCpV6qA.js +81 -0
- package/build/server/chunks/entries/pages/settings/_page.svelte.js-DNpsNFo0.js +25 -0
- package/build/server/chunks/entries/pages/settings/_section_/_page.server.ts.js-nRDEV3i_.js +348 -0
- package/build/server/chunks/entries/pages/settings/_section_/_page.svelte.js-BihUf-nY.js +1052 -0
- package/build/server/chunks/entries/pages/settings/integrations/_page.server.ts.js-BTuRpg8m.js +58 -0
- package/build/server/chunks/entries/pages/settings/integrations/_page.svelte.js-C8i8ZmZR.js +161 -0
- package/build/server/chunks/entries/pages/settings/mcp/_page.server.ts.js-TFISfO1a.js +925 -0
- package/build/server/chunks/entries/pages/settings/mcp/_page.svelte.js-D1X0TNOm.js +433 -0
- package/build/server/chunks/entries/pages/settings/phases/_page.server.ts.js-CgK7MTZf.js +48 -0
- package/build/server/chunks/entries/pages/settings/phases/_page.svelte.js-u-sTQ-ue.js +80 -0
- package/build/server/chunks/entries/pages/settings/project/_page.server.ts.js-CCnk9WbO.js +363 -0
- package/build/server/chunks/entries/pages/settings/project/_page.svelte.js-MxvNqYlQ.js +1269 -0
- package/build/server/chunks/entries/pages/settings/wall/_page.server.ts.js-Bt5siY_N.js +12 -0
- package/build/server/chunks/entries/pages/settings/wall/_page.svelte.js-CMR4zSAt.js +43 -0
- package/build/server/chunks/entries/pages/t/_key_/_layout.server.ts.js-W6YPvOCA.js +124 -0
- package/build/server/chunks/entries/pages/t/_key_/_layout.svelte.js-CK0PiWsz.js +543 -0
- package/build/server/chunks/entries/pages/t/_key_/_page.server.ts.js-CdB7v0WX.js +15 -0
- package/build/server/chunks/entries/pages/t/_key_/_tab_/_page.server.ts.js-Bksaje8R.js +75 -0
- package/build/server/chunks/entries/pages/t/_key_/_tab_/_page.svelte.js-9OQ2eQxu.js +4607 -0
- package/build/server/chunks/entries/pages/team/_page.svelte.js-BdUSXC04.js +18 -0
- package/build/server/chunks/entries/pages/team/_page.ts.js-DfhJmoZI.js +20 -0
- package/build/server/chunks/entries/pages/workspace/_page.svelte.js-DLaWe23r.js +579 -0
- package/build/server/chunks/handler-Dlwmumt5.js +1735 -0
- package/build/server/chunks/index.js-BX0fZD5G.js +3701 -0
- package/build/server/chunks/manifest.js-B2Of6Dj7.js +761 -0
- package/build/server/chunks/nodes/0.js-DSzhdY0D.js +87 -0
- package/build/server/chunks/nodes/1.js-j4osL1br.js +9 -0
- package/build/server/chunks/nodes/10.js-jkvevEFY.js +75 -0
- package/build/server/chunks/nodes/11.js-plyiDP2n.js +72 -0
- package/build/server/chunks/nodes/12.js-DwtvDAyM.js +78 -0
- package/build/server/chunks/nodes/13.js-BpxwqFh4.js +72 -0
- package/build/server/chunks/nodes/14.js-B5iNIKGy.js +15 -0
- package/build/server/chunks/nodes/15.js-CXCAqUsG.js +15 -0
- package/build/server/chunks/nodes/16.js-oxkLEH0n.js +76 -0
- package/build/server/chunks/nodes/17.js-B-ZJEo9K.js +76 -0
- package/build/server/chunks/nodes/18.js-C0OUCEux.js +9 -0
- package/build/server/chunks/nodes/19.js-M8EAQJdW.js +76 -0
- package/build/server/chunks/nodes/2.js-ZedduK-3.js +33 -0
- package/build/server/chunks/nodes/20.js-BHvsLNjD.js +72 -0
- package/build/server/chunks/nodes/21.js-eOaW4si1.js +76 -0
- package/build/server/chunks/nodes/22.js-CbJ6tQSs.js +38 -0
- package/build/server/chunks/nodes/23.js-DXk8ejlx.js +81 -0
- package/build/server/chunks/nodes/24.js-C4qGJc4X.js +33 -0
- package/build/server/chunks/nodes/25.js-Cal8uT5V.js +21 -0
- package/build/server/chunks/nodes/26.js-Cp5jBcrN.js +80 -0
- package/build/server/chunks/nodes/27.js-Do55o_cb.js +17 -0
- package/build/server/chunks/nodes/28.js-SNz3QVix.js +9 -0
- package/build/server/chunks/nodes/3.js-DyivQ5dN.js +75 -0
- package/build/server/chunks/nodes/4.js-BGgTTQFR.js +9 -0
- package/build/server/chunks/nodes/5.js-DQYA2BBI.js +31 -0
- package/build/server/chunks/nodes/6.js-BVTi2KFL.js +24 -0
- package/build/server/chunks/nodes/7.js-CnprIn3p.js +12 -0
- package/build/server/chunks/nodes/8.js-Bdicn369.js +50 -0
- package/build/server/chunks/nodes/9.js-DVclPGXf.js +9 -0
- package/build/shims.js +33 -0
- package/dist/THIRD-PARTY-NOTICES.md +659 -0
- package/dist/detect-BmI_gskA.js +585 -0
- package/dist/fonts/OFL.txt +92 -0
- package/dist/nolzu.js +48 -0
- package/dist/package-vezZOzhD.js +181 -0
- package/dist/shared/finish.md +110 -0
- package/dist/shared/knowledge.md +72 -0
- package/dist/shared/verdict.md +42 -0
- package/dist/skills/.gitkeep +0 -0
- package/dist/skills/nolzu-architecture/SKILL.md +140 -0
- package/dist/skills/nolzu-architecture/finish.md +110 -0
- package/dist/skills/nolzu-assess/SKILL.md +99 -0
- package/dist/skills/nolzu-assess/finish.md +110 -0
- package/dist/skills/nolzu-design/SKILL.md +115 -0
- package/dist/skills/nolzu-design/finish.md +110 -0
- package/dist/skills/nolzu-feedback/SKILL.md +107 -0
- package/dist/skills/nolzu-feedback/finish.md +110 -0
- package/dist/skills/nolzu-implement/SKILL.md +138 -0
- package/dist/skills/nolzu-implement/finish.md +110 -0
- package/dist/skills/nolzu-investigate/SKILL.md +139 -0
- package/dist/skills/nolzu-investigate/finish.md +110 -0
- package/dist/skills/nolzu-learn-repo/SKILL.md +115 -0
- package/dist/skills/nolzu-learn-repo/finish.md +110 -0
- package/dist/skills/nolzu-learn-repo/knowledge.md +72 -0
- package/dist/skills/nolzu-optimize/SKILL.md +82 -0
- package/dist/skills/nolzu-optimize/finish.md +110 -0
- package/dist/skills/nolzu-optimize/knowledge.md +72 -0
- package/dist/skills/nolzu-orient/SKILL.md +115 -0
- package/dist/skills/nolzu-orient/finish.md +110 -0
- package/dist/skills/nolzu-orient/knowledge.md +72 -0
- package/dist/skills/nolzu-plan/SKILL.md +165 -0
- package/dist/skills/nolzu-plan/finish.md +110 -0
- package/dist/skills/nolzu-pr-review/SKILL.md +150 -0
- package/dist/skills/nolzu-pr-review/finish.md +110 -0
- package/dist/skills/nolzu-qa/SKILL.md +177 -0
- package/dist/skills/nolzu-qa/finish.md +110 -0
- package/dist/skills/nolzu-qa/verdict.md +42 -0
- package/dist/skills/nolzu-refine/SKILL.md +145 -0
- package/dist/skills/nolzu-refine/finish.md +110 -0
- package/dist/skills/nolzu-research/SKILL.md +140 -0
- package/dist/skills/nolzu-research/finish.md +110 -0
- package/dist/skills/nolzu-wrapup/SKILL.md +126 -0
- package/dist/skills/nolzu-wrapup/finish.md +110 -0
- package/dist/skills/nolzu-wrapup/knowledge.md +72 -0
- package/dist/src-BG8LaXLS.js +723 -0
- package/dist/src-DPfcvRqs.js +4 -0
- package/dist/start-ItZOcBtM.js +362 -0
- package/package.json +49 -9
- package/bin/nolzu.js +0 -8
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { i as isBoardKind } from './board.js-BxL3CjB1.js';
|
|
2
|
+
import { h as boardFor, I as DEFAULTS } from './estimate.js-BHTYVTaQ.js';
|
|
3
|
+
import { g as getSetting, w as writeSetting, s as settingProblem } from './node.js-Bz2jT5wt.js';
|
|
4
|
+
import './src.js-Cm8RAH_q.js';
|
|
5
|
+
import './src2.js-CV8tsClO.js';
|
|
6
|
+
import { L as LOGIN_NOTE, f as firstRunOf } from './getting-started.js-DKbHofN5.js';
|
|
7
|
+
import { h as homePath } from './home-path.js-BXgrl3TP.js';
|
|
8
|
+
import { existsSync } from 'node:fs';
|
|
9
|
+
import { basename, dirname, join } from 'node:path';
|
|
10
|
+
import { homedir } from 'node:os';
|
|
11
|
+
import { rm, mkdir, writeFile, symlink } from 'node:fs/promises';
|
|
12
|
+
|
|
13
|
+
//#region src/lib/settings-page.ts
|
|
14
|
+
var minutes = (ms) => Math.round(ms / 6e4);
|
|
15
|
+
var RETRY_CHOICES = [{
|
|
16
|
+
id: "default",
|
|
17
|
+
waits: DEFAULTS.retryWaitsMs
|
|
18
|
+
}, {
|
|
19
|
+
id: "none",
|
|
20
|
+
waits: []
|
|
21
|
+
}];
|
|
22
|
+
var threeWaits = (stored) => DEFAULTS.retryWaitsMs.map((wait, at) => stored[at] ?? wait).concat(stored.slice(3));
|
|
23
|
+
var RETRY_BOX = /^wait([123])$/;
|
|
24
|
+
var NTH = [
|
|
25
|
+
"first",
|
|
26
|
+
"second",
|
|
27
|
+
"third"
|
|
28
|
+
];
|
|
29
|
+
function agentsFor(db) {
|
|
30
|
+
return {
|
|
31
|
+
slots: getSetting(db, "agentSlots"),
|
|
32
|
+
timeoutMinutes: minutes(getSetting(db, "runTimeoutMs")),
|
|
33
|
+
quietMinutes: minutes(getSetting(db, "quietAfterMs")),
|
|
34
|
+
keepAwake: getSetting(db, "keepAwake"),
|
|
35
|
+
waits: getSetting(db, "retryWaitsMs").map(minutes),
|
|
36
|
+
boxes: threeWaits(getSetting(db, "retryWaitsMs")).slice(0, 3).map(minutes)
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function storeSetting(db, key, value) {
|
|
40
|
+
const refused = settingProblem(db, key, value);
|
|
41
|
+
if (refused !== null) return refused;
|
|
42
|
+
writeSetting(db, key, value);
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
function saveAgentField(db, field, value) {
|
|
46
|
+
if (field === "slots") return storeSetting(db, "agentSlots", Number(value));
|
|
47
|
+
if (field === "timeout") {
|
|
48
|
+
const asked = Number(value);
|
|
49
|
+
if (!Number.isInteger(asked) || asked < 1) return "The run timeout is a whole number of minutes, one or more.";
|
|
50
|
+
return storeSetting(db, "runTimeoutMs", asked * 6e4);
|
|
51
|
+
}
|
|
52
|
+
if (field === "quiet") {
|
|
53
|
+
const asked = Number(value);
|
|
54
|
+
if (!Number.isInteger(asked) || asked < 1) return "The quiet time is a whole number of minutes, one or more.";
|
|
55
|
+
return storeSetting(db, "quietAfterMs", asked * 6e4);
|
|
56
|
+
}
|
|
57
|
+
if (field === "retry") {
|
|
58
|
+
const choice = RETRY_CHOICES.find((one) => one.id === (value === "" ? "none" : value));
|
|
59
|
+
if (choice === void 0) return `There is no retry policy ${value}. Turn the switch on for the default waits, or off for none.`;
|
|
60
|
+
return storeSetting(db, "retryWaitsMs", [...choice.waits]);
|
|
61
|
+
}
|
|
62
|
+
const box = RETRY_BOX.exec(field);
|
|
63
|
+
if (box !== null) {
|
|
64
|
+
const at = Number(box[1]) - 1;
|
|
65
|
+
const asked = Number(value);
|
|
66
|
+
if (!Number.isInteger(asked) || asked < 1) return `The ${NTH[at]} retry is a whole number of minutes, one or more.`;
|
|
67
|
+
const waits = threeWaits(getSetting(db, "retryWaitsMs"));
|
|
68
|
+
waits[at] = asked * 6e4;
|
|
69
|
+
return storeSetting(db, "retryWaitsMs", waits);
|
|
70
|
+
}
|
|
71
|
+
if (field === "keepAwake") return storeSetting(db, "keepAwake", value === "on");
|
|
72
|
+
return `There is no setting ${field} on this screen.`;
|
|
73
|
+
}
|
|
74
|
+
function knowledgeFor(db) {
|
|
75
|
+
return { review: getSetting(db, "reviewKnowledge") };
|
|
76
|
+
}
|
|
77
|
+
function saveKnowledgeField(db, field, value) {
|
|
78
|
+
if (field === "reviewKnowledge") return storeSetting(db, "reviewKnowledge", value === "on");
|
|
79
|
+
return `There is no setting ${field} on this screen.`;
|
|
80
|
+
}
|
|
81
|
+
function postSetting(db, form, save) {
|
|
82
|
+
const field = form.get("field")?.toString() ?? "";
|
|
83
|
+
const typed = form.get("value")?.toString() ?? "";
|
|
84
|
+
const message = save(db, field, typed);
|
|
85
|
+
return {
|
|
86
|
+
ok: message === null,
|
|
87
|
+
field,
|
|
88
|
+
typed,
|
|
89
|
+
message
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
var postAgents = (db, form) => postSetting(db, form, saveAgentField);
|
|
93
|
+
var postKnowledge = (db, form) => postSetting(db, form, saveKnowledgeField);
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/lib/start-at-login.ts
|
|
96
|
+
var LAUNCH_AGENT = "com.nolzu.client";
|
|
97
|
+
var xml = (text) => text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
98
|
+
function launchAgent(command, path = null) {
|
|
99
|
+
return [
|
|
100
|
+
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
|
101
|
+
"<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">",
|
|
102
|
+
"<plist version=\"1.0\">",
|
|
103
|
+
"<dict>",
|
|
104
|
+
` <key>Label</key><string>${LAUNCH_AGENT}</string>`,
|
|
105
|
+
" <key>ProgramArguments</key>",
|
|
106
|
+
" <array>",
|
|
107
|
+
...command.map((part) => ` <string>${xml(part)}</string>`),
|
|
108
|
+
" </array>",
|
|
109
|
+
...path === null ? [] : [
|
|
110
|
+
" <key>EnvironmentVariables</key>",
|
|
111
|
+
" <dict>",
|
|
112
|
+
` <key>PATH</key><string>${xml(path)}</string>`,
|
|
113
|
+
" </dict>"
|
|
114
|
+
],
|
|
115
|
+
" <key>RunAtLoad</key><true/>",
|
|
116
|
+
"</dict>",
|
|
117
|
+
"</plist>",
|
|
118
|
+
""
|
|
119
|
+
].join("\n");
|
|
120
|
+
}
|
|
121
|
+
var UNIT_ESCAPES = {
|
|
122
|
+
"\\": "\\\\",
|
|
123
|
+
"\"": "\\\"",
|
|
124
|
+
"%": "%%",
|
|
125
|
+
$: "$$"
|
|
126
|
+
};
|
|
127
|
+
function systemdUnit(command, path = null) {
|
|
128
|
+
const word = (part) => `"${part.replace(/[\\"%$]/g, (one) => UNIT_ESCAPES[one] ?? one)}"`;
|
|
129
|
+
const setting = (part) => `"${part.replace(/[\\"%]/g, (one) => UNIT_ESCAPES[one] ?? one)}"`;
|
|
130
|
+
return [
|
|
131
|
+
"[Unit]",
|
|
132
|
+
"Description=Nolzu",
|
|
133
|
+
"# Written by Start Nolzu when I log in, in Settings. Turn that off to remove it.",
|
|
134
|
+
"",
|
|
135
|
+
"[Service]",
|
|
136
|
+
...path === null ? [] : [`Environment=${setting(`PATH=${path}`)}`],
|
|
137
|
+
`ExecStart=${command.map(word).join(" ")}`,
|
|
138
|
+
"",
|
|
139
|
+
"[Install]",
|
|
140
|
+
"WantedBy=default.target",
|
|
141
|
+
""
|
|
142
|
+
].join("\n");
|
|
143
|
+
}
|
|
144
|
+
var ITEMS = {
|
|
145
|
+
darwin: {
|
|
146
|
+
at: [
|
|
147
|
+
"Library",
|
|
148
|
+
"LaunchAgents",
|
|
149
|
+
`${LAUNCH_AGENT}.plist`
|
|
150
|
+
],
|
|
151
|
+
file: launchAgent
|
|
152
|
+
},
|
|
153
|
+
linux: {
|
|
154
|
+
at: [
|
|
155
|
+
".config",
|
|
156
|
+
"systemd",
|
|
157
|
+
"user",
|
|
158
|
+
"nolzu.service"
|
|
159
|
+
],
|
|
160
|
+
file: systemdUnit
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
function loginItemPath(platform, home) {
|
|
164
|
+
const item = ITEMS[platform];
|
|
165
|
+
return item === void 0 ? null : join(home, ...item.at);
|
|
166
|
+
}
|
|
167
|
+
function itemFiles(platform, home) {
|
|
168
|
+
const path = loginItemPath(platform, home);
|
|
169
|
+
if (path === null) return [];
|
|
170
|
+
return platform === "linux" ? [path, join(dirname(path), "default.target.wants", basename(path))] : [path];
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* What the item runs. A copy npx started sits in npm's cache, `_npx/<hash>/node_modules`, which npm may
|
|
174
|
+
* clear and which never updates, so the item runs npx with @latest instead, as the person starts it.
|
|
175
|
+
* The item has no shell, so it names npx by its path beside node, and `path` puts node's folder on PATH
|
|
176
|
+
* for the nolzu command npx starts with `#!/usr/bin/env node`. A global install or a clone runs as it is.
|
|
177
|
+
*/
|
|
178
|
+
function loginCommand(node, bin) {
|
|
179
|
+
if (!bin.split(/[\\/]/).includes("_npx")) return {
|
|
180
|
+
command: [
|
|
181
|
+
node,
|
|
182
|
+
bin,
|
|
183
|
+
"--no-open"
|
|
184
|
+
],
|
|
185
|
+
path: null
|
|
186
|
+
};
|
|
187
|
+
return {
|
|
188
|
+
command: [
|
|
189
|
+
node,
|
|
190
|
+
join(dirname(node), "npx"),
|
|
191
|
+
"--yes",
|
|
192
|
+
"nolzu@latest",
|
|
193
|
+
"--no-open"
|
|
194
|
+
],
|
|
195
|
+
path: `${dirname(node)}:/usr/bin:/bin:/usr/sbin:/sbin`
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* The login item of this machine, or null where On cannot work, so neither the rail nor the switch offers it.
|
|
200
|
+
*
|
|
201
|
+
* Only for a server the nolzu command started, so the item starts that same command, by absolute
|
|
202
|
+
* paths, with `--no-open` (`loginCommand`). A development server is not one, and neither is an npx
|
|
203
|
+
* copy with no npx beside node. No system command runs on any system:
|
|
204
|
+
* launchd and the systemd user manager each read their folder by themselves at the next login.
|
|
205
|
+
*/
|
|
206
|
+
function systemLoginItem(platform = process.platform, home = homedir(), argv = process.argv, node = process.execPath) {
|
|
207
|
+
const bin = argv[1];
|
|
208
|
+
const item = ITEMS[platform];
|
|
209
|
+
const [path, link] = itemFiles(platform, home);
|
|
210
|
+
if (item === void 0 || path === void 0 || bin === void 0 || !/^nolzu(\.js)?$/.test(basename(bin))) return null;
|
|
211
|
+
const run = loginCommand(node, bin);
|
|
212
|
+
if (run.path !== null && !existsSync(run.command[1] ?? "")) return null;
|
|
213
|
+
return async () => {
|
|
214
|
+
try {
|
|
215
|
+
await mkdir(dirname(path), { recursive: true });
|
|
216
|
+
await writeFile(path, item.file(run.command, run.path));
|
|
217
|
+
if (link !== void 0) {
|
|
218
|
+
await mkdir(dirname(link), { recursive: true });
|
|
219
|
+
await rm(link, { force: true });
|
|
220
|
+
await symlink(path, link);
|
|
221
|
+
}
|
|
222
|
+
return null;
|
|
223
|
+
} catch (error) {
|
|
224
|
+
return `Nolzu could not write the login item. ${error.message}`;
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
async function turnOffAtLogin(platform = process.platform, home = homedir()) {
|
|
229
|
+
try {
|
|
230
|
+
for (const file of itemFiles(platform, home)) await rm(file, { force: true });
|
|
231
|
+
return null;
|
|
232
|
+
} catch (error) {
|
|
233
|
+
return `Nolzu could not remove the login item. ${error.message}`;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
function loginSwitch(platform = process.platform, home = homedir(), argv = process.argv) {
|
|
237
|
+
const files = itemFiles(platform, home);
|
|
238
|
+
return {
|
|
239
|
+
on: files.length > 0 && files.every((file) => existsSync(file)),
|
|
240
|
+
canTurnOn: systemLoginItem(platform, home, argv) !== null,
|
|
241
|
+
path: files[0] === void 0 ? null : homePath(files[0], home)
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
async function turnOnAtLogin(db, item) {
|
|
245
|
+
if (item === null) return "Starting at login works only for a Nolzu the nolzu command started, on macOS or Linux.";
|
|
246
|
+
const refused = await item();
|
|
247
|
+
if (refused !== null) return refused;
|
|
248
|
+
const seen = getSetting(db, "seenNotes");
|
|
249
|
+
return seen.includes("start-at-login") ? null : storeSetting(db, "seenNotes", [...seen, LOGIN_NOTE]);
|
|
250
|
+
}
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region src/lib/coach.ts
|
|
253
|
+
var answer = (body, status) => new Response(JSON.stringify(body), {
|
|
254
|
+
status,
|
|
255
|
+
headers: { "content-type": "application/json" }
|
|
256
|
+
});
|
|
257
|
+
async function closeNote(db, request) {
|
|
258
|
+
let note = null;
|
|
259
|
+
try {
|
|
260
|
+
note = (await request.json())?.note ?? null;
|
|
261
|
+
} catch {}
|
|
262
|
+
if (typeof note !== "string") return answer({ message: "Closing a coach note needs the name of the note." }, 400);
|
|
263
|
+
const seen = getSetting(db, "seenNotes");
|
|
264
|
+
const refused = seen.includes(note) ? null : storeSetting(db, "seenNotes", [...seen, note]);
|
|
265
|
+
return refused === null ? answer({ ok: true }, 200) : answer({ message: refused }, 400);
|
|
266
|
+
}
|
|
267
|
+
var personStarted = (db) => db.prepare("SELECT 1 FROM card_events WHERE who = 'you' AND started_phase IS NOT NULL LIMIT 1").get() !== void 0;
|
|
268
|
+
/**
|
|
269
|
+
* What the first run shows in the rail and on the board, read fresh on each load and each Now snapshot.
|
|
270
|
+
*
|
|
271
|
+
* The first card and the first drag come off their own rows: a card, and a move by a person that
|
|
272
|
+
* started a phase (a drag, Move forward or Add and start, never the chain). The plain summary read and
|
|
273
|
+
* the first push leave no row, so `markStep` records them.
|
|
274
|
+
*/
|
|
275
|
+
function firstRun(db, canStartAtLogin = systemLoginItem() !== null) {
|
|
276
|
+
const first = db.prepare("SELECT board FROM cards ORDER BY rowid LIMIT 1").get();
|
|
277
|
+
const kind = first !== void 0 && isBoardKind(first.board) ? first.board : "delivery";
|
|
278
|
+
const board = boardFor(kind, getSetting(db, "deliveryFlow"));
|
|
279
|
+
return firstRunOf({
|
|
280
|
+
card: first !== void 0,
|
|
281
|
+
dragTo: board.stages.find((stage) => stage.role === "agent")?.label ?? "Refine",
|
|
282
|
+
dragged: personStarted(db),
|
|
283
|
+
recorded: getSetting(db, "gettingStarted"),
|
|
284
|
+
seen: getSetting(db, "seenNotes"),
|
|
285
|
+
canStartAtLogin
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
function markStep(db, step) {
|
|
289
|
+
const done = getSetting(db, "gettingStarted");
|
|
290
|
+
if (done === null || done.includes(step)) return false;
|
|
291
|
+
writeSetting(db, "gettingStarted", [...done, step]);
|
|
292
|
+
return true;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export { postKnowledge as a, postAgents as b, agentsFor as c, turnOnAtLogin as d, systemLoginItem as e, firstRun as f, closeNote as g, knowledgeFor as k, loginSwitch as l, markStep as m, personStarted as p, storeSetting as s, turnOffAtLogin as t };
|
|
296
|
+
//# sourceMappingURL=coach.js-BhNB14rV.js.map
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import './src.js-Cm8RAH_q.js';
|
|
2
|
+
|
|
3
|
+
//#region ../../packages/ui/src/ticket/qa.ts
|
|
4
|
+
var NOT_REPORTED = "Not reported";
|
|
5
|
+
var NO_OWN = "No repository of this card has its own start commands.";
|
|
6
|
+
var BUSY_STATES = ["loading", "unloading"];
|
|
7
|
+
var GOING = [
|
|
8
|
+
"queued",
|
|
9
|
+
"waiting_lane",
|
|
10
|
+
"waiting_review",
|
|
11
|
+
"running",
|
|
12
|
+
"retrying"
|
|
13
|
+
];
|
|
14
|
+
var pendingOf = (input) => input.hasStatus && input.statusPending === true;
|
|
15
|
+
function statusLines(input) {
|
|
16
|
+
if (pendingOf(input)) return {
|
|
17
|
+
status: null,
|
|
18
|
+
statusNote: null,
|
|
19
|
+
command: null
|
|
20
|
+
};
|
|
21
|
+
if (!input.hasStatus) return {
|
|
22
|
+
status: null,
|
|
23
|
+
statusNote: `${NOT_REPORTED}. None of this card's own commands has a Status command.`,
|
|
24
|
+
command: null
|
|
25
|
+
};
|
|
26
|
+
if (input.statusProblem !== null) return {
|
|
27
|
+
status: null,
|
|
28
|
+
statusNote: input.statusProblem,
|
|
29
|
+
command: null
|
|
30
|
+
};
|
|
31
|
+
if (input.status === null) return {
|
|
32
|
+
status: null,
|
|
33
|
+
statusNote: `${NOT_REPORTED}. The status command has not run yet.`,
|
|
34
|
+
command: null
|
|
35
|
+
};
|
|
36
|
+
const output = input.status.output.trim();
|
|
37
|
+
const command = input.status.command;
|
|
38
|
+
if (input.status.timedOut) return {
|
|
39
|
+
status: output === "" ? null : output,
|
|
40
|
+
statusNote: "The status command was still running after the timeout, so it was stopped.",
|
|
41
|
+
command
|
|
42
|
+
};
|
|
43
|
+
if (input.status.code !== 0) return {
|
|
44
|
+
status: output === "" ? null : output,
|
|
45
|
+
statusNote: `The status command exited ${input.status.code}.`,
|
|
46
|
+
command
|
|
47
|
+
};
|
|
48
|
+
return {
|
|
49
|
+
status: output === "" ? null : output,
|
|
50
|
+
statusNote: output === "" ? "The status command printed nothing." : null,
|
|
51
|
+
command
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function buttons(input, state) {
|
|
55
|
+
const lane = input.stackLane === null ? null : input.stackLane === input.cardKey ? "This card is running QA, which owns the app until it ends." : `${input.stackLane} is running QA, which owns the app until it ends.`;
|
|
56
|
+
const mid = BUSY_STATES.includes(state) ? "A start or stop of this card's app is already running." : null;
|
|
57
|
+
return [
|
|
58
|
+
{
|
|
59
|
+
action: "load",
|
|
60
|
+
label: "Start",
|
|
61
|
+
refused: lane ?? mid ?? (input.hasLoad ? null : NO_OWN),
|
|
62
|
+
note: null
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
action: "unload",
|
|
66
|
+
label: "Stop",
|
|
67
|
+
refused: lane ?? mid ?? (input.hasUnload ? state === "up" || state === "failed" ? null : "Nolzu has started no app for this card. Press Force to run the Stop commands anyway." : NO_OWN),
|
|
68
|
+
note: null
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
action: "force",
|
|
72
|
+
label: "Force",
|
|
73
|
+
refused: lane ?? (input.hasUnload ? null : NO_OWN),
|
|
74
|
+
note: "Runs the Stop commands, whatever the state says."
|
|
75
|
+
}
|
|
76
|
+
];
|
|
77
|
+
}
|
|
78
|
+
function verdictPanel(input) {
|
|
79
|
+
const screenshotNote = input.screenshots.length > 0 ? null : input.hasBrowser ? "This run took no screenshots." : "No screenshots. QA takes them once a browser is set up for this project.";
|
|
80
|
+
const checklist = input.reportText == null ? null : parseQaChecklist(input.reportText);
|
|
81
|
+
const bare = {
|
|
82
|
+
verdict: null,
|
|
83
|
+
reason: null,
|
|
84
|
+
runId: input.run?.id ?? null,
|
|
85
|
+
report: input.report,
|
|
86
|
+
checklist,
|
|
87
|
+
screenshots: input.screenshots,
|
|
88
|
+
screenshotNote
|
|
89
|
+
};
|
|
90
|
+
const run = input.run;
|
|
91
|
+
if (run === null) return {
|
|
92
|
+
...bare,
|
|
93
|
+
note: "QA has not run for this card yet."
|
|
94
|
+
};
|
|
95
|
+
if (run.verdict !== null) return {
|
|
96
|
+
...bare,
|
|
97
|
+
verdict: run.verdict,
|
|
98
|
+
reason: run.verdictReason,
|
|
99
|
+
note: null
|
|
100
|
+
};
|
|
101
|
+
if (run.verdictReason !== null) return {
|
|
102
|
+
...bare,
|
|
103
|
+
note: run.verdictReason
|
|
104
|
+
};
|
|
105
|
+
if (run.state !== null && GOING.includes(run.state)) return {
|
|
106
|
+
...bare,
|
|
107
|
+
note: "QA is running. The verdict comes when it ends."
|
|
108
|
+
};
|
|
109
|
+
if (run.state === "stopped") return {
|
|
110
|
+
...bare,
|
|
111
|
+
note: "The QA run was stopped, so it decided nothing."
|
|
112
|
+
};
|
|
113
|
+
return {
|
|
114
|
+
...bare,
|
|
115
|
+
note: "The QA run ended before it decided anything. Its log says how far it got."
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
var STACK_WORDS = {
|
|
119
|
+
off: "Stopped",
|
|
120
|
+
up: "Up",
|
|
121
|
+
loading: "Starting",
|
|
122
|
+
unloading: "Stopping",
|
|
123
|
+
failed: "Failed"
|
|
124
|
+
};
|
|
125
|
+
var FITS = {
|
|
126
|
+
off: ["load"],
|
|
127
|
+
failed: ["load", "unload"],
|
|
128
|
+
up: ["unload", "force"],
|
|
129
|
+
loading: ["force"],
|
|
130
|
+
unloading: ["force"]
|
|
131
|
+
};
|
|
132
|
+
function qaView(input) {
|
|
133
|
+
const state = input.stack?.state ?? "off";
|
|
134
|
+
const reason = input.stack?.reason ?? (state === "off" && !input.hasLoad ? `${NO_OWN} Add them in the QA question, or under Start the app in Settings, Project.` : null);
|
|
135
|
+
const lines = statusLines(input);
|
|
136
|
+
const command = input.loadCommand?.trim() || null;
|
|
137
|
+
const said = command !== null && state === "off" && reason === "The app was stopped after the run." ? {
|
|
138
|
+
text: "Started with ",
|
|
139
|
+
command,
|
|
140
|
+
tail: " for QA, stopped after."
|
|
141
|
+
} : command !== null && state === "up" && reason === null ? {
|
|
142
|
+
text: "Started with ",
|
|
143
|
+
command,
|
|
144
|
+
tail: "."
|
|
145
|
+
} : (reason ?? lines.statusNote) === null ? null : {
|
|
146
|
+
text: reason ?? lines.statusNote ?? "",
|
|
147
|
+
command: null,
|
|
148
|
+
tail: ""
|
|
149
|
+
};
|
|
150
|
+
return {
|
|
151
|
+
cardKey: input.cardKey,
|
|
152
|
+
stack: {
|
|
153
|
+
state,
|
|
154
|
+
apps: input.apps ?? [],
|
|
155
|
+
reason,
|
|
156
|
+
...lines,
|
|
157
|
+
pending: pendingOf(input),
|
|
158
|
+
buttons: buttons(input, state),
|
|
159
|
+
word: STACK_WORDS[state],
|
|
160
|
+
said,
|
|
161
|
+
fits: FITS[state]
|
|
162
|
+
},
|
|
163
|
+
verdict: verdictPanel(input)
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
var QA_RESULTS = [
|
|
167
|
+
"pass",
|
|
168
|
+
"fail",
|
|
169
|
+
"not reached"
|
|
170
|
+
];
|
|
171
|
+
var HEADING = /^ {0,3}(#{1,6})\s+(.*)$/;
|
|
172
|
+
var ROW = /^\d+[.)]\s+([^:]+):\s*(.*)$/;
|
|
173
|
+
var REASON = /^reason\s*:\s*(.*)$/i;
|
|
174
|
+
var RAN = /^(?:ran|how)\s*:\s*(.*)$/i;
|
|
175
|
+
var KEPT = {
|
|
176
|
+
evidence: /^evidence\s*:\s*(.*)$/i,
|
|
177
|
+
expected: /^expected\s*:\s*(.*)$/i,
|
|
178
|
+
actual: /^actual\s*:\s*(.*)$/i
|
|
179
|
+
};
|
|
180
|
+
var AC = /^(AC\d+)(?:\s*\((?:must|should)\))?\s*:\s*(.+)$/i;
|
|
181
|
+
function splitAc(step) {
|
|
182
|
+
const found = AC.exec(step);
|
|
183
|
+
return found === null ? {
|
|
184
|
+
ac: null,
|
|
185
|
+
step
|
|
186
|
+
} : {
|
|
187
|
+
ac: (found[1] ?? "").toUpperCase(),
|
|
188
|
+
step: (found[2] ?? "").trim()
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
var isResult = (word) => QA_RESULTS.includes(word);
|
|
192
|
+
function sectionTwo(report) {
|
|
193
|
+
const lines = report.split(/\r?\n/);
|
|
194
|
+
let level = 0;
|
|
195
|
+
const start = lines.findIndex((line) => {
|
|
196
|
+
const heading = HEADING.exec(line);
|
|
197
|
+
if (heading === null || !/^(2\b|what qa checked)/i.test(heading[2] ?? "")) return false;
|
|
198
|
+
level = heading[1]?.length ?? 0;
|
|
199
|
+
return true;
|
|
200
|
+
});
|
|
201
|
+
if (start === -1) return null;
|
|
202
|
+
const after = lines.slice(start + 1);
|
|
203
|
+
const end = after.findIndex((line) => (HEADING.exec(line)?.[1]?.length ?? 7) <= level);
|
|
204
|
+
return (end === -1 ? after : after.slice(0, end)).join("\n").trim();
|
|
205
|
+
}
|
|
206
|
+
function parseQaChecklist(report) {
|
|
207
|
+
const section = sectionTwo(report);
|
|
208
|
+
if (section === null || section === "") return null;
|
|
209
|
+
const drifted = {
|
|
210
|
+
rows: null,
|
|
211
|
+
text: section
|
|
212
|
+
};
|
|
213
|
+
const rows = [];
|
|
214
|
+
for (const line of section.split("\n")) {
|
|
215
|
+
const trimmed = line.trim();
|
|
216
|
+
if (trimmed === "") continue;
|
|
217
|
+
const row = ROW.exec(trimmed);
|
|
218
|
+
if (row !== null) {
|
|
219
|
+
const word = (row[1] ?? "").trim().toLowerCase().replace(/\s+/g, " ");
|
|
220
|
+
const step = (row[2] ?? "").trim();
|
|
221
|
+
if (!isResult(word) || step === "") return drifted;
|
|
222
|
+
const split = splitAc(step);
|
|
223
|
+
rows.push({
|
|
224
|
+
step: split.step,
|
|
225
|
+
result: word,
|
|
226
|
+
reason: null,
|
|
227
|
+
ran: null,
|
|
228
|
+
...split.ac === null ? {} : { ac: split.ac }
|
|
229
|
+
});
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
const last = rows.at(-1);
|
|
233
|
+
if (last === void 0 || !/^\s/.test(line)) return drifted;
|
|
234
|
+
const reason = REASON.exec(trimmed)?.[1]?.trim();
|
|
235
|
+
if (last.reason === null && reason) last.reason = reason;
|
|
236
|
+
const ran = RAN.exec(trimmed)?.[1]?.trim();
|
|
237
|
+
if (last.ran === null && ran) last.ran = ran;
|
|
238
|
+
for (const [field, pattern] of Object.entries(KEPT)) {
|
|
239
|
+
const value = pattern.exec(trimmed)?.[1]?.trim();
|
|
240
|
+
if (last[field] === void 0 && value) last[field] = value;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return {
|
|
244
|
+
rows,
|
|
245
|
+
text: null
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* The check a screenshot shows, read off the number the qa skill puts first in its name, as in
|
|
250
|
+
* `2-api-stopped.png`. Null for a name with no number, and for a number the checklist has no row for.
|
|
251
|
+
*/
|
|
252
|
+
function checkOfShot(name, checklist) {
|
|
253
|
+
const number = Number(/^(\d+)-/.exec(name)?.[1] ?? NaN);
|
|
254
|
+
const row = checklist?.rows?.[number - 1];
|
|
255
|
+
return row === void 0 ? null : {
|
|
256
|
+
number,
|
|
257
|
+
step: row.step,
|
|
258
|
+
result: row.result
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
var SHORT_REASON = 32;
|
|
262
|
+
/**
|
|
263
|
+
* The result word of a checklist row, with a short fail reason beside it, and the line to put under
|
|
264
|
+
* it: a reason that did not fit beside, else what the run did.
|
|
265
|
+
*/
|
|
266
|
+
function checkWord(row) {
|
|
267
|
+
if (row.result === "fail" && row.reason !== null && row.reason.length <= SHORT_REASON) return {
|
|
268
|
+
word: `fail, ${row.reason}`,
|
|
269
|
+
under: row.ran
|
|
270
|
+
};
|
|
271
|
+
return {
|
|
272
|
+
word: row.result,
|
|
273
|
+
under: row.reason ?? row.ran
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
var COUNTED = {
|
|
277
|
+
pass: "passed",
|
|
278
|
+
fail: "failed",
|
|
279
|
+
"not reached": "not reached"
|
|
280
|
+
};
|
|
281
|
+
/** The line over the checklist, as in "5 passed, 1 failed, 1 not reached". A result no row has is left out. */
|
|
282
|
+
function checkCount(rows) {
|
|
283
|
+
return QA_RESULTS.map((result) => [rows.filter((row) => row.result === result).length, COUNTED[result]]).filter(([count]) => count > 0).map(([count, word]) => `${count} ${word}`).join(", ");
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Where each comment of one file shows in its current diff, by the index of the line it goes under.
|
|
287
|
+
* A comment is matched by the line's text as it was, nearest its saved number, so an edit above it
|
|
288
|
+
* moves it with its line. A comment whose line is gone from the diff is outdated and goes at the end
|
|
289
|
+
* of the file, never dropped. A removed line is no line of the folder, so nothing is pinned to it.
|
|
290
|
+
*/
|
|
291
|
+
function placeComments(lines, comments) {
|
|
292
|
+
const at = /* @__PURE__ */ new Map();
|
|
293
|
+
const outdated = [];
|
|
294
|
+
for (const comment of comments) {
|
|
295
|
+
let best = -1;
|
|
296
|
+
lines.forEach((line, index) => {
|
|
297
|
+
if (line.new === null || line.code !== comment.lineText) return;
|
|
298
|
+
const far = Math.abs(line.new - comment.line);
|
|
299
|
+
if (far <= 50 && (best === -1 || far < Math.abs((lines[best]?.new ?? 0) - comment.line))) best = index;
|
|
300
|
+
});
|
|
301
|
+
if (best === -1) outdated.push(comment);
|
|
302
|
+
else at.set(best, [...at.get(best) ?? [], comment]);
|
|
303
|
+
}
|
|
304
|
+
return {
|
|
305
|
+
at,
|
|
306
|
+
outdated
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export { placeComments as a, checkOfShot as b, checkWord as c, checkCount as d, parseQaChecklist as p, qaView as q };
|
|
311
|
+
//# sourceMappingURL=comments.js-1nWJQptB.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
function subjectWarning(message) {
|
|
2
|
+
const subject = (message.replace(/\r\n/g, "\n").split("\n").find((line) => line.trim() !== "") ?? "").trim();
|
|
3
|
+
if (subject.length <= 72) return null;
|
|
4
|
+
return `The subject line is ${subject.length} characters. Git takes it, but GitHub cuts commit titles after 72 characters, and one-line logs such as git log --oneline get hard to read. If you can, keep the subject short and put the detail in the body, under a blank line.`;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { subjectWarning as s };
|
|
8
|
+
//# sourceMappingURL=commit-message.js-CMcNZUZw.js.map
|