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,394 @@
|
|
|
1
|
+
import './src.js-Cm8RAH_q.js';
|
|
2
|
+
import { g as frontmatterEnd, h as frontmatterDescription, j as frontmatterPaths, i as isMaintenanceKey } from './src2.js-CV8tsClO.js';
|
|
3
|
+
import { p as patchLines } from './patch.js-Bl7vwsUj.js';
|
|
4
|
+
|
|
5
|
+
//#region ../../packages/ui/src/knowledge.ts
|
|
6
|
+
var PATH_WORDS = {
|
|
7
|
+
there: "on the base branch",
|
|
8
|
+
gone: "not on the base branch",
|
|
9
|
+
unchecked: "not checked"
|
|
10
|
+
};
|
|
11
|
+
var STATUS_LABELS = {
|
|
12
|
+
applied: "applied",
|
|
13
|
+
reverted: "reverted",
|
|
14
|
+
pending: "waiting for review",
|
|
15
|
+
returned: "returned"
|
|
16
|
+
};
|
|
17
|
+
var day = (iso) => iso === null ? null : iso.slice(0, 10);
|
|
18
|
+
var MONTHS = [
|
|
19
|
+
"Jan",
|
|
20
|
+
"Feb",
|
|
21
|
+
"Mar",
|
|
22
|
+
"Apr",
|
|
23
|
+
"May",
|
|
24
|
+
"Jun",
|
|
25
|
+
"Jul",
|
|
26
|
+
"Aug",
|
|
27
|
+
"Sep",
|
|
28
|
+
"Oct",
|
|
29
|
+
"Nov",
|
|
30
|
+
"Dec"
|
|
31
|
+
];
|
|
32
|
+
var dayMonth = (iso) => {
|
|
33
|
+
if (iso === null) return null;
|
|
34
|
+
const [, month, date] = iso.split("-").map(Number);
|
|
35
|
+
return `${date} ${MONTHS[(month ?? 1) - 1]}`;
|
|
36
|
+
};
|
|
37
|
+
var REPO_FILE = "repository.md";
|
|
38
|
+
var SHARED = "shared";
|
|
39
|
+
var FOLDER_LABELS = { [SHARED]: "Shared" };
|
|
40
|
+
function knowledgeTree(files, repos = []) {
|
|
41
|
+
const top = [];
|
|
42
|
+
const folders = [];
|
|
43
|
+
const only = repos.length === 1 && repos[0] !== "." ? `${repos[0]}/` : null;
|
|
44
|
+
for (const file of files) {
|
|
45
|
+
const cut = file.path.indexOf("/");
|
|
46
|
+
if (cut === -1 || only !== null && file.path.startsWith(only)) {
|
|
47
|
+
top.push(cut === -1 ? file : {
|
|
48
|
+
...file,
|
|
49
|
+
name: file.path.slice(cut + 1)
|
|
50
|
+
});
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
const path = file.path.slice(0, cut);
|
|
54
|
+
let folder = folders.find((one) => one.path === path);
|
|
55
|
+
if (folder === void 0) {
|
|
56
|
+
folder = {
|
|
57
|
+
path,
|
|
58
|
+
label: FOLDER_LABELS[path] ?? path,
|
|
59
|
+
files: [],
|
|
60
|
+
holdsOpen: false,
|
|
61
|
+
pending: 0
|
|
62
|
+
};
|
|
63
|
+
folders.push(folder);
|
|
64
|
+
}
|
|
65
|
+
folder.files.push({
|
|
66
|
+
...file,
|
|
67
|
+
name: file.path.slice(cut + 1)
|
|
68
|
+
});
|
|
69
|
+
if (file.open) folder.holdsOpen = true;
|
|
70
|
+
if (file.pending) folder.pending += 1;
|
|
71
|
+
}
|
|
72
|
+
const place = (path) => repos.includes(path) ? repos.indexOf(path) : path === SHARED ? repos.length : repos.length + 1;
|
|
73
|
+
const repoFileFirst = (list) => list.sort((a, b) => Number(b.name === REPO_FILE) - Number(a.name === REPO_FILE));
|
|
74
|
+
for (const folder of folders) repoFileFirst(folder.files);
|
|
75
|
+
return {
|
|
76
|
+
top: repoFileFirst(top),
|
|
77
|
+
folders: folders.sort((a, b) => place(a.path) - place(b.path))
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function fileMatches(file, query) {
|
|
81
|
+
const asked = query.trim().toLowerCase();
|
|
82
|
+
return asked === "" || file.name.toLowerCase().includes(asked) || (file.text ?? "").toLowerCase().includes(asked);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The file without its frontmatter block.
|
|
86
|
+
*
|
|
87
|
+
* The block is the file's own bookkeeping, and the right pane shows the description out of it.
|
|
88
|
+
* Rendered as markdown it becomes a rule and a heading that repeat that description, so the middle
|
|
89
|
+
* pane gets the body alone.
|
|
90
|
+
*/
|
|
91
|
+
function fileBody(text) {
|
|
92
|
+
const lines = text.split("\n");
|
|
93
|
+
const end = frontmatterEnd(lines);
|
|
94
|
+
return end === -1 ? text : lines.slice(end + 1).join("\n").replace(/^\n+/, "");
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Who a change came from.
|
|
98
|
+
*
|
|
99
|
+
* A maintenance run belongs to no card and reads "maintenance", which `PROJECT.md` section 7 holds.
|
|
100
|
+
* A card that was deleted answers null, so the screen shows the change and skips the link rather
|
|
101
|
+
* than offering one that leads to a 404.
|
|
102
|
+
*/
|
|
103
|
+
function changeSource(cardKey, cards) {
|
|
104
|
+
if (isMaintenanceKey(cardKey)) return {
|
|
105
|
+
kind: "maintenance",
|
|
106
|
+
key: null,
|
|
107
|
+
title: null
|
|
108
|
+
};
|
|
109
|
+
const card = cards.find((one) => one.key === cardKey);
|
|
110
|
+
return card === void 0 ? null : {
|
|
111
|
+
kind: "card",
|
|
112
|
+
key: card.key,
|
|
113
|
+
title: card.title
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
var busyLabel = (key) => isMaintenanceKey(key) ? "A maintenance run" : key;
|
|
117
|
+
var changeIsOf = (filePath, prefix, path) => filePath === prefix + path;
|
|
118
|
+
var linesOf = (text) => {
|
|
119
|
+
const lines = text.split("\n");
|
|
120
|
+
if (lines.at(-1) === "") lines.pop();
|
|
121
|
+
return lines;
|
|
122
|
+
};
|
|
123
|
+
var MAX_DIFF_CELLS = 25e4;
|
|
124
|
+
/**
|
|
125
|
+
* Where two texts differ, line by line, as groups of lines out and lines in.
|
|
126
|
+
*
|
|
127
|
+
* A change that waits has no commit, so this is how its kept copy is set against the file in the
|
|
128
|
+
* folder. Each group ends where a line stayed the same.
|
|
129
|
+
*/
|
|
130
|
+
function lineGroups(before, after) {
|
|
131
|
+
const a = linesOf(before);
|
|
132
|
+
const b = linesOf(after);
|
|
133
|
+
if (a.length * b.length > MAX_DIFF_CELLS) return a.length + b.length === 0 ? [] : [{
|
|
134
|
+
removed: a,
|
|
135
|
+
added: b
|
|
136
|
+
}];
|
|
137
|
+
const common = Array.from({ length: a.length + 1 }, () => new Uint32Array(b.length + 1));
|
|
138
|
+
for (let i = a.length - 1; i >= 0; i--) for (let j = b.length - 1; j >= 0; j--) common[i][j] = a[i] === b[j] ? common[i + 1][j + 1] + 1 : Math.max(common[i + 1][j], common[i][j + 1]);
|
|
139
|
+
const groups = [];
|
|
140
|
+
let group = null;
|
|
141
|
+
let i = 0;
|
|
142
|
+
let j = 0;
|
|
143
|
+
while (i < a.length || j < b.length) {
|
|
144
|
+
if (i < a.length && j < b.length && a[i] === b[j]) {
|
|
145
|
+
group = null;
|
|
146
|
+
i++;
|
|
147
|
+
j++;
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
if (group === null) {
|
|
151
|
+
group = {
|
|
152
|
+
removed: [],
|
|
153
|
+
added: []
|
|
154
|
+
};
|
|
155
|
+
groups.push(group);
|
|
156
|
+
}
|
|
157
|
+
if (j < b.length && (i === a.length || common[i][j + 1] >= common[i + 1][j])) group.added.push(b[j++]);
|
|
158
|
+
else group.removed.push(a[i++]);
|
|
159
|
+
}
|
|
160
|
+
return groups;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* A line of a knowledge file, cut where its inline code starts and ends.
|
|
164
|
+
*
|
|
165
|
+
* The changed lines are drawn as lines and not as rendered markdown, so this is the one bit of
|
|
166
|
+
* markdown they keep. A line with a lone backtick stays as it is.
|
|
167
|
+
*/
|
|
168
|
+
function codeSpans(line) {
|
|
169
|
+
const pieces = line.split("`");
|
|
170
|
+
if (pieces.length % 2 === 0) return [{
|
|
171
|
+
text: line,
|
|
172
|
+
code: false
|
|
173
|
+
}];
|
|
174
|
+
return pieces.map((text, index) => ({
|
|
175
|
+
text,
|
|
176
|
+
code: index % 2 === 1
|
|
177
|
+
})).filter((piece) => piece.text !== "");
|
|
178
|
+
}
|
|
179
|
+
var HUNK = /^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@/;
|
|
180
|
+
function patchGroups(diff) {
|
|
181
|
+
const groups = [];
|
|
182
|
+
const context = [];
|
|
183
|
+
let group = null;
|
|
184
|
+
let next = -1;
|
|
185
|
+
for (const line of diff.split("\n")) {
|
|
186
|
+
const hunk = HUNK.exec(line);
|
|
187
|
+
if (hunk !== null) {
|
|
188
|
+
const start = Number(hunk[1]);
|
|
189
|
+
next = hunk[2] === "0" ? start : start - 1;
|
|
190
|
+
group = null;
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
if (next === -1 || line.startsWith("\\")) continue;
|
|
194
|
+
const sign = line.slice(0, 1);
|
|
195
|
+
if (sign === "+" || sign === "-") {
|
|
196
|
+
if (group === null) {
|
|
197
|
+
group = {
|
|
198
|
+
at: next,
|
|
199
|
+
removed: [],
|
|
200
|
+
added: []
|
|
201
|
+
};
|
|
202
|
+
groups.push(group);
|
|
203
|
+
}
|
|
204
|
+
if (sign === "+") {
|
|
205
|
+
group.added.push(line.slice(1));
|
|
206
|
+
next++;
|
|
207
|
+
} else group.removed.push(line.slice(1));
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
if (sign === " ") context.push({
|
|
211
|
+
at: next,
|
|
212
|
+
text: line.slice(1)
|
|
213
|
+
});
|
|
214
|
+
group = null;
|
|
215
|
+
next++;
|
|
216
|
+
}
|
|
217
|
+
return {
|
|
218
|
+
groups,
|
|
219
|
+
context
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
var FENCE = /^\s*(```|~~~)/;
|
|
223
|
+
var fences = (lines) => lines.filter((line) => FENCE.test(line)).length;
|
|
224
|
+
var trimmed = (lines) => lines.join("\n").replace(/^\n+|\n+$/g, "");
|
|
225
|
+
/**
|
|
226
|
+
* The open file cut around the lines one change wrote, or null when they cannot be placed.
|
|
227
|
+
*
|
|
228
|
+
* The patch is from the change's own commit, so its lines are where it says only while the file
|
|
229
|
+
* has not moved on. Each one is checked against the file. A cut inside the frontmatter or a code
|
|
230
|
+
* block would break the markdown on either side, so neither is placed.
|
|
231
|
+
*/
|
|
232
|
+
function placeChange(text, diff) {
|
|
233
|
+
const lines = linesOf(text);
|
|
234
|
+
const end = frontmatterEnd(lines);
|
|
235
|
+
let start = end === -1 ? 0 : end + 1;
|
|
236
|
+
while (end !== -1 && start < lines.length && lines[start] === "") start++;
|
|
237
|
+
const { groups, context } = patchGroups(diff);
|
|
238
|
+
if (groups.length === 0 || context.some((one) => lines[one.at] !== one.text)) return null;
|
|
239
|
+
const parts = [];
|
|
240
|
+
let cursor = start;
|
|
241
|
+
for (const group of groups) {
|
|
242
|
+
if (group.at < cursor) return null;
|
|
243
|
+
if (group.added.some((line, index) => lines[group.at + index] !== line)) return null;
|
|
244
|
+
if (fences(lines.slice(start, group.at)) % 2 === 1 || fences(group.added) % 2 === 1) return null;
|
|
245
|
+
const before = trimmed(lines.slice(cursor, group.at));
|
|
246
|
+
if (before !== "") parts.push({
|
|
247
|
+
kind: "text",
|
|
248
|
+
text: before
|
|
249
|
+
});
|
|
250
|
+
parts.push({
|
|
251
|
+
kind: "change",
|
|
252
|
+
removed: group.removed,
|
|
253
|
+
added: group.added
|
|
254
|
+
});
|
|
255
|
+
cursor = group.at + group.added.length;
|
|
256
|
+
}
|
|
257
|
+
const after = trimmed(lines.slice(cursor));
|
|
258
|
+
if (after !== "") parts.push({
|
|
259
|
+
kind: "text",
|
|
260
|
+
text: after
|
|
261
|
+
});
|
|
262
|
+
return parts;
|
|
263
|
+
}
|
|
264
|
+
var countOf = (diff) => {
|
|
265
|
+
const kinds = patchLines(diff).map((line) => line.kind);
|
|
266
|
+
return {
|
|
267
|
+
added: kinds.filter((kind) => kind === "add").length,
|
|
268
|
+
removed: kinds.filter((kind) => kind === "del").length
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
var countGroups = (groups) => ({
|
|
272
|
+
added: groups.reduce((sum, group) => sum + group.added.length, 0),
|
|
273
|
+
removed: groups.reduce((sum, group) => sum + group.removed.length, 0)
|
|
274
|
+
});
|
|
275
|
+
var latest = (stamps) => stamps.reduce((best, at) => at !== null && (best === null || Date.parse(at) > Date.parse(best)) ? at : best, null);
|
|
276
|
+
var problemOf = (input) => {
|
|
277
|
+
if (input.folder === null) return "There is no project set, so there is no knowledge folder yet. Make a project on New project.";
|
|
278
|
+
if (!input.exists) return `There is no folder ${input.shown ?? input.folder} yet. The first wrap-up that teaches something makes it.`;
|
|
279
|
+
return null;
|
|
280
|
+
};
|
|
281
|
+
var diffNote = (change, shortSha) => {
|
|
282
|
+
if (change.diff !== null) return null;
|
|
283
|
+
if ((change.movedFrom ?? null) !== null) return `This change was committed in ${change.movedFrom}, before this project became a workspace. Its diff and its commit are there.`;
|
|
284
|
+
if (change.diffTooLarge) return `This change is too large to show here. Open commit ${shortSha} in the folder to read it.`;
|
|
285
|
+
if (change.status === "returned") return "This change was returned, so nothing was committed and there is no diff.";
|
|
286
|
+
if (change.commitSha === null) return "There is no commit yet. The change waits for a person.";
|
|
287
|
+
return `git has no commit ${shortSha} in this folder, so there is no diff to show.`;
|
|
288
|
+
};
|
|
289
|
+
function knowledgeView(input) {
|
|
290
|
+
const problem = problemOf(input);
|
|
291
|
+
const view = (change) => {
|
|
292
|
+
const shortSha = change.commitSha === null ? null : change.commitSha.slice(0, 7);
|
|
293
|
+
const kept = change.status === "pending" && change.held != null ? lineGroups(change.held.before ?? "", change.held.after ?? "") : null;
|
|
294
|
+
return {
|
|
295
|
+
id: change.id,
|
|
296
|
+
runId: change.runId,
|
|
297
|
+
sha: change.commitSha,
|
|
298
|
+
shortSha,
|
|
299
|
+
status: change.status,
|
|
300
|
+
statusLabel: STATUS_LABELS[change.status],
|
|
301
|
+
summary: change.summary,
|
|
302
|
+
note: change.note,
|
|
303
|
+
when: day(change.committedAt),
|
|
304
|
+
path: change.filePath.startsWith(input.prefix) ? change.filePath.slice(input.prefix.length) : change.filePath,
|
|
305
|
+
phase: change.phase ?? null,
|
|
306
|
+
source: changeSource(change.cardKey, input.cards),
|
|
307
|
+
diff: change.diff,
|
|
308
|
+
diffNote: diffNote(change, shortSha),
|
|
309
|
+
canRevert: false,
|
|
310
|
+
moved: (change.movedFrom ?? null) !== null,
|
|
311
|
+
lines: change.diff !== null ? countOf(change.diff) : kept !== null ? countGroups(kept) : null,
|
|
312
|
+
held: kept
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
const pathsOf = (text) => frontmatterPaths(text).map((path) => {
|
|
316
|
+
const there = input.pathsOnBase?.[path];
|
|
317
|
+
return {
|
|
318
|
+
path,
|
|
319
|
+
state: there === void 0 ? "unchecked" : there ? "there" : "gone"
|
|
320
|
+
};
|
|
321
|
+
});
|
|
322
|
+
const goneOf = (text) => pathsOf(text).flatMap((one) => one.state === "gone" ? [one.path] : []);
|
|
323
|
+
const open = input.open;
|
|
324
|
+
const mine = open === null ? [] : input.changes.filter((change) => changeIsOf(change.filePath, input.prefix, open.path)).map(view);
|
|
325
|
+
const newest = mine.findLast((change) => change.status === "applied" && !change.moved);
|
|
326
|
+
if (newest !== void 0) newest.canRevert = true;
|
|
327
|
+
const taughtBy = [];
|
|
328
|
+
for (const change of mine) {
|
|
329
|
+
const source = change.source;
|
|
330
|
+
if (change.status !== "applied" || source === null) continue;
|
|
331
|
+
if (!taughtBy.some((one) => one.kind === source.kind && one.key === source.key)) taughtBy.push(source);
|
|
332
|
+
}
|
|
333
|
+
const reviewed = latest(input.changes.filter((change) => change.status === "applied" && change.committedAt !== null).map((change) => change.committedAt));
|
|
334
|
+
const optimized = latest(input.changes.filter((change) => change.cardKey === "kb-maintenance" && change.phase !== "orient").map((change) => change.committedAt));
|
|
335
|
+
const inline = newest === void 0 ? null : {
|
|
336
|
+
change: newest,
|
|
337
|
+
whole: newest.diff !== null && /^@@ -0,0 /m.test(newest.diff)
|
|
338
|
+
};
|
|
339
|
+
const placed = open === null || inline === null || inline.whole || inline.change.diff === null ? null : placeChange(open.text, inline.change.diff);
|
|
340
|
+
return {
|
|
341
|
+
folder: input.folder,
|
|
342
|
+
problem,
|
|
343
|
+
empty: problem === null && input.files.length === 0,
|
|
344
|
+
fileCount: input.files.length,
|
|
345
|
+
lastReviewed: day(reviewed),
|
|
346
|
+
lastOptimize: day(optimized),
|
|
347
|
+
place: input.folder === null ? null : input.prefix === "" ? input.shown ?? input.folder : input.prefix.replace(/\/$/, ""),
|
|
348
|
+
busy: busyLabel(input.busy),
|
|
349
|
+
files: input.files.map((path) => ({
|
|
350
|
+
path,
|
|
351
|
+
name: path.split("/").pop() ?? path,
|
|
352
|
+
open: open?.path === path,
|
|
353
|
+
updated: day(input.fileDates?.[path] ?? null),
|
|
354
|
+
text: input.fileTexts?.[path] ?? "",
|
|
355
|
+
gone: goneOf(path === open?.path ? open.text : input.fileTexts?.[path] ?? ""),
|
|
356
|
+
pending: input.changes.some((change) => change.status === "pending" && changeIsOf(change.filePath, input.prefix, path))
|
|
357
|
+
})),
|
|
358
|
+
open: open === null ? null : {
|
|
359
|
+
path: open.path,
|
|
360
|
+
repoPath: input.prefix + open.path,
|
|
361
|
+
lineCount: linesOf(open.text).length,
|
|
362
|
+
body: fileBody(open.text),
|
|
363
|
+
parts: placed ?? [{
|
|
364
|
+
kind: "text",
|
|
365
|
+
text: fileBody(open.text)
|
|
366
|
+
}],
|
|
367
|
+
inline,
|
|
368
|
+
description: frontmatterDescription(open.text),
|
|
369
|
+
paths: pathsOf(open.text),
|
|
370
|
+
taughtBy,
|
|
371
|
+
history: [...mine].reverse()
|
|
372
|
+
},
|
|
373
|
+
pending: input.changes.filter((change) => change.status === "pending").map(view),
|
|
374
|
+
repos: input.repos ?? []
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
function pendingRuns(pending) {
|
|
378
|
+
const runs = [];
|
|
379
|
+
for (const change of pending) {
|
|
380
|
+
const found = runs.find((one) => one.runId === change.runId);
|
|
381
|
+
const by = change.phase === "orient" ? "Learn this project" : change.phase === "learn-repo" ? "Learn your repositories" : change.source?.kind === "maintenance" ? "Optimize" : "wrap-up";
|
|
382
|
+
if (found === void 0) runs.push({
|
|
383
|
+
runId: change.runId,
|
|
384
|
+
source: change.source,
|
|
385
|
+
by,
|
|
386
|
+
changes: [change]
|
|
387
|
+
});
|
|
388
|
+
else found.changes.push(change);
|
|
389
|
+
}
|
|
390
|
+
return runs;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export { PATH_WORDS as P, fileMatches as a, knowledgeTree as b, changeIsOf as c, dayMonth as d, codeSpans as e, fileBody as f, knowledgeView as k, pendingRuns as p };
|
|
394
|
+
//# sourceMappingURL=knowledge.js--eAgdzNx.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { i as isBoardKind, a as isResearchKind } from './board.js-BxL3CjB1.js';
|
|
2
|
+
import './src.js-Cm8RAH_q.js';
|
|
3
|
+
|
|
4
|
+
//#region src/lib/follow.svelte.ts
|
|
5
|
+
var Follow = class {
|
|
6
|
+
state = null;
|
|
7
|
+
};
|
|
8
|
+
var follow = new Follow();
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/lib/last-board.ts
|
|
11
|
+
var KEY = "nolzu.lastBoard";
|
|
12
|
+
function lastBoard(off) {
|
|
13
|
+
let kept;
|
|
14
|
+
try {
|
|
15
|
+
kept = sessionStorage.getItem(KEY);
|
|
16
|
+
} catch {
|
|
17
|
+
kept = null;
|
|
18
|
+
}
|
|
19
|
+
return kept !== null && isBoardKind(kept) && !isResearchKind(kept) && !off.includes(kept) ? kept : "delivery";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { follow as f, lastBoard as l };
|
|
23
|
+
//# sourceMappingURL=last-board.js-BemeiK3t.js.map
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { b as formatTokens, a as formatDuration, f as formatCost } from './spend.js-BabnR69T.js';
|
|
2
|
+
import './src.js-Cm8RAH_q.js';
|
|
3
|
+
import { t as tokensSoFar } from './run.js-COSejjLl.js';
|
|
4
|
+
import { e as elapsed } from './elapsed.js-DikkNhaD.js';
|
|
5
|
+
|
|
6
|
+
//#region ../../packages/ui/src/ticket/log.ts
|
|
7
|
+
var KIND_WORDS = {
|
|
8
|
+
session: "session",
|
|
9
|
+
text: "says",
|
|
10
|
+
tool: "tool",
|
|
11
|
+
result: "result",
|
|
12
|
+
usage: "tokens",
|
|
13
|
+
retry: "retry",
|
|
14
|
+
limit: "limit",
|
|
15
|
+
question: "asks",
|
|
16
|
+
denied: "refused",
|
|
17
|
+
complete: "done",
|
|
18
|
+
failed: "failed"
|
|
19
|
+
};
|
|
20
|
+
var LOG_WORDS = {
|
|
21
|
+
...KIND_WORDS,
|
|
22
|
+
text: "assistant",
|
|
23
|
+
tool: "tool call"
|
|
24
|
+
};
|
|
25
|
+
var ENDED_RUN = [
|
|
26
|
+
"complete",
|
|
27
|
+
"failed",
|
|
28
|
+
"stopped",
|
|
29
|
+
"interrupted"
|
|
30
|
+
];
|
|
31
|
+
var GOES = ["running", "retrying"];
|
|
32
|
+
/**
|
|
33
|
+
* The footer of the Log tab: how long the run took or has taken so far, and its tokens and cost only
|
|
34
|
+
* where the engine reported them. A running run counts its tokens off its own usage lines, and an
|
|
35
|
+
* ended one reads its row. Cost comes at the end or not at all, so a running run shows none.
|
|
36
|
+
*/
|
|
37
|
+
function runTotals(run, events, now) {
|
|
38
|
+
const ended = ENDED_RUN.includes(run.state ?? "");
|
|
39
|
+
const until = run.endedAt != null ? new Date(run.endedAt) : ended ? null : now;
|
|
40
|
+
const tokens = run.tokens ?? tokensSoFar(events);
|
|
41
|
+
return {
|
|
42
|
+
elapsed: run.startedAt === null || until === null ? null : elapsed(run.startedAt, until),
|
|
43
|
+
tokens: tokens === null ? null : formatTokens(tokens),
|
|
44
|
+
cost: run.costUsd == null ? null : formatCost(run.costUsd),
|
|
45
|
+
unpriced: ended && run.costUsd == null
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function runTag(run) {
|
|
49
|
+
if (GOES.includes(run.state ?? "")) return "running";
|
|
50
|
+
if (!ENDED_RUN.includes(run.state ?? "")) return "queued";
|
|
51
|
+
const figures = [run.durationMs == null ? null : formatDuration(run.durationMs), run.costUsd == null ? null : formatCost(run.costUsd)].filter((one) => one !== null);
|
|
52
|
+
return [run.state === "complete" ? "done" : run.state, ...figures].join(" · ");
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The Log tab's run list, newest first as the page hands the runs: runs of one phase in a row sit under
|
|
56
|
+
* one heading, and a phase that ran more than once numbers its runs.
|
|
57
|
+
*/
|
|
58
|
+
function runGroups(runs) {
|
|
59
|
+
const left = /* @__PURE__ */ new Map();
|
|
60
|
+
for (const one of runs) left.set(one.phase, (left.get(one.phase) ?? 0) + 1);
|
|
61
|
+
const total = new Map(left);
|
|
62
|
+
const groups = [];
|
|
63
|
+
for (const run of runs) {
|
|
64
|
+
const attempt = left.get(run.phase);
|
|
65
|
+
left.set(run.phase, attempt - 1);
|
|
66
|
+
const row = {
|
|
67
|
+
run,
|
|
68
|
+
attempt: total.get(run.phase) > 1 ? attempt : null
|
|
69
|
+
};
|
|
70
|
+
const last = groups.at(-1);
|
|
71
|
+
if (last?.phase === run.phase) last.runs.push(row);
|
|
72
|
+
else groups.push({
|
|
73
|
+
phase: run.phase,
|
|
74
|
+
runs: [row]
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return groups;
|
|
78
|
+
}
|
|
79
|
+
var runCount = (phase, n) => `${phase === "feedback" ? "Run" : "Attempt"} ${n}`;
|
|
80
|
+
var wait = (ms) => ms >= 6e4 ? `${Math.round(ms / 6e4)} min` : `${Math.round(ms / 1e3)} s`;
|
|
81
|
+
var WINDOW = {
|
|
82
|
+
five_hour: "5-hour",
|
|
83
|
+
seven_day: "weekly"
|
|
84
|
+
};
|
|
85
|
+
function byteSize(bytes) {
|
|
86
|
+
if (bytes < 1024) return `${bytes} B`;
|
|
87
|
+
const kb = bytes / 1024;
|
|
88
|
+
if (kb < 10) return `${kb.toFixed(1)} KB`;
|
|
89
|
+
return kb < 1024 ? `${Math.round(kb)} KB` : `${(kb / 1024).toFixed(1)} MB`;
|
|
90
|
+
}
|
|
91
|
+
var why = (reason) => reason ?? "No reason given";
|
|
92
|
+
var tries = (one) => `attempt ${one.attempt}${one.maxRetries === null ? "" : ` of ${one.maxRetries}`}`;
|
|
93
|
+
/**
|
|
94
|
+
* A wait Nolzu holds, counted down to the stored time the next try starts: "API Error: 529
|
|
95
|
+
* Overloaded, retrying in 2m 14s, attempt 2 of 3". Whole seconds, rounded up, so the count never
|
|
96
|
+
* reads 0s while the wait still runs. Now, the card and the log say it in these words.
|
|
97
|
+
*/
|
|
98
|
+
function retryLine(one, now) {
|
|
99
|
+
const left = one.until - now;
|
|
100
|
+
const when = left > 0 ? `retrying in ${formatDuration(Math.ceil(left / 1e3) * 1e3)}` : "retrying now";
|
|
101
|
+
return `${why(one.reason)}, ${when}, ${tries(one)}`;
|
|
102
|
+
}
|
|
103
|
+
function row(event, now, over, ended) {
|
|
104
|
+
switch (event.type) {
|
|
105
|
+
case "session": return {
|
|
106
|
+
kind: "session",
|
|
107
|
+
text: `Session ${event.sessionId}${event.model === null ? "" : ` on ${event.model}`}${event.apiKeyMode === true ? ", with an API key" : ""}`
|
|
108
|
+
};
|
|
109
|
+
case "text": {
|
|
110
|
+
const said = event.text.split("\n").filter((line) => line.trim() !== "NOLZU: complete" && !line.trim().startsWith("NOLZU: needs_input: ")).join("\n").trim();
|
|
111
|
+
return said === "" ? null : {
|
|
112
|
+
kind: "text",
|
|
113
|
+
text: said
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
case "tool": return {
|
|
117
|
+
kind: "tool",
|
|
118
|
+
text: event.name,
|
|
119
|
+
detail: JSON.stringify(event.input, null, 2)
|
|
120
|
+
};
|
|
121
|
+
case "tool_result": {
|
|
122
|
+
const lines = event.lines === void 0 ? null : event.lines === 1 ? "1 line" : `${event.lines} lines`;
|
|
123
|
+
return {
|
|
124
|
+
kind: "result",
|
|
125
|
+
text: [event.error ? "Error" : null, lines].filter((one) => one !== null).join(", "),
|
|
126
|
+
aside: byteSize(event.bytes)
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
case "api_retry":
|
|
130
|
+
if (event.until !== void 0) {
|
|
131
|
+
const one = {
|
|
132
|
+
attempt: event.attempt,
|
|
133
|
+
maxRetries: event.maxRetries,
|
|
134
|
+
reason: event.reason,
|
|
135
|
+
until: event.until
|
|
136
|
+
};
|
|
137
|
+
return {
|
|
138
|
+
kind: "retry",
|
|
139
|
+
text: `${over ? `${why(event.reason)}, tried again after ${wait(event.delayMs)}, ${tries(one)}` : ended ? `${why(event.reason)}, stopped waiting to try again, ${tries(one)}` : retryLine(one, now)}${event.status === null ? "" : `, status ${event.status}`}`
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
kind: "retry",
|
|
144
|
+
text: `Retry ${event.attempt} after ${wait(event.delayMs)}, ${event.reason?.replaceAll("_", " ") ?? "no reason given"}, ${event.status === null ? "no status" : `status ${event.status}`}`
|
|
145
|
+
};
|
|
146
|
+
case "rate_limit": return {
|
|
147
|
+
kind: "limit",
|
|
148
|
+
text: event.windows.map((one) => {
|
|
149
|
+
const used = one.used === null ? "share not reported" : `${Math.round(one.used * 100)}% used`;
|
|
150
|
+
const resets = one.resetsAt === null ? "no reset time reported" : `resets ${(/* @__PURE__ */ new Date(one.resetsAt * 1e3)).toLocaleString()}`;
|
|
151
|
+
return `${WINDOW[one.name] ?? one.name} limit ${used}, ${resets}`;
|
|
152
|
+
}).join("; ")
|
|
153
|
+
};
|
|
154
|
+
case "needs_input": return {
|
|
155
|
+
kind: "question",
|
|
156
|
+
text: `Asked: ${event.question}`
|
|
157
|
+
};
|
|
158
|
+
case "permission_denied": {
|
|
159
|
+
const reasons = event.denied.flatMap((one) => one.reason === void 0 ? [] : [one.reason.replace(/\.$/, "")]);
|
|
160
|
+
const because = reasons.length === 0 ? "" : `. ${reasons.join(". ")}`;
|
|
161
|
+
return {
|
|
162
|
+
kind: "denied",
|
|
163
|
+
text: `Refused: ${event.denied.map((one) => one.path === null ? one.tool : `${one.tool} on ${one.path}`).join(", ")}${because}${variableHint(event.denied)}`
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
case "complete": return {
|
|
167
|
+
kind: "complete",
|
|
168
|
+
text: `Done${event.durationMs === null ? "" : ` in ${formatDuration(event.durationMs)}`}${event.costUsd === null ? "" : `, ${formatCost(event.costUsd)} estimated`}`
|
|
169
|
+
};
|
|
170
|
+
case "failed": return {
|
|
171
|
+
kind: "failed",
|
|
172
|
+
text: `Failed: ${event.reason}${event.status === null ? "" : `, status ${event.status}`}`
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
var pad = (value) => String(value).padStart(2, "0");
|
|
178
|
+
function sinceStart(ms) {
|
|
179
|
+
const seconds = Math.max(0, Math.floor(ms / 1e3));
|
|
180
|
+
const hours = Math.floor(seconds / 3600);
|
|
181
|
+
const minutes = Math.floor(seconds % 3600 / 60);
|
|
182
|
+
return hours > 0 ? `${hours}:${pad(minutes)}:${pad(seconds % 60)}` : `${minutes}:${pad(seconds % 60)}`;
|
|
183
|
+
}
|
|
184
|
+
function clockTime(ms, timeZone) {
|
|
185
|
+
return new Intl.DateTimeFormat("en-GB", {
|
|
186
|
+
timeZone,
|
|
187
|
+
hour: "2-digit",
|
|
188
|
+
minute: "2-digit",
|
|
189
|
+
second: "2-digit",
|
|
190
|
+
hour12: false
|
|
191
|
+
}).format(new Date(ms));
|
|
192
|
+
}
|
|
193
|
+
function variableHint(denied) {
|
|
194
|
+
for (const one of denied) {
|
|
195
|
+
if (one.tool !== "Bash" || one.path === null || /[;&|<>`$()*?[\]\n"'\\]/.test(one.path)) continue;
|
|
196
|
+
const words = one.path.trim().split(/\s+/);
|
|
197
|
+
const first = words.findIndex((word) => !/^[A-Za-z_][A-Za-z0-9_]*=/.test(word));
|
|
198
|
+
if (first < 1 || words[first].startsWith("-")) continue;
|
|
199
|
+
return `. A command with a variable in front matches only a rule that names the variable too. To allow it, add ${words.join(" ")} to the project's allowed commands, with a * at the end for any arguments.`;
|
|
200
|
+
}
|
|
201
|
+
return "";
|
|
202
|
+
}
|
|
203
|
+
function logRows(events, now = Date.now(), ended = false, start = null, clock) {
|
|
204
|
+
const totals = /* @__PURE__ */ new Map();
|
|
205
|
+
tokensSoFar(events, (at, total) => totals.set(at, total));
|
|
206
|
+
return events.flatMap((event, at) => {
|
|
207
|
+
const time = event.at === void 0 ? {} : clock !== void 0 ? { time: clock(event.at) } : start === null ? {} : { time: sinceStart(event.at - start) };
|
|
208
|
+
if (event.type !== "usage") {
|
|
209
|
+
const one = row(event, now, at < events.length - 1, ended);
|
|
210
|
+
if (one === null) return [];
|
|
211
|
+
const subject = event.type === "tool" && typeof event.subject === "string" && event.subject !== "" ? { subject: event.subject } : {};
|
|
212
|
+
return [{
|
|
213
|
+
...one,
|
|
214
|
+
...subject,
|
|
215
|
+
...time
|
|
216
|
+
}];
|
|
217
|
+
}
|
|
218
|
+
const total = totals.get(at);
|
|
219
|
+
return total === void 0 ? [] : [{
|
|
220
|
+
kind: "usage",
|
|
221
|
+
text: `${formatTokens(total)} tokens so far`,
|
|
222
|
+
...time
|
|
223
|
+
}];
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export { ENDED_RUN as E, KIND_WORDS as K, LOG_WORDS as L, runTag as a, byteSize as b, clockTime as c, runCount as d, runGroups as e, runTotals as f, logRows as l, retryLine as r };
|
|
228
|
+
//# sourceMappingURL=log.js-R2zUph6T.js.map
|