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,925 @@
|
|
|
1
|
+
import { p as phaseLabel } from '../../../../chunks/board.js-BxL3CjB1.js';
|
|
2
|
+
import { g as getSetting, e as projectProfiles } from '../../../../chunks/node.js-Bz2jT5wt.js';
|
|
3
|
+
import '../../../../chunks/src.js-Cm8RAH_q.js';
|
|
4
|
+
import { l as loop } from '../../../../chunks/loop.js-D3guWKLp.js';
|
|
5
|
+
import { bK as walledCommand } from '../../../../chunks/src3.js-h9tTEbVb.js';
|
|
6
|
+
import { c as appKeychain, B as commitMcpListSoon, n as migrateQaBrowser, P as PLAYWRIGHT_FILE, C as readMcpList, D as secretKeysOf, E as secretName, t as commitMcpList, F as entryProblem, G as urlWarning, H as writeMcpList, I as removeSecrets, J as missingSecrets, M as MCP_FILE, K as commitProblem, L as listUncommitted, N as listShared, O as gridPhases, Q as unlimitedReadOnly, R as emptyEntry, T as TMP_TOKEN, S as SERVER_NAME, U as reservedName } from '../../../../chunks/qa-setup.js-DFOEcNxH.js';
|
|
7
|
+
import { a as database } from '../../../../chunks/db.js-pqoVpAzG.js';
|
|
8
|
+
import { d as crossSiteRead } from '../../../../chunks/bin.js-Cyb2cYLc.js';
|
|
9
|
+
import { s as serverWall } from '../../../../chunks/browser-test.js-DJEpOoVz.js';
|
|
10
|
+
import { A as fail } from '../../../../chunks/utils.js-DQTBh7_6.js';
|
|
11
|
+
import { existsSync, mkdtempSync, rmSync, readFileSync, accessSync, constants, statSync } from 'node:fs';
|
|
12
|
+
import { join, isAbsolute, resolve, delimiter } from 'node:path';
|
|
13
|
+
import { homedir, tmpdir } from 'node:os';
|
|
14
|
+
import { spawn } from 'node:child_process';
|
|
15
|
+
|
|
16
|
+
//#region src/lib/mcp-import.ts
|
|
17
|
+
var pairs = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? Object.entries(value).map(([key, one]) => [key, String(one)]) : [];
|
|
18
|
+
function fromJson(source, name, raw) {
|
|
19
|
+
if (typeof raw !== "object" || raw === null || !SERVER_NAME.test(name)) return null;
|
|
20
|
+
const server = raw;
|
|
21
|
+
const remote = typeof server.url === "string" && typeof server.command !== "string";
|
|
22
|
+
if (!remote && typeof server.command !== "string") return null;
|
|
23
|
+
const env = pairs(server.env);
|
|
24
|
+
const headers = remote ? pairs(server.headers) : [];
|
|
25
|
+
const entry = {
|
|
26
|
+
...emptyEntry(),
|
|
27
|
+
name,
|
|
28
|
+
kind: remote ? "remote" : "local",
|
|
29
|
+
command: remote ? "" : String(server.command),
|
|
30
|
+
args: Array.isArray(server.args) ? server.args.map(String) : [],
|
|
31
|
+
url: remote ? String(server.url) : "",
|
|
32
|
+
transport: server.type === "sse" ? "sse" : "http",
|
|
33
|
+
env: env.map(([key]) => ({
|
|
34
|
+
name: key,
|
|
35
|
+
secret: !reservedName(key)
|
|
36
|
+
})),
|
|
37
|
+
headers: headers.map(([key]) => ({
|
|
38
|
+
name: key,
|
|
39
|
+
secret: true
|
|
40
|
+
}))
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
key: `${source}:${name}`,
|
|
44
|
+
source,
|
|
45
|
+
entry,
|
|
46
|
+
values: Object.fromEntries([...env.map(([key, value]) => [`env:${key}`, value]), ...headers.map(([key, value]) => [`header:${key}`, value])])
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
var objectAt = (value, key) => {
|
|
50
|
+
const found = typeof value === "object" && value !== null ? value[key] : void 0;
|
|
51
|
+
return typeof found === "object" && found !== null && !Array.isArray(found) ? found : {};
|
|
52
|
+
};
|
|
53
|
+
/** `~/.claude.json`: its global servers, then those of this project's folder, which win on a name. */
|
|
54
|
+
function claudeServers(text, project) {
|
|
55
|
+
let parsed;
|
|
56
|
+
try {
|
|
57
|
+
parsed = JSON.parse(text);
|
|
58
|
+
} catch {
|
|
59
|
+
return [];
|
|
60
|
+
}
|
|
61
|
+
const own = project === null ? {} : objectAt(objectAt(objectAt(parsed, "projects"), resolve(project)), "mcpServers");
|
|
62
|
+
const all = {
|
|
63
|
+
...objectAt(parsed, "mcpServers"),
|
|
64
|
+
...own
|
|
65
|
+
};
|
|
66
|
+
return Object.entries(all).flatMap(([name, raw]) => fromJson("Claude Code", name, raw) ?? []);
|
|
67
|
+
}
|
|
68
|
+
/** `~/.cursor/mcp.json`. */
|
|
69
|
+
function cursorServers(text) {
|
|
70
|
+
let parsed;
|
|
71
|
+
try {
|
|
72
|
+
parsed = JSON.parse(text);
|
|
73
|
+
} catch {
|
|
74
|
+
return [];
|
|
75
|
+
}
|
|
76
|
+
return Object.entries(objectAt(parsed, "mcpServers")).flatMap(([name, raw]) => fromJson("Cursor", name, raw) ?? []);
|
|
77
|
+
}
|
|
78
|
+
function tomlValue(text) {
|
|
79
|
+
const value = text.trim();
|
|
80
|
+
if (/^"(?:[^"\\]|\\.)*"$/.test(value)) return JSON.parse(value);
|
|
81
|
+
if (/^'[^']*'$/.test(value)) return value.slice(1, -1);
|
|
82
|
+
if (value.startsWith("[") && value.endsWith("]")) return [...value.slice(1, -1).matchAll(/"((?:[^"\\]|\\.)*)"|'([^']*)'/g)].map((match) => match[1] !== void 0 ? JSON.parse(`"${match[1]}"`) : match[2]);
|
|
83
|
+
if (value.startsWith("{") && value.endsWith("}")) return Object.fromEntries([...value.slice(1, -1).matchAll(/(?:"((?:[^"\\]|\\.)*)"|([A-Za-z0-9_-]+))\s*=\s*(?:"((?:[^"\\]|\\.)*)"|'([^']*)')/g)].map((match) => [match[1] !== void 0 ? JSON.parse(`"${match[1]}"`) : match[2], match[3] !== void 0 ? JSON.parse(`"${match[3]}"`) : match[4]]));
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* `~/.codex/config.toml`: its `[mcp_servers.<name>]` tables and their `env` and `http_headers`
|
|
87
|
+
* sub-tables, or the same as inline tables.
|
|
88
|
+
*
|
|
89
|
+
* ponytail: a reader for the lines a server table holds, not all of TOML. A value spread over several
|
|
90
|
+
* lines, such as a long array, reads as missing, and that server comes in without it. A TOML library
|
|
91
|
+
* if people's configs show it.
|
|
92
|
+
*/
|
|
93
|
+
function codexServers(text) {
|
|
94
|
+
const tables = /* @__PURE__ */ new Map();
|
|
95
|
+
let at = null;
|
|
96
|
+
for (const raw of text.split("\n")) {
|
|
97
|
+
const line = raw.replace(/\s+#.*$/, "").trim();
|
|
98
|
+
if (line === "" || line.startsWith("#")) continue;
|
|
99
|
+
const header = /^\[\s*mcp_servers\.(?:"([^"]+)"|([A-Za-z0-9_-]+))(?:\.([A-Za-z_]+))?\s*\]$/.exec(line);
|
|
100
|
+
if (header !== null) {
|
|
101
|
+
at = {
|
|
102
|
+
name: header[1] ?? header[2] ?? "",
|
|
103
|
+
part: header[3] ?? null
|
|
104
|
+
};
|
|
105
|
+
if (!tables.has(at.name)) tables.set(at.name, {});
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
if (line.startsWith("[")) {
|
|
109
|
+
at = null;
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
const pair = /^(?:"([^"]+)"|([A-Za-z0-9_-]+))\s*=\s*(.+)$/.exec(line);
|
|
113
|
+
if (at === null || pair === null) continue;
|
|
114
|
+
const key = pair[1] ?? pair[2] ?? "";
|
|
115
|
+
const value = tomlValue(pair[3] ?? "");
|
|
116
|
+
const table = tables.get(at.name) ?? {};
|
|
117
|
+
if (at.part === null) table[key] = value;
|
|
118
|
+
else table[at.part] = {
|
|
119
|
+
...objectAt(table, at.part),
|
|
120
|
+
[key]: value
|
|
121
|
+
};
|
|
122
|
+
tables.set(at.name, table);
|
|
123
|
+
}
|
|
124
|
+
return [...tables].flatMap(([name, table]) => fromJson("Codex", name, {
|
|
125
|
+
...table,
|
|
126
|
+
headers: table.http_headers
|
|
127
|
+
}) ?? []);
|
|
128
|
+
}
|
|
129
|
+
var readText = (path) => {
|
|
130
|
+
try {
|
|
131
|
+
return readFileSync(path, "utf8");
|
|
132
|
+
} catch {
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
/** What the three engines' own configs hold, read only. A file that is not there gives nothing. */
|
|
137
|
+
function findImports(home, project) {
|
|
138
|
+
const read = (path, parse) => {
|
|
139
|
+
const text = readText(join(home, path));
|
|
140
|
+
return text === null ? [] : parse(text);
|
|
141
|
+
};
|
|
142
|
+
return [
|
|
143
|
+
...read(".claude.json", (text) => claudeServers(text, project)),
|
|
144
|
+
...read(".codex/config.toml", codexServers),
|
|
145
|
+
...read(".cursor/mcp.json", cursorServers)
|
|
146
|
+
];
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Adds the picked servers to the list, off everywhere. `plain` holds `<key>|env:NAME` or
|
|
150
|
+
* `<key>|header:NAME` for each value the person marked plain; every other value goes to the keychain.
|
|
151
|
+
* The files are read again here, so nothing the page sends becomes a value. The sentence it was
|
|
152
|
+
* refused with, or null.
|
|
153
|
+
*/
|
|
154
|
+
async function importServers(db, keychain, home, picked, plain, projectId) {
|
|
155
|
+
const project = getSetting(db, "projectPath");
|
|
156
|
+
if (project === null) return "This project has no folder, so there is nowhere to keep the list.";
|
|
157
|
+
if (picked.length === 0) return "Pick at least one server to import.";
|
|
158
|
+
const found = findImports(home, project).filter((one) => picked.includes(one.key));
|
|
159
|
+
const { servers, broken } = readMcpList(project);
|
|
160
|
+
if (broken !== null) return broken;
|
|
161
|
+
const added = [];
|
|
162
|
+
for (const one of found) {
|
|
163
|
+
const isPlain = (where) => plain.includes(`${one.key}|${where}`);
|
|
164
|
+
const mark = (where, list) => list.map((value) => !value.secret || isPlain(`${where}:${value.name}`) ? {
|
|
165
|
+
name: value.name,
|
|
166
|
+
secret: false,
|
|
167
|
+
value: one.values[`${where}:${value.name}`] ?? ""
|
|
168
|
+
} : {
|
|
169
|
+
name: value.name,
|
|
170
|
+
secret: true
|
|
171
|
+
});
|
|
172
|
+
const entry = {
|
|
173
|
+
...one.entry,
|
|
174
|
+
env: mark("env", one.entry.env),
|
|
175
|
+
headers: mark("header", one.entry.headers)
|
|
176
|
+
};
|
|
177
|
+
const problem = entryProblem(entry, [...servers, ...added.map((done) => done.entry)]) ?? urlWarning(entry);
|
|
178
|
+
if (problem !== null) return `${one.source}'s ${one.entry.name} was not imported. ${problem}`;
|
|
179
|
+
added.push({
|
|
180
|
+
entry,
|
|
181
|
+
values: one.values
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
try {
|
|
185
|
+
for (const { entry, values } of added) for (const key of secretKeysOf(entry)) await keychain.write(secretName(projectId, entry, key), values[`${key.where}:${key.name}`] ?? "");
|
|
186
|
+
} catch (error) {
|
|
187
|
+
return error.message;
|
|
188
|
+
}
|
|
189
|
+
return writeMcpList(project, [...servers, ...added.map((done) => done.entry)]);
|
|
190
|
+
}
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/lib/mcp-probe.ts
|
|
193
|
+
var TIMEOUT_MS = 15e3;
|
|
194
|
+
var PROTOCOL = "2025-06-18";
|
|
195
|
+
var MAX_PAGES = 20;
|
|
196
|
+
var TAIL_CHARS = 300;
|
|
197
|
+
var RELATIVE = " The command names a relative path and the server has no folder: Test starts it in an empty folder, and a run in the card's checkout. Set Folder, or give a full path.";
|
|
198
|
+
var Refused = class extends Error {};
|
|
199
|
+
var HIDDEN = "•••";
|
|
200
|
+
var redact = (text, secrets) => secrets.reduce((out, secret) => out.split(secret).join(HIDDEN), text);
|
|
201
|
+
var tail = (text, secrets) => {
|
|
202
|
+
const lines = text.split("\n").map((line) => line.trim()).filter((line) => line !== "");
|
|
203
|
+
const said = redact(lines.filter((line) => line.includes("Error:")).at(-1) ?? lines.slice(-3).join(" "), secrets);
|
|
204
|
+
return said.length > TAIL_CHARS ? `...${said.slice(-300)}` : said;
|
|
205
|
+
};
|
|
206
|
+
var toolsSaid = (tools) => tools.length === 0 ? "Started, and the server lists no tool." : `Started, ${tools.length === 1 ? "1 tool" : `${tools.length} tools`}: ${tools.join(", ")}.`;
|
|
207
|
+
/**
|
|
208
|
+
* The server of a saved row or of the form, with its secrets: the ones typed in the form first, the
|
|
209
|
+
* keychain's for the rest. A secret this machine lacks stops the probe before anything starts.
|
|
210
|
+
*/
|
|
211
|
+
async function probeEntry(entry, input, options = {}) {
|
|
212
|
+
const secrets = {};
|
|
213
|
+
for (const key of secretKeysOf(entry)) {
|
|
214
|
+
const where = `${key.where}:${key.name}`;
|
|
215
|
+
let value = input.typed?.[where] ?? "";
|
|
216
|
+
if (value === "") try {
|
|
217
|
+
value = await input.keychain.read(secretName(input.projectId, entry, key)) ?? "";
|
|
218
|
+
} catch (error) {
|
|
219
|
+
return {
|
|
220
|
+
ok: false,
|
|
221
|
+
said: `The keychain could not be read for ${key.name}, so the server was not started. ${error.message}`
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
if (value === "") return {
|
|
225
|
+
ok: false,
|
|
226
|
+
said: `This machine has no secret ${key.name} for ${entry.name === "" ? "this server" : entry.name}, so it was not started. Enter it first.`
|
|
227
|
+
};
|
|
228
|
+
secrets[where] = value;
|
|
229
|
+
}
|
|
230
|
+
const values = (where, list) => Object.fromEntries(list.map((one) => [one.name, one.secret ? secrets[`${where}:${one.name}`] ?? "" : (one.value ?? "").replaceAll(TMP_TOKEN, tmpdir())]));
|
|
231
|
+
const hide = Object.values(secrets);
|
|
232
|
+
if (entry.kind === "remote") return probeRemote({
|
|
233
|
+
url: entry.url,
|
|
234
|
+
transport: entry.transport,
|
|
235
|
+
headers: values("header", entry.headers)
|
|
236
|
+
}, hide, options);
|
|
237
|
+
const cwd = entry.cwd === "" ? null : isAbsolute(entry.cwd) ? entry.cwd : input.project === null ? null : join(input.project, entry.cwd);
|
|
238
|
+
return probeLocal({
|
|
239
|
+
command: entry.command,
|
|
240
|
+
args: entry.args,
|
|
241
|
+
env: values("env", entry.env),
|
|
242
|
+
cwd
|
|
243
|
+
}, hide, options);
|
|
244
|
+
}
|
|
245
|
+
function found(command, cwd) {
|
|
246
|
+
const runs = (path) => {
|
|
247
|
+
try {
|
|
248
|
+
accessSync(path, constants.X_OK);
|
|
249
|
+
return statSync(path).isFile();
|
|
250
|
+
} catch {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
if (command.includes("/")) return runs(resolve(cwd, command));
|
|
255
|
+
return (process.env.PATH ?? "").split(delimiter).some((folder) => folder !== "" && runs(join(folder, command)));
|
|
256
|
+
}
|
|
257
|
+
async function probeLocal(server, secrets, options) {
|
|
258
|
+
if (server.command === "") return {
|
|
259
|
+
ok: false,
|
|
260
|
+
said: "There is no command to start."
|
|
261
|
+
};
|
|
262
|
+
if (server.cwd !== null && !existsSync(server.cwd)) return {
|
|
263
|
+
ok: false,
|
|
264
|
+
said: `The folder ${server.cwd} is not there, so the server was not started.`
|
|
265
|
+
};
|
|
266
|
+
const folder = mkdtempSync(join(tmpdir(), "nolzu-mcp-probe-"));
|
|
267
|
+
const cwd = server.cwd ?? folder;
|
|
268
|
+
if (options.spawn === void 0 && !found(server.command, cwd)) {
|
|
269
|
+
rmSync(folder, {
|
|
270
|
+
recursive: true,
|
|
271
|
+
force: true
|
|
272
|
+
});
|
|
273
|
+
return {
|
|
274
|
+
ok: false,
|
|
275
|
+
said: `Command not found: ${server.command}. Install it, or give its full path.`
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
const walled = (options.wall ?? walledCommand)(serverWall(), server.command, server.args);
|
|
279
|
+
if ("refused" in walled) {
|
|
280
|
+
rmSync(folder, {
|
|
281
|
+
recursive: true,
|
|
282
|
+
force: true
|
|
283
|
+
});
|
|
284
|
+
return {
|
|
285
|
+
ok: false,
|
|
286
|
+
said: `Nolzu starts a server only inside the wall a run uses, and the wall cannot start here. ${walled.refused}`
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
const timeoutMs = options.timeoutMs ?? TIMEOUT_MS;
|
|
290
|
+
const relative = server.cwd === null && [server.command, ...server.args].some((one) => one.startsWith("./") || one.startsWith("../"));
|
|
291
|
+
const child = (options.spawn ?? spawn)(walled.command, walled.args, {
|
|
292
|
+
cwd,
|
|
293
|
+
detached: true,
|
|
294
|
+
env: {
|
|
295
|
+
...process.env,
|
|
296
|
+
...server.env
|
|
297
|
+
},
|
|
298
|
+
stdio: [
|
|
299
|
+
"pipe",
|
|
300
|
+
"pipe",
|
|
301
|
+
"pipe"
|
|
302
|
+
]
|
|
303
|
+
});
|
|
304
|
+
let stderr = "";
|
|
305
|
+
child.stderr?.on("data", (chunk) => stderr = `${stderr}${chunk.toString()}`.slice(-8e3));
|
|
306
|
+
child.stdin?.on("error", () => {});
|
|
307
|
+
const send = (message) => child.stdin?.write(`${JSON.stringify(message)}\n`);
|
|
308
|
+
const answer = await new Promise((done) => {
|
|
309
|
+
const timer = setTimeout(() => {
|
|
310
|
+
const said = tail(stderr, secrets);
|
|
311
|
+
done({
|
|
312
|
+
ok: false,
|
|
313
|
+
said: `No answer in ${Math.ceil(timeoutMs / 1e3)} s.${said === "" ? "" : ` The server said: ${said}`}`
|
|
314
|
+
});
|
|
315
|
+
}, timeoutMs);
|
|
316
|
+
const end = (result) => {
|
|
317
|
+
clearTimeout(timer);
|
|
318
|
+
done(result);
|
|
319
|
+
};
|
|
320
|
+
child.on("error", (error) => end({
|
|
321
|
+
ok: false,
|
|
322
|
+
said: error.code === "ENOENT" ? `Command not found: ${server.command}. Install it, or give its full path.` : redact(error.message, secrets)
|
|
323
|
+
}));
|
|
324
|
+
child.on("exit", (code) => {
|
|
325
|
+
const said = tail(stderr, secrets);
|
|
326
|
+
end({
|
|
327
|
+
ok: false,
|
|
328
|
+
said: `The server stopped with exit code ${code ?? "none"} before it answered.${said === "" ? "" : ` It said: ${said}`}${relative ? RELATIVE : ""}`
|
|
329
|
+
});
|
|
330
|
+
});
|
|
331
|
+
const tools = [];
|
|
332
|
+
let page = 0;
|
|
333
|
+
const list = (cursor) => {
|
|
334
|
+
page += 1;
|
|
335
|
+
send({
|
|
336
|
+
jsonrpc: "2.0",
|
|
337
|
+
id: page + 1,
|
|
338
|
+
method: "tools/list",
|
|
339
|
+
params: cursor === void 0 ? {} : { cursor }
|
|
340
|
+
});
|
|
341
|
+
};
|
|
342
|
+
let buffer = "";
|
|
343
|
+
child.stdout?.on("data", (chunk) => {
|
|
344
|
+
buffer += chunk.toString();
|
|
345
|
+
let at;
|
|
346
|
+
while ((at = buffer.indexOf("\n")) >= 0) {
|
|
347
|
+
const line = buffer.slice(0, at).trim();
|
|
348
|
+
buffer = buffer.slice(at + 1);
|
|
349
|
+
let message;
|
|
350
|
+
try {
|
|
351
|
+
message = JSON.parse(line);
|
|
352
|
+
} catch {
|
|
353
|
+
continue;
|
|
354
|
+
}
|
|
355
|
+
if (typeof message.id !== "number") continue;
|
|
356
|
+
if (message.error !== void 0) {
|
|
357
|
+
end({
|
|
358
|
+
ok: false,
|
|
359
|
+
said: `The server refused ${message.id === 1 ? "to start" : "to list its tools"}: ${redact(message.error.message ?? "no reason given", secrets)}`
|
|
360
|
+
});
|
|
361
|
+
continue;
|
|
362
|
+
}
|
|
363
|
+
if (message.id === 1) {
|
|
364
|
+
send({
|
|
365
|
+
jsonrpc: "2.0",
|
|
366
|
+
method: "notifications/initialized"
|
|
367
|
+
});
|
|
368
|
+
list();
|
|
369
|
+
continue;
|
|
370
|
+
}
|
|
371
|
+
tools.push(...toolNames(message.result));
|
|
372
|
+
const cursor = message.result?.nextCursor;
|
|
373
|
+
if (typeof cursor === "string" && cursor !== "" && page < MAX_PAGES) list(cursor);
|
|
374
|
+
else end({
|
|
375
|
+
ok: true,
|
|
376
|
+
tools,
|
|
377
|
+
said: toolsSaid(tools)
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
send({
|
|
382
|
+
jsonrpc: "2.0",
|
|
383
|
+
id: 1,
|
|
384
|
+
method: "initialize",
|
|
385
|
+
params: {
|
|
386
|
+
protocolVersion: PROTOCOL,
|
|
387
|
+
capabilities: {},
|
|
388
|
+
clientInfo: {
|
|
389
|
+
name: "nolzu",
|
|
390
|
+
version: "0"
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
const closed = new Promise((gone) => child.exitCode !== null || child.signalCode !== null ? gone(null) : child.once("close", gone));
|
|
396
|
+
try {
|
|
397
|
+
if (child.pid !== void 0) process.kill(-child.pid, "SIGKILL");
|
|
398
|
+
} catch {}
|
|
399
|
+
await Promise.race([closed, new Promise((wait) => setTimeout(wait, 5e3))]);
|
|
400
|
+
rmSync(folder, {
|
|
401
|
+
recursive: true,
|
|
402
|
+
force: true
|
|
403
|
+
});
|
|
404
|
+
return answer;
|
|
405
|
+
}
|
|
406
|
+
var toolNames = (result) => Array.isArray(result?.tools) ? result.tools.flatMap((tool) => typeof tool.name === "string" ? [tool.name] : []) : [];
|
|
407
|
+
async function* sseEvents(body) {
|
|
408
|
+
const decoder = new TextDecoder();
|
|
409
|
+
let buffer = "";
|
|
410
|
+
let event = "message";
|
|
411
|
+
let data = [];
|
|
412
|
+
for await (const chunk of body) {
|
|
413
|
+
buffer += decoder.decode(chunk, { stream: true });
|
|
414
|
+
let at;
|
|
415
|
+
while ((at = buffer.indexOf("\n")) >= 0) {
|
|
416
|
+
const line = buffer.slice(0, at).replace(/\r$/, "");
|
|
417
|
+
buffer = buffer.slice(at + 1);
|
|
418
|
+
if (line === "") {
|
|
419
|
+
if (data.length > 0) yield {
|
|
420
|
+
event,
|
|
421
|
+
data: data.join("\n")
|
|
422
|
+
};
|
|
423
|
+
event = "message";
|
|
424
|
+
data = [];
|
|
425
|
+
} else if (!line.startsWith(":")) {
|
|
426
|
+
const colon = line.indexOf(":");
|
|
427
|
+
const field = colon === -1 ? line : line.slice(0, colon);
|
|
428
|
+
const value = colon === -1 ? "" : line.slice(colon + 1).replace(/^ /, "");
|
|
429
|
+
if (field === "event") event = value;
|
|
430
|
+
else if (field === "data") data.push(value);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
async function answerIn(events, id) {
|
|
436
|
+
for (let next = await events.next(); next.done !== true; next = await events.next()) try {
|
|
437
|
+
const message = JSON.parse(next.value.data);
|
|
438
|
+
if (message.id === id) return message;
|
|
439
|
+
} catch {}
|
|
440
|
+
throw new Refused("The server closed the stream before it answered.");
|
|
441
|
+
}
|
|
442
|
+
async function probeRemote(server, secrets, options) {
|
|
443
|
+
if (server.url === "") return {
|
|
444
|
+
ok: false,
|
|
445
|
+
said: "There is no address to reach."
|
|
446
|
+
};
|
|
447
|
+
const fetcher = options.fetch ?? fetch;
|
|
448
|
+
const timeoutMs = options.timeoutMs ?? TIMEOUT_MS;
|
|
449
|
+
const stop = new AbortController();
|
|
450
|
+
const timer = setTimeout(() => stop.abort(new Refused(`No answer in ${Math.ceil(timeoutMs / 1e3)} s.`)), timeoutMs);
|
|
451
|
+
const host = (() => {
|
|
452
|
+
try {
|
|
453
|
+
return new URL(server.url).host;
|
|
454
|
+
} catch {
|
|
455
|
+
return server.url;
|
|
456
|
+
}
|
|
457
|
+
})();
|
|
458
|
+
const refusedBy = async (response) => {
|
|
459
|
+
const said = tail(await response.text().catch(() => ""), secrets);
|
|
460
|
+
return new Refused(`The server answered ${response.status}${response.statusText === "" ? "" : ` ${response.statusText}`}.${said === "" ? "" : ` It said: ${said}`}`);
|
|
461
|
+
};
|
|
462
|
+
const initialize = {
|
|
463
|
+
jsonrpc: "2.0",
|
|
464
|
+
id: 1,
|
|
465
|
+
method: "initialize",
|
|
466
|
+
params: {
|
|
467
|
+
protocolVersion: PROTOCOL,
|
|
468
|
+
capabilities: {},
|
|
469
|
+
clientInfo: {
|
|
470
|
+
name: "nolzu",
|
|
471
|
+
version: "0"
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
const failed = (message, what) => new Refused(`The server refused ${what}: ${redact(message.error?.message ?? "no reason given", secrets)}`);
|
|
476
|
+
try {
|
|
477
|
+
const tools = [];
|
|
478
|
+
if (server.transport === "sse") {
|
|
479
|
+
const stream = await fetcher(server.url, {
|
|
480
|
+
headers: {
|
|
481
|
+
...server.headers,
|
|
482
|
+
accept: "text/event-stream"
|
|
483
|
+
},
|
|
484
|
+
signal: stop.signal
|
|
485
|
+
});
|
|
486
|
+
if (!stream.ok || stream.body === null) throw await refusedBy(stream);
|
|
487
|
+
const events = sseEvents(stream.body);
|
|
488
|
+
let endpoint = null;
|
|
489
|
+
while (endpoint === null) {
|
|
490
|
+
const next = await events.next();
|
|
491
|
+
if (next.done === true) break;
|
|
492
|
+
if (next.value.event === "endpoint") endpoint = new URL(next.value.data, server.url).href;
|
|
493
|
+
}
|
|
494
|
+
if (endpoint === null) throw new Refused("The server closed the stream without saying where to post.");
|
|
495
|
+
const post = async (message) => {
|
|
496
|
+
const sent = await fetcher(endpoint ?? "", {
|
|
497
|
+
method: "POST",
|
|
498
|
+
headers: {
|
|
499
|
+
...server.headers,
|
|
500
|
+
"content-type": "application/json"
|
|
501
|
+
},
|
|
502
|
+
body: JSON.stringify(message),
|
|
503
|
+
signal: stop.signal
|
|
504
|
+
});
|
|
505
|
+
if (!sent.ok) throw await refusedBy(sent);
|
|
506
|
+
};
|
|
507
|
+
await post(initialize);
|
|
508
|
+
const started = await answerIn(events, 1);
|
|
509
|
+
if (started.error !== void 0) throw failed(started, "to start");
|
|
510
|
+
await post({
|
|
511
|
+
jsonrpc: "2.0",
|
|
512
|
+
method: "notifications/initialized"
|
|
513
|
+
});
|
|
514
|
+
for (let page = 1, cursor = void 0; page <= MAX_PAGES; page += 1) {
|
|
515
|
+
await post({
|
|
516
|
+
jsonrpc: "2.0",
|
|
517
|
+
id: page + 1,
|
|
518
|
+
method: "tools/list",
|
|
519
|
+
params: typeof cursor === "string" ? { cursor } : {}
|
|
520
|
+
});
|
|
521
|
+
const listed = await answerIn(events, page + 1);
|
|
522
|
+
if (listed.error !== void 0) throw failed(listed, "to list its tools");
|
|
523
|
+
tools.push(...toolNames(listed.result));
|
|
524
|
+
cursor = listed.result?.nextCursor;
|
|
525
|
+
if (typeof cursor !== "string" || cursor === "") break;
|
|
526
|
+
}
|
|
527
|
+
} else {
|
|
528
|
+
let session = null;
|
|
529
|
+
const post = async (message) => {
|
|
530
|
+
const sent = await fetcher(server.url, {
|
|
531
|
+
method: "POST",
|
|
532
|
+
headers: {
|
|
533
|
+
...server.headers,
|
|
534
|
+
"content-type": "application/json",
|
|
535
|
+
accept: "application/json, text/event-stream",
|
|
536
|
+
"mcp-protocol-version": PROTOCOL,
|
|
537
|
+
...session === null ? {} : { "mcp-session-id": session }
|
|
538
|
+
},
|
|
539
|
+
body: JSON.stringify(message),
|
|
540
|
+
signal: stop.signal
|
|
541
|
+
});
|
|
542
|
+
session = sent.headers.get("mcp-session-id") ?? session;
|
|
543
|
+
if (!sent.ok) throw await refusedBy(sent);
|
|
544
|
+
if (message.id === void 0) return null;
|
|
545
|
+
if ((sent.headers.get("content-type") ?? "").includes("text/event-stream") && sent.body !== null) return answerIn(sseEvents(sent.body), message.id);
|
|
546
|
+
const body = await sent.json();
|
|
547
|
+
const answer = (Array.isArray(body) ? body : [body]).find((one) => one.id === message.id);
|
|
548
|
+
if (answer === void 0) throw new Refused("The server answered with something that is not the answer it was asked for.");
|
|
549
|
+
return answer;
|
|
550
|
+
};
|
|
551
|
+
const started = await post(initialize);
|
|
552
|
+
if (started?.error !== void 0) throw failed(started ?? {}, "to start");
|
|
553
|
+
await post({
|
|
554
|
+
jsonrpc: "2.0",
|
|
555
|
+
method: "notifications/initialized"
|
|
556
|
+
});
|
|
557
|
+
for (let page = 1, cursor = void 0; page <= MAX_PAGES; page += 1) {
|
|
558
|
+
const listed = await post({
|
|
559
|
+
jsonrpc: "2.0",
|
|
560
|
+
id: page + 1,
|
|
561
|
+
method: "tools/list",
|
|
562
|
+
params: typeof cursor === "string" ? { cursor } : {}
|
|
563
|
+
});
|
|
564
|
+
if (listed?.error !== void 0) throw failed(listed ?? {}, "to list its tools");
|
|
565
|
+
tools.push(...toolNames(listed?.result));
|
|
566
|
+
cursor = listed?.result?.nextCursor;
|
|
567
|
+
if (typeof cursor !== "string" || cursor === "") break;
|
|
568
|
+
}
|
|
569
|
+
if (session !== null) await fetcher(server.url, {
|
|
570
|
+
method: "DELETE",
|
|
571
|
+
headers: {
|
|
572
|
+
...server.headers,
|
|
573
|
+
"mcp-session-id": session
|
|
574
|
+
},
|
|
575
|
+
signal: stop.signal
|
|
576
|
+
}).catch(() => void 0);
|
|
577
|
+
}
|
|
578
|
+
return {
|
|
579
|
+
ok: true,
|
|
580
|
+
tools,
|
|
581
|
+
said: toolsSaid(tools)
|
|
582
|
+
};
|
|
583
|
+
} catch (error) {
|
|
584
|
+
const why = stop.signal.aborted && stop.signal.reason instanceof Refused ? stop.signal.reason : error;
|
|
585
|
+
if (why instanceof Refused) return {
|
|
586
|
+
ok: false,
|
|
587
|
+
said: why.message
|
|
588
|
+
};
|
|
589
|
+
const code = error.cause?.code;
|
|
590
|
+
return {
|
|
591
|
+
ok: false,
|
|
592
|
+
said: `Nolzu could not reach ${host}${code === void 0 ? "" : ` (${code})`}. ${redact(error.message, secrets)}`
|
|
593
|
+
};
|
|
594
|
+
} finally {
|
|
595
|
+
clearTimeout(timer);
|
|
596
|
+
stop.abort();
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
//#endregion
|
|
600
|
+
//#region src/lib/mcp-page.ts
|
|
601
|
+
async function mcpPage(db, keychain, projectId, migration = null) {
|
|
602
|
+
const project = getSetting(db, "projectPath");
|
|
603
|
+
const { servers, problems, broken } = readMcpList(project);
|
|
604
|
+
const missing = await missingSecrets(projectId, servers, keychain);
|
|
605
|
+
const profiles = projectProfiles(db);
|
|
606
|
+
const cursor = profiles.some((profile) => profile.vendor === "cursor");
|
|
607
|
+
return {
|
|
608
|
+
hasFolder: project !== null,
|
|
609
|
+
file: MCP_FILE,
|
|
610
|
+
rows: servers.map((entry) => ({
|
|
611
|
+
entry,
|
|
612
|
+
missing: missing[entry.name] ?? [],
|
|
613
|
+
unlimited: unlimitedReadOnly(entry).map(phaseLabel),
|
|
614
|
+
urlWarning: urlWarning(entry),
|
|
615
|
+
cursorSecret: cursor && secretKeysOf(entry).length > 0
|
|
616
|
+
})),
|
|
617
|
+
problems,
|
|
618
|
+
phases: gridPhases(getSetting(db, "offBoards")),
|
|
619
|
+
cursor,
|
|
620
|
+
codex: profiles.some((profile) => profile.vendor === "codex"),
|
|
621
|
+
broken,
|
|
622
|
+
shared: await listShared(project),
|
|
623
|
+
uncommitted: await listUncommitted(project),
|
|
624
|
+
commitProblem: commitProblem(project),
|
|
625
|
+
migration
|
|
626
|
+
};
|
|
627
|
+
}
|
|
628
|
+
var field = (form, name) => form.get(name)?.toString() ?? "";
|
|
629
|
+
var lines = (text) => text.split(/[\n,]/).map((line) => line.trim()).filter((line) => line !== "");
|
|
630
|
+
var toolsOf = (form) => [...new Set(form.getAll("tools").flatMap((one) => lines(one.toString())))];
|
|
631
|
+
function valueRows(form, prefix) {
|
|
632
|
+
const names = form.getAll(`${prefix}.name`).map(String);
|
|
633
|
+
const modes = form.getAll(`${prefix}.mode`).map(String);
|
|
634
|
+
const typed = form.getAll(`${prefix}.value`).map(String);
|
|
635
|
+
return names.flatMap((name, index) => {
|
|
636
|
+
const trimmed = name.trim();
|
|
637
|
+
if (trimmed === "") return [];
|
|
638
|
+
const secret = modes[index] === "secret";
|
|
639
|
+
const value = typed[index] ?? "";
|
|
640
|
+
return [{
|
|
641
|
+
value: secret ? {
|
|
642
|
+
name: trimmed,
|
|
643
|
+
secret: true
|
|
644
|
+
} : {
|
|
645
|
+
name: trimmed,
|
|
646
|
+
secret: false,
|
|
647
|
+
value
|
|
648
|
+
},
|
|
649
|
+
typed: secret ? value : ""
|
|
650
|
+
}];
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
function entryFromForm(form, before) {
|
|
654
|
+
const kind = field(form, "kind") === "remote" ? "remote" : "local";
|
|
655
|
+
const env = valueRows(form, "env");
|
|
656
|
+
const headers = kind === "remote" ? valueRows(form, "header") : [];
|
|
657
|
+
return {
|
|
658
|
+
entry: {
|
|
659
|
+
...emptyEntry(),
|
|
660
|
+
name: field(form, "name").trim(),
|
|
661
|
+
description: field(form, "description").trim(),
|
|
662
|
+
kind,
|
|
663
|
+
command: kind === "local" ? field(form, "command").trim() : "",
|
|
664
|
+
args: kind === "local" ? field(form, "args").split("\n").map((line) => line.trim()).filter((line) => line !== "") : [],
|
|
665
|
+
cwd: kind === "local" ? field(form, "cwd").trim() : "",
|
|
666
|
+
url: kind === "remote" ? field(form, "url").trim() : "",
|
|
667
|
+
transport: field(form, "transport") === "sse" ? "sse" : "http",
|
|
668
|
+
env: env.map((row) => row.value),
|
|
669
|
+
headers: headers.map((row) => row.value),
|
|
670
|
+
tools: toolsOf(form),
|
|
671
|
+
phases: before?.phases ?? [],
|
|
672
|
+
...before?.extra === void 0 ? {} : { extra: before.extra }
|
|
673
|
+
},
|
|
674
|
+
env,
|
|
675
|
+
headers
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Adds a server, or changes the one named `original`. A secret typed in the form goes to the keychain;
|
|
680
|
+
* a secret left empty keeps the value this machine has. A renamed server takes its secrets along.
|
|
681
|
+
* The sentence it was refused with, or null.
|
|
682
|
+
*/
|
|
683
|
+
async function saveServer(db, keychain, form, projectId) {
|
|
684
|
+
const project = getSetting(db, "projectPath");
|
|
685
|
+
if (project === null) return "This project has no folder, so there is nowhere to keep the list.";
|
|
686
|
+
const { servers, broken } = readMcpList(project);
|
|
687
|
+
if (broken !== null) return broken;
|
|
688
|
+
const original = field(form, "original");
|
|
689
|
+
const before = servers.find((entry) => entry.name === original);
|
|
690
|
+
if (original !== "" && before === void 0) return `There is no server ${original} any more. Reload the page.`;
|
|
691
|
+
const { entry, env, headers } = entryFromForm(form, before);
|
|
692
|
+
const others = servers.filter((one) => one !== before);
|
|
693
|
+
const problem = entryProblem(entry, others) ?? urlWarning(entry);
|
|
694
|
+
if (problem !== null) return problem;
|
|
695
|
+
const typed = [...env.map((row) => ({
|
|
696
|
+
key: {
|
|
697
|
+
where: "env",
|
|
698
|
+
name: row.value.name
|
|
699
|
+
},
|
|
700
|
+
typed: row.typed
|
|
701
|
+
})), ...headers.map((row) => ({
|
|
702
|
+
key: {
|
|
703
|
+
where: "header",
|
|
704
|
+
name: row.value.name
|
|
705
|
+
},
|
|
706
|
+
typed: row.typed
|
|
707
|
+
}))];
|
|
708
|
+
let writing = "";
|
|
709
|
+
try {
|
|
710
|
+
for (const { key, typed: value } of typed) {
|
|
711
|
+
if (!secretKeysOf(entry).some((one) => one.where === key.where && one.name === key.name)) continue;
|
|
712
|
+
writing = key.name;
|
|
713
|
+
if (value !== "") {
|
|
714
|
+
await keychain.write(secretName(projectId, entry, key), value);
|
|
715
|
+
continue;
|
|
716
|
+
}
|
|
717
|
+
if (before !== void 0 && secretName(projectId, before, key) !== secretName(projectId, entry, key)) {
|
|
718
|
+
const kept = await keychain.read(secretName(projectId, before, key));
|
|
719
|
+
if (kept !== null) await keychain.write(secretName(projectId, entry, key), kept);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
if (before !== void 0) {
|
|
723
|
+
const still = (key) => secretKeysOf(entry).some((one) => one.where === key.where && one.name === key.name && secretName(projectId, before, key) === secretName(projectId, entry, key));
|
|
724
|
+
for (const key of secretKeysOf(before)) if (!still(key)) await keychain.remove(secretName(projectId, before, key));
|
|
725
|
+
}
|
|
726
|
+
} catch (error) {
|
|
727
|
+
return `The keychain did not take ${writing}. ${error.message}`;
|
|
728
|
+
}
|
|
729
|
+
const fresh = readMcpList(project);
|
|
730
|
+
if (fresh.broken !== null) return fresh.broken;
|
|
731
|
+
const there = fresh.servers.find((one) => one.name === (before?.name ?? entry.name) && before !== void 0);
|
|
732
|
+
const again = entryProblem(entry, fresh.servers.filter((one) => one !== there));
|
|
733
|
+
if (again !== null) return again;
|
|
734
|
+
return writeMcpList(project, there === void 0 ? [...fresh.servers, entry] : fresh.servers.map((one) => one === there ? entry : one));
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* Test, on a saved row or in the open form: the probe starts the server as a run would and asks for its
|
|
738
|
+
* tools. The form is tested as typed, with the secrets typed in it and the saved ones of the server it
|
|
739
|
+
* edits for the rest, and nothing is saved. Never a refusal: a server that does not start is an answer.
|
|
740
|
+
*/
|
|
741
|
+
async function testServer(db, keychain, form, projectId, options = {}) {
|
|
742
|
+
const project = getSetting(db, "projectPath");
|
|
743
|
+
const { servers } = readMcpList(project);
|
|
744
|
+
if (form.has("kind")) {
|
|
745
|
+
const original = field(form, "original");
|
|
746
|
+
const saved = servers.find((one) => one.name === original);
|
|
747
|
+
const { entry, env, headers } = entryFromForm(form, saved);
|
|
748
|
+
const kept = {};
|
|
749
|
+
if (saved !== void 0) for (const key of secretKeysOf(saved)) kept[`${key.where}:${key.name}`] = await keychain.read(secretName(projectId, saved, key)).catch(() => null) ?? "";
|
|
750
|
+
const probe = await probeEntry(entry, {
|
|
751
|
+
project,
|
|
752
|
+
projectId,
|
|
753
|
+
keychain,
|
|
754
|
+
typed: Object.fromEntries([...env.map((row) => [`env:${row.value.name}`, row.typed]), ...headers.map((row) => [`header:${row.value.name}`, row.typed])].map(([where, value]) => [where, value === "" ? kept[where] ?? "" : value]))
|
|
755
|
+
}, options);
|
|
756
|
+
return {
|
|
757
|
+
name: original === "" ? entry.name : original,
|
|
758
|
+
from: "form",
|
|
759
|
+
ok: probe.ok,
|
|
760
|
+
said: probe.said,
|
|
761
|
+
tools: probe.ok ? probe.tools : [],
|
|
762
|
+
chosen: entry.tools
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
const name = field(form, "name");
|
|
766
|
+
const entry = servers.find((one) => one.name === name);
|
|
767
|
+
if (entry === void 0) return {
|
|
768
|
+
name,
|
|
769
|
+
from: "row",
|
|
770
|
+
ok: false,
|
|
771
|
+
said: `There is no server ${name}. Reload the page.`,
|
|
772
|
+
tools: [],
|
|
773
|
+
chosen: []
|
|
774
|
+
};
|
|
775
|
+
const probe = await probeEntry(entry, {
|
|
776
|
+
project,
|
|
777
|
+
projectId,
|
|
778
|
+
keychain
|
|
779
|
+
}, options);
|
|
780
|
+
return {
|
|
781
|
+
name,
|
|
782
|
+
from: "row",
|
|
783
|
+
ok: probe.ok,
|
|
784
|
+
said: probe.said,
|
|
785
|
+
tools: probe.ok ? probe.tools : [],
|
|
786
|
+
chosen: entry.tools
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
/** Takes a server out of the list, with its secrets. */
|
|
790
|
+
async function deleteServer(db, keychain, name, projectId) {
|
|
791
|
+
const project = getSetting(db, "projectPath");
|
|
792
|
+
const { servers, broken } = readMcpList(project);
|
|
793
|
+
if (broken !== null) return broken;
|
|
794
|
+
const found = servers.find((entry) => entry.name === name);
|
|
795
|
+
if (project === null || found === void 0) return `There is no server ${name}. Reload the page.`;
|
|
796
|
+
const problem = writeMcpList(project, servers.filter((entry) => entry !== found));
|
|
797
|
+
if (problem !== null) return problem;
|
|
798
|
+
await removeSecrets(projectId, found, keychain).catch(() => void 0);
|
|
799
|
+
return null;
|
|
800
|
+
}
|
|
801
|
+
/** One cell of the grid. */
|
|
802
|
+
function setPhase(db, name, phase, on) {
|
|
803
|
+
const project = getSetting(db, "projectPath");
|
|
804
|
+
const { servers, broken } = readMcpList(project);
|
|
805
|
+
if (broken !== null) return broken;
|
|
806
|
+
const found = servers.find((entry) => entry.name === name);
|
|
807
|
+
if (found === void 0) return `There is no server ${name}. Reload the page.`;
|
|
808
|
+
const phases = on ? [.../* @__PURE__ */ new Set([...found.phases, phase])] : found.phases.filter((one) => one !== phase);
|
|
809
|
+
const next = {
|
|
810
|
+
...found,
|
|
811
|
+
phases
|
|
812
|
+
};
|
|
813
|
+
const problem = entryProblem(next, servers.filter((entry) => entry !== found));
|
|
814
|
+
if (problem !== null) return problem;
|
|
815
|
+
return writeMcpList(project, servers.map((entry) => entry === found ? next : entry));
|
|
816
|
+
}
|
|
817
|
+
/** The value of one secret this machine lacks, from the "Needs secret" field. */
|
|
818
|
+
async function saveSecret(db, keychain, name, where, key, value, projectId) {
|
|
819
|
+
const project = getSetting(db, "projectPath");
|
|
820
|
+
const found = readMcpList(project).servers.find((entry) => entry.name === name);
|
|
821
|
+
const secret = found === void 0 ? void 0 : secretKeysOf(found).find((one) => one.where === where && one.name === key);
|
|
822
|
+
if (project === null || found === void 0 || secret === void 0) return `${name} has no secret ${key}. Reload the page.`;
|
|
823
|
+
if (value === "") return `Type the value of ${key}.`;
|
|
824
|
+
try {
|
|
825
|
+
await keychain.write(secretName(projectId, found, secret), value);
|
|
826
|
+
} catch (error) {
|
|
827
|
+
return error.message;
|
|
828
|
+
}
|
|
829
|
+
return null;
|
|
830
|
+
}
|
|
831
|
+
//#endregion
|
|
832
|
+
//#region src/routes/settings/mcp/+page.server.ts
|
|
833
|
+
var load = async ({ request }) => {
|
|
834
|
+
const live = loop();
|
|
835
|
+
const migration = crossSiteRead(request.headers.get("sec-fetch-site")) ? null : await migrateQaBrowser(live.db, live.project, appKeychain(), join(live.dataDir, PLAYWRIGHT_FILE)).catch((error) => error.message);
|
|
836
|
+
return mcpPage(live.db, appKeychain(), live.project, migration);
|
|
837
|
+
};
|
|
838
|
+
var done = async (field, message) => {
|
|
839
|
+
if (message !== null) return fail(400, {
|
|
840
|
+
field,
|
|
841
|
+
message
|
|
842
|
+
});
|
|
843
|
+
loop().changed();
|
|
844
|
+
const unsaved = await commitMcpList(getSetting(database(), "projectPath"));
|
|
845
|
+
return unsaved === null ? {
|
|
846
|
+
field,
|
|
847
|
+
saved: true
|
|
848
|
+
} : fail(400, {
|
|
849
|
+
field,
|
|
850
|
+
message: unsaved
|
|
851
|
+
});
|
|
852
|
+
};
|
|
853
|
+
var actions = {
|
|
854
|
+
save: async ({ request }) => {
|
|
855
|
+
const form = await request.formData();
|
|
856
|
+
const message = await saveServer(database(), appKeychain(), form, loop().project);
|
|
857
|
+
return message === null ? await done("server", null) : fail(400, {
|
|
858
|
+
field: "server",
|
|
859
|
+
message,
|
|
860
|
+
original: form.get("original")?.toString() ?? ""
|
|
861
|
+
});
|
|
862
|
+
},
|
|
863
|
+
delete: async ({ request }) => done("server", await deleteServer(database(), appKeychain(), (await request.formData()).get("name")?.toString() ?? "", loop().project)),
|
|
864
|
+
phase: async ({ request }) => {
|
|
865
|
+
const form = await request.formData();
|
|
866
|
+
const message = setPhase(database(), form.get("name")?.toString() ?? "", form.get("phase")?.toString() ?? "", form.get("on") === "true");
|
|
867
|
+
if (message !== null) return fail(400, {
|
|
868
|
+
field: "grid",
|
|
869
|
+
message
|
|
870
|
+
});
|
|
871
|
+
loop().changed();
|
|
872
|
+
commitMcpListSoon(getSetting(database(), "projectPath"));
|
|
873
|
+
return {
|
|
874
|
+
field: "grid",
|
|
875
|
+
saved: true
|
|
876
|
+
};
|
|
877
|
+
},
|
|
878
|
+
find: () => {
|
|
879
|
+
return {
|
|
880
|
+
field: "import",
|
|
881
|
+
found: findImports(homedir(), getSetting(database(), "projectPath")).map((one) => ({
|
|
882
|
+
key: one.key,
|
|
883
|
+
source: one.source,
|
|
884
|
+
name: one.entry.name,
|
|
885
|
+
kind: one.entry.kind,
|
|
886
|
+
env: one.entry.env.map((value) => ({
|
|
887
|
+
name: value.name,
|
|
888
|
+
secret: value.secret
|
|
889
|
+
})),
|
|
890
|
+
headers: one.entry.headers.map((value) => value.name)
|
|
891
|
+
}))
|
|
892
|
+
};
|
|
893
|
+
},
|
|
894
|
+
import: async ({ request }) => {
|
|
895
|
+
const form = await request.formData();
|
|
896
|
+
return done("import", await importServers(database(), appKeychain(), homedir(), form.getAll("pick").map(String), form.getAll("plain").map(String), loop().project));
|
|
897
|
+
},
|
|
898
|
+
test: async ({ request }) => ({
|
|
899
|
+
field: "test",
|
|
900
|
+
test: await testServer(database(), appKeychain(), await request.formData(), loop().project)
|
|
901
|
+
}),
|
|
902
|
+
secret: async ({ request }) => {
|
|
903
|
+
const form = await request.formData();
|
|
904
|
+
const name = form.get("name")?.toString() ?? "";
|
|
905
|
+
const message = await saveSecret(database(), appKeychain(), name, form.get("where")?.toString() ?? "", form.get("key")?.toString() ?? "", form.get("value")?.toString() ?? "", loop().project);
|
|
906
|
+
if (message !== null) return fail(400, {
|
|
907
|
+
field: `secret:${name}`,
|
|
908
|
+
message
|
|
909
|
+
});
|
|
910
|
+
loop().changed();
|
|
911
|
+
return {
|
|
912
|
+
field: `secret:${name}`,
|
|
913
|
+
saved: true
|
|
914
|
+
};
|
|
915
|
+
}
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
919
|
+
__proto__: null,
|
|
920
|
+
actions: actions,
|
|
921
|
+
load: load
|
|
922
|
+
});
|
|
923
|
+
|
|
924
|
+
export { _page_server_ts as _ };
|
|
925
|
+
//# sourceMappingURL=_page.server.ts.js-TFISfO1a.js.map
|