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,91 @@
|
|
|
1
|
+
import { B as BOARD_LABELS, i as isBoardKind } from './board.js-BxL3CjB1.js';
|
|
2
|
+
import { ad as SMALL_CHAINS, h as boardFor } from './estimate.js-BHTYVTaQ.js';
|
|
3
|
+
import { g as getSetting } from './node.js-Bz2jT5wt.js';
|
|
4
|
+
import './src.js-Cm8RAH_q.js';
|
|
5
|
+
import './src2.js-CV8tsClO.js';
|
|
6
|
+
import { s as storeSetting } from './coach.js-BhNB14rV.js';
|
|
7
|
+
import { s as suggestAfter, p as planDecisions } from './chain.js-CJFRywIC.js';
|
|
8
|
+
|
|
9
|
+
//#region src/lib/chain-store.ts
|
|
10
|
+
var DELIVERY = SMALL_CHAINS.delivery;
|
|
11
|
+
/**
|
|
12
|
+
* What Now's suggestion slot shows, read from stored events only: Delivery's moves in and out of Plan,
|
|
13
|
+
* and the start time of each plan run.
|
|
14
|
+
*
|
|
15
|
+
* ponytail: every Now read scans the plan moves and runs of every Delivery card. They grow by a few
|
|
16
|
+
* rows per card, so this stays small; keep a running count in a table if a project ever shows it.
|
|
17
|
+
*/
|
|
18
|
+
function chainView(db) {
|
|
19
|
+
if (getSetting(db, "chainBoards").includes("delivery")) return {
|
|
20
|
+
on: true,
|
|
21
|
+
approved: null
|
|
22
|
+
};
|
|
23
|
+
const phase = boardFor("delivery", getSetting(db, "deliveryFlow")).stages.find((stage) => stage.id === DELIVERY.from)?.phase ?? DELIVERY.from;
|
|
24
|
+
const moves = db.prepare(`SELECT e.id, e.card_key AS key, e.from_stage AS "from", e.to_stage AS "to", e.who, e.started_phase AS startedPhase, e.at
|
|
25
|
+
FROM card_events e JOIN cards c ON c.key = e.card_key
|
|
26
|
+
WHERE c.board = 'delivery' AND (e.from_stage = ? OR e.to_stage = ?) ORDER BY e.id`).all(DELIVERY.from, DELIVERY.from);
|
|
27
|
+
const runs = db.prepare(`SELECT r.card_key AS key, coalesce(r.started_at, r.ended_at) AS at FROM runs r JOIN cards c ON c.key = r.card_key WHERE c.board = 'delivery' AND r.phase = ?`).all(phase);
|
|
28
|
+
return {
|
|
29
|
+
on: false,
|
|
30
|
+
approved: suggestAfter(planDecisions(moves, runs, DELIVERY), getSetting(db, "chainNotNow"))
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
var answer = (body, status) => new Response(JSON.stringify(body), {
|
|
34
|
+
status,
|
|
35
|
+
headers: { "content-type": "application/json" }
|
|
36
|
+
});
|
|
37
|
+
var newestMove = (db) => db.prepare("SELECT coalesce(max(id), 0) AS id FROM card_events").get().id;
|
|
38
|
+
/**
|
|
39
|
+
* The suggestion's two buttons and the off switch, as POST /api/chain.
|
|
40
|
+
*
|
|
41
|
+
* `{ board, on }` turns the chain on or off for one board. `{ notNow: true }` hides the suggestion. Off
|
|
42
|
+
* leaves the suggestion free to show again, because it is the only place the chain is turned back on.
|
|
43
|
+
* Every open Now hears the change, because the slot draws what the stream says.
|
|
44
|
+
*/
|
|
45
|
+
async function writeChain(live, request) {
|
|
46
|
+
let asked = {};
|
|
47
|
+
try {
|
|
48
|
+
const parsed = await request.json();
|
|
49
|
+
if (typeof parsed === "object" && parsed !== null) asked = parsed;
|
|
50
|
+
} catch {}
|
|
51
|
+
const db = live.db;
|
|
52
|
+
const { board, on, notNow } = asked;
|
|
53
|
+
let refused;
|
|
54
|
+
if (notNow === true) refused = storeSetting(db, "chainNotNow", newestMove(db));
|
|
55
|
+
else if (typeof board === "string" && isBoardKind(board) && typeof on === "boolean") {
|
|
56
|
+
if (!Object.hasOwn(SMALL_CHAINS, board)) return answer({ message: `The ${BOARD_LABELS[board]} board has no chain to turn on.` }, 400);
|
|
57
|
+
const others = getSetting(db, "chainBoards").filter((kind) => kind !== board);
|
|
58
|
+
refused = storeSetting(db, "chainBoards", on ? [...others, board] : others);
|
|
59
|
+
} else return answer({ message: "A chain change needs a board and on or off, or Not now." }, 400);
|
|
60
|
+
if (refused !== null) return answer({ message: refused }, 400);
|
|
61
|
+
live.changed();
|
|
62
|
+
return answer({ ok: true }, 200);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The card's tick on its Settings tab, "Go on to Implement after Plan" (T46), or null where the tab draws
|
|
66
|
+
* none: a board with no chain, or one the person has not turned the chain on for. A ticked card stores
|
|
67
|
+
* the size small, the value `smallChain` reads, so the column the chain always read keeps its meaning.
|
|
68
|
+
*/
|
|
69
|
+
function cardChain(db, key) {
|
|
70
|
+
const card = db.prepare("SELECT board, size FROM cards WHERE key = ?").get(key);
|
|
71
|
+
if (card === void 0 || !Object.hasOwn(SMALL_CHAINS, card.board) || !getSetting(db, "chainBoards").includes(card.board)) return null;
|
|
72
|
+
return { ticked: card.size === "small" };
|
|
73
|
+
}
|
|
74
|
+
async function saveCardChain(live, key, request) {
|
|
75
|
+
let on;
|
|
76
|
+
try {
|
|
77
|
+
on = (await request.json())?.on;
|
|
78
|
+
} catch {
|
|
79
|
+
on = void 0;
|
|
80
|
+
}
|
|
81
|
+
if (typeof on !== "boolean") return answer({ message: "Send on as true or false." }, 400);
|
|
82
|
+
const card = live.db.prepare("SELECT board FROM cards WHERE key = ?").get(key);
|
|
83
|
+
if (card === void 0) return answer({ message: `There is no card ${key}, so there is nothing to tick.` }, 404);
|
|
84
|
+
if (!Object.hasOwn(SMALL_CHAINS, card.board)) return answer({ message: `The ${BOARD_LABELS[card.board]} board has no chain to tick.` }, 400);
|
|
85
|
+
live.db.prepare("UPDATE cards SET size = ? WHERE key = ?").run(on ? "small" : null, key);
|
|
86
|
+
live.changed();
|
|
87
|
+
return answer({ ok: true }, 200);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export { cardChain as a, chainView as c, saveCardChain as s, writeChain as w };
|
|
91
|
+
//# sourceMappingURL=chain-store.js-D42m8DUo.js.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every plan a person decided, oldest first.
|
|
3
|
+
*
|
|
4
|
+
* A round is the time a card spends in the chain's first stage after a forward move started its phase.
|
|
5
|
+
* The person's move out of it decides: on to the next stage is an approval, and anything else sends
|
|
6
|
+
* the plan back. An approval counts as unchanged when the round held one run of the phase, because an
|
|
7
|
+
* answer, a discussion message and a retry each start one more. A plan edited by hand outside Nolzu
|
|
8
|
+
* leaves no event, so it reads as unchanged.
|
|
9
|
+
*
|
|
10
|
+
* `moves` come in id order, and `runs` are the start times of the phase's runs (the end time for a run
|
|
11
|
+
* stopped before it started). A chain's own move is not a person's decision, and a card moved back into
|
|
12
|
+
* the stage holds the plan approved before, so neither counts.
|
|
13
|
+
*/
|
|
14
|
+
function planDecisions(moves, runs, chain) {
|
|
15
|
+
const open = /* @__PURE__ */ new Map();
|
|
16
|
+
const decided = [];
|
|
17
|
+
for (const move of moves) {
|
|
18
|
+
if (move.from === chain.from) {
|
|
19
|
+
const entry = open.get(move.key);
|
|
20
|
+
open.delete(move.key);
|
|
21
|
+
if (entry === void 0 || move.who !== "you") continue;
|
|
22
|
+
const ran = runs.filter((one) => one.key === move.key && one.at !== null && one.at >= entry.at && one.at <= move.at).length;
|
|
23
|
+
decided.push({
|
|
24
|
+
id: move.id,
|
|
25
|
+
unchanged: move.to === chain.to && ran === 1
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
if (move.to === chain.from && move.startedPhase !== null) open.set(move.key, move);
|
|
29
|
+
}
|
|
30
|
+
return decided;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The count the suggestion says, or null when it does not show.
|
|
34
|
+
*
|
|
35
|
+
* It counts back from the newest decision until the first changed plan. `notNow` is the newest move
|
|
36
|
+
* when the person pressed Not now: the card comes back only once enough plans decided after it were
|
|
37
|
+
* approved as they came, and it then says the whole run, older ones included.
|
|
38
|
+
*/
|
|
39
|
+
function suggestAfter(decisions, notNow) {
|
|
40
|
+
let streak = 0;
|
|
41
|
+
let fresh = 0;
|
|
42
|
+
for (const decision of [...decisions].reverse()) {
|
|
43
|
+
if (!decision.unchanged) break;
|
|
44
|
+
streak += 1;
|
|
45
|
+
if (decision.id > notNow) fresh += 1;
|
|
46
|
+
}
|
|
47
|
+
return fresh >= 5 ? streak : null;
|
|
48
|
+
}
|
|
49
|
+
var suggestionText = (approved) => `You approved ${approved} of the last ${approved} plans without a change. Let Implement start right after Plan on the cards you tick?`;
|
|
50
|
+
|
|
51
|
+
export { suggestionText as a, planDecisions as p, suggestAfter as s };
|
|
52
|
+
//# sourceMappingURL=chain.js-CJFRywIC.js.map
|
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
import { e as projectRepos } from './estimate.js-BHTYVTaQ.js';
|
|
2
|
+
import { b as reposOfCard, g as getSetting } from './node.js-Bz2jT5wt.js';
|
|
3
|
+
import { h as hasWork, a as hasUncommitted } from './git.js-l43vBHqs.js';
|
|
4
|
+
import './src.js-Cm8RAH_q.js';
|
|
5
|
+
import './src2.js-CV8tsClO.js';
|
|
6
|
+
import { _ as commitDiff, $ as uncommittedDiff, a0 as draftedMessage, a1 as commitCard, a2 as filePatch, a3 as diffStat, a4 as cardDiff, a5 as cardCommits, g as git, a as gitEnv, j as isPlainName, t as checkoutPath, a6 as fileTree, a7 as listWorktrees, a8 as unquotePath } from './src3.js-h9tTEbVb.js';
|
|
7
|
+
import { p as pushFor, a as publishFor } from './publish.js-D2vWpIJU.js';
|
|
8
|
+
import { a as packageFolder } from './project-files.js-DTC4jUxy.js';
|
|
9
|
+
import { b as cardRepo, n as noCheckout } from './checkout.js-Ys5L_gA4.js';
|
|
10
|
+
import { p as projectName } from './app-header.js-CCflgeEQ.js';
|
|
11
|
+
import { readFileSync, existsSync, realpathSync } from 'node:fs';
|
|
12
|
+
import { join, resolve, sep, dirname } from 'node:path';
|
|
13
|
+
|
|
14
|
+
//#region ../../packages/skills/src/text.ts
|
|
15
|
+
var RUN_TEXT_LIMIT = 8e3;
|
|
16
|
+
var cache = /* @__PURE__ */ new Map();
|
|
17
|
+
function readShared(name) {
|
|
18
|
+
let text = cache.get(name);
|
|
19
|
+
if (text === void 0) {
|
|
20
|
+
text = readFileSync(join(packageFolder("shared"), name), "utf8");
|
|
21
|
+
cache.set(name, text);
|
|
22
|
+
}
|
|
23
|
+
return text;
|
|
24
|
+
}
|
|
25
|
+
function readFinishRules() {
|
|
26
|
+
return readShared("finish.md");
|
|
27
|
+
}
|
|
28
|
+
function plainSummaryRule() {
|
|
29
|
+
const rules = readFinishRules();
|
|
30
|
+
const start = rules.indexOf("## What changed, in plain words");
|
|
31
|
+
if (start === -1) throw new Error("The finish rules have no \"What changed, in plain words\" section.");
|
|
32
|
+
return rules.slice(start).split("\n\n").slice(0, 2).join("\n\n");
|
|
33
|
+
}
|
|
34
|
+
function extractSummaryPrompt(runText) {
|
|
35
|
+
const tooLong = runText.length > RUN_TEXT_LIMIT;
|
|
36
|
+
const text = tooLong ? runText.slice(-8e3) : runText;
|
|
37
|
+
return [
|
|
38
|
+
"Read the run output below and write the plain summary the run was meant to end with.",
|
|
39
|
+
"",
|
|
40
|
+
"Follow these rules exactly:",
|
|
41
|
+
"",
|
|
42
|
+
plainSummaryRule(),
|
|
43
|
+
"",
|
|
44
|
+
"Answer with the summary section and nothing else. Do not print a sentinel line.",
|
|
45
|
+
"",
|
|
46
|
+
"The run output:",
|
|
47
|
+
"",
|
|
48
|
+
text,
|
|
49
|
+
...tooLong ? ["", `[The run output above is its last ${RUN_TEXT_LIMIT} characters. The start was cut.]`] : []
|
|
50
|
+
].join("\n");
|
|
51
|
+
}
|
|
52
|
+
function commitMessagePrompt(diff, short) {
|
|
53
|
+
return [
|
|
54
|
+
short ? "Write a one line commit message for the change below." : "Write a commit message for the change below.",
|
|
55
|
+
"",
|
|
56
|
+
"Use the conventional format `type(scope): subject`. The type is one of feat, fix, docs, refactor, test, chore, perf, build or ci. The scope is the part of the project the change is in, and can be left out with its brackets. Write the subject in the imperative, in 72 characters or fewer, with no period at the end.",
|
|
57
|
+
...short ? [] : ["", "After a blank line, add a short body only when the reason for the change is not visible in the change itself. Wrap the body at 72 characters."],
|
|
58
|
+
"",
|
|
59
|
+
"Answer with the message and nothing else: no code fence, no quotes and no sentinel line. Change no file.",
|
|
60
|
+
"",
|
|
61
|
+
"The change:",
|
|
62
|
+
"",
|
|
63
|
+
diff
|
|
64
|
+
].join("\n");
|
|
65
|
+
}
|
|
66
|
+
var TITLE_TEXT_LIMIT = 2e3;
|
|
67
|
+
function threadTitlePrompt(question, answer) {
|
|
68
|
+
const cut = (text) => text.length > 2e3 ? `${text.slice(0, TITLE_TEXT_LIMIT)}\n[cut]` : text;
|
|
69
|
+
return [
|
|
70
|
+
"Write a subject of 3 to 6 words for the discussion below, so a person finds it again in a list.",
|
|
71
|
+
"",
|
|
72
|
+
"Name what the question is about, in the language of the question. Use plain words, sentence case and no period at the end.",
|
|
73
|
+
"",
|
|
74
|
+
"Answer with the subject and nothing else: no quotes, no label and no sentinel line. Read no file and change none.",
|
|
75
|
+
"",
|
|
76
|
+
"The question:",
|
|
77
|
+
"",
|
|
78
|
+
cut(question.trim()),
|
|
79
|
+
"",
|
|
80
|
+
"The answer:",
|
|
81
|
+
"",
|
|
82
|
+
cut(answer.trim())
|
|
83
|
+
].join("\n");
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/lib/changes.ts
|
|
87
|
+
var group = (entries) => ({
|
|
88
|
+
stat: diffStat(entries),
|
|
89
|
+
tree: fileTree(entries)
|
|
90
|
+
});
|
|
91
|
+
function checkoutOf(db, key, repo) {
|
|
92
|
+
if (!isPlainName(key)) return {
|
|
93
|
+
ok: false,
|
|
94
|
+
reason: `The card key ${JSON.stringify(key)} is not one plain name, so it names no checkout.`
|
|
95
|
+
};
|
|
96
|
+
const project = getSetting(db, "projectPath");
|
|
97
|
+
if (project === null) return {
|
|
98
|
+
ok: false,
|
|
99
|
+
reason: "There is no project set, so this card has no checkout yet."
|
|
100
|
+
};
|
|
101
|
+
const picked = cardRepo(db, key, repo);
|
|
102
|
+
if (!picked.ok) return picked;
|
|
103
|
+
const path = checkoutPath(project, key, repo);
|
|
104
|
+
if (!existsSync(path)) return {
|
|
105
|
+
ok: false,
|
|
106
|
+
reason: noCheckout(key, repo)
|
|
107
|
+
};
|
|
108
|
+
return {
|
|
109
|
+
ok: true,
|
|
110
|
+
project,
|
|
111
|
+
real: realpathSync(path),
|
|
112
|
+
baseBranch: picked.base,
|
|
113
|
+
nested: picked.nested
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
var failed = (error) => ({
|
|
117
|
+
ok: false,
|
|
118
|
+
reason: error instanceof Error ? error.message : String(error)
|
|
119
|
+
});
|
|
120
|
+
async function changesFor(db, key, env = process.env, signal, repo = ".") {
|
|
121
|
+
const at = checkoutOf(db, key, repo);
|
|
122
|
+
if (!at.ok) return at;
|
|
123
|
+
const given = env;
|
|
124
|
+
try {
|
|
125
|
+
const row = (await listWorktrees({
|
|
126
|
+
projectPath: at.project,
|
|
127
|
+
baseBranch: at.baseBranch,
|
|
128
|
+
repo,
|
|
129
|
+
env: given,
|
|
130
|
+
signal
|
|
131
|
+
})).find((one) => one.path === at.real);
|
|
132
|
+
if (row === void 0) return {
|
|
133
|
+
ok: false,
|
|
134
|
+
reason: `The checkout of ${key} is not a git worktree of the project, so there is nothing to compare.`
|
|
135
|
+
};
|
|
136
|
+
if (row.stale) return {
|
|
137
|
+
ok: true,
|
|
138
|
+
row,
|
|
139
|
+
committed: null,
|
|
140
|
+
uncommitted: null,
|
|
141
|
+
untracked: []
|
|
142
|
+
};
|
|
143
|
+
const diff = await cardDiff({
|
|
144
|
+
worktreePath: at.real,
|
|
145
|
+
baseBranch: at.baseBranch,
|
|
146
|
+
env: given,
|
|
147
|
+
signal
|
|
148
|
+
});
|
|
149
|
+
const untracked = (await git([
|
|
150
|
+
"ls-files",
|
|
151
|
+
"--others",
|
|
152
|
+
"--exclude-standard"
|
|
153
|
+
], {
|
|
154
|
+
cwd: at.real,
|
|
155
|
+
env: gitEnv(given),
|
|
156
|
+
signal
|
|
157
|
+
})).stdout.split("\n").filter((line) => line.trim() !== "").map(unquotePath);
|
|
158
|
+
const conflicted = (await git([
|
|
159
|
+
"diff",
|
|
160
|
+
"--name-only",
|
|
161
|
+
"-z",
|
|
162
|
+
"--diff-filter=U"
|
|
163
|
+
], {
|
|
164
|
+
cwd: at.real,
|
|
165
|
+
env: gitEnv(given),
|
|
166
|
+
signal
|
|
167
|
+
})).stdout.split("\0").filter((path) => path !== "");
|
|
168
|
+
return {
|
|
169
|
+
ok: true,
|
|
170
|
+
row,
|
|
171
|
+
committed: group(diff.committed),
|
|
172
|
+
uncommitted: group(diff.uncommitted),
|
|
173
|
+
untracked,
|
|
174
|
+
...conflicted.length === 0 ? {} : { conflicted },
|
|
175
|
+
branch: diffStat(diff.branch),
|
|
176
|
+
pushes: diffStat(diff.pushes),
|
|
177
|
+
diff: group(diff.branch)
|
|
178
|
+
};
|
|
179
|
+
} catch (error) {
|
|
180
|
+
return failed(error);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
async function changeGroups(db, key, env = process.env, signal, view = null) {
|
|
184
|
+
const groups = [];
|
|
185
|
+
const card = reposOfCard(db, key);
|
|
186
|
+
const root = projectName(db) ?? ".";
|
|
187
|
+
for (const repo of card ?? ["."]) {
|
|
188
|
+
const changes = await changesFor(db, key, env, signal, repo);
|
|
189
|
+
const publish = changes.ok && !hasWork(changes) ? {
|
|
190
|
+
ok: false,
|
|
191
|
+
reason: `${key} has nothing to push in ${repo === "." ? root : repo}.`
|
|
192
|
+
} : await publishFor(db, key, env, repo);
|
|
193
|
+
groups.push({
|
|
194
|
+
repo,
|
|
195
|
+
name: repo === "." ? root : repo,
|
|
196
|
+
changes,
|
|
197
|
+
publish
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
if (view !== "all") for (const one of groups) {
|
|
201
|
+
if (!one.changes.ok || one.changes.row.ahead === 0 || hasUncommitted(one.changes)) continue;
|
|
202
|
+
const at = checkoutOf(db, key, one.repo);
|
|
203
|
+
if (!at.ok) continue;
|
|
204
|
+
try {
|
|
205
|
+
one.changes = {
|
|
206
|
+
...one.changes,
|
|
207
|
+
commits: await cardCommits({
|
|
208
|
+
worktreePath: at.real,
|
|
209
|
+
baseBranch: at.baseBranch,
|
|
210
|
+
env,
|
|
211
|
+
signal
|
|
212
|
+
})
|
|
213
|
+
};
|
|
214
|
+
} catch (error) {
|
|
215
|
+
one.changes = {
|
|
216
|
+
...one.changes,
|
|
217
|
+
commits: {
|
|
218
|
+
list: [],
|
|
219
|
+
total: 0,
|
|
220
|
+
reason: failed(error).reason
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if (card === null) return groups;
|
|
226
|
+
for (const { path } of projectRepos({
|
|
227
|
+
repos: getSetting(db, "repos"),
|
|
228
|
+
baseBranch: getSetting(db, "baseBranch")
|
|
229
|
+
})) {
|
|
230
|
+
if (card.includes(path)) continue;
|
|
231
|
+
const untouched = {
|
|
232
|
+
ok: false,
|
|
233
|
+
reason: `${key} does not work in ${path}, so it has no changes there. The card's repositories are on its Settings tab.`
|
|
234
|
+
};
|
|
235
|
+
groups.push({
|
|
236
|
+
repo: path,
|
|
237
|
+
name: path,
|
|
238
|
+
changes: untouched,
|
|
239
|
+
publish: untouched
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
return groups;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* The Changes tab's count in the card page head, "+29 -3": what is not committed in every card
|
|
246
|
+
* repository, which is what the tab opens on. In Review with no commit it opens on the whole card
|
|
247
|
+
* instead, and then the two are the same diff: with no commit of its own, the card's start and its last
|
|
248
|
+
* commit hold the same files. "none yet" while the card has no checkout, and nothing when no file
|
|
249
|
+
* waits for a commit.
|
|
250
|
+
*/
|
|
251
|
+
async function changesCount(db, key, env = process.env) {
|
|
252
|
+
let files = 0;
|
|
253
|
+
let added = 0;
|
|
254
|
+
let removed = 0;
|
|
255
|
+
let held = false;
|
|
256
|
+
for (const repo of reposOfCard(db, key) ?? ["."]) try {
|
|
257
|
+
const at = checkoutOf(db, key, repo);
|
|
258
|
+
if (!at.ok || !existsSync(join(at.real, ".git"))) continue;
|
|
259
|
+
held = true;
|
|
260
|
+
const stat = diffStat((await cardDiff({
|
|
261
|
+
worktreePath: at.real,
|
|
262
|
+
baseBranch: at.baseBranch,
|
|
263
|
+
env
|
|
264
|
+
})).uncommitted);
|
|
265
|
+
files += stat.files;
|
|
266
|
+
added += stat.added;
|
|
267
|
+
removed += stat.removed;
|
|
268
|
+
} catch {}
|
|
269
|
+
if (!held) return { changes: "none yet" };
|
|
270
|
+
return files === 0 ? {} : { changes: `+${added} -${removed}` };
|
|
271
|
+
}
|
|
272
|
+
async function commitChanges(db, key, commit, env = process.env, signal, repo = ".") {
|
|
273
|
+
const at = checkoutOf(db, key, repo);
|
|
274
|
+
if (!at.ok) return at;
|
|
275
|
+
if (!existsSync(join(at.real, ".git"))) return {
|
|
276
|
+
ok: false,
|
|
277
|
+
reason: `The checkout of ${key} is not a git worktree, so it has no commits to show.`
|
|
278
|
+
};
|
|
279
|
+
try {
|
|
280
|
+
return {
|
|
281
|
+
ok: true,
|
|
282
|
+
diff: group(await commitDiff({
|
|
283
|
+
worktreePath: at.real,
|
|
284
|
+
baseBranch: at.baseBranch,
|
|
285
|
+
commit,
|
|
286
|
+
env,
|
|
287
|
+
signal
|
|
288
|
+
}))
|
|
289
|
+
};
|
|
290
|
+
} catch (error) {
|
|
291
|
+
return failed(error);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* The commit a comment on the card's diff is made on, once the file is checked against the change.
|
|
296
|
+
* Refused for a repository the card does not work in and for a file its change does not touch, so no
|
|
297
|
+
* comment names a file the diff never showed.
|
|
298
|
+
*/
|
|
299
|
+
async function commentTarget(db, key, repo, file, env = process.env, signal) {
|
|
300
|
+
const at = checkoutOf(db, key, repo);
|
|
301
|
+
if (!at.ok) return at;
|
|
302
|
+
if (!existsSync(join(at.real, ".git"))) return {
|
|
303
|
+
ok: false,
|
|
304
|
+
reason: `The checkout of ${key} is not a git worktree, so it has no diff to comment on.`
|
|
305
|
+
};
|
|
306
|
+
try {
|
|
307
|
+
const entry = (await cardDiff({
|
|
308
|
+
worktreePath: at.real,
|
|
309
|
+
baseBranch: at.baseBranch,
|
|
310
|
+
env,
|
|
311
|
+
signal
|
|
312
|
+
})).branch.find((one) => one.path === file);
|
|
313
|
+
const where = repo === "." ? "" : ` in ${repo}`;
|
|
314
|
+
if (entry === void 0) return {
|
|
315
|
+
ok: false,
|
|
316
|
+
reason: `${key} does not change ${file}${where}, so it takes no comment.`
|
|
317
|
+
};
|
|
318
|
+
if (entry.status === "deleted") return {
|
|
319
|
+
ok: false,
|
|
320
|
+
reason: `${key} deletes ${file}${where}, so it has no line to comment on.`
|
|
321
|
+
};
|
|
322
|
+
const head = await git(["rev-parse", "HEAD"], {
|
|
323
|
+
cwd: at.real,
|
|
324
|
+
env: gitEnv(env),
|
|
325
|
+
signal
|
|
326
|
+
});
|
|
327
|
+
if (head.code !== 0) return {
|
|
328
|
+
ok: false,
|
|
329
|
+
reason: `The checkout of ${key} has no commit to pin the comment to. ${head.stderr.trim()}`
|
|
330
|
+
};
|
|
331
|
+
return {
|
|
332
|
+
ok: true,
|
|
333
|
+
commit: head.stdout.trim()
|
|
334
|
+
};
|
|
335
|
+
} catch (error) {
|
|
336
|
+
return failed(error);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
function repoAsk(value) {
|
|
340
|
+
return value === void 0 || value === null ? "." : String(value);
|
|
341
|
+
}
|
|
342
|
+
function inside(root, path) {
|
|
343
|
+
const full = resolve(root, path);
|
|
344
|
+
if (!full.startsWith(`${root}${sep}`)) return false;
|
|
345
|
+
const folder = dirname(full);
|
|
346
|
+
return !existsSync(folder) || `${realpathSync(folder)}${sep}`.startsWith(`${root}${sep}`);
|
|
347
|
+
}
|
|
348
|
+
function nestedAt(at, path) {
|
|
349
|
+
const full = resolve(at.real, path);
|
|
350
|
+
return at.nested.find((one) => full === join(at.real, one) || full.startsWith(`${join(at.real, one)}${sep}`));
|
|
351
|
+
}
|
|
352
|
+
function patchAsk(query) {
|
|
353
|
+
const path = query.get("path");
|
|
354
|
+
const group = query.get("group");
|
|
355
|
+
const commit = query.get("commit");
|
|
356
|
+
if (path === null || path === "" || group !== "committed" && group !== "uncommitted" && group !== "branch" && group !== "commit") return null;
|
|
357
|
+
if (group !== "commit") return {
|
|
358
|
+
path,
|
|
359
|
+
oldPath: query.get("old"),
|
|
360
|
+
group
|
|
361
|
+
};
|
|
362
|
+
return commit === null || commit === "" ? null : {
|
|
363
|
+
path,
|
|
364
|
+
oldPath: query.get("old"),
|
|
365
|
+
group,
|
|
366
|
+
commit
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
async function patchFor(db, key, ask, env = process.env, signal, repo = ".") {
|
|
370
|
+
const at = checkoutOf(db, key, repo);
|
|
371
|
+
if (!at.ok) return at;
|
|
372
|
+
if (!existsSync(join(at.real, ".git"))) return {
|
|
373
|
+
ok: false,
|
|
374
|
+
reason: `The checkout of ${key} is not a git worktree, so there is no patch to show.`
|
|
375
|
+
};
|
|
376
|
+
for (const path of [ask.path, ask.oldPath]) {
|
|
377
|
+
if (path !== null && !inside(at.real, path)) return {
|
|
378
|
+
ok: false,
|
|
379
|
+
reason: `${path} is not inside the card's checkout, so it is not shown.`
|
|
380
|
+
};
|
|
381
|
+
const other = path === null ? void 0 : nestedAt(at, path);
|
|
382
|
+
if (other !== void 0) return {
|
|
383
|
+
ok: false,
|
|
384
|
+
reason: `${path} is in the checkout of ${other}, so it is shown in that group.`
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
try {
|
|
388
|
+
return await filePatch({
|
|
389
|
+
worktreePath: at.real,
|
|
390
|
+
baseBranch: at.baseBranch,
|
|
391
|
+
path: ask.path,
|
|
392
|
+
...ask.oldPath === null ? {} : { oldPath: ask.oldPath },
|
|
393
|
+
group: ask.group,
|
|
394
|
+
...ask.commit === void 0 ? {} : { commit: ask.commit },
|
|
395
|
+
env,
|
|
396
|
+
signal
|
|
397
|
+
});
|
|
398
|
+
} catch (error) {
|
|
399
|
+
return failed(error);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
function busy(db, key, doing) {
|
|
403
|
+
const card = db.prepare("SELECT state FROM cards WHERE key = ?").get(key);
|
|
404
|
+
return card !== void 0 && (card.state === "queued" || card.state === "running") ? `${key} is ${card.state}, and its run writes into this checkout. ${doing} once the run ends.` : null;
|
|
405
|
+
}
|
|
406
|
+
async function messageFor(db, key, short, write, env = process.env, signal, repo = ".") {
|
|
407
|
+
const held = busy(db, key, "Ask for a message");
|
|
408
|
+
if (held !== null) return {
|
|
409
|
+
ok: false,
|
|
410
|
+
reason: held
|
|
411
|
+
};
|
|
412
|
+
const at = checkoutOf(db, key, repo);
|
|
413
|
+
if (!at.ok) return at;
|
|
414
|
+
if (!existsSync(join(at.real, ".git"))) return {
|
|
415
|
+
ok: false,
|
|
416
|
+
reason: `The checkout of ${key} is not a git worktree, so there is no change to write a message for.`
|
|
417
|
+
};
|
|
418
|
+
try {
|
|
419
|
+
const diff = await uncommittedDiff({
|
|
420
|
+
worktreePath: at.real,
|
|
421
|
+
env,
|
|
422
|
+
signal
|
|
423
|
+
});
|
|
424
|
+
if (diff === "") return {
|
|
425
|
+
ok: false,
|
|
426
|
+
reason: `${key} has no uncommitted change, so there is nothing to write a message for.`
|
|
427
|
+
};
|
|
428
|
+
const answer = await write(key, commitMessagePrompt(diff, short), signal, repo);
|
|
429
|
+
if (!answer.ok) return answer;
|
|
430
|
+
const message = draftedMessage(answer.answer, short);
|
|
431
|
+
if (message === "") return {
|
|
432
|
+
ok: false,
|
|
433
|
+
reason: "The engine answered with no message. Press the button again, or write your own."
|
|
434
|
+
};
|
|
435
|
+
return {
|
|
436
|
+
ok: true,
|
|
437
|
+
message,
|
|
438
|
+
...answer.model === void 0 ? {} : { model: answer.model },
|
|
439
|
+
...answer.cost === void 0 ? {} : { cost: answer.cost }
|
|
440
|
+
};
|
|
441
|
+
} catch (error) {
|
|
442
|
+
return failed(error);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
function messageAsk(body) {
|
|
446
|
+
if (typeof body !== "object" || body === null) return null;
|
|
447
|
+
const { short } = body;
|
|
448
|
+
return typeof short === "boolean" ? { short } : null;
|
|
449
|
+
}
|
|
450
|
+
async function commitFor(db, key, message, include, env = process.env, signal, repo = ".", hooks = false, only) {
|
|
451
|
+
const held = busy(db, key, "Commit");
|
|
452
|
+
if (held !== null) return {
|
|
453
|
+
ok: false,
|
|
454
|
+
reason: held
|
|
455
|
+
};
|
|
456
|
+
const at = checkoutOf(db, key, repo);
|
|
457
|
+
if (!at.ok) return at;
|
|
458
|
+
if (!existsSync(join(at.real, ".git"))) return {
|
|
459
|
+
ok: false,
|
|
460
|
+
reason: `The checkout of ${key} is not a git worktree, so there is nothing to commit.`
|
|
461
|
+
};
|
|
462
|
+
for (const path of only ?? include) {
|
|
463
|
+
const other = nestedAt(at, path);
|
|
464
|
+
if (other !== void 0) return {
|
|
465
|
+
ok: false,
|
|
466
|
+
reason: `${path} is in the checkout of ${other}, so it is committed in that group.`
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
try {
|
|
470
|
+
return await commitCard({
|
|
471
|
+
worktreePath: at.real,
|
|
472
|
+
message,
|
|
473
|
+
include,
|
|
474
|
+
...only === void 0 ? {} : { only },
|
|
475
|
+
hooks,
|
|
476
|
+
env,
|
|
477
|
+
signal
|
|
478
|
+
});
|
|
479
|
+
} catch (error) {
|
|
480
|
+
return failed(error);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* A commit and then a push in one request, which the push route takes when a message comes with it. The
|
|
485
|
+
* Changes tab sends a push alone, because Commit and Push are separate there. The press is the consent
|
|
486
|
+
* for both. A refused
|
|
487
|
+
* commit sends nothing. A push the remote refuses after the commit leaves the commit in the checkout,
|
|
488
|
+
* so the next press pushes it with nothing left to commit.
|
|
489
|
+
*/
|
|
490
|
+
async function commitAndPush(db, key, confirmed, commit, env = process.env, signal, repo = ".") {
|
|
491
|
+
if (!confirmed) return {
|
|
492
|
+
ok: false,
|
|
493
|
+
reason: "A push needs the confirmation first. Nothing was committed or sent."
|
|
494
|
+
};
|
|
495
|
+
const made = await commitFor(db, key, commit.message, commit.include, env, signal, repo, commit.hooks, commit.only);
|
|
496
|
+
if (!made.ok) return made;
|
|
497
|
+
return pushFor(db, key, true, env, signal, repo, commit.hooks);
|
|
498
|
+
}
|
|
499
|
+
function commitAsk(body) {
|
|
500
|
+
if (typeof body !== "object" || body === null) return null;
|
|
501
|
+
const { message, include = [], hooks, only } = body;
|
|
502
|
+
const paths = (value) => Array.isArray(value) && value.every((path) => typeof path === "string");
|
|
503
|
+
if (typeof message !== "string" || !paths(include) || only !== void 0 && !paths(only)) return null;
|
|
504
|
+
return {
|
|
505
|
+
message,
|
|
506
|
+
include,
|
|
507
|
+
hooks: hooks === true,
|
|
508
|
+
...only === void 0 ? {} : { only }
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
export { changesCount as a, changeGroups as b, commentTarget as c, commitChanges as d, extractSummaryPrompt as e, messageFor as f, commitAsk as g, commitFor as h, patchFor as i, commitAndPush as j, messageAsk as m, patchAsk as p, repoAsk as r, threadTitlePrompt as t };
|
|
513
|
+
//# sourceMappingURL=changes.js-D8ITRMgU.js.map
|