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,940 @@
|
|
|
1
|
+
import { B as BOARD_LABELS, a as isResearchKind, i as isBoardKind } from './board.js-BxL3CjB1.js';
|
|
2
|
+
import { h as boardFor } from './estimate.js-BHTYVTaQ.js';
|
|
3
|
+
import { _ as scoutSource, aX as setScoutSource, Q as scoutSources, aY as addScoutSource, aZ as checkPasteSource, a_ as startScoutFinding, ay as scoutFinding, a$ as dismissScoutFinding, b0 as unmuteScoutFinding, b1 as removeScoutSource, b2 as clearScoutCursor, g as getSetting, w as writeSetting, P as allScoutFindings, b3 as canStartFinding, Z as ENDED, r as resolveDataDir } from './node.js-Bz2jT5wt.js';
|
|
4
|
+
import { M as MAX_SCOUT_INTERVAL_MINUTES, t as ticketRefProblem } from './src.js-Cm8RAH_q.js';
|
|
5
|
+
import './src2.js-CV8tsClO.js';
|
|
6
|
+
import { S as SCOUT_SOURCE_LABELS, s as scoutEntryName, b as scoutSecretName, a as assessKey } from './scout.js-Bm7wQLX2.js';
|
|
7
|
+
import { bl as keychainAccount } from './src3.js-h9tTEbVb.js';
|
|
8
|
+
|
|
9
|
+
//#region src/lib/scout-schedule.ts
|
|
10
|
+
/**
|
|
11
|
+
* The schedule a person picks per Scout source, as the screen reads and writes it.
|
|
12
|
+
*
|
|
13
|
+
* Pure: the bounds are the protocol's own, the options are built from them, and nothing here touches
|
|
14
|
+
* the database or the socket. What one save does to both lives in `saveScoutSchedule` in
|
|
15
|
+
* `scout-sources.ts`, beside the other writers of a source row.
|
|
16
|
+
*
|
|
17
|
+
* A schedule is stored on this machine and sent to Nolzu cloud, and it never runs here. The cloud
|
|
18
|
+
* checks no source yet, so a schedule changes nothing today. `PROJECT.md` section 6 keeps a timer off
|
|
19
|
+
* the laptop, and the same line says a timer never starts a run that changes code.
|
|
20
|
+
*/
|
|
21
|
+
var SCHEDULE_FEATURE = "scheduled-scout";
|
|
22
|
+
/**
|
|
23
|
+
* The four choices: off, every 15 minutes, hourly, custom.
|
|
24
|
+
*
|
|
25
|
+
* The fast option is the protocol's own minimum rather than the number 15, so a bound that moves
|
|
26
|
+
* cannot leave an option behind that the guard would then refuse.
|
|
27
|
+
*/
|
|
28
|
+
var SCHEDULE_OPTIONS = [
|
|
29
|
+
{
|
|
30
|
+
id: "off",
|
|
31
|
+
label: "Off",
|
|
32
|
+
minutes: 0
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: String(15),
|
|
36
|
+
label: `Every 15 minutes`,
|
|
37
|
+
minutes: 15
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: "60",
|
|
41
|
+
label: "Hourly",
|
|
42
|
+
minutes: 60
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: "custom",
|
|
46
|
+
label: "Custom",
|
|
47
|
+
minutes: 0
|
|
48
|
+
}
|
|
49
|
+
];
|
|
50
|
+
/** The stored interval as the control draws it. */
|
|
51
|
+
function scheduleChoice(minutes, notify) {
|
|
52
|
+
const named = SCHEDULE_OPTIONS.find((option) => option.id !== "custom" && option.minutes === minutes);
|
|
53
|
+
const pick = minutes === 0 ? "off" : named?.id ?? "custom";
|
|
54
|
+
return {
|
|
55
|
+
minutes,
|
|
56
|
+
notify,
|
|
57
|
+
pick,
|
|
58
|
+
custom: pick === "custom" ? String(minutes) : ""
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* What the person asked for, or the sentence it is refused with.
|
|
63
|
+
*
|
|
64
|
+
* The minutes box is read only when Custom is picked. Off means off: the box keeps whatever it was
|
|
65
|
+
* last saved with, and reading it here would turn "stop checking this" into the old interval again.
|
|
66
|
+
*/
|
|
67
|
+
function readScheduleForm(form) {
|
|
68
|
+
const notify = (form.get("notify")?.toString() ?? "") === "on";
|
|
69
|
+
const every = form.get("every")?.toString() ?? "";
|
|
70
|
+
if (every === "custom") {
|
|
71
|
+
const typed = (form.get("minutes")?.toString() ?? "").trim();
|
|
72
|
+
if (!/^\d{1,5}$/.test(typed)) return { message: `The minutes between two checks are a whole number, from 15 to ${MAX_SCOUT_INTERVAL_MINUTES}.` };
|
|
73
|
+
const minutes = Number(typed);
|
|
74
|
+
if (minutes < 15 || minutes > 10080) return { message: `A check every ${minutes} minutes is outside what a schedule takes. The fastest is every 15 minutes, and the slowest is every ${MAX_SCOUT_INTERVAL_MINUTES} minutes, which is seven days.` };
|
|
75
|
+
return {
|
|
76
|
+
intervalMinutes: minutes,
|
|
77
|
+
notify
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
const chosen = SCHEDULE_OPTIONS.find((option) => option.id !== "custom" && option.id === every);
|
|
81
|
+
if (chosen === void 0) return { message: `There is no schedule called ${every}. Pick one of the choices in the list.` };
|
|
82
|
+
return {
|
|
83
|
+
intervalMinutes: chosen.minutes,
|
|
84
|
+
notify
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/lib/scout-sources.ts
|
|
89
|
+
var KEYCHAIN = "The token goes into this machine's OS keychain, under the service name nolzu. It never reaches the database or a log.";
|
|
90
|
+
var PASTE = {
|
|
91
|
+
id: "paste",
|
|
92
|
+
kind: "paste",
|
|
93
|
+
label: SCOUT_SOURCE_LABELS.paste,
|
|
94
|
+
needs: "Needs nothing",
|
|
95
|
+
fields: [],
|
|
96
|
+
system: null,
|
|
97
|
+
secret: null,
|
|
98
|
+
entry: null,
|
|
99
|
+
scopes: "Nothing. You paste the text yourself, so there is no account to read.",
|
|
100
|
+
credential: "No credential. This source reads what you paste and nothing else.",
|
|
101
|
+
cloud: false
|
|
102
|
+
};
|
|
103
|
+
var SOURCE_FORM_LIST = [
|
|
104
|
+
PASTE,
|
|
105
|
+
{
|
|
106
|
+
id: "tickets-github",
|
|
107
|
+
kind: "tickets",
|
|
108
|
+
label: "GitHub issues and failed CI",
|
|
109
|
+
needs: "Uses your gh login",
|
|
110
|
+
fields: [{
|
|
111
|
+
name: "repo",
|
|
112
|
+
label: "Repository",
|
|
113
|
+
placeholder: "owner/repo"
|
|
114
|
+
}, {
|
|
115
|
+
name: "query",
|
|
116
|
+
label: "Issue search",
|
|
117
|
+
placeholder: "is:issue is:open label:bug"
|
|
118
|
+
}],
|
|
119
|
+
system: "github",
|
|
120
|
+
secret: null,
|
|
121
|
+
entry: null,
|
|
122
|
+
scopes: "Read access to the issues and the CI runs of that repository, and nothing more. Your gh login already has it.",
|
|
123
|
+
credential: "No credential is stored here. Nolzu runs gh, and gh holds your GitHub login.",
|
|
124
|
+
cloud: false
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: "tickets-gitlab",
|
|
128
|
+
kind: "tickets",
|
|
129
|
+
label: "GitLab issues",
|
|
130
|
+
needs: "Uses your glab login",
|
|
131
|
+
fields: [{
|
|
132
|
+
name: "project",
|
|
133
|
+
label: "Project",
|
|
134
|
+
placeholder: "namespace/project"
|
|
135
|
+
}, {
|
|
136
|
+
name: "query",
|
|
137
|
+
label: "Issue search",
|
|
138
|
+
placeholder: "label:bug slow import"
|
|
139
|
+
}],
|
|
140
|
+
system: "gitlab",
|
|
141
|
+
secret: null,
|
|
142
|
+
entry: null,
|
|
143
|
+
scopes: "Read access to the issues of that project, and nothing more. Your glab login already has it.",
|
|
144
|
+
credential: "No credential is stored here. Nolzu runs glab, and glab holds your GitLab login.",
|
|
145
|
+
cloud: false
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
id: "tickets-jira",
|
|
149
|
+
kind: "tickets",
|
|
150
|
+
label: "Jira",
|
|
151
|
+
needs: "API token",
|
|
152
|
+
fields: [
|
|
153
|
+
{
|
|
154
|
+
name: "site",
|
|
155
|
+
label: "Site address",
|
|
156
|
+
placeholder: "https://your-site.atlassian.net"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: "email",
|
|
160
|
+
label: "Account email",
|
|
161
|
+
placeholder: "you@example.com"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: "jql",
|
|
165
|
+
label: "Query",
|
|
166
|
+
placeholder: "project = PROJ AND status = Open"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
system: "jira",
|
|
170
|
+
secret: "API token",
|
|
171
|
+
entry: {
|
|
172
|
+
word: "jira",
|
|
173
|
+
field: "site",
|
|
174
|
+
service: "Jira"
|
|
175
|
+
},
|
|
176
|
+
scopes: "A read-only API token with the Browse Projects permission, and only on the projects your query asks for.",
|
|
177
|
+
credential: KEYCHAIN,
|
|
178
|
+
cloud: true
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
id: "tickets-linear",
|
|
182
|
+
kind: "tickets",
|
|
183
|
+
label: "Linear",
|
|
184
|
+
needs: "API key",
|
|
185
|
+
fields: [{
|
|
186
|
+
name: "teams",
|
|
187
|
+
label: "Team keys",
|
|
188
|
+
placeholder: "PROJ, OPS"
|
|
189
|
+
}],
|
|
190
|
+
system: "linear",
|
|
191
|
+
secret: "API key",
|
|
192
|
+
entry: {
|
|
193
|
+
word: "linear",
|
|
194
|
+
field: "teams",
|
|
195
|
+
service: "Linear"
|
|
196
|
+
},
|
|
197
|
+
scopes: "A personal API key. Linear does not narrow one, so it can reach everything your account can. Nolzu only reads, and only the teams you name here.",
|
|
198
|
+
credential: KEYCHAIN,
|
|
199
|
+
cloud: true
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
id: "sentry",
|
|
203
|
+
kind: "sentry",
|
|
204
|
+
label: SCOUT_SOURCE_LABELS.sentry,
|
|
205
|
+
needs: "Auth token",
|
|
206
|
+
fields: [{
|
|
207
|
+
name: "org",
|
|
208
|
+
label: "Organization",
|
|
209
|
+
placeholder: "your-org"
|
|
210
|
+
}, {
|
|
211
|
+
name: "project",
|
|
212
|
+
label: "Project",
|
|
213
|
+
placeholder: "recipes-api"
|
|
214
|
+
}],
|
|
215
|
+
system: null,
|
|
216
|
+
secret: "Auth token",
|
|
217
|
+
entry: {
|
|
218
|
+
word: "sentry",
|
|
219
|
+
field: "project",
|
|
220
|
+
service: "Sentry"
|
|
221
|
+
},
|
|
222
|
+
scopes: "An Auth token with project:read and event:read. Nothing that writes.",
|
|
223
|
+
credential: KEYCHAIN,
|
|
224
|
+
cloud: true
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
id: "search",
|
|
228
|
+
kind: "search",
|
|
229
|
+
label: SCOUT_SOURCE_LABELS.search,
|
|
230
|
+
needs: "Elasticsearch or OpenSearch",
|
|
231
|
+
fields: [
|
|
232
|
+
{
|
|
233
|
+
name: "endpoint",
|
|
234
|
+
label: "Cluster address",
|
|
235
|
+
placeholder: "https://logs.example.com:9200"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: "index",
|
|
239
|
+
label: "Index",
|
|
240
|
+
placeholder: "logs-*"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: "query",
|
|
244
|
+
label: "Query",
|
|
245
|
+
placeholder: "level:error"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
system: null,
|
|
249
|
+
secret: "API key",
|
|
250
|
+
entry: {
|
|
251
|
+
word: "logs",
|
|
252
|
+
field: "endpoint",
|
|
253
|
+
service: "the cluster"
|
|
254
|
+
},
|
|
255
|
+
scopes: "An API key that may read the index you name. It cannot write, and it needs no cluster rights.",
|
|
256
|
+
credential: `${KEYCHAIN} Paste the encoded value the cluster answers with when it makes the key, not the id and the key joined by a colon. A cluster that wants basic auth instead takes the key as user:password.`,
|
|
257
|
+
cloud: false
|
|
258
|
+
}
|
|
259
|
+
];
|
|
260
|
+
var SOURCE_FORMS = SOURCE_FORM_LIST;
|
|
261
|
+
function formOf(source) {
|
|
262
|
+
const same = SOURCE_FORM_LIST.filter((one) => one.kind === source.kind);
|
|
263
|
+
return same.find((one) => one.system === source.config.system) ?? same[0] ?? PASTE;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* The keychain name of a source's secret, by its kind, the project it reads and its id, or null for a
|
|
267
|
+
* form that keeps no secret. A source whose project changes gets a new name, so a save moves the
|
|
268
|
+
* secret with it.
|
|
269
|
+
*/
|
|
270
|
+
function sourceEntry(source) {
|
|
271
|
+
const entry = formOf(source).entry;
|
|
272
|
+
return entry === null ? null : scoutEntryName(entry.word, source.config[entry.field] ?? "", source.id);
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* A source's secret, read from its own entry.
|
|
276
|
+
*
|
|
277
|
+
* An older source still has its secret under `scout-<id>`. The first read moves it: the new entry is
|
|
278
|
+
* written first, so a failed move leaves the old one where it was, and the old one is removed after,
|
|
279
|
+
* so no copy stays behind.
|
|
280
|
+
*/
|
|
281
|
+
async function sourceSecret(keychain, source) {
|
|
282
|
+
const name = sourceEntry(source);
|
|
283
|
+
if (name === null) return null;
|
|
284
|
+
const held = await keychain.read(name);
|
|
285
|
+
if (held !== null) return held;
|
|
286
|
+
const old = scoutSecretName(source.id);
|
|
287
|
+
const moved = await keychain.read(old);
|
|
288
|
+
if (moved === null) return null;
|
|
289
|
+
await keychain.write(name, moved);
|
|
290
|
+
await keychain.remove(old);
|
|
291
|
+
return moved;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* A sqlite stamp as a person reads it.
|
|
295
|
+
*
|
|
296
|
+
* Written out and not relative, the way `engine-limits.ts` writes a time: "2 hours ago" needs the
|
|
297
|
+
* clock, and a server render would bake the clock of the render into the page. No time zone is
|
|
298
|
+
* passed, because Nolzu runs on the person's own machine and the server is in their zone.
|
|
299
|
+
*/
|
|
300
|
+
var when = (iso) => new Intl.DateTimeFormat("en-GB", {
|
|
301
|
+
day: "2-digit",
|
|
302
|
+
month: "short",
|
|
303
|
+
year: "numeric",
|
|
304
|
+
hour: "2-digit",
|
|
305
|
+
minute: "2-digit",
|
|
306
|
+
hour12: false
|
|
307
|
+
}).format(new Date(iso));
|
|
308
|
+
/** The calendar day of a time in the person's zone, as 2026-10-12, so two days compare as text. */
|
|
309
|
+
var dayKey = (at, timeZone) => new Intl.DateTimeFormat("en-CA", {
|
|
310
|
+
timeZone,
|
|
311
|
+
year: "numeric",
|
|
312
|
+
month: "2-digit",
|
|
313
|
+
day: "2-digit"
|
|
314
|
+
}).format(at);
|
|
315
|
+
/** "9 Oct", the day without its year. */
|
|
316
|
+
var dayMonth = (at, timeZone) => new Intl.DateTimeFormat("en-GB", {
|
|
317
|
+
timeZone,
|
|
318
|
+
day: "numeric",
|
|
319
|
+
month: "short"
|
|
320
|
+
}).format(at);
|
|
321
|
+
/**
|
|
322
|
+
* A stamp in the few characters a row has room for: the clock today, the weekday in the six days
|
|
323
|
+
* before, the date before that, with its year when that is not this one.
|
|
324
|
+
*
|
|
325
|
+
* Worked out in the load with the clock of that load, like `when`, so a page that stays open says the
|
|
326
|
+
* time it was drawn and never a "5m ago" that grows wrong. The zone is for tests only.
|
|
327
|
+
*/
|
|
328
|
+
function shortWhen(iso, now, timeZone) {
|
|
329
|
+
const at = new Date(iso);
|
|
330
|
+
const days = (Date.parse(dayKey(now, timeZone)) - Date.parse(dayKey(at, timeZone))) / 864e5;
|
|
331
|
+
if (days === 0) return new Intl.DateTimeFormat("en-GB", {
|
|
332
|
+
timeZone,
|
|
333
|
+
hour: "2-digit",
|
|
334
|
+
minute: "2-digit",
|
|
335
|
+
hour12: false
|
|
336
|
+
}).format(at);
|
|
337
|
+
if (days > 0 && days < 7) return new Intl.DateTimeFormat("en-GB", {
|
|
338
|
+
timeZone,
|
|
339
|
+
weekday: "short"
|
|
340
|
+
}).format(at);
|
|
341
|
+
const year = (date) => dayKey(date, timeZone).slice(0, 4);
|
|
342
|
+
return year(at) === year(now) ? dayMonth(at, timeZone) : new Intl.DateTimeFormat("en-GB", {
|
|
343
|
+
timeZone,
|
|
344
|
+
day: "numeric",
|
|
345
|
+
month: "short",
|
|
346
|
+
year: "numeric"
|
|
347
|
+
}).format(at);
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* The keychain entry a source's token sits under, as a person finds it in their keychain app.
|
|
351
|
+
*
|
|
352
|
+
* Only for sentences. A read or a write takes the plain name from `sourceEntry`, and the keychain adds
|
|
353
|
+
* this data folder's tag itself, so the two always agree.
|
|
354
|
+
*/
|
|
355
|
+
var scoutEntry = (name, env = process.env) => keychainAccount(name, resolveDataDir(env));
|
|
356
|
+
function scoutFor(db, now = /* @__PURE__ */ new Date()) {
|
|
357
|
+
return {
|
|
358
|
+
rows: scoutSources(db).map((source) => {
|
|
359
|
+
const form = formOf(source);
|
|
360
|
+
const name = sourceEntry(source);
|
|
361
|
+
return {
|
|
362
|
+
id: source.id,
|
|
363
|
+
label: source.label,
|
|
364
|
+
form,
|
|
365
|
+
values: source.config,
|
|
366
|
+
enabled: source.enabled,
|
|
367
|
+
createCards: source.createCards,
|
|
368
|
+
autoAssess: source.autoAssess,
|
|
369
|
+
schedule: scheduleChoice(source.scheduleMinutes, source.notify),
|
|
370
|
+
secretName: name === null ? null : scoutEntry(name),
|
|
371
|
+
checked: source.lastChecked === null ? "Not checked yet." : `Last checked ${when(source.lastChecked)}.`,
|
|
372
|
+
checkedAt: source.lastChecked === null ? null : shortWhen(source.lastChecked, now),
|
|
373
|
+
error: source.lastError
|
|
374
|
+
};
|
|
375
|
+
}),
|
|
376
|
+
forms: [...SOURCE_FORM_LIST]
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
var no = (did, message) => ({
|
|
380
|
+
ok: false,
|
|
381
|
+
did,
|
|
382
|
+
message
|
|
383
|
+
});
|
|
384
|
+
var yes = (did) => ({
|
|
385
|
+
ok: true,
|
|
386
|
+
did,
|
|
387
|
+
message: null
|
|
388
|
+
});
|
|
389
|
+
var asked = (form, name) => (form.get(name)?.toString() ?? "").trim();
|
|
390
|
+
function sourceSettings(chosen, form) {
|
|
391
|
+
const config = {};
|
|
392
|
+
for (const field of chosen.fields) {
|
|
393
|
+
const value = asked(form, field.name);
|
|
394
|
+
if (value === "") return { message: `A ${chosen.label} source needs the ${field.label.toLowerCase()}.` };
|
|
395
|
+
config[field.name] = value;
|
|
396
|
+
}
|
|
397
|
+
if (chosen.system !== null) config.system = chosen.system;
|
|
398
|
+
return { config };
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* The keychain's own words about a write that failed, or null when it took the secret.
|
|
402
|
+
*
|
|
403
|
+
* Every failure of that module is a thrown error, and none of its messages repeats the secret, so
|
|
404
|
+
* the sentence goes to the screen as it is. The one thing this may not do is build a message of its
|
|
405
|
+
* own around what the tool printed, because on macOS a refused command echoes the secret.
|
|
406
|
+
*/
|
|
407
|
+
async function keep(keychain, name, secret) {
|
|
408
|
+
try {
|
|
409
|
+
await keychain.write(name, secret);
|
|
410
|
+
return null;
|
|
411
|
+
} catch (error) {
|
|
412
|
+
return error instanceof Error ? error.message : "The keychain refused the token.";
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Add, edit or remove one source.
|
|
417
|
+
*
|
|
418
|
+
* The form is read and refused before anything is stored, because storing the row is what makes the
|
|
419
|
+
* keychain entry's name, and a keychain call can put a dialog in front of the person. An add that
|
|
420
|
+
* gets its row in and then cannot store the token takes the row away again: a source with settings
|
|
421
|
+
* and no token would be checked and fail every time, with nothing on the screen saying why.
|
|
422
|
+
*
|
|
423
|
+
* `hub` is here for the two branches that change what a scheduled check on the hub does: a save that
|
|
424
|
+
* turns the checks or one of the two opt-ins off, and a remove, which has to take the schedule with
|
|
425
|
+
* it. The hub is the one place the client cannot delete a row from by hand.
|
|
426
|
+
*/
|
|
427
|
+
async function saveScoutSource(db, keychain, form, hub) {
|
|
428
|
+
const did = asked(form, "do");
|
|
429
|
+
if (did === "add") {
|
|
430
|
+
const chosen = SOURCE_FORM_LIST.find((one) => one.id === asked(form, "form"));
|
|
431
|
+
if (chosen === void 0) return no(did, `There is no source ${asked(form, "form")}. Pick one of the kinds on the list.`);
|
|
432
|
+
const label = asked(form, "label");
|
|
433
|
+
if (label === "") return no(did, "The source needs a label, so you can tell it apart from the others.");
|
|
434
|
+
const read = sourceSettings(chosen, form);
|
|
435
|
+
if ("message" in read) return no(did, read.message);
|
|
436
|
+
const secret = asked(form, "secret");
|
|
437
|
+
if (chosen.secret !== null && secret === "") return no(did, `A ${chosen.label} source needs its ${chosen.secret}.`);
|
|
438
|
+
const id = addScoutSource(db, {
|
|
439
|
+
kind: chosen.kind,
|
|
440
|
+
label,
|
|
441
|
+
config: read.config
|
|
442
|
+
});
|
|
443
|
+
const createCards = asked(form, "createCards") === "on";
|
|
444
|
+
const autoAssess = asked(form, "autoAssess") === "on";
|
|
445
|
+
if (createCards || autoAssess) setScoutSource(db, id, {
|
|
446
|
+
createCards,
|
|
447
|
+
autoAssess
|
|
448
|
+
});
|
|
449
|
+
const added = {
|
|
450
|
+
ok: true,
|
|
451
|
+
did,
|
|
452
|
+
message: null,
|
|
453
|
+
id
|
|
454
|
+
};
|
|
455
|
+
const name = sourceEntry({
|
|
456
|
+
id,
|
|
457
|
+
kind: chosen.kind,
|
|
458
|
+
config: read.config
|
|
459
|
+
});
|
|
460
|
+
if (name === null) return added;
|
|
461
|
+
const refused = await keep(keychain, name, secret);
|
|
462
|
+
if (refused === null) return added;
|
|
463
|
+
await keychain.remove(name).catch(() => void 0);
|
|
464
|
+
removeScoutSource(db, id);
|
|
465
|
+
return no(did, `The source was not added. ${refused}`);
|
|
466
|
+
}
|
|
467
|
+
const source = scoutSource(db, Number(asked(form, "id")));
|
|
468
|
+
if (source === null) return no(did, `There is no source ${asked(form, "id")} on this machine.`);
|
|
469
|
+
const chosen = formOf(source);
|
|
470
|
+
if (did === "save") {
|
|
471
|
+
const label = asked(form, "label");
|
|
472
|
+
if (label === "") return no(did, "The source needs a label, so you can tell it apart from the others.");
|
|
473
|
+
const read = sourceSettings(chosen, form);
|
|
474
|
+
if ("message" in read) return no(did, read.message);
|
|
475
|
+
const enabled = asked(form, "enabled") === "on";
|
|
476
|
+
const createCards = asked(form, "createCards") === "on";
|
|
477
|
+
const autoAssess = asked(form, "autoAssess") === "on";
|
|
478
|
+
setScoutSource(db, source.id, {
|
|
479
|
+
label,
|
|
480
|
+
config: read.config,
|
|
481
|
+
enabled,
|
|
482
|
+
createCards,
|
|
483
|
+
autoAssess
|
|
484
|
+
});
|
|
485
|
+
if (enabled !== source.enabled || createCards !== source.createCards || autoAssess !== source.autoAssess) sendScoutSchedule({
|
|
486
|
+
...source,
|
|
487
|
+
enabled,
|
|
488
|
+
createCards,
|
|
489
|
+
autoAssess
|
|
490
|
+
}, hub);
|
|
491
|
+
if (JSON.stringify(read.config) !== JSON.stringify(source.config)) clearScoutCursor(db, source.id);
|
|
492
|
+
const before = sourceEntry(source);
|
|
493
|
+
const after = sourceEntry({
|
|
494
|
+
...source,
|
|
495
|
+
config: read.config
|
|
496
|
+
});
|
|
497
|
+
if (after === null) return yes(did);
|
|
498
|
+
const secret = asked(form, "secret");
|
|
499
|
+
if (secret !== "") {
|
|
500
|
+
const refused = await keep(keychain, after, secret);
|
|
501
|
+
if (refused !== null) return no(did, `The settings are saved. The token is not. ${refused}`);
|
|
502
|
+
for (const old of [before, scoutSecretName(source.id)]) if (old !== null && old !== after) await keychain.remove(old).catch(() => void 0);
|
|
503
|
+
return yes(did);
|
|
504
|
+
}
|
|
505
|
+
if (before === after) return yes(did);
|
|
506
|
+
let held;
|
|
507
|
+
try {
|
|
508
|
+
held = await sourceSecret(keychain, source);
|
|
509
|
+
} catch (error) {
|
|
510
|
+
return no(did, `The settings are saved. The token did not move to its new name, so paste it again. ${error instanceof Error ? error.message : ""}`.trim());
|
|
511
|
+
}
|
|
512
|
+
if (held === null) return yes(did);
|
|
513
|
+
const refused = await keep(keychain, after, held);
|
|
514
|
+
if (refused !== null) return no(did, `The settings are saved. The token did not move to its new name, so paste it again. ${refused}`);
|
|
515
|
+
if (before !== null) await keychain.remove(before).catch(() => void 0);
|
|
516
|
+
return yes(did);
|
|
517
|
+
}
|
|
518
|
+
if (did === "remove") {
|
|
519
|
+
const name = sourceEntry(source);
|
|
520
|
+
if (name !== null) try {
|
|
521
|
+
await keychain.remove(scoutSecretName(source.id));
|
|
522
|
+
await keychain.remove(name);
|
|
523
|
+
} catch (error) {
|
|
524
|
+
return no(did, `Nothing was removed. ${error instanceof Error ? error.message : "The keychain refused."}`);
|
|
525
|
+
}
|
|
526
|
+
const cancelled = sendScoutSchedule({
|
|
527
|
+
...source,
|
|
528
|
+
enabled: false
|
|
529
|
+
}, hub);
|
|
530
|
+
removeScoutSource(db, source.id);
|
|
531
|
+
return cancelled ? yes(did) : yes("remove-here");
|
|
532
|
+
}
|
|
533
|
+
return no(did, `There is nothing called ${did} to do to a source. This screen can add a source, save its settings or remove it.`);
|
|
534
|
+
}
|
|
535
|
+
var count = (many, one, more) => `${many} ${many === 1 ? one : more}`;
|
|
536
|
+
var blank = (text) => text.replace(/[\u200B-\u200D\u2060\uFEFF]/g, "") === "";
|
|
537
|
+
var EMPTY_BOX = {
|
|
538
|
+
ok: false,
|
|
539
|
+
checked: null,
|
|
540
|
+
message: "Paste the log or the errors into the box first. It is empty."
|
|
541
|
+
};
|
|
542
|
+
var FIRST_PASTE_LABEL = "Pasted logs";
|
|
543
|
+
/**
|
|
544
|
+
* The first visit's paste box: the text checked with the project's pasted text source, which is made
|
|
545
|
+
* here when there is none.
|
|
546
|
+
*
|
|
547
|
+
* The empty box is refused before anything is made, so a press on it leaves no source behind and the
|
|
548
|
+
* page stays on the first visit.
|
|
549
|
+
*/
|
|
550
|
+
function checkFirstPaste(db, form) {
|
|
551
|
+
const text = asked(form, "text");
|
|
552
|
+
if (blank(text)) return EMPTY_BOX;
|
|
553
|
+
const id = scoutSources(db).find((one) => one.kind === "paste")?.id ?? addScoutSource(db, {
|
|
554
|
+
kind: "paste",
|
|
555
|
+
label: FIRST_PASTE_LABEL
|
|
556
|
+
});
|
|
557
|
+
const post = new FormData();
|
|
558
|
+
post.set("id", String(id));
|
|
559
|
+
post.set("text", text);
|
|
560
|
+
return checkScoutSource(db, post);
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Check one pasted source with the text that came with the post.
|
|
564
|
+
*
|
|
565
|
+
* The paste as a whole is stored nowhere: `checkPasteSource` writes the lines it found and a digest of
|
|
566
|
+
* the text, so a line that became a finding is kept and the paste around it is not. This path builds
|
|
567
|
+
* no keychain either, because a pasted source holds no credential and a keychain call can put an OS
|
|
568
|
+
* password dialog on the screen.
|
|
569
|
+
*
|
|
570
|
+
* The empty box is refused here and not below. `checkPasteSource` reads an empty text happily, finds
|
|
571
|
+
* nothing and still stamps the check, so the source would claim it was checked when nothing was read.
|
|
572
|
+
*/
|
|
573
|
+
function checkScoutSource(db, form) {
|
|
574
|
+
const text = asked(form, "text");
|
|
575
|
+
if (blank(text)) return EMPTY_BOX;
|
|
576
|
+
const answer = checkPasteSource(db, Number(asked(form, "id")), text);
|
|
577
|
+
if (answer.error !== null) return {
|
|
578
|
+
ok: false,
|
|
579
|
+
checked: null,
|
|
580
|
+
message: answer.error
|
|
581
|
+
};
|
|
582
|
+
if (answer.added === 0 && answer.met === 0 && answer.muted === 0) return {
|
|
583
|
+
ok: true,
|
|
584
|
+
checked: "Scout has read that text before, so no finding changed.",
|
|
585
|
+
message: null
|
|
586
|
+
};
|
|
587
|
+
return {
|
|
588
|
+
ok: true,
|
|
589
|
+
checked: checkedSentence(answer),
|
|
590
|
+
message: null
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* The numbers one check changed, as one sentence.
|
|
595
|
+
*
|
|
596
|
+
* Shared by every adapter's check, because "met" on one screen and "seen again" on the other have
|
|
597
|
+
* drifted apart once already. A second builder would let the two drift apart again. What a check with
|
|
598
|
+
* no numbers at all says is the caller's own, because a paste that carried nothing was read before and
|
|
599
|
+
* a query that answered nothing is a different thing.
|
|
600
|
+
*/
|
|
601
|
+
function checkedSentence(answer) {
|
|
602
|
+
const parts = [];
|
|
603
|
+
if (answer.added > 0) parts.push(count(answer.added, "new finding", "new findings"));
|
|
604
|
+
if (answer.met > 0) parts.push(`${count(answer.met, "finding", "findings")} seen again`);
|
|
605
|
+
if (answer.muted > 0) parts.push(`${count(answer.muted, "finding", "findings")} left muted`);
|
|
606
|
+
const where = answer.added === 0 && answer.met === 0 ? " Nothing on the list changed. The muted ones are under Muted." : "";
|
|
607
|
+
return `Checked. ${parts.join(", and ")}.${where}`;
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* Tell the hub what a scheduled check of this source may do now, and answer whether the frame went.
|
|
611
|
+
*
|
|
612
|
+
* The frame is a copy of the row, the way `registerProject` in `hub-link.ts` builds it: a source whose
|
|
613
|
+
* checks the person turned off sends a 0, and that 0 is what deletes the hub's row and its due entry.
|
|
614
|
+
* So a stop is this same frame with the checks off, and there is one builder and not two.
|
|
615
|
+
*
|
|
616
|
+
* True when there was nothing to tell: a source with no stored schedule, and a machine registered
|
|
617
|
+
* nowhere. Neither of the two has a row on the hub for any of these settings to act on.
|
|
618
|
+
*/
|
|
619
|
+
function sendScoutSchedule(source, hub) {
|
|
620
|
+
if (source.scheduleMinutes === 0 || hub.projectId === null) return true;
|
|
621
|
+
const on = source.enabled;
|
|
622
|
+
return hub.send({
|
|
623
|
+
projectId: hub.projectId,
|
|
624
|
+
sourceId: source.id,
|
|
625
|
+
intervalMinutes: on ? source.scheduleMinutes : 0,
|
|
626
|
+
notify: on && source.notify,
|
|
627
|
+
createCards: source.createCards,
|
|
628
|
+
autoAssess: source.autoAssess
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* Store one source's schedule, and tell the hub.
|
|
633
|
+
*
|
|
634
|
+
* The row is the truth on this machine, so it is written first and the frame is a copy of it. A frame
|
|
635
|
+
* that could not go is not held for a retry here, and the answer says so, so the person is never told
|
|
636
|
+
* that a schedule runs when nothing can run it. The next connect sends the stored schedule again, from
|
|
637
|
+
* `registerProject` in `hub-link.ts`, so a save made while the link was down still reaches the hub.
|
|
638
|
+
*/
|
|
639
|
+
function saveScoutSchedule(db, form, deps) {
|
|
640
|
+
const refused = (message) => ({
|
|
641
|
+
ok: false,
|
|
642
|
+
did: "schedule",
|
|
643
|
+
message
|
|
644
|
+
});
|
|
645
|
+
const source = scoutSource(db, Number(asked(form, "id")));
|
|
646
|
+
if (source === null) return refused(`There is no source ${asked(form, "id")} on this machine.`);
|
|
647
|
+
if (!deps.allowed) return refused("This machine is on the free plan, so no schedule was saved. Check now works on every plan.");
|
|
648
|
+
const chosen = formOf(source);
|
|
649
|
+
if (!chosen.cloud) return refused(`Nolzu cloud does not check a ${chosen.label} source, so this one takes no schedule. Check it from this machine with Check now.`);
|
|
650
|
+
const read = readScheduleForm(form);
|
|
651
|
+
if ("message" in read) return refused(read.message);
|
|
652
|
+
setScoutSource(db, source.id, {
|
|
653
|
+
scheduleMinutes: read.intervalMinutes,
|
|
654
|
+
notify: read.notify
|
|
655
|
+
});
|
|
656
|
+
if (deps.projectId === null) return {
|
|
657
|
+
ok: true,
|
|
658
|
+
did: "schedule-here",
|
|
659
|
+
message: null
|
|
660
|
+
};
|
|
661
|
+
if (deps.send({
|
|
662
|
+
projectId: deps.projectId,
|
|
663
|
+
sourceId: source.id,
|
|
664
|
+
intervalMinutes: read.intervalMinutes,
|
|
665
|
+
notify: read.notify,
|
|
666
|
+
createCards: source.createCards,
|
|
667
|
+
autoAssess: source.autoAssess
|
|
668
|
+
})) return {
|
|
669
|
+
ok: true,
|
|
670
|
+
did: "schedule",
|
|
671
|
+
message: null
|
|
672
|
+
};
|
|
673
|
+
return {
|
|
674
|
+
ok: true,
|
|
675
|
+
did: read.intervalMinutes === 0 ? "schedule-off-here" : "schedule-here",
|
|
676
|
+
message: null
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
//#endregion
|
|
680
|
+
//#region src/lib/scout-findings.ts
|
|
681
|
+
/**
|
|
682
|
+
* The quiet line of an empty Scout list: no findings, and what Scout last checked, as the States design
|
|
683
|
+
* draws it ("No findings. Scout checked 3 sources at 14:00."). Null with no source, where the screen
|
|
684
|
+
* says to add one.
|
|
685
|
+
*
|
|
686
|
+
* No time zone is passed outside a test, because Nolzu runs on the person's own machine and the server
|
|
687
|
+
* is in their zone, as `when` in scout-sources.ts has it.
|
|
688
|
+
*/
|
|
689
|
+
function noFindingsLine(sources, now, timeZone) {
|
|
690
|
+
if (sources.length === 0) return null;
|
|
691
|
+
const checked = sources.map((one) => one.lastChecked).filter((stamp) => stamp !== null);
|
|
692
|
+
if (checked.length === 0) return `No findings. Scout has not checked ${sources.length === 1 ? "its source" : `its ${sources.length} sources`} yet. Press Check now on a source under Sources.`;
|
|
693
|
+
const last = new Date(Math.max(...checked.map((stamp) => Date.parse(stamp))));
|
|
694
|
+
const day = (date) => new Intl.DateTimeFormat("en-GB", {
|
|
695
|
+
timeZone,
|
|
696
|
+
day: "numeric",
|
|
697
|
+
month: "short"
|
|
698
|
+
}).format(date);
|
|
699
|
+
const clock = new Intl.DateTimeFormat("en-GB", {
|
|
700
|
+
timeZone,
|
|
701
|
+
hour: "2-digit",
|
|
702
|
+
minute: "2-digit",
|
|
703
|
+
hour12: false
|
|
704
|
+
}).format(last);
|
|
705
|
+
const when = day(last) === day(now) ? `at ${clock}` : `on ${day(last)} at ${clock}`;
|
|
706
|
+
return `No findings. Scout checked ${checked.length} ${checked.length === 1 ? "source" : "sources"} ${when}.`;
|
|
707
|
+
}
|
|
708
|
+
var STATUS_LABELS = {
|
|
709
|
+
new: "New",
|
|
710
|
+
assess: "In assessment",
|
|
711
|
+
decide: "To decide",
|
|
712
|
+
started: "Started",
|
|
713
|
+
done: "Done",
|
|
714
|
+
parked: "Parked",
|
|
715
|
+
dismissed: "Muted"
|
|
716
|
+
};
|
|
717
|
+
/**
|
|
718
|
+
* How often a finding was seen and over how long, as the inbox row and Now's teaser print it after the
|
|
719
|
+
* source: "seen once", "seen 3 times today", "seen 3 times on 9 Oct", "seen 12 times in 2 days".
|
|
720
|
+
*
|
|
721
|
+
* The days are the time from the first sighting to the last, rounded, so a Saturday evening to a
|
|
722
|
+
* Monday noon is two days, as the Scout design counts them. The zone is for tests only.
|
|
723
|
+
*/
|
|
724
|
+
function seenOften(occurrences, firstSeen, lastSeen, now, timeZone) {
|
|
725
|
+
if (occurrences === 1) return "seen once";
|
|
726
|
+
const first = new Date(firstSeen);
|
|
727
|
+
const last = new Date(lastSeen);
|
|
728
|
+
if (dayKey(first, timeZone) === dayKey(last, timeZone)) return dayKey(last, timeZone) === dayKey(now, timeZone) ? `seen ${occurrences} times today` : `seen ${occurrences} times on ${dayMonth(last, timeZone)}`;
|
|
729
|
+
const days = Math.max(1, Math.round((last.getTime() - first.getTime()) / 864e5));
|
|
730
|
+
return `seen ${occurrences} times in ${days === 1 ? "a day" : `${days} days`}`;
|
|
731
|
+
}
|
|
732
|
+
function pillOf(one, running) {
|
|
733
|
+
if (one.status === "new") return {
|
|
734
|
+
state: "new",
|
|
735
|
+
word: "New",
|
|
736
|
+
detail: null
|
|
737
|
+
};
|
|
738
|
+
if (one.status === "assess" && running) return {
|
|
739
|
+
state: "running",
|
|
740
|
+
word: "Assessing",
|
|
741
|
+
detail: null
|
|
742
|
+
};
|
|
743
|
+
if (one.status === "assess" || one.status === "decide") return {
|
|
744
|
+
state: "ready",
|
|
745
|
+
word: "To decide",
|
|
746
|
+
detail: null
|
|
747
|
+
};
|
|
748
|
+
return {
|
|
749
|
+
state: "idle",
|
|
750
|
+
word: STATUS_LABELS[one.status],
|
|
751
|
+
detail: one.status === "started" ? one.cardKey : null
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* One row, from the finding and the label of the source that found it.
|
|
756
|
+
*
|
|
757
|
+
* The detail screen reads it through this too, so the two screens cannot end up printing different
|
|
758
|
+
* words for one status or different times for one finding.
|
|
759
|
+
*
|
|
760
|
+
* `cards` says where the cards these findings name are sitting. It is handed in rather than read
|
|
761
|
+
* here, because the list draws many rows off one query and this stays free of the database, and so is
|
|
762
|
+
* `running`, whether the finding's assessment run is going now. `now` is the clock the short times
|
|
763
|
+
* are written against.
|
|
764
|
+
*/
|
|
765
|
+
var scoutRow = (one, source, cards, running = false, now = /* @__PURE__ */ new Date()) => {
|
|
766
|
+
const at = one.cardKey === null ? void 0 : cards.get(one.cardKey);
|
|
767
|
+
const card = one.cardKey === null ? null : {
|
|
768
|
+
key: one.cardKey,
|
|
769
|
+
here: at !== void 0,
|
|
770
|
+
board: at?.board ?? "",
|
|
771
|
+
stage: at?.stage ?? ""
|
|
772
|
+
};
|
|
773
|
+
const cardProblem = one.externalKey === null || card?.here === true ? null : ticketRefProblem(one.externalKey);
|
|
774
|
+
return {
|
|
775
|
+
id: one.id,
|
|
776
|
+
title: one.lastMessage.split("\n")[0] ?? "",
|
|
777
|
+
source,
|
|
778
|
+
seen: one.occurrences === 1 ? `Seen once, on ${when(one.lastSeen)}.` : `Seen ${one.occurrences} times, last on ${when(one.lastSeen)}.`,
|
|
779
|
+
often: seenOften(one.occurrences, one.firstSeen, one.lastSeen, now),
|
|
780
|
+
at: shortWhen(one.lastSeen, now),
|
|
781
|
+
first: when(one.firstSeen),
|
|
782
|
+
last: when(one.lastSeen),
|
|
783
|
+
firstMessage: one.firstMessage,
|
|
784
|
+
lastMessage: one.lastMessage,
|
|
785
|
+
location: one.location,
|
|
786
|
+
fingerprint: one.fingerprint,
|
|
787
|
+
status: STATUS_LABELS[one.status],
|
|
788
|
+
pill: pillOf(one, running),
|
|
789
|
+
canAssess: one.status === "new",
|
|
790
|
+
card,
|
|
791
|
+
canStart: cardProblem === null && canStartFinding(one.status, card?.here === true),
|
|
792
|
+
cardProblem
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
function scoutFindingsFor(db, now = /* @__PURE__ */ new Date()) {
|
|
796
|
+
const sources = scoutSources(db);
|
|
797
|
+
const names = new Map(sources.map((source) => [source.id, source.label]));
|
|
798
|
+
const all = allScoutFindings(db);
|
|
799
|
+
const live = cardsOnBoard(db, all);
|
|
800
|
+
const going = assessing(db);
|
|
801
|
+
const row = (one) => scoutRow(one, names.get(one.sourceId) ?? "", live, going.has(assessKey(one.id)), now);
|
|
802
|
+
const seen = getSetting(db, "scoutSeen");
|
|
803
|
+
return {
|
|
804
|
+
rows: all.filter((one) => one.status !== "dismissed").map(row),
|
|
805
|
+
memory: all.filter((one) => one.status === "dismissed").map(row),
|
|
806
|
+
empty: noFindingsLine(sources, now),
|
|
807
|
+
fresh: all.filter((one) => one.status !== "dismissed" && (seen === null || one.firstSeen > seen)).length
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* The keys of the assessment runs going now, in one query for the whole list.
|
|
812
|
+
*
|
|
813
|
+
* The run rows and not the status word, which stays `assess` after the run ends. `ENDED` is the same
|
|
814
|
+
* list the detail page reads a going run with, so the two screens agree.
|
|
815
|
+
*/
|
|
816
|
+
function assessing(db) {
|
|
817
|
+
const rows = db.prepare(`SELECT DISTINCT card_key FROM runs WHERE card_key LIKE 'assess-%' AND (state IS NULL OR state NOT IN (${ENDED.map(() => "?").join(", ")}))`).all(...ENDED);
|
|
818
|
+
return new Set(rows.map((row) => row.card_key));
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* The seen marker, moved up to the newest finding there is. The Scout page calls it on every load, so
|
|
822
|
+
* the rail's dot and Now's count mean new since the last visit.
|
|
823
|
+
*
|
|
824
|
+
* True when it moved. A visit with nothing newer writes nothing, so it does not wake every open stream
|
|
825
|
+
* for a number that stayed the same. Both stamps come from sqlite in one ISO form, so the later string
|
|
826
|
+
* is the later time.
|
|
827
|
+
*/
|
|
828
|
+
function markScoutSeen(db) {
|
|
829
|
+
const newest = db.prepare("SELECT max(first_seen) AS at FROM scout_findings").get().at;
|
|
830
|
+
const seen = getSetting(db, "scoutSeen");
|
|
831
|
+
if (newest === null || seen !== null && newest <= seen) return false;
|
|
832
|
+
writeSetting(db, "scoutSeen", newest);
|
|
833
|
+
return true;
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Mute one finding, or bring it back.
|
|
837
|
+
*
|
|
838
|
+
* A sentence and never a throw for an id that is not there, the way the source actions answer: the
|
|
839
|
+
* finding may have gone with its source in another tab, and the person still has to read why their
|
|
840
|
+
* button did nothing.
|
|
841
|
+
*/
|
|
842
|
+
function muteScoutFinding(db, form, muted) {
|
|
843
|
+
const typed = (form.get("id")?.toString() ?? "").trim();
|
|
844
|
+
if (!/^\d+$/.test(typed)) return {
|
|
845
|
+
ok: false,
|
|
846
|
+
message: "That button posted no finding id. Load the Scout screen again and press it once more."
|
|
847
|
+
};
|
|
848
|
+
if (scoutFinding(db, Number(typed)) === null) return {
|
|
849
|
+
ok: false,
|
|
850
|
+
message: `There is no finding ${typed} on this machine. It may have gone with the source that found it.`
|
|
851
|
+
};
|
|
852
|
+
if (muted) return dismissScoutFinding(db, Number(typed)) ? {
|
|
853
|
+
ok: true,
|
|
854
|
+
message: "That finding is muted. A later check leaves it muted."
|
|
855
|
+
} : {
|
|
856
|
+
ok: false,
|
|
857
|
+
message: "That finding is muted already. Unmute it to bring it back."
|
|
858
|
+
};
|
|
859
|
+
return unmuteScoutFinding(db, Number(typed)) ? {
|
|
860
|
+
ok: true,
|
|
861
|
+
message: "That finding is back on the list, with the count it had."
|
|
862
|
+
} : {
|
|
863
|
+
ok: false,
|
|
864
|
+
message: "That finding is not muted, so nothing changed."
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* Of the cards these findings name, the ones still on a board, and where each one sits.
|
|
869
|
+
*
|
|
870
|
+
* One query for the whole list, because a card row per finding would be a read per row. The detail
|
|
871
|
+
* screen asks about its one finding through the same function, so the two screens cannot disagree
|
|
872
|
+
* about whether a card is there. Nothing deletes a card today, so this answers everything on most
|
|
873
|
+
* machines, and a key that is missing from the answer is what tells the screens a card is gone.
|
|
874
|
+
*
|
|
875
|
+
* The board and the column come back as words and not as ids, because `PRODUCT-BRIEF.md` 7.6 asks
|
|
876
|
+
* the screens to say where a started finding's card is, and a stage label is only in the board.
|
|
877
|
+
*/
|
|
878
|
+
function cardsOnBoard(db, findings) {
|
|
879
|
+
const keys = [...new Set(findings.map((one) => one.cardKey).filter((key) => key !== null))];
|
|
880
|
+
if (keys.length === 0) return /* @__PURE__ */ new Map();
|
|
881
|
+
const rows = db.prepare(`SELECT key, board, stage FROM cards WHERE key IN (${keys.map(() => "?").join(", ")})`).all(...keys);
|
|
882
|
+
getSetting(db, "deliveryFlow");
|
|
883
|
+
return new Map(rows.map((row) => {
|
|
884
|
+
const kind = isBoardKind(row.board) ? row.board : null;
|
|
885
|
+
const stage = kind === null ? row.stage : boardFor(kind).stages.find((one) => one.id === row.stage)?.label ?? row.stage;
|
|
886
|
+
return [row.key, {
|
|
887
|
+
board: kind === null ? row.board : BOARD_LABELS[kind],
|
|
888
|
+
stage
|
|
889
|
+
}];
|
|
890
|
+
}));
|
|
891
|
+
}
|
|
892
|
+
var START_BOARDS = {
|
|
893
|
+
delivery: "delivery",
|
|
894
|
+
investigations: "investigations"
|
|
895
|
+
};
|
|
896
|
+
/**
|
|
897
|
+
* Start one finding as a card, on the board its button named.
|
|
898
|
+
*
|
|
899
|
+
* A sentence and never a throw, the way Dismiss, Unmute and Assess answer on these screens. The
|
|
900
|
+
* writer's own refusals are handed on as they are: each one names the finding or the card and says
|
|
901
|
+
* what to do next. Anything the write throws becomes a sentence too: the write takes the database
|
|
902
|
+
* lock, and another process holding it is a refusal a person can act on and not a 500 page.
|
|
903
|
+
*/
|
|
904
|
+
function answerStart(live, form) {
|
|
905
|
+
const typed = (form.get("id")?.toString() ?? "").trim();
|
|
906
|
+
if (!/^\d+$/.test(typed)) return {
|
|
907
|
+
ok: false,
|
|
908
|
+
message: "That button posted no finding id. Load the Scout screen again and press it once more."
|
|
909
|
+
};
|
|
910
|
+
const board = START_BOARDS[(form.get("board")?.toString() ?? "").trim()];
|
|
911
|
+
if (board === void 0) return {
|
|
912
|
+
ok: false,
|
|
913
|
+
message: "That button posted no board to start on. Load the Scout screen again and press it once more."
|
|
914
|
+
};
|
|
915
|
+
let start;
|
|
916
|
+
try {
|
|
917
|
+
start = startScoutFinding(live.db, Number(typed), board);
|
|
918
|
+
} catch (error) {
|
|
919
|
+
return {
|
|
920
|
+
ok: false,
|
|
921
|
+
message: error.message
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
if (!start.ok) return {
|
|
925
|
+
ok: false,
|
|
926
|
+
message: start.message
|
|
927
|
+
};
|
|
928
|
+
live.changed();
|
|
929
|
+
if (start.alreadyOnBoard === true) return {
|
|
930
|
+
ok: true,
|
|
931
|
+
message: `Finding ${typed} is the ticket ${start.key}, and that card is already on the board. The finding points at it now, and no second card was made.`
|
|
932
|
+
};
|
|
933
|
+
return {
|
|
934
|
+
ok: true,
|
|
935
|
+
message: `Finding ${typed} is on ${isResearchKind(board) ? "Research" : `the ${BOARD_LABELS[board]} board`} as ${start.key}. Nothing is running yet: move that card forward when you want the work to start. The read-only assessment is not offered on this finding any more, because it runs from New alone.`
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
export { SCHEDULE_FEATURE as S, saveScoutSchedule as a, checkScoutSource as b, checkFirstPaste as c, answerStart as d, checkedSentence as e, count as f, SOURCE_FORMS as g, asked as h, sourceSettings as i, sourceEntry as j, saveScoutSource as k, markScoutSeen as l, muteScoutFinding as m, scoutFor as n, scoutRow as o, assessing as p, cardsOnBoard as q, sourceSecret as r, scoutFindingsFor as s, scoutEntry as t };
|
|
940
|
+
//# sourceMappingURL=scout-findings.js-CqJti10a.js.map
|