thursday-agent 0.28.0 → 0.30.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/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +1 -0
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/routes-manifest.json +6 -0
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +3 -3
- package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/api/artifact/route.js +13 -14
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js +11 -6
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js +11 -11
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js +11 -11
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/file/route.js +19 -19
- package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/lessons/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/bot/thread/lessons/route/build-manifest.json +12 -0
- package/.next/server/app/api/bot/thread/lessons/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/bot/thread/lessons/route.js +18 -0
- package/.next/server/app/api/bot/thread/lessons/route.js.map +5 -0
- package/.next/server/app/api/bot/thread/lessons/route.js.nft.json +1 -0
- package/.next/server/app/api/bot/thread/lessons/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/bot/thread/route.js +8 -9
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/tool-result/[id]/route.js +10 -11
- package/.next/server/app/api/bot/tool-result/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js +6 -7
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js +4 -4
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/favicon/[host]/route.js +3 -3
- package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js +11 -6
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/automatic/route.js +10 -11
- package/.next/server/app/api/llm-model/automatic/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/[provider]/route.js +10 -11
- package/.next/server/app/api/llm-model/catalog/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/[provider]/route.js +10 -11
- package/.next/server/app/api/llm-model/credits/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/route.js +8 -9
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js +8 -9
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js +8 -9
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js +10 -11
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +8 -9
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js +8 -9
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +19 -19
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js +6 -7
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js +20 -20
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js +12 -12
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/running/route.js +3 -3
- package/.next/server/app/api/running/route.js.nft.json +1 -1
- package/.next/server/app/api/signins/route.js +11 -7
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js +14 -14
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js +14 -14
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/end/route.js +19 -19
- package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/plan/route.js +19 -19
- package/.next/server/app/api/thursday/call/plan/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js +11 -12
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/settings/route.js +11 -12
- package/.next/server/app/api/thursday/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js +20 -20
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +20 -20
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/update/route.js +10 -11
- package/.next/server/app/api/update/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js +13 -13
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js +13 -13
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +11 -11
- package/.next/server/app/artifact/[...path]/page.js +11 -11
- package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next/server/app/page/server-reference-manifest.json +101 -68
- package/.next/server/app/page.js +10 -10
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +1 -0
- package/.next/server/chunks/[root-of-the-server]__0-xeb9k._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0qkh140._.js → [root-of-the-server]__01lftiq._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__022hmm4._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1im7w7z._.js → [root-of-the-server]__02td13j._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__03bjojd._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__03jn6g5._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__05wauq3._.js +12 -0
- package/.next/server/chunks/[root-of-the-server]__06eoz24._.js +5 -0
- package/.next/server/chunks/{[root-of-the-server]__0sfx6id._.js → [root-of-the-server]__0_jtzqu._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0_k10q9._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1l4feoc._.js → [root-of-the-server]__0cmzvf7._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0cq8fp4._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0cyki0f._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0fvz6w5._.js +6 -0
- package/.next/server/chunks/[root-of-the-server]__0kj7-jk._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1p1ww2o._.js → [root-of-the-server]__0mq_mis._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__00dtf7h._.js → [root-of-the-server]__0o6p3jk._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0opzn4f._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0ags3y9._.js → [root-of-the-server]__0puaol7._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0qhf60h._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0ah_uba._.js → [root-of-the-server]__0s6-921._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0n4xgfd._.js → [root-of-the-server]__0sg3_9d._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0t9e405._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__20zucml._.js → [root-of-the-server]__0ubu0sh._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0ucigrb._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0_qe8iq._.js → [root-of-the-server]__0wnd1ac._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1-ga0kh._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__10x2qg8._.js +5 -0
- package/.next/server/chunks/{[root-of-the-server]__0fo9gc5._.js → [root-of-the-server]__114bnf1._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1343ru3._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1g6_6it._.js → [root-of-the-server]__16682o8._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__16bbvlw._.js +7 -0
- package/.next/server/chunks/{[root-of-the-server]__1ui547o._.js → [root-of-the-server]__16cwbuc._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__05fq824._.js → [root-of-the-server]__17luxss._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__17ses32._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1m9dh1w._.js → [root-of-the-server]__1ahc9c9._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1bewni6._.js +8 -0
- package/.next/server/chunks/{[root-of-the-server]__0lg1fok._.js → [root-of-the-server]__1bk734v._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0atf1-_._.js → [root-of-the-server]__1btmuni._.js} +5 -5
- package/.next/server/chunks/[root-of-the-server]__1e2aiae._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1fjmju_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1j-6f71._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0btxiu1._.js → [root-of-the-server]__1ltmy5k._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1mf425m._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1o7z93z._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1orn-5b._.js +11 -0
- package/.next/server/chunks/[root-of-the-server]__1pho9cl._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1q2jauq._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1rs2v4h._.js +5 -0
- package/.next/server/chunks/{[root-of-the-server]__1ivv7te._.js → [root-of-the-server]__1rso8xj._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1xr0wxp._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1yiazek._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0a2v56f._.js → [root-of-the-server]__20_po2e._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0gmxpev._.js → [root-of-the-server]__20v-jxs._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__212_w8j._.js +5 -0
- package/.next/server/chunks/_0-g8m2a._.js +72 -0
- package/.next/server/chunks/_0-qt5if._.js +1 -1
- package/.next/server/chunks/_00uhvhe._.js +12 -12
- package/.next/server/chunks/_02tecta._.js +5 -0
- package/.next/server/chunks/_04862qx._.js +3 -0
- package/.next/server/chunks/_05p90of._.js +3 -0
- package/.next/server/chunks/{_1_30lb4._.js → _06tj0ik._.js} +2 -2
- package/.next/server/chunks/_06u9yo-._.js +1 -1
- package/.next/server/chunks/_07mczew._.js +1 -1
- package/.next/server/chunks/_07pkeds._.js +2 -2
- package/.next/server/chunks/_08-mlqd._.js +1 -1
- package/.next/server/chunks/_08354bn._.js +12 -12
- package/.next/server/chunks/_08bp8w1._.js +3 -0
- package/.next/server/chunks/_0adsimt._.js +3 -0
- package/.next/server/chunks/_0bcx24d._.js +8 -0
- package/.next/server/chunks/{_0e8ks1n._.js → _0chqx-h._.js} +16 -12
- package/.next/server/chunks/_0d4f7pc._.js +5 -0
- package/.next/server/chunks/_0d9208_._.js +6 -0
- package/.next/server/chunks/{_0lip2ae._.js → _0ejet8x._.js} +16 -12
- package/.next/server/chunks/_0eowjm_._.js +72 -0
- package/.next/server/chunks/_0gxz_1b._.js +1 -1
- package/.next/server/chunks/_0iy3dus._.js +1 -1
- package/.next/server/chunks/_0jzv71c._.js +5 -0
- package/.next/server/chunks/{_0hin38_._.js → _0khihjk._.js} +6 -6
- package/.next/server/chunks/_0lrns0i._.js +3 -0
- package/.next/server/chunks/_0nbkv9k._.js +7 -0
- package/.next/server/chunks/_0p94gu0._.js +57 -0
- package/.next/server/chunks/_0pzqm_r._.js +3 -3
- package/.next/server/chunks/_0s515yz._.js +57 -0
- package/.next/server/chunks/_0supk_r._.js +5 -0
- package/.next/server/chunks/_0sxwm3y._.js +3 -0
- package/.next/server/chunks/_0tkzlv1._.js +11 -9
- package/.next/server/chunks/{_02o3ay7._.js → _0tzxrjg._.js} +2 -2
- package/.next/server/chunks/_0u0pa-b._.js +72 -0
- package/.next/server/chunks/_0umx0sn._.js +3 -0
- package/.next/server/chunks/_0vojr2u._.js +3 -0
- package/.next/server/chunks/_0wyh244._.js +12 -12
- package/.next/server/chunks/_0xlv72v._.js +57 -0
- package/.next/server/chunks/{_0a9x0xp._.js → _0y-5vzm._.js} +2 -2
- package/.next/server/chunks/{_0xt812m._.js → _0z06xn0._.js} +16 -12
- package/.next/server/chunks/_0zwjr-g._.js +1 -1
- package/.next/server/chunks/_1002x_9._.js +72 -0
- package/.next/server/chunks/{_0cdeabn._.js → _1299dpz._.js} +2 -2
- package/.next/server/chunks/_12htlm_._.js +9 -0
- package/.next/server/chunks/_13tat6z._.js +1 -1
- package/.next/server/chunks/_143moy6._.js +5 -0
- package/.next/server/chunks/_186uku9._.js +1 -1
- package/.next/server/chunks/_190pdee._.js +3 -0
- package/.next/server/chunks/_1951_6o._.js +3 -0
- package/.next/server/chunks/_19h6ag7._.js +3 -0
- package/.next/server/chunks/_1_0gehg._.js +11 -9
- package/.next/server/chunks/_1be0yao._.js +12 -12
- package/.next/server/chunks/_1dtm9bs._.js +1 -1
- package/.next/server/chunks/_1e1t6tm._.js +57 -0
- package/.next/server/chunks/_1e1yip3._.js +3 -0
- package/.next/server/chunks/{_0uet1h6._.js → _1e48czp._.js} +6 -6
- package/.next/server/chunks/_1fqa4ax._.js +72 -0
- package/.next/server/chunks/_1gb0_wm._.js +3 -0
- package/.next/server/chunks/_1i6626u._.js +3 -0
- package/.next/server/chunks/_1jca8ws._.js +3 -0
- package/.next/server/chunks/_1k6bmez._.js +1 -1
- package/.next/server/chunks/{_10qam6o._.js → _1kg70wc._.js} +6 -6
- package/.next/server/chunks/_1ko5shz._.js +1 -1
- package/.next/server/chunks/{_12a_gfz._.js → _1kqgeww._.js} +16 -12
- package/.next/server/chunks/_1kwmzab._.js +1 -1
- package/.next/server/chunks/_1l5qbki._.js +6 -0
- package/.next/server/chunks/_1mlsbwy._.js +3 -0
- package/.next/server/chunks/_1nej_f5._.js +72 -0
- package/.next/server/chunks/_1o15f0b._.js +3 -0
- package/.next/server/chunks/_1omiszv._.js +57 -0
- package/.next/server/chunks/_1otx63k._.js +3 -0
- package/.next/server/chunks/_1pwai-w._.js +72 -0
- package/.next/server/chunks/_1qdqpgf._.js +3 -0
- package/.next/server/chunks/_1qo2kxe._.js +3 -0
- package/.next/server/chunks/_1qoa_n_._.js +3 -0
- package/.next/server/chunks/_1qwi06-._.js +5 -0
- package/.next/server/chunks/_1qxheoa._.js +1 -1
- package/.next/server/chunks/{_1skgy7b._.js → _1ry6afh._.js} +6 -6
- package/.next/server/chunks/_1u9tb9z._.js +57 -0
- package/.next/server/chunks/_1v7z66t._.js +5 -0
- package/.next/server/chunks/_1vdlc8g._.js +5 -0
- package/.next/server/chunks/_1x2xiyw._.js +1 -1
- package/.next/server/chunks/_1y-e2mk._.js +79 -0
- package/.next/server/chunks/_1yx285_._.js +1 -1
- package/.next/server/chunks/_1za6dtx._.js +72 -0
- package/.next/server/chunks/_1zsrejy._.js +3 -0
- package/.next/server/chunks/_1zvhk_m._.js +1 -1
- package/.next/server/chunks/{_0m3sdq8._.js → _20sfopz._.js} +16 -12
- package/.next/server/chunks/_next-internal_server_app_api_bot_thread_lessons_route_actions_0zt-nr6.js +3 -0
- package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
- package/.next/server/chunks/features_0-728_-._.js +1 -1
- package/.next/server/chunks/features_0uy40ze._.js +1 -1
- package/.next/server/chunks/features_0vyrnq0._.js +3 -0
- package/.next/server/chunks/features_116bwtn._.js +1 -1
- package/.next/server/chunks/features_14kex_m._.js +6 -4
- package/.next/server/chunks/features_1cb9luv._.js +1 -1
- package/.next/server/chunks/features_1jd2zjm._.js +8 -8
- package/.next/server/chunks/features_1xn6un-._.js +6 -4
- package/.next/server/chunks/features_bot_1d6ghh5._.js +1 -1
- package/.next/server/chunks/features_bot_1dfrdsb._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1j2x83w._.js → [root-of-the-server]__0ama9d0._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0auk-ke._.js +13 -8
- package/.next/server/chunks/ssr/{[root-of-the-server]__02-kwsg._.js → [root-of-the-server]__0p0cgo1._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1ngprpi._.js → [root-of-the-server]__0rpm20m._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0vcuiyu._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__13xx3dr._.js → [root-of-the-server]__0x2--_p._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1qiq402._.js → [root-of-the-server]__145268e._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__11_ws3y._.js → [root-of-the-server]__153-ebp._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__16jc196._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1867koj._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1hqly37._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1j-bkt7._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1nb9kc9._.js +3 -0
- package/.next/server/chunks/ssr/_0692i-a._.js +1 -1
- package/.next/server/chunks/ssr/{_0ldpw1q._.js → _0732nef._.js} +2 -2
- package/.next/server/chunks/ssr/_0cu8_pz._.js +3 -0
- package/.next/server/chunks/ssr/_0gk_72-._.js +3 -0
- package/.next/server/chunks/ssr/_0jvrmoz._.js +9 -0
- package/.next/server/chunks/ssr/_0k06tdw._.js +6 -0
- package/.next/server/chunks/ssr/{_1tc_gbg._.js → _0l_qakv._.js} +2 -2
- package/.next/server/chunks/ssr/_0lqzdd0._.js +3 -0
- package/.next/server/chunks/ssr/{_19g10gj._.js → _0p18b0z._.js} +2 -2
- package/.next/server/chunks/ssr/{_04f6fil._.js → _0pg2mgq._.js} +3 -3
- package/.next/server/chunks/ssr/{_1nnl9sj._.js → _0rm-9aj._.js} +2 -2
- package/.next/server/chunks/ssr/_128r03g._.js +13 -11
- package/.next/server/chunks/ssr/_17fa2ns._.js +12 -12
- package/.next/server/chunks/ssr/_18cjc9o._.js +3 -0
- package/.next/server/chunks/ssr/_1_px1o-._.js +1 -1
- package/.next/server/chunks/ssr/_1a_w_du._.js +1 -1
- package/.next/server/chunks/ssr/_1crszf7._.js +2 -2
- package/.next/server/chunks/ssr/_1e_9qjr._.js +1 -1
- package/.next/server/chunks/ssr/_1ehd80b._.js +3 -0
- package/.next/server/chunks/ssr/{_0a31ywo._.js → _1fua8fv._.js} +2 -2
- package/.next/server/chunks/ssr/_1m290ru._.js +3 -0
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/{_0nans9v._.js → _1q30h74._.js} +2 -2
- package/.next/server/chunks/ssr/_1q9r6u6._.js +1 -1
- package/.next/server/chunks/ssr/_1soynbw._.js +2 -2
- package/.next/server/chunks/ssr/{_079xt7h._.js → _1v_5j9l._.js} +23 -19
- package/.next/server/chunks/ssr/_1x_6jyh._.js +3 -0
- package/.next/server/chunks/ssr/{components_ui_markdown-body_tsx_13aa4_2._.js → components_ui_markdown-body_tsx_0ywzjrl._.js} +2 -2
- package/.next/server/chunks/ssr/features_0rrgq_t._.js +1 -1
- package/.next/server/chunks/ssr/features_ai_components_model-picker_tsx_0ucb1y9._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_1stfytf._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_components_01ye2wp._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js +2 -2
- package/.next/server/chunks/ssr/features_bot_components_thread-setting_tsx_0yae7zy._.js +1 -1
- package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +1 -1
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +1 -1
- package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
- package/.next/server/chunks/ssr/features_skills_components_skills-setting_tsx_1wtuuip._.js +1 -1
- package/.next/server/chunks/ssr/features_thursday_components_thursday-setting_tsx_1_6ydrc._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_1k0ygyl._.js → node_modules_0-s3xam._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0jrjbfv._.js → node_modules_02p2t58._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1si826e._.js → node_modules_03gt5eg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0jqaiyb._.js → node_modules_03ytewb._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_19acw__._.js → node_modules_05yikon._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0gb732y._.js → node_modules_060s01j._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0wsygp2._.js → node_modules_07k-xj6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1fa_3_c._.js → node_modules_08xo4p2._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_05fihwh._.js → node_modules_09e0lw8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0kdc_b7._.js → node_modules_0a1kt26._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_050v667._.js → node_modules_0ahwwc6._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0ou72wu._.js → node_modules_0c2vpni._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1n5ds4a._.js → node_modules_0e7nwfw._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04qcy8e._.js → node_modules_0er1nmg._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1misalx._.js → node_modules_0f3769j._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ljjw5o._.js → node_modules_0fi5we8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1-vdt7b._.js → node_modules_0i2j6g6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1861d28._.js → node_modules_0ka66-h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_140qn14._.js → node_modules_0keiwh2._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_06p_ayw._.js → node_modules_0mihldg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_107hxun._.js → node_modules_0mujceo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_06b7g0r._.js → node_modules_0ntw_qg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0jaxs1q._.js → node_modules_0py4_6y._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0y_dhgi._.js → node_modules_0qu8a5o._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1vh6nr-._.js → node_modules_0sk7kv9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_2045nus._.js → node_modules_0ted14c._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0z8o0-n._.js → node_modules_0u78wn3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0skzy7i._.js → node_modules_0umtxxj._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1o1ud40._.js → node_modules_0ze7604._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_152bm83._.js → node_modules_116k0n3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0-zy1_5._.js → node_modules_15_65ve._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_12409ud._.js → node_modules_16hmz5b._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_069gsbk._.js → node_modules_16ki2uq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ia9-w8._.js → node_modules_19xrd6b._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1pt7o47._.js → node_modules_1_c3zat._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_19gok-9._.js → node_modules_1axn4aw._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1jrlct1._.js → node_modules_1bjctcm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1jt8w7f._.js → node_modules_1cxx8tm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1v-un0n._.js → node_modules_1d7evv9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_13ccsqp._.js → node_modules_1depc7o._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1b45v66._.js → node_modules_1dm5c-u._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1uyu3cc._.js → node_modules_1fdivhl._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ob-uxg._.js → node_modules_1gxpcyd._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0wa05ay._.js → node_modules_1ih7lxu._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_18uwehg._.js → node_modules_1k-0av-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0zi89fj._.js → node_modules_1kpg87p._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0q8xm6u._.js → node_modules_1le-lim._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_17-v4n4._.js → node_modules_1lnx_h4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0v0l095._.js → node_modules_1mwxdhp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1x7napn._.js → node_modules_1q2a30m._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0walxvo._.js → node_modules_1soi3y1._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1xtd9ml._.js → node_modules_1sphzx9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_150qjpq._.js → node_modules_1tfn213._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_20llbw8._.js → node_modules_1vmqt-a._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0xetrwd._.js → node_modules_1w8ljz0._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0_uhcxd._.js → node_modules_208s6_i._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_1bf0rdx._.js → node_modules_katex_dist_katex_mjs_0jhievg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_0-moq-r._.js → node_modules_katex_dist_katex_mjs_1zcod1m._.js} +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +102 -69
- package/.next/static/chunks/{0lc_77uhatqgd.js → 078xraafllix3.js} +1 -1
- package/.next/static/chunks/{2njcedjozdqm7.js → 0nev6q2iq077s.js} +1 -1
- package/.next/static/chunks/{06ymo4xf31ggh.js → 0ocx6nt76fc71.js} +1 -1
- package/.next/static/chunks/0oo3vqzbrckzw.js +1 -0
- package/.next/static/chunks/{1ki7x6-ehua0u.js → 0piazplcpaho6.js} +1 -1
- package/.next/static/chunks/{25tttxgpn-fdl.js → 0totfwrzgu9zy.js} +2 -2
- package/.next/static/chunks/{1s5t41jiomssd.css → 0tpwm72wdln0d.css} +1 -1
- package/.next/static/chunks/{1o4z63f94c3r-.js → 0u_wx1-lmoae2.js} +1 -1
- package/.next/static/chunks/{2tlvu360xbisx.js → 0wwq57j09skhy.js} +1 -1
- package/.next/static/chunks/152u4p6c_6spk.js +1 -0
- package/.next/static/chunks/{3f4aku2z0zdxp.js → 1fignuuc030t2.js} +1 -1
- package/.next/static/chunks/{29fpns41ml485.js → 1n3a07w81jbc-.js} +1 -1
- package/.next/static/chunks/2-zfbypxf0agx.js +1 -0
- package/.next/static/chunks/{277zw6dp5yzks.js → 21wm184xoke98.js} +9 -9
- package/.next/static/chunks/{1vxq-0uxcm5yl.js → 25-zh-0nfxqyg.js} +1 -1
- package/.next/static/chunks/{1gca5ia-a-3e2.js → 29p2mdrn-z1oz.js} +1 -1
- package/.next/static/chunks/{2jn9y4sol_low.js → 2biit-egkb-xl.js} +2 -2
- package/.next/static/chunks/{1zwj72bhapocl.js → 2cciu1ow-svbf.js} +1 -1
- package/.next/static/chunks/{0i4df8t5_6a-g.js → 2gl-fo_rmmmq0.js} +1 -1
- package/.next/static/chunks/2kt0nc5m372ie.js +4 -0
- package/.next/static/chunks/2v486bh_6kl11.js +1 -0
- package/.next/static/chunks/33_a4j5altfr5.js +1 -0
- package/.next/static/chunks/37pwubc1t0jyy.js +1 -0
- package/.next/static/chunks/{0km5rjf8k0gst.js → 38rbtwatw658l.js} +1 -1
- package/.next/static/chunks/{233p45nuh4m5b.css → 3d-1vk5hzu5rq.css} +2 -2
- package/.next/static/chunks/{3ymtwwxmbactm.js → 3da8rr3q6pt0b.js} +1 -1
- package/.next/static/chunks/3i12sqqp1v8a8.js +1 -0
- package/.next/static/chunks/{1e3karuzhh7ik.js → 3iwdx3_gikxbg.js} +1 -1
- package/.next/static/chunks/{17ow2tmvy65in.js → 3k_xm_e4grb9u.js} +1 -1
- package/.next/static/chunks/{0_o7o4-itqsz7.js → 3odtl00mfb4u7.js} +1 -1
- package/.next/static/chunks/3wblbyhomh9va.js +1 -0
- package/.next/static/chunks/{1vwqvgit8a1vm.js → 3x2goglbfw5t7.js} +1 -1
- package/database/migrations/20261006014533_first_mercury/migration.sql +16 -0
- package/database/migrations/20261006014533_first_mercury/snapshot.json +2134 -0
- package/database/migrations/20261006022849_purple_young_avengers/migration.sql +1 -0
- package/database/migrations/20261006022849_purple_young_avengers/snapshot.json +2144 -0
- package/database/migrations/20261006040316_lazy_ogun/migration.sql +3 -0
- package/database/migrations/20261006040316_lazy_ogun/snapshot.json +2174 -0
- package/database/migrations/20261006043313_modern_goliath/migration.sql +1 -0
- package/database/migrations/20261006043313_modern_goliath/snapshot.json +2184 -0
- package/guide/bots.md +29 -0
- package/guide/calls.md +3 -1
- package/guide/phone.md +3 -1
- package/package.json +1 -1
- package/.next/server/chunks/[root-of-the-server]__00qilm2._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__01jpmcj._.js +0 -11
- package/.next/server/chunks/[root-of-the-server]__0bzz4u5._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0d-dfqm._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0elyqrt._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0jqidnu._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0mmynvy._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0mzzwmt._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0qo3zap._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0rqmdxt._.js +0 -6
- package/.next/server/chunks/[root-of-the-server]__0sea36s._.js +0 -10
- package/.next/server/chunks/[root-of-the-server]__0unmyur._.js +0 -6
- package/.next/server/chunks/[root-of-the-server]__0wimh1u._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0zezbds._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__12hkdpz._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__13dy1f5._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__13hng6h._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__14inehv._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__17kdjf6._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__17yv6lg._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1ac25yp._.js +0 -12
- package/.next/server/chunks/[root-of-the-server]__1hjb8wf._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1jcu_e9._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1jmr2ed._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1onvx8x._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1r2kimd._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1rjj4i4._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1s3umyw._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__212tz6e._.js +0 -8
- package/.next/server/chunks/_0-mqt2w._.js +0 -3
- package/.next/server/chunks/_0bcg3vg._.js +0 -6
- package/.next/server/chunks/_0cm67bo._.js +0 -6
- package/.next/server/chunks/_0gifi_2._.js +0 -7
- package/.next/server/chunks/_0li046e._.js +0 -3
- package/.next/server/chunks/_0mirg2-._.js +0 -3
- package/.next/server/chunks/_0oj2slk._.js +0 -5
- package/.next/server/chunks/_0oyz9x0._.js +0 -3
- package/.next/server/chunks/_0pljp-1._.js +0 -3
- package/.next/server/chunks/_0rdxqrk._.js +0 -5
- package/.next/server/chunks/_0sxih1y._.js +0 -3
- package/.next/server/chunks/_0u-96in._.js +0 -9
- package/.next/server/chunks/_0wjia9n._.js +0 -5
- package/.next/server/chunks/_0x2mdif._.js +0 -5
- package/.next/server/chunks/_0xa89lt._.js +0 -3
- package/.next/server/chunks/_0y2a-fg._.js +0 -3
- package/.next/server/chunks/_0ynjnhl._.js +0 -5
- package/.next/server/chunks/_1-sk_q4._.js +0 -3
- package/.next/server/chunks/_1355-km._.js +0 -3
- package/.next/server/chunks/_14-kmob._.js +0 -5
- package/.next/server/chunks/_1d7gbgb._.js +0 -3
- package/.next/server/chunks/_1d_enhu._.js +0 -3
- package/.next/server/chunks/_1evvnbp._.js +0 -18
- package/.next/server/chunks/_1g10pf5._.js +0 -3
- package/.next/server/chunks/_1icgbi8._.js +0 -18
- package/.next/server/chunks/_1ihge52._.js +0 -6
- package/.next/server/chunks/_1k92b3d._.js +0 -3
- package/.next/server/chunks/_1nfr-75._.js +0 -3
- package/.next/server/chunks/_1o2r4ja._.js +0 -5
- package/.next/server/chunks/_1pv6xbq._.js +0 -5
- package/.next/server/chunks/_1qgix-j._.js +0 -3
- package/.next/server/chunks/_1sd6nev._.js +0 -3
- package/.next/server/chunks/_1t8fv7b._.js +0 -18
- package/.next/server/chunks/_1ufbxe1._.js +0 -5
- package/.next/server/chunks/features_workspace_workspace_ts_13h82gv._.js +0 -3
- package/.next/server/chunks/features_workspace_workspace_ts_1iyjroj._.js +0 -8
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0omj5b1._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0s2o664._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0ufuc3s._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1cvpr1j._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1y49572._.js +0 -3
- package/.next/server/chunks/node_modules_zod_v4_03dw6sa._.js +0 -57
- package/.next/server/chunks/node_modules_zod_v4_0h0-drr._.js +0 -57
- package/.next/server/chunks/node_modules_zod_v4_0uctlhw._.js +0 -57
- package/.next/server/chunks/node_modules_zod_v4_13mu186._.js +0 -57
- package/.next/server/chunks/node_modules_zod_v4_17gxt3_._.js +0 -57
- package/.next/server/chunks/node_modules_zod_v4_1mygyfn._.js +0 -3
- package/.next/server/chunks/node_modules_zod_v4_1u-rl3b._.js +0 -57
- package/.next/server/chunks/ssr/[root-of-the-server]__0lv-wr_._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0utwbb5._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1fvh0zn._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1ynag_l._.js +0 -3
- package/.next/server/chunks/ssr/_0f3t9pm._.js +0 -9
- package/.next/server/chunks/ssr/_131wmbl._.js +0 -6
- package/.next/server/chunks/ssr/_15zznka._.js +0 -3
- package/.next/server/chunks/ssr/_183f3bo._.js +0 -3
- package/.next/server/chunks/ssr/_1e1qe7w._.js +0 -3
- package/.next/server/chunks/ssr/_1kj3d2q._.js +0 -3
- package/.next/server/chunks/ssr/_1qtcl42._.js +0 -3
- package/.next/server/chunks/ssr/lib_utils_ts_0_f1xvm._.js +0 -3
- package/.next/static/chunks/051z85h3ofmif.js +0 -1
- package/.next/static/chunks/1hwehpk3kk-pc.js +0 -1
- package/.next/static/chunks/1pxe_gpjic1_h.js +0 -1
- package/.next/static/chunks/2zvo7b47hhxi5.js +0 -1
- package/.next/static/chunks/3k7fum0yljmyr.js +0 -1
- package/.next/static/chunks/3qhhs3dk6cdbq.js +0 -4
- package/.next/static/chunks/3sawwm4vucnzn.js +0 -1
- package/.next/static/chunks/3ul6m16ba_i3u.js +0 -1
- /package/.next/static/{pekZvsOZ3_8_ohluwgZtY → nXUvWsiGKRvNRk8kqeJ-u}/_buildManifest.js +0 -0
- /package/.next/static/{pekZvsOZ3_8_ohluwgZtY → nXUvWsiGKRvNRk8kqeJ-u}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{pekZvsOZ3_8_ohluwgZtY → nXUvWsiGKRvNRk8kqeJ-u}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,798120,e=>{"use strict";let l=e=>e.split("/").map(encodeURIComponent).join("/");e.s(["queryKey",0,{memory:"/api/memory",memoryPage:e=>({url:"/api/memory",query:{offset:e||null}}),mcp:"/api/mcp",mcpServer:e=>({url:"/api/mcp",pathVariable:[e]}),mcpTools:"/api/mcp/tools",skills:"/api/skills",skillNode:(e,l,a)=>({url:"/api/skills",pathVariable:[e,l],query:{path:a}}),bot:"/api/bot",botMemory:"/api/bot/memory",botMemoryFiles:e=>({url:"/api/bot/memory/files",query:{bot:e}}),routines:"/api/routine",threads:"/api/bot/thread",threadHistory:(e,l)=>({url:"/api/bot/thread",query:{history:1,before:e,q:l||void 0}}),thread:e=>({url:"/api/bot/thread",query:{id:e}}),lessons:e=>({url:"/api/bot/thread/lessons",query:e}),fileNotes:"/api/bot/thread/file",fileNote:(e,l)=>({url:"/api/bot/thread/file",query:{path:e,from:l}}),toolResult:(e,l)=>({url:"/api/bot/tool-result",pathVariable:[e],query:{call:l}}),workspace:"/api/workspace",workspaceFolder:(e,l)=>({url:"/api/workspace",query:{path:e||null,rows:l}}),workspaceFiles:e=>({url:"/api/workspace/files",query:{paths:JSON.stringify(e)}}),artifacts:"/api/artifact",artifactShelf:e=>({url:"/api/artifact",query:{rows:e}}),artifactSet:(e,l)=>({url:"/api/artifact",query:{set:e,rows:l}}),file:e=>`/api/file/${l(e)}`,fileFace:e=>`/api/file/${l(e)}?face`,favicon:e=>`/api/favicon/${encodeURIComponent(e)}`,fileView:e=>`/artifact/${l(e)}`,events:"/api/events",config:"/api/config",callHistory:e=>({url:"/api/thursday/call",query:{before:e}}),thursdaySettings:"/api/thursday/settings",toolCall:"/api/thursday/tool-call",callEnd:"/api/thursday/call/end",signIns:"/api/signins",reach:"/api/reach",textCall:"/api/thursday/text",memoryEdit:"/api/memory/edit",llmModel:"/api/llm-model",automaticModel:"/api/llm-model/automatic",modelCatalog:e=>`/api/llm-model/catalog/${e}`,keyCredits:e=>`/api/llm-model/credits/${e}`,subscriptionUsage:"/api/llm-model/subscription",running:"/api/running",update:"/api/update"}])},421429,e=>{"use strict";var l=e.i(843476),a=e.i(271645),t=e.i(647163);e.s(["Segmented",0,function({options:e,value:i,onChange:s,view:n=!1,size:r="default",className:c,...o}){let d=(0,a.useRef)([]),m=e.findIndex(e=>e.value===i);return(0,l.jsx)("div",{role:"radiogroup",onKeyDown:l=>{let a={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1}[l.key];if(a&&!(e.length<2)){let t;l.preventDefault(),l.stopPropagation(),t=(Math.max(0,m)+a+e.length)%e.length,s(e[t].value),d.current[t]?.focus()}},className:(0,t.cn)("flex w-fit gap-0.5 rounded-full bg-muted","sm"===r?"p-0.5":"p-0.75",c),...o,children:e.map((e,a)=>{let c=e.value===i;return(0,l.jsx)("button",{ref:e=>{d.current[a]=e},type:"button",role:"radio","aria-checked":c,tabIndex:c||m<0&&0===a?0:-1,title:e.title,onClick:()=>s(e.value),className:(0,t.cn)("flex items-center justify-center gap-1.5 rounded-full whitespace-nowrap transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/50","sm"===r?"h-6 px-2.5 text-[12px]":"h-7 px-3 text-[12.5px]",!c&&"text-muted-foreground hover:text-foreground",c&&(n?"bg-background font-medium text-foreground shadow-sm dark:bg-input/60":"bg-brand font-medium text-brand-foreground")),children:e.label},e.value)})})}])},146538,e=>{"use strict";var l=e.i(843476),a=e.i(689664),t=e.i(563707),i=e.i(456420);let s={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};s.node;let n=(0,i.default)(s);var r=e.i(758925),c=e.i(271645),o=e.i(798120),d=e.i(167881),m=e.i(23750),u=e.i(59377),p=e.i(41533),h=e.i(449682),x=e.i(992112),f=e.i(609856),v=e.i(283653),g=e.i(647163),b=e.i(265402),y=e.i(412294),j=e.i(611568),N=e.i(566595),z=e.i(630374),k=e.i(421429),M=e.i(968978);let V={alibaba:[{d:"M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z"}],amazon:[{d:"M13.05 15.513h3.08c.214 0 .389.177.389.394v1.82a1.704 1.704 0 011.296 1.661c0 .943-.755 1.708-1.685 1.708-.931 0-1.686-.765-1.686-1.708 0-.807.554-1.484 1.297-1.662v-1.425h-2.69v4.663a.395.395 0 01-.188.338l-2.69 1.641a.385.385 0 01-.405-.002l-4.926-3.086a.395.395 0 01-.185-.336V16.3L2.196 14.87A.395.395 0 012 14.555L2 14.528V9.406c0-.14.073-.27.192-.34l2.465-1.462V4.448c0-.129.062-.249.165-.322l.021-.014L9.77 1.058a.385.385 0 01.407 0l2.69 1.675a.395.395 0 01.185.336V7.6h3.856V5.683a1.704 1.704 0 01-1.296-1.662c0-.943.755-1.708 1.685-1.708.931 0 1.685.765 1.685 1.708 0 .807-.553 1.484-1.296 1.662v2.311a.391.391 0 01-.389.394h-4.245v1.806h6.624a1.69 1.69 0 011.64-1.313c.93 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708a1.69 1.69 0 01-1.64-1.314H13.05v1.937h4.953l.915 1.18a1.66 1.66 0 01.84-.227c.931 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708-.93 0-1.685-.765-1.685-1.708 0-.346.102-.668.276-.937l-.724-.935H13.05v1.806zM9.973 1.856L7.93 3.122V6.09h-.778V3.604L5.435 4.669v2.945l2.11 1.36L9.712 7.61V5.334h.778V7.83c0 .136-.07.263-.184.335L7.963 9.638v2.081l1.422 1.009-.446.646-1.406-.998-1.53 1.005-.423-.66 1.605-1.055v-1.99L5.038 8.29l-2.26 1.34v1.676l1.972-1.189.398.677-2.37 1.429V14.3l2.166 1.258 2.27-1.368.397.677-2.176 1.311V19.3l1.876 1.175 2.365-1.426.398.678-2.017 1.216 1.918 1.201 2.298-1.403v-5.78l-4.758 2.893-.4-.675 5.158-3.136V3.289L9.972 1.856zM16.13 18.47a.913.913 0 00-.908.92c0 .507.406.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zm3.63-3.81a.913.913 0 00-.908.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92zm1.555-4.99a.913.913 0 00-.908.92c0 .507.407.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zM17.296 3.1a.913.913 0 00-.907.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92z"}],"arcee-ai":[{d:"M13.236 2.377L2.751 20.493H0L11.863 0l1.373 2.377zm3.554 6.156l-9.606 11.96H4.13L15.511 6.32l1.279 2.212zm6.908 11.96H14.05l8.406-2.151 1.242 2.15zm-3.42-5.922l-7.843 5.92H8.482l10.597-7.997 1.2 2.077z"}],bfl:[{d:"M0 20.683L12.01 2.5 24 20.683h-2.233L12.009 5.878 3.471 18.806h12.122l1.239 1.877H0z"},{d:"M8.069 16.724l2.073-3.115 2.074 3.115H8.069zM18.24 20.683l-5.668-8.707h2.177l5.686 8.707h-2.196zM19.74 11.676l2.13-3.19 2.13 3.19h-4.26z"}],bytedance:[{d:"M14.944 18.587l-1.704-.445V10.01l1.824-.462c1-.254 1.84-.461 1.88-.453.032 0 .056 2.235.056 4.972v4.973l-.176-.008c-.104 0-.952-.207-1.88-.446z"},{d:"M7 16.542c0-2.736.024-4.98.064-4.98.032-.008.872.2 1.88.454l1.816.461-.016 4.05-.024 4.049-1.632.422c-.896.23-1.736.445-1.856.469L7 21.523v-4.98z"},{d:"M19.24 12.477c0-9.03.008-9.515.144-9.475.072.024.784.207 1.576.406.792.207 1.576.405 1.744.445l.296.08-.016 8.56-.024 8.568-1.624.414c-.888.23-1.728.437-1.856.47l-.24.055v-9.523z"},{d:"M1 12.509c0-4.678.024-8.505.064-8.505.032 0 .872.207 1.872.454l1.824.461v7.582c0 4.16-.016 7.574-.032 7.574-.024 0-.872.215-1.88.47L1 21.013v-8.505z"}],"fish-audio":[{d:"M23.12 12.13v.62c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.62c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.37v1.74c0 .24.2.44.44.44.25 0 .44-.2.44-.44V12.5c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76.43v1.99q0 .09.03.17.04.08.1.14.07.07.15.1t.17.03c.24 0 .44-.19.44-.44v-1.99c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17m-1.76.35v1.97c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-1.97c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.32v1.65c0 .25.2.45.44.45s.44-.2.44-.45V13.6c0-.25-.2-.45-.44-.45s-.44.2-.44.45m-1.76 1.26v.3q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-.3q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M0 9.38v.19c0 .24.2.44.44.44.25 0 .44-.2.44-.44v-.19c0-.25-.19-.44-.44-.44-.24 0-.44.19-.44.44m1.82.15v.81c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.81q0-.18-.13-.31t-.31-.13-.31.13-.13.31m1.81-.24v3.39q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V9.29q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3m1.83-.35v.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.22q0-.18-.13-.31T5.9 8.5t-.31.13-.13.31m0 2.94v2.34c0 .25.19.44.44.44.24 0 .44-.19.44-.44v-2.34c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m15.89-3.32V11c0 .25.2.44.44.44.25 0 .44-.19.44-.44V8.56c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76-.39v3.28q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.17c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17M17.83 8v3.9c0 .24.19.44.44.44.24 0 .44-.2.44-.44V8c0-.25-.2-.44-.44-.44-.25 0-.44.19-.44.44m-1.77.11v3.96c0 .25.2.44.44.44s.44-.19.44-.44V8.11c0-.25-.2-.44-.44-.44s-.44.19-.44.44m-1.76.27v5.03q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.38c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.8.46v5.75q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.84c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.76.76v5.52c0 .24.2.44.44.44.25 0 .44-.2.44-.44V9.6c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.77 1.01v4.77q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-4.77q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M23.12 9.6v1.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44V9.6c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44M7.21 11.32V16c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-4.68q0-.18-.13-.31t-.31-.13-.31.13-.13.31"}],inception:[{d:"M14.767 1H7.884L1 7.883v6.884h6.884V7.883h6.883V1zM9.234 23h6.882L23 16.116V9.233h-6.884v6.883H9.234V23z"}],klingai:[{d:"M5.493 21.234c-1.112-1.451-1.109-4.263-.081-7.459l-4.557-2.63a1.683 1.683 0 01-.85-1.304 1.505 1.505 0 01.08-.622 13.18 13.18 0 011.037-2.255c3.476-6.02 10.916-8.23 16.619-4.938.46.266.82.67 1.081 1.184.785 1.545.685 4.096-.234 6.954l4.557 2.631c.339.196.596.492.736.832a1.53 1.53 0 01.034 1.093 13.146 13.146 0 01-1.037 2.255c-3.476 6.02-10.916 8.23-16.619 4.938a2.6 2.6 0 01-.766-.68zm11.096-6.615c-2.073 3.591-5.808 5.316-8.343 3.852-1.267-.731-1.994-2.122-2.145-3.778-.095-1.035.036-2.173.4-3.32.217-.684.517-1.37.902-2.039l.008-.014c2.073-3.59 5.808-5.315 8.343-3.852.633.366 1.13.895 1.49 1.54.986 1.772.922 4.415-.285 6.914-.111.23-.232.457-.362.683l-.008.014z"}],kwaipilot:[{d:"M11.765.03C5.327.03.108 5.25.108 11.686c0 3.514 1.556 6.665 4.015 8.804L9.89 8.665h6.451L9.31 23.083c.807.173 1.63.26 2.455.26 6.438 0 11.657-5.22 11.657-11.658S18.202.028 11.765.028V.03z"}],meta:[{d:"M6.897 4c1.915 0 3.516.932 5.43 3.376l.282-.373c.19-.246.383-.484.58-.71l.313-.35C14.588 4.788 15.792 4 17.225 4c1.273 0 2.469.557 3.491 1.516l.218.213c1.73 1.765 2.917 4.71 3.053 8.026l.011.392.002.25c0 1.501-.28 2.759-.818 3.7l-.14.23-.108.153c-.301.42-.664.758-1.086 1.009l-.265.142-.087.04a3.493 3.493 0 01-.302.118 4.117 4.117 0 01-1.33.208c-.524 0-.996-.067-1.438-.215-.614-.204-1.163-.56-1.726-1.116l-.227-.235c-.753-.812-1.534-1.976-2.493-3.586l-1.43-2.41-.544-.895-1.766 3.13-.343.592C7.597 19.156 6.227 20 4.356 20c-1.21 0-2.205-.42-2.936-1.182l-.168-.184c-.484-.573-.837-1.311-1.043-2.189l-.067-.32a8.69 8.69 0 01-.136-1.288L0 14.468c.002-.745.06-1.49.174-2.23l.1-.573c.298-1.53.828-2.958 1.536-4.157l.209-.34c1.177-1.83 2.789-3.053 4.615-3.16L6.897 4zm-.033 2.615l-.201.01c-.83.083-1.606.673-2.252 1.577l-.138.199-.01.018c-.67 1.017-1.185 2.378-1.456 3.845l-.004.022a12.591 12.591 0 00-.207 2.254l.002.188c.004.18.017.36.04.54l.043.291c.092.503.257.908.486 1.208l.117.137c.303.323.698.492 1.17.492 1.1 0 1.796-.676 3.696-3.641l2.175-3.4.454-.701-.139-.198C9.11 7.3 8.084 6.616 6.864 6.616zm10.196-.552l-.176.007c-.635.048-1.223.359-1.82.933l-.196.198c-.439.462-.887 1.064-1.367 1.807l.266.398c.18.274.362.56.55.858l.293.475 1.396 2.335.695 1.114c.583.926 1.03 1.6 1.408 2.082l.213.262c.282.326.529.54.777.673l.102.05c.227.1.457.138.718.138.176.002.35-.023.518-.073.338-.104.61-.32.813-.637l.095-.163.077-.162c.194-.459.29-1.06.29-1.785l-.006-.449c-.08-2.871-.938-5.372-2.2-6.798l-.176-.189c-.67-.683-1.444-1.074-2.27-1.074z"}],minimax:[{d:"M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z"}],moonshotai:[{d:"M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z"}],morph:[{d:"M7.941 2c.23 0 .452.073.638.21.186.136.325.328.397.55l.593 1.814c.073.221.212.413.397.55.186.136.409.21.638.21h2.791c.23 0 .452-.074.638-.21a1.11 1.11 0 00.397-.55l.594-1.815a1.11 1.11 0 01.397-.55c.185-.136.408-.209.637-.209h1.7c.23 0 .453.073.639.21.185.136.324.328.397.55l.652 1.994c.118.361.41.635.77.728l2.957.752c.236.06.446.199.596.394.15.195.23.436.231.684v9.376c0 .248-.081.488-.231.684a1.09 1.09 0 01-.595.394l-2.957.752a1.086 1.086 0 00-.477.263 1.114 1.114 0 00-.293.465l-.653 1.994a1.11 1.11 0 01-.396.55c-.186.136-.41.21-.638.21h-1.702c-.229 0-.452-.073-.637-.21a1.11 1.11 0 01-.397-.55l-.364-1.11a1.131 1.131 0 01.15-1.002 1.074 1.074 0 01.885-.462h2.85c.29 0 .567-.116.772-.325.204-.208.32-.49.32-.785V6.444c0-.294-.116-.577-.32-.785a1.08 1.08 0 00-.771-.326h-3.273c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v7.778c0 .295-.114.578-.319.786a1.08 1.08 0 01-.771.325h-2.182a1.08 1.08 0 01-.771-.325 1.122 1.122 0 01-.32-.786V6.444c0-.294-.115-.577-.32-.785a1.081 1.081 0 00-.77-.326H5.454c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v11.112c0 .294.116.577.32.785.205.209.482.326.772.326h2.85a1.075 1.075 0 01.885.461 1.122 1.122 0 01.15 1.001l-.364 1.112a1.11 1.11 0 01-.397.55c-.185.136-.408.209-.637.209H6.24c-.229 0-.452-.073-.638-.21a1.11 1.11 0 01-.397-.55l-.652-1.994a1.114 1.114 0 00-.294-.465 1.086 1.086 0 00-.477-.263l-2.956-.752a1.09 1.09 0 01-.595-.394A1.124 1.124 0 010 16.688V7.312c0-.248.081-.489.231-.684.15-.195.36-.334.595-.394l2.957-.753c.178-.045.342-.136.477-.263.134-.127.235-.287.293-.464l.653-1.995a1.11 1.11 0 01.397-.55C5.788 2.075 6.01 2 6.24 2h1.701z"}],nvidia:[{d:"M10.212 8.976V7.62c.127-.01.256-.017.388-.021 3.596-.117 5.957 3.184 5.957 3.184s-2.548 3.647-5.282 3.647a3.227 3.227 0 01-1.063-.175v-4.109c1.4.174 1.681.812 2.523 2.258l1.873-1.627a4.905 4.905 0 00-3.67-1.846 6.594 6.594 0 00-.729.044m0-4.476v2.025c.13-.01.259-.019.388-.024 5.002-.174 8.261 4.226 8.261 4.226s-3.743 4.69-7.643 4.69c-.338 0-.675-.031-1.007-.092v1.25c.278.038.558.057.838.057 3.629 0 6.253-1.91 8.794-4.169.421.347 2.146 1.193 2.501 1.564-2.416 2.083-8.048 3.763-11.24 3.763-.308 0-.603-.02-.894-.048V19.5H24v-15H10.21zm0 9.756v1.068c-3.356-.616-4.287-4.21-4.287-4.21a7.173 7.173 0 014.287-2.138v1.172h-.005a3.182 3.182 0 00-2.502 1.178s.615 2.276 2.507 2.931m-5.961-3.3c1.436-1.935 3.604-3.148 5.961-3.336V6.523C5.81 6.887 2 10.723 2 10.723s2.158 6.427 8.21 7.015v-1.166C5.77 16 4.25 10.958 4.25 10.958h-.002z"}],perplexity:[{d:"M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z"}],recraft:[{d:"M19.667 8.275c0-4.57-4.15-8.275-9.27-8.275-1.774 0-3.213 3.705-3.213 8.275 0 1.143.09 2.233.253 3.224H4.29L1 23h9.4v-6.447c5.117 0 9.266-3.707 9.266-8.275l.001-.002zm-9.27-6.76c.93 0 1.682 3.028 1.682 6.76 0 3.733-.752 6.76-1.681 6.76-.93 0-1.681-3.027-1.681-6.76 0-3.732.752-6.76 1.68-6.76z"},{d:"M19.848 16.552h-9.44L14.028 23h9.438l-3.618-6.448z"}],stepfun:[{d:"M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zM8.762 19.614H4.376v-4.386h4.386v4.386zm5.423 0H9.798v-4.386h4.387v4.386zm0-5.42H9.798V9.81h4.387v4.386zm0-5.418H9.798V4.39h4.387v4.386zm5.422-.004h-4.386V4.386h4.386v4.386z"}],tencent:[{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zm1.652 1.123l-.01-.001c.533.097 1.023.233 1.41.404 6.084 2.683 7.396 9.214 1.601 14.338a3.781 3.781 0 01-5.337-.328 3.654 3.654 0 01-.884-3.044c-1.934.6-3.295 2.305-3.524 4.45-.204 1.912.324 4.044 2.056 5.634l.245.067C10.1 22.876 11.036 23 12 23c6.075 0 11-4.925 11-11 0-5.513-4.056-10.08-9.348-10.877zM2.748 6.21c-.178.269-.348.536-.51.803l-.235.394.078-.167A10.957 10.957 0 001 12c0 4.919 3.228 9.083 7.682 10.49l.214.065C3.523 18.528 2.84 14.149 6.47 8.68A2.234 2.234 0 102.748 6.21zm10.157-5.172c4.408 1.33 3.61 5.41 2.447 6.924-.86 1.117-2.922 1.46-3.708 2.238-.666.657-1.077 1.462-1.212 2.291A5.303 5.303 0 0112 12.258a5.672 5.672 0 001.404-11.169 10.51 10.51 0 00-.5-.052z"}],voyage:[{d:"M5.407 0v.066a.974.974 0 00-.048.245c-.011.11-.016.208-.016.295 0 .339.043.715.128 1.13.097.405.274.912.531 1.524l7.125 16.366L20.011 3.39c.161-.404.333-.846.515-1.327.182-.48.273-.966.273-1.458a1.406 1.406 0 00-.096-.54V0H24v.066c-.204.207-.45.578-.74 1.114-.29.535-.606 1.195-.949 1.982L13.095 24h-1.287L3.075 3.965c-.204-.47-.418-.923-.644-1.36-.214-.437-.418-.83-.61-1.18-.194-.36-.365-.66-.515-.9A5.666 5.666 0 001 .064V0h4.407z"}],xiaomi:[{d:"M12 0C8.016 0 4.756.255 2.493 2.516.23 4.776 0 8.033 0 12.012c0 3.98.23 7.235 2.494 9.497C4.757 23.77 8.017 24 12 24c3.983 0 7.243-.23 9.506-2.491C23.77 19.247 24 15.99 24 12.012c0-3.984-.233-7.243-2.502-9.504C19.234.252 15.978 0 12 0zM4.906 7.405h5.624c1.47 0 3.007.068 3.764.827.746.746.827 2.233.83 3.676v4.54a.15.15 0 0 1-.152.147h-1.947a.15.15 0 0 1-.152-.148V11.83c-.002-.806-.048-1.634-.464-2.051-.358-.36-1.026-.441-1.72-.458H7.158a.15.15 0 0 0-.151.147v6.98a.15.15 0 0 1-.152.148H4.906a.15.15 0 0 1-.15-.148V7.554a.15.15 0 0 1 .15-.149zm12.131 0h1.949a.15.15 0 0 1 .15.15v8.892a.15.15 0 0 1-.15.148h-1.949a.15.15 0 0 1-.151-.148V7.554a.15.15 0 0 1 .151-.149zM8.92 10.948h2.046c.083 0 .15.066.15.147v5.352a.15.15 0 0 1-.15.148H8.92a.15.15 0 0 1-.152-.148v-5.352a.15.15 0 0 1 .152-.147Z"}],zai:[{d:"M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z"}]};function C({owner:e,className:a}){let t=b.VENDOR_PROVIDERS[e];if(t)return(0,l.jsx)(M.ProviderIcon,{provider:t,className:a});let i=V[e];return i?(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:a,"aria-hidden":"true",children:i.map(e=>(0,l.jsx)("path",{d:e.d,opacity:e.opacity},e.d))}):null}function w({provider:e,models:a,kind:t,value:i,loading:s,onPick:n}){let[r,o]=(0,c.useState)(!1),[u,p]=(0,c.useState)(""),[h,x]=(0,c.useState)("cheap"),[f,v]=(0,c.useState)(i),{label:y}=b.TEXT_MODEL_PROVIDERS[e],V=a.filter(e=>e.type===(t??b.CATALOG_TEXT)),C=t?V:V.filter(e=>e.tags.includes(b.CATALOG_TOOL_USE)),H=u.trim().toLowerCase(),I=(H?C.filter(e=>`${e.id} ${e.label}`.toLowerCase().includes(H)):C).slice().sort(q[h].compare);return(0,l.jsxs)(z.Dialog,{open:r,onOpenChange:e=>{o(e),e?v(i):p("")},children:[(0,l.jsxs)(z.DialogTrigger,{render:(0,l.jsx)("button",{type:"button","aria-label":"Model",className:(0,g.cn)(m.inputClassName,"relative flex items-center pr-8 text-left font-mono text-sm")}),children:[(0,l.jsx)("span",{className:(0,g.cn)("min-w-0 flex-1 truncate",!i&&"font-sans text-muted-foreground"),children:i||"Pick a model"}),(0,l.jsx)("span",{className:"absolute inset-y-0 right-0 flex w-8 items-center justify-center text-muted-foreground",children:s&&0===C.length?(0,l.jsx)(j.LoaderCircle,{className:"size-3.5 animate-spin"}):(0,l.jsx)(N.Search,{className:"size-3.5"})})]}),(0,l.jsx)(z.DialogContent,{className:"h-[min(40rem,calc(100vh-3rem))] gap-0 overflow-hidden p-0 sm:max-w-2xl",children:(0,l.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:[(0,l.jsxs)("div",{className:"shrink-0 space-y-1 px-6 pt-5 pb-4",children:[(0,l.jsxs)(z.DialogTitle,{className:"flex items-center gap-2.5 text-xl font-semibold",children:[(0,l.jsx)(M.ProviderIcon,{provider:e,className:"size-3.5"}),t?L[t]:"Text"," models"]}),(0,l.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:H?`${I.length} matching “${u.trim()}”`:t?`${C.length} on ${y}`:`${C.length} of ${V.length} on ${y} can call tools`})]}),(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-t border-border/60 px-6 py-3",children:[(0,l.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,l.jsx)(N.Search,{className:"pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2 text-muted-foreground"}),(0,l.jsx)(m.Input,{autoFocus:!0,"aria-label":"Search models",placeholder:"name, id or provider",spellCheck:!1,value:u,onChange:e=>p(e.target.value),className:"h-8 pl-8 font-mono text-xs"})]}),(0,l.jsx)(k.Segmented,{"aria-label":"Sort",options:S,value:h,onChange:x})]}),(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-4 px-6 pb-1.5 font-mono text-[10px] tracking-wide text-muted-foreground",children:[(0,l.jsx)("span",{className:"min-w-0 flex-1",children:"model"}),(0,l.jsx)("span",{className:"w-28 text-right",children:"per 1M in / out"})]}),(0,l.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto border-t border-border/60",children:[I.map(e=>(0,l.jsx)(A,{model:e,picked:e.id===f,onPick:()=>v(e.id)},e.id)),0===I.length&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2.5 p-10",children:[(0,l.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:H?`Nothing matches “${u.trim()}”.`:"Nothing on the shelf — search for an id."}),H&&(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsxs)(d.Button,{size:"sm",onClick:()=>v(u.trim()),children:["Use “",u.trim(),"” as the id"]}),(0,l.jsx)(d.Button,{variant:"outline",size:"sm",onClick:()=>p(""),children:"Clear search"})]})]})]}),(0,l.jsxs)("div",{className:"flex h-14 shrink-0 items-center gap-3 border-t border-border/60 px-6",children:[(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:f||"Nothing picked — the field keeps what it has"}),(0,l.jsx)(d.Button,{variant:"outline",onClick:()=>o(!1),children:"Cancel"}),(0,l.jsx)(d.Button,{disabled:!f,onClick:()=>{n(f),o(!1)},children:"Use this model"})]})]})})]})}let L={image:"Image",video:"Video",speech:"Speech",transcription:"Transcription"},q={cheap:{label:"$↑",title:"Cheapest first",compare:(e,l)=>(e.price.in??1/0)-(l.price.in??1/0)},dear:{label:"$↓",title:"Dearest first",compare:(e,l)=>(l.price.in??-1)-(e.price.in??-1)},name:{label:"a–z",title:"By name",compare:(e,l)=>e.label.localeCompare(l.label)}},S=Object.keys(q).map(e=>({value:e,label:q[e].label,title:q[e].title})),H=e=>e>=1?e.toFixed(2):String(Number(e.toFixed(4)));function A({model:e,picked:t,onPick:i}){let{price:s}=e,n=null!==s.in||null!==s.out;return(0,l.jsxs)("button",{type:"button",onClick:i,className:(0,g.cn)("flex w-full items-center gap-4 border-b border-border/60 px-6 py-2.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",t?"bg-muted/40":"hover:bg-muted/50"),children:[(0,l.jsx)("span",{className:"grid size-[18px] shrink-0 place-items-center",children:(0,l.jsx)(C,{owner:e.owner,className:"size-[15px]"})}),(0,l.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,l.jsx)("span",{className:(0,g.cn)("truncate text-[13px]",t&&"font-medium"),children:e.label}),t&&(0,l.jsx)(a.Check,{className:"size-3.5 shrink-0"}),e.retiring&&(0,l.jsx)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:"retiring"})]}),(0,l.jsx)("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:e.id})]}),(0,l.jsxs)("span",{className:"flex w-28 shrink-0 flex-col items-end",children:[(0,l.jsx)("span",{className:(0,g.cn)("font-mono text-xs",n||s.free?"text-foreground":"text-muted-foreground"),children:s.free?"free":null===s.in&&null===s.out?s.note??"—":`${null===s.in?"—":H(s.in)} / ${null===s.out?"—":H(s.out)}`}),n&&s.note&&(0,l.jsx)("span",{className:"font-mono text-[9px] text-muted-foreground",children:s.note})]})]})}function I({tier:e}){return(0,l.jsx)("span",{className:"shrink-0 rounded-full px-1.5 font-mono text-[9.5px] leading-4 font-normal text-muted-foreground ring-1 ring-border ring-inset",children:e})}function P({provider:e,onSaved:a}){let[t,i]=(0,c.useState)(""),[s,n]=(0,f.useServerAction)(h.setConfigAction,{onOk:()=>{(0,v.revalidate)(o.queryKey.llmModel),(0,v.revalidate)(o.queryKey.config),a()}});return e.signIn?(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsx)("p",{className:"px-1 font-mono text-[11px] text-muted-foreground",children:"Runs on your plan once you sign in"}),(0,l.jsx)(y.ChatGptSignIn,{variant:"outline"})]}):(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(m.Input,{value:t,onChange:e=>i(e.target.value),placeholder:b.TEXT_MODEL_PROVIDERS[e.id].keyLooks??"Paste the key",spellCheck:!1,type:"password"}),(0,l.jsx)(d.Button,{variant:"outline",loading:n,disabled:t.trim().length<p.KEY_MIN,onClick:()=>s(e.apiKeyName,t),children:"Save key"})]})}e.s(["ModelPicker",0,function({provider:e,model:i,kind:s,unset:p,onChange:h,onUnset:f,compact:y=!1}){let{data:j=[],mutate:N}=(0,v.useServerRoute)(o.queryKey.llmModel),z=s?j.filter(e=>(0,b.canMakeKind)(e.id,s)):j,k=z.find(l=>l.id===e),[V,C]=(0,c.useState)(!1),[L,q]=(0,c.useState)(null),[S,H]=(0,c.useState)(""),A=z.find(l=>l.id===(L??e))??z[0],T=A&&(0,b.isCatalogProvider)(A.id)?A.id:null,$=(0,v.useServerRoute)(V&&T&&o.queryKey.modelCatalog(T)),R=e=>s&&e?b.MEDIA_MODEL_PROVIDERS[e.id]?.models[s]??[]:e?.suggestModels??[],D=R(k).find(e=>e.id===i),O=e=>{A&&e.trim()&&(h({provider:A.id,model:e.trim()}),H(""),C(!1))};return(0,l.jsxs)(u.Popover,{open:V,onOpenChange:e=>{C(e),e||q(null)},children:[(0,l.jsxs)(u.PopoverTrigger,{render:y?(0,l.jsx)("button",{type:"button",className:"inline-flex h-5 max-w-64 items-center gap-1.5 rounded-full px-2 text-foreground/80 ring-1 ring-border outline-none ring-inset transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50"}):(0,l.jsx)(d.Button,{variant:"outline",className:"w-full min-w-0 justify-start gap-2 font-normal"}),children:[k?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(M.ProviderIcon,{provider:k.id,className:(0,g.cn)("shrink-0",y?"size-3":"size-4")}),!y&&(0,l.jsxs)("span",{className:"min-w-0 max-w-fit grow basis-0 truncate text-muted-foreground",children:[k.label,(0,l.jsx)("span",{className:"ml-2 text-muted-foreground/40",children:"·"})]}),(0,l.jsx)("span",{className:(0,g.cn)("truncate",!y&&"font-medium"),children:D?.label??(i||"Pick a model")})]}):(0,l.jsx)("span",{className:"truncate text-muted-foreground",children:p??(s?"Not picked":"App default")}),(0,l.jsx)(t.ChevronsUpDown,{className:(0,g.cn)("ml-auto shrink-0 text-muted-foreground",y?"size-2.5":"size-3.5")})]}),(0,l.jsxs)(u.PopoverContent,{align:"start",className:"flex w-[min(34rem,calc(100vw-2rem))] flex-row gap-0 overflow-hidden rounded-2xl p-0",children:[(0,l.jsxs)("div",{className:"flex max-h-80 w-48 shrink-0 flex-col gap-px overflow-y-auto border-r border-border/60 bg-muted/40 p-1.5",children:[f&&(0,l.jsxs)("button",{type:"button",onClick:()=>{f(),C(!1)},className:(0,g.cn)("mb-1 flex h-8.5 shrink-0 items-center gap-2 rounded-lg px-2 text-left text-[13px] outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",k?"hover:bg-muted/60":"bg-muted font-medium"),children:[(0,l.jsx)(n,{className:"size-4 shrink-0 text-muted-foreground"}),(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate",children:p??(s?"Not picked":"App default")}),!k&&(0,l.jsx)(a.Check,{className:"size-3.5 shrink-0"})]}),z.map(e=>(0,l.jsxs)("button",{type:"button",onClick:()=>q(e.id),className:(0,g.cn)("flex h-8.5 shrink-0 items-center gap-2 rounded-lg px-2 text-left text-[13px] outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",e.id===A?.id?"bg-muted font-medium":"hover:bg-muted/60",!e.hasKey&&"text-muted-foreground"),children:[(0,l.jsx)(M.ProviderIcon,{provider:e.id,className:"size-4 shrink-0"}),(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),!e.hasKey&&(0,l.jsx)(r.KeyRound,{className:"size-3 shrink-0"})]},e.id))]}),(0,l.jsx)("div",{className:"flex max-h-80 min-w-0 flex-1 flex-col gap-px overflow-y-auto p-1.5",children:A?A.hasKey?T&&!$.error?(0,l.jsxs)("div",{className:"space-y-2 p-2",children:[(0,l.jsxs)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:["Every model ",A.label," carries, with what each costs."]}),(0,l.jsx)(w,{provider:T,models:$.data??[],kind:s,value:A.id===e?i:"",loading:$.isLoading,onPick:O})]}):(0,l.jsxs)(l.Fragment,{children:[R(A).map(t=>{let s=A.id===e&&t.id===i;return(0,l.jsxs)("button",{type:"button",onClick:()=>O(t.id),className:(0,g.cn)("flex shrink-0 items-center gap-2 rounded-lg px-2.5 py-1.5 text-left outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",s?"bg-muted":"hover:bg-muted/60"),children:[(0,l.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("span",{className:"flex items-center gap-1.5 text-[13px] font-medium",children:[(0,l.jsx)("span",{className:"truncate",children:t.label}),(0,l.jsx)(I,{tier:t.tier})]}),(0,l.jsx)("span",{className:"block truncate font-mono text-[10.5px] text-muted-foreground",children:t.id})]}),s&&(0,l.jsx)(a.Check,{className:"size-3.5 shrink-0"})]},t.id)}),(0,l.jsx)("form",{onSubmit:e=>{e.preventDefault(),O(S)},className:"mt-1 px-1 pb-1",children:(0,l.jsx)(m.Input,{value:S,onChange:e=>H(e.target.value),spellCheck:!1,"aria-label":"Model id",placeholder:$.error?"Could not read the catalog — type an id":"or type a model id",className:"h-8 font-mono text-xs"})})]}):(0,l.jsxs)("div",{className:"space-y-2 p-2",children:[(0,l.jsx)("p",{className:(0,g.cn)("text-xs leading-relaxed",A.lostKey?g.WAITING_INK:"text-muted-foreground"),children:A.lostKey?A.signIn?(0,x.lostWords)(`The ${A.label} sign-in saved before`,"Sign in again."):(0,x.lostWords)(`The ${A.label} key saved before`,"Paste it again."):`${A.label} has no key yet.`}),(0,l.jsx)(P,{provider:A,onSaved:()=>N()})]}):null})]})]})}],146538)},689664,e=>{"use strict";var l=e.i(643957);e.s(["Check",()=>l.default])},77071,e=>{"use strict";var l=e.i(456420);let a={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};a.node;let t=(0,l.default)(a);e.s(["Plus",0,t],77071)}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,986530,e=>{"use strict";var t=e.i(843476),n=e.i(225913);e.i(271645);var s=e.i(647163);function r({className:e,...n}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}e.i(652225);let a=(0,n.cva)("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});e.s(["Field",0,function({className:e,orientation:n="vertical",...r}){return(0,t.jsx)("div",{role:"group","data-slot":"field","data-orientation":n,className:(0,s.cn)(a({orientation:n}),e),...r})},"FieldContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"field-content",className:(0,s.cn)("group/field-content flex flex-1 flex-col gap-0.5 leading-snug",e),...n})},"FieldLabel",0,function({className:e,...n}){return(0,t.jsx)(r,{"data-slot":"field-label",className:(0,s.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",e),...n})}],986530)},787800,e=>{"use strict";var t=e.i(843476),n=e.i(689664),s=e.i(716327),r=e.i(867927),a=e.i(21357),o=e.i(77071),i=e.i(456420);let c={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};c.node;let l=(0,i.default)(c),d={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};d.node;let m=(0,i.default)(d);var u=e.i(759659),p=e.i(263676),h=e.i(271645),f=e.i(798120),g=e.i(167881),x=e.i(986530),v=e.i(23750),j=e.i(647163);let b=(0,h.memo)(({data:e,name:n,initialExpandDepth:s=2})=>{let r=(0,h.useMemo)(()=>"string"==typeof e?function(e){let t=e.trim();if(!(t.startsWith("{")&&t.endsWith("}"))&&!(t.startsWith("[")&&t.endsWith("]")))return{success:!1,data:e};try{return{success:!0,data:JSON.parse(e)}}catch{return{success:!1,data:e}}}(e).data:e,[e]);return(0,t.jsx)("div",{className:"text-sm",children:(0,t.jsx)(k,{data:r,name:n,depth:0,initialExpandDepth:s})})});b.displayName="JsonView";let y=(e,t)=>({role:"button",tabIndex:0,"aria-expanded":e,onClick:t,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())}}),N="outline-none focus-visible:ring-3 focus-visible:ring-ring/50",k=(0,h.memo)(({data:e,name:n,depth:s=0,initialExpandDepth:r})=>{var a;let o=void 0===e?"undefined":Array.isArray(e)?"array":null===e?"null":typeof e,[i,c]=(0,h.useState)("string"!==o&&s<r),l={number:"text-blue-500",boolean:"text-amber-500",null:"text-purple-500",undefined:"text-gray-500",string:"text-foreground break-all whitespace-pre-wrap",default:"text-muted-foreground"};switch(o){case"object":case"array":let d,m,u;return m=(d=(a="array"===o)?e:Object.entries(e)).length,u={open:a?"[":"{",close:a?"]":"}",collapsed:a?"[ ... ]":"{ ... }",empty:a?"[]":"{}"},0===m?(0,t.jsxs)("div",{className:"flex items-center",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:u.empty})]}):(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:(0,j.cn)("flex items-center mr-1 rounded cursor-pointer group hover:bg-input/30",N),...y(i,()=>c(!i)),children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground hover:text-foreground",children:[n,":"]}),i?(0,t.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground",children:u.open}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground",children:u.collapsed}),(0,t.jsxs)("span",{className:"ml-1 text-muted-foreground group-hover:text-foreground",children:[m," ",1===m?"item":"items"]})]})]}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"pl-2 ml-4 border-l border-border",children:a?d.map((e,n)=>(0,t.jsx)("div",{className:"my-1",children:(0,t.jsx)(k,{data:e,name:`${n}`,depth:s+1,initialExpandDepth:r})},n)):d.map(([e,n])=>(0,t.jsx)("div",{className:"my-1",children:(0,t.jsx)(k,{data:n,name:e,depth:s+1,initialExpandDepth:r})},e))}),(0,t.jsx)("div",{className:"text-muted-foreground",children:u.close})]})]});case"string":return e.length>100?(0,t.jsxs)("div",{className:"flex mr-1 rounded group hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground hover:text-foreground",children:[n,":"]}),(0,t.jsx)("pre",{className:(0,j.cn)(l.string,"cursor-pointer group-hover:text-foreground",N),...y(i,()=>c(!i)),title:i?"Click to collapse":"Click to expand",children:i?`"${e}"`:`"${e.slice(0,100)}..."`})]}):(0,t.jsxs)("div",{className:"flex mr-1 rounded hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsxs)("pre",{className:l.string,children:['"',e,'"']})]});case"undefined":return(0,t.jsxs)("div",{className:"flex items-center mr-1 rounded hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsx)("span",{className:l.undefined,children:"undefined"})]});default:return(0,t.jsxs)("div",{className:"flex items-center mr-1 rounded hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsx)("span",{className:l[o]||l.default,children:null===e?"null":String(e)})]})}});k.displayName="JsonNode";var S=e.i(917162),w=e.i(818125),C=e.i(319036),O=e.i(127341),z=e.i(184762),T=e.i(6799),A=e.i(95187);let P=(0,A.createServerReference)("7f006327732490acfecf7fde20fdd60e3800946a36",A.callServer,void 0,A.findSourceMapURL,"callToolAction"),F=(0,A.createServerReference)("7f2b12fc98a2cfd36914112dda873ef6af265c2860",A.callServer,void 0,A.findSourceMapURL,"deleteServerAction"),$=(0,A.createServerReference)("7f746642c75b7ebca196917d59ce496ff321cb67ef",A.callServer,void 0,A.findSourceMapURL,"refreshServerAction"),R=(0,A.createServerReference)("7facdf9b0ff15c99ade43a69ddc23247c2e16caa1a",A.callServer,void 0,A.findSourceMapURL,"registerServerAction");var D=e.i(362201),M=e.i(245629);let L=D.object({url:D.url(),headers:D.record(D.string(),D.string()).optional()}),E=D.object({command:D.string().min(1),args:D.array(D.string()).optional(),env:D.record(D.string(),D.string()).optional()}),I=D.union([L,E]),B=D.object({name:D.string(),description:D.string().optional(),inputSchema:D.looseObject({}).optional(),outputSchema:D.looseObject({}).optional()});function q(e){return"url"in e}D.object({clientInformation:D.looseObject({}).optional(),tokens:D.looseObject({}).optional(),authorizationServer:D.looseObject({}).optional(),codeVerifier:D.string().optional(),state:D.string().optional()});let J=D.object({name:D.string().min(1).max(40),config:I,toolCount:D.number().int(),lastError:D.string().nullish()}),U=B.extend({id:D.number().int(),description:D.string().nullish()});J.omit({toolCount:!0}).extend({tools:U.array().default([]),toolsSyncedAt:M.DateLikeSchema});let K=D.object({name:D.string().min(1,"Name is required").max(40).regex(/^[a-zA-Z0-9_-]+$/,"Only letters, numbers, - and _ are allowed"),config:I}),H=D.union([D.object({mcpServers:D.record(D.string(),I)}),D.record(D.string(),I)]),V=[{name:"todoist",icon:"todoist.com",description:"Tasks, projects, and due dates",config:{url:"https://ai.todoist.net/mcp"}},{name:"home-assistant",icon:"home-assistant.io",description:"Lights, switches, and the rest of the house — your address and a long-lived token",config:{url:"http://homeassistant.local:8123/api/mcp",headers:{Authorization:"Bearer <your-home-assistant-token>"}}},{name:"kiwi",icon:"kiwi.com",description:"Flight search — no account",config:{url:"https://mcp.kiwi.com"}},{name:"zapier",icon:"zapier.com",description:"Gmail, Google Calendar, and thousands of apps you connect there",config:{url:"https://mcp.zapier.com/api/v1/connect"}},{name:"notion",icon:"notion.so",description:"Pages, databases, and search",config:{url:"https://mcp.notion.com/mcp"}},{name:"canva",icon:"canva.com",description:"Create and manage designs",config:{url:"https://mcp.canva.com/mcp"}},{name:"slack",icon:"slack.com",description:"Channels, messages, and search",config:{url:"https://mcp.slack.com/mcp"}},{name:"box",icon:"box.com",description:"Files, folders, and content search",config:{url:"https://mcp.box.com/mcp"}},{name:"airtable",icon:"airtable.com",description:"Bases, tables, and records",config:{url:"https://mcp.airtable.com/mcp"}},{name:"fireflies",icon:"fireflies.ai",description:"Meeting transcripts and summaries",config:{url:"https://mcp.fireflies.ai/mcp"}},{name:"asana",icon:"asana.com",description:"Tasks, projects, and portfolios",config:{url:"https://mcp.asana.com/mcp"}},{name:"monday",icon:"monday.com",description:"Boards, items, and updates",config:{url:"https://mcp.monday.com/mcp"}},{name:"clickup",icon:"clickup.com",description:"Tasks, docs, and spaces",config:{url:"https://mcp.clickup.com/mcp"}},{name:"linear",icon:"linear.app",description:"Issues, projects, and cycles",config:{url:"https://mcp.linear.app/mcp"}},{name:"atlassian",icon:"atlassian.com",description:"Jira and Confluence",config:{url:"https://mcp.atlassian.com/v1/mcp"}},{name:"hubspot",icon:"hubspot.com",description:"Contacts, deals, and companies",config:{url:"https://app.hubspot.com/mcp/v1/http"}},{name:"attio",icon:"attio.com",description:"CRM records and lists",config:{url:"https://mcp.attio.com/mcp"}},{name:"intercom",icon:"intercom.com",description:"Conversations and support tickets",config:{url:"https://mcp.intercom.com/mcp"}},{name:"wix",icon:"wix.com",description:"Sites, stores, and bookings",config:{url:"https://mcp.wix.com/mcp"}},{name:"webflow",icon:"webflow.com",description:"Sites, pages, and CMS collections",config:{url:"https://mcp.webflow.com/mcp"}},{name:"sanity",icon:"sanity.io",description:"Structured content and datasets",config:{url:"https://mcp.sanity.io/mcp"}},{name:"stripe",icon:"stripe.com",description:"Payments, invoices, and customers",config:{url:"https://mcp.stripe.com"}},{name:"paypal",icon:"paypal.com",description:"Payments and orders",config:{url:"https://mcp.paypal.com/mcp"}},{name:"square",icon:"squareup.com",description:"Payments, catalog, and orders",config:{url:"https://mcp.squareup.com/mcp"}},{name:"ramp",icon:"ramp.com",description:"Spend, cards, and transactions",config:{url:"https://mcp.ramp.com/mcp"}},{name:"github",icon:"github.com",description:"Repos, issues, PRs — paste a personal access token",config:{url:"https://api.githubcopilot.com/mcp/",headers:{Authorization:"Bearer <your-github-pat>"}}},{name:"vercel",icon:"vercel.com",description:"Deployments and projects",config:{url:"https://mcp.vercel.com"}},{name:"netlify",icon:"netlify.com",description:"Sites, builds, and deploys",config:{url:"https://mcp.netlify.com/mcp"}},{name:"cloudflare",icon:"cloudflare.com",description:"Workers bindings — D1, R2, KV",config:{url:"https://bindings.mcp.cloudflare.com/mcp"}},{name:"supabase",icon:"supabase.com",description:"Projects, tables, and SQL",config:{url:"https://mcp.supabase.com/mcp"}},{name:"neon",icon:"neon.tech",description:"Postgres branches and queries",config:{url:"https://mcp.neon.tech/mcp"}},{name:"prisma",icon:"prisma.io",description:"Postgres databases and schema",config:{url:"https://mcp.prisma.io/mcp"}},{name:"sentry",icon:"sentry.io",description:"Errors and performance issues",config:{url:"https://mcp.sentry.dev/mcp"}},{name:"grafana",icon:"grafana.com",description:"Dashboards, metrics, and alerts",config:{url:"https://mcp.grafana.com/mcp"}},{name:"semgrep",icon:"semgrep.dev",description:"Scan code for security findings",config:{url:"https://mcp.semgrep.ai/mcp"}},{name:"postman",icon:"postman.com",description:"Collections, environments, and requests",config:{url:"https://mcp.postman.com/mcp"}},{name:"resend",icon:"resend.com",description:"Send email and manage audiences",config:{url:"https://mcp.resend.com/mcp"}},{name:"hugging-face",icon:"huggingface.co",description:"Models, datasets, and Spaces",config:{url:"https://huggingface.co/mcp"}},{name:"apify",icon:"apify.com",description:"Run scrapers and automation actors",config:{url:"https://mcp.apify.com"}},{name:"exa",icon:"exa.ai",description:"Web search for agents",config:{url:"https://mcp.exa.ai/mcp"}},{name:"kagi",icon:"kagi.com",description:"Search, summarize, and answer",config:{url:"https://mcp.kagi.com/mcp"}},{name:"context7",icon:"context7.com",description:"Up-to-date library docs",config:{url:"https://mcp.context7.com/mcp"}},{name:"deepwiki",icon:"deepwiki.com",description:"Ask questions about any GitHub repo",config:{url:"https://mcp.deepwiki.com/mcp"}},{name:"microsoft-learn",icon:"learn.microsoft.com",description:"Microsoft and Azure docs — no account",config:{url:"https://learn.microsoft.com/api/mcp"}},{name:"aws-knowledge",icon:"aws.amazon.com",description:"AWS docs and API references — no account",config:{url:"https://knowledge-mcp.global.api.aws"}},{name:"cloudflare-docs",icon:"developers.cloudflare.com",description:"Cloudflare docs — no account",config:{url:"https://docs.mcp.cloudflare.com/mcp"}},{name:"stack-overflow",icon:"stackoverflow.com",description:"Questions, answers, and teams",config:{url:"https://mcp.stackoverflow.com"}}];var W=e.i(895836),_=e.i(333999),G=e.i(609856),Q=e.i(283653);function X({name:e,onDone:n}){let[s,r]=(0,h.useState)(""),{data:a,isLoading:o,error:i}=(0,Q.useServerRoute)(f.queryKey.mcpServer(e)),[c,d]=(0,G.useServerAction)($,{...el,onOk:t=>{el.onOk(t),(0,Q.revalidate)(f.queryKey.mcpServer(e))}}),[m,p]=(0,G.useServerAction)(F,{okMessage:"Server deleted",onOk:()=>{n(),(0,Q.revalidate)(f.queryKey.mcp)}}),x=async()=>{await S.notify.confirm({title:`Delete ${e}?`,description:"Its connection and saved authorization go with it.",okText:"Delete",destructive:!0})&&m(e)};if(o)return(0,t.jsx)(W.SettingSkeleton,{rows:4});if(!a)return(0,t.jsx)(W.SettingDialogContent,{title:e,footer:(0,t.jsxs)(g.Button,{variant:"ghost",loading:p,onClick:x,className:"mr-auto text-destructive hover:text-destructive",children:[(0,t.jsx)(u.Trash2,{}),"Delete"]}),children:(0,t.jsx)("p",{className:"rounded-lg bg-destructive/10 px-3 py-2 font-mono text-xs text-destructive",children:i?(0,j.errorToString)(i):"This server could not be read."})});let v=a.tools.length,b=s.trim().toLowerCase(),y=b?a.tools.filter(e=>`${e.name} ${e.description??""}`.toLowerCase().includes(b)):a.tools,N=q(a.config)?"HTTP":"STDIO";return(0,t.jsxs)(W.SettingDialogContent,{title:a.name,description:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)("span",{className:"shrink-0 rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[10px]",children:N}),(0,t.jsx)("span",{className:"truncate font-mono",children:em(a.config)})]}),footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(g.Button,{variant:"ghost",loading:p,onClick:x,className:"mr-auto text-destructive hover:text-destructive",children:[(0,t.jsx)(u.Trash2,{}),"Delete"]}),(0,t.jsxs)(g.Button,{variant:"outline",loading:d,onClick:()=>c(a.name),children:[(0,t.jsx)(l,{}),"Reconnect"]})]}),children:[a.lastError&&(0,t.jsx)("p",{className:"rounded-lg bg-destructive/10 px-3 py-2 font-mono text-xs text-destructive",children:a.lastError}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(W.SettingFilter,{value:s,onChange:r,placeholder:"Filter tools"}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:[v," ",1===v?"tool":"tools"]})]}),y.map(e=>(0,t.jsx)(ee,{tool:e,serverName:a.name},e.name)),0===y.length&&v>0&&(0,t.jsx)("p",{className:"py-6 text-center text-sm text-muted-foreground",children:"No tool here goes by that."})]})}function Y({server:e}){let s=e.toolCount,a=e.lastError?"error":s>0?"connected":"idle";return(0,t.jsxs)("button",{type:"button",onClick:()=>{S.notify.component({className:"sm:max-w-3xl",renderer:({close:n})=>(0,t.jsx)(X,{name:e.name,onDone:n})})},className:"group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-lg bg-muted text-muted-foreground",children:(0,t.jsx)(Z,{server:e})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:e.name}),"connected"===a&&(0,t.jsx)(n.Check,{className:"size-3 shrink-0 text-muted-foreground"})]}),(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:"error"===a?(0,t.jsx)("span",{className:"text-destructive",children:e.lastError}):(0,t.jsxs)(t.Fragment,{children:[s>0?`${s} ${1===s?"tool":"tools"}`:"No tools yet",(0,t.jsxs)("span",{className:"font-mono text-[11px] text-muted-foreground",children:[" · ",em(e.config)]})]})})]}),(0,t.jsx)(r.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}function Z({server:e}){let n,s=(n=V.find(t=>q(t.config)?q(e.config)&&t.config.url.replace(/\/+$/,"")===e.config.url.replace(/\/+$/,""):!q(e.config)&&t.config.command===e.config.command&&(t.config.args??[]).join(" ")===(e.config.args??[]).join(" "))??V.find(t=>t.name===e.name),n?.icon);return s?(0,t.jsx)(w.SiteIcon,{host:s,className:"size-5",fallback:(0,t.jsx)(m,{className:"size-4"})}):(0,t.jsx)(m,{className:"size-4"})}function ee({tool:e,serverName:n}){let[a,o]=(0,h.useState)(!1),[i,c]=(0,h.useState)(!1),[l,d]=(0,h.useState)(!1),m=[["inputSchema",e.inputSchema],["outputSchema",e.outputSchema]].filter(([,e])=>e);return(0,t.jsxs)("div",{className:"rounded-xl border border-border/60 bg-background p-4",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-sm",children:e.name}),m.length>0&&(0,t.jsxs)(g.Button,{size:"xs",variant:"ghost",className:"shrink-0 font-mono",onClick:()=>o(!a),children:[a?(0,t.jsx)(s.ChevronDown,{}):(0,t.jsx)(r.ChevronRight,{}),"Schema"]}),(0,t.jsxs)(g.Button,{size:"xs",variant:"ghost",className:"shrink-0 font-mono",onClick:()=>c(!i),children:[i?(0,t.jsx)(s.ChevronDown,{}):(0,t.jsx)(r.ChevronRight,{}),"Test"]})]}),e.description?(0,t.jsx)("p",{className:(0,j.cn)("mt-0.5 text-xs leading-relaxed text-muted-foreground",!l&&"line-clamp-2",e.description.length>140&&"cursor-pointer"),onClick:()=>d(!l),children:e.description}):null,a?(0,t.jsx)("div",{className:"mt-2 space-y-3 overflow-x-auto rounded-lg border border-input p-3",children:m.map(([e,n])=>(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("span",{className:"block font-mono text-xs text-muted-foreground",children:"inputSchema"===e?"in":"out"}),(0,t.jsx)("pre",{className:"font-mono text-xs leading-relaxed whitespace-pre",children:function e(t,n=0){if(!t||"object"!=typeof t)return"unknown";let s=" ".repeat(n+1),r=" ".repeat(n);if(Array.isArray(t.enum))return t.enum.map(e=>JSON.stringify(e)).join(" | ");let a=t.anyOf??t.oneOf;if(Array.isArray(a))return a.map(t=>e(t,n)).join(" | ");if("array"===t.type){let s=e(t.items,n);return/[|{]/.test(s)?`(${s})[]`:`${s}[]`}if("object"===t.type||t.properties){let a=t.properties;if(!a||0===Object.keys(a).length)return"{}";let o=t.required??[],i=Object.entries(a).map(([t,r])=>{let a=o.includes(t)?"":"?",i=r?.description,c="string"==typeof i&&i.length<=60?` // ${i}`:"";return`${s}${t}${a}: ${e(r,n+1)}${c}`});return`{
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,986530,e=>{"use strict";var t=e.i(843476),n=e.i(225913);e.i(271645);var s=e.i(647163);function r({className:e,...n}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}e.i(652225);let a=(0,n.cva)("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});e.s(["Field",0,function({className:e,orientation:n="vertical",...r}){return(0,t.jsx)("div",{role:"group","data-slot":"field","data-orientation":n,className:(0,s.cn)(a({orientation:n}),e),...r})},"FieldContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"field-content",className:(0,s.cn)("group/field-content flex flex-1 flex-col gap-0.5 leading-snug",e),...n})},"FieldLabel",0,function({className:e,...n}){return(0,t.jsx)(r,{"data-slot":"field-label",className:(0,s.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",e),...n})}],986530)},787800,e=>{"use strict";var t=e.i(843476),n=e.i(689664),s=e.i(716327),r=e.i(867927),a=e.i(21357),o=e.i(77071),i=e.i(456420);let c={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};c.node;let l=(0,i.default)(c),d={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};d.node;let m=(0,i.default)(d);var u=e.i(759659),p=e.i(263676),h=e.i(271645),f=e.i(798120),g=e.i(167881),x=e.i(986530),v=e.i(23750),j=e.i(647163);let b=(0,h.memo)(({data:e,name:n,initialExpandDepth:s=2})=>{let r=(0,h.useMemo)(()=>"string"==typeof e?function(e){let t=e.trim();if(!(t.startsWith("{")&&t.endsWith("}"))&&!(t.startsWith("[")&&t.endsWith("]")))return{success:!1,data:e};try{return{success:!0,data:JSON.parse(e)}}catch{return{success:!1,data:e}}}(e).data:e,[e]);return(0,t.jsx)("div",{className:"text-sm",children:(0,t.jsx)(k,{data:r,name:n,depth:0,initialExpandDepth:s})})});b.displayName="JsonView";let y=(e,t)=>({role:"button",tabIndex:0,"aria-expanded":e,onClick:t,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())}}),N="outline-none focus-visible:ring-3 focus-visible:ring-ring/50",k=(0,h.memo)(({data:e,name:n,depth:s=0,initialExpandDepth:r})=>{var a;let o=void 0===e?"undefined":Array.isArray(e)?"array":null===e?"null":typeof e,[i,c]=(0,h.useState)("string"!==o&&s<r),l={number:"text-blue-500",boolean:"text-amber-500",null:"text-purple-500",undefined:"text-gray-500",string:"text-foreground break-all whitespace-pre-wrap",default:"text-muted-foreground"};switch(o){case"object":case"array":let d,m,u;return m=(d=(a="array"===o)?e:Object.entries(e)).length,u={open:a?"[":"{",close:a?"]":"}",collapsed:a?"[ ... ]":"{ ... }",empty:a?"[]":"{}"},0===m?(0,t.jsxs)("div",{className:"flex items-center",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:u.empty})]}):(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:(0,j.cn)("flex items-center mr-1 rounded cursor-pointer group hover:bg-input/30",N),...y(i,()=>c(!i)),children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground hover:text-foreground",children:[n,":"]}),i?(0,t.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground",children:u.open}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground",children:u.collapsed}),(0,t.jsxs)("span",{className:"ml-1 text-muted-foreground group-hover:text-foreground",children:[m," ",1===m?"item":"items"]})]})]}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"pl-2 ml-4 border-l border-border",children:a?d.map((e,n)=>(0,t.jsx)("div",{className:"my-1",children:(0,t.jsx)(k,{data:e,name:`${n}`,depth:s+1,initialExpandDepth:r})},n)):d.map(([e,n])=>(0,t.jsx)("div",{className:"my-1",children:(0,t.jsx)(k,{data:n,name:e,depth:s+1,initialExpandDepth:r})},e))}),(0,t.jsx)("div",{className:"text-muted-foreground",children:u.close})]})]});case"string":return e.length>100?(0,t.jsxs)("div",{className:"flex mr-1 rounded group hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground hover:text-foreground",children:[n,":"]}),(0,t.jsx)("pre",{className:(0,j.cn)(l.string,"cursor-pointer group-hover:text-foreground",N),...y(i,()=>c(!i)),title:i?"Click to collapse":"Click to expand",children:i?`"${e}"`:`"${e.slice(0,100)}..."`})]}):(0,t.jsxs)("div",{className:"flex mr-1 rounded hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsxs)("pre",{className:l.string,children:['"',e,'"']})]});case"undefined":return(0,t.jsxs)("div",{className:"flex items-center mr-1 rounded hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsx)("span",{className:l.undefined,children:"undefined"})]});default:return(0,t.jsxs)("div",{className:"flex items-center mr-1 rounded hover:bg-input/30",children:[n&&(0,t.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[n,":"]}),(0,t.jsx)("span",{className:l[o]||l.default,children:null===e?"null":String(e)})]})}});k.displayName="JsonNode";var S=e.i(917162),w=e.i(818125),C=e.i(319036),O=e.i(127341),z=e.i(184762),T=e.i(6799),A=e.i(95187);let P=(0,A.createServerReference)("7fa8750647f1851e3227e670682b47e611e56eeb37",A.callServer,void 0,A.findSourceMapURL,"callToolAction"),F=(0,A.createServerReference)("7f8f770c556f170baf9cab251672c2a238550b0747",A.callServer,void 0,A.findSourceMapURL,"deleteServerAction"),$=(0,A.createServerReference)("7f8fc6bc21b2160e31bcee0e1bf0bc95ebcd77e535",A.callServer,void 0,A.findSourceMapURL,"refreshServerAction"),R=(0,A.createServerReference)("7f5588be3768e20d906ac9d2ee9aa3b566fc4779b7",A.callServer,void 0,A.findSourceMapURL,"registerServerAction");var D=e.i(362201),M=e.i(245629);let L=D.object({url:D.url(),headers:D.record(D.string(),D.string()).optional()}),E=D.object({command:D.string().min(1),args:D.array(D.string()).optional(),env:D.record(D.string(),D.string()).optional()}),I=D.union([L,E]),B=D.object({name:D.string(),description:D.string().optional(),inputSchema:D.looseObject({}).optional(),outputSchema:D.looseObject({}).optional()});function q(e){return"url"in e}D.object({clientInformation:D.looseObject({}).optional(),tokens:D.looseObject({}).optional(),authorizationServer:D.looseObject({}).optional(),codeVerifier:D.string().optional(),state:D.string().optional()});let J=D.object({name:D.string().min(1).max(40),config:I,toolCount:D.number().int(),lastError:D.string().nullish()}),U=B.extend({id:D.number().int(),description:D.string().nullish()});J.omit({toolCount:!0}).extend({tools:U.array().default([]),toolsSyncedAt:M.DateLikeSchema});let K=D.object({name:D.string().min(1,"Name is required").max(40).regex(/^[a-zA-Z0-9_-]+$/,"Only letters, numbers, - and _ are allowed"),config:I}),H=D.union([D.object({mcpServers:D.record(D.string(),I)}),D.record(D.string(),I)]),V=[{name:"todoist",icon:"todoist.com",description:"Tasks, projects, and due dates",config:{url:"https://ai.todoist.net/mcp"}},{name:"home-assistant",icon:"home-assistant.io",description:"Lights, switches, and the rest of the house — your address and a long-lived token",config:{url:"http://homeassistant.local:8123/api/mcp",headers:{Authorization:"Bearer <your-home-assistant-token>"}}},{name:"kiwi",icon:"kiwi.com",description:"Flight search — no account",config:{url:"https://mcp.kiwi.com"}},{name:"zapier",icon:"zapier.com",description:"Gmail, Google Calendar, and thousands of apps you connect there",config:{url:"https://mcp.zapier.com/api/v1/connect"}},{name:"notion",icon:"notion.so",description:"Pages, databases, and search",config:{url:"https://mcp.notion.com/mcp"}},{name:"canva",icon:"canva.com",description:"Create and manage designs",config:{url:"https://mcp.canva.com/mcp"}},{name:"slack",icon:"slack.com",description:"Channels, messages, and search",config:{url:"https://mcp.slack.com/mcp"}},{name:"box",icon:"box.com",description:"Files, folders, and content search",config:{url:"https://mcp.box.com/mcp"}},{name:"airtable",icon:"airtable.com",description:"Bases, tables, and records",config:{url:"https://mcp.airtable.com/mcp"}},{name:"fireflies",icon:"fireflies.ai",description:"Meeting transcripts and summaries",config:{url:"https://mcp.fireflies.ai/mcp"}},{name:"asana",icon:"asana.com",description:"Tasks, projects, and portfolios",config:{url:"https://mcp.asana.com/mcp"}},{name:"monday",icon:"monday.com",description:"Boards, items, and updates",config:{url:"https://mcp.monday.com/mcp"}},{name:"clickup",icon:"clickup.com",description:"Tasks, docs, and spaces",config:{url:"https://mcp.clickup.com/mcp"}},{name:"linear",icon:"linear.app",description:"Issues, projects, and cycles",config:{url:"https://mcp.linear.app/mcp"}},{name:"atlassian",icon:"atlassian.com",description:"Jira and Confluence",config:{url:"https://mcp.atlassian.com/v1/mcp"}},{name:"hubspot",icon:"hubspot.com",description:"Contacts, deals, and companies",config:{url:"https://app.hubspot.com/mcp/v1/http"}},{name:"attio",icon:"attio.com",description:"CRM records and lists",config:{url:"https://mcp.attio.com/mcp"}},{name:"intercom",icon:"intercom.com",description:"Conversations and support tickets",config:{url:"https://mcp.intercom.com/mcp"}},{name:"wix",icon:"wix.com",description:"Sites, stores, and bookings",config:{url:"https://mcp.wix.com/mcp"}},{name:"webflow",icon:"webflow.com",description:"Sites, pages, and CMS collections",config:{url:"https://mcp.webflow.com/mcp"}},{name:"sanity",icon:"sanity.io",description:"Structured content and datasets",config:{url:"https://mcp.sanity.io/mcp"}},{name:"stripe",icon:"stripe.com",description:"Payments, invoices, and customers",config:{url:"https://mcp.stripe.com"}},{name:"paypal",icon:"paypal.com",description:"Payments and orders",config:{url:"https://mcp.paypal.com/mcp"}},{name:"square",icon:"squareup.com",description:"Payments, catalog, and orders",config:{url:"https://mcp.squareup.com/mcp"}},{name:"ramp",icon:"ramp.com",description:"Spend, cards, and transactions",config:{url:"https://mcp.ramp.com/mcp"}},{name:"github",icon:"github.com",description:"Repos, issues, PRs — paste a personal access token",config:{url:"https://api.githubcopilot.com/mcp/",headers:{Authorization:"Bearer <your-github-pat>"}}},{name:"vercel",icon:"vercel.com",description:"Deployments and projects",config:{url:"https://mcp.vercel.com"}},{name:"netlify",icon:"netlify.com",description:"Sites, builds, and deploys",config:{url:"https://mcp.netlify.com/mcp"}},{name:"cloudflare",icon:"cloudflare.com",description:"Workers bindings — D1, R2, KV",config:{url:"https://bindings.mcp.cloudflare.com/mcp"}},{name:"supabase",icon:"supabase.com",description:"Projects, tables, and SQL",config:{url:"https://mcp.supabase.com/mcp"}},{name:"neon",icon:"neon.tech",description:"Postgres branches and queries",config:{url:"https://mcp.neon.tech/mcp"}},{name:"prisma",icon:"prisma.io",description:"Postgres databases and schema",config:{url:"https://mcp.prisma.io/mcp"}},{name:"sentry",icon:"sentry.io",description:"Errors and performance issues",config:{url:"https://mcp.sentry.dev/mcp"}},{name:"grafana",icon:"grafana.com",description:"Dashboards, metrics, and alerts",config:{url:"https://mcp.grafana.com/mcp"}},{name:"semgrep",icon:"semgrep.dev",description:"Scan code for security findings",config:{url:"https://mcp.semgrep.ai/mcp"}},{name:"postman",icon:"postman.com",description:"Collections, environments, and requests",config:{url:"https://mcp.postman.com/mcp"}},{name:"resend",icon:"resend.com",description:"Send email and manage audiences",config:{url:"https://mcp.resend.com/mcp"}},{name:"hugging-face",icon:"huggingface.co",description:"Models, datasets, and Spaces",config:{url:"https://huggingface.co/mcp"}},{name:"apify",icon:"apify.com",description:"Run scrapers and automation actors",config:{url:"https://mcp.apify.com"}},{name:"exa",icon:"exa.ai",description:"Web search for agents",config:{url:"https://mcp.exa.ai/mcp"}},{name:"kagi",icon:"kagi.com",description:"Search, summarize, and answer",config:{url:"https://mcp.kagi.com/mcp"}},{name:"context7",icon:"context7.com",description:"Up-to-date library docs",config:{url:"https://mcp.context7.com/mcp"}},{name:"deepwiki",icon:"deepwiki.com",description:"Ask questions about any GitHub repo",config:{url:"https://mcp.deepwiki.com/mcp"}},{name:"microsoft-learn",icon:"learn.microsoft.com",description:"Microsoft and Azure docs — no account",config:{url:"https://learn.microsoft.com/api/mcp"}},{name:"aws-knowledge",icon:"aws.amazon.com",description:"AWS docs and API references — no account",config:{url:"https://knowledge-mcp.global.api.aws"}},{name:"cloudflare-docs",icon:"developers.cloudflare.com",description:"Cloudflare docs — no account",config:{url:"https://docs.mcp.cloudflare.com/mcp"}},{name:"stack-overflow",icon:"stackoverflow.com",description:"Questions, answers, and teams",config:{url:"https://mcp.stackoverflow.com"}}];var W=e.i(895836),_=e.i(333999),G=e.i(609856),Q=e.i(283653);function X({name:e,onDone:n}){let[s,r]=(0,h.useState)(""),{data:a,isLoading:o,error:i}=(0,Q.useServerRoute)(f.queryKey.mcpServer(e)),[c,d]=(0,G.useServerAction)($,{...el,onOk:t=>{el.onOk(t),(0,Q.revalidate)(f.queryKey.mcpServer(e))}}),[m,p]=(0,G.useServerAction)(F,{okMessage:"Server deleted",onOk:()=>{n(),(0,Q.revalidate)(f.queryKey.mcp)}}),x=async()=>{await S.notify.confirm({title:`Delete ${e}?`,description:"Its connection and saved authorization go with it.",okText:"Delete",destructive:!0})&&m(e)};if(o)return(0,t.jsx)(W.SettingSkeleton,{rows:4});if(!a)return(0,t.jsx)(W.SettingDialogContent,{title:e,footer:(0,t.jsxs)(g.Button,{variant:"ghost",loading:p,onClick:x,className:"mr-auto text-destructive hover:text-destructive",children:[(0,t.jsx)(u.Trash2,{}),"Delete"]}),children:(0,t.jsx)("p",{className:"rounded-lg bg-destructive/10 px-3 py-2 font-mono text-xs text-destructive",children:i?(0,j.errorToString)(i):"This server could not be read."})});let v=a.tools.length,b=s.trim().toLowerCase(),y=b?a.tools.filter(e=>`${e.name} ${e.description??""}`.toLowerCase().includes(b)):a.tools,N=q(a.config)?"HTTP":"STDIO";return(0,t.jsxs)(W.SettingDialogContent,{title:a.name,description:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)("span",{className:"shrink-0 rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[10px]",children:N}),(0,t.jsx)("span",{className:"truncate font-mono",children:em(a.config)})]}),footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(g.Button,{variant:"ghost",loading:p,onClick:x,className:"mr-auto text-destructive hover:text-destructive",children:[(0,t.jsx)(u.Trash2,{}),"Delete"]}),(0,t.jsxs)(g.Button,{variant:"outline",loading:d,onClick:()=>c(a.name),children:[(0,t.jsx)(l,{}),"Reconnect"]})]}),children:[a.lastError&&(0,t.jsx)("p",{className:"rounded-lg bg-destructive/10 px-3 py-2 font-mono text-xs text-destructive",children:a.lastError}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(W.SettingFilter,{value:s,onChange:r,placeholder:"Filter tools"}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:[v," ",1===v?"tool":"tools"]})]}),y.map(e=>(0,t.jsx)(ee,{tool:e,serverName:a.name},e.name)),0===y.length&&v>0&&(0,t.jsx)("p",{className:"py-6 text-center text-sm text-muted-foreground",children:"No tool here goes by that."})]})}function Y({server:e}){let s=e.toolCount,a=e.lastError?"error":s>0?"connected":"idle";return(0,t.jsxs)("button",{type:"button",onClick:()=>{S.notify.component({className:"sm:max-w-3xl",renderer:({close:n})=>(0,t.jsx)(X,{name:e.name,onDone:n})})},className:"group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-lg bg-muted text-muted-foreground",children:(0,t.jsx)(Z,{server:e})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:e.name}),"connected"===a&&(0,t.jsx)(n.Check,{className:"size-3 shrink-0 text-muted-foreground"})]}),(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:"error"===a?(0,t.jsx)("span",{className:"text-destructive",children:e.lastError}):(0,t.jsxs)(t.Fragment,{children:[s>0?`${s} ${1===s?"tool":"tools"}`:"No tools yet",(0,t.jsxs)("span",{className:"font-mono text-[11px] text-muted-foreground",children:[" · ",em(e.config)]})]})})]}),(0,t.jsx)(r.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}function Z({server:e}){let n,s=(n=V.find(t=>q(t.config)?q(e.config)&&t.config.url.replace(/\/+$/,"")===e.config.url.replace(/\/+$/,""):!q(e.config)&&t.config.command===e.config.command&&(t.config.args??[]).join(" ")===(e.config.args??[]).join(" "))??V.find(t=>t.name===e.name),n?.icon);return s?(0,t.jsx)(w.SiteIcon,{host:s,className:"size-5",fallback:(0,t.jsx)(m,{className:"size-4"})}):(0,t.jsx)(m,{className:"size-4"})}function ee({tool:e,serverName:n}){let[a,o]=(0,h.useState)(!1),[i,c]=(0,h.useState)(!1),[l,d]=(0,h.useState)(!1),m=[["inputSchema",e.inputSchema],["outputSchema",e.outputSchema]].filter(([,e])=>e);return(0,t.jsxs)("div",{className:"rounded-xl border border-border/60 bg-background p-4",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-sm",children:e.name}),m.length>0&&(0,t.jsxs)(g.Button,{size:"xs",variant:"ghost",className:"shrink-0 font-mono",onClick:()=>o(!a),children:[a?(0,t.jsx)(s.ChevronDown,{}):(0,t.jsx)(r.ChevronRight,{}),"Schema"]}),(0,t.jsxs)(g.Button,{size:"xs",variant:"ghost",className:"shrink-0 font-mono",onClick:()=>c(!i),children:[i?(0,t.jsx)(s.ChevronDown,{}):(0,t.jsx)(r.ChevronRight,{}),"Test"]})]}),e.description?(0,t.jsx)("p",{className:(0,j.cn)("mt-0.5 text-xs leading-relaxed text-muted-foreground",!l&&"line-clamp-2",e.description.length>140&&"cursor-pointer"),onClick:()=>d(!l),children:e.description}):null,a?(0,t.jsx)("div",{className:"mt-2 space-y-3 overflow-x-auto rounded-lg border border-input p-3",children:m.map(([e,n])=>(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("span",{className:"block font-mono text-xs text-muted-foreground",children:"inputSchema"===e?"in":"out"}),(0,t.jsx)("pre",{className:"font-mono text-xs leading-relaxed whitespace-pre",children:function e(t,n=0){if(!t||"object"!=typeof t)return"unknown";let s=" ".repeat(n+1),r=" ".repeat(n);if(Array.isArray(t.enum))return t.enum.map(e=>JSON.stringify(e)).join(" | ");let a=t.anyOf??t.oneOf;if(Array.isArray(a))return a.map(t=>e(t,n)).join(" | ");if("array"===t.type){let s=e(t.items,n);return/[|{]/.test(s)?`(${s})[]`:`${s}[]`}if("object"===t.type||t.properties){let a=t.properties;if(!a||0===Object.keys(a).length)return"{}";let o=t.required??[],i=Object.entries(a).map(([t,r])=>{let a=o.includes(t)?"":"?",i=r?.description,c="string"==typeof i&&i.length<=60?` // ${i}`:"";return`${s}${t}${a}: ${e(r,n+1)}${c}`});return`{
|
|
2
2
|
${i.join("\n")}
|
|
3
3
|
${r}}`}return Array.isArray(t.type)?t.type.join(" | "):"string"==typeof t.type?t.type:"unknown"}(n)})]},e))}):null,i?(0,t.jsx)(et,{tool:e,serverName:n}):null]})}function et({tool:e,serverName:n}){let[s,r]=(0,h.useState)(()=>(function(e){let t=e.inputSchema?.properties;if(!t||"object"!=typeof t)return"{}";let n={};for(let[e,s]of Object.entries(t))n[e]=s?.type==="number"||s?.type==="integer"?0:s?.type!=="boolean"&&(s?.type==="array"?[]:s?.type==="object"?{}:"");return JSON.stringify(n,null,2)})(e)),[o,i]=(0,h.useState)(""),[c,l,d,m,u]=(0,G.useServerAction)(P,{errorMessage:!1});return(0,t.jsxs)("div",{className:"mt-2 space-y-2 rounded-lg border border-input p-3",children:[(0,t.jsx)(z.Textarea,{value:s,onChange:e=>r(e.target.value),spellCheck:!1,className:"min-h-24 resize-none font-mono text-xs"}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-xs text-destructive",children:o||m}),(0,t.jsxs)(g.Button,{size:"sm",loading:l,onClick:()=>{let t;try{t=s.trim()?JSON.parse(s):void 0}catch{i("Not valid JSON");return}i(""),u(),c(n,e.name,t)},children:[!l&&(0,t.jsx)(a.Play,{}),"Run"]})]}),void 0!==d&&(0,t.jsx)("div",{className:"overflow-x-auto rounded-lg bg-muted/40 p-3",children:(0,t.jsx)(b,{data:d,initialExpandDepth:3})})]})}function en(e){return S.notify.component({className:"sm:max-w-lg",renderer:({close:n})=>(0,t.jsx)(es,{initial:e,onDone:n})})}function es({initial:e,onDone:n}){let s=e&&q(e.config)?e.config:void 0,r=e&&!q(e.config)?e.config:void 0,[a,o]=(0,_.useObjectState)({mode:r?"stdio":"http",name:e?.name??"",url:s?.url??"",headers:eo(s?.headers),command:r?.command??"",args:(r?.args??[]).join(" "),env:eo(r?.env),raw:""}),{mode:i,name:c,url:l,headers:d,command:m,args:u,env:p,raw:f}=a,[j,b]=(0,G.useServerAction)(R,{...el,onOk:e=>{el.onOk(e),"error"!==e.status&&n()}}),y=(0,h.useMemo)(()=>{var e,t,n,s,r;let a,o;return"json"===i?function(e){let t,n=e.trim();if(!n)return{value:null,error:""};try{t=JSON.parse(n)}catch{return{value:null,error:"Not valid JSON"}}let s=I.safeParse(t);if(s.success)return{value:{name:null,config:s.data},error:""};let r=H.safeParse(t);if(!r.success)return{value:null,error:"Needs a url or a command"};let a=Object.entries("mcpServers"in r.data?r.data.mcpServers:r.data)[0];return a?{value:{name:a[0],config:a[1]},error:""}:{value:null,error:"No server in there"}}(f):"http"===i?(e=l,t=d,(a=L.safeParse({url:e.trim(),headers:ei(t)})).success?{value:{name:null,config:a.data},error:""}:{value:null,error:e.trim()?"Needs a valid url":""}):(n=m,s=u,r=p,(o=E.safeParse({command:n.trim(),args:s.split(/\s+/).filter(Boolean),env:ei(r)})).success?{value:{name:null,config:o.data},error:""}:{value:null,error:n.trim()?"Needs a command":""})},[i,f,l,d,m,u,p]),N="json"===i?f:JSON.stringify([i,l,d,m,u,p]),[k,S]=(0,h.useState)(N);(0,h.useEffect)(()=>{let e=setTimeout(()=>S(N),700);return()=>clearTimeout(e)},[N]);let w=k===N?y.error:"",T=c||y.value?.name||"",A=K.safeParse({name:T,config:y.value?.config});function P(e){let t=y.value?.config;return t?"json"===e?o({mode:e,raw:JSON.stringify(t,null,2)}):"http"===e&&q(t)?o({mode:e,url:t.url,headers:eo(t.headers)}):"stdio"!==e||q(t)?void o({mode:e}):o({mode:e,command:t.command,args:(t.args??[]).join(" "),env:eo(t.env)}):o({mode:e})}let F=(0,t.jsxs)("span",{className:"flex items-center gap-2 font-mono text-xs text-muted-foreground",children:["JSON",(0,t.jsx)(C.Switch,{size:"sm",checked:"json"===i,onCheckedChange:e=>{let t;return e?P("json"):void P((t=y.value?.config)&&!q(t)?"stdio":"http")}})]});return(0,t.jsx)(W.SettingDialogContent,{title:"Add MCP server",description:"Its tools become available to every bot.",footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.Button,{variant:"ghost",onClick:n,children:"Cancel"}),(0,t.jsx)(g.Button,{disabled:!A.success,loading:b,onClick:()=>{A.success&&!b&&j(A.data)},children:"Connect"})]}),children:(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)(x.Field,{children:[(0,t.jsx)(x.FieldLabel,{children:"Name"}),(0,t.jsx)(v.Input,{value:T,onChange:e=>o({name:e.target.value}),placeholder:"notion",spellCheck:!1})]}),"json"===i?(0,t.jsxs)(x.Field,{children:[(0,t.jsxs)("div",{className:"flex min-h-6 items-center justify-between gap-2",children:[(0,t.jsx)(x.FieldLabel,{children:"JSON"}),F]}),(0,t.jsx)(z.Textarea,{value:f,onChange:e=>o({raw:e.target.value}),spellCheck:!1,placeholder:ec,className:"min-h-64 resize-none font-mono text-xs"})]}):(0,t.jsxs)(O.Tabs,{value:i,onValueChange:e=>P(e),className:"gap-6",children:[(0,t.jsxs)(x.Field,{children:[(0,t.jsxs)("div",{className:"flex min-h-6 items-center justify-between gap-2",children:[(0,t.jsx)(x.FieldLabel,{children:"Transport"}),F]}),(0,t.jsxs)(O.TabsList,{className:"w-full",children:[(0,t.jsx)(O.TabsTrigger,{value:"http",children:"HTTP"}),(0,t.jsx)(O.TabsTrigger,{value:"stdio",children:"STDIO"})]})]}),(0,t.jsxs)(O.TabsContent,{value:"http",className:"space-y-6",children:[(0,t.jsxs)(x.Field,{children:[(0,t.jsx)(x.FieldLabel,{children:"URL"}),(0,t.jsx)(v.Input,{value:l,onChange:e=>o({url:e.target.value}),placeholder:"https://mcp.notion.com/mcp",spellCheck:!1,className:"font-mono text-xs"})]}),(0,t.jsx)(er,{label:"Headers",pairs:d,onChange:e=>o({headers:e}),keyPlaceholder:"Authorization",valuePlaceholder:"Bearer sk-..."})]}),(0,t.jsxs)(O.TabsContent,{value:"stdio",className:"space-y-6",children:[(0,t.jsxs)(x.Field,{children:[(0,t.jsx)(x.FieldLabel,{children:"Command"}),(0,t.jsx)(v.Input,{value:m,onChange:e=>o({command:e.target.value}),placeholder:"npx",spellCheck:!1,className:"font-mono text-xs"})]}),(0,t.jsxs)(x.Field,{children:[(0,t.jsx)(x.FieldLabel,{children:"Args"}),(0,t.jsx)(v.Input,{value:u,onChange:e=>o({args:e.target.value}),placeholder:"-y @notionhq/notion-mcp-server",spellCheck:!1,className:"font-mono text-xs"})]}),(0,t.jsx)(er,{label:"Env",pairs:p,onChange:e=>o({env:e}),keyPlaceholder:"NOTION_TOKEN",valuePlaceholder:"ntn_..."})]})]}),w&&(0,t.jsx)("p",{className:"font-mono text-xs text-destructive",children:w})]})})}function er({label:e,pairs:n,onChange:s,keyPlaceholder:r,valuePlaceholder:a}){let i=(e,t)=>s(n.map(n=>n.id===e?{...n,...t}:n));return(0,t.jsxs)(x.Field,{children:[(0,t.jsx)(x.FieldLabel,{children:e}),(0,t.jsxs)("div",{className:"space-y-2",children:[n.map(e=>(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(v.Input,{value:e.key,onChange:t=>i(e.id,{key:t.target.value}),placeholder:r,spellCheck:!1,className:"font-mono text-xs"}),(0,t.jsx)(v.Input,{value:e.value,onChange:t=>i(e.id,{value:t.target.value}),placeholder:a,spellCheck:!1,className:"font-mono text-xs"}),(0,t.jsx)(g.Button,{variant:"ghost",size:"icon","aria-label":"Remove this row",onClick:()=>s(n.filter(t=>t.id!==e.id)),children:(0,t.jsx)(p.X,{})})]},e.id)),(0,t.jsxs)(g.Button,{variant:"outline",size:"sm",onClick:()=>s([...n,ea()]),children:[(0,t.jsx)(o.Plus,{}),"Add"]})]})]})}let ea=(e="",t="")=>({id:crypto.randomUUID(),key:e,value:t}),eo=e=>Object.entries(e??{}).map(([e,t])=>ea(e,t)),ei=e=>{let t=e.filter(e=>e.key.trim());if(t.length)return Object.fromEntries(t.map(e=>[e.key.trim(),e.value]))},ec=`/** STDIO Example */
|
|
4
4
|
{
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
CREATE TABLE `bot_lesson` (
|
|
2
|
+
`id` integer PRIMARY KEY AUTOINCREMENT,
|
|
3
|
+
`bot` text NOT NULL,
|
|
4
|
+
`thread_id` text,
|
|
5
|
+
`thread_label` text NOT NULL,
|
|
6
|
+
`kind` text NOT NULL,
|
|
7
|
+
`name` text NOT NULL,
|
|
8
|
+
`before` text,
|
|
9
|
+
`after` text,
|
|
10
|
+
`created_at` integer NOT NULL,
|
|
11
|
+
`updated_at` integer NOT NULL,
|
|
12
|
+
`undone_at` integer
|
|
13
|
+
);
|
|
14
|
+
--> statement-breakpoint
|
|
15
|
+
CREATE INDEX `idx_bot_lesson_thread` ON `bot_lesson` (`thread_id`);--> statement-breakpoint
|
|
16
|
+
CREATE INDEX `idx_bot_lesson_bot` ON `bot_lesson` (`bot`,`created_at`);
|