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,319 @@
|
|
|
1
|
+
import { i as isBoardKind } from './board.js-BxL3CjB1.js';
|
|
2
|
+
import { e as projectRepos, h as boardFor, H as NO_REPOSITORY } from './estimate.js-BHTYVTaQ.js';
|
|
3
|
+
import { g as getSetting, b as reposOfCard } from './node.js-Bz2jT5wt.js';
|
|
4
|
+
import { o as refinedBranch } from './src.js-Cm8RAH_q.js';
|
|
5
|
+
import './src2.js-CV8tsClO.js';
|
|
6
|
+
import { g as git, j as isPlainName, t as checkoutPath, u as readCardText, v as branchName, a as gitEnv, x as parseStatus, y as baseCommit, z as branchNameProblem, A as renameFreshBranch, B as removeWorktree } from './src3.js-h9tTEbVb.js';
|
|
7
|
+
import { c as cardFolder } from './files.js-V46lE0-6.js';
|
|
8
|
+
import { existsSync, rmSync, rmdirSync, realpathSync } from 'node:fs';
|
|
9
|
+
import { join } from 'node:path';
|
|
10
|
+
|
|
11
|
+
//#region src/lib/checkouts.ts
|
|
12
|
+
var NO_PROJECT = "There is no project set, so there is no checkout to remove.";
|
|
13
|
+
var archiveOf = (board, flow) => isBoardKind(board) ? boardFor(board).stages.find((stage) => stage.role === "archive") : void 0;
|
|
14
|
+
var isClosed = (board, stage, flow) => archiveOf(board)?.id === stage;
|
|
15
|
+
var plainEnv = (env) => Object.fromEntries(Object.entries(env).filter((entry) => entry[1] !== void 0));
|
|
16
|
+
/**
|
|
17
|
+
* Removes the checkouts of one closed card, children before the root. A checkout stays when git
|
|
18
|
+
* cannot show it is safe to lose.
|
|
19
|
+
*
|
|
20
|
+
* The repositories come from the project's list, not from the card's own list, because a checkout
|
|
21
|
+
* made before the card's list changed still sits there. A folder for a repository no longer on the
|
|
22
|
+
* list is not looked for. The branch is never deleted, so committed work stays reachable by name.
|
|
23
|
+
*/
|
|
24
|
+
async function removeCardCheckouts(db, key, env = process.env) {
|
|
25
|
+
const card = db.prepare("SELECT board, stage, title FROM cards WHERE key = ?").get(key);
|
|
26
|
+
if (card === void 0) return {
|
|
27
|
+
ok: false,
|
|
28
|
+
reason: `There is no card ${key}.`
|
|
29
|
+
};
|
|
30
|
+
if (!isClosed(card.board, card.stage, getSetting(db, "deliveryFlow"))) return {
|
|
31
|
+
ok: false,
|
|
32
|
+
reason: `${key} is not closed, so its checkouts stay. A card keeps them until it reaches ${archiveOf(card.board, getSetting(db, "deliveryFlow"))?.label ?? "its last stage"}.`
|
|
33
|
+
};
|
|
34
|
+
const project = getSetting(db, "projectPath");
|
|
35
|
+
if (project === null) return {
|
|
36
|
+
ok: false,
|
|
37
|
+
reason: NO_PROJECT
|
|
38
|
+
};
|
|
39
|
+
if (!isPlainName(key)) return {
|
|
40
|
+
ok: false,
|
|
41
|
+
reason: `${key} cannot name a checkout folder, so there is none to remove.`
|
|
42
|
+
};
|
|
43
|
+
const repos = projectRepos({
|
|
44
|
+
repos: getSetting(db, "repos"),
|
|
45
|
+
baseBranch: getSetting(db, "baseBranch")
|
|
46
|
+
});
|
|
47
|
+
const root = checkoutPath(project, key);
|
|
48
|
+
const held = repos.filter((repo) => existsSync(repo.path === "." ? root : join(checkoutPath(project, key, repo.path), ".git")));
|
|
49
|
+
const ordered = [...held.filter((repo) => repo.path !== "."), ...held.filter((repo) => repo.path === ".")];
|
|
50
|
+
const branch = templateBranch(db, key, card.title);
|
|
51
|
+
const removed = [];
|
|
52
|
+
const kept = [];
|
|
53
|
+
for (const repo of ordered) {
|
|
54
|
+
const done = await removeWorktree({
|
|
55
|
+
projectPath: project,
|
|
56
|
+
key,
|
|
57
|
+
branch,
|
|
58
|
+
baseBranch: repo.base,
|
|
59
|
+
repo: repo.path,
|
|
60
|
+
env: plainEnv(env)
|
|
61
|
+
});
|
|
62
|
+
const at = checkoutPath(project, key, repo.path);
|
|
63
|
+
if (!done.ok) kept.push({
|
|
64
|
+
repo: repo.path,
|
|
65
|
+
reason: done.reason
|
|
66
|
+
});
|
|
67
|
+
else if (!existsSync(at)) removed.push(repo.path);
|
|
68
|
+
else if (repo.path !== ".") kept.push({
|
|
69
|
+
repo: repo.path,
|
|
70
|
+
reason: `git has no checkout at ${at}, so Nolzu leaves the folder alone. Move it away yourself.`
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
let folder = null;
|
|
74
|
+
if (kept.length === 0 && existsSync(root)) try {
|
|
75
|
+
rmSync(join(root, ".DS_Store"), { force: true });
|
|
76
|
+
rmdirSync(root);
|
|
77
|
+
} catch {
|
|
78
|
+
folder = `The card folder ${root} still holds other files, so it stays. Look inside and move them away yourself.`;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
ok: true,
|
|
82
|
+
removed,
|
|
83
|
+
kept,
|
|
84
|
+
folder
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
var where = (repo) => repo === "." ? "the project folder" : repo;
|
|
88
|
+
function checkoutsSaid(key, done) {
|
|
89
|
+
if (done.removed.length === 0 && done.kept.length === 0 && done.folder === null) return `${key} has no checkout.`;
|
|
90
|
+
return [
|
|
91
|
+
done.removed.length === 0 ? "" : `Removed the checkout of ${done.removed.map(where).join(", ")}.`,
|
|
92
|
+
...done.kept.map((one) => `The checkout of ${where(one.repo)} stays. ${one.reason}`),
|
|
93
|
+
done.folder ?? ""
|
|
94
|
+
].filter((part) => part !== "").join(" ");
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Removes the checkouts of every closed card, for the Projects page.
|
|
98
|
+
*
|
|
99
|
+
* One card at a time, because each takes its own lock. A card git refuses keeps its checkouts and
|
|
100
|
+
* is named with the reason, and the rest still go.
|
|
101
|
+
*/
|
|
102
|
+
async function removeClosedCheckouts(db, env = process.env) {
|
|
103
|
+
if (getSetting(db, "projectPath") === null) return NO_PROJECT;
|
|
104
|
+
getSetting(db, "deliveryFlow");
|
|
105
|
+
const closed = db.prepare("SELECT key, board, stage FROM cards ORDER BY key").all().filter((row) => isClosed(row.board, row.stage));
|
|
106
|
+
const cleared = [];
|
|
107
|
+
const stays = [];
|
|
108
|
+
for (const row of closed) {
|
|
109
|
+
const done = await removeCardCheckouts(db, row.key, env);
|
|
110
|
+
if (!done.ok) {
|
|
111
|
+
stays.push(`${row.key} keeps its checkouts. ${done.reason}`);
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
if (done.removed.length > 0) cleared.push(row.key);
|
|
115
|
+
for (const one of done.kept) stays.push(`${row.key} keeps the checkout of ${where(one.repo)}. ${one.reason}`);
|
|
116
|
+
if (done.folder !== null) stays.push(done.folder);
|
|
117
|
+
}
|
|
118
|
+
if (cleared.length === 0 && stays.length === 0) return "No closed card has a checkout.";
|
|
119
|
+
return [cleared.length === 0 ? "" : `Removed the checkouts of ${cleared.join(", ")}.`, ...stays].filter((part) => part !== "").join(" ");
|
|
120
|
+
}
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region src/lib/checkout.ts
|
|
123
|
+
/**
|
|
124
|
+
* The card repository a request names, with the base it branches from, and the card's repositories
|
|
125
|
+
* whose checkouts sit inside its checkout. The name comes from the request, so it is checked
|
|
126
|
+
* against the card's list before it names any folder: `../x` is in no list.
|
|
127
|
+
*/
|
|
128
|
+
function cardRepo(db, key, repo) {
|
|
129
|
+
const repos = projectRepos({
|
|
130
|
+
repos: getSetting(db, "repos"),
|
|
131
|
+
baseBranch: getSetting(db, "baseBranch")
|
|
132
|
+
});
|
|
133
|
+
if (repos.length === 0) return {
|
|
134
|
+
ok: false,
|
|
135
|
+
reason: NO_REPOSITORY
|
|
136
|
+
};
|
|
137
|
+
const card = repos.length === 1 ? repos.map((one) => one.path) : reposOfCard(db, key);
|
|
138
|
+
if (card === null) return {
|
|
139
|
+
ok: false,
|
|
140
|
+
reason: `${key} has no repository list yet.`
|
|
141
|
+
};
|
|
142
|
+
const found = card.includes(repo) ? repos.find((one) => one.path === repo) : void 0;
|
|
143
|
+
if (found === void 0) return {
|
|
144
|
+
ok: false,
|
|
145
|
+
reason: `${key} has no repository named ${JSON.stringify(repo)}.`
|
|
146
|
+
};
|
|
147
|
+
return {
|
|
148
|
+
ok: true,
|
|
149
|
+
base: found.base,
|
|
150
|
+
nested: repo === "." ? card.filter((one) => one !== ".") : []
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
var noCheckout = (key, repo) => `${key} has no checkout${repo === "." ? "" : ` of ${repo}`}. A run makes one. A closed card has none once its checkouts are removed.`;
|
|
154
|
+
/**
|
|
155
|
+
* The card's own checkout of one repository, ready to run git in, or the sentence that says why there
|
|
156
|
+
* is none.
|
|
157
|
+
*
|
|
158
|
+
* The word names what the caller wanted to do with it, so the refusal reads as one sentence. Every
|
|
159
|
+
* push and every pull need the same four answers, and a second copy of them would drift.
|
|
160
|
+
*/
|
|
161
|
+
async function checkoutOf(db, key, env, what, repo = ".") {
|
|
162
|
+
const project = getSetting(db, "projectPath");
|
|
163
|
+
if (!isPlainName(key) || project === null) return {
|
|
164
|
+
ok: false,
|
|
165
|
+
reason: `${key} has no checkout to ${what}.`
|
|
166
|
+
};
|
|
167
|
+
const picked = cardRepo(db, key, repo);
|
|
168
|
+
if (!picked.ok) return picked;
|
|
169
|
+
const at = checkoutPath(project, key, repo);
|
|
170
|
+
if (!existsSync(join(at, ".git"))) return {
|
|
171
|
+
ok: false,
|
|
172
|
+
reason: noCheckout(key, repo)
|
|
173
|
+
};
|
|
174
|
+
const path = realpathSync(at);
|
|
175
|
+
const forGit = gitEnv(env);
|
|
176
|
+
const run = (args) => git(args, {
|
|
177
|
+
cwd: path,
|
|
178
|
+
env: forGit
|
|
179
|
+
});
|
|
180
|
+
const branch = (await run(["branch", "--show-current"])).stdout.trim();
|
|
181
|
+
if (branch === "") return {
|
|
182
|
+
ok: false,
|
|
183
|
+
reason: `The checkout of ${key} is on no branch, so there is nothing to ${what}.`
|
|
184
|
+
};
|
|
185
|
+
return {
|
|
186
|
+
ok: true,
|
|
187
|
+
project,
|
|
188
|
+
path,
|
|
189
|
+
branch,
|
|
190
|
+
base: picked.base,
|
|
191
|
+
run
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
async function cardBranch(db, key, targets, env) {
|
|
195
|
+
for (const target of targets) {
|
|
196
|
+
if (!existsSync(join(target, ".git"))) continue;
|
|
197
|
+
const current = await git(["branch", "--show-current"], {
|
|
198
|
+
cwd: target,
|
|
199
|
+
env
|
|
200
|
+
});
|
|
201
|
+
if (current.code === 0 && current.stdout.trim() !== "") return current.stdout.trim();
|
|
202
|
+
}
|
|
203
|
+
return templateBranch(db, key);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* The branch the template names for a card now: its title, and the kind and words Refine wrote under
|
|
207
|
+
* it in `refine/refined.md`. A card Refine has not run on yet gets the fallbacks `branchName` has.
|
|
208
|
+
* A name the person typed on the card page wins over all of it. Throws for a template `branchName`
|
|
209
|
+
* refuses.
|
|
210
|
+
*/
|
|
211
|
+
function templateBranch(db, key, title) {
|
|
212
|
+
const chosen = chosenBranch(db, key);
|
|
213
|
+
if (chosen !== null) return chosen;
|
|
214
|
+
const named = title ?? db.prepare("SELECT title FROM cards WHERE key = ?").get(key)?.title ?? "";
|
|
215
|
+
const folder = cardFolder(db, key);
|
|
216
|
+
const refined = (folder === null ? null : readCardText(folder, join("refine", "refined.md"))) ?? "";
|
|
217
|
+
return branchName(getSetting(db, "branchTemplate"), key, named, refinedBranch(refined));
|
|
218
|
+
}
|
|
219
|
+
var chosenBranch = (db, key) => db.prepare("SELECT branch FROM cards WHERE key = ?").get(key)?.branch ?? null;
|
|
220
|
+
function cardCheckouts(db, key) {
|
|
221
|
+
const project = getSetting(db, "projectPath");
|
|
222
|
+
if (project === null || !isPlainName(key)) return [];
|
|
223
|
+
const repos = projectRepos({
|
|
224
|
+
repos: getSetting(db, "repos"),
|
|
225
|
+
baseBranch: getSetting(db, "baseBranch")
|
|
226
|
+
});
|
|
227
|
+
return (repos.length > 1 ? reposOfCard(db, key) ?? [] : repos.map((repo) => repo.path)).map((repo) => ({
|
|
228
|
+
path: checkoutPath(project, key, repo),
|
|
229
|
+
base: repos.find((one) => one.path === repo)?.base ?? getSetting(db, "baseBranch")
|
|
230
|
+
})).filter((one) => existsSync(join(one.path, ".git")));
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* What the card's checkouts hold that no remote has: files not committed, and commits on no remote
|
|
234
|
+
* branch and not in the base. A repository with no remote has nowhere to push, so its commits do not
|
|
235
|
+
* count there.
|
|
236
|
+
*/
|
|
237
|
+
async function unsentWork(db, key, env) {
|
|
238
|
+
let files = 0;
|
|
239
|
+
let commits = 0;
|
|
240
|
+
const forGit = gitEnv(env);
|
|
241
|
+
for (const one of cardCheckouts(db, key)) {
|
|
242
|
+
const run = (args) => git(args, {
|
|
243
|
+
cwd: one.path,
|
|
244
|
+
env: forGit
|
|
245
|
+
});
|
|
246
|
+
const status = await run([
|
|
247
|
+
"status",
|
|
248
|
+
"--porcelain=v2",
|
|
249
|
+
"--untracked-files=all"
|
|
250
|
+
]);
|
|
251
|
+
if (status.code === 0) {
|
|
252
|
+
const counted = parseStatus(status.stdout);
|
|
253
|
+
files += counted.changed + counted.untracked;
|
|
254
|
+
}
|
|
255
|
+
if ((await run(["remote"])).stdout.trim() === "") continue;
|
|
256
|
+
const base = await baseCommit(run, one.base);
|
|
257
|
+
const left = await run([
|
|
258
|
+
"rev-list",
|
|
259
|
+
"--count",
|
|
260
|
+
"HEAD",
|
|
261
|
+
"--not",
|
|
262
|
+
"--remotes",
|
|
263
|
+
...base.code === 0 ? [base.stdout.trim()] : [],
|
|
264
|
+
"--"
|
|
265
|
+
]);
|
|
266
|
+
if (left.code === 0) commits += Number(left.stdout.trim()) || 0;
|
|
267
|
+
}
|
|
268
|
+
return {
|
|
269
|
+
files,
|
|
270
|
+
commits
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* The branch name the person typed on the card page. Each checkout's branch takes it, while nothing
|
|
275
|
+
* was pushed and no run writes there, and the card keeps it, so a card with no checkout yet starts on
|
|
276
|
+
* it and Refine leaves it alone.
|
|
277
|
+
*/
|
|
278
|
+
async function renameCardBranch(db, key, name, env) {
|
|
279
|
+
const card = db.prepare("SELECT state, board, stage FROM cards WHERE key = ?").get(key);
|
|
280
|
+
if (card === void 0) return {
|
|
281
|
+
ok: false,
|
|
282
|
+
reason: `There is no card ${key} here.`
|
|
283
|
+
};
|
|
284
|
+
const { state } = card;
|
|
285
|
+
if (isClosed(card.board, card.stage, getSetting(db, "deliveryFlow"))) return {
|
|
286
|
+
ok: false,
|
|
287
|
+
reason: "A closed card keeps its branch."
|
|
288
|
+
};
|
|
289
|
+
if (state === "queued" || state === "running") return {
|
|
290
|
+
ok: false,
|
|
291
|
+
reason: `${key} is ${state}, and its run works on this branch. Rename it once the run ends.`
|
|
292
|
+
};
|
|
293
|
+
const problem = branchNameProblem(name, key);
|
|
294
|
+
if (problem !== null) return {
|
|
295
|
+
ok: false,
|
|
296
|
+
reason: problem
|
|
297
|
+
};
|
|
298
|
+
const checkouts = cardCheckouts(db, key);
|
|
299
|
+
if (checkouts.length > 0) {
|
|
300
|
+
const forGit = gitEnv(env);
|
|
301
|
+
const from = await cardBranch(db, key, checkouts.map((one) => one.path), forGit);
|
|
302
|
+
const done = await renameFreshBranch({
|
|
303
|
+
checkouts,
|
|
304
|
+
from,
|
|
305
|
+
to: name,
|
|
306
|
+
env: forGit,
|
|
307
|
+
byPerson: true
|
|
308
|
+
});
|
|
309
|
+
if (!done.renamed && done.reason !== null) return {
|
|
310
|
+
ok: false,
|
|
311
|
+
reason: done.reason
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
db.prepare("UPDATE cards SET branch = ? WHERE key = ?").run(name, key);
|
|
315
|
+
return { ok: true };
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export { checkoutOf as a, cardRepo as b, cardCheckouts as c, cardBranch as d, renameCardBranch as e, removeCardCheckouts as f, checkoutsSaid as g, isClosed as i, noCheckout as n, removeClosedCheckouts as r, templateBranch as t, unsentWork as u };
|
|
319
|
+
//# sourceMappingURL=checkout.js-Ys5L_gA4.js.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { i as index_server_exports } from './internal.js-DaSBO6jY.js';
|
|
2
|
+
import './shared.js-BgfCUZUJ.js';
|
|
3
|
+
import './exports.js-Hn-WQRMB.js';
|
|
4
|
+
import './routing.js-B8s1QwSP.js';
|
|
5
|
+
import { a1 as noop } from './server.js-BR0D07DR.js';
|
|
6
|
+
import './utils.js-DQTBh7_6.js';
|
|
7
|
+
|
|
8
|
+
var is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString());
|
|
9
|
+
var placeholder_url = "a:";
|
|
10
|
+
if (is_legacy) {
|
|
11
|
+
({
|
|
12
|
+
data: {},
|
|
13
|
+
form: null,
|
|
14
|
+
error: null,
|
|
15
|
+
params: {},
|
|
16
|
+
route: { id: null },
|
|
17
|
+
state: {},
|
|
18
|
+
status: -1,
|
|
19
|
+
url: new URL(placeholder_url)
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0_@typescript-eslin_28129ec9dd7d0d477d15c217a8a54e62/node_modules/@sveltejs/kit/src/runtime/client/client.js
|
|
24
|
+
/** @import { RemoteFunctionDataNode, ServerNodesResponse, ServerRedirectNode } from 'types' */
|
|
25
|
+
/** @import { CacheEntry } from './remote-functions/cache.svelte.js' */
|
|
26
|
+
/** @import { Query } from './remote-functions/query/instance.svelte.js' */
|
|
27
|
+
/** @import { LiveQuery } from './remote-functions/query-live/instance.svelte.js' */
|
|
28
|
+
var { onMount, tick } = index_server_exports;
|
|
29
|
+
/**
|
|
30
|
+
* Allows you to navigate programmatically to a given route, with options such as keeping the current element focused.
|
|
31
|
+
* Returns a Promise that resolves when SvelteKit navigates (or fails to navigate, in which case the promise rejects) to the specified `url`.
|
|
32
|
+
*
|
|
33
|
+
* For external URLs, use `window.location = url` instead of calling `goto(url)`.
|
|
34
|
+
*
|
|
35
|
+
* @param {string | URL} url Where to navigate to. Note that if you've set [`config.kit.paths.base`](https://svelte.dev/docs/kit/configuration#paths) and the URL is root-relative, you need to prepend the base path if you want to navigate within the app.
|
|
36
|
+
* @param {Object} [opts] Options related to the navigation
|
|
37
|
+
* @param {boolean} [opts.replaceState] If `true`, will replace the current `history` entry rather than creating a new one with `pushState`
|
|
38
|
+
* @param {boolean} [opts.noScroll] If `true`, the browser will maintain its scroll position rather than scrolling to the top of the page after navigation
|
|
39
|
+
* @param {boolean} [opts.keepFocus] If `true`, the currently focused element will retain focus after navigation. Otherwise, focus will be reset to the body
|
|
40
|
+
* @param {boolean} [opts.invalidateAll] If `true`, all `load` functions of the page will be rerun. See https://svelte.dev/docs/kit/load#rerunning-load-functions for more info on invalidation.
|
|
41
|
+
* @param {Array<string | URL | ((url: URL) => boolean)>} [opts.invalidate] Causes any load functions to re-run if they depend on one of the urls
|
|
42
|
+
* @param {App.PageState} [opts.state] An optional object that will be available as `page.state`
|
|
43
|
+
* @returns {Promise<void>}
|
|
44
|
+
*/
|
|
45
|
+
function goto(url, opts = {}) {
|
|
46
|
+
throw new Error("Cannot call goto(...) on the server");
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Causes all `load` and `query` functions belonging to the currently active page to re-run. Returns a `Promise` that resolves when the page is subsequently updated.
|
|
50
|
+
* @returns {Promise<void>}
|
|
51
|
+
*/
|
|
52
|
+
function invalidateAll() {
|
|
53
|
+
throw new Error("Cannot call invalidateAll() on the server");
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* This action updates the `form` property of the current page with the given data and updates `page.status`.
|
|
57
|
+
* In case of an error, it redirects to the nearest error page.
|
|
58
|
+
* @template {Record<string, unknown> | undefined} Success
|
|
59
|
+
* @template {Record<string, unknown> | undefined} Failure
|
|
60
|
+
* @param {import('@sveltejs/kit').ActionResult<Success, Failure>} result
|
|
61
|
+
* @returns {Promise<void>}
|
|
62
|
+
*/
|
|
63
|
+
async function applyAction(result) {
|
|
64
|
+
throw new Error("Cannot call applyAction(...) on the server");
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export { applyAction as a, goto as g, invalidateAll as i };
|
|
68
|
+
//# sourceMappingURL=client.js-B7jIMDuS.js.map
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { s as shows } from './display.js-Bf-vGQ7Q.js';
|
|
2
|
+
|
|
3
|
+
//#region src/lib/cloud-status.ts
|
|
4
|
+
var STATES = {
|
|
5
|
+
connecting: {
|
|
6
|
+
word: "Connecting",
|
|
7
|
+
sentence: "Nolzu is opening the connection to the cloud.",
|
|
8
|
+
fix: null
|
|
9
|
+
},
|
|
10
|
+
open: {
|
|
11
|
+
word: "Connected",
|
|
12
|
+
sentence: "This machine is connected. A run started from the cloud starts here.",
|
|
13
|
+
fix: null
|
|
14
|
+
},
|
|
15
|
+
waiting: {
|
|
16
|
+
word: "Reconnecting",
|
|
17
|
+
sentence: "The connection dropped, and Nolzu dials again after a wait that grows to a minute. A run started from the cloud waits in the queue there until this machine is back.",
|
|
18
|
+
fix: null
|
|
19
|
+
},
|
|
20
|
+
refused: {
|
|
21
|
+
word: "Refused",
|
|
22
|
+
sentence: "The cloud refused this machine, so Nolzu stopped dialling. Nothing changes until this machine does.",
|
|
23
|
+
fix: "Run npx nolzu@latest login again, then reload this screen: Nolzu dials once more with the account it reads. The new sign-in can take a minute to reach this screen, so reload again if nothing changed. If this machine is signed in already, update Nolzu instead, because the cloud also turns down a version it cannot speak. Restart Nolzu if this screen keeps saying Refused."
|
|
24
|
+
},
|
|
25
|
+
unpaid: {
|
|
26
|
+
word: "Local only",
|
|
27
|
+
sentence: "The plan on this account does not include the cloud board, so Nolzu stopped dialling. The board on this machine works whole without it.",
|
|
28
|
+
fix: "If your plan does include the cloud board, reload this screen twice: the first load reads the plan and opens the connection, the second shows it. If the connection stays shut, this machine is signed in to another account, so run npx nolzu@latest login again with the account that pays for it. Restart Nolzu if this screen keeps saying Local only."
|
|
29
|
+
},
|
|
30
|
+
closed: {
|
|
31
|
+
word: "Offline",
|
|
32
|
+
sentence: "Nolzu stopped trying, so this machine is not connected to the cloud. The board here works whole without it. A run started from the cloud waits there until this machine connects again.",
|
|
33
|
+
fix: "Press Connect again. Nolzu reads its sign-in from the keychain and dials once more, so allow it if the system asks. If it stays Offline, run npx nolzu@latest login, then press Connect again."
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var cloudConnection = (status) => STATES[status];
|
|
37
|
+
var LOCAL_ONLY = {
|
|
38
|
+
word: "Local only",
|
|
39
|
+
sentence: "This machine sends nothing to Nolzu cloud.",
|
|
40
|
+
fix: null
|
|
41
|
+
};
|
|
42
|
+
var SYNC_PAUSED = {
|
|
43
|
+
word: "Paused",
|
|
44
|
+
sentence: "You deleted your cloud data, so sync is paused. Nothing leaves this machine until you turn it back on. Turning it on sends the board again.",
|
|
45
|
+
fix: null
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The state line of Settings, Cloud, and whether it offers Connect again or, after Delete my cloud data
|
|
49
|
+
* (`paused`), Turn sync back on.
|
|
50
|
+
*
|
|
51
|
+
* `free` is a display document without the cloud board. There `closed` is a machine that never dials,
|
|
52
|
+
* so it reads Local only; every other state reads as the client reports it, because a signed-in Free
|
|
53
|
+
* machine can be refused or turned down for its plan. Connect again only where nothing dials by itself
|
|
54
|
+
* and a dial could help: `closed` on a machine whose plan has the board.
|
|
55
|
+
*/
|
|
56
|
+
var cloudState = (status, free, paused = false) => paused ? {
|
|
57
|
+
connection: SYNC_PAUSED,
|
|
58
|
+
redial: false,
|
|
59
|
+
resume: true
|
|
60
|
+
} : {
|
|
61
|
+
connection: free && status === "closed" ? LOCAL_ONLY : cloudConnection(status),
|
|
62
|
+
redial: !free && status === "closed",
|
|
63
|
+
resume: false
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* The banner, or null when there is none to show.
|
|
67
|
+
*
|
|
68
|
+
* Only a machine whose signed document opens the cloud board dials a hub, so Free never sees it. The
|
|
69
|
+
* document says what the plan opens, and nothing here checks a plan (AGENTS.md rule 2). A link that
|
|
70
|
+
* dropped (`waiting`) and one the cloud turned down (`refused`) are offline. `connecting` is not: every
|
|
71
|
+
* start passes through it, and a banner on each start would cry wolf.
|
|
72
|
+
*
|
|
73
|
+
* ponytail: read on each page load, as the rail's usage is, so a link that drops while a page is open
|
|
74
|
+
* shows at the next page. Send the status on the Now stream when that is too late.
|
|
75
|
+
*/
|
|
76
|
+
function offlineBanner(status, document) {
|
|
77
|
+
if (!shows(document, "cloud-board")) return null;
|
|
78
|
+
const sentence = "Answers and approvals from the phone and the web app wait in the cloud until this machine connects again.";
|
|
79
|
+
if (status === "waiting") return {
|
|
80
|
+
headline: "The connection to the cloud dropped.",
|
|
81
|
+
sentence,
|
|
82
|
+
fix: "Nolzu dials again by itself.",
|
|
83
|
+
settings: false
|
|
84
|
+
};
|
|
85
|
+
if (status === "refused") return {
|
|
86
|
+
headline: "The cloud refused this machine.",
|
|
87
|
+
sentence,
|
|
88
|
+
fix: "Nolzu stopped dialling.",
|
|
89
|
+
settings: true
|
|
90
|
+
};
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export { cloudState as c, offlineBanner as o };
|
|
95
|
+
//# sourceMappingURL=cloud-status.js-hy-9zUVX.js.map
|