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,1627 @@
|
|
|
1
|
+
import { t as tick } from './internal.js-DaSBO6jY.js';
|
|
2
|
+
import { ap as head, ag as escape_html, ai as attr, ao as stringify, am as ensure_array_like, P as derived, al as bind_props, aj as props_id, ak as attr_class, an as attr_style } from './server.js-BR0D07DR.js';
|
|
3
|
+
import { r as ranOn, E as ENGINE_LABELS, i as isEngineName } from './engine.js-DS5zUwsE.js';
|
|
4
|
+
import { l as choiceLabel, B as BOARD_LABELS, R as RESEARCH_KINDS, n as RESEARCH_KIND_LABELS, a as isResearchKind } from './board.js-BxL3CjB1.js';
|
|
5
|
+
import { h as boardFor, af as estimateText, an as estimateBrief, aj as estimateShort } from './estimate.js-BHTYVTaQ.js';
|
|
6
|
+
import { x as ticketLink, w as parseTicketRef, f as pullKey } from './src.js-Cm8RAH_q.js';
|
|
7
|
+
import { c as cardStarts, a as checkWords } from './snapshot.js-BekzL_He.js';
|
|
8
|
+
import './src2.js-CV8tsClO.js';
|
|
9
|
+
import { c as coachAt, C as COACH_NOTE, P as PHASE_SAYS } from './getting-started.js-DKbHofN5.js';
|
|
10
|
+
import { D as DECISION_WORD } from './review.js-MPqnq9Gy.js';
|
|
11
|
+
import { E as boardCount, b as boardKind, F as pullsAddress, G as readPullsSaid, h as filterOn, H as allowedFor, I as postCard, J as researchCard, K as cardAdded, f as fixItOf, d as dropTarget, u as refuseDrop, s as startsCommand, L as keyCopied, e as stageBack, C as pressed, M as sendMove, D as answered, m as keyWrite, y as refusedDrop, p as fixLink, z as refusalFromServer, O as addOrHold, P as addedOf, Q as postJira, S as nextKey, T as contextCards, U as confirmStage, V as confirmFix, W as addedToast } from './board-page.js-D0tdsE9J.js';
|
|
12
|
+
import { B as Button } from './Button.js-Buh9rnpu.js';
|
|
13
|
+
import { D as Dialog } from './Dialog.js-CGpwdpM-.js';
|
|
14
|
+
import { w as waitingOnMe, m as matchesFilter } from './filter.js-CsmCtJMd.js';
|
|
15
|
+
import { a as age } from './elapsed.js-DikkNhaD.js';
|
|
16
|
+
import { c as cardPill, l as liveOf } from './quiet.js-1GKY40Ay.js';
|
|
17
|
+
import { a as answerHref } from './Markdown.js-Clud88KU.js';
|
|
18
|
+
import { a as scoped, b as slotsLine, m as slotPips, o as hintsOf, d as liveKeys } from './now.js-Dfm-o0Ha.js';
|
|
19
|
+
import { K as KeyCaps } from './KeyCaps.js-BMI2Hrh2.js';
|
|
20
|
+
import { S as StatePill } from './StatePill.js-CM7-HXNM.js';
|
|
21
|
+
import { S as Skeleton } from './Skeleton.js-diCP2sd5.js';
|
|
22
|
+
import { P as PeekPanel, C as CoachNote } from './PeekPanel.js-aZ-r_v3N.js';
|
|
23
|
+
import { v as visibleColumns, s as shutColumns, f as focusMove, S as StartConfirm } from './StartConfirm.js-CzEdFtbO.js';
|
|
24
|
+
import { a as toggleFilter } from './board-keys.js-CW3qw-MC.js';
|
|
25
|
+
import { f as feedbackLine } from './prs.js-CLfImauu.js';
|
|
26
|
+
import { i as invalidateAll, g as goto } from './client.js-B7jIMDuS.js';
|
|
27
|
+
import { r as resolve } from './paths.js-DVRjNYFW.js';
|
|
28
|
+
import { p as page } from './state.js-BTDrgu7s.js';
|
|
29
|
+
import { p as postWrite } from './ticket.js-6sj-2ZEM.js';
|
|
30
|
+
import { n as nowLive } from './now-live.svelte.js-hIaDgjJ3.js';
|
|
31
|
+
import { f as follow } from './last-board.js-BemeiK3t.js';
|
|
32
|
+
import { b as askFirst, a as askBeforeRetry, s as setupGate } from './qa-ask.svelte.js-8Hf1JWW2.js';
|
|
33
|
+
import { t as toastStack } from './toast-stack.svelte.js-CXIg3_KT.js';
|
|
34
|
+
import { c as copyText } from './clipboard.js-qXskOBim.js';
|
|
35
|
+
|
|
36
|
+
//#region ../../packages/ui/src/board/drag.ts
|
|
37
|
+
var settle = (key, depth) => ({
|
|
38
|
+
key,
|
|
39
|
+
over: Object.entries(depth).find(([, count]) => count > 0)?.[0] ?? null,
|
|
40
|
+
depth
|
|
41
|
+
});
|
|
42
|
+
var startDrag = (key) => ({
|
|
43
|
+
key,
|
|
44
|
+
over: null,
|
|
45
|
+
depth: {}
|
|
46
|
+
});
|
|
47
|
+
var enterColumn = (drag, stage) => settle(drag.key, {
|
|
48
|
+
...drag.depth,
|
|
49
|
+
[stage]: (drag.depth[stage] ?? 0) + 1
|
|
50
|
+
});
|
|
51
|
+
var leaveColumn = (drag, stage, gone = false) => settle(drag.key, {
|
|
52
|
+
...drag.depth,
|
|
53
|
+
[stage]: gone ? 0 : Math.max(0, (drag.depth[stage] ?? 0) - 1)
|
|
54
|
+
});
|
|
55
|
+
function lockReason(card) {
|
|
56
|
+
if (card.state !== "queued" && card.state !== "running") return null;
|
|
57
|
+
return `${card.key} is ${card.state}. It cannot move until its run ends.`;
|
|
58
|
+
}
|
|
59
|
+
function keepDrag(drag, cards) {
|
|
60
|
+
if (drag === null) return null;
|
|
61
|
+
const card = cards.find((one) => one.key === drag.key);
|
|
62
|
+
return card === void 0 || lockReason(card) !== null ? null : drag;
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region ../../packages/ui/src/board/add-card.ts
|
|
66
|
+
function addWords(board) {
|
|
67
|
+
if (board === "epics") return {
|
|
68
|
+
title: "Add epic",
|
|
69
|
+
label: "Epic title, or a link to a ticket"
|
|
70
|
+
};
|
|
71
|
+
if (board === "prreview") return {
|
|
72
|
+
title: "Add pull request",
|
|
73
|
+
label: "Pull request, as owner/repo#number or a link from GitHub"
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
title: "Add card",
|
|
77
|
+
label: "Title, or a link to a ticket or pull request"
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function readInput(input, prefix, board = "delivery", off = [], tickets = "local") {
|
|
81
|
+
if (input.trim() === "") return {
|
|
82
|
+
kind: "empty",
|
|
83
|
+
says: ""
|
|
84
|
+
};
|
|
85
|
+
const link = ticketLink(input);
|
|
86
|
+
const kept = (key) => `it becomes a local card titled ${key}, with the link in its text.`;
|
|
87
|
+
if (link?.system === "jira") {
|
|
88
|
+
if (tickets !== "jira") return {
|
|
89
|
+
kind: "connect",
|
|
90
|
+
says: `Added as it is, ${kept(link.key)}`
|
|
91
|
+
};
|
|
92
|
+
if (parseTicketRef(link.key, prefix).kind === "local") return {
|
|
93
|
+
kind: "local",
|
|
94
|
+
says: `${link.key} has this project's local key prefix. Change the key prefix in Settings, Project at /settings/project to one no Jira project uses.`
|
|
95
|
+
};
|
|
96
|
+
return {
|
|
97
|
+
kind: "jira",
|
|
98
|
+
says: fromJira(link.key)
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
if (link?.system === "linear") return {
|
|
102
|
+
kind: "linear",
|
|
103
|
+
says: `That is a Linear issue. Nolzu cannot read Linear into a card yet, so ${kept(link.key)}`
|
|
104
|
+
};
|
|
105
|
+
const ref = parseTicketRef(input, prefix);
|
|
106
|
+
switch (ref.kind) {
|
|
107
|
+
case "text": return {
|
|
108
|
+
kind: "text",
|
|
109
|
+
says: "A new local ticket with this title."
|
|
110
|
+
};
|
|
111
|
+
case "external":
|
|
112
|
+
if (tickets === "jira") return {
|
|
113
|
+
kind: "jira",
|
|
114
|
+
says: fromJira(ref.key)
|
|
115
|
+
};
|
|
116
|
+
return {
|
|
117
|
+
kind: "external",
|
|
118
|
+
says: `${ref.key} goes on the board with its key as the title. Nolzu cannot read that ticket system yet.`
|
|
119
|
+
};
|
|
120
|
+
case "local": return {
|
|
121
|
+
kind: "local",
|
|
122
|
+
says: `${ref.key} is a local key, and Nolzu numbers local cards itself. Type a title to make a new card.`
|
|
123
|
+
};
|
|
124
|
+
case "github": {
|
|
125
|
+
const linked = /\/(issues|pull)\/\d+\/?$/.exec(input.trim())?.[1];
|
|
126
|
+
const pulls = board === "prreview";
|
|
127
|
+
if (!pulls && linked === "pull") {
|
|
128
|
+
if (off.includes("prreview")) return {
|
|
129
|
+
kind: "misplaced",
|
|
130
|
+
says: "This link is a pull request, and the PR reviews board is off. Turn it on under Boards in Settings, Project at /settings/project, then add the link on the PR reviews board."
|
|
131
|
+
};
|
|
132
|
+
return {
|
|
133
|
+
kind: "misplaced",
|
|
134
|
+
says: "This link is a pull request. Add it on the PR reviews board."
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
if (pulls && linked === "issues") return {
|
|
138
|
+
kind: "misplaced",
|
|
139
|
+
says: "This link is an issue, and the PR reviews board takes pull requests only."
|
|
140
|
+
};
|
|
141
|
+
const named = `${ref.owner === null ? "" : `${ref.owner}/`}${ref.repo}#${ref.number}`;
|
|
142
|
+
const says = [`Nolzu reads ${pulls ? "pull request" : "issue"} ${named} from GitHub when you add the card.`];
|
|
143
|
+
if (ref.owner === null) says.push("The owner comes from the GitHub remote of this project.");
|
|
144
|
+
return {
|
|
145
|
+
kind: "github",
|
|
146
|
+
says: says.join(" ")
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
var fromJira = (key) => `Nolzu reads ${key} from Jira when you add the card.`;
|
|
152
|
+
function canSubmit(form, prefix, board = "delivery", tickets = "local") {
|
|
153
|
+
const kind = readInput(form.input, prefix, board, [], tickets).kind;
|
|
154
|
+
return kind !== "empty" && kind !== "local" && kind !== "misplaced";
|
|
155
|
+
}
|
|
156
|
+
function cardPayload(form, prefix) {
|
|
157
|
+
const input = form.input.trim();
|
|
158
|
+
const around = {
|
|
159
|
+
...form.extra === void 0 ? {} : { extra: form.extra },
|
|
160
|
+
...form.links === void 0 ? {} : { links: form.links }
|
|
161
|
+
};
|
|
162
|
+
if (readInput(input, prefix).kind !== "text") return {
|
|
163
|
+
input,
|
|
164
|
+
...around
|
|
165
|
+
};
|
|
166
|
+
return {
|
|
167
|
+
input,
|
|
168
|
+
title: input,
|
|
169
|
+
description: form.description,
|
|
170
|
+
...around
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
function cardKey(input, prefix, board, next, tickets = "local") {
|
|
174
|
+
const kind = readInput(input, prefix, board, [], tickets).kind;
|
|
175
|
+
const ref = parseTicketRef(input, prefix);
|
|
176
|
+
if (kind === "text" || kind === "connect" || kind === "linear") return next;
|
|
177
|
+
if (kind === "jira") {
|
|
178
|
+
const link = ticketLink(input);
|
|
179
|
+
return link?.system === "jira" ? link.key : ref.kind === "external" ? ref.key : null;
|
|
180
|
+
}
|
|
181
|
+
if (kind === "external" && ref.kind === "external") return ref.key;
|
|
182
|
+
if (kind === "github" && ref.kind === "github") return pullKey(ref.repo, ref.number);
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
function pressOf(event) {
|
|
186
|
+
if (event.key !== "Enter" || event.altKey || !(event.metaKey || event.ctrlKey)) return null;
|
|
187
|
+
return event.shiftKey ? "start" : "add";
|
|
188
|
+
}
|
|
189
|
+
function startOffer(stages) {
|
|
190
|
+
const first = stages?.[0]?.label ?? null;
|
|
191
|
+
const next = stages?.[1];
|
|
192
|
+
if (next === void 0) return {
|
|
193
|
+
first,
|
|
194
|
+
stage: null,
|
|
195
|
+
line: null,
|
|
196
|
+
refused: null
|
|
197
|
+
};
|
|
198
|
+
const refusal = refuseDrop(next, "forward");
|
|
199
|
+
if (refusal !== null) {
|
|
200
|
+
const fix = refusal.act === void 0 ? refusal.fix : `${refusal.act} in Settings, Models.`;
|
|
201
|
+
return {
|
|
202
|
+
first,
|
|
203
|
+
stage: next.label,
|
|
204
|
+
line: null,
|
|
205
|
+
refused: fix === null ? refusal.message : `${refusal.message} ${fix}`
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
const target = dropTarget(next, true);
|
|
209
|
+
if (target.kind !== "starts") return {
|
|
210
|
+
first,
|
|
211
|
+
stage: null,
|
|
212
|
+
line: null,
|
|
213
|
+
refused: null
|
|
214
|
+
};
|
|
215
|
+
const estimate = next.starts?.estimate;
|
|
216
|
+
return {
|
|
217
|
+
first,
|
|
218
|
+
stage: next.label,
|
|
219
|
+
line: estimate === void 0 ? target.command : `${target.command} · ${estimateShort(estimate)}`,
|
|
220
|
+
refused: null
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region ../../packages/ui/src/board/AddCardDialog.svelte
|
|
225
|
+
function AddCardDialog($$renderer, $$props) {
|
|
226
|
+
$$renderer.component(($$renderer) => {
|
|
227
|
+
const uid = props_id($$renderer);
|
|
228
|
+
let { prefix, board = "delivery", off = [], snapshots = [], sources = async () => [], next = async () => null, tickets = "local", onconnect, onsubmit, onclose, draft = null } = $$props;
|
|
229
|
+
let shell;
|
|
230
|
+
let input = draft?.input ?? "";
|
|
231
|
+
let description = draft?.description ?? "";
|
|
232
|
+
let sending = false;
|
|
233
|
+
let starting = false;
|
|
234
|
+
let refusal = "";
|
|
235
|
+
let extra = draft?.extra ?? "";
|
|
236
|
+
let extraOpen = (draft?.extra ?? "") !== "";
|
|
237
|
+
let copyable = [];
|
|
238
|
+
let nextKey = null;
|
|
239
|
+
let system = tickets;
|
|
240
|
+
let kept = false;
|
|
241
|
+
let connecting = false;
|
|
242
|
+
let site = "";
|
|
243
|
+
let email = "";
|
|
244
|
+
let token = "";
|
|
245
|
+
let connectSending = false;
|
|
246
|
+
let connectRefusal = "";
|
|
247
|
+
const words = derived(() => addWords(board));
|
|
248
|
+
const reading = derived(() => readInput(input, prefix, board, off, system));
|
|
249
|
+
const key = derived(() => cardKey(input, prefix, board, nextKey, system));
|
|
250
|
+
const offerConnect = derived(() => reading().kind === "connect" && !kept && onconnect !== void 0);
|
|
251
|
+
const offer = derived(() => startOffer(snapshots.find((one) => one.kind === board)?.stages));
|
|
252
|
+
const refusedModel = derived(() => offer().refused === null ? null : snapshots.find((one) => one.kind === board)?.stages[1]?.starts?.model ?? null);
|
|
253
|
+
const held = derived(() => sending || !canSubmit({
|
|
254
|
+
input}, prefix, board, system));
|
|
255
|
+
async function connect() {
|
|
256
|
+
if (!connecting) {
|
|
257
|
+
const link = ticketLink(input);
|
|
258
|
+
if (site === "" && link?.system === "jira" && link.host.endsWith(".atlassian.net")) site = `https://${link.host}`;
|
|
259
|
+
connecting = true;
|
|
260
|
+
await /* @__PURE__ */ tick();
|
|
261
|
+
document.getElementById(`${uid}-jira-site`)?.focus();
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
if (connectSending || onconnect === void 0) return;
|
|
265
|
+
connectSending = true;
|
|
266
|
+
connectRefusal = "";
|
|
267
|
+
const answer = await onconnect({
|
|
268
|
+
site,
|
|
269
|
+
email,
|
|
270
|
+
token
|
|
271
|
+
});
|
|
272
|
+
connectSending = false;
|
|
273
|
+
if (!answer.ok) {
|
|
274
|
+
connectRefusal = answer.reason;
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
token = "";
|
|
278
|
+
connecting = false;
|
|
279
|
+
system = "jira";
|
|
280
|
+
backToField();
|
|
281
|
+
}
|
|
282
|
+
function keepLocal() {
|
|
283
|
+
kept = true;
|
|
284
|
+
backToField();
|
|
285
|
+
}
|
|
286
|
+
const backToField = () => document.getElementById("card-input")?.focus();
|
|
287
|
+
async function send(start) {
|
|
288
|
+
if (held() || start && offer().stage === null) return;
|
|
289
|
+
sending = true;
|
|
290
|
+
starting = start;
|
|
291
|
+
refusal = "";
|
|
292
|
+
const payload = cardPayload({
|
|
293
|
+
input,
|
|
294
|
+
description,
|
|
295
|
+
extra: extra.trim() === "" ? void 0 : extra
|
|
296
|
+
}, prefix);
|
|
297
|
+
const made = await onsubmit({
|
|
298
|
+
...payload,
|
|
299
|
+
board,
|
|
300
|
+
...start ? { start: true } : {}
|
|
301
|
+
});
|
|
302
|
+
sending = false;
|
|
303
|
+
if (made.ok) {
|
|
304
|
+
added = true;
|
|
305
|
+
shell.close();
|
|
306
|
+
} else refusal = made.reason;
|
|
307
|
+
}
|
|
308
|
+
let added = false;
|
|
309
|
+
function closed() {
|
|
310
|
+
draft = added ? null : {
|
|
311
|
+
input,
|
|
312
|
+
description,
|
|
313
|
+
extra
|
|
314
|
+
};
|
|
315
|
+
onclose();
|
|
316
|
+
}
|
|
317
|
+
function keys(event) {
|
|
318
|
+
const press = pressOf(event);
|
|
319
|
+
if (press === null) return;
|
|
320
|
+
event.preventDefault();
|
|
321
|
+
send(press === "start");
|
|
322
|
+
}
|
|
323
|
+
{
|
|
324
|
+
function footer($$renderer) {
|
|
325
|
+
$$renderer.push(`<div class="actions svelte-11waqsu"><div class="svelte-11waqsu">`);
|
|
326
|
+
Button($$renderer, {
|
|
327
|
+
variant: "primary",
|
|
328
|
+
type: "submit",
|
|
329
|
+
form: `${uid}-form`,
|
|
330
|
+
key: "⌘↵",
|
|
331
|
+
"aria-keyshortcuts": "Meta+Enter Control+Enter",
|
|
332
|
+
"data-add-card": true,
|
|
333
|
+
"aria-disabled": held() ? "true" : void 0,
|
|
334
|
+
"aria-busy": sending && !starting ? "true" : void 0,
|
|
335
|
+
children: ($$renderer) => {
|
|
336
|
+
$$renderer.push(`<!---->${escape_html(offer().first === null ? words().title : `Add to ${offer().first}`)}`);
|
|
337
|
+
},
|
|
338
|
+
$$slots: { default: true }
|
|
339
|
+
});
|
|
340
|
+
$$renderer.push(`<!----> `);
|
|
341
|
+
if (offer().first !== null) $$renderer.push(`<!--[0--><span class="note svelte-11waqsu">Lands in ${escape_html(offer().first)}. Nothing runs.</span>`);
|
|
342
|
+
else $$renderer.push("<!--[-1-->");
|
|
343
|
+
$$renderer.push(`<!--]--></div> `);
|
|
344
|
+
if (offer().stage !== null) {
|
|
345
|
+
$$renderer.push(`<!--[0--><div class="svelte-11waqsu">`);
|
|
346
|
+
Button($$renderer, {
|
|
347
|
+
variant: offer().refused === null ? "go" : "default",
|
|
348
|
+
key: "⇧⌘↵",
|
|
349
|
+
"aria-keyshortcuts": "Shift+Meta+Enter Shift+Control+Enter",
|
|
350
|
+
"data-add-start": true,
|
|
351
|
+
"aria-disabled": held() ? "true" : void 0,
|
|
352
|
+
"aria-busy": sending && starting ? "true" : void 0,
|
|
353
|
+
onclick: () => void send(true),
|
|
354
|
+
children: ($$renderer) => {
|
|
355
|
+
$$renderer.push(`<!---->Add and start ${escape_html(offer().stage)}`);
|
|
356
|
+
},
|
|
357
|
+
$$slots: { default: true }
|
|
358
|
+
});
|
|
359
|
+
$$renderer.push(`<!----> `);
|
|
360
|
+
if (offer().line !== null) $$renderer.push(`<!--[0--><span class="line svelte-11waqsu" data-start-line="">${escape_html(offer().line)}</span>`);
|
|
361
|
+
else if (offer().refused !== null) {
|
|
362
|
+
$$renderer.push(`<!--[1--><span class="note svelte-11waqsu" data-start-line=""><!--[-->`);
|
|
363
|
+
const each_array = ensure_array_like(refusedModel() === null ? [offer().refused] : offer().refused.split(refusedModel()));
|
|
364
|
+
for (let i = 0, $$length = each_array.length; i < $$length; i++) {
|
|
365
|
+
let part = each_array[i];
|
|
366
|
+
if (i > 0) $$renderer.push(`<!--[0--><code class="svelte-11waqsu">${escape_html(refusedModel())}</code>`);
|
|
367
|
+
else $$renderer.push("<!--[-1-->");
|
|
368
|
+
$$renderer.push(`<!--]-->${escape_html(part)}`);
|
|
369
|
+
}
|
|
370
|
+
$$renderer.push(`<!--]--></span>`);
|
|
371
|
+
} else $$renderer.push("<!--[-1-->");
|
|
372
|
+
$$renderer.push(`<!--]--></div>`);
|
|
373
|
+
} else $$renderer.push("<!--[-1-->");
|
|
374
|
+
$$renderer.push(`<!--]--></div>`);
|
|
375
|
+
}
|
|
376
|
+
Dialog($$renderer, {
|
|
377
|
+
title: words().title,
|
|
378
|
+
closer: "Close without adding",
|
|
379
|
+
medium: true,
|
|
380
|
+
held: sending,
|
|
381
|
+
onclose: closed,
|
|
382
|
+
onkeydown: keys,
|
|
383
|
+
footer,
|
|
384
|
+
children: ($$renderer) => {
|
|
385
|
+
$$renderer.push(`<form${attr("id", `${uid}-form`)} class="svelte-11waqsu"><div class="field svelte-11waqsu"><div class="label-row svelte-11waqsu"><label for="card-input" class="svelte-11waqsu">${escape_html(words().label)}</label> <span class="key svelte-11waqsu" id="card-key" data-card-key="">${escape_html(key() === null ? "" : `becomes ${key()}`)}</span></div> <input id="card-input"${attr("value", input)} autocomplete="off" autofocus="" aria-describedby="card-key card-reading" class="svelte-11waqsu"/> <p class="quiet svelte-11waqsu" id="card-reading">`);
|
|
386
|
+
if (reading().says !== "") $$renderer.push(`<!--[0-->${escape_html(reading().says)}`);
|
|
387
|
+
else if (board === "prreview") $$renderer.push(`<!--[1-->Type owner/repo#number, or paste the pull request link from GitHub. It is read through <code class="svelte-11waqsu">gh</code>.`);
|
|
388
|
+
else if (system === "jira") $$renderer.push(`<!--[2-->A Jira key or link is read from Jira, and a GitHub issue or pull request link through <code class="svelte-11waqsu">gh</code>.`);
|
|
389
|
+
else $$renderer.push(`<!--[-1-->A GitHub
|
|
390
|
+
issue or pull request link is read through <code class="svelte-11waqsu">gh</code>.`);
|
|
391
|
+
$$renderer.push(`<!--]--></p></div> `);
|
|
392
|
+
if (offerConnect()) {
|
|
393
|
+
$$renderer.push(`<!--[0--><div class="link-offer svelte-11waqsu" data-connect-jira="" role="group" aria-label="Connect Jira"><svg class="icon svelte-11waqsu" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"></circle><path d="M12 8h.01M11 12h1v5h1"></path></svg> <div class="offer-body svelte-11waqsu"><span>That is a Jira ticket. Connect Jira to read its title and text into the card.</span> <span class="offer-sub svelte-11waqsu">The token goes in your keychain on this machine. Nothing is sent anywhere else.</span> `);
|
|
394
|
+
if (connecting) $$renderer.push(`<!--[0--><label${attr("for", `${uid}-jira-site`)} class="svelte-11waqsu">Jira site address</label> <input${attr("id", `${uid}-jira-site`)} class="mono svelte-11waqsu"${attr("value", site)} placeholder="https://your-site.atlassian.net" autocomplete="off"/> <label${attr("for", `${uid}-jira-email`)} class="svelte-11waqsu">Account email</label> <input${attr("id", `${uid}-jira-email`)}${attr("value", email)} placeholder="you@example.com" autocomplete="off" class="svelte-11waqsu"/> <label${attr("for", `${uid}-jira-token`)} class="svelte-11waqsu">API token</label> <input${attr("id", `${uid}-jira-token`)} type="password"${attr("value", token)} autocomplete="new-password" class="svelte-11waqsu"/> <p class="refusal svelte-11waqsu" role="alert">${escape_html(connectRefusal)}</p>`);
|
|
395
|
+
else $$renderer.push("<!--[-1-->");
|
|
396
|
+
$$renderer.push(`<!--]--> <div class="offer-actions svelte-11waqsu">`);
|
|
397
|
+
Button($$renderer, {
|
|
398
|
+
variant: "primary",
|
|
399
|
+
size: "small",
|
|
400
|
+
"data-connect": true,
|
|
401
|
+
"aria-busy": connectSending ? "true" : void 0,
|
|
402
|
+
"aria-disabled": connectSending ? "true" : void 0,
|
|
403
|
+
onclick: () => void connect(),
|
|
404
|
+
children: ($$renderer) => {
|
|
405
|
+
$$renderer.push(`<!---->Connect Jira`);
|
|
406
|
+
},
|
|
407
|
+
$$slots: { default: true }
|
|
408
|
+
});
|
|
409
|
+
$$renderer.push(`<!----> `);
|
|
410
|
+
Button($$renderer, {
|
|
411
|
+
size: "small",
|
|
412
|
+
"data-keep-local": true,
|
|
413
|
+
onclick: keepLocal,
|
|
414
|
+
children: ($$renderer) => {
|
|
415
|
+
$$renderer.push(`<!---->Keep it as a local card`);
|
|
416
|
+
},
|
|
417
|
+
$$slots: { default: true }
|
|
418
|
+
});
|
|
419
|
+
$$renderer.push(`<!----></div></div></div>`);
|
|
420
|
+
} else $$renderer.push("<!--[-1-->");
|
|
421
|
+
$$renderer.push(`<!--]--> `);
|
|
422
|
+
if (reading().kind === "text") {
|
|
423
|
+
$$renderer.push(`<!--[0--><div class="field svelte-11waqsu"><label for="card-description" class="svelte-11waqsu">Description</label> <textarea id="card-description" rows="3" placeholder="What done looks like" class="svelte-11waqsu">`);
|
|
424
|
+
const $$body = escape_html(description);
|
|
425
|
+
if ($$body) $$renderer.push(`${$$body}`);
|
|
426
|
+
$$renderer.push(`</textarea></div>`);
|
|
427
|
+
} else $$renderer.push("<!--[-1-->");
|
|
428
|
+
$$renderer.push(`<!--]--> <details class="fold svelte-11waqsu"${attr("open", extraOpen, true)}><summary class="svelte-11waqsu"><svg class="chev svelte-11waqsu" viewBox="0 0 24 24" aria-hidden="true"><path d="m10 7 5 5-5 5"></path></svg><span class="fold-name svelte-11waqsu">Extra context</span><span class="quiet svelte-11waqsu">for the agents, not the ticket</span><span class="quiet optional svelte-11waqsu">optional</span></summary> <textarea id="card-extra" aria-label="Extra context" placeholder="What the ticket does not say, for every run of this card" class="svelte-11waqsu">`);
|
|
429
|
+
const $$body_1 = escape_html(extra);
|
|
430
|
+
if ($$body_1) $$renderer.push(`${$$body_1}`);
|
|
431
|
+
$$renderer.push(`</textarea></details> `);
|
|
432
|
+
if (copyable.length > 0) {
|
|
433
|
+
$$renderer.push(`<!--[0--><div class="field svelte-11waqsu"><label for="card-copy" class="svelte-11waqsu">Copy context from</label> <select id="card-copy" class="svelte-11waqsu">`);
|
|
434
|
+
$$renderer.option({ value: "" }, ($$renderer) => {
|
|
435
|
+
$$renderer.push(`Pick a card`);
|
|
436
|
+
});
|
|
437
|
+
$$renderer.push(`<!--[-->`);
|
|
438
|
+
const each_array_1 = ensure_array_like(copyable);
|
|
439
|
+
for (let $$index = 0, $$length = each_array_1.length; $$index < $$length; $$index++) {
|
|
440
|
+
let card = each_array_1[$$index];
|
|
441
|
+
$$renderer.option({ value: card.key }, ($$renderer) => {
|
|
442
|
+
$$renderer.push(`${escape_html(card.key)} · ${escape_html(card.title)}`);
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
$$renderer.push(`<!--]--></select></div>`);
|
|
446
|
+
} else $$renderer.push("<!--[-1-->");
|
|
447
|
+
$$renderer.push(`<!--]--> `);
|
|
448
|
+
$$renderer.push("<!--[-1-->");
|
|
449
|
+
$$renderer.push(`<!--]--> <p class="refusal svelte-11waqsu" role="alert">${escape_html(refusal)}</p></form>`);
|
|
450
|
+
},
|
|
451
|
+
$$slots: {
|
|
452
|
+
footer: true,
|
|
453
|
+
default: true
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
bind_props($$props, { draft });
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region ../../packages/ui/src/board/WaitingToggle.svelte
|
|
462
|
+
function WaitingToggle($$renderer, $$props) {
|
|
463
|
+
let { on, count, onclick } = $$props;
|
|
464
|
+
Button($$renderer, {
|
|
465
|
+
class: "waiting",
|
|
466
|
+
"aria-pressed": on,
|
|
467
|
+
key: "W",
|
|
468
|
+
onclick,
|
|
469
|
+
children: ($$renderer) => {
|
|
470
|
+
$$renderer.push(`<!---->Waiting on me <span class="count svelte-106fq84" data-waiting-count="">${escape_html(count)}</span> <span class="hidden svelte-106fq84">${escape_html(count === 1 ? "card" : "cards")}</span>`);
|
|
471
|
+
},
|
|
472
|
+
$$slots: { default: true }
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
//#endregion
|
|
476
|
+
//#region ../../packages/ui/src/RoleGlyph.svelte
|
|
477
|
+
function RoleGlyph($$renderer, $$props) {
|
|
478
|
+
const LABELS = {
|
|
479
|
+
you: "You",
|
|
480
|
+
agent: "Agent",
|
|
481
|
+
auto: "Auto",
|
|
482
|
+
archive: "Archive"
|
|
483
|
+
};
|
|
484
|
+
let { role, startsNothing = false } = $$props;
|
|
485
|
+
$$renderer.push(`<span class="role svelte-1uu5mrm"${attr("data-role", role)}${attr("data-starts-nothing", startsNothing)}><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">`);
|
|
486
|
+
if (role === "you") $$renderer.push(`<!--[0--><circle cx="12" cy="8" r="4"></circle><path d="M4 21a8 8 0 0 1 16 0"></path>`);
|
|
487
|
+
else if (role === "agent") $$renderer.push(`<!--[1--><path d="M13 2 4 14h7l-1 8 9-12h-7l1-8Z"></path>`);
|
|
488
|
+
else if (role === "auto") $$renderer.push(`<!--[2--><circle cx="12" cy="12" r="9"></circle><path d="M12 7v5l3 2"></path>`);
|
|
489
|
+
else $$renderer.push(`<!--[-1--><rect x="3" y="4" width="18" height="5" rx="1"></rect><path d="M5 9v10h14V9M10 13h4"></path>`);
|
|
490
|
+
$$renderer.push(`<!--]--></svg> <span class="word svelte-1uu5mrm">${escape_html(LABELS[role])}${escape_html(startsNothing ? ", starts nothing yet" : "")}</span></span>`);
|
|
491
|
+
}
|
|
492
|
+
//#endregion
|
|
493
|
+
//#region ../../packages/ui/src/board/BoardCard.svelte
|
|
494
|
+
function BoardCard($$renderer, $$props) {
|
|
495
|
+
$$renderer.component(($$renderer) => {
|
|
496
|
+
let { card, now, onDragStart = () => {}, focusable = false, onFocus = () => {}, rounds = true, activity = null, quietAfterMs, dragging = false, cardAction = void 0, draggable = true, onFix = null, stage = null, tag = null } = $$props;
|
|
497
|
+
const locked = derived(() => lockReason(card));
|
|
498
|
+
const live = derived(() => liveOf(card, activity, now, quietAfterMs));
|
|
499
|
+
const quiet = derived(() => live()?.quiet ?? null);
|
|
500
|
+
const qaFailed = derived(() => card.state === "ready" && card.verdict === "FAIL");
|
|
501
|
+
const reason = derived(() => card.state === "failed" ? card.failureReason : qaFailed() ? card.verdictReason : null);
|
|
502
|
+
const answer = derived(() => answerHref(card));
|
|
503
|
+
const asks = derived(() => answer() !== null);
|
|
504
|
+
const pill = derived(() => cardPill(card, live(), now, stage));
|
|
505
|
+
const back = derived(() => rounds && card.stage === "incoming" && card.pull !== null && card.pull.round !== null ? `Back for round ${card.pull.round + 1}` : null);
|
|
506
|
+
const waits = derived(() => {
|
|
507
|
+
if (card.state !== "queued") return null;
|
|
508
|
+
if (card.runState === "queued") return "waits for a slot";
|
|
509
|
+
if (card.runState === "waiting_lane" && card.lane !== null) return `${card.lane.charAt(0).toUpperCase()}${card.lane.slice(1)} lane busy`;
|
|
510
|
+
return null;
|
|
511
|
+
});
|
|
512
|
+
const cost = derived(() => card.totalUsd !== null && Number.isFinite(card.totalUsd) && card.totalUsd > 0 ? card.totalUsd : null);
|
|
513
|
+
const money = (value) => {
|
|
514
|
+
const amount = Math.abs(value);
|
|
515
|
+
if (amount > 0 && amount < .005) return `${value < 0 ? "minus " : ""}under $0.01`;
|
|
516
|
+
const rounded = Number(`${Math.round(Number(`${amount}e2`))}e-2`);
|
|
517
|
+
return `${value < 0 ? "-" : ""}$${rounded.toFixed(2)}`;
|
|
518
|
+
};
|
|
519
|
+
const since = derived(() => live() !== null && live().line !== null ? live().since : null);
|
|
520
|
+
const vendor = derived(() => card.engine?.split("#")[0] ?? "");
|
|
521
|
+
const engine = derived(() => isEngineName(vendor()) ? ENGINE_LABELS[vendor()] : null);
|
|
522
|
+
const review = derived(() => card.state === "queued" && card.runState === "waiting_review");
|
|
523
|
+
const learns = derived(() => card.afterLearn?.repo == null ? null : `learning ${card.afterLearn.repo}`);
|
|
524
|
+
const run = derived(() => !asks() && !review() && waits() === null && learns() === null && (card.model !== null || card.effort !== null));
|
|
525
|
+
const runTitle = derived(() => [
|
|
526
|
+
engine(),
|
|
527
|
+
card.model,
|
|
528
|
+
card.effort === null ? null : `${card.effort} effort`
|
|
529
|
+
].filter((part) => part !== null).join(", "));
|
|
530
|
+
const fix = derived(() => onFix !== null && qaFailed());
|
|
531
|
+
const costTitle = derived(() => cost() === null ? "" : `Total ${money(cost())}${card.costUsd !== null && Number.isFinite(card.costUsd) ? ` · last run ${money(card.costUsd)}` : ""} (estimated)`);
|
|
532
|
+
const meta = derived(() => since() !== null || waits() !== null || learns() !== null || run() || cost() !== null || asks() || review() || fix());
|
|
533
|
+
const tasks = derived(() => card.tasks ?? []);
|
|
534
|
+
const notAdded = derived(() => card.delivered === null ? 0 : Math.max(0, card.delivered.total - tasks().length));
|
|
535
|
+
const share = derived(() => card.delivered === null || card.delivered.total === 0 ? 0 : Math.round(card.delivered.done / card.delivered.total * 100));
|
|
536
|
+
const open = derived(() => tasks().filter((task) => !task.done));
|
|
537
|
+
const needs = derived(() => open().filter(waitingOnMe).length);
|
|
538
|
+
const feedback = derived(() => feedbackLine(card.feedback));
|
|
539
|
+
const HEAD_UNKNOWN = "head time unknown";
|
|
540
|
+
const head = derived(() => {
|
|
541
|
+
const at = card.pull?.headCommittedAt ?? null;
|
|
542
|
+
if (at === null) return card.pull === null ? null : HEAD_UNKNOWN;
|
|
543
|
+
if (now === void 0) return null;
|
|
544
|
+
const old = age(at, now);
|
|
545
|
+
return old === null ? HEAD_UNKNOWN : `head ${old} old`;
|
|
546
|
+
});
|
|
547
|
+
let lifted = false;
|
|
548
|
+
const ghost = derived(() => dragging && lifted);
|
|
549
|
+
if (card.minimized) {
|
|
550
|
+
$$renderer.push(`<!--[0--><article class="one-line svelte-bjq4l5"${attr("data-card", card.key)}${attr("data-state", card.state)} data-minimized="true"${attr("data-ghost", ghost() ? "true" : void 0)} role="group"${attr("aria-label", ghost() ? `${card.key} is being moved` : card.key)}${attr("draggable", !draggable ? void 0 : locked() === null ? "true" : "false")}${attr("aria-disabled", locked() === null ? void 0 : "true")}${attr("data-locked", locked() === null ? void 0 : "true")}${attr("title", locked())}${attr("tabindex", focusable ? 0 : -1)}>`);
|
|
551
|
+
StatePill($$renderer, {
|
|
552
|
+
state: pill().state,
|
|
553
|
+
word: pill().word,
|
|
554
|
+
check: pill().check,
|
|
555
|
+
hideWord: true
|
|
556
|
+
});
|
|
557
|
+
$$renderer.push(`<!----> <span class="key svelte-bjq4l5">${escape_html(card.key)}</span> <a class="title svelte-bjq4l5"${attr("href", `/t/${stringify(encodeURIComponent(card.key))}`)} tabindex="-1" draggable="false">${escape_html(card.title)}</a></article>`);
|
|
558
|
+
} else {
|
|
559
|
+
$$renderer.push(`<!--[-1--><article class="card svelte-bjq4l5"${attr("data-card", card.key)}${attr("data-state", card.state)}${attr("data-quiet", quiet() === null ? void 0 : "true")}${attr("data-qa-failed", qaFailed() ? "true" : void 0)}${attr("data-finished", card.finished === true ? "true" : void 0)}${attr("data-ghost", ghost() ? "true" : void 0)} role="group"${attr("aria-label", ghost() ? `${card.key} is being moved` : card.key)}${attr("draggable", !draggable ? void 0 : locked() === null ? "true" : "false")}${attr("aria-disabled", locked() === null ? void 0 : "true")}${attr("data-locked", locked() === null ? void 0 : "true")}${attr("title", locked())}${attr("tabindex", focusable ? 0 : -1)}>`);
|
|
560
|
+
if (ghost()) $$renderer.push(`<!--[0--><header class="svelte-bjq4l5"><span class="key svelte-bjq4l5">${escape_html(card.key)}</span></header> <a class="title svelte-bjq4l5"${attr("href", `/t/${stringify(encodeURIComponent(card.key))}`)} tabindex="-1" draggable="false">${escape_html(card.title)}</a>`);
|
|
561
|
+
else {
|
|
562
|
+
$$renderer.push(`<!--[-1--><header class="svelte-bjq4l5"><span class="lead svelte-bjq4l5"><span class="key svelte-bjq4l5">${escape_html(card.key)}</span>`);
|
|
563
|
+
if (tag !== null) $$renderer.push(`<!--[0--><span class="tag svelte-bjq4l5" data-card-tag="">${escape_html(tag)}</span>`);
|
|
564
|
+
else $$renderer.push("<!--[-1-->");
|
|
565
|
+
$$renderer.push(`<!--]-->`);
|
|
566
|
+
if (back() !== null) $$renderer.push(`<!--[0--><span class="tag svelte-bjq4l5" data-back-round="">${escape_html(back())}</span>`);
|
|
567
|
+
else $$renderer.push("<!--[-1-->");
|
|
568
|
+
$$renderer.push(`<!--]--></span> `);
|
|
569
|
+
StatePill($$renderer, {
|
|
570
|
+
state: pill().state,
|
|
571
|
+
word: pill().word,
|
|
572
|
+
detail: pill().detail,
|
|
573
|
+
check: pill().check,
|
|
574
|
+
detailOnly: pill().state === "running"
|
|
575
|
+
});
|
|
576
|
+
$$renderer.push(`<!----></header> <a class="title svelte-bjq4l5"${attr("href", `/t/${stringify(encodeURIComponent(card.key))}`)} tabindex="-1" draggable="false">${escape_html(card.title)}</a> `);
|
|
577
|
+
if (live() !== null && live().line !== null) $$renderer.push(`<!--[0--><p class="act svelte-bjq4l5"${attr("data-activity", card.key)}${attr("title", live().line)}><svg class="bolt svelte-bjq4l5" viewBox="0 0 24 24" aria-hidden="true"><path d="M13 2 4 14h7l-1 8 9-12h-7l1-8Z"></path></svg> <span class="svelte-bjq4l5">${escape_html(live().line)}</span></p>`);
|
|
578
|
+
else $$renderer.push("<!--[-1-->");
|
|
579
|
+
$$renderer.push(`<!--]--> `);
|
|
580
|
+
if (asks()) $$renderer.push(`<!--[0--><blockquote class="question svelte-bjq4l5">${escape_html(card.question)}</blockquote>`);
|
|
581
|
+
else $$renderer.push("<!--[-1-->");
|
|
582
|
+
$$renderer.push(`<!--]--> `);
|
|
583
|
+
if (reason() !== null) $$renderer.push(`<!--[0--><p class="reason svelte-bjq4l5"${attr("title", reason())}${attr("data-verdict", qaFailed() ? "FAIL" : void 0)}><span class="svelte-bjq4l5">${escape_html(reason())}</span></p>`);
|
|
584
|
+
else $$renderer.push("<!--[-1-->");
|
|
585
|
+
$$renderer.push(`<!--]--> `);
|
|
586
|
+
if (card.pull !== null) {
|
|
587
|
+
$$renderer.push(`<!--[0--><div class="pull svelte-bjq4l5"${attr("data-pull", card.key)}><p class="who svelte-bjq4l5">`);
|
|
588
|
+
if (card.pull.ended !== void 0) $$renderer.push(`<!--[0--><span class="ended svelte-bjq4l5"${attr("data-ended", card.pull.ended)}>${escape_html(card.pull.ended === "merged" ? "Merged" : "Closed")}</span>`);
|
|
589
|
+
else $$renderer.push("<!--[-1-->");
|
|
590
|
+
$$renderer.push(`<!--]--> `);
|
|
591
|
+
if (card.pull.draft) $$renderer.push(`<!--[0--><span>Draft</span>`);
|
|
592
|
+
else $$renderer.push("<!--[-1-->");
|
|
593
|
+
$$renderer.push(`<!--]--> <span>${escape_html(card.pull.author === null ? "Author unknown" : `By ${card.pull.author}`)}</span> `);
|
|
594
|
+
if (head() !== null) $$renderer.push(`<!--[0--><span${attr_class("r svelte-bjq4l5", void 0, { "mono": head() !== HEAD_UNKNOWN })}>${escape_html(head())}</span>`);
|
|
595
|
+
else $$renderer.push("<!--[-1-->");
|
|
596
|
+
$$renderer.push(`<!--]--></p> <p class="review svelte-bjq4l5"><span class="decision svelte-bjq4l5"${attr("data-decision", card.pull.decision)}><i aria-hidden="true" class="svelte-bjq4l5"></i>${escape_html(DECISION_WORD[card.pull.decision])}</span> `);
|
|
597
|
+
if (rounds) $$renderer.push(`<!--[0--><span${attr_class("r svelte-bjq4l5", void 0, { "mono": card.pull.round !== null })}>${escape_html(card.pull.round === null ? "No review round yet" : `Round ${card.pull.round}`)}</span>`);
|
|
598
|
+
else $$renderer.push("<!--[-1-->");
|
|
599
|
+
$$renderer.push(`<!--]--></p></div>`);
|
|
600
|
+
} else $$renderer.push("<!--[-1-->");
|
|
601
|
+
$$renderer.push(`<!--]--> `);
|
|
602
|
+
if (meta()) {
|
|
603
|
+
$$renderer.push(`<!--[0--><p class="meta svelte-bjq4l5">`);
|
|
604
|
+
if (since() !== null) $$renderer.push(`<!--[0--><span class="mono svelte-bjq4l5"${attr("data-since", card.key)}><span class="hidden svelte-bjq4l5">last output</span> ${escape_html(since())}</span>`);
|
|
605
|
+
else $$renderer.push("<!--[-1-->");
|
|
606
|
+
$$renderer.push(`<!--]--> `);
|
|
607
|
+
if (waits() !== null) $$renderer.push(`<!--[0--><span class="cut svelte-bjq4l5"${attr("title", waits())}>${escape_html(waits())}</span>`);
|
|
608
|
+
else $$renderer.push("<!--[-1-->");
|
|
609
|
+
$$renderer.push(`<!--]--> `);
|
|
610
|
+
if (learns() !== null) $$renderer.push(`<!--[0--><span class="cut svelte-bjq4l5"${attr("title", learns())}>${escape_html(learns())}</span>`);
|
|
611
|
+
else $$renderer.push("<!--[-1-->");
|
|
612
|
+
$$renderer.push(`<!--]--> `);
|
|
613
|
+
if (run()) {
|
|
614
|
+
$$renderer.push(`<!--[0--><span class="run svelte-bjq4l5"${attr("title", runTitle())}>`);
|
|
615
|
+
if (engine() !== null) $$renderer.push(`<!--[0--><span class="svelte-bjq4l5">${escape_html(engine())}</span>`);
|
|
616
|
+
else $$renderer.push("<!--[-1-->");
|
|
617
|
+
$$renderer.push(`<!--]-->`);
|
|
618
|
+
if (card.model !== null) $$renderer.push(`<!--[0--><span class="mono svelte-bjq4l5">${escape_html(card.model)}</span>`);
|
|
619
|
+
else $$renderer.push("<!--[-1-->");
|
|
620
|
+
$$renderer.push(`<!--]-->`);
|
|
621
|
+
if (card.effort !== null) $$renderer.push(`<!--[0--><span class="svelte-bjq4l5">${escape_html(card.effort)} <span class="hidden svelte-bjq4l5">effort</span></span>`);
|
|
622
|
+
else $$renderer.push("<!--[-1-->");
|
|
623
|
+
$$renderer.push(`<!--]--></span>`);
|
|
624
|
+
} else $$renderer.push("<!--[-1-->");
|
|
625
|
+
$$renderer.push(`<!--]--> `);
|
|
626
|
+
if (cost() !== null) $$renderer.push(`<!--[0--><span${attr_class("r mono svelte-bjq4l5", void 0, { "cut": asks() })}${attr("title", costTitle())}>${escape_html(money(cost()))}</span>`);
|
|
627
|
+
else $$renderer.push("<!--[-1-->");
|
|
628
|
+
$$renderer.push(`<!--]--> `);
|
|
629
|
+
if (answer() !== null) $$renderer.push(`<!--[0--><a class="answer svelte-bjq4l5"${attr("href", answer())}${attr("data-answer", card.key)}>Answer</a>`);
|
|
630
|
+
else $$renderer.push("<!--[-1-->");
|
|
631
|
+
$$renderer.push(`<!--]--> `);
|
|
632
|
+
if (review()) $$renderer.push(`<!--[0--><a class="answer svelte-bjq4l5" href="/knowledge"${attr("data-review", card.key)}>Review on Knowledge</a>`);
|
|
633
|
+
else $$renderer.push("<!--[-1-->");
|
|
634
|
+
$$renderer.push(`<!--]--> `);
|
|
635
|
+
if (fix() && onFix !== null) {
|
|
636
|
+
$$renderer.push("<!--[0-->");
|
|
637
|
+
Button($$renderer, {
|
|
638
|
+
variant: "go",
|
|
639
|
+
size: "small",
|
|
640
|
+
class: "fix",
|
|
641
|
+
"data-card-action": card.key,
|
|
642
|
+
"data-fix": card.key,
|
|
643
|
+
onclick: (event) => {
|
|
644
|
+
event.stopPropagation();
|
|
645
|
+
onFix(card.key);
|
|
646
|
+
},
|
|
647
|
+
children: ($$renderer) => {
|
|
648
|
+
$$renderer.push(`<!---->Fix it`);
|
|
649
|
+
},
|
|
650
|
+
$$slots: { default: true }
|
|
651
|
+
});
|
|
652
|
+
} else $$renderer.push("<!--[-1-->");
|
|
653
|
+
$$renderer.push(`<!--]--></p>`);
|
|
654
|
+
} else $$renderer.push("<!--[-1-->");
|
|
655
|
+
$$renderer.push(`<!--]--> `);
|
|
656
|
+
if (cardAction !== void 0) {
|
|
657
|
+
$$renderer.push(`<!--[0--><div class="action"${attr("data-card-action", card.key)} role="presentation">`);
|
|
658
|
+
cardAction($$renderer, card);
|
|
659
|
+
$$renderer.push(`<!----></div>`);
|
|
660
|
+
} else $$renderer.push("<!--[-1-->");
|
|
661
|
+
$$renderer.push(`<!--]--> `);
|
|
662
|
+
if (card.delivered !== null) {
|
|
663
|
+
$$renderer.push("<!--[0-->");
|
|
664
|
+
const { done, total } = card.delivered;
|
|
665
|
+
$$renderer.push(`<div${attr_class("progress svelte-bjq4l5", void 0, { "done": done === total })}${attr("data-tasks", card.key)}><p class="count svelte-bjq4l5"><span>${escape_html(done === total ? `${total} of ${total} done` : `${done} of ${total} tasks done`)}</span><span class="mono svelte-bjq4l5">${escape_html(share())}%</span></p> <div class="bar svelte-bjq4l5" role="progressbar" aria-label="Tasks done" aria-valuemin="0"${attr("aria-valuemax", total)}${attr("aria-valuenow", done)}><i class="svelte-bjq4l5"${attr_style("", { width: `${stringify(share())}%` })}></i></div></div> `);
|
|
666
|
+
if (tasks().length > 0 || notAdded() > 0) {
|
|
667
|
+
$$renderer.push(`<!--[0--><ul class="chips svelte-bjq4l5" aria-label="Tasks"><!--[-->`);
|
|
668
|
+
const each_array = ensure_array_like(tasks());
|
|
669
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
670
|
+
let task = each_array[$$index];
|
|
671
|
+
$$renderer.push(`<li><a class="chip svelte-bjq4l5"${attr("href", `/t/${stringify(encodeURIComponent(task.key))}`)}${attr("title", `${stringify(task.key)} ${stringify(task.title)}`)} tabindex="-1" draggable="false"${attr("data-task", task.key)}${attr("data-done", task.done ? "true" : void 0)}>`);
|
|
672
|
+
if (task.done) $$renderer.push(`<!--[0--><svg viewBox="0 0 24 24" aria-hidden="true" class="svelte-bjq4l5"><path d="m5 12 5 5 9-10"></path></svg>`);
|
|
673
|
+
else $$renderer.push("<!--[-1-->");
|
|
674
|
+
$$renderer.push(`<!--]-->${escape_html(task.key)}`);
|
|
675
|
+
if (task.done) $$renderer.push(`<!--[0--><span class="hidden svelte-bjq4l5">, done</span>`);
|
|
676
|
+
else $$renderer.push("<!--[-1-->");
|
|
677
|
+
$$renderer.push(`<!--]--></a></li>`);
|
|
678
|
+
}
|
|
679
|
+
$$renderer.push(`<!--]--> `);
|
|
680
|
+
if (notAdded() > 0) $$renderer.push(`<!--[0--><li><span class="chip words svelte-bjq4l5" data-not-added="">${escape_html(notAdded())} not added yet</span></li>`);
|
|
681
|
+
else $$renderer.push("<!--[-1-->");
|
|
682
|
+
$$renderer.push(`<!--]--></ul>`);
|
|
683
|
+
} else $$renderer.push("<!--[-1-->");
|
|
684
|
+
$$renderer.push(`<!--]--> `);
|
|
685
|
+
if (open().length > 0) $$renderer.push(`<!--[0--><p class="open svelte-bjq4l5">${escape_html(open().length)} open on Delivery, ${escape_html(needs() === 0 ? "none needs you" : `${needs()} ${needs() === 1 ? "needs" : "need"} you`)}</p>`);
|
|
686
|
+
else $$renderer.push("<!--[-1-->");
|
|
687
|
+
$$renderer.push(`<!--]-->`);
|
|
688
|
+
} else $$renderer.push("<!--[-1-->");
|
|
689
|
+
$$renderer.push(`<!--]--> `);
|
|
690
|
+
if (card.verdict !== null && !qaFailed() && !asks()) {
|
|
691
|
+
$$renderer.push(`<!--[0--><p class="verdict svelte-bjq4l5"${attr("data-verdict", card.verdict)}><span class="word svelte-bjq4l5">${escape_html(card.verdict)}</span> `);
|
|
692
|
+
if (card.verdictReason !== null) $$renderer.push(`<!--[0--><span class="why svelte-bjq4l5"${attr("title", card.verdictReason)}>${escape_html(card.verdictReason)}</span>`);
|
|
693
|
+
else $$renderer.push("<!--[-1-->");
|
|
694
|
+
$$renderer.push(`<!--]--></p>`);
|
|
695
|
+
} else $$renderer.push("<!--[-1-->");
|
|
696
|
+
$$renderer.push(`<!--]--> `);
|
|
697
|
+
if (card.outputProblems !== void 0 && card.outputProblems.length > 0) {
|
|
698
|
+
$$renderer.push("<!--[0-->");
|
|
699
|
+
const words = checkWords(card.outputProblems);
|
|
700
|
+
$$renderer.push(`<p class="verdict svelte-bjq4l5" data-output-check=""><a${attr("href", `/t/${stringify(encodeURIComponent(card.key))}/overview#output-check`)}${attr("title", words.full)} tabindex="-1" draggable="false" class="svelte-bjq4l5"><span class="word svelte-bjq4l5">Check</span> <span class="why svelte-bjq4l5" aria-hidden="true">${escape_html(words.short)}</span><span class="hidden svelte-bjq4l5">${escape_html(words.full)}</span></a></p>`);
|
|
701
|
+
} else $$renderer.push("<!--[-1-->");
|
|
702
|
+
$$renderer.push(`<!--]--> `);
|
|
703
|
+
if (feedback() !== null) $$renderer.push(`<!--[0--><p class="open svelte-bjq4l5"${attr("data-feedback", card.key)}><span aria-hidden="true">${escape_html(feedback().text)}</span><span class="hidden svelte-bjq4l5">${escape_html(feedback().label)}</span></p>`);
|
|
704
|
+
else $$renderer.push("<!--[-1-->");
|
|
705
|
+
$$renderer.push(`<!--]-->`);
|
|
706
|
+
}
|
|
707
|
+
$$renderer.push(`<!--]--></article>`);
|
|
708
|
+
}
|
|
709
|
+
$$renderer.push(`<!--]-->`);
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
//#endregion
|
|
713
|
+
//#region ../../packages/ui/src/board/BoardColumn.svelte
|
|
714
|
+
function BoardColumn($$renderer, $$props) {
|
|
715
|
+
$$renderer.component(($$renderer) => {
|
|
716
|
+
let { stage, cards = [], total = null, focusKey = null, onFocus = () => {}, now, drag = null, allowed = () => false, onMove = () => {}, onDragEnter = () => {}, onDragLeave = () => {}, onDragStart = () => {}, onRefuse = () => {}, rounds = true, activity = {}, quietAfterMs, limits = {}, aside = void 0, cardAction = void 0, draggable = true, coaching = false, shut = false, onOpen = () => {}, onClose, fixable = [], onFix = () => {}, placeholder = void 0, tags = {} } = $$props;
|
|
717
|
+
const direction = derived(() => drag === null ? false : allowed(stage.id));
|
|
718
|
+
const refusal = derived(() => refuseDrop(stage, direction()));
|
|
719
|
+
const target = derived(() => direction() !== false);
|
|
720
|
+
const box = derived(() => target() ? dropTarget(stage, direction() === "forward", {
|
|
721
|
+
limits,
|
|
722
|
+
now: (now ?? /* @__PURE__ */ new Date()).getTime()
|
|
723
|
+
}) : null);
|
|
724
|
+
const open = derived(() => cards.filter((card) => !card.minimized));
|
|
725
|
+
const minimized = derived(() => cards.filter((card) => card.minimized));
|
|
726
|
+
const cardsWord = (count) => count === 1 ? "card" : "cards";
|
|
727
|
+
const FIRST_DRAG_HINTS = {
|
|
728
|
+
plan: "Drop a card to plan it",
|
|
729
|
+
implement: "Drop a card to build it"
|
|
730
|
+
};
|
|
731
|
+
const hint = derived(() => coaching && cards.length === 0 ? FIRST_DRAG_HINTS[stage.starts?.phase ?? ""] ?? null : null);
|
|
732
|
+
const hidden = derived(() => shut && cards.length > 0);
|
|
733
|
+
const folded = derived(() => (cards.length === 0 && aside === void 0 && hint() === null && placeholder === void 0 || hidden()) && (box() === null || drag?.over !== stage.id));
|
|
734
|
+
const starts = derived(() => stage.role === "agent" ? dropTarget(stage, true) : null);
|
|
735
|
+
const startsNothing = derived(() => stage.role === "agent" && starts()?.kind !== "starts");
|
|
736
|
+
const resting = derived(() => aside !== void 0 && box() === null && starts()?.kind === "starts");
|
|
737
|
+
const startsLine = derived(() => {
|
|
738
|
+
if (starts()?.kind !== "starts" || stage.starts === null) return null;
|
|
739
|
+
const { estimate } = stage.starts;
|
|
740
|
+
return [startsCommand(stage.starts), ...estimate === void 0 ? [] : [estimateBrief(estimate)]].join(" · ");
|
|
741
|
+
});
|
|
742
|
+
function count($$renderer) {
|
|
743
|
+
if (total === null) $$renderer.push(`<!--[0--><span class="count svelte-1omg1ad"${attr("title", `${stringify(stage.count)} ${stringify(cardsWord(stage.count))}`)}>${escape_html(stage.count)}</span>`);
|
|
744
|
+
else $$renderer.push(`<!--[-1--><span class="count svelte-1omg1ad"${attr("title", `${stringify(cards.length)} of ${stringify(total)} ${stringify(cardsWord(total))}`)}>${escape_html(cards.length)}</span> <span class="hidden svelte-1omg1ad">of ${escape_html(total)}</span>`);
|
|
745
|
+
$$renderer.push(`<!--]-->`);
|
|
746
|
+
}
|
|
747
|
+
$$renderer.push(`<section class="column svelte-1omg1ad" role="group"${attr("aria-label", stage.label)}${attr("data-stage", stage.id)}${attr("data-role", stage.role)}${attr("data-accent", stage.role === "agent" && !startsNothing() ? "true" : void 0)}${attr("data-folded", folded() ? "true" : void 0)}${attr("data-count", stage.count)}${attr("data-drop-target", target() ? "true" : void 0)}${attr("data-drop-starts", box()?.kind === "starts" ? "true" : void 0)}${attr("data-refuses", refusal() === null ? void 0 : "true")}>`);
|
|
748
|
+
if (folded() && hidden()) {
|
|
749
|
+
$$renderer.push(`<!--[0--><button class="unfold svelte-1omg1ad" type="button"${attr("aria-label", `Show ${stringify(stage.label)}, ${stringify(stage.count)} ${stringify(cardsWord(stage.count))}`)}>`);
|
|
750
|
+
RoleGlyph($$renderer, {
|
|
751
|
+
role: stage.role,
|
|
752
|
+
startsNothing: startsNothing()
|
|
753
|
+
});
|
|
754
|
+
$$renderer.push(`<!----> <span class="slim svelte-1omg1ad"><span>${escape_html(stage.label)}</span>`);
|
|
755
|
+
count($$renderer);
|
|
756
|
+
$$renderer.push(`<!----></span></button>`);
|
|
757
|
+
} else if (folded()) {
|
|
758
|
+
$$renderer.push("<!--[1-->");
|
|
759
|
+
RoleGlyph($$renderer, {
|
|
760
|
+
role: stage.role,
|
|
761
|
+
startsNothing: startsNothing()
|
|
762
|
+
});
|
|
763
|
+
$$renderer.push(`<!----> <p class="slim svelte-1omg1ad"><span>${escape_html(stage.label)}</span> `);
|
|
764
|
+
count($$renderer);
|
|
765
|
+
$$renderer.push(`<!----> <span class="hidden svelte-1omg1ad">${escape_html(cardsWord(total ?? stage.count))}</span> `);
|
|
766
|
+
if (stage.cadence !== null) $$renderer.push(`<!--[0--><span>${escape_html(stage.cadence)}</span>`);
|
|
767
|
+
else $$renderer.push("<!--[-1-->");
|
|
768
|
+
$$renderer.push(`<!--]--></p>`);
|
|
769
|
+
} else {
|
|
770
|
+
$$renderer.push(`<!--[-1--><header class="svelte-1omg1ad">`);
|
|
771
|
+
RoleGlyph($$renderer, {
|
|
772
|
+
role: stage.role,
|
|
773
|
+
startsNothing: startsNothing()
|
|
774
|
+
});
|
|
775
|
+
$$renderer.push(`<!----> <span class="label svelte-1omg1ad">${escape_html(stage.label)}</span> `);
|
|
776
|
+
count($$renderer);
|
|
777
|
+
$$renderer.push(`<!----> `);
|
|
778
|
+
if (onClose !== void 0) $$renderer.push(`<!--[0--><button class="fold svelte-1omg1ad" type="button"${attr("aria-label", `Hide ${stringify(stage.label)}`)}>Hide</button>`);
|
|
779
|
+
else $$renderer.push("<!--[-1-->");
|
|
780
|
+
$$renderer.push(`<!--]--></header> `);
|
|
781
|
+
if (startsLine() !== null) $$renderer.push(`<!--[0--><p class="line starts svelte-1omg1ad">${escape_html(startsLine())}</p>`);
|
|
782
|
+
else if (starts()?.kind === "refused") $$renderer.push(`<!--[1--><p class="line svelte-1omg1ad">Refused. ${escape_html(starts().reason)}</p>`);
|
|
783
|
+
else if (stage.says !== void 0) $$renderer.push(`<!--[2--><p class="line svelte-1omg1ad">${escape_html(stage.says)}</p>`);
|
|
784
|
+
else $$renderer.push("<!--[-1-->");
|
|
785
|
+
$$renderer.push(`<!--]--> `);
|
|
786
|
+
if (stage.cadence !== null) $$renderer.push(`<!--[0--><p class="line svelte-1omg1ad">${escape_html(stage.cadence)}</p>`);
|
|
787
|
+
else $$renderer.push("<!--[-1-->");
|
|
788
|
+
$$renderer.push(`<!--]--> <div class="body svelte-1omg1ad">`);
|
|
789
|
+
if (placeholder !== void 0) {
|
|
790
|
+
$$renderer.push(`<!--[0--><div class="placeholder svelte-1omg1ad" data-placeholder="">`);
|
|
791
|
+
placeholder($$renderer);
|
|
792
|
+
$$renderer.push(`<!----></div>`);
|
|
793
|
+
} else $$renderer.push("<!--[-1-->");
|
|
794
|
+
$$renderer.push(`<!--]--> `);
|
|
795
|
+
if (resting() && stage.starts !== null) {
|
|
796
|
+
$$renderer.push(`<!--[0--><div class="drop rest svelte-1omg1ad" data-drop="rest"><p class="head svelte-1omg1ad">Drop here</p> `);
|
|
797
|
+
if (stage.starts.estimate !== void 0) $$renderer.push(`<!--[0--><p class="estimate svelte-1omg1ad">${escape_html(estimateText(stage.starts.estimate))}</p>`);
|
|
798
|
+
else $$renderer.push("<!--[-1-->");
|
|
799
|
+
$$renderer.push(`<!--]--></div>`);
|
|
800
|
+
} else $$renderer.push("<!--[-1-->");
|
|
801
|
+
$$renderer.push(`<!--]--> `);
|
|
802
|
+
if (box() !== null) {
|
|
803
|
+
$$renderer.push(`<!--[0--><div class="drop svelte-1omg1ad"${attr("data-drop", box().kind)} role="status">`);
|
|
804
|
+
if (box().kind === "starts") {
|
|
805
|
+
$$renderer.push(`<!--[0--><p class="head svelte-1omg1ad"><svg class="bolt svelte-1omg1ad" viewBox="0 0 24 24" aria-hidden="true"><path d="M13 2 4 14h7l-1 8 9-12h-7l1-8Z"></path></svg>Drop to start ${escape_html(stage.label)}</p> <p class="command svelte-1omg1ad">${escape_html(box().command)}</p> `);
|
|
806
|
+
if (box().estimate !== void 0) $$renderer.push(`<!--[0--><p class="estimate svelte-1omg1ad">${escape_html(box().estimate.text)}</p>`);
|
|
807
|
+
else $$renderer.push("<!--[-1-->");
|
|
808
|
+
$$renderer.push(`<!--]--> `);
|
|
809
|
+
if (box().usage !== void 0) $$renderer.push(`<!--[0--><p class="usage svelte-1omg1ad">${escape_html(box().usage)}</p>`);
|
|
810
|
+
else $$renderer.push("<!--[-1-->");
|
|
811
|
+
$$renderer.push(`<!--]--> <p class="esc svelte-1omg1ad">Esc cancels. Moving back never starts a run.</p>`);
|
|
812
|
+
} else if (box().kind === "refused") $$renderer.push(`<!--[1--><p class="head svelte-1omg1ad">Refused</p> <p class="reason svelte-1omg1ad">${escape_html(box().reason)}</p>`);
|
|
813
|
+
else $$renderer.push(`<!--[-1--><p class="head svelte-1omg1ad">${escape_html(box().says)}</p>`);
|
|
814
|
+
$$renderer.push(`<!--]--></div>`);
|
|
815
|
+
} else $$renderer.push("<!--[-1-->");
|
|
816
|
+
$$renderer.push(`<!--]--> <!--[-->`);
|
|
817
|
+
const each_array = ensure_array_like(open());
|
|
818
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
819
|
+
let card = each_array[$$index];
|
|
820
|
+
BoardCard($$renderer, {
|
|
821
|
+
card,
|
|
822
|
+
now,
|
|
823
|
+
onDragStart,
|
|
824
|
+
focusable: card.key === focusKey,
|
|
825
|
+
onFocus,
|
|
826
|
+
rounds,
|
|
827
|
+
activity: activity[card.key],
|
|
828
|
+
quietAfterMs,
|
|
829
|
+
dragging: drag?.key === card.key,
|
|
830
|
+
cardAction,
|
|
831
|
+
draggable,
|
|
832
|
+
stage,
|
|
833
|
+
tag: tags[card.key] ?? null,
|
|
834
|
+
onFix: fixable.includes(card.key) ? onFix : null
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
$$renderer.push(`<!--]--> `);
|
|
838
|
+
if (hint() !== null) $$renderer.push(`<!--[0--><p class="hint svelte-1omg1ad">${escape_html(hint())}</p>`);
|
|
839
|
+
else $$renderer.push("<!--[-1-->");
|
|
840
|
+
$$renderer.push(`<!--]--> `);
|
|
841
|
+
aside?.($$renderer);
|
|
842
|
+
$$renderer.push(`<!----></div> `);
|
|
843
|
+
if (minimized().length > 0) {
|
|
844
|
+
$$renderer.push(`<!--[0--><div class="strip svelte-1omg1ad" data-minimized-strip="true"><!--[-->`);
|
|
845
|
+
const each_array_1 = ensure_array_like(minimized());
|
|
846
|
+
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
847
|
+
let card = each_array_1[$$index_1];
|
|
848
|
+
BoardCard($$renderer, {
|
|
849
|
+
card,
|
|
850
|
+
now,
|
|
851
|
+
onDragStart,
|
|
852
|
+
focusable: card.key === focusKey,
|
|
853
|
+
onFocus,
|
|
854
|
+
rounds,
|
|
855
|
+
activity: activity[card.key],
|
|
856
|
+
quietAfterMs,
|
|
857
|
+
dragging: drag?.key === card.key,
|
|
858
|
+
cardAction,
|
|
859
|
+
draggable,
|
|
860
|
+
stage,
|
|
861
|
+
tag: tags[card.key] ?? null
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
$$renderer.push(`<!--]--></div>`);
|
|
865
|
+
} else $$renderer.push("<!--[-1-->");
|
|
866
|
+
$$renderer.push(`<!--]-->`);
|
|
867
|
+
}
|
|
868
|
+
$$renderer.push(`<!--]--></section>`);
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
//#endregion
|
|
872
|
+
//#region ../../packages/ui/src/board/EmptyInbox.svelte
|
|
873
|
+
var SAYS = {
|
|
874
|
+
delivery: "This board has no card on it. Press N, or Add card, and type a title or a ticket key. Drag the card one column on and an agent starts on this machine.",
|
|
875
|
+
epics: "This board has no epic on it. Press N, or Add epic, and type the idea or a ticket key. Drag it one column on and an agent plans it into tasks for Delivery.",
|
|
876
|
+
prreview: "This board has no pull request on it. Press N, or Add pull request, and type the pull request as owner/repo#number or paste its link from GitHub.",
|
|
877
|
+
questions: "This board has no question or investigation on it. Press N, or click the box above, and type a question or what to look into.",
|
|
878
|
+
investigations: "This board has no question or investigation on it. Press N, or click the box above, and type a question or what to look into."
|
|
879
|
+
};
|
|
880
|
+
function EmptyInbox($$renderer, $$props) {
|
|
881
|
+
let { kind } = $$props;
|
|
882
|
+
$$renderer.push(`<p class="svelte-1r90926">${escape_html(SAYS[kind])}</p>`);
|
|
883
|
+
}
|
|
884
|
+
//#endregion
|
|
885
|
+
//#region ../../packages/ui/src/board/Board.svelte
|
|
886
|
+
function Board($$renderer, $$props) {
|
|
887
|
+
$$renderer.component(($$renderer) => {
|
|
888
|
+
let { snapshot, filtered = false, query = "", selected = null, onSelect = () => {}, now: fixed, drag = null, allowed = () => false, onMove = () => {}, onDragEnter = () => {}, onDragLeave = () => {}, onDragStart = () => {}, onDragEnd = () => {}, onRefuse = () => {}, activity = {}, limits = {}, aside = null, cardAction = void 0, draggable = true, archiveOpen = false, onFix = null, tags = {} } = $$props;
|
|
889
|
+
let ticking = /* @__PURE__ */ new Date();
|
|
890
|
+
const now = derived(() => fixed ?? ticking);
|
|
891
|
+
const live = derived(() => keepDrag(drag, snapshot.cards));
|
|
892
|
+
const dragged = derived(() => live() === null ? null : snapshot.cards.find((card) => card.key === live().key) ?? null);
|
|
893
|
+
const forDrag = (stage) => dragged()?.starts ? {
|
|
894
|
+
...stage,
|
|
895
|
+
starts: cardStarts(stage, dragged())
|
|
896
|
+
} : stage;
|
|
897
|
+
const typed = derived(() => query.trim() !== "");
|
|
898
|
+
const shown = derived(() => snapshot.cards.filter((card) => (!filtered || waitingOnMe(card)) && matchesFilter(card, query)));
|
|
899
|
+
const shut = derived(() => shutColumns(snapshot.stages, archiveOpen));
|
|
900
|
+
const reachable = derived(() => visibleColumns(snapshot.stages, shown(), shut()).flat());
|
|
901
|
+
const fixable = derived(() => onFix === null ? [] : snapshot.cards.filter((card) => fixItOf(card, snapshot.stages) !== null).map((card) => card.key));
|
|
902
|
+
const focusKey = derived(() => selected !== null && reachable().includes(selected) ? selected : reachable()[0] ?? null);
|
|
903
|
+
const nothing = derived(() => shown().length === 0 && snapshot.cards.length > 0);
|
|
904
|
+
const empty = derived(() => snapshot.cards.length === 0);
|
|
905
|
+
function firstSteps($$renderer) {
|
|
906
|
+
EmptyInbox($$renderer, { kind: snapshot.kind });
|
|
907
|
+
}
|
|
908
|
+
$$renderer.push(`<p class="nothing svelte-s2cbh7" role="status">${escape_html(nothing() ? typed() ? "No card matches the filter." : "Nothing waiting on you." : "")}</p> <div class="board svelte-s2cbh7"${attr("data-flow", snapshot.flow)} role="presentation"><!--[-->`);
|
|
909
|
+
const each_array = ensure_array_like(snapshot.stages);
|
|
910
|
+
for (let at = 0, $$length = each_array.length; at < $$length; at++) {
|
|
911
|
+
let stage = each_array[at];
|
|
912
|
+
BoardColumn($$renderer, {
|
|
913
|
+
now: now(),
|
|
914
|
+
stage: forDrag(stage),
|
|
915
|
+
drag: live(),
|
|
916
|
+
allowed,
|
|
917
|
+
onMove,
|
|
918
|
+
onDragEnter,
|
|
919
|
+
onDragLeave,
|
|
920
|
+
onDragStart,
|
|
921
|
+
onRefuse,
|
|
922
|
+
cards: shown().filter((card) => card.stage === stage.id),
|
|
923
|
+
total: filtered || typed() ? stage.count : null,
|
|
924
|
+
focusKey: focusKey(),
|
|
925
|
+
onFocus: onSelect,
|
|
926
|
+
rounds: snapshot.kind === "prreview",
|
|
927
|
+
activity,
|
|
928
|
+
quietAfterMs: snapshot.quietAfterMs,
|
|
929
|
+
limits,
|
|
930
|
+
aside: aside?.stage === stage.id ? aside.content : void 0,
|
|
931
|
+
cardAction,
|
|
932
|
+
draggable,
|
|
933
|
+
coaching: aside !== null,
|
|
934
|
+
shut: shut().includes(stage.id),
|
|
935
|
+
onOpen: () => archiveOpen = true,
|
|
936
|
+
onClose: archiveOpen && stage.role === "archive" ? () => archiveOpen = false : void 0,
|
|
937
|
+
fixable: fixable(),
|
|
938
|
+
onFix: onFix ?? void 0,
|
|
939
|
+
placeholder: empty() && at === 0 ? firstSteps : void 0,
|
|
940
|
+
tags
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
$$renderer.push(`<!--]--></div>`);
|
|
944
|
+
bind_props($$props, { archiveOpen });
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
//#endregion
|
|
948
|
+
//#region src/lib/BoardList.svelte
|
|
949
|
+
function BoardList($$renderer, $$props) {
|
|
950
|
+
$$renderer.component(($$renderer) => {
|
|
951
|
+
let { cards, stages, activity = {}, quietAfterMs, now, selected = null, empty, tags = {} } = $$props;
|
|
952
|
+
const labels = derived(() => new Map(stages.map((stage) => [stage.id, stage.label])));
|
|
953
|
+
const focusKey = derived(() => selected !== null && cards.some((card) => card.key === selected) ? selected : cards[0]?.key ?? null);
|
|
954
|
+
if (cards.length === 0) $$renderer.push(`<!--[0--><p class="nothing svelte-1v3eavb">${escape_html(empty)}</p>`);
|
|
955
|
+
else {
|
|
956
|
+
$$renderer.push(`<!--[-1--><div class="list svelte-1v3eavb" data-board-list=""><!--[-->`);
|
|
957
|
+
const each_array = ensure_array_like(cards);
|
|
958
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
959
|
+
let card = each_array[$$index];
|
|
960
|
+
const pill = cardPill(card, liveOf(card, activity[card.key], now, quietAfterMs), now, stages.find((stage) => stage.id === card.stage));
|
|
961
|
+
$$renderer.push(`<article class="row svelte-1v3eavb"${attr("data-card", card.key)}${attr("data-state", card.state)} role="group"${attr("aria-label", card.key)}${attr("tabindex", card.key === focusKey() ? 0 : -1)}><span class="key svelte-1v3eavb">${escape_html(card.key)}</span> <span class="name svelte-1v3eavb">`);
|
|
962
|
+
if (tags[card.key] !== void 0) $$renderer.push(`<!--[0--><span class="tag svelte-1v3eavb" data-card-tag="">${escape_html(tags[card.key])}</span>`);
|
|
963
|
+
else $$renderer.push("<!--[-1-->");
|
|
964
|
+
$$renderer.push(`<!--]--> <a class="title svelte-1v3eavb"${attr("href", resolve("/t/[key]", { key: encodeURIComponent(card.key) }))} tabindex="-1">${escape_html(card.title)}</a></span> <span class="column svelte-1v3eavb">${escape_html(labels().get(card.stage) ?? card.stage)}</span> <span class="pill">`);
|
|
965
|
+
StatePill($$renderer, {
|
|
966
|
+
state: pill.state,
|
|
967
|
+
word: pill.word,
|
|
968
|
+
detail: pill.detail,
|
|
969
|
+
check: pill.check
|
|
970
|
+
});
|
|
971
|
+
$$renderer.push(`<!----></span> <span class="model svelte-1v3eavb">${escape_html(card.model === null ? "" : ranOn(card.engine, card.model, null))}</span></article>`);
|
|
972
|
+
}
|
|
973
|
+
$$renderer.push(`<!--]--></div>`);
|
|
974
|
+
}
|
|
975
|
+
$$renderer.push(`<!--]-->`);
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
//#endregion
|
|
979
|
+
//#region src/lib/ResearchAdd.svelte
|
|
980
|
+
function ResearchAdd($$renderer, $$props) {
|
|
981
|
+
$$renderer.component(($$renderer) => {
|
|
982
|
+
let { box = void 0 } = $$props;
|
|
983
|
+
let text = "";
|
|
984
|
+
let kind = "questions";
|
|
985
|
+
let adding = false;
|
|
986
|
+
let said = "";
|
|
987
|
+
async function add() {
|
|
988
|
+
if (adding) return;
|
|
989
|
+
if (text.trim() === "") {
|
|
990
|
+
said = `Write the ${RESEARCH_KIND_LABELS[kind].toLowerCase()} first.`;
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
adding = true;
|
|
994
|
+
said = "";
|
|
995
|
+
const made = await postCard(fetch, resolve("/api/cards"), researchCard(text, kind));
|
|
996
|
+
adding = false;
|
|
997
|
+
if (!made.ok) {
|
|
998
|
+
said = made.reason;
|
|
999
|
+
return;
|
|
1000
|
+
}
|
|
1001
|
+
text = "";
|
|
1002
|
+
toastStack.state = cardAdded(toastStack.state, {
|
|
1003
|
+
key: made.key,
|
|
1004
|
+
href: resolve("/t/[key]", { key: encodeURIComponent(made.key) })
|
|
1005
|
+
}, "Inbox", made.note);
|
|
1006
|
+
}
|
|
1007
|
+
$$renderer.push(`<section class="compose svelte-1yatqdn" aria-label="New research"><label for="research-ask" class="hidden svelte-1yatqdn">Question or what to investigate</label> <textarea id="research-ask" rows="2" placeholder="Ask a question or describe what to investigate" class="svelte-1yatqdn">`);
|
|
1008
|
+
const $$body = escape_html(text);
|
|
1009
|
+
if ($$body) $$renderer.push(`${$$body}`);
|
|
1010
|
+
$$renderer.push(`</textarea> <div class="r svelte-1yatqdn"><div class="seg svelte-1yatqdn" role="radiogroup" aria-label="Kind"><!--[-->`);
|
|
1011
|
+
const each_array = ensure_array_like(RESEARCH_KINDS);
|
|
1012
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1013
|
+
let one = each_array[$$index];
|
|
1014
|
+
$$renderer.push(`<label class="svelte-1yatqdn"><input type="radio" name="research-kind"${attr("value", one)}${attr("checked", kind === one, true)} class="svelte-1yatqdn"/>${escape_html(RESEARCH_KIND_LABELS[one])}</label>`);
|
|
1015
|
+
}
|
|
1016
|
+
$$renderer.push(`<!--]--></div> <span class="sub svelte-1yatqdn">Lands in Inbox. Nothing runs until you drag it to Research.</span> <span class="sp svelte-1yatqdn"></span> `);
|
|
1017
|
+
Button($$renderer, {
|
|
1018
|
+
variant: "primary",
|
|
1019
|
+
key: "⌘↵",
|
|
1020
|
+
disabled: adding,
|
|
1021
|
+
"aria-busy": adding ? "true" : void 0,
|
|
1022
|
+
onclick: add,
|
|
1023
|
+
children: ($$renderer) => {
|
|
1024
|
+
$$renderer.push(`<!---->Add to Inbox`);
|
|
1025
|
+
},
|
|
1026
|
+
$$slots: { default: true }
|
|
1027
|
+
});
|
|
1028
|
+
$$renderer.push(`<!----></div> <p class="said svelte-1yatqdn" role="alert">${escape_html(said)}</p></section>`);
|
|
1029
|
+
bind_props($$props, { box });
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
//#endregion
|
|
1033
|
+
//#region src/lib/research-board.ts
|
|
1034
|
+
var researchOf = (boards, kind) => boards.find((board) => board.kind === kind) ?? null;
|
|
1035
|
+
/**
|
|
1036
|
+
* One snapshot holding the cards of both kinds, drawn in the question board's columns, or null before
|
|
1037
|
+
* either board is on the stream. A column counts the cards of both.
|
|
1038
|
+
*
|
|
1039
|
+
* The Research column starts `research` for a question and `investigate` for an investigation. The
|
|
1040
|
+
* board reads what a dragged card starts as `cardStarts(stage, card)`, which looks the stage's phase up
|
|
1041
|
+
* in the card's own `starts`. So an investigation carries its own start under the question's phase
|
|
1042
|
+
* name, and the column says `/investigate` while that card is dragged over it.
|
|
1043
|
+
*/
|
|
1044
|
+
function researchBoard(boards) {
|
|
1045
|
+
const questions = researchOf(boards, "questions");
|
|
1046
|
+
const investigations = researchOf(boards, "investigations");
|
|
1047
|
+
const base = questions ?? investigations;
|
|
1048
|
+
if (base === null) return null;
|
|
1049
|
+
if (questions === null || investigations === null) return base;
|
|
1050
|
+
const asQuestion = (card) => {
|
|
1051
|
+
const starts = { ...card.starts };
|
|
1052
|
+
for (const stage of questions.stages) {
|
|
1053
|
+
const own = investigations.stages.find((one) => one.id === stage.id);
|
|
1054
|
+
if (stage.starts === null || own === void 0) continue;
|
|
1055
|
+
const start = cardStarts(own, card);
|
|
1056
|
+
if (start !== null) starts[stage.starts.phase] = start;
|
|
1057
|
+
}
|
|
1058
|
+
return {
|
|
1059
|
+
...card,
|
|
1060
|
+
starts
|
|
1061
|
+
};
|
|
1062
|
+
};
|
|
1063
|
+
return {
|
|
1064
|
+
...questions,
|
|
1065
|
+
stages: questions.stages.map((stage) => ({
|
|
1066
|
+
...stage,
|
|
1067
|
+
count: stage.count + (investigations.stages.find((one) => one.id === stage.id)?.count ?? 0)
|
|
1068
|
+
})),
|
|
1069
|
+
cards: [...questions.cards, ...investigations.cards.map(asQuestion)]
|
|
1070
|
+
};
|
|
1071
|
+
}
|
|
1072
|
+
function boardOfCard(boards, key) {
|
|
1073
|
+
return boards.find((board) => board.cards.some((card) => card.key === key)) ?? null;
|
|
1074
|
+
}
|
|
1075
|
+
function researchTags(boards) {
|
|
1076
|
+
return Object.fromEntries(boards.flatMap((board) => isResearchKind(board.kind) ? board.cards.map((card) => [card.key, RESEARCH_KIND_LABELS[board.kind]]) : []));
|
|
1077
|
+
}
|
|
1078
|
+
//#endregion
|
|
1079
|
+
//#region src/lib/BoardPage.svelte
|
|
1080
|
+
function BoardPage($$renderer, $$props) {
|
|
1081
|
+
$$renderer.component(($$renderer) => {
|
|
1082
|
+
let { research = false } = $$props;
|
|
1083
|
+
let drag = null;
|
|
1084
|
+
let adding = false;
|
|
1085
|
+
let cardDraft = null;
|
|
1086
|
+
const filtered = derived(() => filterOn(page.url));
|
|
1087
|
+
const kind = derived(() => research ? "questions" : boardKind(page.params.board ?? "delivery") ?? "delivery");
|
|
1088
|
+
const title = derived(() => research ? "Research" : BOARD_LABELS[kind()]);
|
|
1089
|
+
const boards = derived(() => nowLive.state.snapshot?.boards ?? []);
|
|
1090
|
+
const snapshot = derived(() => research ? researchBoard(boards()) : boards().find((one) => one.kind === kind()) ?? null);
|
|
1091
|
+
const own = (key) => research ? boardOfCard(boards(), key) : snapshot();
|
|
1092
|
+
const tags = derived(() => research ? researchTags(boards()) : {});
|
|
1093
|
+
const reconnecting = derived(() => nowLive.state.reconnecting);
|
|
1094
|
+
const activity = derived(() => nowLive.state.activity);
|
|
1095
|
+
const limits = derived(() => nowLive.state.limits);
|
|
1096
|
+
let query = "";
|
|
1097
|
+
const viewKey = (board) => `nolzu.view.${board}`;
|
|
1098
|
+
const storedListing = (board) => {
|
|
1099
|
+
try {
|
|
1100
|
+
return localStorage.getItem(viewKey(board)) === "list";
|
|
1101
|
+
} catch {
|
|
1102
|
+
return false;
|
|
1103
|
+
}
|
|
1104
|
+
};
|
|
1105
|
+
const viewOf = derived(() => research ? "research" : kind());
|
|
1106
|
+
let listing = derived(() => storedListing(viewOf()));
|
|
1107
|
+
const shows = (card) => (!filtered() || waitingOnMe(card)) && matchesFilter(card, query);
|
|
1108
|
+
const emptyLine = derived(() => query.trim() !== "" ? "No card matches the filter." : "Nothing waiting on you.");
|
|
1109
|
+
let now = /* @__PURE__ */ new Date();
|
|
1110
|
+
const waiting = derived(() => snapshot() === null ? null : snapshot().cards.filter(waitingOnMe).length);
|
|
1111
|
+
let selected = null;
|
|
1112
|
+
const cardElement = (key) => document.querySelector(`[data-card="${CSS.escape(key)}"]`);
|
|
1113
|
+
const cardHref = (key) => resolve("/t/[key]", { key: encodeURIComponent(key) });
|
|
1114
|
+
const settingsHref = resolve("/settings/[section]", { section: "models" });
|
|
1115
|
+
const fixOf = (key, stage) => {
|
|
1116
|
+
const of = own(key);
|
|
1117
|
+
return of === null ? void 0 : fixLink(of, key, stage, {
|
|
1118
|
+
card: resolve("/t/[key]/[tab]", {
|
|
1119
|
+
key: encodeURIComponent(key),
|
|
1120
|
+
tab: "settings"
|
|
1121
|
+
}),
|
|
1122
|
+
models: settingsHref
|
|
1123
|
+
});
|
|
1124
|
+
};
|
|
1125
|
+
let added = null;
|
|
1126
|
+
let heldStart = null;
|
|
1127
|
+
let researchBox = void 0;
|
|
1128
|
+
function addClosed() {
|
|
1129
|
+
adding = false;
|
|
1130
|
+
if (page.url.searchParams.has("add")) goto(page.url.pathname, {
|
|
1131
|
+
});
|
|
1132
|
+
if (added !== null) toastStack.state = addedToast(toastStack.state, {
|
|
1133
|
+
key: added.key,
|
|
1134
|
+
href: cardHref(added.key)
|
|
1135
|
+
}, added, fixOf(added.key, added.at));
|
|
1136
|
+
added = null;
|
|
1137
|
+
const held = heldStart;
|
|
1138
|
+
heldStart = null;
|
|
1139
|
+
if (held !== null) setupGate.state = {
|
|
1140
|
+
key: held.key,
|
|
1141
|
+
to: held.to,
|
|
1142
|
+
go: () => move(held.key, held.to, true)
|
|
1143
|
+
};
|
|
1144
|
+
}
|
|
1145
|
+
async function addCard(asked) {
|
|
1146
|
+
const target = snapshot() ?? void 0;
|
|
1147
|
+
const { payload, start, held } = addOrHold(asked, target, nowLive.state.snapshot?.setup?.gates === true);
|
|
1148
|
+
const made = await postCard(fetch, resolve("/api/cards"), payload);
|
|
1149
|
+
if (made.ok) added = addedOf(made, target, start);
|
|
1150
|
+
if (made.ok && held !== null) heldStart = {
|
|
1151
|
+
key: made.key,
|
|
1152
|
+
to: held
|
|
1153
|
+
};
|
|
1154
|
+
return made;
|
|
1155
|
+
}
|
|
1156
|
+
const contextSources = () => contextCards(fetch, resolve("/api/cards/context"));
|
|
1157
|
+
const nextLocalKey = (board) => nextKey(fetch, `${resolve("/api/cards/next")}?board=${board}`);
|
|
1158
|
+
async function connectJira(form) {
|
|
1159
|
+
const answer = await postJira(fetch, resolve("/api/tickets/jira"), form);
|
|
1160
|
+
if (answer.ok) invalidateAll();
|
|
1161
|
+
return answer;
|
|
1162
|
+
}
|
|
1163
|
+
const board = derived(() => snapshot() === null ? null : boardFor(snapshot().kind, snapshot().flow));
|
|
1164
|
+
const dragged = derived(() => drag === null || snapshot() === null ? null : snapshot().cards.find((card) => card.key === drag?.key) ?? null);
|
|
1165
|
+
const allowed = derived(() => board() === null ? () => false : allowedFor(board(), dragged()));
|
|
1166
|
+
const pullsAt = derived(() => pullsAddress(resolve("/api/board/pulls"), kind()));
|
|
1167
|
+
let reading = {};
|
|
1168
|
+
let read = {};
|
|
1169
|
+
async function readPulls() {
|
|
1170
|
+
const asked = kind();
|
|
1171
|
+
const at = pullsAt();
|
|
1172
|
+
if (reading[asked] === true || at === null) return;
|
|
1173
|
+
reading[asked] = true;
|
|
1174
|
+
try {
|
|
1175
|
+
read[asked] = await readPullsSaid(fetch, at);
|
|
1176
|
+
} finally {
|
|
1177
|
+
reading[asked] = false;
|
|
1178
|
+
}
|
|
1179
|
+
if (asked === "prreview") invalidateAll();
|
|
1180
|
+
}
|
|
1181
|
+
const readAgo = derived(() => kind() !== "prreview" || !page.data.pullsReadAt ? null : age(page.data.pullsReadAt, now));
|
|
1182
|
+
async function move(key, stage, asked = false) {
|
|
1183
|
+
drag = null;
|
|
1184
|
+
if (!asked && askFirst(key, stage, () => move(key, stage, true))) return false;
|
|
1185
|
+
follow.state = {
|
|
1186
|
+
key,
|
|
1187
|
+
to: stage
|
|
1188
|
+
};
|
|
1189
|
+
toastStack.state = pressed(toastStack.state, key);
|
|
1190
|
+
const mine = toastStack.state.press;
|
|
1191
|
+
const said = await sendMove(fetch, resolve("/api/board/move"), key, stage);
|
|
1192
|
+
toastStack.state = answered(toastStack.state, mine, {
|
|
1193
|
+
key,
|
|
1194
|
+
href: cardHref(key)
|
|
1195
|
+
}, said);
|
|
1196
|
+
if (said !== null && follow.state?.key === key) follow.state = null;
|
|
1197
|
+
return said === null;
|
|
1198
|
+
}
|
|
1199
|
+
async function send(key, path, body, asked = false) {
|
|
1200
|
+
if (!asked && path === retryPath(key) && askBeforeRetry(key, () => send(key, path, body, true))) return false;
|
|
1201
|
+
const to = path === resolve("/api/board/move") ? body.to ?? null : null;
|
|
1202
|
+
if (typeof to === "string") follow.state = {
|
|
1203
|
+
key,
|
|
1204
|
+
to
|
|
1205
|
+
};
|
|
1206
|
+
toastStack.state = pressed(toastStack.state, key);
|
|
1207
|
+
const mine = toastStack.state.press;
|
|
1208
|
+
const said = await postWrite(fetch, path, body);
|
|
1209
|
+
if (said !== null && typeof to === "string" && follow.state?.key === key) follow.state = null;
|
|
1210
|
+
toastStack.state = answered(toastStack.state, mine, {
|
|
1211
|
+
key,
|
|
1212
|
+
href: cardHref(key)
|
|
1213
|
+
}, said === null ? null : refusalFromServer(said));
|
|
1214
|
+
return said === null;
|
|
1215
|
+
}
|
|
1216
|
+
let peeking = false;
|
|
1217
|
+
let opener = null;
|
|
1218
|
+
const peekCard = derived(() => peeking && selected !== null ? snapshot()?.cards.find((card) => card.key === selected) ?? null : null);
|
|
1219
|
+
const slotMeter = derived(() => nowLive.state.snapshot?.boards[0]?.slots ?? null);
|
|
1220
|
+
const pips = derived(() => nowLive.state.snapshot === null ? [] : slotPips(nowLive.state.snapshot));
|
|
1221
|
+
function closePeek() {
|
|
1222
|
+
peeking = false;
|
|
1223
|
+
((selected === null ? null : cardElement(selected)) ?? (opener?.isConnected ? opener : null))?.focus();
|
|
1224
|
+
}
|
|
1225
|
+
const retryPath = (key) => resolve("/api/card/[key]/retry", { key: encodeURIComponent(key) });
|
|
1226
|
+
const fixPath = (key) => resolve("/api/card/[key]/fix", { key: encodeURIComponent(key) });
|
|
1227
|
+
function onScreen() {
|
|
1228
|
+
if (snapshot() === null) return [];
|
|
1229
|
+
const columns = visibleColumns(snapshot().stages, snapshot().cards.filter(shows), shutColumns(snapshot().stages, closedOpen));
|
|
1230
|
+
if (selected !== null && !columns.flat().includes(selected)) selected = null;
|
|
1231
|
+
return listing() ? [columns.flat()] : columns;
|
|
1232
|
+
}
|
|
1233
|
+
const listed = derived(() => {
|
|
1234
|
+
if (snapshot() === null || !listing()) return [];
|
|
1235
|
+
const byKey = new Map(snapshot().cards.map((card) => [card.key, card]));
|
|
1236
|
+
return visibleColumns(snapshot().stages, snapshot().cards.filter(shows), shutColumns(snapshot().stages, closedOpen)).flat().map((key) => byKey.get(key));
|
|
1237
|
+
});
|
|
1238
|
+
function chosen() {
|
|
1239
|
+
onScreen();
|
|
1240
|
+
return snapshot()?.cards.find((card) => card.key === selected) ?? null;
|
|
1241
|
+
}
|
|
1242
|
+
function focused() {
|
|
1243
|
+
const card = chosen();
|
|
1244
|
+
return card !== null && cardElement(card.key) === document.activeElement ? card : null;
|
|
1245
|
+
}
|
|
1246
|
+
function focusTo(arrow) {
|
|
1247
|
+
const next = focusMove(onScreen(), selected, arrow);
|
|
1248
|
+
if (next === null) return false;
|
|
1249
|
+
selected = next;
|
|
1250
|
+
(/* @__PURE__ */ tick()).then(() => cardElement(next)?.focus());
|
|
1251
|
+
return true;
|
|
1252
|
+
}
|
|
1253
|
+
let starting = null;
|
|
1254
|
+
const startingOn = derived(() => starting === null ? null : own(starting.key));
|
|
1255
|
+
const startStage = derived(() => starting === null || startingOn() === null ? null : confirmStage(startingOn(), starting));
|
|
1256
|
+
const startFix = derived(() => starting === null || startingOn() === null ? null : confirmFix(startingOn(), starting));
|
|
1257
|
+
function write(action) {
|
|
1258
|
+
return writeOn(action, focused());
|
|
1259
|
+
}
|
|
1260
|
+
function writeOn(action, card) {
|
|
1261
|
+
const on = card === null ? null : own(card.key);
|
|
1262
|
+
const said = card === null || on === null ? null : keyWrite(on, card.key, action);
|
|
1263
|
+
if (card === null || said === null) return false;
|
|
1264
|
+
const to = said.kind === "ask" ? said.move : void 0;
|
|
1265
|
+
if (to !== void 0 && askFirst(card.key, to, () => move(card.key, to, true))) return true;
|
|
1266
|
+
if (said.kind === "ask") starting = {
|
|
1267
|
+
key: card.key,
|
|
1268
|
+
move: said.move ?? null
|
|
1269
|
+
};
|
|
1270
|
+
else if (said.kind === "refused") toastStack.state = refusedDrop(toastStack.state, {
|
|
1271
|
+
key: card.key,
|
|
1272
|
+
href: cardHref(card.key)
|
|
1273
|
+
}, said.refusal, fixOf(card.key, said.at));
|
|
1274
|
+
else send(card.key, said.to === "retry" ? retryPath(card.key) : resolve(said.to), said.body);
|
|
1275
|
+
return true;
|
|
1276
|
+
}
|
|
1277
|
+
const actions = {
|
|
1278
|
+
next: () => focusTo("ArrowDown"),
|
|
1279
|
+
previous: () => focusTo("ArrowUp"),
|
|
1280
|
+
right: () => focusTo("ArrowRight"),
|
|
1281
|
+
left: () => focusTo("ArrowLeft"),
|
|
1282
|
+
open: () => {
|
|
1283
|
+
const card = chosen();
|
|
1284
|
+
if (card === null) return false;
|
|
1285
|
+
if (!peeking) {
|
|
1286
|
+
opener = document.activeElement;
|
|
1287
|
+
peeking = true;
|
|
1288
|
+
return;
|
|
1289
|
+
}
|
|
1290
|
+
goto(resolve("/t/[key]", { key: encodeURIComponent(card.key) }));
|
|
1291
|
+
},
|
|
1292
|
+
answer: () => {
|
|
1293
|
+
const card = chosen();
|
|
1294
|
+
const to = card === null ? null : answerHref(card);
|
|
1295
|
+
if (to === null) return false;
|
|
1296
|
+
goto();
|
|
1297
|
+
},
|
|
1298
|
+
back: () => {
|
|
1299
|
+
if (peeking) {
|
|
1300
|
+
closePeek();
|
|
1301
|
+
return;
|
|
1302
|
+
}
|
|
1303
|
+
if (chosen() !== null) {
|
|
1304
|
+
selected = null;
|
|
1305
|
+
document.activeElement?.blur();
|
|
1306
|
+
return;
|
|
1307
|
+
}
|
|
1308
|
+
if (!filtered()) return false;
|
|
1309
|
+
toggleFilter();
|
|
1310
|
+
},
|
|
1311
|
+
filter: () => void toggleFilter(),
|
|
1312
|
+
find: () => void 0,
|
|
1313
|
+
view: () => void listing(!listing()),
|
|
1314
|
+
add: () => {
|
|
1315
|
+
if (research) researchBox?.focus();
|
|
1316
|
+
else adding = true;
|
|
1317
|
+
},
|
|
1318
|
+
"move-forward": () => write("forward"),
|
|
1319
|
+
"move-back": () => {
|
|
1320
|
+
const card = focused();
|
|
1321
|
+
if (card !== null && peekCard()?.key === card.key && (card.state === "running" || card.state === "queued") && false);
|
|
1322
|
+
const to = card === null || board() === null ? null : stageBack(board(), card);
|
|
1323
|
+
if (card === null || to === null) return false;
|
|
1324
|
+
move(card.key, to);
|
|
1325
|
+
},
|
|
1326
|
+
peek: () => {
|
|
1327
|
+
if (peeking) {
|
|
1328
|
+
closePeek();
|
|
1329
|
+
return;
|
|
1330
|
+
}
|
|
1331
|
+
if (chosen() === null) return false;
|
|
1332
|
+
opener = document.activeElement;
|
|
1333
|
+
peeking = true;
|
|
1334
|
+
},
|
|
1335
|
+
retry: () => write("retry"),
|
|
1336
|
+
stop: () => write("stop"),
|
|
1337
|
+
promote: () => write("promote"),
|
|
1338
|
+
minimize: () => write("minimize"),
|
|
1339
|
+
copy: () => {
|
|
1340
|
+
const card = focused();
|
|
1341
|
+
if (card === null) return false;
|
|
1342
|
+
const at = {
|
|
1343
|
+
key: card.key,
|
|
1344
|
+
href: cardHref(card.key)
|
|
1345
|
+
};
|
|
1346
|
+
copyText(card.key).then((copied) => toastStack.state = keyCopied(toastStack.state, at, copied));
|
|
1347
|
+
}
|
|
1348
|
+
};
|
|
1349
|
+
const boardKeys = derived(() => pullsAt() === null ? actions : {
|
|
1350
|
+
...actions,
|
|
1351
|
+
"read-pulls": () => void readPulls()
|
|
1352
|
+
});
|
|
1353
|
+
const hints = derived(() => hintsOf(liveKeys(scoped("board"), boardKeys()), peekCard() !== null));
|
|
1354
|
+
const helpKeys = scoped("global").find((binding) => binding.action === "help")?.keys ?? [];
|
|
1355
|
+
let coachClosed = false;
|
|
1356
|
+
let closedOpen = false;
|
|
1357
|
+
const coach = derived(() => coachClosed ? null : coachAt(snapshot(), nowLive.state.snapshot?.firstRun?.coach ?? null, nowLive.state.snapshot?.profiles ?? []));
|
|
1358
|
+
const forwardKeys = scoped("board").find((binding) => binding.action === "move-forward")?.keys ?? [];
|
|
1359
|
+
const findKeys = scoped("board").find((binding) => binding.action === "find")?.keys ?? [];
|
|
1360
|
+
const addLabel = derived(() => addWords(kind()).title);
|
|
1361
|
+
function closeCoach(note) {
|
|
1362
|
+
coachClosed = true;
|
|
1363
|
+
postWrite(fetch, resolve("/api/notes"), { note });
|
|
1364
|
+
}
|
|
1365
|
+
function firstDrag($$renderer) {
|
|
1366
|
+
if (coach() !== null) {
|
|
1367
|
+
$$renderer.push("<!--[0-->");
|
|
1368
|
+
{
|
|
1369
|
+
function hint($$renderer) {
|
|
1370
|
+
$$renderer.push(`<!---->No mouse? Select the card and press `);
|
|
1371
|
+
KeyCaps($$renderer, { combos: forwardKeys });
|
|
1372
|
+
$$renderer.push(`<!---->`);
|
|
1373
|
+
}
|
|
1374
|
+
CoachNote($$renderer, {
|
|
1375
|
+
note: COACH_NOTE,
|
|
1376
|
+
seen: [],
|
|
1377
|
+
title: "Dropping a card here is your approval",
|
|
1378
|
+
ondismiss: closeCoach,
|
|
1379
|
+
hint,
|
|
1380
|
+
children: ($$renderer) => {
|
|
1381
|
+
if (nowLive.state.snapshot?.setup?.gates === true) $$renderer.push(`<!--[0--><p>An amber column runs an agent. Drop ${escape_html(coach().key)} and Nolzu first offers to learn your repositories, then ${escape_html(coach().engine)} starts ${escape_html(coach().label)} on this machine.</p>`);
|
|
1382
|
+
else $$renderer.push(`<!--[-1--><p>An amber column runs an agent. Drop ${escape_html(coach().key)} and ${escape_html(coach().engine)} starts ${escape_html(coach().label)} on this machine.</p>`);
|
|
1383
|
+
$$renderer.push(`<!--]--> `);
|
|
1384
|
+
if (PHASE_SAYS[coach().phase] !== void 0) $$renderer.push(`<!--[0--><p>${escape_html(PHASE_SAYS[coach().phase])}</p>`);
|
|
1385
|
+
else $$renderer.push("<!--[-1-->");
|
|
1386
|
+
$$renderer.push(`<!--]-->`);
|
|
1387
|
+
}});
|
|
1388
|
+
}
|
|
1389
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1390
|
+
$$renderer.push(`<!--]-->`);
|
|
1391
|
+
}
|
|
1392
|
+
let $$settled = true;
|
|
1393
|
+
let $$inner_renderer;
|
|
1394
|
+
function $$render_inner($$renderer) {
|
|
1395
|
+
head("u1qv4q", $$renderer, ($$renderer) => {
|
|
1396
|
+
$$renderer.title(($$renderer) => {
|
|
1397
|
+
$$renderer.push(`<title>${escape_html(title())} · Nolzu</title>`);
|
|
1398
|
+
});
|
|
1399
|
+
});
|
|
1400
|
+
$$renderer.push(`<div class="split svelte-u1qv4q"><div class="page svelte-u1qv4q"><div class="title svelte-u1qv4q"><h1 class="svelte-u1qv4q">${escape_html(title())}</h1> `);
|
|
1401
|
+
if (snapshot() !== null) $$renderer.push(`<!--[0--><span class="sub svelte-u1qv4q">${escape_html(boardCount(snapshot(), kind()))}</span>`);
|
|
1402
|
+
else $$renderer.push("<!--[-1-->");
|
|
1403
|
+
$$renderer.push(`<!--]--> <span class="spacer svelte-u1qv4q"></span> `);
|
|
1404
|
+
if (slotMeter() !== null && pips().length > 0) {
|
|
1405
|
+
$$renderer.push(`<!--[0--><span class="slots svelte-u1qv4q" role="group"${attr("aria-label", slotsLine(slotMeter()))} data-slot-meter=""><!--[-->`);
|
|
1406
|
+
const each_array = ensure_array_like(pips());
|
|
1407
|
+
for (let at = 0, $$length = each_array.length; at < $$length; at++) {
|
|
1408
|
+
let pip = each_array[at];
|
|
1409
|
+
if (pip.busy) $$renderer.push(`<!--[0--><button type="button" class="pip svelte-u1qv4q" data-pip="" data-busy="true"${attr("data-tip", pip.label)}${attr("aria-label", pip.label)}${attr("aria-disabled", pip.key === null ? "true" : void 0)}></button>`);
|
|
1410
|
+
else $$renderer.push(`<!--[-1--><span class="pip svelte-u1qv4q" data-pip="" role="img"${attr("aria-label", pip.label)}></span>`);
|
|
1411
|
+
$$renderer.push(`<!--]-->`);
|
|
1412
|
+
}
|
|
1413
|
+
$$renderer.push(`<!--]--></span>`);
|
|
1414
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1415
|
+
$$renderer.push(`<!--]--> `);
|
|
1416
|
+
if (readAgo() !== null) $$renderer.push(`<!--[0--><span class="sub stamp svelte-u1qv4q" data-read-ago="">read ${escape_html(readAgo())} ago</span>`);
|
|
1417
|
+
else $$renderer.push("<!--[-1-->");
|
|
1418
|
+
$$renderer.push(`<!--]--> `);
|
|
1419
|
+
if (pullsAt() !== null) {
|
|
1420
|
+
$$renderer.push("<!--[0-->");
|
|
1421
|
+
Button($$renderer, {
|
|
1422
|
+
key: "P",
|
|
1423
|
+
"aria-busy": reading[kind()] ? "true" : void 0,
|
|
1424
|
+
onclick: readPulls,
|
|
1425
|
+
"data-read-pulls": true,
|
|
1426
|
+
children: ($$renderer) => {
|
|
1427
|
+
$$renderer.push(`<svg class="icon svelte-u1qv4q" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4v11M7 10l5 5 5-5M5 20h14"></path></svg>${escape_html(reading[kind()] ? "Reading pull requests" : "Read pull requests")}`);
|
|
1428
|
+
},
|
|
1429
|
+
$$slots: { default: true }
|
|
1430
|
+
});
|
|
1431
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1432
|
+
$$renderer.push(`<!--]--> <label class="filter svelte-u1qv4q"><svg class="icon svelte-u1qv4q" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg> <input type="search"${attr("value", query)}${attr("placeholder", kind() === "epics" ? "Filter epics" : "Filter cards")}${attr("aria-label", kind() === "epics" ? "Filter epics by key or title" : "Filter cards by key or title")} data-filter="" class="svelte-u1qv4q"/> `);
|
|
1433
|
+
KeyCaps($$renderer, { combos: findKeys });
|
|
1434
|
+
$$renderer.push(`<!----></label> `);
|
|
1435
|
+
if (waiting() !== null) {
|
|
1436
|
+
$$renderer.push("<!--[0-->");
|
|
1437
|
+
WaitingToggle($$renderer, {
|
|
1438
|
+
on: filtered(),
|
|
1439
|
+
count: waiting(),
|
|
1440
|
+
onclick: () => void toggleFilter()
|
|
1441
|
+
});
|
|
1442
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1443
|
+
$$renderer.push(`<!--]--> <span class="seg svelte-u1qv4q" role="group" aria-label="View"><button type="button"${attr("aria-pressed", !listing())} data-view="board" class="svelte-u1qv4q">Board</button> <button type="button"${attr("aria-pressed", listing())} data-view="list" class="svelte-u1qv4q">List</button></span> `);
|
|
1444
|
+
if (!research) {
|
|
1445
|
+
$$renderer.push("<!--[0-->");
|
|
1446
|
+
Button($$renderer, {
|
|
1447
|
+
key: "N",
|
|
1448
|
+
onclick: () => adding = true,
|
|
1449
|
+
children: ($$renderer) => {
|
|
1450
|
+
$$renderer.push(`<svg class="icon svelte-u1qv4q" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"></path></svg>${escape_html(addLabel())}`);
|
|
1451
|
+
},
|
|
1452
|
+
$$slots: { default: true }
|
|
1453
|
+
});
|
|
1454
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1455
|
+
$$renderer.push(`<!--]--></div> `);
|
|
1456
|
+
if (research) {
|
|
1457
|
+
$$renderer.push("<!--[0-->");
|
|
1458
|
+
ResearchAdd($$renderer, {
|
|
1459
|
+
get box() {
|
|
1460
|
+
return researchBox;
|
|
1461
|
+
},
|
|
1462
|
+
set box($$value) {
|
|
1463
|
+
researchBox = $$value;
|
|
1464
|
+
$$settled = false;
|
|
1465
|
+
}
|
|
1466
|
+
});
|
|
1467
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1468
|
+
$$renderer.push(`<!--]--> `);
|
|
1469
|
+
if (pullsAt() !== null) $$renderer.push(`<!--[0--><p class="note svelte-u1qv4q" role="status" data-read-said="">${escape_html(read[kind()] ?? "")}</p>`);
|
|
1470
|
+
else $$renderer.push("<!--[-1-->");
|
|
1471
|
+
$$renderer.push(`<!--]--> `);
|
|
1472
|
+
if (adding && !research) {
|
|
1473
|
+
$$renderer.push(`<!--[0--><!---->`);
|
|
1474
|
+
AddCardDialog($$renderer, {
|
|
1475
|
+
prefix: page.data.prefix ?? "APP",
|
|
1476
|
+
board: kind(),
|
|
1477
|
+
snapshots: snapshot() === null ? [] : [snapshot()],
|
|
1478
|
+
off: page.data.offBoards ?? [],
|
|
1479
|
+
sources: contextSources,
|
|
1480
|
+
next: nextLocalKey,
|
|
1481
|
+
tickets: page.data.tickets ?? "local",
|
|
1482
|
+
onconnect: connectJira,
|
|
1483
|
+
onsubmit: addCard,
|
|
1484
|
+
onclose: addClosed,
|
|
1485
|
+
get draft() {
|
|
1486
|
+
return cardDraft;
|
|
1487
|
+
},
|
|
1488
|
+
set draft($$value) {
|
|
1489
|
+
cardDraft = $$value;
|
|
1490
|
+
$$settled = false;
|
|
1491
|
+
}
|
|
1492
|
+
});
|
|
1493
|
+
$$renderer.push(`<!---->`);
|
|
1494
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1495
|
+
$$renderer.push(`<!--]--> `);
|
|
1496
|
+
if (reconnecting()) $$renderer.push(`<!--[0--><p class="note svelte-u1qv4q" role="status">The board is not answering. Trying again.</p>`);
|
|
1497
|
+
else $$renderer.push("<!--[-1-->");
|
|
1498
|
+
$$renderer.push(`<!--]--> `);
|
|
1499
|
+
if (snapshot() === null) {
|
|
1500
|
+
$$renderer.push("<!--[0-->");
|
|
1501
|
+
if (!reconnecting()) {
|
|
1502
|
+
$$renderer.push(`<!--[0--><div class="first svelte-u1qv4q" aria-busy="true">`);
|
|
1503
|
+
Skeleton($$renderer, {
|
|
1504
|
+
shape: "block",
|
|
1505
|
+
height: "280px",
|
|
1506
|
+
label: "Waiting for the board."
|
|
1507
|
+
});
|
|
1508
|
+
$$renderer.push(`<!----></div>`);
|
|
1509
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1510
|
+
$$renderer.push(`<!--]-->`);
|
|
1511
|
+
} else if (listing()) {
|
|
1512
|
+
$$renderer.push("<!--[1-->");
|
|
1513
|
+
BoardList($$renderer, {
|
|
1514
|
+
cards: listed(),
|
|
1515
|
+
stages: snapshot().stages,
|
|
1516
|
+
tags: tags(),
|
|
1517
|
+
activity: activity(),
|
|
1518
|
+
quietAfterMs: snapshot().quietAfterMs,
|
|
1519
|
+
now,
|
|
1520
|
+
selected,
|
|
1521
|
+
empty: emptyLine()
|
|
1522
|
+
});
|
|
1523
|
+
} else {
|
|
1524
|
+
$$renderer.push("<!--[-1-->");
|
|
1525
|
+
Board($$renderer, {
|
|
1526
|
+
snapshot: snapshot(),
|
|
1527
|
+
activity: activity(),
|
|
1528
|
+
limits: limits(),
|
|
1529
|
+
filtered: filtered(),
|
|
1530
|
+
query,
|
|
1531
|
+
selected,
|
|
1532
|
+
onSelect: (key) => selected = key,
|
|
1533
|
+
drag,
|
|
1534
|
+
allowed: allowed(),
|
|
1535
|
+
onMove: move,
|
|
1536
|
+
aside: coach() === null ? null : {
|
|
1537
|
+
stage: coach().stage,
|
|
1538
|
+
content: firstDrag
|
|
1539
|
+
},
|
|
1540
|
+
onFix: (key) => void writeOn("retry", snapshot()?.cards.find((card) => card.key === key) ?? null),
|
|
1541
|
+
tags: tags(),
|
|
1542
|
+
onDragStart: (key) => drag = startDrag(key),
|
|
1543
|
+
onDragEnter: (stage) => drag = drag === null ? null : enterColumn(drag, stage),
|
|
1544
|
+
onDragLeave: (stage, gone) => drag = drag === null ? null : leaveColumn(drag, stage, gone),
|
|
1545
|
+
onDragEnd: () => drag = null,
|
|
1546
|
+
onRefuse: (said) => {
|
|
1547
|
+
if (drag !== null) toastStack.state = refusedDrop(toastStack.state, {
|
|
1548
|
+
key: drag.key,
|
|
1549
|
+
href: cardHref(drag.key)
|
|
1550
|
+
}, said, fixOf(drag.key, drag.over));
|
|
1551
|
+
drag = null;
|
|
1552
|
+
},
|
|
1553
|
+
get archiveOpen() {
|
|
1554
|
+
return closedOpen;
|
|
1555
|
+
},
|
|
1556
|
+
set archiveOpen($$value) {
|
|
1557
|
+
closedOpen = $$value;
|
|
1558
|
+
$$settled = false;
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
$$renderer.push(`<!--]--> <p class="keys svelte-u1qv4q"><!--[-->`);
|
|
1563
|
+
const each_array_1 = ensure_array_like(hints());
|
|
1564
|
+
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
1565
|
+
let hint = each_array_1[$$index_1];
|
|
1566
|
+
$$renderer.push(`<span class="svelte-u1qv4q">`);
|
|
1567
|
+
KeyCaps($$renderer, {
|
|
1568
|
+
combos: hint.binding.keys,
|
|
1569
|
+
bare: hint.bare
|
|
1570
|
+
});
|
|
1571
|
+
$$renderer.push(`<!---->${escape_html(hint.label)}</span>`);
|
|
1572
|
+
}
|
|
1573
|
+
$$renderer.push(`<!--]--> <span class="all svelte-u1qv4q">`);
|
|
1574
|
+
KeyCaps($$renderer, { combos: helpKeys });
|
|
1575
|
+
$$renderer.push(`<!---->all keys</span></p></div> `);
|
|
1576
|
+
if (peekCard() !== null && snapshot() !== null && board() !== null) {
|
|
1577
|
+
$$renderer.push("<!--[0-->");
|
|
1578
|
+
PeekPanel($$renderer, {
|
|
1579
|
+
card: peekCard(),
|
|
1580
|
+
snapshot: own(peekCard().key) ?? snapshot(),
|
|
1581
|
+
activity: activity()[peekCard().key],
|
|
1582
|
+
onclose: closePeek
|
|
1583
|
+
});
|
|
1584
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1585
|
+
$$renderer.push(`<!--]--></div> `);
|
|
1586
|
+
if (starting !== null && startStage() !== null) {
|
|
1587
|
+
$$renderer.push("<!--[0-->");
|
|
1588
|
+
StartConfirm($$renderer, {
|
|
1589
|
+
title: startFix() !== null ? `Fix ${starting.key}: ${startFix().implement.label}, then ${startFix().qa.label}` : starting.move === null ? `Retry ${starting.key} in ${startStage().label}` : `Move ${starting.key} to ${startStage().label}`,
|
|
1590
|
+
stage: startStage(),
|
|
1591
|
+
then: startFix()?.qa ?? null,
|
|
1592
|
+
limits: limits(),
|
|
1593
|
+
onconfirm: () => {
|
|
1594
|
+
if (starting !== null && startFix() !== null) send(starting.key, fixPath(starting.key), {});
|
|
1595
|
+
else if (starting?.move === null) send(starting.key, retryPath(starting.key), {});
|
|
1596
|
+
else if (starting !== null) move(starting.key, starting.move);
|
|
1597
|
+
},
|
|
1598
|
+
onclose: () => starting = null
|
|
1599
|
+
});
|
|
1600
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1601
|
+
$$renderer.push(`<!--]-->`);
|
|
1602
|
+
}
|
|
1603
|
+
do {
|
|
1604
|
+
$$settled = true;
|
|
1605
|
+
$$inner_renderer = $$renderer.copy();
|
|
1606
|
+
$$render_inner($$inner_renderer);
|
|
1607
|
+
} while (!$$settled);
|
|
1608
|
+
$$renderer.subsume($$inner_renderer);
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
//#endregion
|
|
1612
|
+
//#region src/lib/BoardOff.svelte
|
|
1613
|
+
function BoardOff($$renderer, $$props) {
|
|
1614
|
+
$$renderer.component(($$renderer) => {
|
|
1615
|
+
let { kind } = $$props;
|
|
1616
|
+
const label = derived(() => choiceLabel(kind));
|
|
1617
|
+
head("nx5amy", $$renderer, ($$renderer) => {
|
|
1618
|
+
$$renderer.title(($$renderer) => {
|
|
1619
|
+
$$renderer.push(`<title>${escape_html(label())} · Nolzu</title>`);
|
|
1620
|
+
});
|
|
1621
|
+
});
|
|
1622
|
+
$$renderer.push(`<div class="off svelte-nx5amy"><h1 class="svelte-nx5amy">${escape_html(label())}</h1> <p class="svelte-nx5amy">The ${escape_html(label())} board is off, so the rail does not show it. Its cards stay as they are until it is on again.</p> <p class="svelte-nx5amy"><a${attr("href", `${stringify(resolve("/settings/project"))}#boards`)}>Turn it on in Settings, Project</a></p></div>`);
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
export { BoardPage as B, BoardOff as a };
|
|
1627
|
+
//# sourceMappingURL=BoardOff.js-Dg5-LoR3.js.map
|