nolune 0.3.0 → 0.4.1
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/DESIGN.md +78 -13
- package/README.md +8 -3
- package/dist/chunks/chunk-Q2SFBVOW.js +98 -0
- package/dist/chunks/{chunk-X5NOWUT3.js → chunk-SAHRBQRY.js} +10 -0
- package/dist/chunks/dist-GDITDWPF.js +25967 -0
- package/dist/chunks/package-FOKY5K5X-BH7I5TWU.js +11 -0
- package/dist/chunks/{run-4BVL7HRR.js → run-S3ZTQGNB.js} +589 -192
- package/dist/chunks/undici-L635ERP4.js +27760 -0
- package/dist/cli.js +2 -2
- package/package.json +1 -1
- package/packages/core/skills/nolune/SKILL.md +11 -7
- package/packages/core/skills/web/SKILL.md +58 -0
- package/packages/web/build/client/_app/immutable/assets/0.BTfoEJ25.css +2 -0
- package/packages/web/build/client/_app/immutable/assets/0.BTfoEJ25.css.br +0 -0
- package/packages/web/build/client/_app/immutable/assets/0.BTfoEJ25.css.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DOuygBXh.js → -a41bKUt.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/-a41bKUt.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/-a41bKUt.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{3YJAVtuL.js → 3iarMxmE.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/3iarMxmE.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/3iarMxmE.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{EGNFfXHI.js → 5XewChRe.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/5XewChRe.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/5XewChRe.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{JLT_WQ1y.js → 8yGsdKw-.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/8yGsdKw-.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/8yGsdKw-.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{Dfr0_2Ru.js → B-RXNiOd.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/B-RXNiOd.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/B-RXNiOd.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{l_FEBou3.js → B46lYeIi.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/B46lYeIi.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/B46lYeIi.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BFdNuAjv.js +1 -0
- package/packages/web/build/client/_app/immutable/chunks/BFdNuAjv.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BFdNuAjv.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{BRwpK-dT.js → BGTv8JPR.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BGTv8JPR.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BGTv8JPR.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{B-y-pLH7.js → BJTFRUF-.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BJTFRUF-.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BJTFRUF-.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BXCc5HTu.js +2 -0
- package/packages/web/build/client/_app/immutable/chunks/BXCc5HTu.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BXCc5HTu.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BjYSqq0k.js +31 -0
- package/packages/web/build/client/_app/immutable/chunks/BjYSqq0k.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BjYSqq0k.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{B6D5Whjw.js → Bm7xrUfv.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/Bm7xrUfv.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Bm7xrUfv.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DHbUBEIq.js → BoF5_xlG.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BoF5_xlG.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BoF5_xlG.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DCOwc-sb.js → BtIxfuuU.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BtIxfuuU.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BtIxfuuU.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DfVlrZNP.js → BuUgmTPg.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BuUgmTPg.js.br +2 -0
- package/packages/web/build/client/_app/immutable/chunks/BuUgmTPg.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{ClpsSDPY.js → Bug_manx.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/Bug_manx.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Bug_manx.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{BUXfq8X-.js → C-n6Sq1M.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/C-n6Sq1M.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/C-n6Sq1M.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DJtnnjH0.js → C0eRzlBx.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/C0eRzlBx.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/C0eRzlBx.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{w-tlcbHs.js → C2FkGwfz.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/C2FkGwfz.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/C2FkGwfz.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{Cu0LaHfb.js → C32AWpeo.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/C32AWpeo.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/C32AWpeo.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{Arbm6Z-7.js → C4eNTN5P.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/C4eNTN5P.js.br +3 -0
- package/packages/web/build/client/_app/immutable/chunks/C4eNTN5P.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{CzTy0pB_.js → C5JGp0uY.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/C5JGp0uY.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/C5JGp0uY.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{HqMpdXAn.js → C6qmCBrI.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/C6qmCBrI.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/C6qmCBrI.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{D1J8Afkr.js → CAT8P2ja.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CAT8P2ja.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CAT8P2ja.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DkbTr46o.js → CE0ugmP5.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CE0ugmP5.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CE0ugmP5.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DxkF3JDM.js → CFSiDj5p.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CFSiDj5p.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CFSiDj5p.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CFbIqU-O.js +1 -0
- package/packages/web/build/client/_app/immutable/chunks/CFbIqU-O.js.br +2 -0
- package/packages/web/build/client/_app/immutable/chunks/CFbIqU-O.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{C_zG_IWk.js → CIUZQ4_c.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CIUZQ4_c.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CIUZQ4_c.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DDuZ7U-U.js → CP2Kz63A.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CP2Kz63A.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CP2Kz63A.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{XeSqr1-v.js → CSU0PvdW.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CSU0PvdW.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CSU0PvdW.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{mIUZw7ea.js → CYCpCaMm.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CYCpCaMm.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CYCpCaMm.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{ml7xqx90.js → CgTp86RR.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CgTp86RR.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CgTp86RR.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{CitctZKs.js → CohWL53A.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CohWL53A.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CohWL53A.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{B0RiDAev.js → CvBM-BcR.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CvBM-BcR.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CvBM-BcR.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{CHT_aMF1.js → Cz7dY0lT.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/Cz7dY0lT.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Cz7dY0lT.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{D31DKq8w.js → D-y-QHVc.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/D-y-QHVc.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/D-y-QHVc.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{g0dNna8I.js → DFIMY9H3.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DFIMY9H3.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DFIMY9H3.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DwZb087G.js → DGr-f7by.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DGr-f7by.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DGr-f7by.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{YSvFDluA.js → DQ_Xm3A0.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DQ_Xm3A0.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DQ_Xm3A0.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{2T-fBDBy.js → DZ2PrUyP.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DZ2PrUyP.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DZ2PrUyP.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{CospDBPk.js → DfqJ9Tdc.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DfqJ9Tdc.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DfqJ9Tdc.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{C3hDYS_2.js → DpWXiZkr.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DpWXiZkr.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DpWXiZkr.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{B4UB4rs1.js → HGDXYOZ_.js} +3 -3
- package/packages/web/build/client/_app/immutable/chunks/HGDXYOZ_.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/HGDXYOZ_.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{Dmge5GnH.js → KmfcckQj.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/KmfcckQj.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/KmfcckQj.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{KZwrMxus.js → OMR5X6MA.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/OMR5X6MA.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/OMR5X6MA.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{CqF_BuCK.js → Pb2CBvoY.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/Pb2CBvoY.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Pb2CBvoY.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{BZPF9DjZ.js → YmwZN8vA.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/YmwZN8vA.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/YmwZN8vA.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DjZqFLb2.js → cwlJWYOG.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/cwlJWYOG.js.br +2 -0
- package/packages/web/build/client/_app/immutable/chunks/cwlJWYOG.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DYRNDr1-.js → ikbzgzdg.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/ikbzgzdg.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/ikbzgzdg.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{BE5ZZHhN.js → kgXB5Acj.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/kgXB5Acj.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/kgXB5Acj.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{SYU_L7u-.js → kq7vAvc9.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/kq7vAvc9.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/kq7vAvc9.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{C7R8aGgN.js → ohSXSyc5.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/ohSXSyc5.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/ohSXSyc5.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DfK6Rcsc.js → vnqr03iq.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/vnqr03iq.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/vnqr03iq.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{CWft6ElM.js → w1oULPKh.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/w1oULPKh.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/w1oULPKh.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/entry/app.35DS3PzL.js +2 -0
- package/packages/web/build/client/_app/immutable/entry/app.35DS3PzL.js.br +0 -0
- package/packages/web/build/client/_app/immutable/entry/app.35DS3PzL.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/entry/start.CvWLT1KO.js +1 -0
- package/packages/web/build/client/_app/immutable/entry/start.CvWLT1KO.js.br +1 -0
- package/packages/web/build/client/_app/immutable/entry/start.CvWLT1KO.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{0.wm7D0VJi.js → 0.mXhAa6Qt.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/0.mXhAa6Qt.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/0.mXhAa6Qt.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{1.D69NuOUu.js → 1.HMCFn9Yh.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/1.HMCFn9Yh.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/1.HMCFn9Yh.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{10.CqNSaHis.js → 10.l_-6_swG.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/10.l_-6_swG.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/10.l_-6_swG.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/11.DEkDMqme.js +4 -0
- package/packages/web/build/client/_app/immutable/nodes/11.DEkDMqme.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/11.DEkDMqme.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{12.6O7iksy-.js → 12.DXkIFHwT.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/12.DXkIFHwT.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/12.DXkIFHwT.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{13.CHDUreBw.js → 13.DsfLTffi.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/13.DsfLTffi.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/13.DsfLTffi.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{14.B6ugcxW7.js → 14.V3K5sVKC.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/14.V3K5sVKC.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/14.V3K5sVKC.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{15.RKivXZm0.js → 15.TY6PSjYC.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/15.TY6PSjYC.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/15.TY6PSjYC.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{16.aiR8uT4H.js → 16.Bv8gwTym.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/16.Bv8gwTym.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/16.Bv8gwTym.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/17.CuuvaEQ3.js +46 -0
- package/packages/web/build/client/_app/immutable/nodes/17.CuuvaEQ3.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/17.CuuvaEQ3.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/18.Cn7hAGmD.js +1 -0
- package/packages/web/build/client/_app/immutable/nodes/18.Cn7hAGmD.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/18.Cn7hAGmD.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{2.CSMdB7NK.js → 2.CRdyH4vo.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/2.CRdyH4vo.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/2.CRdyH4vo.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{4.Bh5H61-f.js → 4.CxTvim0n.js} +2 -2
- package/packages/web/build/client/_app/immutable/nodes/4.CxTvim0n.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/4.CxTvim0n.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/5.CmcySQ0E.js +1 -0
- package/packages/web/build/client/_app/immutable/nodes/5.CmcySQ0E.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/5.CmcySQ0E.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{6.CgEej7P5.js → 6.NBeSylT5.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/6.NBeSylT5.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/6.NBeSylT5.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{7.BZC_NLGc.js → 7.BH7oRBfn.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/7.BH7oRBfn.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/7.BH7oRBfn.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{8.CgnuN54b.js → 8.C0ZofGPP.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/8.C0ZofGPP.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/8.C0ZofGPP.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{9.Cum-EcyI.js → 9.B9NHU9KB.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/9.B9NHU9KB.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/9.B9NHU9KB.js.gz +0 -0
- package/packages/web/build/client/_app/version.json +1 -1
- package/packages/web/build/client/_app/version.json.br +0 -0
- package/packages/web/build/client/_app/version.json.gz +0 -0
- package/packages/web/build/handler.js +5 -5
- package/packages/web/build/index.js +5 -5
- package/packages/web/build/server/chunks/chunks/{AssistantAvatar.js-CPJZ58kp.js → AssistantAvatar.js-Dv2UVMCY.js} +4 -4
- package/packages/web/build/server/chunks/chunks/{AvatarPicker.js-jlMD6ySL.js → AvatarPicker.js-DiNov0rP.js} +6 -6
- package/packages/web/build/server/chunks/chunks/{Composer.js-BqPMlGrt.js → Composer.js-CKgRT2qo.js} +7 -7
- package/packages/web/build/server/chunks/chunks/{ComposerDock.js-DZkvICf5.js → ComposerDock.js-DNrCXu6q.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{CopyButton.js-BJLHPF43.js → CopyButton.js-DFy0STm2.js} +4 -4
- package/packages/web/build/server/chunks/chunks/{DotGrid.js-CKoOdZxl.js → DotGrid.js-Blclik5f.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{MemoryChangeItem.js-B_Y3T2QD.js → MemoryChangeItem.js-0utOcd4I.js} +8 -8
- package/packages/web/build/server/chunks/chunks/{ModelMenu.js-B6k5_aLo.js → ModelMenu.js-CIfDgYFs.js} +10 -10
- package/packages/web/build/server/chunks/chunks/{MoveToFolderMenu.js-CjDula2u.js → MoveToFolderMenu.js-BLPnQVAK.js} +8 -8
- package/packages/web/build/server/chunks/chunks/{NewChatForm.js-CVwMOeoA.js → NewChatForm.js-DYMM7aAt.js} +11 -11
- package/packages/web/build/server/chunks/chunks/{NewFolderDialog.js-DNi5lOQM.js → NewFolderDialog.js-CDXmA-Eo.js} +6 -6
- package/packages/web/build/server/chunks/chunks/{Notifications.js-BEZJFhsy.js → Notifications.js-C_NE8cmg.js} +8 -8
- package/packages/web/build/server/chunks/chunks/{PageHeader.js-Ds8UAfhG.js → PageHeader.js-BUCyesLU.js} +8 -8
- package/packages/web/build/server/chunks/chunks/{RenameFolderDialog.js-Bg9zaMZf.js → RenameFolderDialog.js-BXdoh1qY.js} +8 -8
- package/packages/web/build/server/chunks/chunks/{StepIcon.js-CqKzX9yt.js → StepIcon.js-z9Gwj3OW.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{TopBar.js-rsCeot-b.js → TopBar.js-C2KYdpHz.js} +5 -5
- package/packages/web/build/server/chunks/chunks/{TypedText.js-DbTmyT8o.js → TypedText.js-BsIeutQI.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{UserAvatar.js-DjCA-lXs.js → UserAvatar.js-CSymIPbx.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{UserMenu.js-G3KBT840.js → UserMenu.js-oZy-yZCq.js} +282 -30
- package/packages/web/build/server/chunks/chunks/{access.js-2izFWt-j.js → access.js-B5QQB6WA.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{accounts.js-BStorvph.js → accounts.js-EEUc_OS2.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{alert-dialog.js-CO6J3B36.js → alert-dialog.js-KIOUxd9s.js} +6 -6
- package/packages/web/build/server/chunks/chunks/{auth.js-Jt5Hww4v.js → auth.js-BRusc8nl.js} +6 -6
- package/packages/web/build/server/chunks/chunks/{badge.js-BpnEeBc7.js → badge.js-BW9y4mef.js} +4 -4
- package/packages/web/build/server/chunks/chunks/{camera.js-b1uJ4lVX.js → camera.js-NE4fhPh5.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{check.js-CyQfqEJP.js → check.js-BBp6ElXH.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{chevron-left.js-B_K5lBaE.js → chevron-left.js-N2CYGqDo.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{chevron-right.js-CoHvUh83.js → chevron-right.js-CtacIwey.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{chevrons-up-down.js-CyLdwy94.js → chevrons-up-down.js-BddutKC_.js} +2 -2
- package/packages/web/build/server/chunks/chunks/chunk-YG554MNR.js-Ba0v6p0k.js +89 -0
- package/packages/web/build/server/chunks/chunks/{client.js-BpZ4w0Pv.js → client.js-BFqmoZ9X.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{clock.js-CLb22uwG.js → clock.js-DOVCWeb9.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{collapsible.js-cCXGxgLw.js → collapsible.js-DvOMhc2U.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{command.js-BDskj0gu.js → command.js-BxAWy2ue.js} +9 -9
- package/packages/web/build/server/chunks/chunks/{dialog.js-DXA_GBOi.js → dialog.js-BBOA7KoC.js} +8 -8
- package/packages/web/build/server/chunks/chunks/{dist.js-pYdcHurl.js → dist.js-Pek9N8t3.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{dist2.js-BxjtYtma.js → dist2.js-BypRVH9n.js} +4 -4
- package/packages/web/build/server/chunks/chunks/dist3.js-uSfOYmy-.js +19547 -0
- package/packages/web/build/server/chunks/chunks/download.js-B7EeFZ7Z.js +19 -0
- package/packages/web/build/server/chunks/chunks/{dropdown-menu.js-CzLUU4ZJ.js → dropdown-menu.js-B1yvqvNn.js} +9 -9
- package/packages/web/build/server/chunks/chunks/{eraser.js-BBNh5g61.js → eraser.js-DWn1XJV8.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{factory.js-VsoFeJ5s.js → factory.js-CQLK42R-.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{folder-input.js-D3pmQR8j.js → folder-input.js-DH6Qp7gU.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{forms.js-56VNnY4L.js → forms.js-DhWubsYg.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{hidden-input.js-BUx03PZT.js → hidden-input.js-BMiA7QCH.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{i18n.js-CImnrsLQ.js → i18n.js-BJ1t-tRk.js} +257 -31
- package/packages/web/build/server/chunks/chunks/{index-server.js-Dhsj1iyv.js → index-server.js-CZWDUWWu.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{internal2.js-D-ViPBgk.js → internal2.js-DUg_kZGr.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{key-round.js-D9eGcQlW.js → key-round.js-BybVXtO4.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{message-circle.js-DhZF2T2k.js → message-circle.js-BkkUgQS1.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{motion.js-d-T3M4Yx.js → motion.js-B25N8JPb.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{openai.js-DLsoNWh5.js → openai.js-Ct_0OQWY.js} +2 -2
- package/packages/web/build/server/chunks/chunks/package-FOKY5K5X.js-BfA4jmEx.js +7 -0
- package/packages/web/build/server/chunks/chunks/{paths.js-CjSLzrMh.js → paths.js-JAW7aGfG.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{pencil.js-Cjwma9en.js → pencil.js-BIwXZukp.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{plus.js-DHN1gxDT.js → plus.js-BgEEo3TD.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{rolldown-runtime.js-n5G0F_TW.js → rolldown-runtime.js-DAzahgG2.js} +11 -2
- package/packages/web/build/server/chunks/chunks/{select.js-Bqg6ZNxC.js → select.js-D9HIG57i.js} +10 -10
- package/packages/web/build/server/chunks/chunks/{shield-check.js-Rmmb1JbN.js → shield-check.js-DCvPu2XU.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{sidebar.js-DWtM4Ra5.js → sidebar.js-Clkm91cK.js} +7 -7
- package/packages/web/build/server/chunks/chunks/{square-pen.js-Bd3e6XjH.js → square-pen.js-2RyTQzXD.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{src.js-7Z6pIgv_.js → src.js-Birs1pIe.js} +460 -61
- package/packages/web/build/server/chunks/chunks/{state.js-D_ujlxLl.js → state.js-Dlx_CeTo.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{switch.js-BnTXFtzw.js → switch.js-CjP42GyH.js} +5 -5
- package/packages/web/build/server/chunks/chunks/{terminal.js-Y2fxek9o.js → terminal.js-BvH-ZQSm.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{textarea.js-BgvRHb13.js → textarea.js-KTNANMNA.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{tooltip.js-Cw3QuWkr.js → tooltip.js-c4TtoiFg.js} +5 -5
- package/packages/web/build/server/chunks/chunks/undici.js-BvcM4BkN.js +24145 -0
- package/packages/web/build/server/chunks/chunks/{utils2.js-CYwL_j5R.js → utils2.js-fivwMp3T.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{zod.js-Bwsuzt2t.js → zod.js-CWybfdic.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{zod2.js-Cj0j6UBL.js → zod2.js-D_b3bp3T.js} +3 -3
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/commands/{_server.ts.js-Bmtulo-A.js → _server.ts.js-DxFy0rsF.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/continue/{_server.ts.js-D_THGgT1.js → _server.ts.js-CG7Ukcf4.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/effort/{_server.ts.js-DOWHvbZi.js → _server.ts.js-BkVLwO1Y.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/events/{_server.ts.js-CIzQYFfb.js → _server.ts.js-S0UlMd_9.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/folder/{_server.ts.js-BmNAIISC.js → _server.ts.js-CpwJIJOR.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/media/_mediaId_/{_server.ts.js-DeHkrvkh.js → _server.ts.js-BCq-HxH-.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/messages/{_server.ts.js-DXz21qnU.js → _server.ts.js-C9rtTaJa.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/preset/{_server.ts.js-Bk_eG-EU.js → _server.ts.js-G0fpSTPw.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/stop/{_server.ts.js-DOjMMLMA.js → _server.ts.js-CKC4dytT.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/typing/{_server.ts.js-DX9cjD8Z.js → _server.ts.js-CEOecjg7.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/card/changes/_id_/keep/{_server.ts.js-CIyn7GTs.js → _server.ts.js-DiOFdmm7.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/chatgpt/sign-in/{_server.ts.js-B8v7LpF3.js → _server.ts.js-DNm8b46-.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-qZPUyHYe.js → _server.ts.js-h7t2syYa.js} +14 -8
- package/packages/web/build/server/chunks/entries/endpoints/api/hooks/_token_/{_server.ts.js-D4amKhp4.js → _server.ts.js-VJMi_5-c.js} +3 -3
- package/packages/web/build/server/chunks/entries/endpoints/api/me/{_server.ts.js-BBWn25Oi.js → _server.ts.js-DzxaXNvn.js} +6 -6
- package/packages/web/build/server/chunks/entries/endpoints/api/me/picture/{_server.ts.js-dZL_xbjz.js → _server.ts.js-Cr5xG6zX.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/models/{_server.ts.js-Dfuttsjm.js → _server.ts.js-C6S3oPc8.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/notifications/_id_/continue/{_server.ts.js-DAwM0F_F.js → _server.ts.js-Dw_PBGrC.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/notifications/_id_/dismiss/{_server.ts.js-8heKnu7f.js → _server.ts.js--10E0MAk.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/notifications/clear/{_server.ts.js-CaLd4qG3.js → _server.ts.js-mRpTSgbF.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/notifications/seen/{_server.ts.js-Bot6FjKV.js → _server.ts.js-JEx4uJjP.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/folders/_folder_/files/_file_/{_server.ts.js-DYNeaMZm.js → _server.ts.js-BtlHEsuT.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/folders/{_server.ts.js-Bv0ksEXU.js → _server.ts.js-BNwVvKwa.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/memory/_id_/undo/{_server.ts.js-D0JjV_J8.js → _server.ts.js-D8lJKSKg.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/running/{_server.ts.js-CYkLMuYu.js → _server.ts.js-Dz0bTNUS.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/suggestions/{_server.ts.js-DUCHrSk6.js → _server.ts.js-Xwf7c9NI.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/templates/_id_/cover/{_server.ts.js-NWJrq_tN.js → _server.ts.js-DcwUNB1x.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/_id_/{_server.ts.js-BF9RZXCk.js → _server.ts.js-BKZ_CzL5.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/{_server.ts.js-otp9rnJv.js → _server.ts.js-C09qSA4f.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/pictures/_sha256_/{_server.ts.js-BOhQB3f2.js → _server.ts.js-enZxhtGt.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/logout/{_server.ts.js-DL6gX2qC.js → _server.ts.js-D8tHCRno.js} +7 -7
- package/packages/web/build/server/chunks/entries/fallbacks/{error.svelte.js-vZl-v1dm.js → error.svelte.js-tTsfzqXu.js} +6 -6
- package/packages/web/build/server/chunks/entries/{hooks.server.js-D0u8HqRc.js → hooks.server.js-BS-HujZ0.js} +163 -30
- package/packages/web/build/server/chunks/entries/pages/{_layout.server.ts.js-B2CDvry1.js → _layout.server.ts.js-DElW2l8E.js} +7 -3
- package/packages/web/build/server/chunks/entries/pages/{_layout.svelte.js-D6V-3fNr.js → _layout.svelte.js-Bk6i9Yew.js} +10 -10
- package/packages/web/build/server/chunks/entries/pages/_page.server.ts.js-DuB6RjK9.js +27 -0
- package/packages/web/build/server/chunks/entries/pages/admin/{_page.server.ts.js-DuGh8AuJ.js → _page.server.ts.js-Dy1DXu8S.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/admin/{_page.svelte.js-YCQGnKe-.js → _page.svelte.js-C85gugDJ.js} +45 -44
- package/packages/web/build/server/chunks/entries/pages/admin/people/{_page.server.ts.js-BydFt0aw.js → _page.server.ts.js-Dbtnma9M.js} +5 -5
- package/packages/web/build/server/chunks/entries/pages/admin/people/{_page.svelte.js-DmUewKns.js → _page.svelte.js-B76abPlN.js} +34 -45
- package/packages/web/build/server/chunks/entries/pages/card/{_page.server.ts.js-BF5dHQ7E.js → _page.server.ts.js-CqmUCNV7.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/card/{_page.svelte.js-xCZibIzG.js → _page.svelte.js-0KL8Zxwg.js} +34 -32
- package/packages/web/build/server/chunks/entries/pages/invite/_token_/{_page.server.ts.js-_lQIS5kE.js → _page.server.ts.js-CyQoWvpV.js} +5 -5
- package/packages/web/build/server/chunks/entries/pages/invite/_token_/{_page.svelte.js-CiRdhe_F.js → _page.svelte.js-CvDycx40.js} +9 -9
- package/packages/web/build/server/chunks/entries/pages/login/{_page.server.ts.js-CxwIydss.js → _page.server.ts.js-CAXIL1yr.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/login/{_page.svelte.js-CDxgr3fb.js → _page.svelte.js-Bm494WwM.js} +8 -8
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/{_layout.server.ts.js-xi53HUuw.js → _layout.server.ts.js-B7WowM-0.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/{_layout.svelte.js-CwXT4Nxo.js → _layout.svelte.js-ZVVb3CgQ.js} +38 -36
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/{_page.server.ts.js-BMbkhcgA.js → _page.server.ts.js-CzJQ3Q67.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/{_page.svelte.js-BLZUZ8qO.js → _page.svelte.js-DTdUPOgQ.js} +25 -25
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/automations/{_page.server.ts.js-L3XyHTlD.js → _page.server.ts.js-BgvGhqAO.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/automations/{_page.svelte.js-CCWOVwPO.js → _page.svelte.js-BbL0QS2g.js} +24 -24
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/c/_id_/{_page.server.ts.js-Dy87O8oY.js → _page.server.ts.js-CTeW37cc.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/c/_id_/{_page.svelte.js-C7MIxs96.js → _page.svelte.js-ItACkqh_.js} +42 -55
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/f/_folder_/{_page.server.ts.js-B91H_gNI.js → _page.server.ts.js-DuWjCMZK.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/f/_folder_/{_page.svelte.js-CjcGk1qi.js → _page.svelte.js-CQF_8L0M.js} +31 -31
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/images/{_page.server.ts.js-BJfkJtJP.js → _page.server.ts.js-DXH9fdvs.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/images/{_page.svelte.js-BHvGAU_A.js → _page.svelte.js-BEpR4J4L.js} +30 -30
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/memory/{_page.server.ts.js-Dm4l7L0_.js → _page.server.ts.js-CpKXCai6.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/memory/{_page.svelte.js-s4Ls3NYt.js → _page.svelte.js-C0m3ghVG.js} +31 -31
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/settings/{_page.server.ts.js-CVSpjnSC.js → _page.server.ts.js-arDU8EFk.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/settings/{_page.svelte.js-Pbx5ZfnQ.js → _page.svelte.js-CWhRAJCl.js} +24 -24
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/skills/{_page.server.ts.js-Dh2wom-H.js → _page.server.ts.js-CiFyEugz.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/skills/{_page.svelte.js-CdJuNHWp.js → _page.svelte.js-BLDA594o.js} +18 -18
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/welcome/{_page.server.ts.js-BBptFQZ4.js → _page.server.ts.js-Bh1qg175.js} +7 -7
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/welcome/{_page@.svelte.js-l7VqHfZ-.js → _page@.svelte.js-CLuS4KY2.js} +11 -11
- package/packages/web/build/server/chunks/entries/pages/profiles/_page.server.ts.js-C68RDdEB.js +47 -0
- package/packages/web/build/server/chunks/entries/pages/profiles/_page.svelte.js-Cd7hBOb_.js +240 -0
- package/packages/web/build/server/chunks/{handler-CU7wyVY1.js → handler-Cx9Nwbe9.js} +3 -3
- package/packages/web/build/server/chunks/{index.js-BvLcoDvJ.js → index.js-BSuMcgA5.js} +3 -3
- package/packages/web/build/server/chunks/{manifest.js-DJQR6OoL.js → manifest.js-D_XIh0nY.js} +52 -52
- package/packages/web/build/server/chunks/nodes/{0.js-Dm_deDsl.js → 0.js-Dq13fSki.js} +7 -7
- package/packages/web/build/server/chunks/nodes/{1.js-5Mpz6vOe.js → 1.js-BNe_lnpX.js} +3 -3
- package/packages/web/build/server/chunks/nodes/{10.js-B9CHYCv_.js → 10.js-aMJLzJlS.js} +8 -8
- package/packages/web/build/server/chunks/nodes/11.js-CAz1T83j.js +44 -0
- package/packages/web/build/server/chunks/nodes/12.js-CqSKqiBB.js +44 -0
- package/packages/web/build/server/chunks/nodes/{13.js-CwlDsYBK.js → 13.js-C1v1Y7nI.js} +8 -8
- package/packages/web/build/server/chunks/nodes/{14.js-DW7_bMWl.js → 14.js-Cc_C5bUC.js} +8 -8
- package/packages/web/build/server/chunks/nodes/{15.js-LKEcP1PU.js → 15.js-DExTNP3g.js} +8 -8
- package/packages/web/build/server/chunks/nodes/{16.js-ya7bcira.js → 16.js-oqD1-jdJ.js} +8 -8
- package/packages/web/build/server/chunks/nodes/{17.js-Dg0NDX-x.js → 17.js-DKWZy0MK.js} +8 -8
- package/packages/web/build/server/chunks/nodes/18.js-B0wq55_7.js +44 -0
- package/packages/web/build/server/chunks/nodes/2.js-C7DpCbTc.js +46 -0
- package/packages/web/build/server/chunks/nodes/{3.js-BjxqYFWf.js → 3.js-CW8n-Vc-.js} +7 -6
- package/packages/web/build/server/chunks/nodes/4.js-BqlOl5wd.js +45 -0
- package/packages/web/build/server/chunks/nodes/5.js-9xLWVF8n.js +46 -0
- package/packages/web/build/server/chunks/nodes/6.js-BL0X88xc.js +44 -0
- package/packages/web/build/server/chunks/nodes/{7.js-Bqv_9Brz.js → 7.js-BK1-LFEd.js} +12 -12
- package/packages/web/build/server/chunks/nodes/{8.js-Mdz7UJfW.js → 8.js-BPicSkP9.js} +11 -11
- package/packages/web/build/server/chunks/nodes/{9.js-HaSDMajw.js → 9.js-CCYep365.js} +8 -8
- package/packages/web/build/client/_app/immutable/assets/0.X97IfEex.css +0 -2
- package/packages/web/build/client/_app/immutable/assets/0.X97IfEex.css.br +0 -0
- package/packages/web/build/client/_app/immutable/assets/0.X97IfEex.css.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/2T-fBDBy.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/2T-fBDBy.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/3YJAVtuL.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/3YJAVtuL.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Arbm6Z-7.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Arbm6Z-7.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/B-y-pLH7.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/B-y-pLH7.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/B0RiDAev.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/B0RiDAev.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/B4UB4rs1.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/B4UB4rs1.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/B6D5Whjw.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/B6D5Whjw.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BE5ZZHhN.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BE5ZZHhN.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BRwpK-dT.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BRwpK-dT.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BUXfq8X-.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BUXfq8X-.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BZPF9DjZ.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BZPF9DjZ.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/C3hDYS_2.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/C3hDYS_2.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/C7R8aGgN.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/C7R8aGgN.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CHT_aMF1.js.br +0 -2
- package/packages/web/build/client/_app/immutable/chunks/CHT_aMF1.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CQSgZZce.js +0 -2
- package/packages/web/build/client/_app/immutable/chunks/CQSgZZce.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CQSgZZce.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CWft6ElM.js.br +0 -2
- package/packages/web/build/client/_app/immutable/chunks/CWft6ElM.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/C_zG_IWk.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/C_zG_IWk.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CitctZKs.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CitctZKs.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/ClpsSDPY.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/ClpsSDPY.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CospDBPk.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CospDBPk.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CqF_BuCK.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CqF_BuCK.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Cu0LaHfb.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Cu0LaHfb.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CygRDR9l.js +0 -1
- package/packages/web/build/client/_app/immutable/chunks/CygRDR9l.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CygRDR9l.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CzTy0pB_.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CzTy0pB_.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/D1J8Afkr.js.br +0 -2
- package/packages/web/build/client/_app/immutable/chunks/D1J8Afkr.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/D2C7x40L.js +0 -31
- package/packages/web/build/client/_app/immutable/chunks/D2C7x40L.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/D2C7x40L.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/D31DKq8w.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/D31DKq8w.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DCOwc-sb.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DCOwc-sb.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DDuZ7U-U.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DDuZ7U-U.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DHbUBEIq.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DHbUBEIq.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DJtnnjH0.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DJtnnjH0.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DOuygBXh.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DOuygBXh.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DYRNDr1-.js.br +0 -2
- package/packages/web/build/client/_app/immutable/chunks/DYRNDr1-.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DfK6Rcsc.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DfK6Rcsc.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DfVlrZNP.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DfVlrZNP.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Dfr0_2Ru.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Dfr0_2Ru.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DjZqFLb2.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DjZqFLb2.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DkbTr46o.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DkbTr46o.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Dmge5GnH.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Dmge5GnH.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DwZb087G.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DwZb087G.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DxkF3JDM.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DxkF3JDM.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/EGNFfXHI.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/EGNFfXHI.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/HqMpdXAn.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/HqMpdXAn.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/JLT_WQ1y.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/JLT_WQ1y.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/KZwrMxus.js.br +0 -1
- package/packages/web/build/client/_app/immutable/chunks/KZwrMxus.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/SYU_L7u-.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/SYU_L7u-.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/XeSqr1-v.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/XeSqr1-v.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/YSvFDluA.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/YSvFDluA.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/g0dNna8I.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/g0dNna8I.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/l_FEBou3.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/l_FEBou3.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/mIUZw7ea.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/mIUZw7ea.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/ml7xqx90.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/ml7xqx90.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/w-tlcbHs.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/w-tlcbHs.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/entry/app._ACxKIMm.js +0 -2
- package/packages/web/build/client/_app/immutable/entry/app._ACxKIMm.js.br +0 -0
- package/packages/web/build/client/_app/immutable/entry/app._ACxKIMm.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/entry/start.D3P7nzZx.js +0 -1
- package/packages/web/build/client/_app/immutable/entry/start.D3P7nzZx.js.br +0 -0
- package/packages/web/build/client/_app/immutable/entry/start.D3P7nzZx.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/0.wm7D0VJi.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/0.wm7D0VJi.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/1.D69NuOUu.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/1.D69NuOUu.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/10.CqNSaHis.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/10.CqNSaHis.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/11.DLqLgBUx.js +0 -4
- package/packages/web/build/client/_app/immutable/nodes/11.DLqLgBUx.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/11.DLqLgBUx.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/12.6O7iksy-.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/12.6O7iksy-.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/13.CHDUreBw.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/13.CHDUreBw.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/14.B6ugcxW7.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/14.B6ugcxW7.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/15.RKivXZm0.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/15.RKivXZm0.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/16.aiR8uT4H.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/16.aiR8uT4H.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/17.COOcbTUB.js +0 -46
- package/packages/web/build/client/_app/immutable/nodes/17.COOcbTUB.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/17.COOcbTUB.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/18.DfwmipfH.js +0 -1
- package/packages/web/build/client/_app/immutable/nodes/18.DfwmipfH.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/18.DfwmipfH.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/2.CSMdB7NK.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/2.CSMdB7NK.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/4.Bh5H61-f.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/4.Bh5H61-f.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/5.DAsyY1nY.js +0 -1
- package/packages/web/build/client/_app/immutable/nodes/5.DAsyY1nY.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/5.DAsyY1nY.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/6.CgEej7P5.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/6.CgEej7P5.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/7.BZC_NLGc.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/7.BZC_NLGc.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/8.CgnuN54b.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/8.CgnuN54b.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/9.Cum-EcyI.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/9.Cum-EcyI.js.gz +0 -0
- package/packages/web/build/server/chunks/entries/pages/_page.server.ts.js-CAaunXC5.js +0 -20
- package/packages/web/build/server/chunks/entries/pages/profiles/_page.server.ts.js-_jTvOQWK.js +0 -32
- package/packages/web/build/server/chunks/entries/pages/profiles/_page.svelte.js-BRNwgP92.js +0 -91
- package/packages/web/build/server/chunks/nodes/11.js-D1QWfphV.js +0 -44
- package/packages/web/build/server/chunks/nodes/12.js-BqzgrZYf.js +0 -44
- package/packages/web/build/server/chunks/nodes/18.js-D5DLAvZg.js +0 -44
- package/packages/web/build/server/chunks/nodes/2.js-DJVTe_tW.js +0 -46
- package/packages/web/build/server/chunks/nodes/4.js-D3aN312t.js +0 -45
- package/packages/web/build/server/chunks/nodes/5.js-TpmDBw6h.js +0 -46
- package/packages/web/build/server/chunks/nodes/6.js-DsFyHBy7.js +0 -44
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { createRequire as __noluneCreateRequire } from 'node:module'; const require = __noluneCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
fail
|
|
4
|
+
} from "./chunk-CL6JQXXZ.js";
|
|
2
5
|
import {
|
|
3
6
|
CARDS,
|
|
7
|
+
appManaged,
|
|
4
8
|
cliCommand,
|
|
5
9
|
isCards,
|
|
6
10
|
memoryDir,
|
|
11
|
+
packageRoot,
|
|
7
12
|
paths,
|
|
8
13
|
placeName,
|
|
9
14
|
profileDir,
|
|
@@ -11,10 +16,7 @@ import {
|
|
|
11
16
|
profileMemoryDir,
|
|
12
17
|
profileSkillsDir,
|
|
13
18
|
profileSoulFile
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
fail
|
|
17
|
-
} from "./chunk-CL6JQXXZ.js";
|
|
19
|
+
} from "./chunk-SAHRBQRY.js";
|
|
18
20
|
import {
|
|
19
21
|
__commonJS,
|
|
20
22
|
__export,
|
|
@@ -3955,12 +3957,12 @@ var require_util_map_includes = __commonJS({
|
|
|
3955
3957
|
"node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
|
|
3956
3958
|
"use strict";
|
|
3957
3959
|
var identity = require_identity();
|
|
3958
|
-
function mapIncludes(ctx, items,
|
|
3960
|
+
function mapIncludes(ctx, items, search2) {
|
|
3959
3961
|
const { uniqueKeys } = ctx.options;
|
|
3960
3962
|
if (uniqueKeys === false)
|
|
3961
3963
|
return false;
|
|
3962
3964
|
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a, b2) => a === b2 || identity.isScalar(a) && identity.isScalar(b2) && a.value === b2.value;
|
|
3963
|
-
return items.some((pair) => isEqual(pair.key,
|
|
3965
|
+
return items.some((pair) => isEqual(pair.key, search2));
|
|
3964
3966
|
}
|
|
3965
3967
|
exports.mapIncludes = mapIncludes;
|
|
3966
3968
|
}
|
|
@@ -7353,11 +7355,11 @@ var require_dist = __commonJS({
|
|
|
7353
7355
|
});
|
|
7354
7356
|
|
|
7355
7357
|
// packages/cli/src/run.ts
|
|
7356
|
-
import { existsSync as
|
|
7358
|
+
import { existsSync as existsSync9 } from "node:fs";
|
|
7357
7359
|
import { spawn as spawn2 } from "node:child_process";
|
|
7358
7360
|
import { userInfo as userInfo3 } from "node:os";
|
|
7359
7361
|
import { pathToFileURL } from "node:url";
|
|
7360
|
-
import { parseArgs as
|
|
7362
|
+
import { parseArgs as parseArgs7 } from "node:util";
|
|
7361
7363
|
|
|
7362
7364
|
// packages/core/src/config.ts
|
|
7363
7365
|
import { randomBytes } from "node:crypto";
|
|
@@ -7371,7 +7373,8 @@ var API_KEYS = {
|
|
|
7371
7373
|
anthropic: { label: "Anthropic", field: "anthropicApiKey", env: "ANTHROPIC_API_KEY" },
|
|
7372
7374
|
openai: { label: "OpenAI", field: "openaiApiKey", env: "OPENAI_API_KEY" },
|
|
7373
7375
|
openrouter: { label: "OpenRouter", field: "openrouterApiKey", env: "OPENROUTER_API_KEY" },
|
|
7374
|
-
xai: { label: "xAI", field: "xaiApiKey", env: "XAI_API_KEY" }
|
|
7376
|
+
xai: { label: "xAI", field: "xaiApiKey", env: "XAI_API_KEY" },
|
|
7377
|
+
firecrawl: { label: "Firecrawl", field: "firecrawlApiKey", env: "FIRECRAWL_API_KEY" }
|
|
7375
7378
|
};
|
|
7376
7379
|
function isApiKeyProvider(value) {
|
|
7377
7380
|
return Object.hasOwn(API_KEYS, value);
|
|
@@ -7538,13 +7541,13 @@ function readMessage(row) {
|
|
|
7538
7541
|
};
|
|
7539
7542
|
}
|
|
7540
7543
|
function fromAnthropic(block, uploadedTo) {
|
|
7541
|
-
const
|
|
7542
|
-
stored.set(
|
|
7543
|
-
return
|
|
7544
|
+
const read2 = readAnthropic(block, uploadedTo);
|
|
7545
|
+
stored.set(read2, block);
|
|
7546
|
+
return read2;
|
|
7544
7547
|
}
|
|
7545
7548
|
function resultBlock(block, uploadedTo) {
|
|
7546
|
-
const
|
|
7547
|
-
if (
|
|
7549
|
+
const read2 = fromAnthropic(block, uploadedTo);
|
|
7550
|
+
if (read2.type === "text" || read2.type === "image" || read2.type === "pdf") return read2;
|
|
7548
7551
|
const other = { type: "other", anthropic: block };
|
|
7549
7552
|
stored.set(other, block);
|
|
7550
7553
|
return other;
|
|
@@ -7678,9 +7681,9 @@ var MissingApiKeyError = class extends OpenRouterError {
|
|
|
7678
7681
|
}
|
|
7679
7682
|
};
|
|
7680
7683
|
var ours = /* @__PURE__ */ new WeakSet();
|
|
7681
|
-
async function tagged(
|
|
7684
|
+
async function tagged(call2) {
|
|
7682
7685
|
try {
|
|
7683
|
-
return await
|
|
7686
|
+
return await call2();
|
|
7684
7687
|
} catch (err) {
|
|
7685
7688
|
if (err !== null && typeof err === "object") ours.add(err);
|
|
7686
7689
|
throw err;
|
|
@@ -7700,8 +7703,8 @@ async function getClient() {
|
|
|
7700
7703
|
const baseURL = openrouterBaseUrl();
|
|
7701
7704
|
const { OpenAI: Client2 } = await loadSdk();
|
|
7702
7705
|
if (!cached || cached.key !== key || cached.baseURL !== baseURL) {
|
|
7703
|
-
const
|
|
7704
|
-
cached = { key, baseURL, client:
|
|
7706
|
+
const client3 = new Client2({ apiKey: key, baseURL, defaultHeaders: { "X-Title": "nolune" } });
|
|
7707
|
+
cached = { key, baseURL, client: client3 };
|
|
7705
7708
|
}
|
|
7706
7709
|
return cached.client;
|
|
7707
7710
|
}
|
|
@@ -7709,8 +7712,8 @@ var catalog;
|
|
|
7709
7712
|
function catalogOf(fresh2 = false) {
|
|
7710
7713
|
if (fresh2 || !catalog || Date.now() - catalog.at > MODELS_TTL_MS) {
|
|
7711
7714
|
const models = tagged(async () => {
|
|
7712
|
-
const
|
|
7713
|
-
const list = await
|
|
7715
|
+
const client3 = await getClient();
|
|
7716
|
+
const list = await client3.get("/models", {
|
|
7714
7717
|
timeout: REQUEST_TIMEOUT_MS
|
|
7715
7718
|
});
|
|
7716
7719
|
return new Map((list.data ?? []).map((m2) => [m2.id, m2]));
|
|
@@ -7801,16 +7804,160 @@ function shortApiError(err) {
|
|
|
7801
7804
|
return err instanceof Error ? err.message : String(err);
|
|
7802
7805
|
}
|
|
7803
7806
|
|
|
7804
|
-
// packages/core/src/
|
|
7807
|
+
// packages/core/src/web.ts
|
|
7808
|
+
function firecrawlBaseUrl(env = process.env) {
|
|
7809
|
+
return (env.FIRECRAWL_API_URL || process.env.FIRECRAWL_API_URL || "https://api.firecrawl.dev").trim().replace(/\/+$/, "");
|
|
7810
|
+
}
|
|
7811
|
+
function firecrawlKey(env) {
|
|
7812
|
+
return configuredApiKey("firecrawl")?.key ?? (env.FIRECRAWL_API_KEY?.trim() || null);
|
|
7813
|
+
}
|
|
7805
7814
|
var sdk2;
|
|
7815
|
+
var cached2;
|
|
7816
|
+
async function client(key, url) {
|
|
7817
|
+
const { Firecrawl: Client2 } = sdk2 ??= await import("./dist-GDITDWPF.js");
|
|
7818
|
+
if (cached2?.key !== key || cached2.url !== url) {
|
|
7819
|
+
cached2 = { key, url, client: new Client2({ apiKey: key ?? "", apiUrl: url }) };
|
|
7820
|
+
}
|
|
7821
|
+
return cached2.client;
|
|
7822
|
+
}
|
|
7823
|
+
var TIMEOUT_MS2 = 6e4;
|
|
7824
|
+
var WebError = class extends Error {
|
|
7825
|
+
};
|
|
7826
|
+
function describeFailure2(err, doing, keyed) {
|
|
7827
|
+
const e = err;
|
|
7828
|
+
const status2 = typeof e.status === "number" ? e.status : null;
|
|
7829
|
+
const code = typeof e.code === "string" ? e.code : null;
|
|
7830
|
+
const said = typeof e.message === "string" ? e.message.trim().split("\n")[0].trim().replace(/\.+$/, "") : "";
|
|
7831
|
+
if (status2 === 401 || status2 === 403) {
|
|
7832
|
+
return new WebError(
|
|
7833
|
+
keyed ? `Firecrawl didn't accept its API key. ${apiKeyHelp("firecrawl")}` : `Firecrawl wants an API key${said ? ` (${said})` : ""}. ${apiKeyHelp("firecrawl")}`
|
|
7834
|
+
);
|
|
7835
|
+
}
|
|
7836
|
+
if (status2 === 402) {
|
|
7837
|
+
return new WebError(
|
|
7838
|
+
"The Firecrawl key's credits are used up. Add more at firecrawl.dev, or wait for its plan's next month."
|
|
7839
|
+
);
|
|
7840
|
+
}
|
|
7841
|
+
if (status2 === 429) {
|
|
7842
|
+
return new WebError(
|
|
7843
|
+
keyed ? "Firecrawl is getting too many requests from this key. Try again in a minute." : `Firecrawl's free tier has had enough from this computer for today${said ? ` (${said})` : ""}. ${apiKeyHelp("firecrawl")} A free Firecrawl account comes with more.`
|
|
7844
|
+
);
|
|
7845
|
+
}
|
|
7846
|
+
if (status2 === 408 || code === "ETIMEDOUT" || code === "ECONNABORTED") {
|
|
7847
|
+
return new WebError(`Firecrawl didn't finish ${doing} in time. Try again.`);
|
|
7848
|
+
}
|
|
7849
|
+
if (status2 === null && code) return new WebError(`Couldn't reach Firecrawl (${code}).`);
|
|
7850
|
+
return new WebError(
|
|
7851
|
+
`Firecrawl couldn't finish ${doing}${status2 ? ` (${status2})` : ""}${said ? `: ${said}` : ""}.`
|
|
7852
|
+
);
|
|
7853
|
+
}
|
|
7854
|
+
function untilAborted(work, signal) {
|
|
7855
|
+
if (!signal) return work;
|
|
7856
|
+
return new Promise((resolve6, reject) => {
|
|
7857
|
+
const abort = () => reject(signal.reason);
|
|
7858
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
7859
|
+
work.then(resolve6, reject).finally(() => signal.removeEventListener("abort", abort));
|
|
7860
|
+
});
|
|
7861
|
+
}
|
|
7862
|
+
async function call(doing, options, run2) {
|
|
7863
|
+
options.signal?.throwIfAborted();
|
|
7864
|
+
const env = options.env ?? process.env;
|
|
7865
|
+
const key = firecrawlKey(env);
|
|
7866
|
+
const firecrawl = await client(key, firecrawlBaseUrl(env));
|
|
7867
|
+
try {
|
|
7868
|
+
return await untilAborted(run2(firecrawl), options.signal);
|
|
7869
|
+
} catch (err) {
|
|
7870
|
+
if (options.signal?.aborted) throw err;
|
|
7871
|
+
throw describeFailure2(err, doing, key !== null);
|
|
7872
|
+
}
|
|
7873
|
+
}
|
|
7874
|
+
var WEB_RECENT = { day: "qdr:d", week: "qdr:w", month: "qdr:m", year: "qdr:y" };
|
|
7875
|
+
var DEFAULT_WEB_RESULTS = 5;
|
|
7876
|
+
var MAX_WEB_RESULTS = 20;
|
|
7877
|
+
var MAX_SNIPPET = 400;
|
|
7878
|
+
function snippet(text2) {
|
|
7879
|
+
const line = text2.replace(/\s+/g, " ").trim();
|
|
7880
|
+
return line.length > MAX_SNIPPET ? `${line.slice(0, MAX_SNIPPET - 1).trimEnd()}\u2026` : line;
|
|
7881
|
+
}
|
|
7882
|
+
async function searchWeb(query, options = {}) {
|
|
7883
|
+
const limit = options.limit ?? DEFAULT_WEB_RESULTS;
|
|
7884
|
+
const data = await call(
|
|
7885
|
+
"the search",
|
|
7886
|
+
options,
|
|
7887
|
+
(firecrawl) => firecrawl.search(query, {
|
|
7888
|
+
limit,
|
|
7889
|
+
sources: [options.news ? "news" : "web"],
|
|
7890
|
+
...options.recent ? { tbs: WEB_RECENT[options.recent] } : {},
|
|
7891
|
+
...options.country ? { country: options.country.toUpperCase() } : {},
|
|
7892
|
+
// Without this a result's description is Markdown cut from its page, often a few KB
|
|
7893
|
+
// each; the search's own snippet is a sentence or two.
|
|
7894
|
+
highlights: false,
|
|
7895
|
+
timeout: TIMEOUT_MS2
|
|
7896
|
+
})
|
|
7897
|
+
);
|
|
7898
|
+
const found2 = (options.news ? data.news : data.web) ?? [];
|
|
7899
|
+
const results = found2.flatMap((item) => {
|
|
7900
|
+
const r = item;
|
|
7901
|
+
if (!r.url) return [];
|
|
7902
|
+
return [
|
|
7903
|
+
{
|
|
7904
|
+
title: r.title?.trim() || r.url,
|
|
7905
|
+
url: r.url,
|
|
7906
|
+
text: snippet(r.description ?? r.snippet ?? ""),
|
|
7907
|
+
date: r.date?.trim() || null
|
|
7908
|
+
}
|
|
7909
|
+
];
|
|
7910
|
+
});
|
|
7911
|
+
return { results: results.slice(0, limit), warning: data.warning ?? null };
|
|
7912
|
+
}
|
|
7913
|
+
function webUrl(text2) {
|
|
7914
|
+
const trimmed = text2.trim();
|
|
7915
|
+
const withScheme = /^[a-z][a-z0-9+.-]*:/i.test(trimmed) ? trimmed : `https://${trimmed}`;
|
|
7916
|
+
let url;
|
|
7917
|
+
try {
|
|
7918
|
+
url = new URL(withScheme);
|
|
7919
|
+
} catch {
|
|
7920
|
+
throw new WebError(`"${trimmed}" isn't a web address.`);
|
|
7921
|
+
}
|
|
7922
|
+
if (url.protocol !== "http:" && url.protocol !== "https:") {
|
|
7923
|
+
throw new WebError(`Only web pages can be read (http or https), not ${url.protocol} ones.`);
|
|
7924
|
+
}
|
|
7925
|
+
return url.href;
|
|
7926
|
+
}
|
|
7927
|
+
async function readWebPage(address, options = {}) {
|
|
7928
|
+
const url = webUrl(address);
|
|
7929
|
+
const doc = await call(
|
|
7930
|
+
"reading the page",
|
|
7931
|
+
options,
|
|
7932
|
+
(firecrawl) => firecrawl.scrape(url, {
|
|
7933
|
+
formats: ["markdown"],
|
|
7934
|
+
onlyMainContent: true,
|
|
7935
|
+
timeout: TIMEOUT_MS2,
|
|
7936
|
+
// A big PDF can keep Firecrawl busy for minutes; the command answers in time instead.
|
|
7937
|
+
autoResume: false
|
|
7938
|
+
})
|
|
7939
|
+
);
|
|
7940
|
+
const meta = doc.metadata ?? {};
|
|
7941
|
+
const status2 = typeof meta.statusCode === "number" ? meta.statusCode : null;
|
|
7942
|
+
return {
|
|
7943
|
+
url: meta.url || meta.sourceURL || url,
|
|
7944
|
+
title: meta.title?.trim() || null,
|
|
7945
|
+
markdown: doc.markdown?.trim() ?? "",
|
|
7946
|
+
status: status2 !== null && status2 >= 400 ? status2 : null,
|
|
7947
|
+
warning: doc.warning ?? null
|
|
7948
|
+
};
|
|
7949
|
+
}
|
|
7950
|
+
|
|
7951
|
+
// packages/core/src/anthropic.ts
|
|
7952
|
+
var sdk3;
|
|
7806
7953
|
async function loadSdk2() {
|
|
7807
|
-
|
|
7808
|
-
return
|
|
7954
|
+
sdk3 ??= await import("./sdk-UNMKBESV.js");
|
|
7955
|
+
return sdk3;
|
|
7809
7956
|
}
|
|
7810
7957
|
function isSdkError2(err, name2) {
|
|
7811
|
-
return
|
|
7958
|
+
return sdk3 !== void 0 && err instanceof sdk3[name2];
|
|
7812
7959
|
}
|
|
7813
|
-
var
|
|
7960
|
+
var cached3;
|
|
7814
7961
|
var MissingApiKeyError2 = class extends Error {
|
|
7815
7962
|
constructor() {
|
|
7816
7963
|
super(`No Anthropic API key. ${apiKeyHelp("anthropic")}`);
|
|
@@ -7824,12 +7971,12 @@ function apiKey2() {
|
|
|
7824
7971
|
async function getClient2() {
|
|
7825
7972
|
const key = apiKey2();
|
|
7826
7973
|
const { Anthropic: Client2 } = await loadSdk2();
|
|
7827
|
-
if (!
|
|
7828
|
-
return
|
|
7974
|
+
if (!cached3 || cached3.key !== key) cached3 = { key, client: new Client2({ apiKey: key }) };
|
|
7975
|
+
return cached3.client;
|
|
7829
7976
|
}
|
|
7830
7977
|
async function fetchContextWindow2(model) {
|
|
7831
|
-
const
|
|
7832
|
-
const info = await
|
|
7978
|
+
const client3 = await getClient2();
|
|
7979
|
+
const info = await client3.models.retrieve(model);
|
|
7833
7980
|
return info.max_input_tokens ?? null;
|
|
7834
7981
|
}
|
|
7835
7982
|
function describeApiError2(err) {
|
|
@@ -7867,8 +8014,8 @@ function describePlanAccount(account2) {
|
|
|
7867
8014
|
var loaded;
|
|
7868
8015
|
async function load() {
|
|
7869
8016
|
if (!loaded) {
|
|
7870
|
-
const [
|
|
7871
|
-
loaded = { sdk:
|
|
8017
|
+
const [sdk7, zod] = await Promise.all([import("./sdk-Z2WD4F5K.js"), import("./zod-H7KMPIPH.js")]);
|
|
8018
|
+
loaded = { sdk: sdk7, z: zod.z };
|
|
7872
8019
|
}
|
|
7873
8020
|
return loaded;
|
|
7874
8021
|
}
|
|
@@ -7972,9 +8119,9 @@ function accountProblem(account2) {
|
|
|
7972
8119
|
return `Claude Code isn't signed in to a Claude plan. ${HOW_TO_SIGN_IN}`;
|
|
7973
8120
|
}
|
|
7974
8121
|
async function ask(question) {
|
|
7975
|
-
const { sdk:
|
|
8122
|
+
const { sdk: sdk7 } = await load();
|
|
7976
8123
|
let release;
|
|
7977
|
-
const released = new Promise((
|
|
8124
|
+
const released = new Promise((resolve6) => release = resolve6);
|
|
7978
8125
|
async function* nothing() {
|
|
7979
8126
|
await released;
|
|
7980
8127
|
yield* [];
|
|
@@ -7982,7 +8129,7 @@ async function ask(question) {
|
|
|
7982
8129
|
let q2;
|
|
7983
8130
|
let timer;
|
|
7984
8131
|
try {
|
|
7985
|
-
q2 =
|
|
8132
|
+
q2 = sdk7.query({
|
|
7986
8133
|
prompt: nothing(),
|
|
7987
8134
|
options: { ...baseOptions(homedir()), persistSession: false }
|
|
7988
8135
|
});
|
|
@@ -8123,7 +8270,7 @@ async function withLock(work) {
|
|
|
8123
8270
|
}
|
|
8124
8271
|
if (Date.now() > until)
|
|
8125
8272
|
throw new PlanError("Another nolune is refreshing the ChatGPT sign-in.");
|
|
8126
|
-
await new Promise((
|
|
8273
|
+
await new Promise((resolve6) => setTimeout(resolve6, 100));
|
|
8127
8274
|
}
|
|
8128
8275
|
}
|
|
8129
8276
|
try {
|
|
@@ -8281,11 +8428,11 @@ function randomValue(bytes = 32) {
|
|
|
8281
8428
|
return randomBytes2(bytes).toString("base64url");
|
|
8282
8429
|
}
|
|
8283
8430
|
function listen(server) {
|
|
8284
|
-
return new Promise((
|
|
8431
|
+
return new Promise((resolve6, reject) => {
|
|
8285
8432
|
server.once("error", reject);
|
|
8286
8433
|
server.listen(0, "127.0.0.1", () => {
|
|
8287
8434
|
server.off("error", reject);
|
|
8288
|
-
|
|
8435
|
+
resolve6(server.address().port);
|
|
8289
8436
|
});
|
|
8290
8437
|
});
|
|
8291
8438
|
}
|
|
@@ -8304,7 +8451,7 @@ async function startChatGptSignIn(opts = {}) {
|
|
|
8304
8451
|
const verifier = randomValue(48);
|
|
8305
8452
|
const challenge = createHash("sha256").update(verifier).digest("base64url");
|
|
8306
8453
|
let settle;
|
|
8307
|
-
const done = new Promise((
|
|
8454
|
+
const done = new Promise((resolve6, reject) => settle = { resolve: resolve6, reject });
|
|
8308
8455
|
done.catch(() => {
|
|
8309
8456
|
});
|
|
8310
8457
|
let completing = null;
|
|
@@ -8493,7 +8640,7 @@ async function signOutChatGpt() {
|
|
|
8493
8640
|
revoked = true;
|
|
8494
8641
|
} catch (err) {
|
|
8495
8642
|
if (err instanceof AuthServiceError && err.status && err.status < 500) break;
|
|
8496
|
-
await new Promise((
|
|
8643
|
+
await new Promise((resolve6) => setTimeout(resolve6, 500 * 2 ** attempt));
|
|
8497
8644
|
}
|
|
8498
8645
|
}
|
|
8499
8646
|
}
|
|
@@ -8585,14 +8732,14 @@ async function refresh() {
|
|
|
8585
8732
|
// packages/core/src/openai-chat.ts
|
|
8586
8733
|
var UPLOAD_TIMEOUT_MS2 = 5 * 6e4;
|
|
8587
8734
|
var REQUEST_TIMEOUT_MS3 = 6e4;
|
|
8588
|
-
var
|
|
8735
|
+
var sdk4;
|
|
8589
8736
|
async function loadSdk3() {
|
|
8590
|
-
return
|
|
8737
|
+
return sdk4 ??= await import("./openai-ZCNISNG4.js");
|
|
8591
8738
|
}
|
|
8592
8739
|
function isSdkError3(err, name2) {
|
|
8593
|
-
return !!
|
|
8740
|
+
return !!sdk4 && err instanceof sdk4[name2];
|
|
8594
8741
|
}
|
|
8595
|
-
var
|
|
8742
|
+
var cached4;
|
|
8596
8743
|
var MissingApiKeyError3 = class extends Error {
|
|
8597
8744
|
constructor() {
|
|
8598
8745
|
super(`No OpenAI API key. ${apiKeyHelp("openai")}`);
|
|
@@ -8618,10 +8765,10 @@ async function getClient3() {
|
|
|
8618
8765
|
const key = apiKey3();
|
|
8619
8766
|
const baseURL = openaiBaseUrl();
|
|
8620
8767
|
const { OpenAI: Client2 } = await loadSdk3();
|
|
8621
|
-
if (!
|
|
8622
|
-
|
|
8768
|
+
if (!cached4 || cached4.key !== key || cached4.baseURL !== baseURL) {
|
|
8769
|
+
cached4 = { key, baseURL, client: new Client2({ apiKey: key, baseURL }) };
|
|
8623
8770
|
}
|
|
8624
|
-
return
|
|
8771
|
+
return cached4.client;
|
|
8625
8772
|
}
|
|
8626
8773
|
var FLAGSHIP_CONTEXT_WINDOW = 105e4;
|
|
8627
8774
|
function gptVersion(model) {
|
|
@@ -8638,8 +8785,8 @@ function knownContextWindow2(model) {
|
|
|
8638
8785
|
return flagship ? FLAGSHIP_CONTEXT_WINDOW : null;
|
|
8639
8786
|
}
|
|
8640
8787
|
async function fetchContextWindow3(model) {
|
|
8641
|
-
const
|
|
8642
|
-
await
|
|
8788
|
+
const client3 = await getClient3();
|
|
8789
|
+
await client3.models.retrieve(model, { timeout: REQUEST_TIMEOUT_MS3 });
|
|
8643
8790
|
return knownContextWindow2(model);
|
|
8644
8791
|
}
|
|
8645
8792
|
function describeApiError3(err) {
|
|
@@ -8697,7 +8844,7 @@ function apiUrl2() {
|
|
|
8697
8844
|
function who() {
|
|
8698
8845
|
return activeRegistration()?.email ?? "This ChatGPT account";
|
|
8699
8846
|
}
|
|
8700
|
-
function
|
|
8847
|
+
function describeFailure3(failure) {
|
|
8701
8848
|
const { status: status2, code, param, message: message2 } = failure;
|
|
8702
8849
|
switch (code) {
|
|
8703
8850
|
case "subscription_sharing_usage_limit_exceeded":
|
|
@@ -8733,7 +8880,7 @@ function planError(err) {
|
|
|
8733
8880
|
const cause = err?.cause;
|
|
8734
8881
|
if (cause instanceof PlanError) return cause;
|
|
8735
8882
|
const failure = failureOf(err);
|
|
8736
|
-
const described = failure &&
|
|
8883
|
+
const described = failure && describeFailure3(failure);
|
|
8737
8884
|
return described ? new PlanError(described, failure.code ?? `http_${failure.status}`, { cause: err }) : err;
|
|
8738
8885
|
}
|
|
8739
8886
|
async function asPlan(work) {
|
|
@@ -8797,7 +8944,7 @@ async function catalog2(refresh2 = false) {
|
|
|
8797
8944
|
message: str2(error.message) ?? str2(body.detail) ?? (text2.slice(0, 200) || res.statusText)
|
|
8798
8945
|
};
|
|
8799
8946
|
throw new PlanError(
|
|
8800
|
-
|
|
8947
|
+
describeFailure3(failure) ?? `OpenAI said ${res.status} to the ChatGPT plan: ${failure.message}`,
|
|
8801
8948
|
failure.code ?? `http_${res.status}`
|
|
8802
8949
|
);
|
|
8803
8950
|
}
|
|
@@ -9029,7 +9176,7 @@ async function checkCustomProvider(url, key) {
|
|
|
9029
9176
|
var openaiSdk;
|
|
9030
9177
|
var anthropicSdk;
|
|
9031
9178
|
var ours2 = /* @__PURE__ */ new WeakMap();
|
|
9032
|
-
async function tagged2(api, model,
|
|
9179
|
+
async function tagged2(api, model, call2) {
|
|
9033
9180
|
let provider = null;
|
|
9034
9181
|
try {
|
|
9035
9182
|
provider = providerOf(model);
|
|
@@ -9038,7 +9185,7 @@ async function tagged2(api, model, call) {
|
|
|
9038
9185
|
`${provider.name} speaks ${API_NAMES[provider.api]} API, not ${API_NAMES[api]}.`
|
|
9039
9186
|
);
|
|
9040
9187
|
}
|
|
9041
|
-
return await
|
|
9188
|
+
return await call2(provider);
|
|
9042
9189
|
} catch (err) {
|
|
9043
9190
|
if (err !== null && typeof err === "object") ours2.set(err, provider);
|
|
9044
9191
|
throw err;
|
|
@@ -9152,12 +9299,12 @@ var MODELS_TTL_MS2 = 60 * 6e4;
|
|
|
9152
9299
|
function xaiBaseUrl() {
|
|
9153
9300
|
return (process.env.XAI_BASE_URL || "https://api.x.ai/v1").replace(/\/+$/, "");
|
|
9154
9301
|
}
|
|
9155
|
-
var
|
|
9302
|
+
var sdk5;
|
|
9156
9303
|
async function loadSdk4() {
|
|
9157
|
-
return
|
|
9304
|
+
return sdk5 ??= await import("./openai-ZCNISNG4.js");
|
|
9158
9305
|
}
|
|
9159
9306
|
function isSdkError5(err, name2) {
|
|
9160
|
-
return !!
|
|
9307
|
+
return !!sdk5 && err instanceof sdk5[name2];
|
|
9161
9308
|
}
|
|
9162
9309
|
var XaiError = class extends Error {
|
|
9163
9310
|
};
|
|
@@ -9167,9 +9314,9 @@ var MissingApiKeyError4 = class extends XaiError {
|
|
|
9167
9314
|
}
|
|
9168
9315
|
};
|
|
9169
9316
|
var ours3 = /* @__PURE__ */ new WeakSet();
|
|
9170
|
-
async function tagged3(
|
|
9317
|
+
async function tagged3(call2) {
|
|
9171
9318
|
try {
|
|
9172
|
-
return await
|
|
9319
|
+
return await call2();
|
|
9173
9320
|
} catch (err) {
|
|
9174
9321
|
if (err !== null && typeof err === "object") ours3.add(err);
|
|
9175
9322
|
throw err;
|
|
@@ -9183,16 +9330,16 @@ function apiKey4() {
|
|
|
9183
9330
|
if (!found2) throw new MissingApiKeyError4();
|
|
9184
9331
|
return found2.key;
|
|
9185
9332
|
}
|
|
9186
|
-
var
|
|
9333
|
+
var cached5;
|
|
9187
9334
|
async function getClient4() {
|
|
9188
9335
|
const key = apiKey4();
|
|
9189
9336
|
const baseURL = xaiBaseUrl();
|
|
9190
9337
|
const { OpenAI: Client2 } = await loadSdk4();
|
|
9191
|
-
if (!
|
|
9192
|
-
const
|
|
9193
|
-
|
|
9338
|
+
if (!cached5 || cached5.key !== key || cached5.baseURL !== baseURL) {
|
|
9339
|
+
const client3 = new Client2({ apiKey: key, baseURL, organization: null, project: null });
|
|
9340
|
+
cached5 = { key, baseURL, client: client3 };
|
|
9194
9341
|
}
|
|
9195
|
-
return
|
|
9342
|
+
return cached5.client;
|
|
9196
9343
|
}
|
|
9197
9344
|
function strings(value) {
|
|
9198
9345
|
return Array.isArray(value) ? value.filter((v2) => typeof v2 === "string") : [];
|
|
@@ -9202,11 +9349,11 @@ function catalogOf2(fresh2 = false) {
|
|
|
9202
9349
|
const key = apiKey4();
|
|
9203
9350
|
if (fresh2 || !catalog3 || catalog3.key !== key || Date.now() - catalog3.at > MODELS_TTL_MS2) {
|
|
9204
9351
|
const models = tagged3(async () => {
|
|
9205
|
-
const
|
|
9352
|
+
const client3 = await getClient4();
|
|
9206
9353
|
const options = { timeout: REQUEST_TIMEOUT_MS5 };
|
|
9207
9354
|
const [language, all] = await Promise.all([
|
|
9208
|
-
|
|
9209
|
-
|
|
9355
|
+
client3.get("/language-models", options),
|
|
9356
|
+
client3.get("/models", options)
|
|
9210
9357
|
]);
|
|
9211
9358
|
const details = new Map((all.data ?? []).map((m2) => [m2.id, m2]));
|
|
9212
9359
|
return (language.models ?? []).flatMap((m2) => {
|
|
@@ -9293,22 +9440,32 @@ var ABOUT = {
|
|
|
9293
9440
|
anthropic: {
|
|
9294
9441
|
purpose: "Runs chats and automations on Claude models.",
|
|
9295
9442
|
withoutIt: "Chats and automations on Claude models stop working until a new key is added.",
|
|
9296
|
-
consoleUrl: "https://console.anthropic.com/settings/keys"
|
|
9443
|
+
consoleUrl: "https://console.anthropic.com/settings/keys",
|
|
9444
|
+
optional: false
|
|
9297
9445
|
},
|
|
9298
9446
|
openai: {
|
|
9299
9447
|
purpose: "Runs chats and automations on OpenAI models, and makes pictures for the Images page and when the agent draws.",
|
|
9300
9448
|
withoutIt: "Chats and automations on OpenAI models stop working, and nolune can't make pictures, until a new key is added.",
|
|
9301
|
-
consoleUrl: "https://platform.openai.com/api-keys"
|
|
9449
|
+
consoleUrl: "https://platform.openai.com/api-keys",
|
|
9450
|
+
optional: false
|
|
9302
9451
|
},
|
|
9303
9452
|
openrouter: {
|
|
9304
9453
|
purpose: "Runs chats and automations on the models OpenRouter serves (Claude, GPT, Gemini, DeepSeek and many more), with one key and its credits.",
|
|
9305
9454
|
withoutIt: "Chats and automations on OpenRouter models stop working until a new key is added.",
|
|
9306
|
-
consoleUrl: "https://openrouter.ai/settings/keys"
|
|
9455
|
+
consoleUrl: "https://openrouter.ai/settings/keys",
|
|
9456
|
+
optional: false
|
|
9307
9457
|
},
|
|
9308
9458
|
xai: {
|
|
9309
9459
|
purpose: "Runs chats and automations on xAI's Grok models.",
|
|
9310
9460
|
withoutIt: "Chats and automations on Grok models stop working until a new key is added.",
|
|
9311
|
-
consoleUrl: "https://console.x.ai"
|
|
9461
|
+
consoleUrl: "https://console.x.ai",
|
|
9462
|
+
optional: false
|
|
9463
|
+
},
|
|
9464
|
+
firecrawl: {
|
|
9465
|
+
purpose: "Searches the web and reads pages for the agent. Without a key it uses Firecrawl's free tier, which allows this computer so many searches a day.",
|
|
9466
|
+
withoutIt: "Web searches go back to Firecrawl's free tier, with its daily limit.",
|
|
9467
|
+
consoleUrl: "https://www.firecrawl.dev/app/api-keys",
|
|
9468
|
+
optional: true
|
|
9312
9469
|
}
|
|
9313
9470
|
};
|
|
9314
9471
|
function apiKeyStatuses() {
|
|
@@ -9361,6 +9518,12 @@ function checkRequest(provider, key) {
|
|
|
9361
9518
|
if (provider === "xai") {
|
|
9362
9519
|
return { url: `${xaiBaseUrl()}/api-key`, headers: { authorization: `Bearer ${key}` } };
|
|
9363
9520
|
}
|
|
9521
|
+
if (provider === "firecrawl") {
|
|
9522
|
+
return {
|
|
9523
|
+
url: `${firecrawlBaseUrl()}/v2/team/credit-usage`,
|
|
9524
|
+
headers: { authorization: `Bearer ${key}` }
|
|
9525
|
+
};
|
|
9526
|
+
}
|
|
9364
9527
|
return { url: `${openaiBaseUrl()}/models`, headers: { authorization: `Bearer ${key}` } };
|
|
9365
9528
|
}
|
|
9366
9529
|
function networkError2(err) {
|
|
@@ -10500,7 +10663,7 @@ function sql(strings2, ...params) {
|
|
|
10500
10663
|
return new SQL([new StringChunk(str3)]);
|
|
10501
10664
|
}
|
|
10502
10665
|
sql2.raw = raw;
|
|
10503
|
-
function
|
|
10666
|
+
function join16(chunks, separator) {
|
|
10504
10667
|
const result = [];
|
|
10505
10668
|
for (const [i, chunk] of chunks.entries()) {
|
|
10506
10669
|
if (i > 0 && separator !== void 0) {
|
|
@@ -10510,7 +10673,7 @@ function sql(strings2, ...params) {
|
|
|
10510
10673
|
}
|
|
10511
10674
|
return new SQL(result);
|
|
10512
10675
|
}
|
|
10513
|
-
sql2.join =
|
|
10676
|
+
sql2.join = join16;
|
|
10514
10677
|
function identifier(value) {
|
|
10515
10678
|
return new Name(value);
|
|
10516
10679
|
}
|
|
@@ -13067,7 +13230,7 @@ var SQLiteSelectQueryBuilderBase = class extends TypedQueryBuilder {
|
|
|
13067
13230
|
const baseTableName = this.tableName;
|
|
13068
13231
|
const tableName = getTableLikeName(table);
|
|
13069
13232
|
for (const item of extractUsedTable(table)) this.usedTables.add(item);
|
|
13070
|
-
if (typeof tableName === "string" && this.config.joins?.some((
|
|
13233
|
+
if (typeof tableName === "string" && this.config.joins?.some((join16) => join16.alias === tableName)) {
|
|
13071
13234
|
throw new Error(`Alias "${tableName}" is already used in this query`);
|
|
13072
13235
|
}
|
|
13073
13236
|
if (!this.isPartialSelect) {
|
|
@@ -13926,7 +14089,7 @@ var SQLiteUpdateBase = class extends QueryPromise {
|
|
|
13926
14089
|
createJoin(joinType) {
|
|
13927
14090
|
return (table, on) => {
|
|
13928
14091
|
const tableName = getTableLikeName(table);
|
|
13929
|
-
if (typeof tableName === "string" && this.config.joins.some((
|
|
14092
|
+
if (typeof tableName === "string" && this.config.joins.some((join16) => join16.alias === tableName)) {
|
|
13930
14093
|
throw new Error(`Alias "${tableName}" is already used in this query`);
|
|
13931
14094
|
}
|
|
13932
14095
|
if (typeof on === "function") {
|
|
@@ -14788,9 +14951,9 @@ var SQLiteTransaction = class extends BaseSQLiteDatabase {
|
|
|
14788
14951
|
|
|
14789
14952
|
// node_modules/.pnpm/drizzle-orm@0.45.3_@types+better-sqlite3@9.6.0_better-sqlite3@13.0.3_kysely@0.29.6/node_modules/drizzle-orm/better-sqlite3/session.js
|
|
14790
14953
|
var BetterSQLiteSession = class extends SQLiteSession {
|
|
14791
|
-
constructor(
|
|
14954
|
+
constructor(client3, dialect, schema, options = {}) {
|
|
14792
14955
|
super(dialect);
|
|
14793
|
-
this.client =
|
|
14956
|
+
this.client = client3;
|
|
14794
14957
|
this.schema = schema;
|
|
14795
14958
|
this.logger = options.logger ?? new NoopLogger();
|
|
14796
14959
|
this.cache = options.cache ?? new NoopCache();
|
|
@@ -14894,7 +15057,7 @@ var PreparedQuery = class extends SQLitePreparedQuery {
|
|
|
14894
15057
|
var BetterSQLite3Database = class extends BaseSQLiteDatabase {
|
|
14895
15058
|
static [entityKind] = "BetterSQLite3Database";
|
|
14896
15059
|
};
|
|
14897
|
-
function construct(
|
|
15060
|
+
function construct(client3, config2 = {}) {
|
|
14898
15061
|
const dialect = new SQLiteSyncDialect({ casing: config2.casing });
|
|
14899
15062
|
let logger;
|
|
14900
15063
|
if (config2.logger === true) {
|
|
@@ -14914,9 +15077,9 @@ function construct(client2, config2 = {}) {
|
|
|
14914
15077
|
tableNamesMap: tablesConfig.tableNamesMap
|
|
14915
15078
|
};
|
|
14916
15079
|
}
|
|
14917
|
-
const session2 = new BetterSQLiteSession(
|
|
15080
|
+
const session2 = new BetterSQLiteSession(client3, dialect, schema, { logger });
|
|
14918
15081
|
const db = new BetterSQLite3Database("sync", dialect, session2, schema);
|
|
14919
|
-
db.$client =
|
|
15082
|
+
db.$client = client3;
|
|
14920
15083
|
return db;
|
|
14921
15084
|
}
|
|
14922
15085
|
function drizzle(...params) {
|
|
@@ -14925,8 +15088,8 @@ function drizzle(...params) {
|
|
|
14925
15088
|
return construct(instance, params[1]);
|
|
14926
15089
|
}
|
|
14927
15090
|
if (isConfig(params[0])) {
|
|
14928
|
-
const { connection, client:
|
|
14929
|
-
if (
|
|
15091
|
+
const { connection, client: client3, ...drizzleConfig } = params[0];
|
|
15092
|
+
if (client3) return construct(client3, drizzleConfig);
|
|
14930
15093
|
if (typeof connection === "object") {
|
|
14931
15094
|
const { source, ...options } = connection;
|
|
14932
15095
|
const instance2 = new Client(source, options);
|
|
@@ -15865,11 +16028,11 @@ var memoryChange = sqliteTable(
|
|
|
15865
16028
|
// packages/core/src/db/index.ts
|
|
15866
16029
|
function open() {
|
|
15867
16030
|
mkdirSync3(paths.home, { recursive: true });
|
|
15868
|
-
const
|
|
15869
|
-
|
|
15870
|
-
|
|
15871
|
-
|
|
15872
|
-
const db = drizzle(
|
|
16031
|
+
const client3 = new Database(paths.db);
|
|
16032
|
+
client3.pragma("journal_mode = WAL");
|
|
16033
|
+
client3.pragma("busy_timeout = 5000");
|
|
16034
|
+
client3.pragma("foreign_keys = ON");
|
|
16035
|
+
const db = drizzle(client3, { schema: schema_exports });
|
|
15873
16036
|
migrate(db, { migrationsFolder: paths.migrations });
|
|
15874
16037
|
return db;
|
|
15875
16038
|
}
|
|
@@ -15881,6 +16044,7 @@ function getDb() {
|
|
|
15881
16044
|
|
|
15882
16045
|
// packages/core/src/users.ts
|
|
15883
16046
|
import { randomInt, randomUUID as randomUUID7 } from "node:crypto";
|
|
16047
|
+
import { readFileSync as readFileSync7 } from "node:fs";
|
|
15884
16048
|
|
|
15885
16049
|
// node_modules/.pnpm/@better-auth+utils@0.4.2/node_modules/@better-auth/utils/dist/password.node.mjs
|
|
15886
16050
|
import { randomBytes as randomBytes3, scrypt } from "node:crypto";
|
|
@@ -15891,7 +16055,7 @@ var config = {
|
|
|
15891
16055
|
dkLen: 64
|
|
15892
16056
|
};
|
|
15893
16057
|
function generateKey(password, salt) {
|
|
15894
|
-
return new Promise((
|
|
16058
|
+
return new Promise((resolve6, reject) => {
|
|
15895
16059
|
scrypt(
|
|
15896
16060
|
password.normalize("NFKC"),
|
|
15897
16061
|
salt,
|
|
@@ -15906,7 +16070,7 @@ function generateKey(password, salt) {
|
|
|
15906
16070
|
if (err)
|
|
15907
16071
|
reject(err);
|
|
15908
16072
|
else
|
|
15909
|
-
|
|
16073
|
+
resolve6(key);
|
|
15910
16074
|
}
|
|
15911
16075
|
);
|
|
15912
16076
|
});
|
|
@@ -16208,6 +16372,7 @@ async function viewImage(path, dir, cwd = process.cwd()) {
|
|
|
16208
16372
|
// packages/core/src/media.ts
|
|
16209
16373
|
import { execFile as execFile2 } from "node:child_process";
|
|
16210
16374
|
import { BlockList, isIP } from "node:net";
|
|
16375
|
+
import { basename as basename2, extname as extname2, isAbsolute, join as join3, resolve as resolve2 } from "node:path";
|
|
16211
16376
|
import { promisify as promisify2 } from "node:util";
|
|
16212
16377
|
|
|
16213
16378
|
// node_modules/.pnpm/marked@18.0.14/node_modules/marked/lib/marked.esm.js
|
|
@@ -17540,6 +17705,9 @@ var lexer = new F({ gfm: true });
|
|
|
17540
17705
|
var MAX_MEDIA_BYTES = 100 * 1024 * 1024;
|
|
17541
17706
|
var HEAD_BYTES = 1024 * 1024;
|
|
17542
17707
|
var ORPHAN_GRACE_MS = 60 * 60 * 1e3;
|
|
17708
|
+
function blobPath(sha256) {
|
|
17709
|
+
return join3(paths.media, sha256);
|
|
17710
|
+
}
|
|
17543
17711
|
var LOCAL_NETWORKS = new BlockList();
|
|
17544
17712
|
for (const [network, prefix] of [
|
|
17545
17713
|
["0.0.0.0", 8],
|
|
@@ -17566,7 +17734,7 @@ var execFileAsync2 = promisify2(execFile2);
|
|
|
17566
17734
|
|
|
17567
17735
|
// packages/core/src/memory-cards.ts
|
|
17568
17736
|
import { existsSync as existsSync5, mkdirSync as mkdirSync7, renameSync as renameSync4 } from "node:fs";
|
|
17569
|
-
import { join as
|
|
17737
|
+
import { join as join8 } from "node:path";
|
|
17570
17738
|
|
|
17571
17739
|
// packages/core/src/conversations.ts
|
|
17572
17740
|
import { randomUUID as randomUUID6 } from "node:crypto";
|
|
@@ -17578,9 +17746,9 @@ var IN_USE_MS = 60 * 60 * 1e3;
|
|
|
17578
17746
|
var UPLOAD_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
17579
17747
|
|
|
17580
17748
|
// packages/core/src/folders.ts
|
|
17581
|
-
import { basename as
|
|
17749
|
+
import { basename as basename3, join as join4 } from "node:path";
|
|
17582
17750
|
function folderDir(profileSlug, folderSlug) {
|
|
17583
|
-
return
|
|
17751
|
+
return join4(profileFoldersDir(profileSlug), folderSlug);
|
|
17584
17752
|
}
|
|
17585
17753
|
function getFolder(profileId, id) {
|
|
17586
17754
|
return getDb().select().from(folder).where(and(eq(folder.id, id), eq(folder.profileId, profileId))).get();
|
|
@@ -17646,7 +17814,7 @@ import {
|
|
|
17646
17814
|
unlinkSync,
|
|
17647
17815
|
writeFileSync as writeFileSync4
|
|
17648
17816
|
} from "node:fs";
|
|
17649
|
-
import { basename as
|
|
17817
|
+
import { basename as basename4, dirname as dirname2, join as join5, relative, resolve as resolve3, sep } from "node:path";
|
|
17650
17818
|
|
|
17651
17819
|
// packages/core/src/memory-facts.ts
|
|
17652
17820
|
function plain(markdown) {
|
|
@@ -17944,25 +18112,25 @@ function openMemory(place) {
|
|
|
17944
18112
|
return { dir, prefix: "", cards: false };
|
|
17945
18113
|
}
|
|
17946
18114
|
function setAsideCardsFolder(dir) {
|
|
17947
|
-
const folder2 =
|
|
18115
|
+
const folder2 = join5(dir, CARDS_FOLDER);
|
|
17948
18116
|
if (!existsSync3(folder2)) return;
|
|
17949
18117
|
let name2 = "old-cards";
|
|
17950
|
-
for (let i = 2; existsSync3(
|
|
17951
|
-
renameSync2(folder2,
|
|
18118
|
+
for (let i = 2; existsSync3(join5(dir, name2)); i++) name2 = `old-cards-${i}`;
|
|
18119
|
+
renameSync2(folder2, join5(dir, name2));
|
|
17952
18120
|
}
|
|
17953
18121
|
function importLegacyMemory(slug2, root) {
|
|
17954
|
-
const legacy =
|
|
18122
|
+
const legacy = join5(profileDir(slug2), LEGACY_FILE);
|
|
17955
18123
|
if (!existsSync3(legacy)) return;
|
|
17956
18124
|
if (!readFileSync4(legacy, "utf8").trim()) {
|
|
17957
18125
|
unlinkSync(legacy);
|
|
17958
18126
|
return;
|
|
17959
18127
|
}
|
|
17960
18128
|
let name2 = "general.md";
|
|
17961
|
-
for (let i = 2; existsSync3(
|
|
17962
|
-
renameSync2(legacy,
|
|
18129
|
+
for (let i = 2; existsSync3(join5(root, name2)); i++) name2 = `general-${i}.md`;
|
|
18130
|
+
renameSync2(legacy, join5(root, name2));
|
|
17963
18131
|
}
|
|
17964
18132
|
function relPath(folder2, full) {
|
|
17965
|
-
return folder2.prefix + relative(
|
|
18133
|
+
return folder2.prefix + relative(resolve3(folder2.dir), full).split(sep).join("/");
|
|
17966
18134
|
}
|
|
17967
18135
|
function notePath(folder2, topic) {
|
|
17968
18136
|
const clean = topic.trim().replace(/\\/g, "/").replace(/^\/+|\/+$/g, "");
|
|
@@ -17974,8 +18142,8 @@ function notePath(folder2, topic) {
|
|
|
17974
18142
|
);
|
|
17975
18143
|
}
|
|
17976
18144
|
const file2 = /\.(md|markdown|txt)$/i.test(clean) ? clean : `${clean}.md`;
|
|
17977
|
-
const base =
|
|
17978
|
-
const full =
|
|
18145
|
+
const base = resolve3(folder2.dir);
|
|
18146
|
+
const full = resolve3(base, file2.slice(folder2.prefix.length));
|
|
17979
18147
|
if (!full.startsWith(base + sep)) refuse(`"${topic}" is outside the memory folder.`);
|
|
17980
18148
|
if (relative(base, full).split(sep).some((part) => part.startsWith("."))) {
|
|
17981
18149
|
refuse(`"${topic}": names starting with a dot are reserved.`);
|
|
@@ -17991,7 +18159,7 @@ function notePath(folder2, topic) {
|
|
|
17991
18159
|
return full;
|
|
17992
18160
|
}
|
|
17993
18161
|
function titleOf(path) {
|
|
17994
|
-
const words =
|
|
18162
|
+
const words = basename4(path).replace(/\.[^.]+$/, "").replace(/[-_]+/g, " ").trim();
|
|
17995
18163
|
const upper = (word) => word.charAt(0).toUpperCase() + word.slice(1);
|
|
17996
18164
|
if (!words) return "Notes";
|
|
17997
18165
|
return categoryOf(path) === "people" || isCardPath(path) ? words.split(" ").map(upper).join(" ") : upper(words);
|
|
@@ -18024,7 +18192,7 @@ function checkSize(text2, path) {
|
|
|
18024
18192
|
}
|
|
18025
18193
|
function writeAtomic(full, text2) {
|
|
18026
18194
|
mkdirSync4(dirname2(full), { recursive: true, mode: 448 });
|
|
18027
|
-
const temp =
|
|
18195
|
+
const temp = join5(dirname2(full), `.tmp-${randomUUID3()}`);
|
|
18028
18196
|
try {
|
|
18029
18197
|
writeFileSync4(temp, text2, { mode: 384 });
|
|
18030
18198
|
renameSync2(temp, full);
|
|
@@ -18043,7 +18211,7 @@ function readMemoryFiles(folder2) {
|
|
|
18043
18211
|
const walk = (dir, depth) => {
|
|
18044
18212
|
for (const name2 of readdirSync(dir).sort()) {
|
|
18045
18213
|
if (name2.startsWith(".") || name2 === "node_modules") continue;
|
|
18046
|
-
const full =
|
|
18214
|
+
const full = join5(dir, name2);
|
|
18047
18215
|
let stat;
|
|
18048
18216
|
try {
|
|
18049
18217
|
stat = lstatSync(full);
|
|
@@ -18067,7 +18235,7 @@ function readMemoryFiles(folder2) {
|
|
|
18067
18235
|
}
|
|
18068
18236
|
function loadFacts(folder2, files = readMemoryFiles(folder2)) {
|
|
18069
18237
|
try {
|
|
18070
|
-
const file2 =
|
|
18238
|
+
const file2 = join5(folder2.dir, FACTS_FILE);
|
|
18071
18239
|
const stored3 = existsSync3(file2) ? parseFactIndex(readFileSync4(file2, "utf8")) : null;
|
|
18072
18240
|
const index2 = stored3 ?? emptyFactIndex();
|
|
18073
18241
|
let changed = !stored3;
|
|
@@ -18088,7 +18256,7 @@ function loadFacts(folder2, files = readMemoryFiles(folder2)) {
|
|
|
18088
18256
|
}
|
|
18089
18257
|
function saveFacts(folder2, index2) {
|
|
18090
18258
|
try {
|
|
18091
|
-
writeAtomic(
|
|
18259
|
+
writeAtomic(join5(folder2.dir, FACTS_FILE), serializeFactIndex(index2));
|
|
18092
18260
|
} catch (err) {
|
|
18093
18261
|
console.error("[nolune] could not save memory fact dates:", err);
|
|
18094
18262
|
}
|
|
@@ -18603,7 +18771,7 @@ function peopleGuide(profile2) {
|
|
|
18603
18771
|
// packages/core/src/skills.ts
|
|
18604
18772
|
var import_yaml = __toESM(require_dist(), 1);
|
|
18605
18773
|
import { existsSync as existsSync4, mkdirSync as mkdirSync5, readdirSync as readdirSync2, readFileSync as readFileSync5, statSync as statSync5, writeFileSync as writeFileSync5 } from "node:fs";
|
|
18606
|
-
import { join as
|
|
18774
|
+
import { join as join6 } from "node:path";
|
|
18607
18775
|
var SKIP_DIRS = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
18608
18776
|
var MAX_DEPTH2 = 4;
|
|
18609
18777
|
function isValidSkillName(name2) {
|
|
@@ -18644,9 +18812,9 @@ function scanDir(root, scope, out, warnings, dir = root, depth = 0) {
|
|
|
18644
18812
|
}
|
|
18645
18813
|
for (const entry of entries) {
|
|
18646
18814
|
if (SKIP_DIRS.has(entry.name) || entry.name.startsWith(".")) continue;
|
|
18647
|
-
const skillDir =
|
|
18815
|
+
const skillDir = join6(dir, entry.name);
|
|
18648
18816
|
if (!entry.isDirectory() && !(entry.isSymbolicLink() && isDirectory(skillDir))) continue;
|
|
18649
|
-
const location =
|
|
18817
|
+
const location = join6(skillDir, "SKILL.md");
|
|
18650
18818
|
if (!existsSync4(location)) {
|
|
18651
18819
|
if (depth + 1 < MAX_DEPTH2) scanDir(root, scope, out, warnings, skillDir, depth + 1);
|
|
18652
18820
|
continue;
|
|
@@ -18732,8 +18900,8 @@ function createSkill(skillsDir, name2, description) {
|
|
|
18732
18900
|
`Invalid skill name "${name2}": use lowercase letters, digits and single hyphens (max 64)`
|
|
18733
18901
|
);
|
|
18734
18902
|
}
|
|
18735
|
-
const dir =
|
|
18736
|
-
const location =
|
|
18903
|
+
const dir = join6(skillsDir, name2);
|
|
18904
|
+
const location = join6(dir, "SKILL.md");
|
|
18737
18905
|
if (existsSync4(location)) throw new Error(`Skill already exists: ${location}`);
|
|
18738
18906
|
mkdirSync5(dir, { recursive: true });
|
|
18739
18907
|
const title = name2.split("-").map((w2) => w2[0].toUpperCase() + w2.slice(1)).join(" ");
|
|
@@ -18766,7 +18934,7 @@ TODO
|
|
|
18766
18934
|
// packages/core/src/soul.ts
|
|
18767
18935
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
18768
18936
|
import { lstatSync as lstatSync2, mkdirSync as mkdirSync6, readFileSync as readFileSync6, renameSync as renameSync3, rmSync as rmSync4, writeFileSync as writeFileSync6 } from "node:fs";
|
|
18769
|
-
import { dirname as dirname3, join as
|
|
18937
|
+
import { dirname as dirname3, join as join7 } from "node:path";
|
|
18770
18938
|
var MAX_SOUL_CHARS = 4e3;
|
|
18771
18939
|
var SoulError = class extends Error {
|
|
18772
18940
|
};
|
|
@@ -18795,7 +18963,7 @@ function writeSoul(slug2, text2) {
|
|
|
18795
18963
|
return "";
|
|
18796
18964
|
}
|
|
18797
18965
|
mkdirSync6(dirname3(file2), { recursive: true, mode: 448 });
|
|
18798
|
-
const temp =
|
|
18966
|
+
const temp = join7(dirname3(file2), `.soul-${randomUUID4()}.tmp`);
|
|
18799
18967
|
try {
|
|
18800
18968
|
writeFileSync6(temp, `${clean}
|
|
18801
18969
|
`, { mode: 384 });
|
|
@@ -19206,7 +19374,7 @@ function freshName(userName) {
|
|
|
19206
19374
|
const taken = new Set(
|
|
19207
19375
|
getDb().select({ name: card.name }).from(card).all().map((row) => row.name)
|
|
19208
19376
|
);
|
|
19209
|
-
const free = (name2) => !taken.has(name2) && !existsSync5(
|
|
19377
|
+
const free = (name2) => !taken.has(name2) && !existsSync5(join8(paths.cards, `${name2}.md`));
|
|
19210
19378
|
const first = noteName(userName.trim().split(/\s+/)[0] ?? userName);
|
|
19211
19379
|
for (const name2 of [first, noteName(userName)]) if (free(name2)) return name2;
|
|
19212
19380
|
for (let i = 2; ; i++) if (free(`${first}-${i}`)) return `${first}-${i}`;
|
|
@@ -19322,10 +19490,10 @@ function recordAgentCardChanges(chat, changes) {
|
|
|
19322
19490
|
function trashCard(userId) {
|
|
19323
19491
|
const row = getDb().select({ name: card.name }).from(card).where(eq(card.userId, userId)).get();
|
|
19324
19492
|
if (!row) return;
|
|
19325
|
-
const file2 =
|
|
19493
|
+
const file2 = join8(paths.cards, `${row.name}.md`);
|
|
19326
19494
|
if (!existsSync5(file2)) return;
|
|
19327
19495
|
mkdirSync7(paths.trash, { recursive: true });
|
|
19328
|
-
renameSync4(file2,
|
|
19496
|
+
renameSync4(file2, join8(paths.trash, `card-${row.name}-${Date.now()}.md`));
|
|
19329
19497
|
}
|
|
19330
19498
|
|
|
19331
19499
|
// packages/core/src/users.ts
|
|
@@ -19440,6 +19608,18 @@ async function setPassword(nameOrEmail, password) {
|
|
|
19440
19608
|
const result = getDb().update(account).set({ password: hash2, updatedAt: /* @__PURE__ */ new Date() }).where(and(eq(account.userId, found2.id), eq(account.providerId, "credential"))).run();
|
|
19441
19609
|
if (result.changes === 0) throw new Error("User has no password account");
|
|
19442
19610
|
}
|
|
19611
|
+
function userPictureFile(sha256) {
|
|
19612
|
+
if (!/^[0-9a-f]{64}$/.test(sha256)) return null;
|
|
19613
|
+
const found2 = getDb().select({ id: user.id }).from(user).where(eq(user.picture, sha256)).get();
|
|
19614
|
+
if (!found2) return null;
|
|
19615
|
+
const path = blobPath(sha256);
|
|
19616
|
+
try {
|
|
19617
|
+
const info = inspectImage(readFileSync7(path));
|
|
19618
|
+
return info && { path, mime: info.mediaType };
|
|
19619
|
+
} catch {
|
|
19620
|
+
return null;
|
|
19621
|
+
}
|
|
19622
|
+
}
|
|
19443
19623
|
function setAdmin(nameOrEmail, isAdmin) {
|
|
19444
19624
|
const found2 = findUser(nameOrEmail);
|
|
19445
19625
|
if (!found2) throw new Error(`No user "${nameOrEmail}"`);
|
|
@@ -19554,8 +19734,8 @@ var running = holder3.__noluneBackground ??= /* @__PURE__ */ new Map();
|
|
|
19554
19734
|
|
|
19555
19735
|
// packages/core/src/memory-embeddings.ts
|
|
19556
19736
|
import { createHash as createHash4, randomUUID as randomUUID9 } from "node:crypto";
|
|
19557
|
-
import { existsSync as existsSync6, mkdirSync as mkdirSync8, readFileSync as
|
|
19558
|
-
import { join as
|
|
19737
|
+
import { existsSync as existsSync6, mkdirSync as mkdirSync8, readFileSync as readFileSync8, renameSync as renameSync5, rmSync as rmSync5, writeFileSync as writeFileSync7 } from "node:fs";
|
|
19738
|
+
import { join as join9 } from "node:path";
|
|
19559
19739
|
var DEFAULT_EMBEDDING_MODEL = "text-embedding-3-small";
|
|
19560
19740
|
var DEFAULT_EMBEDDING_MODELS = {
|
|
19561
19741
|
openai: DEFAULT_EMBEDDING_MODEL,
|
|
@@ -19643,19 +19823,19 @@ function parseEmbeddingSetting(value) {
|
|
|
19643
19823
|
}
|
|
19644
19824
|
return { provider, model };
|
|
19645
19825
|
}
|
|
19646
|
-
var
|
|
19826
|
+
var sdk6;
|
|
19647
19827
|
var cachedClient;
|
|
19648
|
-
async function
|
|
19828
|
+
async function client2(source) {
|
|
19649
19829
|
const key = source.key ?? "none";
|
|
19650
19830
|
if (!cachedClient || cachedClient.url !== source.url || cachedClient.key !== key) {
|
|
19651
|
-
const { OpenAI: Client2 } =
|
|
19652
|
-
const
|
|
19653
|
-
cachedClient = { url: source.url, key, client:
|
|
19831
|
+
const { OpenAI: Client2 } = sdk6 ??= await import("./openai-ZCNISNG4.js");
|
|
19832
|
+
const client3 = new Client2({ apiKey: key, baseURL: source.url });
|
|
19833
|
+
cachedClient = { url: source.url, key, client: client3 };
|
|
19654
19834
|
}
|
|
19655
19835
|
return cachedClient.client;
|
|
19656
19836
|
}
|
|
19657
19837
|
async function embed(source, texts, timeoutMs, retries = 1) {
|
|
19658
|
-
const api = await
|
|
19838
|
+
const api = await client2(source);
|
|
19659
19839
|
const response = await api.embeddings.create(
|
|
19660
19840
|
{ model: source.model, input: texts, encoding_format: "float" },
|
|
19661
19841
|
{ timeout: timeoutMs, maxRetries: retries }
|
|
@@ -19691,13 +19871,13 @@ function similarity(a, b2) {
|
|
|
19691
19871
|
var sourceId = (source) => `${source.url} ${source.model}`;
|
|
19692
19872
|
var hash = (text2) => createHash4("sha256").update(text2).digest("base64url").slice(0, 22);
|
|
19693
19873
|
function file(place) {
|
|
19694
|
-
return
|
|
19874
|
+
return join9(memoryDir(place), FILE);
|
|
19695
19875
|
}
|
|
19696
19876
|
function load2(place, source) {
|
|
19697
19877
|
const empty = { source: sourceId(source), vectors: /* @__PURE__ */ new Map() };
|
|
19698
19878
|
try {
|
|
19699
19879
|
if (!existsSync6(file(place))) return empty;
|
|
19700
|
-
const saved2 = JSON.parse(
|
|
19880
|
+
const saved2 = JSON.parse(readFileSync8(file(place), "utf8"));
|
|
19701
19881
|
if (saved2.version !== 1 || saved2.source !== empty.source || !Array.isArray(saved2.vectors)) {
|
|
19702
19882
|
return empty;
|
|
19703
19883
|
}
|
|
@@ -19715,7 +19895,7 @@ function load2(place, source) {
|
|
|
19715
19895
|
}
|
|
19716
19896
|
function save(place, stored3) {
|
|
19717
19897
|
const dir = memoryDir(place);
|
|
19718
|
-
const temp =
|
|
19898
|
+
const temp = join9(dir, `.tmp-${randomUUID9()}`);
|
|
19719
19899
|
try {
|
|
19720
19900
|
mkdirSync8(dir, { recursive: true, mode: 448 });
|
|
19721
19901
|
const vectors = [...stored3.vectors].map(([key, vector]) => [
|
|
@@ -19980,7 +20160,7 @@ async function searchMemory(slug2, query, limit = 20, cards = []) {
|
|
|
19980
20160
|
// packages/core/src/subagents.ts
|
|
19981
20161
|
import { randomUUID as randomUUID10 } from "node:crypto";
|
|
19982
20162
|
import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync9 } from "node:fs";
|
|
19983
|
-
import { dirname as dirname4, join as
|
|
20163
|
+
import { dirname as dirname4, join as join10 } from "node:path";
|
|
19984
20164
|
var MAX_ACTIVE_SUBAGENTS = 5;
|
|
19985
20165
|
var ACTIVE = ["pending", "running", "stopping"];
|
|
19986
20166
|
var NAME = /^[a-z0-9][a-z0-9-]{0,39}$/;
|
|
@@ -20018,7 +20198,7 @@ function subagentLogPath(s2) {
|
|
|
20018
20198
|
const parent = getConversation(s2.parentId);
|
|
20019
20199
|
const profile2 = parent && getProfile(parent.profileId);
|
|
20020
20200
|
if (!profile2) return null;
|
|
20021
|
-
return
|
|
20201
|
+
return join10(profileDir(profile2.slug), "agents", s2.parentId.slice(0, 8), `${s2.name}.log`);
|
|
20022
20202
|
}
|
|
20023
20203
|
function appendSubagentLog(s2, text2) {
|
|
20024
20204
|
const path = subagentLogPath(s2);
|
|
@@ -20314,8 +20494,8 @@ Reply with only a JSON array of ${COUNT} objects, without other text:
|
|
|
20314
20494
|
Write label and text in the language the notes are written in.`;
|
|
20315
20495
|
|
|
20316
20496
|
// packages/core/src/image-generation.ts
|
|
20317
|
-
import { readFileSync as
|
|
20318
|
-
import { basename as
|
|
20497
|
+
import { readFileSync as readFileSync9, statSync as statSync6 } from "node:fs";
|
|
20498
|
+
import { basename as basename5, extname as extname3 } from "node:path";
|
|
20319
20499
|
var IMAGE_PROVIDERS = ["openai"];
|
|
20320
20500
|
var DEFAULT_IMAGE_MODEL = "openai/gpt-image-2.5-flare";
|
|
20321
20501
|
var IMAGE_SHAPES = ["square", "portrait", "landscape", "auto"];
|
|
@@ -20402,7 +20582,7 @@ async function readInputImage(path, accept) {
|
|
|
20402
20582
|
let data;
|
|
20403
20583
|
try {
|
|
20404
20584
|
if (statSync6(path).isDirectory()) throw new Error("it's a folder");
|
|
20405
|
-
data =
|
|
20585
|
+
data = readFileSync9(path);
|
|
20406
20586
|
} catch (err) {
|
|
20407
20587
|
const code = err.code;
|
|
20408
20588
|
throw new Error(
|
|
@@ -20410,7 +20590,7 @@ async function readInputImage(path, accept) {
|
|
|
20410
20590
|
{ cause: err }
|
|
20411
20591
|
);
|
|
20412
20592
|
}
|
|
20413
|
-
const name2 =
|
|
20593
|
+
const name2 = basename5(path);
|
|
20414
20594
|
const info = inspectImage(data);
|
|
20415
20595
|
if (info && accept.includes(info.mediaType) && info.orientation <= 1 && data.length <= MAX_INPUT_BYTES) {
|
|
20416
20596
|
const clean = info.mediaType === "image/jpeg" ? stripJpegMetadata(data) : data;
|
|
@@ -20420,7 +20600,7 @@ async function readInputImage(path, accept) {
|
|
|
20420
20600
|
const prepared = await prepareImage(path, accept);
|
|
20421
20601
|
const ext = prepared.info.mediaType.slice("image/".length);
|
|
20422
20602
|
return {
|
|
20423
|
-
name: `${
|
|
20603
|
+
name: `${basename5(name2, extname3(name2))}.${ext === "jpeg" ? "jpg" : ext}`,
|
|
20424
20604
|
data: prepared.data,
|
|
20425
20605
|
mediaType: prepared.info.mediaType
|
|
20426
20606
|
};
|
|
@@ -20467,9 +20647,9 @@ async function generateImages(options) {
|
|
|
20467
20647
|
|
|
20468
20648
|
// packages/core/src/shim.ts
|
|
20469
20649
|
import { chmodSync as chmodSync3, mkdirSync as mkdirSync10, writeFileSync as writeFileSync8 } from "node:fs";
|
|
20470
|
-
import { join as
|
|
20650
|
+
import { join as join11 } from "node:path";
|
|
20471
20651
|
function installCliShim() {
|
|
20472
|
-
const target2 =
|
|
20652
|
+
const target2 = join11(paths.bin, "nolune");
|
|
20473
20653
|
mkdirSync10(paths.bin, { recursive: true });
|
|
20474
20654
|
const command2 = cliCommand().map((part) => JSON.stringify(part)).join(" ");
|
|
20475
20655
|
writeFileSync8(
|
|
@@ -21413,6 +21593,79 @@ var PRUNE_EVERY_MS = 60 * 6e4;
|
|
|
21413
21593
|
var KEEP_MS = 30 * 24 * 60 * 6e4;
|
|
21414
21594
|
var MAX_PAYLOAD_BYTES = 64 * 1024;
|
|
21415
21595
|
|
|
21596
|
+
// packages/core/src/updates.ts
|
|
21597
|
+
import { EventEmitter as EventEmitter3 } from "node:events";
|
|
21598
|
+
import { existsSync as existsSync7, mkdirSync as mkdirSync11, readFileSync as readFileSync10, renameSync as renameSync6, rmSync as rmSync6, writeFileSync as writeFileSync9 } from "node:fs";
|
|
21599
|
+
import { join as join12 } from "node:path";
|
|
21600
|
+
var NOLUNE_VERSION = JSON.parse(
|
|
21601
|
+
readFileSync10(join12(packageRoot, "package.json"), "utf8")
|
|
21602
|
+
).version;
|
|
21603
|
+
var CHECK_EVERY_MS = 24 * 60 * 6e4;
|
|
21604
|
+
var TICK_MS = 60 * 6e4;
|
|
21605
|
+
var UPDATE_COMMANDS = {
|
|
21606
|
+
npm: "npm install -g nolune@latest && nolune service restart",
|
|
21607
|
+
source: "git pull && pnpm install && pnpm build",
|
|
21608
|
+
app: null
|
|
21609
|
+
};
|
|
21610
|
+
var holder7 = globalThis;
|
|
21611
|
+
var emitter3 = holder7.__noluneUpdates ??= new EventEmitter3().setMaxListeners(0);
|
|
21612
|
+
function isNewer(a, b2) {
|
|
21613
|
+
const parts = (version2) => version2.replace(/^v/, "").split(/[.+-]/, 3).map((n2) => Number.parseInt(n2, 10) || 0);
|
|
21614
|
+
const [x3, y2] = [parts(a), parts(b2)];
|
|
21615
|
+
for (let i = 0; i < 3; i++) {
|
|
21616
|
+
if ((x3[i] ?? 0) !== (y2[i] ?? 0)) return (x3[i] ?? 0) > (y2[i] ?? 0);
|
|
21617
|
+
}
|
|
21618
|
+
return false;
|
|
21619
|
+
}
|
|
21620
|
+
function installKind() {
|
|
21621
|
+
if (appManaged()) return "app";
|
|
21622
|
+
if (existsSync7(join12(packageRoot, "packages", "cli", "src", "index.ts"))) return "source";
|
|
21623
|
+
return "npm";
|
|
21624
|
+
}
|
|
21625
|
+
function updateChecksOn() {
|
|
21626
|
+
try {
|
|
21627
|
+
return readConfig().updateCheck !== false;
|
|
21628
|
+
} catch {
|
|
21629
|
+
return true;
|
|
21630
|
+
}
|
|
21631
|
+
}
|
|
21632
|
+
function savedRelease() {
|
|
21633
|
+
try {
|
|
21634
|
+
const saved2 = JSON.parse(readFileSync10(paths.latestRelease, "utf8"));
|
|
21635
|
+
return typeof saved2.checkedAt === "string" ? saved2 : null;
|
|
21636
|
+
} catch {
|
|
21637
|
+
return null;
|
|
21638
|
+
}
|
|
21639
|
+
}
|
|
21640
|
+
function forgetRelease() {
|
|
21641
|
+
rmSync6(paths.latestRelease, { force: true });
|
|
21642
|
+
}
|
|
21643
|
+
function availableUpdate() {
|
|
21644
|
+
if (!updateChecksOn()) return null;
|
|
21645
|
+
const latest = savedRelease()?.latest;
|
|
21646
|
+
if (!latest || !isNewer(latest.version, NOLUNE_VERSION)) return null;
|
|
21647
|
+
const install = installKind();
|
|
21648
|
+
const download = install === "app" ? latest.downloads[process.arch] ?? null : null;
|
|
21649
|
+
return {
|
|
21650
|
+
current: NOLUNE_VERSION,
|
|
21651
|
+
version: latest.version,
|
|
21652
|
+
url: latest.url,
|
|
21653
|
+
install,
|
|
21654
|
+
command: UPDATE_COMMANDS[install],
|
|
21655
|
+
download
|
|
21656
|
+
};
|
|
21657
|
+
}
|
|
21658
|
+
function describeUpdates() {
|
|
21659
|
+
const current = NOLUNE_VERSION;
|
|
21660
|
+
if (!updateChecksOn()) return `${current} (not checking for new releases)`;
|
|
21661
|
+
const saved2 = savedRelease();
|
|
21662
|
+
if (!saved2) return `${current} (not checked for new releases yet)`;
|
|
21663
|
+
const update2 = availableUpdate();
|
|
21664
|
+
if (!update2) return `${current}, the newest (checked ${saved2.checkedAt.slice(0, 10)})`;
|
|
21665
|
+
const how = update2.command ?? "the menu bar's Download";
|
|
21666
|
+
return `${current}; ${update2.version} is out (${update2.url}). Update: ${how}`;
|
|
21667
|
+
}
|
|
21668
|
+
|
|
21416
21669
|
// packages/cli/src/agent.ts
|
|
21417
21670
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
21418
21671
|
import { parseArgs } from "node:util";
|
|
@@ -21593,9 +21846,9 @@ function cardCommand(io, args) {
|
|
|
21593
21846
|
}
|
|
21594
21847
|
|
|
21595
21848
|
// packages/cli/src/generate.ts
|
|
21596
|
-
import { mkdirSync as
|
|
21849
|
+
import { mkdirSync as mkdirSync12, writeFileSync as writeFileSync10 } from "node:fs";
|
|
21597
21850
|
import { homedir as homedir3 } from "node:os";
|
|
21598
|
-
import { extname as
|
|
21851
|
+
import { extname as extname4, isAbsolute as isAbsolute2, join as join13, resolve as resolve4 } from "node:path";
|
|
21599
21852
|
import { parseArgs as parseArgs2 } from "node:util";
|
|
21600
21853
|
function generateHelp() {
|
|
21601
21854
|
return `Pictures (model ${configuredImageModel()}; change it with \`nolune config set image-model\`)
|
|
@@ -21625,7 +21878,7 @@ function oneOf(value, allowed, flag) {
|
|
|
21625
21878
|
}
|
|
21626
21879
|
function expandHome(path) {
|
|
21627
21880
|
if (path === "~") return homedir3();
|
|
21628
|
-
return path.startsWith("~/") ?
|
|
21881
|
+
return path.startsWith("~/") ? join13(homedir3(), path.slice(2)) : path;
|
|
21629
21882
|
}
|
|
21630
21883
|
function slug(text2) {
|
|
21631
21884
|
return text2.toLowerCase().normalize("NFKD").replace(/[^a-z0-9\s-]/g, "").trim().split(/[\s-]+/).slice(0, 5).join("-") || "image";
|
|
@@ -21638,19 +21891,19 @@ function outputPaths(io, out, count, base, format) {
|
|
|
21638
21891
|
const ext = format === "jpeg" ? "jpg" : format;
|
|
21639
21892
|
let dir;
|
|
21640
21893
|
if (out && /\.(png|jpe?g|webp)$/i.test(out)) {
|
|
21641
|
-
const file2 =
|
|
21642
|
-
if (count === 1) return { dir:
|
|
21643
|
-
dir =
|
|
21644
|
-
base = file2.slice(dir.length + 1, -
|
|
21894
|
+
const file2 = resolve4(io.cwd, expandHome(out));
|
|
21895
|
+
if (count === 1) return { dir: resolve4(file2, ".."), files: [file2] };
|
|
21896
|
+
dir = resolve4(file2, "..");
|
|
21897
|
+
base = file2.slice(dir.length + 1, -extname4(file2).length);
|
|
21645
21898
|
} else if (out) {
|
|
21646
|
-
dir =
|
|
21899
|
+
dir = resolve4(io.cwd, expandHome(out));
|
|
21647
21900
|
} else {
|
|
21648
21901
|
const profileDir2 = io.env.NOLUNE_PROFILE_DIR;
|
|
21649
|
-
dir = profileDir2 &&
|
|
21902
|
+
dir = profileDir2 && isAbsolute2(profileDir2) ? join13(profileDir2, "images") : io.cwd;
|
|
21650
21903
|
}
|
|
21651
21904
|
const files = Array.from(
|
|
21652
21905
|
{ length: count },
|
|
21653
|
-
(_3, i) =>
|
|
21906
|
+
(_3, i) => join13(dir, `${base}${count > 1 ? `-${i + 1}` : ""}.${ext}`)
|
|
21654
21907
|
);
|
|
21655
21908
|
return { dir, files };
|
|
21656
21909
|
}
|
|
@@ -21662,7 +21915,7 @@ async function image(io, args) {
|
|
|
21662
21915
|
let prompt = positionals.join(" ").trim();
|
|
21663
21916
|
if (prompt === "-") prompt = (await io.readStdin()).trim();
|
|
21664
21917
|
if (!prompt) throw new Error('say what to make: nolune generate image "<prompt>"');
|
|
21665
|
-
const inputs = (values.image ?? []).map((path) =>
|
|
21918
|
+
const inputs = (values.image ?? []).map((path) => resolve4(io.cwd, expandHome(path)));
|
|
21666
21919
|
const count = values.count === void 0 ? 1 : Number(values.count);
|
|
21667
21920
|
if (!Number.isInteger(count) || count < 1 || count > MAX_IMAGE_COUNT) {
|
|
21668
21921
|
throw new Error(`--count is between 1 and ${MAX_IMAGE_COUNT}.`);
|
|
@@ -21706,9 +21959,9 @@ ${prompt}`);
|
|
|
21706
21959
|
base,
|
|
21707
21960
|
result.images[0].format
|
|
21708
21961
|
);
|
|
21709
|
-
|
|
21962
|
+
mkdirSync12(dir, { recursive: true });
|
|
21710
21963
|
for (const [i, picture] of result.images.entries()) {
|
|
21711
|
-
|
|
21964
|
+
writeFileSync10(files[i], picture.data);
|
|
21712
21965
|
const info = inspectImage(picture.data);
|
|
21713
21966
|
const details = [
|
|
21714
21967
|
info ? `${info.width}\xD7${info.height}` : null,
|
|
@@ -21738,7 +21991,7 @@ async function ask2(io, question, defaultValue = "") {
|
|
|
21738
21991
|
async function askHidden(io, question) {
|
|
21739
21992
|
if (!io.stdinIsTTY) return (await io.readStdin()).trim();
|
|
21740
21993
|
const stdin = process.stdin;
|
|
21741
|
-
return new Promise((
|
|
21994
|
+
return new Promise((resolve6, reject) => {
|
|
21742
21995
|
process.stdout.write(`${question}: `);
|
|
21743
21996
|
let value = "";
|
|
21744
21997
|
const cleanup = () => {
|
|
@@ -21751,7 +22004,7 @@ async function askHidden(io, question) {
|
|
|
21751
22004
|
for (const ch of chunk) {
|
|
21752
22005
|
if (ch === "\r" || ch === "\n") {
|
|
21753
22006
|
cleanup();
|
|
21754
|
-
|
|
22007
|
+
resolve6(value.trim());
|
|
21755
22008
|
return;
|
|
21756
22009
|
}
|
|
21757
22010
|
if (ch === "") {
|
|
@@ -22923,16 +23176,13 @@ async function wakeCommand(io, args) {
|
|
|
22923
23176
|
|
|
22924
23177
|
// packages/cli/src/service.ts
|
|
22925
23178
|
import { spawnSync as spawnSync2 } from "node:child_process";
|
|
22926
|
-
import { existsSync as
|
|
23179
|
+
import { existsSync as existsSync8, mkdirSync as mkdirSync13, readFileSync as readFileSync11, unlinkSync as unlinkSync2, writeFileSync as writeFileSync11 } from "node:fs";
|
|
22927
23180
|
import { homedir as homedir4, userInfo as userInfo2 } from "node:os";
|
|
22928
|
-
import { dirname as dirname5, isAbsolute as
|
|
23181
|
+
import { dirname as dirname5, isAbsolute as isAbsolute3, join as join14 } from "node:path";
|
|
22929
23182
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
22930
|
-
var logFile =
|
|
23183
|
+
var logFile = join14(paths.logs, "gateway.log");
|
|
22931
23184
|
var LABEL = "dev.nolune.gateway";
|
|
22932
|
-
var plistPath =
|
|
22933
|
-
function appManaged(execPath = process.execPath) {
|
|
22934
|
-
return /\.app\/Contents\/MacOS\/node$/.test(execPath);
|
|
22935
|
-
}
|
|
23185
|
+
var plistPath = join14(homedir4(), "Library", "LaunchAgents", `${LABEL}.plist`);
|
|
22936
23186
|
function target() {
|
|
22937
23187
|
return `gui/${process.getuid?.() ?? 501}/${LABEL}`;
|
|
22938
23188
|
}
|
|
@@ -22979,9 +23229,9 @@ var launchAgent = {
|
|
|
22979
23229
|
file: plistPath,
|
|
22980
23230
|
render: renderPlist,
|
|
22981
23231
|
async install() {
|
|
22982
|
-
|
|
22983
|
-
|
|
22984
|
-
|
|
23232
|
+
mkdirSync13(dirname5(plistPath), { recursive: true });
|
|
23233
|
+
mkdirSync13(paths.logs, { recursive: true });
|
|
23234
|
+
writeFileSync11(plistPath, renderPlist());
|
|
22985
23235
|
launchctl("bootout", target());
|
|
22986
23236
|
for (let attempt = 0; ; attempt++) {
|
|
22987
23237
|
const result = launchctl("bootstrap", `gui/${process.getuid?.() ?? 501}`, plistPath);
|
|
@@ -22992,7 +23242,7 @@ var launchAgent = {
|
|
|
22992
23242
|
},
|
|
22993
23243
|
uninstall() {
|
|
22994
23244
|
launchctl("bootout", target());
|
|
22995
|
-
if (
|
|
23245
|
+
if (existsSync8(plistPath)) unlinkSync2(plistPath);
|
|
22996
23246
|
},
|
|
22997
23247
|
restart() {
|
|
22998
23248
|
const result = launchctl("kickstart", "-k", target());
|
|
@@ -23004,7 +23254,7 @@ var launchAgent = {
|
|
|
23004
23254
|
const result = launchctl("print", target());
|
|
23005
23255
|
const pid = /\bpid = (\d+)/.exec(result.stdout ?? "")?.[1];
|
|
23006
23256
|
return {
|
|
23007
|
-
installed:
|
|
23257
|
+
installed: existsSync8(plistPath),
|
|
23008
23258
|
loaded: result.status === 0,
|
|
23009
23259
|
pid: pid ? Number(pid) : null
|
|
23010
23260
|
};
|
|
@@ -23012,8 +23262,8 @@ var launchAgent = {
|
|
|
23012
23262
|
};
|
|
23013
23263
|
var UNIT = "nolune.service";
|
|
23014
23264
|
var configHome = process.env.XDG_CONFIG_HOME;
|
|
23015
|
-
var unitPath =
|
|
23016
|
-
configHome &&
|
|
23265
|
+
var unitPath = join14(
|
|
23266
|
+
configHome && isAbsolute3(configHome) ? configHome : join14(homedir4(), ".config"),
|
|
23017
23267
|
"systemd",
|
|
23018
23268
|
"user",
|
|
23019
23269
|
UNIT
|
|
@@ -23062,16 +23312,16 @@ function systemctlOrFail(...args) {
|
|
|
23062
23312
|
}
|
|
23063
23313
|
}
|
|
23064
23314
|
function lingering() {
|
|
23065
|
-
return
|
|
23315
|
+
return existsSync8(join14("/var/lib/systemd/linger", userInfo2().username));
|
|
23066
23316
|
}
|
|
23067
23317
|
var systemdUnit = {
|
|
23068
23318
|
file: unitPath,
|
|
23069
23319
|
render: renderUnit,
|
|
23070
23320
|
async install() {
|
|
23071
23321
|
systemctl("show-environment");
|
|
23072
|
-
|
|
23073
|
-
|
|
23074
|
-
|
|
23322
|
+
mkdirSync13(dirname5(unitPath), { recursive: true });
|
|
23323
|
+
mkdirSync13(paths.logs, { recursive: true });
|
|
23324
|
+
writeFileSync11(unitPath, renderUnit());
|
|
23075
23325
|
systemctlOrFail("daemon-reload");
|
|
23076
23326
|
systemctlOrFail("enable", UNIT);
|
|
23077
23327
|
systemctlOrFail("restart", UNIT);
|
|
@@ -23080,14 +23330,14 @@ var systemdUnit = {
|
|
|
23080
23330
|
},
|
|
23081
23331
|
uninstall() {
|
|
23082
23332
|
systemctl("disable", "--now", UNIT);
|
|
23083
|
-
if (
|
|
23333
|
+
if (existsSync8(unitPath)) unlinkSync2(unitPath);
|
|
23084
23334
|
systemctl("daemon-reload");
|
|
23085
23335
|
systemctl("reset-failed", UNIT);
|
|
23086
23336
|
},
|
|
23087
23337
|
restart() {
|
|
23088
23338
|
const result = systemctl("restart", UNIT);
|
|
23089
23339
|
if (result.status === 0) return;
|
|
23090
|
-
if (!
|
|
23340
|
+
if (!existsSync8(unitPath)) {
|
|
23091
23341
|
throw new Error("The service is not installed. Run `nolune service install` first.");
|
|
23092
23342
|
}
|
|
23093
23343
|
throw new Error(`systemctl --user restart ${UNIT} failed: ${result.stderr.trim()}`);
|
|
@@ -23097,18 +23347,18 @@ var systemdUnit = {
|
|
|
23097
23347
|
const state = /^ActiveState=(.*)$/m.exec(stdout)?.[1];
|
|
23098
23348
|
const pid = Number(/^MainPID=(\d+)$/m.exec(stdout)?.[1] ?? 0);
|
|
23099
23349
|
return {
|
|
23100
|
-
installed:
|
|
23350
|
+
installed: existsSync8(unitPath),
|
|
23101
23351
|
// "activating" while it waits to be started again after exiting, "failed" if it gave up.
|
|
23102
23352
|
loaded: state !== void 0 && state !== "inactive",
|
|
23103
23353
|
pid: state === "active" && pid > 0 ? pid : null
|
|
23104
23354
|
};
|
|
23105
23355
|
}
|
|
23106
23356
|
};
|
|
23107
|
-
var appPidFile =
|
|
23357
|
+
var appPidFile = join14(paths.home, "gateway.pid");
|
|
23108
23358
|
function appKeeperPid(pidFile = appPidFile) {
|
|
23109
23359
|
let pid;
|
|
23110
23360
|
try {
|
|
23111
|
-
pid = Number(
|
|
23361
|
+
pid = Number(readFileSync11(pidFile, "utf8").trim());
|
|
23112
23362
|
} catch {
|
|
23113
23363
|
return null;
|
|
23114
23364
|
}
|
|
@@ -23158,6 +23408,128 @@ function serviceStatus() {
|
|
|
23158
23408
|
return manager().status();
|
|
23159
23409
|
}
|
|
23160
23410
|
|
|
23411
|
+
// packages/cli/src/web.ts
|
|
23412
|
+
import { mkdirSync as mkdirSync14, writeFileSync as writeFileSync12 } from "node:fs";
|
|
23413
|
+
import { homedir as homedir5, tmpdir as tmpdir2 } from "node:os";
|
|
23414
|
+
import { dirname as dirname6, join as join15, resolve as resolve5 } from "node:path";
|
|
23415
|
+
import { parseArgs as parseArgs6 } from "node:util";
|
|
23416
|
+
var WEB_HELP = `The web (through Firecrawl: its free tier, limited per day, until \`nolune key set firecrawl\`)
|
|
23417
|
+
nolune web search <query> [--limit N] [--news] [--recent day|week|month|year] [--country CC]
|
|
23418
|
+
the top results' titles, addresses and snippets
|
|
23419
|
+
(${DEFAULT_WEB_RESULTS} unless --limit, at most ${MAX_WEB_RESULTS}); --news for news
|
|
23420
|
+
articles, --country as someone there sees them (de)
|
|
23421
|
+
nolune web read <url> [--out FILE] a page's main text (or a PDF's) as Markdown; a long
|
|
23422
|
+
one is saved whole to a file, whose path it prints`;
|
|
23423
|
+
var MAX_PRINTED = 2e4;
|
|
23424
|
+
function expandHome2(path) {
|
|
23425
|
+
if (path === "~") return homedir5();
|
|
23426
|
+
return path.startsWith("~/") ? join15(homedir5(), path.slice(2)) : path;
|
|
23427
|
+
}
|
|
23428
|
+
async function search(io, args) {
|
|
23429
|
+
const { values, positionals } = parseArgs6({
|
|
23430
|
+
args,
|
|
23431
|
+
allowPositionals: true,
|
|
23432
|
+
options: {
|
|
23433
|
+
limit: { type: "string", short: "n" },
|
|
23434
|
+
news: { type: "boolean" },
|
|
23435
|
+
recent: { type: "string" },
|
|
23436
|
+
country: { type: "string" }
|
|
23437
|
+
}
|
|
23438
|
+
});
|
|
23439
|
+
const query = positionals.join(" ").trim();
|
|
23440
|
+
if (!query) throw new Error('say what to look for: nolune web search "<query>"');
|
|
23441
|
+
const limit = values.limit === void 0 ? DEFAULT_WEB_RESULTS : Number(values.limit);
|
|
23442
|
+
if (!Number.isInteger(limit) || limit < 1 || limit > MAX_WEB_RESULTS) {
|
|
23443
|
+
throw new Error(`--limit is between 1 and ${MAX_WEB_RESULTS}.`);
|
|
23444
|
+
}
|
|
23445
|
+
const recent = values.recent?.trim().toLowerCase();
|
|
23446
|
+
if (recent !== void 0 && !Object.hasOwn(WEB_RECENT, recent)) {
|
|
23447
|
+
throw new Error(`--recent is one of ${Object.keys(WEB_RECENT).join(", ")}.`);
|
|
23448
|
+
}
|
|
23449
|
+
const country = values.country?.trim();
|
|
23450
|
+
if (country !== void 0 && !/^[a-z]{2}$/i.test(country)) {
|
|
23451
|
+
throw new Error("--country is a two-letter country code, like de or us.");
|
|
23452
|
+
}
|
|
23453
|
+
const { results, warning } = await searchWeb(query, {
|
|
23454
|
+
limit,
|
|
23455
|
+
news: values.news,
|
|
23456
|
+
recent,
|
|
23457
|
+
country,
|
|
23458
|
+
env: io.env,
|
|
23459
|
+
signal: io.signal
|
|
23460
|
+
});
|
|
23461
|
+
if (warning) io.log(`Firecrawl: ${warning}`);
|
|
23462
|
+
if (!results.length) {
|
|
23463
|
+
io.log(`No results for "${query}".`);
|
|
23464
|
+
return;
|
|
23465
|
+
}
|
|
23466
|
+
io.log(
|
|
23467
|
+
results.map((r, i) => {
|
|
23468
|
+
const text2 = [r.text, r.date && `(${r.date})`].filter(Boolean).join(" ");
|
|
23469
|
+
return `${i + 1}. ${r.title}
|
|
23470
|
+
${r.url}${text2 ? `
|
|
23471
|
+
${text2}` : ""}`;
|
|
23472
|
+
}).join("\n\n")
|
|
23473
|
+
);
|
|
23474
|
+
}
|
|
23475
|
+
function fileName(url, now3) {
|
|
23476
|
+
const p2 = (n2) => String(n2).padStart(2, "0");
|
|
23477
|
+
const stamp2 = `${now3.getFullYear()}-${p2(now3.getMonth() + 1)}-${p2(now3.getDate())}-${p2(now3.getHours())}${p2(now3.getMinutes())}${p2(now3.getSeconds())}`;
|
|
23478
|
+
const { hostname, pathname } = new URL(url);
|
|
23479
|
+
const words = `${hostname.replace(/^www\./, "")} ${pathname}`.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 60).replace(/-+$/, "");
|
|
23480
|
+
return `${stamp2}-${words || "page"}.md`;
|
|
23481
|
+
}
|
|
23482
|
+
function pageText(page2) {
|
|
23483
|
+
return `${page2.title ? `# ${page2.title}
|
|
23484
|
+
` : ""}${page2.url}
|
|
23485
|
+
|
|
23486
|
+
${page2.markdown}
|
|
23487
|
+
`;
|
|
23488
|
+
}
|
|
23489
|
+
async function read(io, args) {
|
|
23490
|
+
const { values, positionals } = parseArgs6({
|
|
23491
|
+
args,
|
|
23492
|
+
allowPositionals: true,
|
|
23493
|
+
options: { out: { type: "string", short: "o" } }
|
|
23494
|
+
});
|
|
23495
|
+
if (positionals.length !== 1) throw new Error("usage: nolune web read <url> [--out FILE]");
|
|
23496
|
+
const page2 = await readWebPage(positionals[0], { env: io.env, signal: io.signal });
|
|
23497
|
+
if (page2.warning) io.log(`Firecrawl: ${page2.warning}`);
|
|
23498
|
+
if (page2.status) io.log(`The page answered ${page2.status}; this is what it showed.`);
|
|
23499
|
+
if (!page2.markdown) {
|
|
23500
|
+
io.log(`${page2.url} has no text Firecrawl could read.`);
|
|
23501
|
+
return;
|
|
23502
|
+
}
|
|
23503
|
+
const text2 = pageText(page2);
|
|
23504
|
+
if (values.out) {
|
|
23505
|
+
const file3 = resolve5(io.cwd, expandHome2(values.out));
|
|
23506
|
+
mkdirSync14(dirname6(file3), { recursive: true });
|
|
23507
|
+
writeFileSync12(file3, text2);
|
|
23508
|
+
io.log(`Saved ${page2.url} (${text2.length} characters) to ${file3}`);
|
|
23509
|
+
return;
|
|
23510
|
+
}
|
|
23511
|
+
if (text2.length <= MAX_PRINTED) {
|
|
23512
|
+
io.stdout(text2);
|
|
23513
|
+
return;
|
|
23514
|
+
}
|
|
23515
|
+
const dir = join15(io.env.TMPDIR || tmpdir2(), "nolune-web");
|
|
23516
|
+
const file2 = join15(dir, fileName(page2.url, /* @__PURE__ */ new Date()));
|
|
23517
|
+
mkdirSync14(dir, { recursive: true });
|
|
23518
|
+
writeFileSync12(file2, text2);
|
|
23519
|
+
const cut = text2.lastIndexOf("\n", MAX_PRINTED);
|
|
23520
|
+
const shown = text2.slice(0, cut > MAX_PRINTED / 2 ? cut : MAX_PRINTED);
|
|
23521
|
+
io.log(
|
|
23522
|
+
`${shown}
|
|
23523
|
+
|
|
23524
|
+
[${text2.length - shown.length} more characters. The whole page is in ${file2}: grep it, or read on with sed -n.]`
|
|
23525
|
+
);
|
|
23526
|
+
}
|
|
23527
|
+
async function webCommand(io, action, args) {
|
|
23528
|
+
if (action === "search") return search(io, args);
|
|
23529
|
+
if (action === "read") return read(io, args);
|
|
23530
|
+
throw new Error("usage: nolune web search <query> | nolune web read <url>. See `nolune help`.");
|
|
23531
|
+
}
|
|
23532
|
+
|
|
23161
23533
|
// packages/cli/src/run.ts
|
|
23162
23534
|
var help = () => `nolune - a family agent that runs on this computer
|
|
23163
23535
|
|
|
@@ -23192,14 +23564,18 @@ Settings (${paths.home})
|
|
|
23192
23564
|
recommended). Not from the agent's own commands
|
|
23193
23565
|
nolune config set safety-model <preset|chat> the preset whose model does auto mode's checks, or
|
|
23194
23566
|
chat for each chat's own model (the default)
|
|
23195
|
-
nolune
|
|
23567
|
+
nolune config set update-check <on|off> on (the default): the gateway asks GitHub once a
|
|
23568
|
+
day for nolune's newest release, and admins see when
|
|
23569
|
+
there's one
|
|
23570
|
+
nolune key set <anthropic|openai|openrouter|xai|firecrawl> [key]
|
|
23196
23571
|
store an API key (prompts if omitted) after checking
|
|
23197
23572
|
it; OpenAI's runs GPT chats and makes pictures, xAI's
|
|
23198
|
-
runs Grok
|
|
23573
|
+
runs Grok, Firecrawl's lifts the web search's daily
|
|
23574
|
+
limit. Admins can also do this on the web, under
|
|
23199
23575
|
Models & keys
|
|
23200
|
-
nolune key rm <anthropic|openai|openrouter|xai>
|
|
23576
|
+
nolune key rm <anthropic|openai|openrouter|xai|firecrawl>
|
|
23201
23577
|
remove a stored key (the environment's is used, if set)
|
|
23202
|
-
nolune env set <NAME> <value> extra env var for agent commands (e.g.
|
|
23578
|
+
nolune env set <NAME> <value> extra env var for agent commands (e.g. HASS_TOKEN)
|
|
23203
23579
|
nolune env rm <NAME> | nolune env list
|
|
23204
23580
|
|
|
23205
23581
|
Custom providers (model servers of your own: Ollama, LM Studio, oMLX, vLLM, llama.cpp...)
|
|
@@ -23235,7 +23611,8 @@ Users (there's no sign-up page: admins add people here, or on the People page)
|
|
|
23235
23611
|
nolune user passwd <name|email> [--password P]
|
|
23236
23612
|
nolune user admin <name|email> [--off]
|
|
23237
23613
|
nolune user rm <name|email>
|
|
23238
|
-
nolune user list
|
|
23614
|
+
nolune user list name, email, admin, and their picture's
|
|
23615
|
+
file if they have one
|
|
23239
23616
|
|
|
23240
23617
|
Model presets (shared by all profiles)
|
|
23241
23618
|
nolune preset add <model> [--provider anthropic|openai|openrouter|xai|claude-plan|chatgpt-plan|<custom>]
|
|
@@ -23275,6 +23652,8 @@ ${SOUL_HELP}
|
|
|
23275
23652
|
|
|
23276
23653
|
${generateHelp()}
|
|
23277
23654
|
|
|
23655
|
+
${WEB_HELP}
|
|
23656
|
+
|
|
23278
23657
|
Inside agent commands (NOLUNE_PROFILE is set, so --profile can be left out)
|
|
23279
23658
|
nolune view <image>... show images to the agent: they're attached to the
|
|
23280
23659
|
command's result (HEIC and big photos are converted)
|
|
@@ -23398,7 +23777,7 @@ To let the agent reach Documents, Desktop, Downloads, Photos and Mail, give Full
|
|
|
23398
23777
|
Note: this applies to every script run with that node binary.`;
|
|
23399
23778
|
}
|
|
23400
23779
|
async function setup(io, args) {
|
|
23401
|
-
const { values } =
|
|
23780
|
+
const { values } = parseArgs7({
|
|
23402
23781
|
args,
|
|
23403
23782
|
options: {
|
|
23404
23783
|
name: { type: "string" },
|
|
@@ -23501,7 +23880,7 @@ could. Or keep nolune to this computer, or give a URL of your own.`);
|
|
|
23501
23880
|
}
|
|
23502
23881
|
async function start(io) {
|
|
23503
23882
|
requireInit();
|
|
23504
|
-
if (!
|
|
23883
|
+
if (!existsSync9(paths.server)) {
|
|
23505
23884
|
fail(`no server build at ${paths.server}. In a source checkout, run \`pnpm build\` first.`);
|
|
23506
23885
|
}
|
|
23507
23886
|
const { host, port, origin } = listenAddress();
|
|
@@ -23535,7 +23914,7 @@ async function service(io, action, args) {
|
|
|
23535
23914
|
case "install": {
|
|
23536
23915
|
if (appManaged()) fail("the nolune app runs the gateway while it is open.");
|
|
23537
23916
|
requireInit();
|
|
23538
|
-
if (!
|
|
23917
|
+
if (!existsSync9(paths.server))
|
|
23539
23918
|
fail("no server build. In a source checkout, run `pnpm build` first.");
|
|
23540
23919
|
if (args.includes("--dry-run")) {
|
|
23541
23920
|
io.log(renderServiceFile());
|
|
@@ -23578,7 +23957,7 @@ It runs with ${process.execPath}; run \`nolune service install\` again after swi
|
|
|
23578
23957
|
return;
|
|
23579
23958
|
}
|
|
23580
23959
|
case "logs": {
|
|
23581
|
-
if (!
|
|
23960
|
+
if (!existsSync9(logFile)) fail(`no log yet at ${logFile}`);
|
|
23582
23961
|
const follow = args.includes("-f") || args.includes("--follow");
|
|
23583
23962
|
spawn2("tail", ["-n", "100", ...follow ? ["-f"] : [], logFile], { stdio: "inherit" });
|
|
23584
23963
|
return;
|
|
@@ -23637,7 +24016,7 @@ async function command(io, argv) {
|
|
|
23637
24016
|
);
|
|
23638
24017
|
for (const key2 of apiKeyStatuses()) {
|
|
23639
24018
|
const where = key2.source === "config" ? "key set" : key2.source === "env" ? `key from ${key2.env}` : "";
|
|
23640
|
-
const shown = where ? `${where}${key2.hint ? ` (\u2026${key2.hint})` : ""}` : `no key (nolune key set ${key2.provider})`;
|
|
24019
|
+
const shown = where ? `${where}${key2.hint ? ` (\u2026${key2.hint})` : ""}` : key2.optional ? `no key: the free tier, limited per day (nolune key set ${key2.provider})` : `no key (nolune key set ${key2.provider})`;
|
|
23641
24020
|
row(key2.provider, shown);
|
|
23642
24021
|
}
|
|
23643
24022
|
const customs = listCustomProviders();
|
|
@@ -23660,17 +24039,18 @@ async function command(io, argv) {
|
|
|
23660
24039
|
row("embeddings", embeddingStatus());
|
|
23661
24040
|
row("commands", describeCommandSafety());
|
|
23662
24041
|
row("env", Object.keys(config2.commandEnv ?? {}).join(", ") || "-");
|
|
24042
|
+
row("version", describeUpdates());
|
|
23663
24043
|
return;
|
|
23664
24044
|
}
|
|
23665
24045
|
if (action !== "set") {
|
|
23666
24046
|
fail(
|
|
23667
|
-
"usage: nolune config [set <host|port|origin|image-model|embeddings|claude-path|command-mode|safety-model> <value>]"
|
|
24047
|
+
"usage: nolune config [set <host|port|origin|image-model|embeddings|claude-path|command-mode|safety-model|update-check> <value>]"
|
|
23668
24048
|
);
|
|
23669
24049
|
}
|
|
23670
24050
|
const key = positional(
|
|
23671
24051
|
rest,
|
|
23672
24052
|
0,
|
|
23673
|
-
"host|port|origin|image-model|embeddings|claude-path|command-mode|safety-model"
|
|
24053
|
+
"host|port|origin|image-model|embeddings|claude-path|command-mode|safety-model|update-check"
|
|
23674
24054
|
);
|
|
23675
24055
|
if (key === "command-mode" || key === "safety-model") {
|
|
23676
24056
|
if (io.env.NOLUNE_CONVERSATION_ID) {
|
|
@@ -23697,6 +24077,19 @@ async function command(io, argv) {
|
|
|
23697
24077
|
io.log(`Commands: ${describeCommandSafety()}.`);
|
|
23698
24078
|
return;
|
|
23699
24079
|
}
|
|
24080
|
+
if (key === "update-check") {
|
|
24081
|
+
const on = positional(rest, 1, "on|off");
|
|
24082
|
+
if (on !== "on" && on !== "off") fail("update-check is on or off");
|
|
24083
|
+
updateConfig((c) => {
|
|
24084
|
+
if (on === "on") delete c.updateCheck;
|
|
24085
|
+
else c.updateCheck = false;
|
|
24086
|
+
});
|
|
24087
|
+
if (on === "off") forgetRelease();
|
|
24088
|
+
io.log(
|
|
24089
|
+
on === "on" ? "nolune will look for a new release within the hour, then once a day." : "nolune won\u2019t look for new releases."
|
|
24090
|
+
);
|
|
24091
|
+
return;
|
|
24092
|
+
}
|
|
23700
24093
|
if (key === "embeddings") {
|
|
23701
24094
|
let setting2;
|
|
23702
24095
|
try {
|
|
@@ -23726,7 +24119,7 @@ async function command(io, argv) {
|
|
|
23726
24119
|
} else if (key === "claude-path") c.claudePath = value;
|
|
23727
24120
|
else
|
|
23728
24121
|
fail(
|
|
23729
|
-
"you can set host, port, origin, image-model, embeddings, claude-path, command-mode or
|
|
24122
|
+
"you can set host, port, origin, image-model, embeddings, claude-path, command-mode, safety-model or update-check"
|
|
23730
24123
|
);
|
|
23731
24124
|
});
|
|
23732
24125
|
if (key === "claude-path") {
|
|
@@ -23765,7 +24158,7 @@ async function command(io, argv) {
|
|
|
23765
24158
|
}
|
|
23766
24159
|
case "provider": {
|
|
23767
24160
|
requireInit();
|
|
23768
|
-
const { values, positionals } =
|
|
24161
|
+
const { values, positionals } = parseArgs7({
|
|
23769
24162
|
args: rest,
|
|
23770
24163
|
allowPositionals: true,
|
|
23771
24164
|
options: { key: { type: "string" }, api: { type: "string" } }
|
|
@@ -23826,7 +24219,7 @@ async function command(io, argv) {
|
|
|
23826
24219
|
}
|
|
23827
24220
|
case "user": {
|
|
23828
24221
|
requireInit();
|
|
23829
|
-
const { values, positionals } =
|
|
24222
|
+
const { values, positionals } = parseArgs7({
|
|
23830
24223
|
args: rest,
|
|
23831
24224
|
allowPositionals: true,
|
|
23832
24225
|
options: {
|
|
@@ -23862,14 +24255,16 @@ async function command(io, argv) {
|
|
|
23862
24255
|
io.log(`Works once, within ${INVITE_DAYS} days. Take it back on the People page.`);
|
|
23863
24256
|
} else if (action === "list") {
|
|
23864
24257
|
for (const u of listUsers()) {
|
|
23865
|
-
|
|
24258
|
+
const picture = u.picture ? userPictureFile(u.picture) : null;
|
|
24259
|
+
const fields2 = [u.name, u.email, u.isAdmin && "admin", picture?.path];
|
|
24260
|
+
io.log(fields2.filter(Boolean).join(" "));
|
|
23866
24261
|
}
|
|
23867
24262
|
} else fail("usage: nolune user create|invite|passwd|admin|rm|list");
|
|
23868
24263
|
return;
|
|
23869
24264
|
}
|
|
23870
24265
|
case "preset": {
|
|
23871
24266
|
requireInit();
|
|
23872
|
-
const { values, positionals } =
|
|
24267
|
+
const { values, positionals } = parseArgs7({
|
|
23873
24268
|
args: rest,
|
|
23874
24269
|
allowPositionals: true,
|
|
23875
24270
|
options: {
|
|
@@ -23932,7 +24327,7 @@ async function command(io, argv) {
|
|
|
23932
24327
|
requireInit();
|
|
23933
24328
|
return profileCommand(io, action, rest);
|
|
23934
24329
|
case "skill": {
|
|
23935
|
-
const { values, positionals } =
|
|
24330
|
+
const { values, positionals } = parseArgs7({
|
|
23936
24331
|
args: rest,
|
|
23937
24332
|
allowPositionals: true,
|
|
23938
24333
|
options: {
|
|
@@ -24011,6 +24406,8 @@ ${on.length} of ${skills.length} on in ${profile2.name}, about ${formatTokens(to
|
|
|
24011
24406
|
return agentCommand(io, action, rest);
|
|
24012
24407
|
case "generate":
|
|
24013
24408
|
return generateCommand(io, action, rest);
|
|
24409
|
+
case "web":
|
|
24410
|
+
return webCommand(io, action, rest);
|
|
24014
24411
|
case "view": {
|
|
24015
24412
|
const dir = io.env.NOLUNE_VIEW_DIR;
|
|
24016
24413
|
if (!dir)
|