nolune 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +75 -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-57FDIVMS.js} +581 -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/{g0dNna8I.js → 0CkPnC0U.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/0CkPnC0U.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/0CkPnC0U.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DYRNDr1-.js → 383CdCvq.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/383CdCvq.js.br +3 -0
- package/packages/web/build/client/_app/immutable/chunks/383CdCvq.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{HqMpdXAn.js → 63KEjKgF.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/63KEjKgF.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/63KEjKgF.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{B4UB4rs1.js → 7t7uPQet.js} +3 -3
- package/packages/web/build/client/_app/immutable/chunks/7t7uPQet.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/7t7uPQet.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/8UkoxCih.js +2 -0
- package/packages/web/build/client/_app/immutable/chunks/8UkoxCih.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/8UkoxCih.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{CHT_aMF1.js → B8ruKwpA.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/B8ruKwpA.js.br +2 -0
- package/packages/web/build/client/_app/immutable/chunks/B8ruKwpA.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{Arbm6Z-7.js → BBuQNTxW.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BBuQNTxW.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BBuQNTxW.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{mIUZw7ea.js → BC1vm_Fv.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BC1vm_Fv.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BC1vm_Fv.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DkbTr46o.js → BKqaGVP4.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BKqaGVP4.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BKqaGVP4.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{EGNFfXHI.js → BMYHD-Yy.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BMYHD-Yy.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BMYHD-Yy.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{CitctZKs.js → BMnPy1wx.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BMnPy1wx.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BMnPy1wx.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DOuygBXh.js → BPKK0etX.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BPKK0etX.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BPKK0etX.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{2T-fBDBy.js → BTCoWUwK.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BTCoWUwK.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BTCoWUwK.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{BRwpK-dT.js → BU_hkWVh.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BU_hkWVh.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BU_hkWVh.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BVzfpEZz.js +1 -0
- package/packages/web/build/client/_app/immutable/chunks/BVzfpEZz.js.br +2 -0
- package/packages/web/build/client/_app/immutable/chunks/BVzfpEZz.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{B-y-pLH7.js → B_rmELop.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/B_rmELop.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/B_rmELop.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DfK6Rcsc.js → BeEDfwJw.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BeEDfwJw.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BeEDfwJw.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{C3hDYS_2.js → BfmbbzDN.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BfmbbzDN.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BfmbbzDN.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DxkF3JDM.js → BtBTCj8x.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/BtBTCj8x.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/BtBTCj8x.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DJtnnjH0.js → CBl3Um_l.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CBl3Um_l.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CBl3Um_l.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{BZPF9DjZ.js → CHB_7hVn.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CHB_7hVn.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CHB_7hVn.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{YSvFDluA.js → CIEGjRN1.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CIEGjRN1.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CIEGjRN1.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{D31DKq8w.js → CNAdDeCg.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CNAdDeCg.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CNAdDeCg.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{ml7xqx90.js → CPXn603x.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CPXn603x.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CPXn603x.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{CospDBPk.js → Cd7ZmOZV.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/Cd7ZmOZV.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Cd7ZmOZV.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{CzTy0pB_.js → CdG3AH1Q.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CdG3AH1Q.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CdG3AH1Q.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DjZqFLb2.js → CfRpJkOC.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CfRpJkOC.js.br +1 -0
- package/packages/web/build/client/_app/immutable/chunks/CfRpJkOC.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{Cu0LaHfb.js → CmyxQKzb.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CmyxQKzb.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CmyxQKzb.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{KZwrMxus.js → CqvXydBN.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CqvXydBN.js.br +2 -0
- package/packages/web/build/client/_app/immutable/chunks/CqvXydBN.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DHbUBEIq.js → CtAqtu_r.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/CtAqtu_r.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CtAqtu_r.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{C7R8aGgN.js → Cxq4KwT3.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/Cxq4KwT3.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Cxq4KwT3.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CyhdXPeH.js +31 -0
- package/packages/web/build/client/_app/immutable/chunks/CyhdXPeH.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/CyhdXPeH.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{C_zG_IWk.js → D5KiHwN1.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/D5KiHwN1.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/D5KiHwN1.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DDzx5zu6.js +1 -0
- package/packages/web/build/client/_app/immutable/chunks/DDzx5zu6.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DDzx5zu6.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DwZb087G.js → DIkRlUCG.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DIkRlUCG.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DIkRlUCG.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{l_FEBou3.js → DKOg5jTJ.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DKOg5jTJ.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DKOg5jTJ.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{B6D5Whjw.js → DUB9Upnc.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DUB9Upnc.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DUB9Upnc.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{3YJAVtuL.js → DdXAYCzx.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DdXAYCzx.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DdXAYCzx.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{SYU_L7u-.js → Dh4mEeLQ.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/Dh4mEeLQ.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/Dh4mEeLQ.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{CqF_BuCK.js → DkDi6YxC.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DkDi6YxC.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DkDi6YxC.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{JLT_WQ1y.js → DlC7O5v6.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DlC7O5v6.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DlC7O5v6.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DCOwc-sb.js → DnWuWNGA.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DnWuWNGA.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/DnWuWNGA.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{w-tlcbHs.js → DsGCMQUF.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/DsGCMQUF.js.br +2 -0
- package/packages/web/build/client/_app/immutable/chunks/DsGCMQUF.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{XeSqr1-v.js → FSGbsJ1X.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/FSGbsJ1X.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/FSGbsJ1X.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DDuZ7U-U.js → GpmZ3O-G.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/GpmZ3O-G.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/GpmZ3O-G.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{B0RiDAev.js → T94IbSnz.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/T94IbSnz.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/T94IbSnz.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{ClpsSDPY.js → T_LoDQZ8.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/T_LoDQZ8.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/T_LoDQZ8.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{Dmge5GnH.js → XNSVhFq3.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/XNSVhFq3.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/XNSVhFq3.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{DfVlrZNP.js → YSHpe8tA.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/YSHpe8tA.js.br +2 -0
- package/packages/web/build/client/_app/immutable/chunks/YSHpe8tA.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{D1J8Afkr.js → bT_6u-am.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/bT_6u-am.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/bT_6u-am.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{BE5ZZHhN.js → mIRGGBc6.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/mIRGGBc6.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/mIRGGBc6.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{BUXfq8X-.js → pcmzLgTE.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/pcmzLgTE.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/pcmzLgTE.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{CWft6ElM.js → xKSkWfAF.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/xKSkWfAF.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/xKSkWfAF.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/chunks/{Dfr0_2Ru.js → yHKvOvH3.js} +1 -1
- package/packages/web/build/client/_app/immutable/chunks/yHKvOvH3.js.br +0 -0
- package/packages/web/build/client/_app/immutable/chunks/yHKvOvH3.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/entry/app.CmiSyUhD.js +2 -0
- package/packages/web/build/client/_app/immutable/entry/app.CmiSyUhD.js.br +0 -0
- package/packages/web/build/client/_app/immutable/entry/app.CmiSyUhD.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/entry/start.B7o1VStc.js +1 -0
- package/packages/web/build/client/_app/immutable/entry/start.B7o1VStc.js.br +0 -0
- package/packages/web/build/client/_app/immutable/entry/start.B7o1VStc.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{0.wm7D0VJi.js → 0.Cx2Nt1tl.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/0.Cx2Nt1tl.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/0.Cx2Nt1tl.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{1.D69NuOUu.js → 1.mKvnEvz3.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/1.mKvnEvz3.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/1.mKvnEvz3.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{10.CqNSaHis.js → 10.PFvIfDDe.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/10.PFvIfDDe.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/10.PFvIfDDe.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/11.DMa3IixK.js +4 -0
- package/packages/web/build/client/_app/immutable/nodes/11.DMa3IixK.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/11.DMa3IixK.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{12.6O7iksy-.js → 12.BXMPGR7n.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/12.BXMPGR7n.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/12.BXMPGR7n.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{13.CHDUreBw.js → 13.DFqcL__B.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/13.DFqcL__B.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/13.DFqcL__B.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{14.B6ugcxW7.js → 14.lLDIO-cr.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/14.lLDIO-cr.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/14.lLDIO-cr.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{15.RKivXZm0.js → 15.CdvDW_CH.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/15.CdvDW_CH.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/15.CdvDW_CH.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{16.aiR8uT4H.js → 16.0-eYPyAZ.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/16.0-eYPyAZ.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/16.0-eYPyAZ.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/17.CHtcHvSr.js +46 -0
- package/packages/web/build/client/_app/immutable/nodes/17.CHtcHvSr.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/17.CHtcHvSr.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/18.CPrgOD7O.js +1 -0
- package/packages/web/build/client/_app/immutable/nodes/18.CPrgOD7O.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/18.CPrgOD7O.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{2.CSMdB7NK.js → 2.CXN61hY3.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/2.CXN61hY3.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/2.CXN61hY3.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{4.Bh5H61-f.js → 4.DRX2YsLZ.js} +2 -2
- package/packages/web/build/client/_app/immutable/nodes/4.DRX2YsLZ.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/4.DRX2YsLZ.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/5.DIvw1O7N.js +1 -0
- package/packages/web/build/client/_app/immutable/nodes/5.DIvw1O7N.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/5.DIvw1O7N.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{6.CgEej7P5.js → 6.tJFXgj7k.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/6.tJFXgj7k.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/6.tJFXgj7k.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{7.BZC_NLGc.js → 7.BhQ8HFTI.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/7.BhQ8HFTI.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/7.BhQ8HFTI.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{8.CgnuN54b.js → 8.BhDo_F5Y.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/8.BhDo_F5Y.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/8.BhDo_F5Y.js.gz +0 -0
- package/packages/web/build/client/_app/immutable/nodes/{9.Cum-EcyI.js → 9.CYluA9Fx.js} +1 -1
- package/packages/web/build/client/_app/immutable/nodes/9.CYluA9Fx.js.br +0 -0
- package/packages/web/build/client/_app/immutable/nodes/9.CYluA9Fx.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-C6ouYhFj.js} +4 -4
- package/packages/web/build/server/chunks/chunks/{AvatarPicker.js-jlMD6ySL.js → AvatarPicker.js-Dh6uJ0YS.js} +6 -6
- package/packages/web/build/server/chunks/chunks/{Composer.js-BqPMlGrt.js → Composer.js-Bhzoyc77.js} +7 -7
- package/packages/web/build/server/chunks/chunks/{ComposerDock.js-DZkvICf5.js → ComposerDock.js-BWStX--0.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{CopyButton.js-BJLHPF43.js → CopyButton.js-CyKwVziA.js} +4 -4
- package/packages/web/build/server/chunks/chunks/{DotGrid.js-CKoOdZxl.js → DotGrid.js-rxfz8TRy.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{MemoryChangeItem.js-B_Y3T2QD.js → MemoryChangeItem.js-BbXEwo_e.js} +8 -8
- package/packages/web/build/server/chunks/chunks/{ModelMenu.js-B6k5_aLo.js → ModelMenu.js-CfS7uQyt.js} +10 -10
- package/packages/web/build/server/chunks/chunks/{MoveToFolderMenu.js-CjDula2u.js → MoveToFolderMenu.js-DyhjEq1t.js} +8 -8
- package/packages/web/build/server/chunks/chunks/{NewChatForm.js-CVwMOeoA.js → NewChatForm.js-CytbQz66.js} +11 -11
- package/packages/web/build/server/chunks/chunks/{NewFolderDialog.js-DNi5lOQM.js → NewFolderDialog.js-BgUsRi8d.js} +6 -6
- package/packages/web/build/server/chunks/chunks/{Notifications.js-BEZJFhsy.js → Notifications.js-wImTLCEI.js} +8 -8
- package/packages/web/build/server/chunks/chunks/{PageHeader.js-Ds8UAfhG.js → PageHeader.js-COmRBQKn.js} +8 -8
- package/packages/web/build/server/chunks/chunks/{RenameFolderDialog.js-Bg9zaMZf.js → RenameFolderDialog.js-C0eQMZ95.js} +8 -8
- package/packages/web/build/server/chunks/chunks/{StepIcon.js-CqKzX9yt.js → StepIcon.js-BdUvCI-b.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{TopBar.js-rsCeot-b.js → TopBar.js-DQNZSUb_.js} +5 -5
- package/packages/web/build/server/chunks/chunks/{TypedText.js-DbTmyT8o.js → TypedText.js-BkktG6PP.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{UserAvatar.js-DjCA-lXs.js → UserAvatar.js-BueRY_7M.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{UserMenu.js-G3KBT840.js → UserMenu.js-Bjlqo20D.js} +282 -30
- package/packages/web/build/server/chunks/chunks/{access.js-2izFWt-j.js → access.js-MEV99oxr.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{accounts.js-BStorvph.js → accounts.js-CwPuZbNZ.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{alert-dialog.js-CO6J3B36.js → alert-dialog.js-DTeiOhPp.js} +6 -6
- package/packages/web/build/server/chunks/chunks/{auth.js-Jt5Hww4v.js → auth.js-DSZaNVcT.js} +6 -6
- package/packages/web/build/server/chunks/chunks/{badge.js-BpnEeBc7.js → badge.js-R_bmDgHG.js} +4 -4
- package/packages/web/build/server/chunks/chunks/{camera.js-b1uJ4lVX.js → camera.js-BSOU0lJn.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{check.js-CyQfqEJP.js → check.js-DF62U3rV.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{chevron-left.js-B_K5lBaE.js → chevron-left.js-BMVrTjCW.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{chevron-right.js-CoHvUh83.js → chevron-right.js-DzX_dEQc.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{chevrons-up-down.js-CyLdwy94.js → chevrons-up-down.js-RsB5ZQnX.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-CDiYfs8I.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{clock.js-CLb22uwG.js → clock.js-D9QiB1c5.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{collapsible.js-cCXGxgLw.js → collapsible.js-knAsppgW.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{command.js-BDskj0gu.js → command.js-CoL-g1oR.js} +9 -9
- package/packages/web/build/server/chunks/chunks/{dialog.js-DXA_GBOi.js → dialog.js-1YQYqJNO.js} +8 -8
- package/packages/web/build/server/chunks/chunks/{dist.js-pYdcHurl.js → dist.js-CJcPriqu.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-DGtNY62p.js +19 -0
- package/packages/web/build/server/chunks/chunks/{dropdown-menu.js-CzLUU4ZJ.js → dropdown-menu.js-Dg5o_TY7.js} +9 -9
- package/packages/web/build/server/chunks/chunks/{eraser.js-BBNh5g61.js → eraser.js-DyB6JAFd.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-3Fw2cedQ.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{forms.js-56VNnY4L.js → forms.js-ByB1sEfL.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{hidden-input.js-BUx03PZT.js → hidden-input.js-hdLLOkF9.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-Dc6Su8gz.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{key-round.js-D9eGcQlW.js → key-round.js-BG8KurAs.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{message-circle.js-DhZF2T2k.js → message-circle.js-CIYARy2F.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{motion.js-d-T3M4Yx.js → motion.js-BB9zpypn.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-BbQAQ3al.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{pencil.js-Cjwma9en.js → pencil.js-BimOkKUF.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{plus.js-DHN1gxDT.js → plus.js-Bjx-r8Fd.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-B_VyDz52.js} +10 -10
- package/packages/web/build/server/chunks/chunks/{shield-check.js-Rmmb1JbN.js → shield-check.js-KPxjKir3.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{sidebar.js-DWtM4Ra5.js → sidebar.js-JweLoiFM.js} +7 -7
- package/packages/web/build/server/chunks/chunks/{square-pen.js-Bd3e6XjH.js → square-pen.js-Bch46v7o.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{src.js-7Z6pIgv_.js → src.js-By1ympQX.js} +452 -61
- package/packages/web/build/server/chunks/chunks/{state.js-D_ujlxLl.js → state.js-Cc40pHn4.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{switch.js-BnTXFtzw.js → switch.js-C6G7NxB4.js} +5 -5
- package/packages/web/build/server/chunks/chunks/{terminal.js-Y2fxek9o.js → terminal.js-e1aZBkI1.js} +2 -2
- package/packages/web/build/server/chunks/chunks/{textarea.js-BgvRHb13.js → textarea.js-CWk8fI7W.js} +3 -3
- package/packages/web/build/server/chunks/chunks/{tooltip.js-Cw3QuWkr.js → tooltip.js-TDhWLmLB.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-DuMjoPpv.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-BUdKgGE5.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/continue/{_server.ts.js-D_THGgT1.js → _server.ts.js-JUQNzkwL.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/effort/{_server.ts.js-DOWHvbZi.js → _server.ts.js-0HrRnyVd.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/events/{_server.ts.js-CIzQYFfb.js → _server.ts.js-Fd5TUWQl.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/folder/{_server.ts.js-BmNAIISC.js → _server.ts.js-D7TLE8fM.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/media/_mediaId_/{_server.ts.js-DeHkrvkh.js → _server.ts.js-trGpeYuv.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/messages/{_server.ts.js-DXz21qnU.js → _server.ts.js-Cj42Eqpu.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-CGSBpTtH.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/stop/{_server.ts.js-DOjMMLMA.js → _server.ts.js-BF6x11dT.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/typing/{_server.ts.js-DX9cjD8Z.js → _server.ts.js-CZF1e0JF.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/card/changes/_id_/keep/{_server.ts.js-CIyn7GTs.js → _server.ts.js-ToCgvTHB.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/chatgpt/sign-in/{_server.ts.js-B8v7LpF3.js → _server.ts.js-BqCdSgku.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-qZPUyHYe.js → _server.ts.js-CbtmJhWO.js} +14 -8
- package/packages/web/build/server/chunks/entries/endpoints/api/hooks/_token_/{_server.ts.js-D4amKhp4.js → _server.ts.js-B24UQgy8.js} +3 -3
- package/packages/web/build/server/chunks/entries/endpoints/api/me/{_server.ts.js-BBWn25Oi.js → _server.ts.js-Dr42RbxS.js} +6 -6
- package/packages/web/build/server/chunks/entries/endpoints/api/me/picture/{_server.ts.js-dZL_xbjz.js → _server.ts.js-DejpXj_X.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/models/{_server.ts.js-Dfuttsjm.js → _server.ts.js-BW6vfx0M.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/notifications/_id_/continue/{_server.ts.js-DAwM0F_F.js → _server.ts.js-B6nzEuvX.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/notifications/_id_/dismiss/{_server.ts.js-8heKnu7f.js → _server.ts.js-zEnupBQa.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/notifications/clear/{_server.ts.js-CaLd4qG3.js → _server.ts.js-BfN93TIh.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/notifications/seen/{_server.ts.js-Bot6FjKV.js → _server.ts.js-wt_ytrYV.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-DHgnYoko.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/folders/{_server.ts.js-Bv0ksEXU.js → _server.ts.js-I4ay6EVe.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-BNQZ8SJB.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/running/{_server.ts.js-CYkLMuYu.js → _server.ts.js-CHCUhPy0.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/suggestions/{_server.ts.js-DUCHrSk6.js → _server.ts.js-CZW8C439.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-DmLQWK_v.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/_id_/{_server.ts.js-BF9RZXCk.js → _server.ts.js-IF3LoJVy.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/{_server.ts.js-otp9rnJv.js → _server.ts.js-B2gMGzM1.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/api/pictures/_sha256_/{_server.ts.js-BOhQB3f2.js → _server.ts.js-DMMjPwus.js} +5 -5
- package/packages/web/build/server/chunks/entries/endpoints/logout/{_server.ts.js-DL6gX2qC.js → _server.ts.js-Dv8ACUIe.js} +7 -7
- package/packages/web/build/server/chunks/entries/fallbacks/{error.svelte.js-vZl-v1dm.js → error.svelte.js-B57x2daG.js} +6 -6
- package/packages/web/build/server/chunks/entries/{hooks.server.js-D0u8HqRc.js → hooks.server.js-CmYecjEj.js} +163 -30
- package/packages/web/build/server/chunks/entries/pages/{_layout.server.ts.js-B2CDvry1.js → _layout.server.ts.js-_lmcaO0x.js} +7 -3
- package/packages/web/build/server/chunks/entries/pages/{_layout.svelte.js-D6V-3fNr.js → _layout.svelte.js-C15Vv6XL.js} +10 -10
- package/packages/web/build/server/chunks/entries/pages/_page.server.ts.js-Dryp7rFb.js +27 -0
- package/packages/web/build/server/chunks/entries/pages/admin/{_page.server.ts.js-DuGh8AuJ.js → _page.server.ts.js-Dp1bxhp1.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/admin/{_page.svelte.js-YCQGnKe-.js → _page.svelte.js-Wf_Yn6WZ.js} +45 -44
- package/packages/web/build/server/chunks/entries/pages/admin/people/{_page.server.ts.js-BydFt0aw.js → _page.server.ts.js-CruloyXg.js} +5 -5
- package/packages/web/build/server/chunks/entries/pages/admin/people/{_page.svelte.js-DmUewKns.js → _page.svelte.js-SeJZxU0o.js} +34 -45
- package/packages/web/build/server/chunks/entries/pages/card/{_page.server.ts.js-BF5dHQ7E.js → _page.server.ts.js-Bg9-ENj6.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/card/{_page.svelte.js-xCZibIzG.js → _page.svelte.js-BfpVeAf-.js} +34 -32
- package/packages/web/build/server/chunks/entries/pages/invite/_token_/{_page.server.ts.js-_lQIS5kE.js → _page.server.ts.js-lndAbDmS.js} +5 -5
- package/packages/web/build/server/chunks/entries/pages/invite/_token_/{_page.svelte.js-CiRdhe_F.js → _page.svelte.js-COfpDKES.js} +9 -9
- package/packages/web/build/server/chunks/entries/pages/login/{_page.server.ts.js-CxwIydss.js → _page.server.ts.js-kqOmJbLu.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/login/{_page.svelte.js-CDxgr3fb.js → _page.svelte.js-BzwZRPwR.js} +8 -8
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/{_layout.server.ts.js-xi53HUuw.js → _layout.server.ts.js-hs-tr7yL.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/{_layout.svelte.js-CwXT4Nxo.js → _layout.svelte.js-DmBoowEF.js} +38 -36
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/{_page.server.ts.js-BMbkhcgA.js → _page.server.ts.js-CiM8kGoj.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/{_page.svelte.js-BLZUZ8qO.js → _page.svelte.js-BdKHl9Yn.js} +25 -25
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/automations/{_page.server.ts.js-L3XyHTlD.js → _page.server.ts.js-CRrjrgm8.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/automations/{_page.svelte.js-CCWOVwPO.js → _page.svelte.js-B5ANpdwf.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-Bs8H4bpR.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/c/_id_/{_page.svelte.js-C7MIxs96.js → _page.svelte.js-wo5u1WMt.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-BSVnvjdU.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/f/_folder_/{_page.svelte.js-CjcGk1qi.js → _page.svelte.js-OFW8eM9A.js} +31 -31
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/images/{_page.server.ts.js-BJfkJtJP.js → _page.server.ts.js-YZtGEBqQ.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/images/{_page.svelte.js-BHvGAU_A.js → _page.svelte.js-TFVrf9Qc.js} +30 -30
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/memory/{_page.server.ts.js-Dm4l7L0_.js → _page.server.ts.js-1TmIoI1D.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/memory/{_page.svelte.js-s4Ls3NYt.js → _page.svelte.js-DX0MQQje.js} +31 -31
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/settings/{_page.server.ts.js-CVSpjnSC.js → _page.server.ts.js-DbFXgvlY.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/settings/{_page.svelte.js-Pbx5ZfnQ.js → _page.svelte.js-BwILBd17.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-CEWTqmAh.js} +4 -4
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/skills/{_page.svelte.js-CdJuNHWp.js → _page.svelte.js-k_QMzo5H.js} +18 -18
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/welcome/{_page.server.ts.js-BBptFQZ4.js → _page.server.ts.js-BXfVUOog.js} +7 -7
- package/packages/web/build/server/chunks/entries/pages/p/_slug_/welcome/{_page@.svelte.js-l7VqHfZ-.js → _page@.svelte.js-DQ6fVTeH.js} +11 -11
- package/packages/web/build/server/chunks/entries/pages/profiles/_page.server.ts.js-DoGUx-pM.js +47 -0
- package/packages/web/build/server/chunks/entries/pages/profiles/_page.svelte.js-C_75aOkM.js +240 -0
- package/packages/web/build/server/chunks/{handler-CU7wyVY1.js → handler-Bdx21Q9q.js} +3 -3
- package/packages/web/build/server/chunks/{index.js-BvLcoDvJ.js → index.js-EgFfPiJZ.js} +3 -3
- package/packages/web/build/server/chunks/{manifest.js-DJQR6OoL.js → manifest.js-DombPeWO.js} +52 -52
- package/packages/web/build/server/chunks/nodes/{0.js-Dm_deDsl.js → 0.js-DSkmy8nQ.js} +7 -7
- package/packages/web/build/server/chunks/nodes/{1.js-5Mpz6vOe.js → 1.js-DO-ELnNJ.js} +3 -3
- package/packages/web/build/server/chunks/nodes/{10.js-B9CHYCv_.js → 10.js-BkIA--zy.js} +8 -8
- package/packages/web/build/server/chunks/nodes/11.js-B-sqv4rv.js +44 -0
- package/packages/web/build/server/chunks/nodes/12.js-BvlY14n6.js +44 -0
- package/packages/web/build/server/chunks/nodes/{13.js-CwlDsYBK.js → 13.js-DH6Q8BO-.js} +8 -8
- package/packages/web/build/server/chunks/nodes/{14.js-DW7_bMWl.js → 14.js-Bc0k34qo.js} +8 -8
- package/packages/web/build/server/chunks/nodes/{15.js-LKEcP1PU.js → 15.js-DhiwEUCE.js} +8 -8
- package/packages/web/build/server/chunks/nodes/{16.js-ya7bcira.js → 16.js-GgaC_-zn.js} +8 -8
- package/packages/web/build/server/chunks/nodes/{17.js-Dg0NDX-x.js → 17.js-fO9dDIMx.js} +8 -8
- package/packages/web/build/server/chunks/nodes/18.js-DOPytEsE.js +44 -0
- package/packages/web/build/server/chunks/nodes/2.js-C7plyqC8.js +46 -0
- package/packages/web/build/server/chunks/nodes/{3.js-BjxqYFWf.js → 3.js-Bp-F3sec.js} +7 -6
- package/packages/web/build/server/chunks/nodes/4.js-Mjaj33wu.js +45 -0
- package/packages/web/build/server/chunks/nodes/5.js-esb4kB6X.js +46 -0
- package/packages/web/build/server/chunks/nodes/6.js-B_-hSrZx.js +44 -0
- package/packages/web/build/server/chunks/nodes/{7.js-Bqv_9Brz.js → 7.js-DHHX8tWm.js} +12 -12
- package/packages/web/build/server/chunks/nodes/{8.js-Mdz7UJfW.js → 8.js-5U-SgkIq.js} +11 -11
- package/packages/web/build/server/chunks/nodes/{9.js-HaSDMajw.js → 9.js-D-v_bOS3.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,152 @@ 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
|
+
async function searchWeb(query, options = {}) {
|
|
7878
|
+
const limit = options.limit ?? DEFAULT_WEB_RESULTS;
|
|
7879
|
+
const data = await call(
|
|
7880
|
+
"the search",
|
|
7881
|
+
options,
|
|
7882
|
+
(firecrawl) => firecrawl.search(query, {
|
|
7883
|
+
limit,
|
|
7884
|
+
sources: [options.news ? "news" : "web"],
|
|
7885
|
+
...options.recent ? { tbs: WEB_RECENT[options.recent] } : {},
|
|
7886
|
+
...options.country ? { country: options.country.toUpperCase() } : {},
|
|
7887
|
+
timeout: TIMEOUT_MS2
|
|
7888
|
+
})
|
|
7889
|
+
);
|
|
7890
|
+
const found2 = (options.news ? data.news : data.web) ?? [];
|
|
7891
|
+
const results = found2.flatMap((item) => {
|
|
7892
|
+
const r = item;
|
|
7893
|
+
if (!r.url) return [];
|
|
7894
|
+
return [
|
|
7895
|
+
{
|
|
7896
|
+
title: r.title?.trim() || r.url,
|
|
7897
|
+
url: r.url,
|
|
7898
|
+
text: (r.description ?? r.snippet ?? "").trim(),
|
|
7899
|
+
date: r.date?.trim() || null
|
|
7900
|
+
}
|
|
7901
|
+
];
|
|
7902
|
+
});
|
|
7903
|
+
return { results: results.slice(0, limit), warning: data.warning ?? null };
|
|
7904
|
+
}
|
|
7905
|
+
function webUrl(text2) {
|
|
7906
|
+
const trimmed = text2.trim();
|
|
7907
|
+
const withScheme = /^[a-z][a-z0-9+.-]*:/i.test(trimmed) ? trimmed : `https://${trimmed}`;
|
|
7908
|
+
let url;
|
|
7909
|
+
try {
|
|
7910
|
+
url = new URL(withScheme);
|
|
7911
|
+
} catch {
|
|
7912
|
+
throw new WebError(`"${trimmed}" isn't a web address.`);
|
|
7913
|
+
}
|
|
7914
|
+
if (url.protocol !== "http:" && url.protocol !== "https:") {
|
|
7915
|
+
throw new WebError(`Only web pages can be read (http or https), not ${url.protocol} ones.`);
|
|
7916
|
+
}
|
|
7917
|
+
return url.href;
|
|
7918
|
+
}
|
|
7919
|
+
async function readWebPage(address, options = {}) {
|
|
7920
|
+
const url = webUrl(address);
|
|
7921
|
+
const doc = await call(
|
|
7922
|
+
"reading the page",
|
|
7923
|
+
options,
|
|
7924
|
+
(firecrawl) => firecrawl.scrape(url, {
|
|
7925
|
+
formats: ["markdown"],
|
|
7926
|
+
onlyMainContent: true,
|
|
7927
|
+
timeout: TIMEOUT_MS2,
|
|
7928
|
+
// A big PDF can keep Firecrawl busy for minutes; the command answers in time instead.
|
|
7929
|
+
autoResume: false
|
|
7930
|
+
})
|
|
7931
|
+
);
|
|
7932
|
+
const meta = doc.metadata ?? {};
|
|
7933
|
+
const status2 = typeof meta.statusCode === "number" ? meta.statusCode : null;
|
|
7934
|
+
return {
|
|
7935
|
+
url: meta.url || meta.sourceURL || url,
|
|
7936
|
+
title: meta.title?.trim() || null,
|
|
7937
|
+
markdown: doc.markdown?.trim() ?? "",
|
|
7938
|
+
status: status2 !== null && status2 >= 400 ? status2 : null,
|
|
7939
|
+
warning: doc.warning ?? null
|
|
7940
|
+
};
|
|
7941
|
+
}
|
|
7942
|
+
|
|
7943
|
+
// packages/core/src/anthropic.ts
|
|
7944
|
+
var sdk3;
|
|
7806
7945
|
async function loadSdk2() {
|
|
7807
|
-
|
|
7808
|
-
return
|
|
7946
|
+
sdk3 ??= await import("./sdk-UNMKBESV.js");
|
|
7947
|
+
return sdk3;
|
|
7809
7948
|
}
|
|
7810
7949
|
function isSdkError2(err, name2) {
|
|
7811
|
-
return
|
|
7950
|
+
return sdk3 !== void 0 && err instanceof sdk3[name2];
|
|
7812
7951
|
}
|
|
7813
|
-
var
|
|
7952
|
+
var cached3;
|
|
7814
7953
|
var MissingApiKeyError2 = class extends Error {
|
|
7815
7954
|
constructor() {
|
|
7816
7955
|
super(`No Anthropic API key. ${apiKeyHelp("anthropic")}`);
|
|
@@ -7824,12 +7963,12 @@ function apiKey2() {
|
|
|
7824
7963
|
async function getClient2() {
|
|
7825
7964
|
const key = apiKey2();
|
|
7826
7965
|
const { Anthropic: Client2 } = await loadSdk2();
|
|
7827
|
-
if (!
|
|
7828
|
-
return
|
|
7966
|
+
if (!cached3 || cached3.key !== key) cached3 = { key, client: new Client2({ apiKey: key }) };
|
|
7967
|
+
return cached3.client;
|
|
7829
7968
|
}
|
|
7830
7969
|
async function fetchContextWindow2(model) {
|
|
7831
|
-
const
|
|
7832
|
-
const info = await
|
|
7970
|
+
const client3 = await getClient2();
|
|
7971
|
+
const info = await client3.models.retrieve(model);
|
|
7833
7972
|
return info.max_input_tokens ?? null;
|
|
7834
7973
|
}
|
|
7835
7974
|
function describeApiError2(err) {
|
|
@@ -7867,8 +8006,8 @@ function describePlanAccount(account2) {
|
|
|
7867
8006
|
var loaded;
|
|
7868
8007
|
async function load() {
|
|
7869
8008
|
if (!loaded) {
|
|
7870
|
-
const [
|
|
7871
|
-
loaded = { sdk:
|
|
8009
|
+
const [sdk7, zod] = await Promise.all([import("./sdk-Z2WD4F5K.js"), import("./zod-H7KMPIPH.js")]);
|
|
8010
|
+
loaded = { sdk: sdk7, z: zod.z };
|
|
7872
8011
|
}
|
|
7873
8012
|
return loaded;
|
|
7874
8013
|
}
|
|
@@ -7972,9 +8111,9 @@ function accountProblem(account2) {
|
|
|
7972
8111
|
return `Claude Code isn't signed in to a Claude plan. ${HOW_TO_SIGN_IN}`;
|
|
7973
8112
|
}
|
|
7974
8113
|
async function ask(question) {
|
|
7975
|
-
const { sdk:
|
|
8114
|
+
const { sdk: sdk7 } = await load();
|
|
7976
8115
|
let release;
|
|
7977
|
-
const released = new Promise((
|
|
8116
|
+
const released = new Promise((resolve6) => release = resolve6);
|
|
7978
8117
|
async function* nothing() {
|
|
7979
8118
|
await released;
|
|
7980
8119
|
yield* [];
|
|
@@ -7982,7 +8121,7 @@ async function ask(question) {
|
|
|
7982
8121
|
let q2;
|
|
7983
8122
|
let timer;
|
|
7984
8123
|
try {
|
|
7985
|
-
q2 =
|
|
8124
|
+
q2 = sdk7.query({
|
|
7986
8125
|
prompt: nothing(),
|
|
7987
8126
|
options: { ...baseOptions(homedir()), persistSession: false }
|
|
7988
8127
|
});
|
|
@@ -8123,7 +8262,7 @@ async function withLock(work) {
|
|
|
8123
8262
|
}
|
|
8124
8263
|
if (Date.now() > until)
|
|
8125
8264
|
throw new PlanError("Another nolune is refreshing the ChatGPT sign-in.");
|
|
8126
|
-
await new Promise((
|
|
8265
|
+
await new Promise((resolve6) => setTimeout(resolve6, 100));
|
|
8127
8266
|
}
|
|
8128
8267
|
}
|
|
8129
8268
|
try {
|
|
@@ -8281,11 +8420,11 @@ function randomValue(bytes = 32) {
|
|
|
8281
8420
|
return randomBytes2(bytes).toString("base64url");
|
|
8282
8421
|
}
|
|
8283
8422
|
function listen(server) {
|
|
8284
|
-
return new Promise((
|
|
8423
|
+
return new Promise((resolve6, reject) => {
|
|
8285
8424
|
server.once("error", reject);
|
|
8286
8425
|
server.listen(0, "127.0.0.1", () => {
|
|
8287
8426
|
server.off("error", reject);
|
|
8288
|
-
|
|
8427
|
+
resolve6(server.address().port);
|
|
8289
8428
|
});
|
|
8290
8429
|
});
|
|
8291
8430
|
}
|
|
@@ -8304,7 +8443,7 @@ async function startChatGptSignIn(opts = {}) {
|
|
|
8304
8443
|
const verifier = randomValue(48);
|
|
8305
8444
|
const challenge = createHash("sha256").update(verifier).digest("base64url");
|
|
8306
8445
|
let settle;
|
|
8307
|
-
const done = new Promise((
|
|
8446
|
+
const done = new Promise((resolve6, reject) => settle = { resolve: resolve6, reject });
|
|
8308
8447
|
done.catch(() => {
|
|
8309
8448
|
});
|
|
8310
8449
|
let completing = null;
|
|
@@ -8493,7 +8632,7 @@ async function signOutChatGpt() {
|
|
|
8493
8632
|
revoked = true;
|
|
8494
8633
|
} catch (err) {
|
|
8495
8634
|
if (err instanceof AuthServiceError && err.status && err.status < 500) break;
|
|
8496
|
-
await new Promise((
|
|
8635
|
+
await new Promise((resolve6) => setTimeout(resolve6, 500 * 2 ** attempt));
|
|
8497
8636
|
}
|
|
8498
8637
|
}
|
|
8499
8638
|
}
|
|
@@ -8585,14 +8724,14 @@ async function refresh() {
|
|
|
8585
8724
|
// packages/core/src/openai-chat.ts
|
|
8586
8725
|
var UPLOAD_TIMEOUT_MS2 = 5 * 6e4;
|
|
8587
8726
|
var REQUEST_TIMEOUT_MS3 = 6e4;
|
|
8588
|
-
var
|
|
8727
|
+
var sdk4;
|
|
8589
8728
|
async function loadSdk3() {
|
|
8590
|
-
return
|
|
8729
|
+
return sdk4 ??= await import("./openai-ZCNISNG4.js");
|
|
8591
8730
|
}
|
|
8592
8731
|
function isSdkError3(err, name2) {
|
|
8593
|
-
return !!
|
|
8732
|
+
return !!sdk4 && err instanceof sdk4[name2];
|
|
8594
8733
|
}
|
|
8595
|
-
var
|
|
8734
|
+
var cached4;
|
|
8596
8735
|
var MissingApiKeyError3 = class extends Error {
|
|
8597
8736
|
constructor() {
|
|
8598
8737
|
super(`No OpenAI API key. ${apiKeyHelp("openai")}`);
|
|
@@ -8618,10 +8757,10 @@ async function getClient3() {
|
|
|
8618
8757
|
const key = apiKey3();
|
|
8619
8758
|
const baseURL = openaiBaseUrl();
|
|
8620
8759
|
const { OpenAI: Client2 } = await loadSdk3();
|
|
8621
|
-
if (!
|
|
8622
|
-
|
|
8760
|
+
if (!cached4 || cached4.key !== key || cached4.baseURL !== baseURL) {
|
|
8761
|
+
cached4 = { key, baseURL, client: new Client2({ apiKey: key, baseURL }) };
|
|
8623
8762
|
}
|
|
8624
|
-
return
|
|
8763
|
+
return cached4.client;
|
|
8625
8764
|
}
|
|
8626
8765
|
var FLAGSHIP_CONTEXT_WINDOW = 105e4;
|
|
8627
8766
|
function gptVersion(model) {
|
|
@@ -8638,8 +8777,8 @@ function knownContextWindow2(model) {
|
|
|
8638
8777
|
return flagship ? FLAGSHIP_CONTEXT_WINDOW : null;
|
|
8639
8778
|
}
|
|
8640
8779
|
async function fetchContextWindow3(model) {
|
|
8641
|
-
const
|
|
8642
|
-
await
|
|
8780
|
+
const client3 = await getClient3();
|
|
8781
|
+
await client3.models.retrieve(model, { timeout: REQUEST_TIMEOUT_MS3 });
|
|
8643
8782
|
return knownContextWindow2(model);
|
|
8644
8783
|
}
|
|
8645
8784
|
function describeApiError3(err) {
|
|
@@ -8697,7 +8836,7 @@ function apiUrl2() {
|
|
|
8697
8836
|
function who() {
|
|
8698
8837
|
return activeRegistration()?.email ?? "This ChatGPT account";
|
|
8699
8838
|
}
|
|
8700
|
-
function
|
|
8839
|
+
function describeFailure3(failure) {
|
|
8701
8840
|
const { status: status2, code, param, message: message2 } = failure;
|
|
8702
8841
|
switch (code) {
|
|
8703
8842
|
case "subscription_sharing_usage_limit_exceeded":
|
|
@@ -8733,7 +8872,7 @@ function planError(err) {
|
|
|
8733
8872
|
const cause = err?.cause;
|
|
8734
8873
|
if (cause instanceof PlanError) return cause;
|
|
8735
8874
|
const failure = failureOf(err);
|
|
8736
|
-
const described = failure &&
|
|
8875
|
+
const described = failure && describeFailure3(failure);
|
|
8737
8876
|
return described ? new PlanError(described, failure.code ?? `http_${failure.status}`, { cause: err }) : err;
|
|
8738
8877
|
}
|
|
8739
8878
|
async function asPlan(work) {
|
|
@@ -8797,7 +8936,7 @@ async function catalog2(refresh2 = false) {
|
|
|
8797
8936
|
message: str2(error.message) ?? str2(body.detail) ?? (text2.slice(0, 200) || res.statusText)
|
|
8798
8937
|
};
|
|
8799
8938
|
throw new PlanError(
|
|
8800
|
-
|
|
8939
|
+
describeFailure3(failure) ?? `OpenAI said ${res.status} to the ChatGPT plan: ${failure.message}`,
|
|
8801
8940
|
failure.code ?? `http_${res.status}`
|
|
8802
8941
|
);
|
|
8803
8942
|
}
|
|
@@ -9029,7 +9168,7 @@ async function checkCustomProvider(url, key) {
|
|
|
9029
9168
|
var openaiSdk;
|
|
9030
9169
|
var anthropicSdk;
|
|
9031
9170
|
var ours2 = /* @__PURE__ */ new WeakMap();
|
|
9032
|
-
async function tagged2(api, model,
|
|
9171
|
+
async function tagged2(api, model, call2) {
|
|
9033
9172
|
let provider = null;
|
|
9034
9173
|
try {
|
|
9035
9174
|
provider = providerOf(model);
|
|
@@ -9038,7 +9177,7 @@ async function tagged2(api, model, call) {
|
|
|
9038
9177
|
`${provider.name} speaks ${API_NAMES[provider.api]} API, not ${API_NAMES[api]}.`
|
|
9039
9178
|
);
|
|
9040
9179
|
}
|
|
9041
|
-
return await
|
|
9180
|
+
return await call2(provider);
|
|
9042
9181
|
} catch (err) {
|
|
9043
9182
|
if (err !== null && typeof err === "object") ours2.set(err, provider);
|
|
9044
9183
|
throw err;
|
|
@@ -9152,12 +9291,12 @@ var MODELS_TTL_MS2 = 60 * 6e4;
|
|
|
9152
9291
|
function xaiBaseUrl() {
|
|
9153
9292
|
return (process.env.XAI_BASE_URL || "https://api.x.ai/v1").replace(/\/+$/, "");
|
|
9154
9293
|
}
|
|
9155
|
-
var
|
|
9294
|
+
var sdk5;
|
|
9156
9295
|
async function loadSdk4() {
|
|
9157
|
-
return
|
|
9296
|
+
return sdk5 ??= await import("./openai-ZCNISNG4.js");
|
|
9158
9297
|
}
|
|
9159
9298
|
function isSdkError5(err, name2) {
|
|
9160
|
-
return !!
|
|
9299
|
+
return !!sdk5 && err instanceof sdk5[name2];
|
|
9161
9300
|
}
|
|
9162
9301
|
var XaiError = class extends Error {
|
|
9163
9302
|
};
|
|
@@ -9167,9 +9306,9 @@ var MissingApiKeyError4 = class extends XaiError {
|
|
|
9167
9306
|
}
|
|
9168
9307
|
};
|
|
9169
9308
|
var ours3 = /* @__PURE__ */ new WeakSet();
|
|
9170
|
-
async function tagged3(
|
|
9309
|
+
async function tagged3(call2) {
|
|
9171
9310
|
try {
|
|
9172
|
-
return await
|
|
9311
|
+
return await call2();
|
|
9173
9312
|
} catch (err) {
|
|
9174
9313
|
if (err !== null && typeof err === "object") ours3.add(err);
|
|
9175
9314
|
throw err;
|
|
@@ -9183,16 +9322,16 @@ function apiKey4() {
|
|
|
9183
9322
|
if (!found2) throw new MissingApiKeyError4();
|
|
9184
9323
|
return found2.key;
|
|
9185
9324
|
}
|
|
9186
|
-
var
|
|
9325
|
+
var cached5;
|
|
9187
9326
|
async function getClient4() {
|
|
9188
9327
|
const key = apiKey4();
|
|
9189
9328
|
const baseURL = xaiBaseUrl();
|
|
9190
9329
|
const { OpenAI: Client2 } = await loadSdk4();
|
|
9191
|
-
if (!
|
|
9192
|
-
const
|
|
9193
|
-
|
|
9330
|
+
if (!cached5 || cached5.key !== key || cached5.baseURL !== baseURL) {
|
|
9331
|
+
const client3 = new Client2({ apiKey: key, baseURL, organization: null, project: null });
|
|
9332
|
+
cached5 = { key, baseURL, client: client3 };
|
|
9194
9333
|
}
|
|
9195
|
-
return
|
|
9334
|
+
return cached5.client;
|
|
9196
9335
|
}
|
|
9197
9336
|
function strings(value) {
|
|
9198
9337
|
return Array.isArray(value) ? value.filter((v2) => typeof v2 === "string") : [];
|
|
@@ -9202,11 +9341,11 @@ function catalogOf2(fresh2 = false) {
|
|
|
9202
9341
|
const key = apiKey4();
|
|
9203
9342
|
if (fresh2 || !catalog3 || catalog3.key !== key || Date.now() - catalog3.at > MODELS_TTL_MS2) {
|
|
9204
9343
|
const models = tagged3(async () => {
|
|
9205
|
-
const
|
|
9344
|
+
const client3 = await getClient4();
|
|
9206
9345
|
const options = { timeout: REQUEST_TIMEOUT_MS5 };
|
|
9207
9346
|
const [language, all] = await Promise.all([
|
|
9208
|
-
|
|
9209
|
-
|
|
9347
|
+
client3.get("/language-models", options),
|
|
9348
|
+
client3.get("/models", options)
|
|
9210
9349
|
]);
|
|
9211
9350
|
const details = new Map((all.data ?? []).map((m2) => [m2.id, m2]));
|
|
9212
9351
|
return (language.models ?? []).flatMap((m2) => {
|
|
@@ -9293,22 +9432,32 @@ var ABOUT = {
|
|
|
9293
9432
|
anthropic: {
|
|
9294
9433
|
purpose: "Runs chats and automations on Claude models.",
|
|
9295
9434
|
withoutIt: "Chats and automations on Claude models stop working until a new key is added.",
|
|
9296
|
-
consoleUrl: "https://console.anthropic.com/settings/keys"
|
|
9435
|
+
consoleUrl: "https://console.anthropic.com/settings/keys",
|
|
9436
|
+
optional: false
|
|
9297
9437
|
},
|
|
9298
9438
|
openai: {
|
|
9299
9439
|
purpose: "Runs chats and automations on OpenAI models, and makes pictures for the Images page and when the agent draws.",
|
|
9300
9440
|
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"
|
|
9441
|
+
consoleUrl: "https://platform.openai.com/api-keys",
|
|
9442
|
+
optional: false
|
|
9302
9443
|
},
|
|
9303
9444
|
openrouter: {
|
|
9304
9445
|
purpose: "Runs chats and automations on the models OpenRouter serves (Claude, GPT, Gemini, DeepSeek and many more), with one key and its credits.",
|
|
9305
9446
|
withoutIt: "Chats and automations on OpenRouter models stop working until a new key is added.",
|
|
9306
|
-
consoleUrl: "https://openrouter.ai/settings/keys"
|
|
9447
|
+
consoleUrl: "https://openrouter.ai/settings/keys",
|
|
9448
|
+
optional: false
|
|
9307
9449
|
},
|
|
9308
9450
|
xai: {
|
|
9309
9451
|
purpose: "Runs chats and automations on xAI's Grok models.",
|
|
9310
9452
|
withoutIt: "Chats and automations on Grok models stop working until a new key is added.",
|
|
9311
|
-
consoleUrl: "https://console.x.ai"
|
|
9453
|
+
consoleUrl: "https://console.x.ai",
|
|
9454
|
+
optional: false
|
|
9455
|
+
},
|
|
9456
|
+
firecrawl: {
|
|
9457
|
+
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.",
|
|
9458
|
+
withoutIt: "Web searches go back to Firecrawl's free tier, with its daily limit.",
|
|
9459
|
+
consoleUrl: "https://www.firecrawl.dev/app/api-keys",
|
|
9460
|
+
optional: true
|
|
9312
9461
|
}
|
|
9313
9462
|
};
|
|
9314
9463
|
function apiKeyStatuses() {
|
|
@@ -9361,6 +9510,12 @@ function checkRequest(provider, key) {
|
|
|
9361
9510
|
if (provider === "xai") {
|
|
9362
9511
|
return { url: `${xaiBaseUrl()}/api-key`, headers: { authorization: `Bearer ${key}` } };
|
|
9363
9512
|
}
|
|
9513
|
+
if (provider === "firecrawl") {
|
|
9514
|
+
return {
|
|
9515
|
+
url: `${firecrawlBaseUrl()}/v2/team/credit-usage`,
|
|
9516
|
+
headers: { authorization: `Bearer ${key}` }
|
|
9517
|
+
};
|
|
9518
|
+
}
|
|
9364
9519
|
return { url: `${openaiBaseUrl()}/models`, headers: { authorization: `Bearer ${key}` } };
|
|
9365
9520
|
}
|
|
9366
9521
|
function networkError2(err) {
|
|
@@ -10500,7 +10655,7 @@ function sql(strings2, ...params) {
|
|
|
10500
10655
|
return new SQL([new StringChunk(str3)]);
|
|
10501
10656
|
}
|
|
10502
10657
|
sql2.raw = raw;
|
|
10503
|
-
function
|
|
10658
|
+
function join16(chunks, separator) {
|
|
10504
10659
|
const result = [];
|
|
10505
10660
|
for (const [i, chunk] of chunks.entries()) {
|
|
10506
10661
|
if (i > 0 && separator !== void 0) {
|
|
@@ -10510,7 +10665,7 @@ function sql(strings2, ...params) {
|
|
|
10510
10665
|
}
|
|
10511
10666
|
return new SQL(result);
|
|
10512
10667
|
}
|
|
10513
|
-
sql2.join =
|
|
10668
|
+
sql2.join = join16;
|
|
10514
10669
|
function identifier(value) {
|
|
10515
10670
|
return new Name(value);
|
|
10516
10671
|
}
|
|
@@ -13067,7 +13222,7 @@ var SQLiteSelectQueryBuilderBase = class extends TypedQueryBuilder {
|
|
|
13067
13222
|
const baseTableName = this.tableName;
|
|
13068
13223
|
const tableName = getTableLikeName(table);
|
|
13069
13224
|
for (const item of extractUsedTable(table)) this.usedTables.add(item);
|
|
13070
|
-
if (typeof tableName === "string" && this.config.joins?.some((
|
|
13225
|
+
if (typeof tableName === "string" && this.config.joins?.some((join16) => join16.alias === tableName)) {
|
|
13071
13226
|
throw new Error(`Alias "${tableName}" is already used in this query`);
|
|
13072
13227
|
}
|
|
13073
13228
|
if (!this.isPartialSelect) {
|
|
@@ -13926,7 +14081,7 @@ var SQLiteUpdateBase = class extends QueryPromise {
|
|
|
13926
14081
|
createJoin(joinType) {
|
|
13927
14082
|
return (table, on) => {
|
|
13928
14083
|
const tableName = getTableLikeName(table);
|
|
13929
|
-
if (typeof tableName === "string" && this.config.joins.some((
|
|
14084
|
+
if (typeof tableName === "string" && this.config.joins.some((join16) => join16.alias === tableName)) {
|
|
13930
14085
|
throw new Error(`Alias "${tableName}" is already used in this query`);
|
|
13931
14086
|
}
|
|
13932
14087
|
if (typeof on === "function") {
|
|
@@ -14788,9 +14943,9 @@ var SQLiteTransaction = class extends BaseSQLiteDatabase {
|
|
|
14788
14943
|
|
|
14789
14944
|
// 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
14945
|
var BetterSQLiteSession = class extends SQLiteSession {
|
|
14791
|
-
constructor(
|
|
14946
|
+
constructor(client3, dialect, schema, options = {}) {
|
|
14792
14947
|
super(dialect);
|
|
14793
|
-
this.client =
|
|
14948
|
+
this.client = client3;
|
|
14794
14949
|
this.schema = schema;
|
|
14795
14950
|
this.logger = options.logger ?? new NoopLogger();
|
|
14796
14951
|
this.cache = options.cache ?? new NoopCache();
|
|
@@ -14894,7 +15049,7 @@ var PreparedQuery = class extends SQLitePreparedQuery {
|
|
|
14894
15049
|
var BetterSQLite3Database = class extends BaseSQLiteDatabase {
|
|
14895
15050
|
static [entityKind] = "BetterSQLite3Database";
|
|
14896
15051
|
};
|
|
14897
|
-
function construct(
|
|
15052
|
+
function construct(client3, config2 = {}) {
|
|
14898
15053
|
const dialect = new SQLiteSyncDialect({ casing: config2.casing });
|
|
14899
15054
|
let logger;
|
|
14900
15055
|
if (config2.logger === true) {
|
|
@@ -14914,9 +15069,9 @@ function construct(client2, config2 = {}) {
|
|
|
14914
15069
|
tableNamesMap: tablesConfig.tableNamesMap
|
|
14915
15070
|
};
|
|
14916
15071
|
}
|
|
14917
|
-
const session2 = new BetterSQLiteSession(
|
|
15072
|
+
const session2 = new BetterSQLiteSession(client3, dialect, schema, { logger });
|
|
14918
15073
|
const db = new BetterSQLite3Database("sync", dialect, session2, schema);
|
|
14919
|
-
db.$client =
|
|
15074
|
+
db.$client = client3;
|
|
14920
15075
|
return db;
|
|
14921
15076
|
}
|
|
14922
15077
|
function drizzle(...params) {
|
|
@@ -14925,8 +15080,8 @@ function drizzle(...params) {
|
|
|
14925
15080
|
return construct(instance, params[1]);
|
|
14926
15081
|
}
|
|
14927
15082
|
if (isConfig(params[0])) {
|
|
14928
|
-
const { connection, client:
|
|
14929
|
-
if (
|
|
15083
|
+
const { connection, client: client3, ...drizzleConfig } = params[0];
|
|
15084
|
+
if (client3) return construct(client3, drizzleConfig);
|
|
14930
15085
|
if (typeof connection === "object") {
|
|
14931
15086
|
const { source, ...options } = connection;
|
|
14932
15087
|
const instance2 = new Client(source, options);
|
|
@@ -15865,11 +16020,11 @@ var memoryChange = sqliteTable(
|
|
|
15865
16020
|
// packages/core/src/db/index.ts
|
|
15866
16021
|
function open() {
|
|
15867
16022
|
mkdirSync3(paths.home, { recursive: true });
|
|
15868
|
-
const
|
|
15869
|
-
|
|
15870
|
-
|
|
15871
|
-
|
|
15872
|
-
const db = drizzle(
|
|
16023
|
+
const client3 = new Database(paths.db);
|
|
16024
|
+
client3.pragma("journal_mode = WAL");
|
|
16025
|
+
client3.pragma("busy_timeout = 5000");
|
|
16026
|
+
client3.pragma("foreign_keys = ON");
|
|
16027
|
+
const db = drizzle(client3, { schema: schema_exports });
|
|
15873
16028
|
migrate(db, { migrationsFolder: paths.migrations });
|
|
15874
16029
|
return db;
|
|
15875
16030
|
}
|
|
@@ -15881,6 +16036,7 @@ function getDb() {
|
|
|
15881
16036
|
|
|
15882
16037
|
// packages/core/src/users.ts
|
|
15883
16038
|
import { randomInt, randomUUID as randomUUID7 } from "node:crypto";
|
|
16039
|
+
import { readFileSync as readFileSync7 } from "node:fs";
|
|
15884
16040
|
|
|
15885
16041
|
// node_modules/.pnpm/@better-auth+utils@0.4.2/node_modules/@better-auth/utils/dist/password.node.mjs
|
|
15886
16042
|
import { randomBytes as randomBytes3, scrypt } from "node:crypto";
|
|
@@ -15891,7 +16047,7 @@ var config = {
|
|
|
15891
16047
|
dkLen: 64
|
|
15892
16048
|
};
|
|
15893
16049
|
function generateKey(password, salt) {
|
|
15894
|
-
return new Promise((
|
|
16050
|
+
return new Promise((resolve6, reject) => {
|
|
15895
16051
|
scrypt(
|
|
15896
16052
|
password.normalize("NFKC"),
|
|
15897
16053
|
salt,
|
|
@@ -15906,7 +16062,7 @@ function generateKey(password, salt) {
|
|
|
15906
16062
|
if (err)
|
|
15907
16063
|
reject(err);
|
|
15908
16064
|
else
|
|
15909
|
-
|
|
16065
|
+
resolve6(key);
|
|
15910
16066
|
}
|
|
15911
16067
|
);
|
|
15912
16068
|
});
|
|
@@ -16208,6 +16364,7 @@ async function viewImage(path, dir, cwd = process.cwd()) {
|
|
|
16208
16364
|
// packages/core/src/media.ts
|
|
16209
16365
|
import { execFile as execFile2 } from "node:child_process";
|
|
16210
16366
|
import { BlockList, isIP } from "node:net";
|
|
16367
|
+
import { basename as basename2, extname as extname2, isAbsolute, join as join3, resolve as resolve2 } from "node:path";
|
|
16211
16368
|
import { promisify as promisify2 } from "node:util";
|
|
16212
16369
|
|
|
16213
16370
|
// node_modules/.pnpm/marked@18.0.14/node_modules/marked/lib/marked.esm.js
|
|
@@ -17540,6 +17697,9 @@ var lexer = new F({ gfm: true });
|
|
|
17540
17697
|
var MAX_MEDIA_BYTES = 100 * 1024 * 1024;
|
|
17541
17698
|
var HEAD_BYTES = 1024 * 1024;
|
|
17542
17699
|
var ORPHAN_GRACE_MS = 60 * 60 * 1e3;
|
|
17700
|
+
function blobPath(sha256) {
|
|
17701
|
+
return join3(paths.media, sha256);
|
|
17702
|
+
}
|
|
17543
17703
|
var LOCAL_NETWORKS = new BlockList();
|
|
17544
17704
|
for (const [network, prefix] of [
|
|
17545
17705
|
["0.0.0.0", 8],
|
|
@@ -17566,7 +17726,7 @@ var execFileAsync2 = promisify2(execFile2);
|
|
|
17566
17726
|
|
|
17567
17727
|
// packages/core/src/memory-cards.ts
|
|
17568
17728
|
import { existsSync as existsSync5, mkdirSync as mkdirSync7, renameSync as renameSync4 } from "node:fs";
|
|
17569
|
-
import { join as
|
|
17729
|
+
import { join as join8 } from "node:path";
|
|
17570
17730
|
|
|
17571
17731
|
// packages/core/src/conversations.ts
|
|
17572
17732
|
import { randomUUID as randomUUID6 } from "node:crypto";
|
|
@@ -17578,9 +17738,9 @@ var IN_USE_MS = 60 * 60 * 1e3;
|
|
|
17578
17738
|
var UPLOAD_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
17579
17739
|
|
|
17580
17740
|
// packages/core/src/folders.ts
|
|
17581
|
-
import { basename as
|
|
17741
|
+
import { basename as basename3, join as join4 } from "node:path";
|
|
17582
17742
|
function folderDir(profileSlug, folderSlug) {
|
|
17583
|
-
return
|
|
17743
|
+
return join4(profileFoldersDir(profileSlug), folderSlug);
|
|
17584
17744
|
}
|
|
17585
17745
|
function getFolder(profileId, id) {
|
|
17586
17746
|
return getDb().select().from(folder).where(and(eq(folder.id, id), eq(folder.profileId, profileId))).get();
|
|
@@ -17646,7 +17806,7 @@ import {
|
|
|
17646
17806
|
unlinkSync,
|
|
17647
17807
|
writeFileSync as writeFileSync4
|
|
17648
17808
|
} from "node:fs";
|
|
17649
|
-
import { basename as
|
|
17809
|
+
import { basename as basename4, dirname as dirname2, join as join5, relative, resolve as resolve3, sep } from "node:path";
|
|
17650
17810
|
|
|
17651
17811
|
// packages/core/src/memory-facts.ts
|
|
17652
17812
|
function plain(markdown) {
|
|
@@ -17944,25 +18104,25 @@ function openMemory(place) {
|
|
|
17944
18104
|
return { dir, prefix: "", cards: false };
|
|
17945
18105
|
}
|
|
17946
18106
|
function setAsideCardsFolder(dir) {
|
|
17947
|
-
const folder2 =
|
|
18107
|
+
const folder2 = join5(dir, CARDS_FOLDER);
|
|
17948
18108
|
if (!existsSync3(folder2)) return;
|
|
17949
18109
|
let name2 = "old-cards";
|
|
17950
|
-
for (let i = 2; existsSync3(
|
|
17951
|
-
renameSync2(folder2,
|
|
18110
|
+
for (let i = 2; existsSync3(join5(dir, name2)); i++) name2 = `old-cards-${i}`;
|
|
18111
|
+
renameSync2(folder2, join5(dir, name2));
|
|
17952
18112
|
}
|
|
17953
18113
|
function importLegacyMemory(slug2, root) {
|
|
17954
|
-
const legacy =
|
|
18114
|
+
const legacy = join5(profileDir(slug2), LEGACY_FILE);
|
|
17955
18115
|
if (!existsSync3(legacy)) return;
|
|
17956
18116
|
if (!readFileSync4(legacy, "utf8").trim()) {
|
|
17957
18117
|
unlinkSync(legacy);
|
|
17958
18118
|
return;
|
|
17959
18119
|
}
|
|
17960
18120
|
let name2 = "general.md";
|
|
17961
|
-
for (let i = 2; existsSync3(
|
|
17962
|
-
renameSync2(legacy,
|
|
18121
|
+
for (let i = 2; existsSync3(join5(root, name2)); i++) name2 = `general-${i}.md`;
|
|
18122
|
+
renameSync2(legacy, join5(root, name2));
|
|
17963
18123
|
}
|
|
17964
18124
|
function relPath(folder2, full) {
|
|
17965
|
-
return folder2.prefix + relative(
|
|
18125
|
+
return folder2.prefix + relative(resolve3(folder2.dir), full).split(sep).join("/");
|
|
17966
18126
|
}
|
|
17967
18127
|
function notePath(folder2, topic) {
|
|
17968
18128
|
const clean = topic.trim().replace(/\\/g, "/").replace(/^\/+|\/+$/g, "");
|
|
@@ -17974,8 +18134,8 @@ function notePath(folder2, topic) {
|
|
|
17974
18134
|
);
|
|
17975
18135
|
}
|
|
17976
18136
|
const file2 = /\.(md|markdown|txt)$/i.test(clean) ? clean : `${clean}.md`;
|
|
17977
|
-
const base =
|
|
17978
|
-
const full =
|
|
18137
|
+
const base = resolve3(folder2.dir);
|
|
18138
|
+
const full = resolve3(base, file2.slice(folder2.prefix.length));
|
|
17979
18139
|
if (!full.startsWith(base + sep)) refuse(`"${topic}" is outside the memory folder.`);
|
|
17980
18140
|
if (relative(base, full).split(sep).some((part) => part.startsWith("."))) {
|
|
17981
18141
|
refuse(`"${topic}": names starting with a dot are reserved.`);
|
|
@@ -17991,7 +18151,7 @@ function notePath(folder2, topic) {
|
|
|
17991
18151
|
return full;
|
|
17992
18152
|
}
|
|
17993
18153
|
function titleOf(path) {
|
|
17994
|
-
const words =
|
|
18154
|
+
const words = basename4(path).replace(/\.[^.]+$/, "").replace(/[-_]+/g, " ").trim();
|
|
17995
18155
|
const upper = (word) => word.charAt(0).toUpperCase() + word.slice(1);
|
|
17996
18156
|
if (!words) return "Notes";
|
|
17997
18157
|
return categoryOf(path) === "people" || isCardPath(path) ? words.split(" ").map(upper).join(" ") : upper(words);
|
|
@@ -18024,7 +18184,7 @@ function checkSize(text2, path) {
|
|
|
18024
18184
|
}
|
|
18025
18185
|
function writeAtomic(full, text2) {
|
|
18026
18186
|
mkdirSync4(dirname2(full), { recursive: true, mode: 448 });
|
|
18027
|
-
const temp =
|
|
18187
|
+
const temp = join5(dirname2(full), `.tmp-${randomUUID3()}`);
|
|
18028
18188
|
try {
|
|
18029
18189
|
writeFileSync4(temp, text2, { mode: 384 });
|
|
18030
18190
|
renameSync2(temp, full);
|
|
@@ -18043,7 +18203,7 @@ function readMemoryFiles(folder2) {
|
|
|
18043
18203
|
const walk = (dir, depth) => {
|
|
18044
18204
|
for (const name2 of readdirSync(dir).sort()) {
|
|
18045
18205
|
if (name2.startsWith(".") || name2 === "node_modules") continue;
|
|
18046
|
-
const full =
|
|
18206
|
+
const full = join5(dir, name2);
|
|
18047
18207
|
let stat;
|
|
18048
18208
|
try {
|
|
18049
18209
|
stat = lstatSync(full);
|
|
@@ -18067,7 +18227,7 @@ function readMemoryFiles(folder2) {
|
|
|
18067
18227
|
}
|
|
18068
18228
|
function loadFacts(folder2, files = readMemoryFiles(folder2)) {
|
|
18069
18229
|
try {
|
|
18070
|
-
const file2 =
|
|
18230
|
+
const file2 = join5(folder2.dir, FACTS_FILE);
|
|
18071
18231
|
const stored3 = existsSync3(file2) ? parseFactIndex(readFileSync4(file2, "utf8")) : null;
|
|
18072
18232
|
const index2 = stored3 ?? emptyFactIndex();
|
|
18073
18233
|
let changed = !stored3;
|
|
@@ -18088,7 +18248,7 @@ function loadFacts(folder2, files = readMemoryFiles(folder2)) {
|
|
|
18088
18248
|
}
|
|
18089
18249
|
function saveFacts(folder2, index2) {
|
|
18090
18250
|
try {
|
|
18091
|
-
writeAtomic(
|
|
18251
|
+
writeAtomic(join5(folder2.dir, FACTS_FILE), serializeFactIndex(index2));
|
|
18092
18252
|
} catch (err) {
|
|
18093
18253
|
console.error("[nolune] could not save memory fact dates:", err);
|
|
18094
18254
|
}
|
|
@@ -18603,7 +18763,7 @@ function peopleGuide(profile2) {
|
|
|
18603
18763
|
// packages/core/src/skills.ts
|
|
18604
18764
|
var import_yaml = __toESM(require_dist(), 1);
|
|
18605
18765
|
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
|
|
18766
|
+
import { join as join6 } from "node:path";
|
|
18607
18767
|
var SKIP_DIRS = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
18608
18768
|
var MAX_DEPTH2 = 4;
|
|
18609
18769
|
function isValidSkillName(name2) {
|
|
@@ -18644,9 +18804,9 @@ function scanDir(root, scope, out, warnings, dir = root, depth = 0) {
|
|
|
18644
18804
|
}
|
|
18645
18805
|
for (const entry of entries) {
|
|
18646
18806
|
if (SKIP_DIRS.has(entry.name) || entry.name.startsWith(".")) continue;
|
|
18647
|
-
const skillDir =
|
|
18807
|
+
const skillDir = join6(dir, entry.name);
|
|
18648
18808
|
if (!entry.isDirectory() && !(entry.isSymbolicLink() && isDirectory(skillDir))) continue;
|
|
18649
|
-
const location =
|
|
18809
|
+
const location = join6(skillDir, "SKILL.md");
|
|
18650
18810
|
if (!existsSync4(location)) {
|
|
18651
18811
|
if (depth + 1 < MAX_DEPTH2) scanDir(root, scope, out, warnings, skillDir, depth + 1);
|
|
18652
18812
|
continue;
|
|
@@ -18732,8 +18892,8 @@ function createSkill(skillsDir, name2, description) {
|
|
|
18732
18892
|
`Invalid skill name "${name2}": use lowercase letters, digits and single hyphens (max 64)`
|
|
18733
18893
|
);
|
|
18734
18894
|
}
|
|
18735
|
-
const dir =
|
|
18736
|
-
const location =
|
|
18895
|
+
const dir = join6(skillsDir, name2);
|
|
18896
|
+
const location = join6(dir, "SKILL.md");
|
|
18737
18897
|
if (existsSync4(location)) throw new Error(`Skill already exists: ${location}`);
|
|
18738
18898
|
mkdirSync5(dir, { recursive: true });
|
|
18739
18899
|
const title = name2.split("-").map((w2) => w2[0].toUpperCase() + w2.slice(1)).join(" ");
|
|
@@ -18766,7 +18926,7 @@ TODO
|
|
|
18766
18926
|
// packages/core/src/soul.ts
|
|
18767
18927
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
18768
18928
|
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
|
|
18929
|
+
import { dirname as dirname3, join as join7 } from "node:path";
|
|
18770
18930
|
var MAX_SOUL_CHARS = 4e3;
|
|
18771
18931
|
var SoulError = class extends Error {
|
|
18772
18932
|
};
|
|
@@ -18795,7 +18955,7 @@ function writeSoul(slug2, text2) {
|
|
|
18795
18955
|
return "";
|
|
18796
18956
|
}
|
|
18797
18957
|
mkdirSync6(dirname3(file2), { recursive: true, mode: 448 });
|
|
18798
|
-
const temp =
|
|
18958
|
+
const temp = join7(dirname3(file2), `.soul-${randomUUID4()}.tmp`);
|
|
18799
18959
|
try {
|
|
18800
18960
|
writeFileSync6(temp, `${clean}
|
|
18801
18961
|
`, { mode: 384 });
|
|
@@ -19206,7 +19366,7 @@ function freshName(userName) {
|
|
|
19206
19366
|
const taken = new Set(
|
|
19207
19367
|
getDb().select({ name: card.name }).from(card).all().map((row) => row.name)
|
|
19208
19368
|
);
|
|
19209
|
-
const free = (name2) => !taken.has(name2) && !existsSync5(
|
|
19369
|
+
const free = (name2) => !taken.has(name2) && !existsSync5(join8(paths.cards, `${name2}.md`));
|
|
19210
19370
|
const first = noteName(userName.trim().split(/\s+/)[0] ?? userName);
|
|
19211
19371
|
for (const name2 of [first, noteName(userName)]) if (free(name2)) return name2;
|
|
19212
19372
|
for (let i = 2; ; i++) if (free(`${first}-${i}`)) return `${first}-${i}`;
|
|
@@ -19322,10 +19482,10 @@ function recordAgentCardChanges(chat, changes) {
|
|
|
19322
19482
|
function trashCard(userId) {
|
|
19323
19483
|
const row = getDb().select({ name: card.name }).from(card).where(eq(card.userId, userId)).get();
|
|
19324
19484
|
if (!row) return;
|
|
19325
|
-
const file2 =
|
|
19485
|
+
const file2 = join8(paths.cards, `${row.name}.md`);
|
|
19326
19486
|
if (!existsSync5(file2)) return;
|
|
19327
19487
|
mkdirSync7(paths.trash, { recursive: true });
|
|
19328
|
-
renameSync4(file2,
|
|
19488
|
+
renameSync4(file2, join8(paths.trash, `card-${row.name}-${Date.now()}.md`));
|
|
19329
19489
|
}
|
|
19330
19490
|
|
|
19331
19491
|
// packages/core/src/users.ts
|
|
@@ -19440,6 +19600,18 @@ async function setPassword(nameOrEmail, password) {
|
|
|
19440
19600
|
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
19601
|
if (result.changes === 0) throw new Error("User has no password account");
|
|
19442
19602
|
}
|
|
19603
|
+
function userPictureFile(sha256) {
|
|
19604
|
+
if (!/^[0-9a-f]{64}$/.test(sha256)) return null;
|
|
19605
|
+
const found2 = getDb().select({ id: user.id }).from(user).where(eq(user.picture, sha256)).get();
|
|
19606
|
+
if (!found2) return null;
|
|
19607
|
+
const path = blobPath(sha256);
|
|
19608
|
+
try {
|
|
19609
|
+
const info = inspectImage(readFileSync7(path));
|
|
19610
|
+
return info && { path, mime: info.mediaType };
|
|
19611
|
+
} catch {
|
|
19612
|
+
return null;
|
|
19613
|
+
}
|
|
19614
|
+
}
|
|
19443
19615
|
function setAdmin(nameOrEmail, isAdmin) {
|
|
19444
19616
|
const found2 = findUser(nameOrEmail);
|
|
19445
19617
|
if (!found2) throw new Error(`No user "${nameOrEmail}"`);
|
|
@@ -19554,8 +19726,8 @@ var running = holder3.__noluneBackground ??= /* @__PURE__ */ new Map();
|
|
|
19554
19726
|
|
|
19555
19727
|
// packages/core/src/memory-embeddings.ts
|
|
19556
19728
|
import { createHash as createHash4, randomUUID as randomUUID9 } from "node:crypto";
|
|
19557
|
-
import { existsSync as existsSync6, mkdirSync as mkdirSync8, readFileSync as
|
|
19558
|
-
import { join as
|
|
19729
|
+
import { existsSync as existsSync6, mkdirSync as mkdirSync8, readFileSync as readFileSync8, renameSync as renameSync5, rmSync as rmSync5, writeFileSync as writeFileSync7 } from "node:fs";
|
|
19730
|
+
import { join as join9 } from "node:path";
|
|
19559
19731
|
var DEFAULT_EMBEDDING_MODEL = "text-embedding-3-small";
|
|
19560
19732
|
var DEFAULT_EMBEDDING_MODELS = {
|
|
19561
19733
|
openai: DEFAULT_EMBEDDING_MODEL,
|
|
@@ -19643,19 +19815,19 @@ function parseEmbeddingSetting(value) {
|
|
|
19643
19815
|
}
|
|
19644
19816
|
return { provider, model };
|
|
19645
19817
|
}
|
|
19646
|
-
var
|
|
19818
|
+
var sdk6;
|
|
19647
19819
|
var cachedClient;
|
|
19648
|
-
async function
|
|
19820
|
+
async function client2(source) {
|
|
19649
19821
|
const key = source.key ?? "none";
|
|
19650
19822
|
if (!cachedClient || cachedClient.url !== source.url || cachedClient.key !== key) {
|
|
19651
|
-
const { OpenAI: Client2 } =
|
|
19652
|
-
const
|
|
19653
|
-
cachedClient = { url: source.url, key, client:
|
|
19823
|
+
const { OpenAI: Client2 } = sdk6 ??= await import("./openai-ZCNISNG4.js");
|
|
19824
|
+
const client3 = new Client2({ apiKey: key, baseURL: source.url });
|
|
19825
|
+
cachedClient = { url: source.url, key, client: client3 };
|
|
19654
19826
|
}
|
|
19655
19827
|
return cachedClient.client;
|
|
19656
19828
|
}
|
|
19657
19829
|
async function embed(source, texts, timeoutMs, retries = 1) {
|
|
19658
|
-
const api = await
|
|
19830
|
+
const api = await client2(source);
|
|
19659
19831
|
const response = await api.embeddings.create(
|
|
19660
19832
|
{ model: source.model, input: texts, encoding_format: "float" },
|
|
19661
19833
|
{ timeout: timeoutMs, maxRetries: retries }
|
|
@@ -19691,13 +19863,13 @@ function similarity(a, b2) {
|
|
|
19691
19863
|
var sourceId = (source) => `${source.url} ${source.model}`;
|
|
19692
19864
|
var hash = (text2) => createHash4("sha256").update(text2).digest("base64url").slice(0, 22);
|
|
19693
19865
|
function file(place) {
|
|
19694
|
-
return
|
|
19866
|
+
return join9(memoryDir(place), FILE);
|
|
19695
19867
|
}
|
|
19696
19868
|
function load2(place, source) {
|
|
19697
19869
|
const empty = { source: sourceId(source), vectors: /* @__PURE__ */ new Map() };
|
|
19698
19870
|
try {
|
|
19699
19871
|
if (!existsSync6(file(place))) return empty;
|
|
19700
|
-
const saved2 = JSON.parse(
|
|
19872
|
+
const saved2 = JSON.parse(readFileSync8(file(place), "utf8"));
|
|
19701
19873
|
if (saved2.version !== 1 || saved2.source !== empty.source || !Array.isArray(saved2.vectors)) {
|
|
19702
19874
|
return empty;
|
|
19703
19875
|
}
|
|
@@ -19715,7 +19887,7 @@ function load2(place, source) {
|
|
|
19715
19887
|
}
|
|
19716
19888
|
function save(place, stored3) {
|
|
19717
19889
|
const dir = memoryDir(place);
|
|
19718
|
-
const temp =
|
|
19890
|
+
const temp = join9(dir, `.tmp-${randomUUID9()}`);
|
|
19719
19891
|
try {
|
|
19720
19892
|
mkdirSync8(dir, { recursive: true, mode: 448 });
|
|
19721
19893
|
const vectors = [...stored3.vectors].map(([key, vector]) => [
|
|
@@ -19980,7 +20152,7 @@ async function searchMemory(slug2, query, limit = 20, cards = []) {
|
|
|
19980
20152
|
// packages/core/src/subagents.ts
|
|
19981
20153
|
import { randomUUID as randomUUID10 } from "node:crypto";
|
|
19982
20154
|
import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync9 } from "node:fs";
|
|
19983
|
-
import { dirname as dirname4, join as
|
|
20155
|
+
import { dirname as dirname4, join as join10 } from "node:path";
|
|
19984
20156
|
var MAX_ACTIVE_SUBAGENTS = 5;
|
|
19985
20157
|
var ACTIVE = ["pending", "running", "stopping"];
|
|
19986
20158
|
var NAME = /^[a-z0-9][a-z0-9-]{0,39}$/;
|
|
@@ -20018,7 +20190,7 @@ function subagentLogPath(s2) {
|
|
|
20018
20190
|
const parent = getConversation(s2.parentId);
|
|
20019
20191
|
const profile2 = parent && getProfile(parent.profileId);
|
|
20020
20192
|
if (!profile2) return null;
|
|
20021
|
-
return
|
|
20193
|
+
return join10(profileDir(profile2.slug), "agents", s2.parentId.slice(0, 8), `${s2.name}.log`);
|
|
20022
20194
|
}
|
|
20023
20195
|
function appendSubagentLog(s2, text2) {
|
|
20024
20196
|
const path = subagentLogPath(s2);
|
|
@@ -20314,8 +20486,8 @@ Reply with only a JSON array of ${COUNT} objects, without other text:
|
|
|
20314
20486
|
Write label and text in the language the notes are written in.`;
|
|
20315
20487
|
|
|
20316
20488
|
// packages/core/src/image-generation.ts
|
|
20317
|
-
import { readFileSync as
|
|
20318
|
-
import { basename as
|
|
20489
|
+
import { readFileSync as readFileSync9, statSync as statSync6 } from "node:fs";
|
|
20490
|
+
import { basename as basename5, extname as extname3 } from "node:path";
|
|
20319
20491
|
var IMAGE_PROVIDERS = ["openai"];
|
|
20320
20492
|
var DEFAULT_IMAGE_MODEL = "openai/gpt-image-2.5-flare";
|
|
20321
20493
|
var IMAGE_SHAPES = ["square", "portrait", "landscape", "auto"];
|
|
@@ -20402,7 +20574,7 @@ async function readInputImage(path, accept) {
|
|
|
20402
20574
|
let data;
|
|
20403
20575
|
try {
|
|
20404
20576
|
if (statSync6(path).isDirectory()) throw new Error("it's a folder");
|
|
20405
|
-
data =
|
|
20577
|
+
data = readFileSync9(path);
|
|
20406
20578
|
} catch (err) {
|
|
20407
20579
|
const code = err.code;
|
|
20408
20580
|
throw new Error(
|
|
@@ -20410,7 +20582,7 @@ async function readInputImage(path, accept) {
|
|
|
20410
20582
|
{ cause: err }
|
|
20411
20583
|
);
|
|
20412
20584
|
}
|
|
20413
|
-
const name2 =
|
|
20585
|
+
const name2 = basename5(path);
|
|
20414
20586
|
const info = inspectImage(data);
|
|
20415
20587
|
if (info && accept.includes(info.mediaType) && info.orientation <= 1 && data.length <= MAX_INPUT_BYTES) {
|
|
20416
20588
|
const clean = info.mediaType === "image/jpeg" ? stripJpegMetadata(data) : data;
|
|
@@ -20420,7 +20592,7 @@ async function readInputImage(path, accept) {
|
|
|
20420
20592
|
const prepared = await prepareImage(path, accept);
|
|
20421
20593
|
const ext = prepared.info.mediaType.slice("image/".length);
|
|
20422
20594
|
return {
|
|
20423
|
-
name: `${
|
|
20595
|
+
name: `${basename5(name2, extname3(name2))}.${ext === "jpeg" ? "jpg" : ext}`,
|
|
20424
20596
|
data: prepared.data,
|
|
20425
20597
|
mediaType: prepared.info.mediaType
|
|
20426
20598
|
};
|
|
@@ -20467,9 +20639,9 @@ async function generateImages(options) {
|
|
|
20467
20639
|
|
|
20468
20640
|
// packages/core/src/shim.ts
|
|
20469
20641
|
import { chmodSync as chmodSync3, mkdirSync as mkdirSync10, writeFileSync as writeFileSync8 } from "node:fs";
|
|
20470
|
-
import { join as
|
|
20642
|
+
import { join as join11 } from "node:path";
|
|
20471
20643
|
function installCliShim() {
|
|
20472
|
-
const target2 =
|
|
20644
|
+
const target2 = join11(paths.bin, "nolune");
|
|
20473
20645
|
mkdirSync10(paths.bin, { recursive: true });
|
|
20474
20646
|
const command2 = cliCommand().map((part) => JSON.stringify(part)).join(" ");
|
|
20475
20647
|
writeFileSync8(
|
|
@@ -21413,6 +21585,79 @@ var PRUNE_EVERY_MS = 60 * 6e4;
|
|
|
21413
21585
|
var KEEP_MS = 30 * 24 * 60 * 6e4;
|
|
21414
21586
|
var MAX_PAYLOAD_BYTES = 64 * 1024;
|
|
21415
21587
|
|
|
21588
|
+
// packages/core/src/updates.ts
|
|
21589
|
+
import { EventEmitter as EventEmitter3 } from "node:events";
|
|
21590
|
+
import { existsSync as existsSync7, mkdirSync as mkdirSync11, readFileSync as readFileSync10, renameSync as renameSync6, rmSync as rmSync6, writeFileSync as writeFileSync9 } from "node:fs";
|
|
21591
|
+
import { join as join12 } from "node:path";
|
|
21592
|
+
var NOLUNE_VERSION = JSON.parse(
|
|
21593
|
+
readFileSync10(join12(packageRoot, "package.json"), "utf8")
|
|
21594
|
+
).version;
|
|
21595
|
+
var CHECK_EVERY_MS = 24 * 60 * 6e4;
|
|
21596
|
+
var TICK_MS = 60 * 6e4;
|
|
21597
|
+
var UPDATE_COMMANDS = {
|
|
21598
|
+
npm: "npm install -g nolune@latest && nolune service restart",
|
|
21599
|
+
source: "git pull && pnpm install && pnpm build",
|
|
21600
|
+
app: null
|
|
21601
|
+
};
|
|
21602
|
+
var holder7 = globalThis;
|
|
21603
|
+
var emitter3 = holder7.__noluneUpdates ??= new EventEmitter3().setMaxListeners(0);
|
|
21604
|
+
function isNewer(a, b2) {
|
|
21605
|
+
const parts = (version2) => version2.replace(/^v/, "").split(/[.+-]/, 3).map((n2) => Number.parseInt(n2, 10) || 0);
|
|
21606
|
+
const [x3, y2] = [parts(a), parts(b2)];
|
|
21607
|
+
for (let i = 0; i < 3; i++) {
|
|
21608
|
+
if ((x3[i] ?? 0) !== (y2[i] ?? 0)) return (x3[i] ?? 0) > (y2[i] ?? 0);
|
|
21609
|
+
}
|
|
21610
|
+
return false;
|
|
21611
|
+
}
|
|
21612
|
+
function installKind() {
|
|
21613
|
+
if (appManaged()) return "app";
|
|
21614
|
+
if (existsSync7(join12(packageRoot, "packages", "cli", "src", "index.ts"))) return "source";
|
|
21615
|
+
return "npm";
|
|
21616
|
+
}
|
|
21617
|
+
function updateChecksOn() {
|
|
21618
|
+
try {
|
|
21619
|
+
return readConfig().updateCheck !== false;
|
|
21620
|
+
} catch {
|
|
21621
|
+
return true;
|
|
21622
|
+
}
|
|
21623
|
+
}
|
|
21624
|
+
function savedRelease() {
|
|
21625
|
+
try {
|
|
21626
|
+
const saved2 = JSON.parse(readFileSync10(paths.latestRelease, "utf8"));
|
|
21627
|
+
return typeof saved2.checkedAt === "string" ? saved2 : null;
|
|
21628
|
+
} catch {
|
|
21629
|
+
return null;
|
|
21630
|
+
}
|
|
21631
|
+
}
|
|
21632
|
+
function forgetRelease() {
|
|
21633
|
+
rmSync6(paths.latestRelease, { force: true });
|
|
21634
|
+
}
|
|
21635
|
+
function availableUpdate() {
|
|
21636
|
+
if (!updateChecksOn()) return null;
|
|
21637
|
+
const latest = savedRelease()?.latest;
|
|
21638
|
+
if (!latest || !isNewer(latest.version, NOLUNE_VERSION)) return null;
|
|
21639
|
+
const install = installKind();
|
|
21640
|
+
const download = install === "app" ? latest.downloads[process.arch] ?? null : null;
|
|
21641
|
+
return {
|
|
21642
|
+
current: NOLUNE_VERSION,
|
|
21643
|
+
version: latest.version,
|
|
21644
|
+
url: latest.url,
|
|
21645
|
+
install,
|
|
21646
|
+
command: UPDATE_COMMANDS[install],
|
|
21647
|
+
download
|
|
21648
|
+
};
|
|
21649
|
+
}
|
|
21650
|
+
function describeUpdates() {
|
|
21651
|
+
const current = NOLUNE_VERSION;
|
|
21652
|
+
if (!updateChecksOn()) return `${current} (not checking for new releases)`;
|
|
21653
|
+
const saved2 = savedRelease();
|
|
21654
|
+
if (!saved2) return `${current} (not checked for new releases yet)`;
|
|
21655
|
+
const update2 = availableUpdate();
|
|
21656
|
+
if (!update2) return `${current}, the newest (checked ${saved2.checkedAt.slice(0, 10)})`;
|
|
21657
|
+
const how = update2.command ?? "the menu bar's Download";
|
|
21658
|
+
return `${current}; ${update2.version} is out (${update2.url}). Update: ${how}`;
|
|
21659
|
+
}
|
|
21660
|
+
|
|
21416
21661
|
// packages/cli/src/agent.ts
|
|
21417
21662
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
21418
21663
|
import { parseArgs } from "node:util";
|
|
@@ -21593,9 +21838,9 @@ function cardCommand(io, args) {
|
|
|
21593
21838
|
}
|
|
21594
21839
|
|
|
21595
21840
|
// packages/cli/src/generate.ts
|
|
21596
|
-
import { mkdirSync as
|
|
21841
|
+
import { mkdirSync as mkdirSync12, writeFileSync as writeFileSync10 } from "node:fs";
|
|
21597
21842
|
import { homedir as homedir3 } from "node:os";
|
|
21598
|
-
import { extname as
|
|
21843
|
+
import { extname as extname4, isAbsolute as isAbsolute2, join as join13, resolve as resolve4 } from "node:path";
|
|
21599
21844
|
import { parseArgs as parseArgs2 } from "node:util";
|
|
21600
21845
|
function generateHelp() {
|
|
21601
21846
|
return `Pictures (model ${configuredImageModel()}; change it with \`nolune config set image-model\`)
|
|
@@ -21625,7 +21870,7 @@ function oneOf(value, allowed, flag) {
|
|
|
21625
21870
|
}
|
|
21626
21871
|
function expandHome(path) {
|
|
21627
21872
|
if (path === "~") return homedir3();
|
|
21628
|
-
return path.startsWith("~/") ?
|
|
21873
|
+
return path.startsWith("~/") ? join13(homedir3(), path.slice(2)) : path;
|
|
21629
21874
|
}
|
|
21630
21875
|
function slug(text2) {
|
|
21631
21876
|
return text2.toLowerCase().normalize("NFKD").replace(/[^a-z0-9\s-]/g, "").trim().split(/[\s-]+/).slice(0, 5).join("-") || "image";
|
|
@@ -21638,19 +21883,19 @@ function outputPaths(io, out, count, base, format) {
|
|
|
21638
21883
|
const ext = format === "jpeg" ? "jpg" : format;
|
|
21639
21884
|
let dir;
|
|
21640
21885
|
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, -
|
|
21886
|
+
const file2 = resolve4(io.cwd, expandHome(out));
|
|
21887
|
+
if (count === 1) return { dir: resolve4(file2, ".."), files: [file2] };
|
|
21888
|
+
dir = resolve4(file2, "..");
|
|
21889
|
+
base = file2.slice(dir.length + 1, -extname4(file2).length);
|
|
21645
21890
|
} else if (out) {
|
|
21646
|
-
dir =
|
|
21891
|
+
dir = resolve4(io.cwd, expandHome(out));
|
|
21647
21892
|
} else {
|
|
21648
21893
|
const profileDir2 = io.env.NOLUNE_PROFILE_DIR;
|
|
21649
|
-
dir = profileDir2 &&
|
|
21894
|
+
dir = profileDir2 && isAbsolute2(profileDir2) ? join13(profileDir2, "images") : io.cwd;
|
|
21650
21895
|
}
|
|
21651
21896
|
const files = Array.from(
|
|
21652
21897
|
{ length: count },
|
|
21653
|
-
(_3, i) =>
|
|
21898
|
+
(_3, i) => join13(dir, `${base}${count > 1 ? `-${i + 1}` : ""}.${ext}`)
|
|
21654
21899
|
);
|
|
21655
21900
|
return { dir, files };
|
|
21656
21901
|
}
|
|
@@ -21662,7 +21907,7 @@ async function image(io, args) {
|
|
|
21662
21907
|
let prompt = positionals.join(" ").trim();
|
|
21663
21908
|
if (prompt === "-") prompt = (await io.readStdin()).trim();
|
|
21664
21909
|
if (!prompt) throw new Error('say what to make: nolune generate image "<prompt>"');
|
|
21665
|
-
const inputs = (values.image ?? []).map((path) =>
|
|
21910
|
+
const inputs = (values.image ?? []).map((path) => resolve4(io.cwd, expandHome(path)));
|
|
21666
21911
|
const count = values.count === void 0 ? 1 : Number(values.count);
|
|
21667
21912
|
if (!Number.isInteger(count) || count < 1 || count > MAX_IMAGE_COUNT) {
|
|
21668
21913
|
throw new Error(`--count is between 1 and ${MAX_IMAGE_COUNT}.`);
|
|
@@ -21706,9 +21951,9 @@ ${prompt}`);
|
|
|
21706
21951
|
base,
|
|
21707
21952
|
result.images[0].format
|
|
21708
21953
|
);
|
|
21709
|
-
|
|
21954
|
+
mkdirSync12(dir, { recursive: true });
|
|
21710
21955
|
for (const [i, picture] of result.images.entries()) {
|
|
21711
|
-
|
|
21956
|
+
writeFileSync10(files[i], picture.data);
|
|
21712
21957
|
const info = inspectImage(picture.data);
|
|
21713
21958
|
const details = [
|
|
21714
21959
|
info ? `${info.width}\xD7${info.height}` : null,
|
|
@@ -21738,7 +21983,7 @@ async function ask2(io, question, defaultValue = "") {
|
|
|
21738
21983
|
async function askHidden(io, question) {
|
|
21739
21984
|
if (!io.stdinIsTTY) return (await io.readStdin()).trim();
|
|
21740
21985
|
const stdin = process.stdin;
|
|
21741
|
-
return new Promise((
|
|
21986
|
+
return new Promise((resolve6, reject) => {
|
|
21742
21987
|
process.stdout.write(`${question}: `);
|
|
21743
21988
|
let value = "";
|
|
21744
21989
|
const cleanup = () => {
|
|
@@ -21751,7 +21996,7 @@ async function askHidden(io, question) {
|
|
|
21751
21996
|
for (const ch of chunk) {
|
|
21752
21997
|
if (ch === "\r" || ch === "\n") {
|
|
21753
21998
|
cleanup();
|
|
21754
|
-
|
|
21999
|
+
resolve6(value.trim());
|
|
21755
22000
|
return;
|
|
21756
22001
|
}
|
|
21757
22002
|
if (ch === "") {
|
|
@@ -22923,16 +23168,13 @@ async function wakeCommand(io, args) {
|
|
|
22923
23168
|
|
|
22924
23169
|
// packages/cli/src/service.ts
|
|
22925
23170
|
import { spawnSync as spawnSync2 } from "node:child_process";
|
|
22926
|
-
import { existsSync as
|
|
23171
|
+
import { existsSync as existsSync8, mkdirSync as mkdirSync13, readFileSync as readFileSync11, unlinkSync as unlinkSync2, writeFileSync as writeFileSync11 } from "node:fs";
|
|
22927
23172
|
import { homedir as homedir4, userInfo as userInfo2 } from "node:os";
|
|
22928
|
-
import { dirname as dirname5, isAbsolute as
|
|
23173
|
+
import { dirname as dirname5, isAbsolute as isAbsolute3, join as join14 } from "node:path";
|
|
22929
23174
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
22930
|
-
var logFile =
|
|
23175
|
+
var logFile = join14(paths.logs, "gateway.log");
|
|
22931
23176
|
var LABEL = "dev.nolune.gateway";
|
|
22932
|
-
var plistPath =
|
|
22933
|
-
function appManaged(execPath = process.execPath) {
|
|
22934
|
-
return /\.app\/Contents\/MacOS\/node$/.test(execPath);
|
|
22935
|
-
}
|
|
23177
|
+
var plistPath = join14(homedir4(), "Library", "LaunchAgents", `${LABEL}.plist`);
|
|
22936
23178
|
function target() {
|
|
22937
23179
|
return `gui/${process.getuid?.() ?? 501}/${LABEL}`;
|
|
22938
23180
|
}
|
|
@@ -22979,9 +23221,9 @@ var launchAgent = {
|
|
|
22979
23221
|
file: plistPath,
|
|
22980
23222
|
render: renderPlist,
|
|
22981
23223
|
async install() {
|
|
22982
|
-
|
|
22983
|
-
|
|
22984
|
-
|
|
23224
|
+
mkdirSync13(dirname5(plistPath), { recursive: true });
|
|
23225
|
+
mkdirSync13(paths.logs, { recursive: true });
|
|
23226
|
+
writeFileSync11(plistPath, renderPlist());
|
|
22985
23227
|
launchctl("bootout", target());
|
|
22986
23228
|
for (let attempt = 0; ; attempt++) {
|
|
22987
23229
|
const result = launchctl("bootstrap", `gui/${process.getuid?.() ?? 501}`, plistPath);
|
|
@@ -22992,7 +23234,7 @@ var launchAgent = {
|
|
|
22992
23234
|
},
|
|
22993
23235
|
uninstall() {
|
|
22994
23236
|
launchctl("bootout", target());
|
|
22995
|
-
if (
|
|
23237
|
+
if (existsSync8(plistPath)) unlinkSync2(plistPath);
|
|
22996
23238
|
},
|
|
22997
23239
|
restart() {
|
|
22998
23240
|
const result = launchctl("kickstart", "-k", target());
|
|
@@ -23004,7 +23246,7 @@ var launchAgent = {
|
|
|
23004
23246
|
const result = launchctl("print", target());
|
|
23005
23247
|
const pid = /\bpid = (\d+)/.exec(result.stdout ?? "")?.[1];
|
|
23006
23248
|
return {
|
|
23007
|
-
installed:
|
|
23249
|
+
installed: existsSync8(plistPath),
|
|
23008
23250
|
loaded: result.status === 0,
|
|
23009
23251
|
pid: pid ? Number(pid) : null
|
|
23010
23252
|
};
|
|
@@ -23012,8 +23254,8 @@ var launchAgent = {
|
|
|
23012
23254
|
};
|
|
23013
23255
|
var UNIT = "nolune.service";
|
|
23014
23256
|
var configHome = process.env.XDG_CONFIG_HOME;
|
|
23015
|
-
var unitPath =
|
|
23016
|
-
configHome &&
|
|
23257
|
+
var unitPath = join14(
|
|
23258
|
+
configHome && isAbsolute3(configHome) ? configHome : join14(homedir4(), ".config"),
|
|
23017
23259
|
"systemd",
|
|
23018
23260
|
"user",
|
|
23019
23261
|
UNIT
|
|
@@ -23062,16 +23304,16 @@ function systemctlOrFail(...args) {
|
|
|
23062
23304
|
}
|
|
23063
23305
|
}
|
|
23064
23306
|
function lingering() {
|
|
23065
|
-
return
|
|
23307
|
+
return existsSync8(join14("/var/lib/systemd/linger", userInfo2().username));
|
|
23066
23308
|
}
|
|
23067
23309
|
var systemdUnit = {
|
|
23068
23310
|
file: unitPath,
|
|
23069
23311
|
render: renderUnit,
|
|
23070
23312
|
async install() {
|
|
23071
23313
|
systemctl("show-environment");
|
|
23072
|
-
|
|
23073
|
-
|
|
23074
|
-
|
|
23314
|
+
mkdirSync13(dirname5(unitPath), { recursive: true });
|
|
23315
|
+
mkdirSync13(paths.logs, { recursive: true });
|
|
23316
|
+
writeFileSync11(unitPath, renderUnit());
|
|
23075
23317
|
systemctlOrFail("daemon-reload");
|
|
23076
23318
|
systemctlOrFail("enable", UNIT);
|
|
23077
23319
|
systemctlOrFail("restart", UNIT);
|
|
@@ -23080,14 +23322,14 @@ var systemdUnit = {
|
|
|
23080
23322
|
},
|
|
23081
23323
|
uninstall() {
|
|
23082
23324
|
systemctl("disable", "--now", UNIT);
|
|
23083
|
-
if (
|
|
23325
|
+
if (existsSync8(unitPath)) unlinkSync2(unitPath);
|
|
23084
23326
|
systemctl("daemon-reload");
|
|
23085
23327
|
systemctl("reset-failed", UNIT);
|
|
23086
23328
|
},
|
|
23087
23329
|
restart() {
|
|
23088
23330
|
const result = systemctl("restart", UNIT);
|
|
23089
23331
|
if (result.status === 0) return;
|
|
23090
|
-
if (!
|
|
23332
|
+
if (!existsSync8(unitPath)) {
|
|
23091
23333
|
throw new Error("The service is not installed. Run `nolune service install` first.");
|
|
23092
23334
|
}
|
|
23093
23335
|
throw new Error(`systemctl --user restart ${UNIT} failed: ${result.stderr.trim()}`);
|
|
@@ -23097,18 +23339,18 @@ var systemdUnit = {
|
|
|
23097
23339
|
const state = /^ActiveState=(.*)$/m.exec(stdout)?.[1];
|
|
23098
23340
|
const pid = Number(/^MainPID=(\d+)$/m.exec(stdout)?.[1] ?? 0);
|
|
23099
23341
|
return {
|
|
23100
|
-
installed:
|
|
23342
|
+
installed: existsSync8(unitPath),
|
|
23101
23343
|
// "activating" while it waits to be started again after exiting, "failed" if it gave up.
|
|
23102
23344
|
loaded: state !== void 0 && state !== "inactive",
|
|
23103
23345
|
pid: state === "active" && pid > 0 ? pid : null
|
|
23104
23346
|
};
|
|
23105
23347
|
}
|
|
23106
23348
|
};
|
|
23107
|
-
var appPidFile =
|
|
23349
|
+
var appPidFile = join14(paths.home, "gateway.pid");
|
|
23108
23350
|
function appKeeperPid(pidFile = appPidFile) {
|
|
23109
23351
|
let pid;
|
|
23110
23352
|
try {
|
|
23111
|
-
pid = Number(
|
|
23353
|
+
pid = Number(readFileSync11(pidFile, "utf8").trim());
|
|
23112
23354
|
} catch {
|
|
23113
23355
|
return null;
|
|
23114
23356
|
}
|
|
@@ -23158,6 +23400,128 @@ function serviceStatus() {
|
|
|
23158
23400
|
return manager().status();
|
|
23159
23401
|
}
|
|
23160
23402
|
|
|
23403
|
+
// packages/cli/src/web.ts
|
|
23404
|
+
import { mkdirSync as mkdirSync14, writeFileSync as writeFileSync12 } from "node:fs";
|
|
23405
|
+
import { homedir as homedir5, tmpdir as tmpdir2 } from "node:os";
|
|
23406
|
+
import { dirname as dirname6, join as join15, resolve as resolve5 } from "node:path";
|
|
23407
|
+
import { parseArgs as parseArgs6 } from "node:util";
|
|
23408
|
+
var WEB_HELP = `The web (through Firecrawl: its free tier, limited per day, until \`nolune key set firecrawl\`)
|
|
23409
|
+
nolune web search <query> [--limit N] [--news] [--recent day|week|month|year] [--country CC]
|
|
23410
|
+
the top results' titles, addresses and snippets
|
|
23411
|
+
(${DEFAULT_WEB_RESULTS} unless --limit, at most ${MAX_WEB_RESULTS}); --news for news
|
|
23412
|
+
articles, --country as someone there sees them (de)
|
|
23413
|
+
nolune web read <url> [--out FILE] a page's main text (or a PDF's) as Markdown; a long
|
|
23414
|
+
one is saved whole to a file, whose path it prints`;
|
|
23415
|
+
var MAX_PRINTED = 2e4;
|
|
23416
|
+
function expandHome2(path) {
|
|
23417
|
+
if (path === "~") return homedir5();
|
|
23418
|
+
return path.startsWith("~/") ? join15(homedir5(), path.slice(2)) : path;
|
|
23419
|
+
}
|
|
23420
|
+
async function search(io, args) {
|
|
23421
|
+
const { values, positionals } = parseArgs6({
|
|
23422
|
+
args,
|
|
23423
|
+
allowPositionals: true,
|
|
23424
|
+
options: {
|
|
23425
|
+
limit: { type: "string", short: "n" },
|
|
23426
|
+
news: { type: "boolean" },
|
|
23427
|
+
recent: { type: "string" },
|
|
23428
|
+
country: { type: "string" }
|
|
23429
|
+
}
|
|
23430
|
+
});
|
|
23431
|
+
const query = positionals.join(" ").trim();
|
|
23432
|
+
if (!query) throw new Error('say what to look for: nolune web search "<query>"');
|
|
23433
|
+
const limit = values.limit === void 0 ? DEFAULT_WEB_RESULTS : Number(values.limit);
|
|
23434
|
+
if (!Number.isInteger(limit) || limit < 1 || limit > MAX_WEB_RESULTS) {
|
|
23435
|
+
throw new Error(`--limit is between 1 and ${MAX_WEB_RESULTS}.`);
|
|
23436
|
+
}
|
|
23437
|
+
const recent = values.recent?.trim().toLowerCase();
|
|
23438
|
+
if (recent !== void 0 && !Object.hasOwn(WEB_RECENT, recent)) {
|
|
23439
|
+
throw new Error(`--recent is one of ${Object.keys(WEB_RECENT).join(", ")}.`);
|
|
23440
|
+
}
|
|
23441
|
+
const country = values.country?.trim();
|
|
23442
|
+
if (country !== void 0 && !/^[a-z]{2}$/i.test(country)) {
|
|
23443
|
+
throw new Error("--country is a two-letter country code, like de or us.");
|
|
23444
|
+
}
|
|
23445
|
+
const { results, warning } = await searchWeb(query, {
|
|
23446
|
+
limit,
|
|
23447
|
+
news: values.news,
|
|
23448
|
+
recent,
|
|
23449
|
+
country,
|
|
23450
|
+
env: io.env,
|
|
23451
|
+
signal: io.signal
|
|
23452
|
+
});
|
|
23453
|
+
if (warning) io.log(`Firecrawl: ${warning}`);
|
|
23454
|
+
if (!results.length) {
|
|
23455
|
+
io.log(`No results for "${query}".`);
|
|
23456
|
+
return;
|
|
23457
|
+
}
|
|
23458
|
+
io.log(
|
|
23459
|
+
results.map((r, i) => {
|
|
23460
|
+
const text2 = [r.text, r.date && `(${r.date})`].filter(Boolean).join(" ");
|
|
23461
|
+
return `${i + 1}. ${r.title}
|
|
23462
|
+
${r.url}${text2 ? `
|
|
23463
|
+
${text2}` : ""}`;
|
|
23464
|
+
}).join("\n\n")
|
|
23465
|
+
);
|
|
23466
|
+
}
|
|
23467
|
+
function fileName(url, now3) {
|
|
23468
|
+
const p2 = (n2) => String(n2).padStart(2, "0");
|
|
23469
|
+
const stamp2 = `${now3.getFullYear()}-${p2(now3.getMonth() + 1)}-${p2(now3.getDate())}-${p2(now3.getHours())}${p2(now3.getMinutes())}${p2(now3.getSeconds())}`;
|
|
23470
|
+
const { hostname, pathname } = new URL(url);
|
|
23471
|
+
const words = `${hostname.replace(/^www\./, "")} ${pathname}`.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 60).replace(/-+$/, "");
|
|
23472
|
+
return `${stamp2}-${words || "page"}.md`;
|
|
23473
|
+
}
|
|
23474
|
+
function pageText(page2) {
|
|
23475
|
+
return `${page2.title ? `# ${page2.title}
|
|
23476
|
+
` : ""}${page2.url}
|
|
23477
|
+
|
|
23478
|
+
${page2.markdown}
|
|
23479
|
+
`;
|
|
23480
|
+
}
|
|
23481
|
+
async function read(io, args) {
|
|
23482
|
+
const { values, positionals } = parseArgs6({
|
|
23483
|
+
args,
|
|
23484
|
+
allowPositionals: true,
|
|
23485
|
+
options: { out: { type: "string", short: "o" } }
|
|
23486
|
+
});
|
|
23487
|
+
if (positionals.length !== 1) throw new Error("usage: nolune web read <url> [--out FILE]");
|
|
23488
|
+
const page2 = await readWebPage(positionals[0], { env: io.env, signal: io.signal });
|
|
23489
|
+
if (page2.warning) io.log(`Firecrawl: ${page2.warning}`);
|
|
23490
|
+
if (page2.status) io.log(`The page answered ${page2.status}; this is what it showed.`);
|
|
23491
|
+
if (!page2.markdown) {
|
|
23492
|
+
io.log(`${page2.url} has no text Firecrawl could read.`);
|
|
23493
|
+
return;
|
|
23494
|
+
}
|
|
23495
|
+
const text2 = pageText(page2);
|
|
23496
|
+
if (values.out) {
|
|
23497
|
+
const file3 = resolve5(io.cwd, expandHome2(values.out));
|
|
23498
|
+
mkdirSync14(dirname6(file3), { recursive: true });
|
|
23499
|
+
writeFileSync12(file3, text2);
|
|
23500
|
+
io.log(`Saved ${page2.url} (${text2.length} characters) to ${file3}`);
|
|
23501
|
+
return;
|
|
23502
|
+
}
|
|
23503
|
+
if (text2.length <= MAX_PRINTED) {
|
|
23504
|
+
io.stdout(text2);
|
|
23505
|
+
return;
|
|
23506
|
+
}
|
|
23507
|
+
const dir = join15(io.env.TMPDIR || tmpdir2(), "nolune-web");
|
|
23508
|
+
const file2 = join15(dir, fileName(page2.url, /* @__PURE__ */ new Date()));
|
|
23509
|
+
mkdirSync14(dir, { recursive: true });
|
|
23510
|
+
writeFileSync12(file2, text2);
|
|
23511
|
+
const cut = text2.lastIndexOf("\n", MAX_PRINTED);
|
|
23512
|
+
const shown = text2.slice(0, cut > MAX_PRINTED / 2 ? cut : MAX_PRINTED);
|
|
23513
|
+
io.log(
|
|
23514
|
+
`${shown}
|
|
23515
|
+
|
|
23516
|
+
[${text2.length - shown.length} more characters. The whole page is in ${file2}: grep it, or read on with sed -n.]`
|
|
23517
|
+
);
|
|
23518
|
+
}
|
|
23519
|
+
async function webCommand(io, action, args) {
|
|
23520
|
+
if (action === "search") return search(io, args);
|
|
23521
|
+
if (action === "read") return read(io, args);
|
|
23522
|
+
throw new Error("usage: nolune web search <query> | nolune web read <url>. See `nolune help`.");
|
|
23523
|
+
}
|
|
23524
|
+
|
|
23161
23525
|
// packages/cli/src/run.ts
|
|
23162
23526
|
var help = () => `nolune - a family agent that runs on this computer
|
|
23163
23527
|
|
|
@@ -23192,14 +23556,18 @@ Settings (${paths.home})
|
|
|
23192
23556
|
recommended). Not from the agent's own commands
|
|
23193
23557
|
nolune config set safety-model <preset|chat> the preset whose model does auto mode's checks, or
|
|
23194
23558
|
chat for each chat's own model (the default)
|
|
23195
|
-
nolune
|
|
23559
|
+
nolune config set update-check <on|off> on (the default): the gateway asks GitHub once a
|
|
23560
|
+
day for nolune's newest release, and admins see when
|
|
23561
|
+
there's one
|
|
23562
|
+
nolune key set <anthropic|openai|openrouter|xai|firecrawl> [key]
|
|
23196
23563
|
store an API key (prompts if omitted) after checking
|
|
23197
23564
|
it; OpenAI's runs GPT chats and makes pictures, xAI's
|
|
23198
|
-
runs Grok
|
|
23565
|
+
runs Grok, Firecrawl's lifts the web search's daily
|
|
23566
|
+
limit. Admins can also do this on the web, under
|
|
23199
23567
|
Models & keys
|
|
23200
|
-
nolune key rm <anthropic|openai|openrouter|xai>
|
|
23568
|
+
nolune key rm <anthropic|openai|openrouter|xai|firecrawl>
|
|
23201
23569
|
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.
|
|
23570
|
+
nolune env set <NAME> <value> extra env var for agent commands (e.g. HASS_TOKEN)
|
|
23203
23571
|
nolune env rm <NAME> | nolune env list
|
|
23204
23572
|
|
|
23205
23573
|
Custom providers (model servers of your own: Ollama, LM Studio, oMLX, vLLM, llama.cpp...)
|
|
@@ -23235,7 +23603,8 @@ Users (there's no sign-up page: admins add people here, or on the People page)
|
|
|
23235
23603
|
nolune user passwd <name|email> [--password P]
|
|
23236
23604
|
nolune user admin <name|email> [--off]
|
|
23237
23605
|
nolune user rm <name|email>
|
|
23238
|
-
nolune user list
|
|
23606
|
+
nolune user list name, email, admin, and their picture's
|
|
23607
|
+
file if they have one
|
|
23239
23608
|
|
|
23240
23609
|
Model presets (shared by all profiles)
|
|
23241
23610
|
nolune preset add <model> [--provider anthropic|openai|openrouter|xai|claude-plan|chatgpt-plan|<custom>]
|
|
@@ -23275,6 +23644,8 @@ ${SOUL_HELP}
|
|
|
23275
23644
|
|
|
23276
23645
|
${generateHelp()}
|
|
23277
23646
|
|
|
23647
|
+
${WEB_HELP}
|
|
23648
|
+
|
|
23278
23649
|
Inside agent commands (NOLUNE_PROFILE is set, so --profile can be left out)
|
|
23279
23650
|
nolune view <image>... show images to the agent: they're attached to the
|
|
23280
23651
|
command's result (HEIC and big photos are converted)
|
|
@@ -23398,7 +23769,7 @@ To let the agent reach Documents, Desktop, Downloads, Photos and Mail, give Full
|
|
|
23398
23769
|
Note: this applies to every script run with that node binary.`;
|
|
23399
23770
|
}
|
|
23400
23771
|
async function setup(io, args) {
|
|
23401
|
-
const { values } =
|
|
23772
|
+
const { values } = parseArgs7({
|
|
23402
23773
|
args,
|
|
23403
23774
|
options: {
|
|
23404
23775
|
name: { type: "string" },
|
|
@@ -23501,7 +23872,7 @@ could. Or keep nolune to this computer, or give a URL of your own.`);
|
|
|
23501
23872
|
}
|
|
23502
23873
|
async function start(io) {
|
|
23503
23874
|
requireInit();
|
|
23504
|
-
if (!
|
|
23875
|
+
if (!existsSync9(paths.server)) {
|
|
23505
23876
|
fail(`no server build at ${paths.server}. In a source checkout, run \`pnpm build\` first.`);
|
|
23506
23877
|
}
|
|
23507
23878
|
const { host, port, origin } = listenAddress();
|
|
@@ -23535,7 +23906,7 @@ async function service(io, action, args) {
|
|
|
23535
23906
|
case "install": {
|
|
23536
23907
|
if (appManaged()) fail("the nolune app runs the gateway while it is open.");
|
|
23537
23908
|
requireInit();
|
|
23538
|
-
if (!
|
|
23909
|
+
if (!existsSync9(paths.server))
|
|
23539
23910
|
fail("no server build. In a source checkout, run `pnpm build` first.");
|
|
23540
23911
|
if (args.includes("--dry-run")) {
|
|
23541
23912
|
io.log(renderServiceFile());
|
|
@@ -23578,7 +23949,7 @@ It runs with ${process.execPath}; run \`nolune service install\` again after swi
|
|
|
23578
23949
|
return;
|
|
23579
23950
|
}
|
|
23580
23951
|
case "logs": {
|
|
23581
|
-
if (!
|
|
23952
|
+
if (!existsSync9(logFile)) fail(`no log yet at ${logFile}`);
|
|
23582
23953
|
const follow = args.includes("-f") || args.includes("--follow");
|
|
23583
23954
|
spawn2("tail", ["-n", "100", ...follow ? ["-f"] : [], logFile], { stdio: "inherit" });
|
|
23584
23955
|
return;
|
|
@@ -23637,7 +24008,7 @@ async function command(io, argv) {
|
|
|
23637
24008
|
);
|
|
23638
24009
|
for (const key2 of apiKeyStatuses()) {
|
|
23639
24010
|
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})`;
|
|
24011
|
+
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
24012
|
row(key2.provider, shown);
|
|
23642
24013
|
}
|
|
23643
24014
|
const customs = listCustomProviders();
|
|
@@ -23660,17 +24031,18 @@ async function command(io, argv) {
|
|
|
23660
24031
|
row("embeddings", embeddingStatus());
|
|
23661
24032
|
row("commands", describeCommandSafety());
|
|
23662
24033
|
row("env", Object.keys(config2.commandEnv ?? {}).join(", ") || "-");
|
|
24034
|
+
row("version", describeUpdates());
|
|
23663
24035
|
return;
|
|
23664
24036
|
}
|
|
23665
24037
|
if (action !== "set") {
|
|
23666
24038
|
fail(
|
|
23667
|
-
"usage: nolune config [set <host|port|origin|image-model|embeddings|claude-path|command-mode|safety-model> <value>]"
|
|
24039
|
+
"usage: nolune config [set <host|port|origin|image-model|embeddings|claude-path|command-mode|safety-model|update-check> <value>]"
|
|
23668
24040
|
);
|
|
23669
24041
|
}
|
|
23670
24042
|
const key = positional(
|
|
23671
24043
|
rest,
|
|
23672
24044
|
0,
|
|
23673
|
-
"host|port|origin|image-model|embeddings|claude-path|command-mode|safety-model"
|
|
24045
|
+
"host|port|origin|image-model|embeddings|claude-path|command-mode|safety-model|update-check"
|
|
23674
24046
|
);
|
|
23675
24047
|
if (key === "command-mode" || key === "safety-model") {
|
|
23676
24048
|
if (io.env.NOLUNE_CONVERSATION_ID) {
|
|
@@ -23697,6 +24069,19 @@ async function command(io, argv) {
|
|
|
23697
24069
|
io.log(`Commands: ${describeCommandSafety()}.`);
|
|
23698
24070
|
return;
|
|
23699
24071
|
}
|
|
24072
|
+
if (key === "update-check") {
|
|
24073
|
+
const on = positional(rest, 1, "on|off");
|
|
24074
|
+
if (on !== "on" && on !== "off") fail("update-check is on or off");
|
|
24075
|
+
updateConfig((c) => {
|
|
24076
|
+
if (on === "on") delete c.updateCheck;
|
|
24077
|
+
else c.updateCheck = false;
|
|
24078
|
+
});
|
|
24079
|
+
if (on === "off") forgetRelease();
|
|
24080
|
+
io.log(
|
|
24081
|
+
on === "on" ? "nolune will look for a new release within the hour, then once a day." : "nolune won\u2019t look for new releases."
|
|
24082
|
+
);
|
|
24083
|
+
return;
|
|
24084
|
+
}
|
|
23700
24085
|
if (key === "embeddings") {
|
|
23701
24086
|
let setting2;
|
|
23702
24087
|
try {
|
|
@@ -23726,7 +24111,7 @@ async function command(io, argv) {
|
|
|
23726
24111
|
} else if (key === "claude-path") c.claudePath = value;
|
|
23727
24112
|
else
|
|
23728
24113
|
fail(
|
|
23729
|
-
"you can set host, port, origin, image-model, embeddings, claude-path, command-mode or
|
|
24114
|
+
"you can set host, port, origin, image-model, embeddings, claude-path, command-mode, safety-model or update-check"
|
|
23730
24115
|
);
|
|
23731
24116
|
});
|
|
23732
24117
|
if (key === "claude-path") {
|
|
@@ -23765,7 +24150,7 @@ async function command(io, argv) {
|
|
|
23765
24150
|
}
|
|
23766
24151
|
case "provider": {
|
|
23767
24152
|
requireInit();
|
|
23768
|
-
const { values, positionals } =
|
|
24153
|
+
const { values, positionals } = parseArgs7({
|
|
23769
24154
|
args: rest,
|
|
23770
24155
|
allowPositionals: true,
|
|
23771
24156
|
options: { key: { type: "string" }, api: { type: "string" } }
|
|
@@ -23826,7 +24211,7 @@ async function command(io, argv) {
|
|
|
23826
24211
|
}
|
|
23827
24212
|
case "user": {
|
|
23828
24213
|
requireInit();
|
|
23829
|
-
const { values, positionals } =
|
|
24214
|
+
const { values, positionals } = parseArgs7({
|
|
23830
24215
|
args: rest,
|
|
23831
24216
|
allowPositionals: true,
|
|
23832
24217
|
options: {
|
|
@@ -23862,14 +24247,16 @@ async function command(io, argv) {
|
|
|
23862
24247
|
io.log(`Works once, within ${INVITE_DAYS} days. Take it back on the People page.`);
|
|
23863
24248
|
} else if (action === "list") {
|
|
23864
24249
|
for (const u of listUsers()) {
|
|
23865
|
-
|
|
24250
|
+
const picture = u.picture ? userPictureFile(u.picture) : null;
|
|
24251
|
+
const fields2 = [u.name, u.email, u.isAdmin && "admin", picture?.path];
|
|
24252
|
+
io.log(fields2.filter(Boolean).join(" "));
|
|
23866
24253
|
}
|
|
23867
24254
|
} else fail("usage: nolune user create|invite|passwd|admin|rm|list");
|
|
23868
24255
|
return;
|
|
23869
24256
|
}
|
|
23870
24257
|
case "preset": {
|
|
23871
24258
|
requireInit();
|
|
23872
|
-
const { values, positionals } =
|
|
24259
|
+
const { values, positionals } = parseArgs7({
|
|
23873
24260
|
args: rest,
|
|
23874
24261
|
allowPositionals: true,
|
|
23875
24262
|
options: {
|
|
@@ -23932,7 +24319,7 @@ async function command(io, argv) {
|
|
|
23932
24319
|
requireInit();
|
|
23933
24320
|
return profileCommand(io, action, rest);
|
|
23934
24321
|
case "skill": {
|
|
23935
|
-
const { values, positionals } =
|
|
24322
|
+
const { values, positionals } = parseArgs7({
|
|
23936
24323
|
args: rest,
|
|
23937
24324
|
allowPositionals: true,
|
|
23938
24325
|
options: {
|
|
@@ -24011,6 +24398,8 @@ ${on.length} of ${skills.length} on in ${profile2.name}, about ${formatTokens(to
|
|
|
24011
24398
|
return agentCommand(io, action, rest);
|
|
24012
24399
|
case "generate":
|
|
24013
24400
|
return generateCommand(io, action, rest);
|
|
24401
|
+
case "web":
|
|
24402
|
+
return webCommand(io, action, rest);
|
|
24014
24403
|
case "view": {
|
|
24015
24404
|
const dir = io.env.NOLUNE_VIEW_DIR;
|
|
24016
24405
|
if (!dir)
|