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,1241 @@
|
|
|
1
|
+
import { D as DELIVERY_PHASES, g as BOARD_KINDS, p as phaseLabel } from './board.js-BxL3CjB1.js';
|
|
2
|
+
import { e as projectRepos, Z as appAddress, _ as scriptPort, $ as usesPlaywright, h as boardFor, y as policyFor, t as isFolderName, a0 as proposeStart } from './estimate.js-BHTYVTaQ.js';
|
|
3
|
+
import { i as isFakeMode, r as resolveDataDir, b as reposOfCard, g as getSetting, w as writeSetting } from './node.js-Bz2jT5wt.js';
|
|
4
|
+
import './src.js-Cm8RAH_q.js';
|
|
5
|
+
import './src2.js-CV8tsClO.js';
|
|
6
|
+
import { Q as createKeychain, R as runKeychain, D as checkoutRoot, t as checkoutPath, T as cursorRoot, U as worktreesFolder, V as mcpRemotes, W as mcpServers, X as mcpConfigProblem, Y as mcpRunsFolder, Z as restoreCursorMcp, h as commitKnowledgeFiles, g as git, a as gitEnv, w as writablePath, F as wallHere, j as isPlainName } from './src3.js-h9tTEbVb.js';
|
|
7
|
+
import { i as inTurn } from './onboard.js-LBqPOxyU.js';
|
|
8
|
+
import { p as projectName } from './app-header.js-CCflgeEQ.js';
|
|
9
|
+
import { rmSync, readdirSync, mkdirSync, readFileSync, existsSync, writeFileSync, statSync } from 'node:fs';
|
|
10
|
+
import { join, resolve, isAbsolute, sep, dirname } from 'node:path';
|
|
11
|
+
import { tmpdir, homedir } from 'node:os';
|
|
12
|
+
import { createHash } from 'node:crypto';
|
|
13
|
+
import { execFile } from 'node:child_process';
|
|
14
|
+
import { rm } from 'node:fs/promises';
|
|
15
|
+
import { promisify } from 'node:util';
|
|
16
|
+
|
|
17
|
+
//#region ../../packages/runner/src/qa-copy.ts
|
|
18
|
+
function copyAttempts(platform) {
|
|
19
|
+
const plain = {
|
|
20
|
+
method: "plain copy",
|
|
21
|
+
flags: ["-R"]
|
|
22
|
+
};
|
|
23
|
+
if (platform === "darwin") return [{
|
|
24
|
+
method: "APFS clone",
|
|
25
|
+
flags: ["-c", "-R"]
|
|
26
|
+
}, plain];
|
|
27
|
+
if (platform === "linux") return [{
|
|
28
|
+
method: "reflink",
|
|
29
|
+
flags: ["--reflink=always", "-R"]
|
|
30
|
+
}, plain];
|
|
31
|
+
return [plain];
|
|
32
|
+
}
|
|
33
|
+
var runCp = async (args, signal) => {
|
|
34
|
+
await promisify(execFile)("cp", [...args], {
|
|
35
|
+
signal,
|
|
36
|
+
maxBuffer: 1048576
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var inside = (path, folder) => path === folder || path.startsWith(`${folder}/`);
|
|
40
|
+
/**
|
|
41
|
+
* Copies the checkout to `dest`, and says how and how long it took.
|
|
42
|
+
*
|
|
43
|
+
* Each top entry is copied on its own into `dest`, so a skipped folder is never read, and a copy
|
|
44
|
+
* folder that sits inside the checkout is not copied into itself. Whatever an earlier run left at
|
|
45
|
+
* `dest` goes first. A failed copy leaves nothing behind.
|
|
46
|
+
*/
|
|
47
|
+
async function makeQaCopy(checkout, dest, options = {}) {
|
|
48
|
+
const started = Date.now();
|
|
49
|
+
const cp = options.cp ?? runCp;
|
|
50
|
+
const skip = new Set(options.skip ?? []);
|
|
51
|
+
rmSync(dest, {
|
|
52
|
+
recursive: true,
|
|
53
|
+
force: true
|
|
54
|
+
});
|
|
55
|
+
const sources = readdirSync(checkout).map((name) => join(checkout, name)).filter((path) => !skip.has(path) && !inside(dest, path));
|
|
56
|
+
let last = null;
|
|
57
|
+
for (const attempt of copyAttempts(options.platform ?? process.platform)) {
|
|
58
|
+
mkdirSync(dest, { recursive: true });
|
|
59
|
+
try {
|
|
60
|
+
if (sources.length > 0) await cp([
|
|
61
|
+
...attempt.flags,
|
|
62
|
+
...sources,
|
|
63
|
+
dest
|
|
64
|
+
], options.signal);
|
|
65
|
+
return {
|
|
66
|
+
method: attempt.method,
|
|
67
|
+
ms: Date.now() - started
|
|
68
|
+
};
|
|
69
|
+
} catch (error) {
|
|
70
|
+
rmSync(dest, {
|
|
71
|
+
recursive: true,
|
|
72
|
+
force: true
|
|
73
|
+
});
|
|
74
|
+
if (options.signal?.aborted) throw error;
|
|
75
|
+
last = error;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const said = String(last?.stderr ?? "").trim() || last?.message || "no reason given";
|
|
79
|
+
throw new Error(`Nolzu could not copy ${checkout} for QA. ${said}`);
|
|
80
|
+
}
|
|
81
|
+
async function removeQaCopy(dest) {
|
|
82
|
+
await rm(dest, {
|
|
83
|
+
recursive: true,
|
|
84
|
+
force: true,
|
|
85
|
+
maxRetries: 3,
|
|
86
|
+
retryDelay: 100
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function deviceOf(path) {
|
|
90
|
+
for (let at = path;; at = dirname(at)) try {
|
|
91
|
+
return statSync(at).dev;
|
|
92
|
+
} catch {
|
|
93
|
+
if (dirname(at) === at) return -1;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function mountOf(path) {
|
|
97
|
+
const dev = deviceOf(path);
|
|
98
|
+
let at = path;
|
|
99
|
+
while (!existsSync(at)) at = dirname(at);
|
|
100
|
+
while (dirname(at) !== at && deviceOf(dirname(at)) === dev) at = dirname(at);
|
|
101
|
+
return at;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The Nolzu folder that holds QA copies for this checkout.
|
|
105
|
+
*
|
|
106
|
+
* On the checkout's volume, because an APFS clone or a reflink can only be made there, and never in
|
|
107
|
+
* the person's project. The data folder when it shares the volume, which is the usual case. A
|
|
108
|
+
* project on another disk gets a folder at the top of that disk, and the data folder when that one
|
|
109
|
+
* cannot be made, where the plain copy then takes over.
|
|
110
|
+
*/
|
|
111
|
+
function qaCopyRoot(dataDir, checkout) {
|
|
112
|
+
const home = join(dataDir, "qa-copies");
|
|
113
|
+
if (deviceOf(dataDir) === deviceOf(checkout)) return home;
|
|
114
|
+
const there = join(mountOf(checkout), ".nolzu-qa-copies");
|
|
115
|
+
try {
|
|
116
|
+
mkdirSync(there, { recursive: true });
|
|
117
|
+
return there;
|
|
118
|
+
} catch {
|
|
119
|
+
return home;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
var COPY_NAME = /^qa-[A-Za-z0-9_.-]+-[0-9a-f]{8}$/;
|
|
123
|
+
/**
|
|
124
|
+
* Where the QA copy of this card's checkout goes.
|
|
125
|
+
*
|
|
126
|
+
* The same path for every QA run of the card on this checkout, so a resumed session finds the
|
|
127
|
+
* folder it was filed under. The hash of the checkout keeps two projects with the same card key
|
|
128
|
+
* apart.
|
|
129
|
+
*/
|
|
130
|
+
function qaCopyPath(dataDir, checkout, key) {
|
|
131
|
+
const hash = createHash("sha256").update(checkout).digest("hex").slice(0, 8);
|
|
132
|
+
return join(qaCopyRoot(dataDir, checkout), `qa-${key.replace(/[^A-Za-z0-9_.-]/g, "_")}-${hash}`);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Deletes the copies a crash left in this folder, and nothing else in it.
|
|
136
|
+
*
|
|
137
|
+
* Called when Nolzu starts, before any run, so every copy there is one no run uses.
|
|
138
|
+
*/
|
|
139
|
+
function sweepQaCopies(root) {
|
|
140
|
+
let names;
|
|
141
|
+
try {
|
|
142
|
+
names = readdirSync(root);
|
|
143
|
+
} catch {
|
|
144
|
+
return [];
|
|
145
|
+
}
|
|
146
|
+
const old = names.filter((name) => COPY_NAME.test(name)).map((name) => join(root, name));
|
|
147
|
+
for (const path of old) rmSync(path, {
|
|
148
|
+
recursive: true,
|
|
149
|
+
force: true,
|
|
150
|
+
maxRetries: 3,
|
|
151
|
+
retryDelay: 100
|
|
152
|
+
});
|
|
153
|
+
return old;
|
|
154
|
+
}
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/lib/mcp-list.ts
|
|
157
|
+
/**
|
|
158
|
+
* A project's MCP servers, as the shared file in the workspace holds them.
|
|
159
|
+
*
|
|
160
|
+
* The file travels with the workspace through git, so it never holds a secret: an env value or a
|
|
161
|
+
* header marked secret keeps its name here and its value in this machine's keychain. Every entry is
|
|
162
|
+
* read as untrusted, the way `.nolzu/repositories.json` is, and a bad one is named rather than thrown.
|
|
163
|
+
*/
|
|
164
|
+
var MCP_FILE = ".nolzu/mcp-servers.json";
|
|
165
|
+
var RESERVED = /* @__PURE__ */ new Set([
|
|
166
|
+
"HOME",
|
|
167
|
+
"PATH",
|
|
168
|
+
"TMPDIR",
|
|
169
|
+
"TMP",
|
|
170
|
+
"TEMP",
|
|
171
|
+
"USER",
|
|
172
|
+
"LOGNAME",
|
|
173
|
+
"SHELL",
|
|
174
|
+
"PWD",
|
|
175
|
+
"LANG",
|
|
176
|
+
"TERM",
|
|
177
|
+
"NODE_OPTIONS",
|
|
178
|
+
"NODE_EXTRA_CA_CERTS",
|
|
179
|
+
"SSL_CERT_FILE",
|
|
180
|
+
"LD_PRELOAD",
|
|
181
|
+
"LD_LIBRARY_PATH",
|
|
182
|
+
"DYLD_INSERT_LIBRARIES",
|
|
183
|
+
"DYLD_LIBRARY_PATH",
|
|
184
|
+
"HTTP_PROXY",
|
|
185
|
+
"HTTPS_PROXY",
|
|
186
|
+
"NO_PROXY",
|
|
187
|
+
"ALL_PROXY",
|
|
188
|
+
"XDG_CONFIG_HOME",
|
|
189
|
+
"XDG_DATA_HOME",
|
|
190
|
+
"XDG_CACHE_HOME",
|
|
191
|
+
"OPENAI_API_KEY",
|
|
192
|
+
"OPENAI_BASE_URL",
|
|
193
|
+
"ANTHROPIC_API_KEY",
|
|
194
|
+
"ANTHROPIC_BASE_URL",
|
|
195
|
+
"CLAUDE_CONFIG_DIR",
|
|
196
|
+
"CURSOR_CONFIG_DIR",
|
|
197
|
+
"CURSOR_API_KEY"
|
|
198
|
+
]);
|
|
199
|
+
var reservedName = (name) => RESERVED.has(name.toUpperCase()) || /^(CODEX|NOLZU)_/i.test(name);
|
|
200
|
+
var SERVER_NAME = /^[A-Za-z0-9_][A-Za-z0-9_-]{0,63}$/;
|
|
201
|
+
var ENV_NAME = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
202
|
+
var HEADER_NAME = /^[A-Za-z0-9-]+$/;
|
|
203
|
+
var TOOL_NAME = /^[A-Za-z0-9_][A-Za-z0-9_-]{0,63}$/;
|
|
204
|
+
var PLAIN = /^[^\n\r\0]*$/;
|
|
205
|
+
var emptyEntry = () => ({
|
|
206
|
+
name: "",
|
|
207
|
+
description: "",
|
|
208
|
+
kind: "local",
|
|
209
|
+
command: "",
|
|
210
|
+
args: [],
|
|
211
|
+
cwd: "",
|
|
212
|
+
url: "",
|
|
213
|
+
transport: "http",
|
|
214
|
+
env: [],
|
|
215
|
+
headers: [],
|
|
216
|
+
tools: [],
|
|
217
|
+
phases: []
|
|
218
|
+
});
|
|
219
|
+
var strings = (value) => Array.isArray(value) ? value.filter((one) => typeof one === "string") : [];
|
|
220
|
+
var text = (value) => typeof value === "string" ? value : "";
|
|
221
|
+
function values(raw, leaked) {
|
|
222
|
+
if (!Array.isArray(raw)) return [];
|
|
223
|
+
return raw.flatMap((row) => {
|
|
224
|
+
if (typeof row !== "object" || row === null) return [];
|
|
225
|
+
const { name, secret, value } = row;
|
|
226
|
+
if (typeof name !== "string") return [];
|
|
227
|
+
if (secret === true && value !== void 0) leaked.push(name);
|
|
228
|
+
return secret === true ? [{
|
|
229
|
+
name,
|
|
230
|
+
secret: true
|
|
231
|
+
}] : [{
|
|
232
|
+
name,
|
|
233
|
+
secret: false,
|
|
234
|
+
value: text(value)
|
|
235
|
+
}];
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
var KNOWN = /* @__PURE__ */ new Set([
|
|
239
|
+
"name",
|
|
240
|
+
"description",
|
|
241
|
+
"kind",
|
|
242
|
+
"command",
|
|
243
|
+
"args",
|
|
244
|
+
"cwd",
|
|
245
|
+
"url",
|
|
246
|
+
"transport",
|
|
247
|
+
"env",
|
|
248
|
+
"headers",
|
|
249
|
+
"tools",
|
|
250
|
+
"phases"
|
|
251
|
+
]);
|
|
252
|
+
function entryOf(row, leaked) {
|
|
253
|
+
const kind = row.kind === "remote" ? "remote" : "local";
|
|
254
|
+
const extra = Object.fromEntries(Object.entries(row).filter(([key]) => !KNOWN.has(key)));
|
|
255
|
+
return {
|
|
256
|
+
...emptyEntry(),
|
|
257
|
+
name: text(row.name),
|
|
258
|
+
description: text(row.description),
|
|
259
|
+
kind,
|
|
260
|
+
command: text(row.command),
|
|
261
|
+
args: strings(row.args),
|
|
262
|
+
cwd: text(row.cwd),
|
|
263
|
+
url: text(row.url),
|
|
264
|
+
transport: row.transport === "sse" ? "sse" : "http",
|
|
265
|
+
env: values(row.env, leaked),
|
|
266
|
+
headers: kind === "remote" ? values(row.headers, leaked) : [],
|
|
267
|
+
tools: strings(row.tools),
|
|
268
|
+
phases: strings(row.phases),
|
|
269
|
+
...Object.keys(extra).length === 0 ? {} : { extra }
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
/** The servers of the file, and one sentence for each entry left out. No file is no server. */
|
|
273
|
+
function parseMcpList(file) {
|
|
274
|
+
const none = (broken) => ({
|
|
275
|
+
servers: [],
|
|
276
|
+
problems: broken === null ? [] : [broken],
|
|
277
|
+
broken,
|
|
278
|
+
rest: {
|
|
279
|
+
top: {},
|
|
280
|
+
kept: []
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
if (file === null) return none(null);
|
|
284
|
+
if (/^(<{7}|={7}|>{7})( |$)/m.test(file)) return none(`${MCP_FILE} holds a git conflict, so Nolzu reads no server from it and writes nothing to it. Settle the conflict in the file and commit it.`);
|
|
285
|
+
let parsed;
|
|
286
|
+
try {
|
|
287
|
+
parsed = JSON.parse(file);
|
|
288
|
+
} catch {
|
|
289
|
+
return none(`${MCP_FILE} is not JSON, so Nolzu reads no server from it and writes nothing to it. Fix the file or delete it.`);
|
|
290
|
+
}
|
|
291
|
+
const list = typeof parsed === "object" && parsed !== null ? parsed.servers : void 0;
|
|
292
|
+
if (!Array.isArray(list)) return none(`${MCP_FILE} has no list of servers, so Nolzu reads no server from it and writes nothing to it. Fix the file or delete it.`);
|
|
293
|
+
const top = Object.fromEntries(Object.entries(parsed).filter(([key]) => key !== "servers"));
|
|
294
|
+
const servers = [];
|
|
295
|
+
const problems = [];
|
|
296
|
+
const kept = [];
|
|
297
|
+
for (const [index, row] of list.entries()) {
|
|
298
|
+
if (typeof row !== "object" || row === null || Array.isArray(row)) {
|
|
299
|
+
problems.push(`Entry ${index + 1} of ${MCP_FILE} is not a server. Nolzu keeps it in the file as it is.`);
|
|
300
|
+
kept.push(row);
|
|
301
|
+
continue;
|
|
302
|
+
}
|
|
303
|
+
const leaked = [];
|
|
304
|
+
const entry = entryOf(row, leaked);
|
|
305
|
+
const problem = entryProblem(entry, servers);
|
|
306
|
+
if (problem !== null) {
|
|
307
|
+
problems.push(`Entry ${index + 1} of ${MCP_FILE} is left out and kept in the file as it is. ${problem}`);
|
|
308
|
+
kept.push(row);
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
servers.push(entry);
|
|
312
|
+
for (const name of leaked) problems.push(`${MCP_FILE} holds a value for the secret ${name} of ${entry.name}, which every teammate gets with the file. Nolzu ignores it and leaves it out of the next save; change that secret where it was issued.`);
|
|
313
|
+
}
|
|
314
|
+
return {
|
|
315
|
+
servers,
|
|
316
|
+
problems,
|
|
317
|
+
broken: null,
|
|
318
|
+
rest: {
|
|
319
|
+
top,
|
|
320
|
+
kept
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
var valueRows = (list) => list.map((one) => one.secret ? {
|
|
325
|
+
name: one.name,
|
|
326
|
+
secret: true
|
|
327
|
+
} : {
|
|
328
|
+
name: one.name,
|
|
329
|
+
value: one.value ?? ""
|
|
330
|
+
});
|
|
331
|
+
/** The file for these servers, with what the file held besides them. A secret value is never written. */
|
|
332
|
+
function mcpListText(servers, rest = {
|
|
333
|
+
top: {},
|
|
334
|
+
kept: []
|
|
335
|
+
}) {
|
|
336
|
+
const rows = servers.map((entry) => ({
|
|
337
|
+
...entry.extra,
|
|
338
|
+
name: entry.name,
|
|
339
|
+
...entry.description === "" ? {} : { description: entry.description },
|
|
340
|
+
kind: entry.kind,
|
|
341
|
+
...entry.kind === "local" ? {
|
|
342
|
+
command: entry.command,
|
|
343
|
+
args: entry.args,
|
|
344
|
+
...entry.cwd === "" ? {} : { cwd: entry.cwd }
|
|
345
|
+
} : {
|
|
346
|
+
url: entry.url,
|
|
347
|
+
transport: entry.transport,
|
|
348
|
+
headers: valueRows(entry.headers)
|
|
349
|
+
},
|
|
350
|
+
env: valueRows(entry.env),
|
|
351
|
+
tools: entry.tools,
|
|
352
|
+
phases: entry.phases
|
|
353
|
+
}));
|
|
354
|
+
return `${JSON.stringify({
|
|
355
|
+
...rest.top,
|
|
356
|
+
servers: [...rows, ...rest.kept]
|
|
357
|
+
}, null, 2)}\n`;
|
|
358
|
+
}
|
|
359
|
+
function valuesProblem(list, what, pattern) {
|
|
360
|
+
const seen = /* @__PURE__ */ new Set();
|
|
361
|
+
for (const one of list) {
|
|
362
|
+
if (!pattern.test(one.name)) return `The ${what} name ${JSON.stringify(one.name)} holds a character a config cannot take.`;
|
|
363
|
+
const key = one.name.toLowerCase();
|
|
364
|
+
if (seen.has(key)) return `The ${what} ${one.name} is there twice.`;
|
|
365
|
+
seen.add(key);
|
|
366
|
+
if (!one.secret && !PLAIN.test(one.value ?? "")) return `The ${what} ${one.name} holds a line break.`;
|
|
367
|
+
if (one.secret && what === "variable" && reservedName(one.name)) return `${one.name} cannot be a secret, because an engine reads it for itself too. Make it plain.`;
|
|
368
|
+
}
|
|
369
|
+
return null;
|
|
370
|
+
}
|
|
371
|
+
/** Why an entry cannot be kept, or null. `others` are the servers it sits beside. */
|
|
372
|
+
function entryProblem(entry, others) {
|
|
373
|
+
if (!SERVER_NAME.test(entry.name)) return "A server name holds letters, digits, - and _ only, at most 64 of them, and does not start with -.";
|
|
374
|
+
if (others.some((other) => other.name.toLowerCase() === entry.name.toLowerCase())) return `There is a server named ${entry.name} already.`;
|
|
375
|
+
if (!PLAIN.test(entry.description) || entry.description.length > 200) return "A description is one line of at most 200 characters.";
|
|
376
|
+
if (entry.kind === "local") {
|
|
377
|
+
if (entry.command.trim() === "") return `${entry.name} has no command to start.`;
|
|
378
|
+
if (entry.command.startsWith("-")) return `The command of ${entry.name} starts with a dash, which reads as an option.`;
|
|
379
|
+
if (![
|
|
380
|
+
entry.command,
|
|
381
|
+
entry.cwd,
|
|
382
|
+
...entry.args
|
|
383
|
+
].every((one) => PLAIN.test(one))) return `The command of ${entry.name} holds a line break.`;
|
|
384
|
+
} else {
|
|
385
|
+
let url;
|
|
386
|
+
try {
|
|
387
|
+
url = new URL(entry.url);
|
|
388
|
+
} catch {
|
|
389
|
+
return `${entry.name} needs a full address, such as https://mcp.example.com/mcp.`;
|
|
390
|
+
}
|
|
391
|
+
if (url.protocol !== "https:" && !(url.protocol === "http:" && [
|
|
392
|
+
"localhost",
|
|
393
|
+
"127.0.0.1",
|
|
394
|
+
"[::1]"
|
|
395
|
+
].includes(url.hostname))) return `The address of ${entry.name} starts with https://, or http:// for this machine only.`;
|
|
396
|
+
if (url.username !== "" || url.password !== "") return `The address of ${entry.name} holds a user name or a password. Put the login in a secret header instead.`;
|
|
397
|
+
}
|
|
398
|
+
const problem = valuesProblem(entry.env, "variable", ENV_NAME) ?? valuesProblem(entry.headers, "header", HEADER_NAME);
|
|
399
|
+
if (problem !== null) return problem;
|
|
400
|
+
const bad = entry.tools.find((tool) => !TOOL_NAME.test(tool));
|
|
401
|
+
if (bad !== void 0) return `The tool name ${JSON.stringify(bad)} holds a character a tool name cannot have.`;
|
|
402
|
+
const phase = entry.phases.find((one) => !DELIVERY_PHASES.includes(one));
|
|
403
|
+
if (phase !== void 0) return `There is no phase ${JSON.stringify(phase)}.`;
|
|
404
|
+
return null;
|
|
405
|
+
}
|
|
406
|
+
var secretKeysOf = (entry) => [...entry.env.filter((one) => one.secret).map((one) => ({
|
|
407
|
+
where: "env",
|
|
408
|
+
name: one.name
|
|
409
|
+
})), ...entry.headers.filter((one) => one.secret).map((one) => ({
|
|
410
|
+
where: "header",
|
|
411
|
+
name: one.name
|
|
412
|
+
}))];
|
|
413
|
+
/**
|
|
414
|
+
* The columns of the grid: each phase of the boards that are on, once, in board order. Feedback is a
|
|
415
|
+
* stage of no board and runs from a Delivery card, which is always on.
|
|
416
|
+
*/
|
|
417
|
+
function gridPhases(offBoards) {
|
|
418
|
+
const on = BOARD_KINDS.filter((kind) => kind === "delivery" || !offBoards.includes(kind));
|
|
419
|
+
const phases = new Set(on.flatMap((kind) => boardFor(kind).stages.flatMap((stage) => stage.phase === void 0 ? [] : [stage.phase])));
|
|
420
|
+
phases.add("feedback");
|
|
421
|
+
return DELIVERY_PHASES.filter((phase) => phases.has(phase)).map((phase) => ({
|
|
422
|
+
phase,
|
|
423
|
+
label: phaseLabel(phase),
|
|
424
|
+
readOnly: policyFor(phase).readOnly
|
|
425
|
+
}));
|
|
426
|
+
}
|
|
427
|
+
var LOGIN_KEYS = /^(api[-_]?key|key|token|access[-_]?token|auth|secret|password|pass|sig|signature|client[-_]?secret)$/i;
|
|
428
|
+
/** A sentence when a remote server's address holds a key that looks like a login, or null. */
|
|
429
|
+
function urlWarning(entry) {
|
|
430
|
+
if (entry.kind !== "remote") return null;
|
|
431
|
+
try {
|
|
432
|
+
const found = [...new URL(entry.url).searchParams.keys()].find((key) => LOGIN_KEYS.test(key));
|
|
433
|
+
return found === void 0 ? null : `The address of ${entry.name} holds ${found}=, which looks like a login and goes to every teammate with the file. Move it into a secret header if the server takes one.`;
|
|
434
|
+
} catch {
|
|
435
|
+
return null;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
/** The read-only phases a server with no tool list is on for. Its tools may change things outside the wall there. */
|
|
439
|
+
var unlimitedReadOnly = (entry) => entry.tools.length > 0 ? [] : entry.phases.filter((phase) => policyFor(phase).readOnly);
|
|
440
|
+
/** The servers a run of this phase is handed, as the file lists them. */
|
|
441
|
+
var serversFor = (servers, phase) => servers.filter((entry) => entry.phases.includes(phase));
|
|
442
|
+
//#endregion
|
|
443
|
+
//#region src/lib/mcp-store.ts
|
|
444
|
+
/**
|
|
445
|
+
* The project's MCP servers on disk: the shared file in the workspace, committed there on each change
|
|
446
|
+
* so a teammate gets it with git, and the secrets in this machine's keychain, which each teammate
|
|
447
|
+
* enters on their own machine.
|
|
448
|
+
*/
|
|
449
|
+
var readText = (path) => {
|
|
450
|
+
try {
|
|
451
|
+
return readFileSync(path, "utf8");
|
|
452
|
+
} catch {
|
|
453
|
+
return null;
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
/** The servers of a project folder. A link where the file should be is read as no file, with a sentence. */
|
|
457
|
+
function readMcpList(project) {
|
|
458
|
+
if (project === null) return parseMcpList(null);
|
|
459
|
+
const path = writablePath(project, MCP_FILE);
|
|
460
|
+
if (path === null) {
|
|
461
|
+
const broken = `${MCP_FILE} is a link or sits in a linked folder, so Nolzu reads no server from it and writes nothing to it.`;
|
|
462
|
+
return {
|
|
463
|
+
...parseMcpList(null),
|
|
464
|
+
problems: [broken],
|
|
465
|
+
broken
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
return parseMcpList(readText(path));
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Writes the list, or says why it could not. The file is read again first: what it holds besides the
|
|
472
|
+
* servers goes back in as it was, and a file Nolzu cannot read at all is never written over.
|
|
473
|
+
*/
|
|
474
|
+
function writeMcpList(project, servers) {
|
|
475
|
+
if (project === null) return "This project has no folder, so there is nowhere to keep the list.";
|
|
476
|
+
const path = writablePath(project, MCP_FILE);
|
|
477
|
+
if (path === null) return `${MCP_FILE} is a link or sits in a linked folder, so Nolzu did not write it.`;
|
|
478
|
+
if (!existsSync(project)) return `The project folder ${project} is not there, so Nolzu did not write ${MCP_FILE}.`;
|
|
479
|
+
const now = parseMcpList(readText(path));
|
|
480
|
+
if (now.broken !== null) return now.broken;
|
|
481
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
482
|
+
writeFileSync(path, mcpListText(servers, now.rest));
|
|
483
|
+
return null;
|
|
484
|
+
}
|
|
485
|
+
async function ownRepository(project, run) {
|
|
486
|
+
const top = await run(["rev-parse", "--show-prefix"]);
|
|
487
|
+
return top.code === 0 && top.stdout.trim() === "";
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Why the list on disk must not be committed, or null. Anything Nolzu could not read cleanly counts: a
|
|
491
|
+
* file it cannot parse, a row it left out, a secret value written into it, an address with a login.
|
|
492
|
+
*/
|
|
493
|
+
function commitProblem(project) {
|
|
494
|
+
const list = readMcpList(project);
|
|
495
|
+
const why = list.broken ?? list.problems[0] ?? list.servers.map(urlWarning).find((warning) => warning !== null) ?? null;
|
|
496
|
+
return why === null ? null : `${MCP_FILE} is not committed, so your team does not get this change: ${why}`;
|
|
497
|
+
}
|
|
498
|
+
async function repositoryBusy(run) {
|
|
499
|
+
if ((await run([
|
|
500
|
+
"symbolic-ref",
|
|
501
|
+
"-q",
|
|
502
|
+
"HEAD"
|
|
503
|
+
])).code !== 0) return "the project repository is on no branch (a detached HEAD). Check out a branch, then save again.";
|
|
504
|
+
for (const [name, what] of [
|
|
505
|
+
["MERGE_HEAD", "a merge"],
|
|
506
|
+
["rebase-merge", "a rebase"],
|
|
507
|
+
["rebase-apply", "a rebase"],
|
|
508
|
+
["CHERRY_PICK_HEAD", "a cherry-pick"]
|
|
509
|
+
]) {
|
|
510
|
+
const at = (await run([
|
|
511
|
+
"rev-parse",
|
|
512
|
+
"--git-path",
|
|
513
|
+
name
|
|
514
|
+
])).stdout.trim();
|
|
515
|
+
if (at !== "" && existsSync(isAbsolute(at) ? at : join(await gitTop(run), at))) return `the project repository is in the middle of ${what}. Finish it, then save again.`;
|
|
516
|
+
}
|
|
517
|
+
return null;
|
|
518
|
+
}
|
|
519
|
+
var gitTop = async (run) => (await run(["rev-parse", "--show-toplevel"])).stdout.trim();
|
|
520
|
+
/**
|
|
521
|
+
* Commits the list in the project folder's own repository, so a teammate who pulls the workspace gets
|
|
522
|
+
* it, the way the list of clones (`recordInRoot`) and the knowledge are committed. Only the file goes
|
|
523
|
+
* into the commit. A project folder outside git has nothing to commit to, which the page says, and a
|
|
524
|
+
* file with no change is left alone. The sentence a refused commit gets, or null.
|
|
525
|
+
*/
|
|
526
|
+
function commitMcpList(project, env = process.env) {
|
|
527
|
+
if (project === null) return Promise.resolve(null);
|
|
528
|
+
return inTurn(project, async () => {
|
|
529
|
+
const run = (args) => git(args, {
|
|
530
|
+
cwd: project,
|
|
531
|
+
env: gitEnv(env)
|
|
532
|
+
});
|
|
533
|
+
if (!await ownRepository(project, run)) return null;
|
|
534
|
+
const changed = await run([
|
|
535
|
+
"status",
|
|
536
|
+
"--porcelain",
|
|
537
|
+
"--",
|
|
538
|
+
MCP_FILE
|
|
539
|
+
]);
|
|
540
|
+
if (changed.code !== 0 || changed.stdout.trim() === "") return null;
|
|
541
|
+
const unsafe = commitProblem(project);
|
|
542
|
+
if (unsafe !== null) return unsafe;
|
|
543
|
+
const busy = await repositoryBusy(run);
|
|
544
|
+
if (busy !== null) return `${MCP_FILE} is not committed: ${busy}`;
|
|
545
|
+
try {
|
|
546
|
+
await commitKnowledgeFiles(run, "chore: update the MCP servers", [MCP_FILE]);
|
|
547
|
+
return null;
|
|
548
|
+
} catch (error) {
|
|
549
|
+
return `${MCP_FILE} is saved, but git could not commit it. ${error.message}`;
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
var COMMIT_QUIET_MS = 3e3;
|
|
554
|
+
var soon = /* @__PURE__ */ new Map();
|
|
555
|
+
/** `commitMcpList` once the clicks stop for a moment. A failure stays as a changed file to commit. */
|
|
556
|
+
function commitMcpListSoon(project, env = process.env, waitMs = COMMIT_QUIET_MS) {
|
|
557
|
+
if (project === null) return;
|
|
558
|
+
clearTimeout(soon.get(project));
|
|
559
|
+
const timer = setTimeout(() => {
|
|
560
|
+
soon.delete(project);
|
|
561
|
+
commitMcpList(project, env).catch(() => void 0);
|
|
562
|
+
}, waitMs);
|
|
563
|
+
timer.unref();
|
|
564
|
+
soon.set(project, timer);
|
|
565
|
+
}
|
|
566
|
+
/** Commits a waiting burst of grid clicks now, as a loop that closes does. Null with none waiting. */
|
|
567
|
+
function flushMcpCommit(project, env = process.env) {
|
|
568
|
+
if (project === null || !soon.has(project)) return null;
|
|
569
|
+
clearTimeout(soon.get(project));
|
|
570
|
+
soon.delete(project);
|
|
571
|
+
return commitMcpList(project, env).catch(() => null);
|
|
572
|
+
}
|
|
573
|
+
/** Whether the list has changes git has not committed, which the page says. */
|
|
574
|
+
async function listUncommitted(project, env = process.env) {
|
|
575
|
+
if (project === null) return false;
|
|
576
|
+
const run = (args) => git(args, {
|
|
577
|
+
cwd: project,
|
|
578
|
+
env: gitEnv(env)
|
|
579
|
+
});
|
|
580
|
+
if (!await ownRepository(project, run)) return false;
|
|
581
|
+
const changed = await run([
|
|
582
|
+
"status",
|
|
583
|
+
"--porcelain",
|
|
584
|
+
"--",
|
|
585
|
+
MCP_FILE
|
|
586
|
+
]);
|
|
587
|
+
return changed.code === 0 && changed.stdout.trim() !== "";
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* Whether the list reaches the team: false for a project folder that is not its own repository, and
|
|
591
|
+
* for a list the person's own git ignore rules leave out.
|
|
592
|
+
*/
|
|
593
|
+
async function listShared(project, env = process.env) {
|
|
594
|
+
if (project === null) return false;
|
|
595
|
+
const run = (args) => git(args, {
|
|
596
|
+
cwd: project,
|
|
597
|
+
env: gitEnv(env)
|
|
598
|
+
});
|
|
599
|
+
if (!await ownRepository(project, run)) return false;
|
|
600
|
+
return (await run([
|
|
601
|
+
"check-ignore",
|
|
602
|
+
"-q",
|
|
603
|
+
"--",
|
|
604
|
+
MCP_FILE
|
|
605
|
+
])).code !== 0;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* The keychain name of one secret: per project, server and key, as a hash, because a keychain name
|
|
609
|
+
* holds lower case letters, digits and dashes only. The project is its id in the machine's registry,
|
|
610
|
+
* not its folder, so a project that moves keeps its secrets. The keychain adds the data folder's tag.
|
|
611
|
+
*
|
|
612
|
+
* The server's address, or its command, arguments and folder, and its plain values are in it too. The list is a committed
|
|
613
|
+
* file, so a pull can change where a server of the same name points, and the secret then stays behind:
|
|
614
|
+
* the run says it is missing instead of sending it there. An edit on Settings moves it along.
|
|
615
|
+
*/
|
|
616
|
+
var secretName = (projectId, server, key) => {
|
|
617
|
+
const target = server.kind === "remote" ? [server.url] : [
|
|
618
|
+
server.command,
|
|
619
|
+
...server.args,
|
|
620
|
+
server.cwd
|
|
621
|
+
];
|
|
622
|
+
const plain = [...server.env, ...server.headers].filter((one) => !one.secret).map((one) => `${one.name}=${one.value ?? ""}`);
|
|
623
|
+
return `mcp-${createHash("sha256").update([
|
|
624
|
+
String(projectId),
|
|
625
|
+
server.name,
|
|
626
|
+
...target,
|
|
627
|
+
...plain,
|
|
628
|
+
key.where,
|
|
629
|
+
key.name
|
|
630
|
+
].join("\0")).digest("hex").slice(0, 32)}`;
|
|
631
|
+
};
|
|
632
|
+
/**
|
|
633
|
+
* The keychain the app uses for MCP secrets. The fake engine gets one in memory, so a test run or a
|
|
634
|
+
* demo never writes the machine's keychain.
|
|
635
|
+
*/
|
|
636
|
+
var fakeKeychain = /* @__PURE__ */ new Map();
|
|
637
|
+
function appKeychain(env = process.env) {
|
|
638
|
+
if (isFakeMode(env)) return {
|
|
639
|
+
read: async (name) => fakeKeychain.get(name) ?? null,
|
|
640
|
+
write: async (name, secret) => void fakeKeychain.set(name, secret),
|
|
641
|
+
remove: async (name) => void fakeKeychain.delete(name)
|
|
642
|
+
};
|
|
643
|
+
return createKeychain(process.platform, runKeychain, resolveDataDir(env));
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* The secrets each server lacks on this machine, by server. A server with all of them is not listed. A
|
|
647
|
+
* keychain that cannot be read counts as lacking, which is what a run would meet.
|
|
648
|
+
*/
|
|
649
|
+
async function missingSecrets(projectId, servers, keychain) {
|
|
650
|
+
const missing = {};
|
|
651
|
+
for (const entry of servers) for (const key of secretKeysOf(entry)) if (await keychain.read(secretName(projectId, entry, key)).catch(() => null) === null) (missing[entry.name] ??= []).push(key);
|
|
652
|
+
return missing;
|
|
653
|
+
}
|
|
654
|
+
/** Takes every secret of a server off the keychain, as a delete of the server does. */
|
|
655
|
+
async function removeSecrets(projectId, entry, keychain) {
|
|
656
|
+
for (const key of secretKeysOf(entry)) await keychain.remove(secretName(projectId, entry, key));
|
|
657
|
+
}
|
|
658
|
+
var BROWSER_NAME = "playwright";
|
|
659
|
+
var TMP_TOKEN = "{tmp}";
|
|
660
|
+
var browserEntry = () => ({
|
|
661
|
+
...emptyEntry(),
|
|
662
|
+
name: BROWSER_NAME,
|
|
663
|
+
description: "Google Chrome for QA, set up by Nolzu.",
|
|
664
|
+
command: "npx",
|
|
665
|
+
args: [
|
|
666
|
+
"@playwright/mcp@latest",
|
|
667
|
+
"--headless",
|
|
668
|
+
"--no-sandbox",
|
|
669
|
+
"--allow-unrestricted-file-access"
|
|
670
|
+
],
|
|
671
|
+
env: [{
|
|
672
|
+
name: "HOME",
|
|
673
|
+
secret: false,
|
|
674
|
+
value: `${TMP_TOKEN}/nolzu-browser-home`
|
|
675
|
+
}],
|
|
676
|
+
phases: ["qa"]
|
|
677
|
+
});
|
|
678
|
+
/** The servers a QA run gets, by name: what the QA browser row shows. */
|
|
679
|
+
var qaServers = (project) => serversFor(readMcpList(project).servers, "qa").map((entry) => entry.name);
|
|
680
|
+
/** Whether QA has the browser: Nolzu's browser server on for QA, or a QA browser path not moved yet. */
|
|
681
|
+
var qaHasBrowser = (db) => getSetting(db, "qaMcpConfigPath") !== null || qaServers(getSetting(db, "projectPath")).includes("playwright");
|
|
682
|
+
/**
|
|
683
|
+
* Moves the QA browser of the old per-project setting into the list, once, as servers on for QA only.
|
|
684
|
+
*
|
|
685
|
+
* Every entry is checked like a typed one first; one that does not pass stops the move with its
|
|
686
|
+
* sentence, and the old setting goes on giving QA its browser (`runMcp` reads it) until the move
|
|
687
|
+
* succeeds. Nolzu's own config becomes `browserEntry`. Every env value and header of a config of the
|
|
688
|
+
* person's own counts as a secret, because that file stayed on this machine and the list goes to
|
|
689
|
+
* teammates, except an env name an engine reads for itself, which stays plain. A secret the keychain
|
|
690
|
+
* refuses does not stop the move: the server comes in and shows "Needs secret". The setting is cleared
|
|
691
|
+
* last. A server of the same name already in the list is kept as it is. Null when done or when there
|
|
692
|
+
* was nothing to move.
|
|
693
|
+
*/
|
|
694
|
+
async function migrateQaBrowser(db, projectId, keychain, own) {
|
|
695
|
+
const path = getSetting(db, "qaMcpConfigPath");
|
|
696
|
+
const project = getSetting(db, "projectPath");
|
|
697
|
+
if (path === null || project === null) return null;
|
|
698
|
+
const notMoved = (why) => `The QA browser at ${path} is not moved to Settings, MCP servers yet, and QA still uses it from there. ${why}`;
|
|
699
|
+
const gone = mcpConfigProblem(path);
|
|
700
|
+
if (gone !== null) return `The QA browser at ${path} is not moved to Settings, MCP servers, and QA runs are refused until it is. ${gone}`;
|
|
701
|
+
let raw;
|
|
702
|
+
try {
|
|
703
|
+
const read = JSON.parse(readFileSync(path, "utf8")).mcpServers;
|
|
704
|
+
raw = typeof read === "object" && read !== null ? read : {};
|
|
705
|
+
} catch {
|
|
706
|
+
return notMoved("The file cannot be read as JSON. Fix it, or turn the browser off on Settings, Project.");
|
|
707
|
+
}
|
|
708
|
+
const list = readMcpList(project);
|
|
709
|
+
if (list.broken !== null) return notMoved(list.broken);
|
|
710
|
+
const added = [];
|
|
711
|
+
const secrets = [];
|
|
712
|
+
const pairs = (value) => typeof value === "object" && value !== null ? Object.entries(value).map(([name, one]) => [name, String(one)]) : [];
|
|
713
|
+
for (const [name, server] of Object.entries(raw)) {
|
|
714
|
+
if ([...list.servers, ...added].some((entry) => entry.name.toLowerCase() === name.toLowerCase())) continue;
|
|
715
|
+
if (path === own && name === "playwright") {
|
|
716
|
+
added.push(browserEntry());
|
|
717
|
+
continue;
|
|
718
|
+
}
|
|
719
|
+
const remote = typeof server?.url === "string" && typeof server.command !== "string";
|
|
720
|
+
const env = pairs(server?.env);
|
|
721
|
+
const headers = remote ? pairs(server?.headers) : [];
|
|
722
|
+
const entry = {
|
|
723
|
+
...emptyEntry(),
|
|
724
|
+
name,
|
|
725
|
+
kind: remote ? "remote" : "local",
|
|
726
|
+
command: typeof server?.command === "string" ? server.command : "",
|
|
727
|
+
args: Array.isArray(server?.args) ? server.args.map(String) : [],
|
|
728
|
+
url: remote ? String(server.url) : "",
|
|
729
|
+
transport: server?.type === "sse" ? "sse" : "http",
|
|
730
|
+
env: env.map(([key, value]) => reservedName(key) ? {
|
|
731
|
+
name: key,
|
|
732
|
+
secret: false,
|
|
733
|
+
value
|
|
734
|
+
} : {
|
|
735
|
+
name: key,
|
|
736
|
+
secret: true
|
|
737
|
+
}),
|
|
738
|
+
headers: headers.map(([key]) => ({
|
|
739
|
+
name: key,
|
|
740
|
+
secret: true
|
|
741
|
+
})),
|
|
742
|
+
phases: ["qa"]
|
|
743
|
+
};
|
|
744
|
+
const problem = entryProblem(entry, [...list.servers, ...added]) ?? urlWarning(entry);
|
|
745
|
+
if (problem !== null) return notMoved(problem);
|
|
746
|
+
added.push(entry);
|
|
747
|
+
secrets.push(...env.filter(([key]) => !reservedName(key)).map(([key, value]) => ({
|
|
748
|
+
entry,
|
|
749
|
+
key: {
|
|
750
|
+
where: "env",
|
|
751
|
+
name: key
|
|
752
|
+
},
|
|
753
|
+
value
|
|
754
|
+
})));
|
|
755
|
+
secrets.push(...headers.map(([key, value]) => ({
|
|
756
|
+
entry,
|
|
757
|
+
key: {
|
|
758
|
+
where: "header",
|
|
759
|
+
name: key
|
|
760
|
+
},
|
|
761
|
+
value
|
|
762
|
+
})));
|
|
763
|
+
}
|
|
764
|
+
for (const { entry, key, value } of secrets) await keychain.write(secretName(projectId, entry, key), value).catch(() => void 0);
|
|
765
|
+
const fresh = readMcpList(project);
|
|
766
|
+
if (fresh.broken !== null) return notMoved(fresh.broken);
|
|
767
|
+
const still = added.filter((entry) => !fresh.servers.some((one) => one.name.toLowerCase() === entry.name.toLowerCase()));
|
|
768
|
+
const problem = still.length === 0 ? null : writeMcpList(project, [...fresh.servers, ...still]);
|
|
769
|
+
if (problem !== null) return notMoved(problem);
|
|
770
|
+
writeSetting(db, "qaMcpConfigPath", null);
|
|
771
|
+
return added.length === 0 ? null : commitMcpList(project);
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Puts back every `.cursor/mcp.json` a Cursor run left merged, then empties the data folder's
|
|
775
|
+
* `mcp-runs` and makes it again with mode 700, so every run's wall has a folder to hide. Run at the boot
|
|
776
|
+
* of the data folder, under its lock and before the QA copies go, when no run goes, so everything there
|
|
777
|
+
* is left over from a crash.
|
|
778
|
+
*/
|
|
779
|
+
function sweepMcpRuns(dataDir) {
|
|
780
|
+
const runs = mcpRunsFolder(dataDir);
|
|
781
|
+
let found = [];
|
|
782
|
+
try {
|
|
783
|
+
found = readdirSync(runs);
|
|
784
|
+
} catch {}
|
|
785
|
+
for (const name of found) restoreCursorMcp(join(runs, name));
|
|
786
|
+
try {
|
|
787
|
+
rmSync(runs, {
|
|
788
|
+
recursive: true,
|
|
789
|
+
force: true
|
|
790
|
+
});
|
|
791
|
+
mkdirSync(runs, {
|
|
792
|
+
recursive: true,
|
|
793
|
+
mode: 448
|
|
794
|
+
});
|
|
795
|
+
} catch (error) {
|
|
796
|
+
console.error(`The MCP run folder ${runs} could not be cleared: ${error.message}`);
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Whether Nolzu merges a Cursor run's servers into the `.cursor/mcp.json` Cursor reads. The run has to
|
|
801
|
+
* start in QA's copy or under the project's worktrees folder, never in the person's own folder. The
|
|
802
|
+
* file sits at the nearest git root above that (`cursorRoot`): the checkout for a Delivery card, the
|
|
803
|
+
* project folder for a Research card, whose card folder holds checkouts and no `.git`. That root has to
|
|
804
|
+
* lie inside the copy or the project, and its repository must not track the file, where `git add -u`
|
|
805
|
+
* would take the merge into a commit.
|
|
806
|
+
*/
|
|
807
|
+
async function cursorMergesHere(input) {
|
|
808
|
+
const inside = (folder, path) => path === folder || path.startsWith(`${folder}${sep}`);
|
|
809
|
+
if (input.qaCopy != null) return inside(input.qaCopy, cursorRoot(input.qaCopy));
|
|
810
|
+
const project = resolve(input.project);
|
|
811
|
+
const worktrees = worktreesFolder(project);
|
|
812
|
+
if (input.cwd === worktrees || !inside(worktrees, input.cwd)) return false;
|
|
813
|
+
const root = cursorRoot(input.cwd);
|
|
814
|
+
return inside(project, root) && !await input.tracked(root);
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* The servers a run of `phase` on `vendor` gets, with their secrets read from the keychain. Nothing is
|
|
818
|
+
* written here: the runner hands Codex and Cursor their servers without a file, and writes Claude
|
|
819
|
+
* Code's config for each attempt into `dir`, which the caller removes after the run.
|
|
820
|
+
*
|
|
821
|
+
* A server is left out with a sentence when this machine lacks a secret of it or the keychain cannot
|
|
822
|
+
* read one, and for an SSE server on Codex, which speaks streamable
|
|
823
|
+
* HTTP only. A Cursor run gets a server with a secret, with a sentence that its agent can read it.
|
|
824
|
+
* `cursorHere` is `cursorMergesHere`: false where Nolzu merges nothing.
|
|
825
|
+
* `legacy` is a QA browser path not moved into the list yet, which QA keeps until it is; a file that is
|
|
826
|
+
* not there refuses the QA run with the reason.
|
|
827
|
+
*/
|
|
828
|
+
async function runMcp(input) {
|
|
829
|
+
const { project, projectId, phase, vendor, keychain, dir } = input;
|
|
830
|
+
const notes = [];
|
|
831
|
+
const list = readMcpList(project);
|
|
832
|
+
notes.push(...list.problems);
|
|
833
|
+
const wanted = serversFor(list.servers, phase);
|
|
834
|
+
const legacy = phase === "qa" && input.legacy != null ? input.legacy : null;
|
|
835
|
+
const gone = legacy === null ? null : mcpConfigProblem(legacy);
|
|
836
|
+
if (gone !== null) throw new Error(gone);
|
|
837
|
+
const fromLegacy = legacy === null ? {} : mcpServers(legacy);
|
|
838
|
+
const remoteLegacy = legacy === null ? {} : mcpRemotes(legacy);
|
|
839
|
+
const legacyNames = Object.keys({
|
|
840
|
+
...fromLegacy,
|
|
841
|
+
...remoteLegacy
|
|
842
|
+
}).filter((name) => !wanted.some((entry) => entry.name === name));
|
|
843
|
+
const all = [...wanted.map((entry) => entry.name), ...legacyNames];
|
|
844
|
+
if (all.length === 0) return {
|
|
845
|
+
mcp: null,
|
|
846
|
+
notes
|
|
847
|
+
};
|
|
848
|
+
const named = all.join(", ");
|
|
849
|
+
if (vendor === "cursor" && !input.cursorHere) return {
|
|
850
|
+
mcp: null,
|
|
851
|
+
notes: [...notes, `This Cursor run starts in a folder where Nolzu merges no .cursor/mcp.json (your own folder, a checkout that tracks that file, or a folder whose git root lies outside the project), so ${named} ${all.length === 1 ? "is" : "are"} left out.`]
|
|
852
|
+
};
|
|
853
|
+
const stdio = {};
|
|
854
|
+
const remote = {};
|
|
855
|
+
const rules = {};
|
|
856
|
+
const codexEnv = /* @__PURE__ */ new Map();
|
|
857
|
+
for (const entry of wanted) {
|
|
858
|
+
if (vendor === "codex" && entry.kind === "remote" && entry.transport === "sse") {
|
|
859
|
+
notes.push(`Codex speaks to remote servers over streamable HTTP only, so the SSE server ${entry.name} is left out.`);
|
|
860
|
+
continue;
|
|
861
|
+
}
|
|
862
|
+
const keys = secretKeysOf(entry);
|
|
863
|
+
const values = {};
|
|
864
|
+
const lacking = [];
|
|
865
|
+
let unreadable = null;
|
|
866
|
+
for (const key of keys) try {
|
|
867
|
+
const value = await keychain.read(secretName(projectId, entry, key));
|
|
868
|
+
if (value === null) lacking.push(key.name);
|
|
869
|
+
else values[`${key.where}:${key.name}`] = value;
|
|
870
|
+
} catch (error) {
|
|
871
|
+
unreadable = error.message;
|
|
872
|
+
break;
|
|
873
|
+
}
|
|
874
|
+
if (unreadable !== null) {
|
|
875
|
+
notes.push(`${entry.name} is left out: the keychain could not be read for its secrets. ${unreadable}`);
|
|
876
|
+
continue;
|
|
877
|
+
}
|
|
878
|
+
if (lacking.length > 0) {
|
|
879
|
+
notes.push(`${entry.name} is left out: this machine has no secret ${lacking.join(", ")} for it. Enter it on Settings, MCP servers.`);
|
|
880
|
+
continue;
|
|
881
|
+
}
|
|
882
|
+
const resolveValues = (where, list) => Object.fromEntries(list.map((one) => [one.name, one.secret ? values[`${where}:${one.name}`] ?? "" : (one.value ?? "").replaceAll(TMP_TOKEN, tmpdir())]));
|
|
883
|
+
const env = resolveValues("env", entry.env);
|
|
884
|
+
const secretEnv = entry.env.filter((one) => one.secret).map((one) => one.name);
|
|
885
|
+
const clash = vendor === "codex" ? secretEnv.find((name) => codexEnv.has(name) && codexEnv.get(name) !== env[name]) : void 0;
|
|
886
|
+
if (clash !== void 0) {
|
|
887
|
+
notes.push(`${entry.name} is left out: Codex takes a secret by its name, and another server of this run has a different ${clash}.`);
|
|
888
|
+
continue;
|
|
889
|
+
}
|
|
890
|
+
for (const name of secretEnv) codexEnv.set(name, env[name] ?? "");
|
|
891
|
+
if (entry.kind === "local") stdio[entry.name] = {
|
|
892
|
+
command: entry.command,
|
|
893
|
+
args: entry.args,
|
|
894
|
+
env
|
|
895
|
+
};
|
|
896
|
+
else remote[entry.name] = {
|
|
897
|
+
url: entry.url,
|
|
898
|
+
transport: entry.transport,
|
|
899
|
+
headers: resolveValues("header", entry.headers)
|
|
900
|
+
};
|
|
901
|
+
const cwd = entry.cwd === "" || project === null ? null : isAbsolute(entry.cwd) ? entry.cwd : join(project, entry.cwd);
|
|
902
|
+
rules[entry.name] = {
|
|
903
|
+
tools: entry.tools,
|
|
904
|
+
secretEnv,
|
|
905
|
+
secretHeaders: entry.headers.filter((one) => one.secret).map((one) => one.name),
|
|
906
|
+
cwd
|
|
907
|
+
};
|
|
908
|
+
if (vendor === "cursor" && entry.tools.length > 0) notes.push(`Cursor cannot limit single tools, so this run may call every tool of ${entry.name}.`);
|
|
909
|
+
if (vendor === "cursor" && keys.length > 0) notes.push(`On Cursor the agent's shell can read the secret of ${entry.name}.`);
|
|
910
|
+
}
|
|
911
|
+
for (const name of legacyNames) {
|
|
912
|
+
const local = fromLegacy[name];
|
|
913
|
+
if (local !== void 0) stdio[name] = local;
|
|
914
|
+
const far = remoteLegacy[name];
|
|
915
|
+
if (far !== void 0) remote[name] = far;
|
|
916
|
+
rules[name] = {
|
|
917
|
+
tools: [],
|
|
918
|
+
secretEnv: [],
|
|
919
|
+
secretHeaders: [],
|
|
920
|
+
cwd: null
|
|
921
|
+
};
|
|
922
|
+
}
|
|
923
|
+
if (Object.keys(rules).length === 0) return {
|
|
924
|
+
mcp: null,
|
|
925
|
+
notes
|
|
926
|
+
};
|
|
927
|
+
return {
|
|
928
|
+
mcp: {
|
|
929
|
+
stdio,
|
|
930
|
+
remote,
|
|
931
|
+
rules,
|
|
932
|
+
dir
|
|
933
|
+
},
|
|
934
|
+
notes
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
/** The servers of a run by name, for its prompt. */
|
|
938
|
+
var mcpNames = (mcp) => mcp === null ? [] : Object.keys(mcp.rules);
|
|
939
|
+
/**
|
|
940
|
+
* What a run's prompt names before the run starts: QA's browser (Nolzu's browser server, or a QA
|
|
941
|
+
* browser path not moved yet) and the other servers the phase is on for.
|
|
942
|
+
*/
|
|
943
|
+
function promptMcp(project, phase, vendor, legacy) {
|
|
944
|
+
const on = serversFor(readMcpList(project).servers, phase);
|
|
945
|
+
const isBrowser = (name) => phase === "qa" && name === "playwright";
|
|
946
|
+
const old = phase === "qa" && legacy !== null ? Object.keys({
|
|
947
|
+
...mcpServers(legacy),
|
|
948
|
+
...mcpRemotes(legacy)
|
|
949
|
+
}).filter((name) => !on.some((entry) => entry.name === name)) : [];
|
|
950
|
+
return {
|
|
951
|
+
browser: [...on.filter((entry) => isBrowser(entry.name)).map((entry) => entry.name), ...old],
|
|
952
|
+
servers: on.filter((entry) => !isBrowser(entry.name)).map((entry) => ({
|
|
953
|
+
name: entry.name,
|
|
954
|
+
description: entry.description
|
|
955
|
+
}))
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
//#endregion
|
|
959
|
+
//#region src/lib/qa-setup.ts
|
|
960
|
+
var answerFor = (apps, repo) => apps?.[repo] ?? apps?.["*"] ?? null;
|
|
961
|
+
/**
|
|
962
|
+
* The own commands of a card, in the order they start: an answer under `*` first and once, in the card's
|
|
963
|
+
* checkout root (`repo` null), as the project-wide stack hook ran, so a script written for `$PWD/api`
|
|
964
|
+
* keeps working. Then each repository with an answer of its own, which wins over `*` for it.
|
|
965
|
+
*/
|
|
966
|
+
function ownStarts(apps, repos) {
|
|
967
|
+
const shared = apps?.["*"];
|
|
968
|
+
return [...shared?.mode === "own" && repos.some((repo) => apps?.[repo] === void 0) ? [{
|
|
969
|
+
repo: null,
|
|
970
|
+
answer: shared
|
|
971
|
+
}] : [], ...repos.flatMap((repo) => {
|
|
972
|
+
const own = apps?.[repo];
|
|
973
|
+
return own?.mode === "own" ? [{
|
|
974
|
+
repo,
|
|
975
|
+
answer: own
|
|
976
|
+
}] : [];
|
|
977
|
+
})];
|
|
978
|
+
}
|
|
979
|
+
var ownFolder = (project, key, repo) => repo === null ? checkoutRoot(project, key) : checkoutPath(project, key, repo);
|
|
980
|
+
var qaReposOf = (db, key) => reposOfCard(db, key) ?? [];
|
|
981
|
+
function unanswered(db, key) {
|
|
982
|
+
const apps = getSetting(db, "qaApp");
|
|
983
|
+
return (key !== null ? qaReposOf(db, key) : projectRepos({
|
|
984
|
+
repos: getSetting(db, "repos"),
|
|
985
|
+
baseBranch: getSetting(db, "baseBranch")
|
|
986
|
+
}).map((repo) => repo.path)).filter((repo) => answerFor(apps, repo) === null);
|
|
987
|
+
}
|
|
988
|
+
function stackAnswered(db, key = null) {
|
|
989
|
+
return unanswered(db, key).length === 0;
|
|
990
|
+
}
|
|
991
|
+
function saveAnswer(db, repo, app) {
|
|
992
|
+
const apps = { ...getSetting(db, "qaApp") };
|
|
993
|
+
if (app === null) delete apps[repo];
|
|
994
|
+
else apps[repo] = app;
|
|
995
|
+
writeSetting(db, "qaApp", Object.keys(apps).length === 0 ? null : apps);
|
|
996
|
+
}
|
|
997
|
+
function clearAnswer(db, repo) {
|
|
998
|
+
const repos = projectRepos({
|
|
999
|
+
repos: getSetting(db, "repos"),
|
|
1000
|
+
baseBranch: getSetting(db, "baseBranch")
|
|
1001
|
+
}).map((one) => one.path);
|
|
1002
|
+
if (repo !== "*" && !repos.includes(repo)) return `${repo} is not a repository of this project.`;
|
|
1003
|
+
saveAnswer(db, repo, null);
|
|
1004
|
+
return null;
|
|
1005
|
+
}
|
|
1006
|
+
function appWords(app) {
|
|
1007
|
+
if (app === null) return "asked at the first QA";
|
|
1008
|
+
if (app.mode === "dev") return app.folder === void 0 ? app.command : `${app.command} in ${app.folder}`;
|
|
1009
|
+
if (app.mode === "running") return `already running at ${app.address.replace(/^https?:\/\//, "")}`;
|
|
1010
|
+
if (app.mode === "own") return `own commands: ${app.start}`;
|
|
1011
|
+
return "code only";
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* The rows of Start the app: every repository, after a row for `*` in a project of several or when
|
|
1015
|
+
* there is an answer for every one. `*` is never asked by the question, so it is set here.
|
|
1016
|
+
*/
|
|
1017
|
+
function appRows(db, chrome = chromeHere(), wall = wallHere()) {
|
|
1018
|
+
const apps = getSetting(db, "qaApp");
|
|
1019
|
+
const repos = projectRepos({
|
|
1020
|
+
repos: getSetting(db, "repos"),
|
|
1021
|
+
baseBranch: getSetting(db, "baseBranch")
|
|
1022
|
+
}).map((one) => one.path);
|
|
1023
|
+
return [...apps?.["*"] !== void 0 || repos.length > 1 ? ["*"] : [], ...repos].map((repo) => {
|
|
1024
|
+
const own = apps?.[repo] ?? null;
|
|
1025
|
+
return {
|
|
1026
|
+
repo,
|
|
1027
|
+
answer: own,
|
|
1028
|
+
words: own !== null ? appWords(own) : repo === "*" ? "not set" : apps?.["*"] !== void 0 ? "same as every repository" : appWords(null),
|
|
1029
|
+
setup: askAbout(db, null, chrome, wall, repo).setup
|
|
1030
|
+
};
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
var answerFirst = (key) => `QA asks how to run the app the first time a card enters it. Move ${key} to QA on the board to answer.`;
|
|
1034
|
+
var answerAgain = (key) => `QA asks how to run the app before it runs again. Retry ${key} on the board to answer.`;
|
|
1035
|
+
var PLAYWRIGHT_FILE = "playwright-mcp.json";
|
|
1036
|
+
function chromeFound(platform, exists, home = homedir()) {
|
|
1037
|
+
if (platform === "darwin") {
|
|
1038
|
+
const app = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";
|
|
1039
|
+
return exists(app) || exists(join(home, app));
|
|
1040
|
+
}
|
|
1041
|
+
return platform === "linux" && exists("/opt/google/chrome/chrome");
|
|
1042
|
+
}
|
|
1043
|
+
var chromeHere = () => chromeFound(process.platform, existsSync);
|
|
1044
|
+
function setUpBrowser(project) {
|
|
1045
|
+
const { servers } = readMcpList(project);
|
|
1046
|
+
const found = servers.find((entry) => entry.name === BROWSER_NAME);
|
|
1047
|
+
if (found?.phases.includes("qa")) return null;
|
|
1048
|
+
return writeMcpList(project, found === void 0 ? [...servers, browserEntry()] : servers.map((entry) => entry === found ? {
|
|
1049
|
+
...entry,
|
|
1050
|
+
phases: [...entry.phases, "qa"]
|
|
1051
|
+
} : entry));
|
|
1052
|
+
}
|
|
1053
|
+
function turnOffBrowser(db) {
|
|
1054
|
+
writeSetting(db, "qaMcpConfigPath", null);
|
|
1055
|
+
const project = getSetting(db, "projectPath");
|
|
1056
|
+
const { servers } = readMcpList(project);
|
|
1057
|
+
const found = servers.find((entry) => entry.name === BROWSER_NAME);
|
|
1058
|
+
if (!found?.phases.includes("qa")) return null;
|
|
1059
|
+
return writeMcpList(project, servers.map((entry) => entry === found ? {
|
|
1060
|
+
...entry,
|
|
1061
|
+
phases: entry.phases.filter((phase) => phase !== "qa")
|
|
1062
|
+
} : entry));
|
|
1063
|
+
}
|
|
1064
|
+
var manifestIn = (folder) => {
|
|
1065
|
+
try {
|
|
1066
|
+
return JSON.parse(readFileSync(join(folder, "package.json"), "utf8"));
|
|
1067
|
+
} catch {
|
|
1068
|
+
return null;
|
|
1069
|
+
}
|
|
1070
|
+
};
|
|
1071
|
+
var START_FOLDERS = [
|
|
1072
|
+
"frontend",
|
|
1073
|
+
"web",
|
|
1074
|
+
"client",
|
|
1075
|
+
"app"
|
|
1076
|
+
];
|
|
1077
|
+
/**
|
|
1078
|
+
* The start command a folder proposes, from its own package.json, else from the first child folder whose
|
|
1079
|
+
* package.json names one: frontend, web, client and app first, then the rest by name. node_modules and
|
|
1080
|
+
* dot folders are skipped. `sub` is that child, or null for the folder itself.
|
|
1081
|
+
*/
|
|
1082
|
+
function startIn(folder) {
|
|
1083
|
+
const at = (sub) => {
|
|
1084
|
+
const scripts = scriptsOf(manifestIn(sub === null ? folder : join(folder, sub)));
|
|
1085
|
+
const proposal = proposeStart(scripts);
|
|
1086
|
+
return proposal === null || scripts === null ? null : {
|
|
1087
|
+
proposal,
|
|
1088
|
+
scripts,
|
|
1089
|
+
sub
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
const top = at(null);
|
|
1093
|
+
if (top !== null) return top;
|
|
1094
|
+
let children = [];
|
|
1095
|
+
try {
|
|
1096
|
+
children = readdirSync(folder, { withFileTypes: true }).filter((entry) => entry.isDirectory() && entry.name !== "node_modules" && !entry.name.startsWith(".") && isFolderName(entry.name)).map((entry) => entry.name).sort();
|
|
1097
|
+
} catch {}
|
|
1098
|
+
const ordered = [...START_FOLDERS.filter((name) => children.includes(name)), ...children.filter((name) => !START_FOLDERS.includes(name))];
|
|
1099
|
+
for (const sub of ordered) {
|
|
1100
|
+
const found = at(sub);
|
|
1101
|
+
if (found !== null) return found;
|
|
1102
|
+
}
|
|
1103
|
+
return null;
|
|
1104
|
+
}
|
|
1105
|
+
var filesIn = (folder) => {
|
|
1106
|
+
try {
|
|
1107
|
+
return readdirSync(folder);
|
|
1108
|
+
} catch {
|
|
1109
|
+
return [];
|
|
1110
|
+
}
|
|
1111
|
+
};
|
|
1112
|
+
var scriptsOf = (manifest) => {
|
|
1113
|
+
const scripts = typeof manifest === "object" && manifest !== null ? manifest.scripts : null;
|
|
1114
|
+
return typeof scripts === "object" && scripts !== null ? scripts : null;
|
|
1115
|
+
};
|
|
1116
|
+
var scriptsText = (folder) => Object.entries(scriptsOf(manifestIn(folder)) ?? {}).map(([name, text]) => `${name}: ${typeof text === "string" ? text : JSON.stringify(text)}`).join("\n");
|
|
1117
|
+
var hashOf = (text) => createHash("sha256").update(text).digest("hex");
|
|
1118
|
+
function scriptsHash(folder) {
|
|
1119
|
+
return hashOf(scriptsText(folder));
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* The folder the question reads the scripts in: the card's copy of the repository, or the project's own
|
|
1123
|
+
* clone before the card has a copy. QA starts the app in the card's copy only.
|
|
1124
|
+
*/
|
|
1125
|
+
function appFolder(project, key, repo) {
|
|
1126
|
+
const copy = key === null ? null : checkoutPath(project, key, repo);
|
|
1127
|
+
return copy !== null && existsSync(copy) ? copy : join(project, repo);
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
* Null when the scripts in `folder` are the ones the person said yes to. Otherwise the answer is cleared,
|
|
1131
|
+
* so the next move into QA asks the question again with the new script text, and the sentence the QA
|
|
1132
|
+
* run stops with is returned. An answer saved before the hash existed asks again too.
|
|
1133
|
+
*/
|
|
1134
|
+
function scriptsChanged(db, app, folder, key) {
|
|
1135
|
+
if (app.scripts === scriptsHash(folder)) return null;
|
|
1136
|
+
saveAnswer(db, app.repo, null);
|
|
1137
|
+
return `The package.json scripts on ${key}'s branch are not the ones you said yes to, so Nolzu did not run ${app.command}. Retry QA to see the new scripts and answer the question again.`;
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* What the question shows, read from the repository it asks about each time it is asked: the card's
|
|
1141
|
+
* first repository with no answer, or the project's with no card.
|
|
1142
|
+
*
|
|
1143
|
+
* With a card, its copy is read as well, because a card can be the one that makes the app: its
|
|
1144
|
+
* package.json exists on its branch only. A start command there counts only when the project folder
|
|
1145
|
+
* names none; Playwright counts from either. The command runs in the card's copy either way, so a later
|
|
1146
|
+
* card runs it once the branch is merged.
|
|
1147
|
+
*/
|
|
1148
|
+
function qaSetupFor(db, key = null, chrome = chromeHere(), wall = wallHere()) {
|
|
1149
|
+
return askAbout(db, key, chrome, wall).setup;
|
|
1150
|
+
}
|
|
1151
|
+
function askAbout(db, key, chrome, wall, about = null) {
|
|
1152
|
+
const project = getSetting(db, "projectPath");
|
|
1153
|
+
const repos = project === null ? [] : projectRepos({
|
|
1154
|
+
repos: getSetting(db, "repos"),
|
|
1155
|
+
baseBranch: getSetting(db, "baseBranch")
|
|
1156
|
+
});
|
|
1157
|
+
const card = project !== null && key !== null && isPlainName(key) && db.prepare("SELECT 1 FROM cards WHERE key = ?").get(key) !== void 0 ? key : null;
|
|
1158
|
+
const repo = (about !== null && (about === "*" || repos.some((one) => one.path === about)) ? about : null) ?? unanswered(db, card)[0] ?? (card === null ? void 0 : qaReposOf(db, card)[0]) ?? repos[0]?.path ?? ".";
|
|
1159
|
+
let dev = null;
|
|
1160
|
+
let address = "";
|
|
1161
|
+
let playwright = false;
|
|
1162
|
+
for (const folder of repo === "*" ? [] : [join(project ?? "", repo), ...card === null ? [] : [checkoutPath(project ?? "", card, repo)]]) {
|
|
1163
|
+
const found = dev === null ? startIn(folder) : null;
|
|
1164
|
+
if (found !== null) {
|
|
1165
|
+
dev = {
|
|
1166
|
+
command: found.proposal.command,
|
|
1167
|
+
repo,
|
|
1168
|
+
...found.sub === null ? {} : { folder: found.sub }
|
|
1169
|
+
};
|
|
1170
|
+
const port = scriptPort(found.scripts[found.proposal.from]);
|
|
1171
|
+
address = port === null ? "" : `localhost:${port}`;
|
|
1172
|
+
}
|
|
1173
|
+
playwright ||= usesPlaywright(manifestIn(folder), filesIn(folder));
|
|
1174
|
+
}
|
|
1175
|
+
const several = repos.length > 1;
|
|
1176
|
+
return {
|
|
1177
|
+
setup: {
|
|
1178
|
+
project: several ? repo : projectName(db) ?? "the app",
|
|
1179
|
+
repo: several ? repo : null,
|
|
1180
|
+
dev,
|
|
1181
|
+
scripts: dev === null || project === null ? "" : scriptsText(join(appFolder(project, card, repo), dev.folder ?? "")),
|
|
1182
|
+
unwalled: wall.ready ? null : wall.reason,
|
|
1183
|
+
address,
|
|
1184
|
+
test: (getSetting(db, "allowedCommands") ?? []).find((command) => / test$/.test(command)) ?? null,
|
|
1185
|
+
playwright,
|
|
1186
|
+
chrome,
|
|
1187
|
+
browser: qaHasBrowser(db)
|
|
1188
|
+
},
|
|
1189
|
+
repo
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Start QA in the question: the answer saved for the repository, or the sentence it was refused with.
|
|
1194
|
+
*
|
|
1195
|
+
* The command is read here again and never taken from the page, so a post can only pick what the
|
|
1196
|
+
* repositories propose. The browser switch counts only where Chrome or Playwright is found, as the
|
|
1197
|
+
* dialog draws it, and it keeps a browser config the person set up before.
|
|
1198
|
+
*/
|
|
1199
|
+
function answerQa(db, asked, chrome = chromeHere()) {
|
|
1200
|
+
const body = typeof asked === "object" && asked !== null ? asked : {};
|
|
1201
|
+
const about = typeof body.repo === "string" ? body.repo : null;
|
|
1202
|
+
const { setup, repo } = askAbout(db, typeof body.key === "string" ? body.key : null, chrome, wallHere(), about);
|
|
1203
|
+
if (about !== null && about !== repo) return `${about} is not a repository of this project.`;
|
|
1204
|
+
let app;
|
|
1205
|
+
if (body.choice === "dev") {
|
|
1206
|
+
if (setup.dev === null) return "No package.json of this project names a start script, so Nolzu has nothing to start. Pick another way.";
|
|
1207
|
+
if ((body.scripts ?? "") !== setup.scripts) return "The package.json scripts changed since this question opened. Read the new ones and pick again.";
|
|
1208
|
+
app = {
|
|
1209
|
+
mode: "dev",
|
|
1210
|
+
...setup.dev,
|
|
1211
|
+
scripts: hashOf(setup.scripts)
|
|
1212
|
+
};
|
|
1213
|
+
} else if (body.choice === "running") {
|
|
1214
|
+
const address = typeof body.address === "string" ? appAddress(body.address) : null;
|
|
1215
|
+
if (address === null) return "Type the address the app runs at, such as localhost:5173.";
|
|
1216
|
+
app = {
|
|
1217
|
+
mode: "running",
|
|
1218
|
+
address
|
|
1219
|
+
};
|
|
1220
|
+
} else if (body.choice === "own") {
|
|
1221
|
+
const typed = (value) => typeof value === "string" ? value.trim() : "";
|
|
1222
|
+
if (typed(body.start) === "") return "Type the command that starts the app in the Start box.";
|
|
1223
|
+
app = {
|
|
1224
|
+
mode: "own",
|
|
1225
|
+
start: typed(body.start),
|
|
1226
|
+
stop: typed(body.stop) || null,
|
|
1227
|
+
status: typed(body.status) || null
|
|
1228
|
+
};
|
|
1229
|
+
} else if (body.choice === "code") app = { mode: "code" };
|
|
1230
|
+
else return "Pick how QA gets the app: start it, start it with your own commands, use the one already running, or check the code only.";
|
|
1231
|
+
if (typeof body.browser === "boolean" && (setup.chrome || setup.playwright)) {
|
|
1232
|
+
const project = getSetting(db, "projectPath");
|
|
1233
|
+
const problem = !body.browser ? turnOffBrowser(db) : setup.browser ? null : setUpBrowser(project);
|
|
1234
|
+
if (problem !== null) return problem;
|
|
1235
|
+
}
|
|
1236
|
+
saveAnswer(db, repo, app);
|
|
1237
|
+
return null;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
export { qaSetupFor as A, commitMcpListSoon as B, readMcpList as C, secretKeysOf as D, secretName as E, entryProblem as F, urlWarning as G, writeMcpList as H, removeSecrets as I, missingSecrets as J, commitProblem as K, listUncommitted as L, MCP_FILE as M, listShared as N, gridPhases as O, PLAYWRIGHT_FILE as P, unlimitedReadOnly as Q, emptyEntry as R, SERVER_NAME as S, TMP_TOKEN as T, reservedName as U, BROWSER_NAME as V, turnOffBrowser as W, setUpBrowser as X, clearAnswer as Y, answerQa as Z, answerFirst as a, answerAgain as b, appKeychain as c, qaReposOf as d, answerFor as e, ownFolder as f, scriptsChanged as g, cursorMergesHere as h, mcpNames as i, removeQaCopy as j, sweepMcpRuns as k, sweepQaCopies as l, makeQaCopy as m, migrateQaBrowser as n, ownStarts as o, promptMcp as p, qaHasBrowser as q, runMcp as r, stackAnswered as s, commitMcpList as t, qaCopyPath as u, flushMcpCommit as v, qaCopyRoot as w, chromeFound as x, qaServers as y, appRows as z };
|
|
1241
|
+
//# sourceMappingURL=qa-setup.js-DFOEcNxH.js.map
|