thursday-agent 0.17.2 → 0.19.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 +4 -2
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/routes-manifest.json +28 -12
- 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 +12 -12
- package/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +11 -11
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/artifact/route.js +7 -7
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js +4 -4
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js +4 -4
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js +4 -4
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/[id]/route.js +1 -1
- package/.next/server/app/api/bot/thread/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/file/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/bot/thread/file/route.js +29 -0
- package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -0
- package/.next/server/app/api/bot/thread/file/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/bot/thread/route.js +1 -1
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js +1 -1
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js +2 -2
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js +4 -4
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/automatic/route.js +3 -3
- package/.next/server/app/api/llm-model/automatic/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/[provider]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/llm-model/catalog/{route.js → [provider]/route.js} +8 -8
- package/.next/server/app/api/llm-model/catalog/[provider]/route.js.nft.json +1 -0
- package/.next/server/app/api/llm-model/catalog/[provider]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/llm-model/credits/[provider]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/llm-model/credits/[provider]/route/build-manifest.json +12 -0
- package/.next/server/app/api/llm-model/credits/[provider]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/llm-model/credits/{route.js → [provider]/route.js} +8 -8
- package/.next/server/app/api/llm-model/credits/[provider]/route.js.map +5 -0
- package/.next/server/app/api/llm-model/credits/[provider]/route.js.nft.json +1 -0
- package/.next/server/app/api/llm-model/credits/[provider]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/llm-model/route.js +1 -1
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js +1 -1
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js +2 -2
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +1 -1
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js +1 -1
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +12 -12
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js +1 -1
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js +17 -17
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js +6 -6
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/running/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/running/route/build-manifest.json +12 -0
- package/.next/server/app/api/running/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/running/route.js +10 -0
- package/.next/server/app/api/running/route.js.map +5 -0
- package/.next/server/app/api/running/route.js.nft.json +1 -0
- package/.next/server/app/api/running/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/signins/route.js +4 -4
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js +7 -7
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js +6 -6
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/end/route.js +1 -1
- package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js +1 -1
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/settings/route.js +1 -1
- package/.next/server/app/api/thursday/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js +12 -12
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +13 -13
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js +7 -7
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js +6 -6
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +94 -6
- package/.next/server/app/artifact/[...path]/page.js +9 -5
- 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 +161 -128
- package/.next/server/app/page.js +10 -9
- 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 +4 -2
- package/.next/server/chunks/[root-of-the-server]__00qyw01._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__02ra64t._.js +5 -0
- package/.next/server/chunks/{[root-of-the-server]__05dp5tr._.js → [root-of-the-server]__06ky9of._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0b565-x._.js +7 -0
- package/.next/server/chunks/[root-of-the-server]__0bmtib_._.js +7 -0
- package/.next/server/chunks/[root-of-the-server]__0bqveex._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0brmiv2._.js +7 -0
- package/.next/server/chunks/[root-of-the-server]__0eivkvk._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0f7m79q._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0g38-aj._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0gvdr2h._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__0h656y-._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0hm3tiq._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0hzdqnv._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0kzmxpg._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0mgyt8p._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0mrk2it._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0o5s5-o._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__0p80i1n._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0qdoc_9._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__0qzho69._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0sm5xvm._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0v_kuor._.js +5 -0
- package/.next/server/chunks/{[root-of-the-server]__061o2_x._.js → [root-of-the-server]__0ypkfbu._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1-18_pz._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__13hng6h._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__01k3vi3._.js → [root-of-the-server]__14iga7p._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__16gn7zn._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__18e65_-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1_cgawk._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1ceammd._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ckt1yj._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1cu5f3z._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1dth047._.js +5 -0
- package/.next/server/chunks/{[root-of-the-server]__1k2qs1m._.js → [root-of-the-server]__1fc6v12._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1hviq62._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1ksm9m-._.js +12 -0
- package/.next/server/chunks/[root-of-the-server]__1m1q6u5._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1m_dmf6._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1mys2c3._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1p0njle._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1p47fbb._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1pugoq0._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0ts7ai0._.js → [root-of-the-server]__1trns9g._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ygplx1._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1zn039k._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__20w_g71._.js +3 -0
- package/.next/server/chunks/_01c32w9._.js +1 -1
- package/.next/server/chunks/_02bov6_._.js +1 -1
- package/.next/server/chunks/_06hnfi8._.js +2 -2
- package/.next/server/chunks/_06u9yo-._.js +1 -1
- package/.next/server/chunks/_08354bn._.js +12 -11
- package/.next/server/chunks/_08_-9ay._.js +7 -0
- package/.next/server/chunks/_08s4vft._.js +1 -1
- package/.next/server/chunks/_0bgjf07._.js +5 -0
- package/.next/server/chunks/_0c49lmw._.js +1 -1
- package/.next/server/chunks/_0fb6dvr._.js +1 -1
- package/.next/server/chunks/_0hgvg55._.js +1 -1
- package/.next/server/chunks/_0iw19ig._.js +1 -1
- package/.next/server/chunks/_0poi1t2._.js +1 -1
- package/.next/server/chunks/_0s8ao8z._.js +1 -1
- package/.next/server/chunks/_0t_7gji._.js +1 -1
- package/.next/server/chunks/_0ucx1jv._.js +1 -1
- package/.next/server/chunks/_0uzj57i._.js +1 -1
- package/.next/server/chunks/_0wyh244._.js +112 -0
- package/.next/server/chunks/_1-sk_q4._.js +1 -1
- package/.next/server/chunks/_108gsm8._.js +2 -2
- package/.next/server/chunks/_136j09a._.js +5 -5
- package/.next/server/chunks/_15negpy._.js +2 -2
- package/.next/server/chunks/_1d7og_q._.js +1 -1
- package/.next/server/chunks/_1dxq827._.js +2 -2
- package/.next/server/chunks/_1e54wxa._.js +1 -1
- package/.next/server/chunks/_1frcwj1._.js +1 -1
- package/.next/server/chunks/_1gn2r2q._.js +8 -6
- package/.next/server/chunks/_1gxankq._.js +2 -2
- package/.next/server/chunks/_1i3uucm._.js +1 -1
- package/.next/server/chunks/_1jvy78-._.js +5 -0
- package/.next/server/chunks/_1lg0lsu._.js +53 -0
- package/.next/server/chunks/_1njolhx._.js +294 -0
- package/.next/server/chunks/_1q6e56i._.js +8 -6
- package/.next/server/chunks/_1qgix-j._.js +1 -1
- package/.next/server/chunks/_1wtb-77._.js +294 -0
- package/.next/server/chunks/_1wwl_7o._.js +1 -1
- package/.next/server/chunks/_1y8w80a._.js +5 -5
- package/.next/server/chunks/_1yx285_._.js +3 -0
- package/.next/server/chunks/_20qn224._.js +3 -0
- package/.next/server/chunks/_211dn2c._.js +1 -1
- package/.next/server/chunks/_next-internal_server_app_api_bot_thread_file_route_actions_0q3be0o.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_catalog_[provider]_route_actions_1i0449q.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_credits_[provider]_route_actions_0iui9hz.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_running_route_actions_0o1g-aw.js +3 -0
- package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
- package/.next/server/chunks/features_bot_08z387_._.js +3 -3
- package/.next/server/chunks/features_bot_0zy_q8y._.js +7 -7
- package/.next/server/chunks/features_bot_1dfrdsb._.js +7 -7
- package/.next/server/chunks/features_workspace_workspace_ts_13h82gv._.js +3 -3
- package/.next/server/chunks/features_workspace_workspace_ts_1iyjroj._.js +3 -3
- package/.next/server/chunks/{node_modules_1rosz79._.js → node_modules_035o7ku._.js} +1 -1
- package/.next/server/chunks/{node_modules_1er1u8w._.js → node_modules_0tn5t13._.js} +1 -1
- package/.next/server/chunks/{node_modules_103lpef._.js → node_modules_12oq3hr._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0g87zst._.js → node_modules_consola_dist_chunks_prompt_mjs_0yd5xa0._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__04upd5v._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0p0mv2u._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0sk5enu._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0xyaud4._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1-gi9sm._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__16nn3pe._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1867koj._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1c8-7cw._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__1d7usu0._.js → [root-of-the-server]__1qn0axo._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__1tb5vve._.js +47 -0
- package/.next/server/chunks/ssr/_02cm0fr._.js +5 -0
- package/.next/server/chunks/ssr/{features_bot_1knyan7._.js → _07nmtxo._.js} +2 -2
- package/.next/server/chunks/ssr/_088vzgn._.js +1 -1
- package/.next/server/chunks/ssr/{_1dfv66y._.js → _0bg1u1j._.js} +2 -2
- package/.next/server/chunks/ssr/_0cv9tmv._.js +1 -1
- package/.next/server/chunks/ssr/{_10-_awu._.js → _0f9hx5p._.js} +2 -2
- package/.next/server/chunks/ssr/_0g9ula_._.js +3 -0
- package/.next/server/chunks/ssr/{_1aqjk-1._.js → _0irozu9._.js} +2 -2
- package/.next/server/chunks/ssr/{_123y-ah._.js → _0is8m6y._.js} +2 -2
- package/.next/server/chunks/ssr/_0iwsdp7._.js +3 -0
- package/.next/server/chunks/ssr/_0l7rjg5._.js +1 -1
- package/.next/server/chunks/ssr/{lib_logger_ts_0-olsze._.js → _0mfgsk-._.js} +4 -2
- package/.next/server/chunks/ssr/{_0fo4552._.js → _0nk80t6._.js} +53 -13
- package/.next/server/chunks/ssr/_0p6w0ef._.js +3 -0
- package/.next/server/chunks/ssr/_0pbav_w._.js +3 -0
- package/.next/server/chunks/ssr/{_0vo_oym._.js → _0q-mdwv._.js} +8 -8
- package/.next/server/chunks/ssr/_0s5_ahb._.js +3 -0
- package/.next/server/chunks/ssr/{_0e2fnvg._.js → _0t5f2c3._.js} +2 -2
- package/.next/server/chunks/ssr/_0v9r8g2._.js +1 -1
- package/.next/server/chunks/ssr/_0x8ophf._.js +1 -1
- package/.next/server/chunks/ssr/_0x9f717._.js +60 -0
- package/.next/server/chunks/ssr/_107vtdk._.js +162 -0
- package/.next/server/chunks/ssr/{_17a4qyk._.js → _12lql1x._.js} +3 -3
- package/.next/server/chunks/ssr/{_163dr78._.js → _165wnr4._.js} +2 -2
- package/.next/server/chunks/ssr/_16_7zeo._.js +3 -0
- package/.next/server/chunks/ssr/_17komoi._.js +3 -0
- package/.next/server/chunks/ssr/_190hjys._.js +3 -0
- package/.next/server/chunks/ssr/_1bfrntd._.js +6 -0
- package/.next/server/chunks/ssr/{_01al00i._.js → _1booff4._.js} +2 -2
- package/.next/server/chunks/ssr/{_0xfafez._.js → _1ew1j7l._.js} +2 -2
- package/.next/server/chunks/ssr/_1i2swyr._.js +3 -0
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/_1qsa25k._.js +3 -0
- package/.next/server/chunks/ssr/_1soynbw._.js +6 -0
- package/.next/server/chunks/ssr/_1vc2xmu._.js +3 -0
- package/.next/server/chunks/ssr/{_14oirtb._.js → _1wq90j8._.js} +2 -2
- package/.next/server/chunks/ssr/_1xwtbdz._.js +3 -0
- package/.next/server/chunks/ssr/_1zrhkf0._.js +310 -0
- package/.next/server/chunks/ssr/_21awrs2._.js +5 -0
- package/.next/server/chunks/ssr/features_0796o8r._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_0tb4ui-._.js +2 -2
- package/.next/server/chunks/ssr/features_bot_1c56lew._.js +37 -0
- package/.next/server/chunks/ssr/features_bot_1fn_grf._.js +3 -0
- package/.next/server/chunks/ssr/{features_config_09n-q9q._.js → features_config_05zi68v._.js} +3 -3
- 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_workspace_workspace_ts_1wc7_u_._.js +4 -4
- package/.next/server/chunks/ssr/{node_modules_1k5i-_9._.js → node_modules_0-sux1a._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0msrhxf._.js → node_modules_01oezhb._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1gq3ght._.js → node_modules_04m6ebg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0nmkv-v._.js → node_modules_067jfov._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0gd9hbz._.js → node_modules_06ugby3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0d6j33x._.js → node_modules_07p51j3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_10_fv2a._.js → node_modules_0995xyq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1lmyts8._.js → node_modules_0_uecwx._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04x5wyv._.js → node_modules_0dsyc90._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0__0tvm._.js → node_modules_0hli6s2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0k8-y89._.js → node_modules_0m-bde_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1p_6sq7._.js → node_modules_0oqfdbr._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_0qd7p5f._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_13g-d25._.js → node_modules_0tgy5s5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1_8-jcj._.js → node_modules_1-kjmls._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0m73b88._.js → node_modules_1-l3ka5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_113l3e5._.js → node_modules_1-w3ayh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0q-klni._.js → node_modules_133exgm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1xb-ndg._.js → node_modules_17xc5_k._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_021lid9._.js → node_modules_1_i_w30._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1ri_eip._.js → node_modules_1a2cjfk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_13bqv6i._.js → node_modules_1k752fe._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1qstb1x._.js → node_modules_1lie7z8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_096up6a._.js → node_modules_1mv70-y._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_156kv_t._.js → node_modules_1r611t2._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_1vfd8dz._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_0cjnmzp._.js → node_modules_1yaowd7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0nw5jz7._.js → node_modules_20a1wpo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0amkw0b._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1r8pxbe._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0zq3l45._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1siiu4h._.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 +205 -132
- package/.next/static/chunks/{0obogzscwwekj.js → 088d3w5qxu19g.js} +2 -2
- package/.next/static/chunks/0_s4z70lx1tgs.js +1 -0
- package/.next/static/chunks/0bxekp4hnuk1g.js +1 -0
- package/.next/static/chunks/{1cglo3a2mbeou.js → 0fw4u_s974j24.js} +1 -1
- package/.next/static/chunks/0hy2x7qhk8wgx.css +1 -0
- package/.next/static/chunks/{2zbl41hed17g3.js → 0n_eshmn_7wfn.js} +2 -2
- package/.next/static/chunks/0q9b2n6l4flqb.js +1 -0
- package/.next/static/chunks/0ulcp_u_y1u0b.js +15 -0
- package/.next/static/chunks/0vj93zo0yvix9.js +35 -0
- package/.next/static/chunks/{166smhw8v-s3j.js → 10f98bh4hdmhe.js} +1 -1
- package/.next/static/chunks/1b8bce_z_act0.js +1 -0
- package/.next/static/chunks/1c32d2azsjaj_.js +1 -0
- package/.next/static/chunks/{1xv4g10m-cl1s.js → 1fs829mz69pxz.js} +1 -1
- package/.next/static/chunks/1lwlh4mo_vv8d.js +1 -0
- package/.next/static/chunks/{0p2f6uv4xytfm.js → 1po8fkg40peu-.js} +1 -1
- package/.next/static/chunks/{0uxq_vs6uxi-b.js → 1rg6b9l5fm1hj.js} +1 -1
- package/.next/static/chunks/{3b96xy59nl_gd.js → 26g3iwfuad-7p.js} +1 -1
- package/.next/static/chunks/2bjnmtke_q43c.js +1 -0
- package/.next/static/chunks/2c86k0o-1p9_w.js +1 -0
- package/.next/static/chunks/2gf4t0d76bvyv.js +1 -0
- package/.next/static/chunks/2rj3q_ahctv19.js +1 -0
- package/.next/static/chunks/{2lhc74urf3acr.js → 2x6-fpctvucte.js} +1 -1
- package/.next/static/chunks/2yicf7bky866n.js +3 -0
- package/.next/static/chunks/337g9g_ux2gj-.js +1 -0
- package/.next/static/chunks/350ws7svim7ij.js +58 -0
- package/.next/static/chunks/{0o7o0eb7ihxi6.js → 396enq-m0sss5.js} +1 -1
- package/.next/static/chunks/3e1w_nwfb39j-.js +1 -0
- package/.next/static/chunks/3v3ooretb54ag.js +1 -0
- package/.next/static/chunks/40re_3ukjulg9.js +1 -0
- package/.next/static/chunks/{3gsxnqqqphh-1.js → 44bcbnmup71so.js} +1 -1
- package/.next/static/chunks/{2qgkbdshzpq1c.js → 458dtbsemx996.js} +1 -1
- package/README.md +5 -5
- package/bin/background.mjs +995 -0
- package/bin/lock.mjs +121 -5
- package/bin/thursday.mjs +126 -30
- package/bin/tools.mjs +72 -1
- package/database/migrations/20260926021847_thread_cache_tokens/migration.sql +2 -0
- package/database/migrations/20260926021847_thread_cache_tokens/snapshot.json +1949 -0
- package/guide/bots.md +173 -317
- package/guide/calls.md +106 -146
- package/guide/index.md +2 -2
- package/guide/memory.md +14 -18
- package/guide/phone.md +86 -133
- package/guide/setup.md +141 -172
- package/guide/trouble.md +42 -65
- package/package.json +1 -1
- package/seed-skills/concierge/travel/references/itinerary.md +1 -1
- package/seed-skills/concierge/travel/scripts/itinerary.mjs +8 -3
- package/skills/artifact/references/book.md +3 -3
- package/skills/artifact/runtime/shell/shell.js +32 -3
- package/.next/server/app/api/llm-model/catalog/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/llm-model/catalog/route.js.nft.json +0 -1
- package/.next/server/app/api/llm-model/catalog/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/llm-model/credits/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/llm-model/credits/route.js.nft.json +0 -1
- package/.next/server/app/api/llm-model/credits/route_client-reference-manifest.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__01ypm_z._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__021dkui._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__03xamry._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__09gdscj._.js +0 -7
- package/.next/server/chunks/[root-of-the-server]__0ljizgj._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0nmust6._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0svzjwa._.js +0 -7
- package/.next/server/chunks/[root-of-the-server]__1-rmal0._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__10xnb7e._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1_h4hf9._.js +0 -7
- package/.next/server/chunks/[root-of-the-server]__1c2kwku._.js +0 -12
- package/.next/server/chunks/[root-of-the-server]__1t02-1p._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1t0jj1j._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1v7x5ym._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1vlxv19._.js +0 -5
- package/.next/server/chunks/_07nxi75._.js +0 -254
- package/.next/server/chunks/_08btiir._.js +0 -7
- package/.next/server/chunks/_0j0-gq6._.js +0 -5
- package/.next/server/chunks/_0p6v1fr._.js +0 -5
- package/.next/server/chunks/_0srlnvd._.js +0 -16
- package/.next/server/chunks/_0xygcxs._.js +0 -254
- package/.next/server/chunks/_1ic3bew._.js +0 -5
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_catalog_route_actions_1eu2y41.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_credits_route_actions_0v424pb.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_04oxl25._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0-af_o7._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__09f39cp._.js +0 -4
- package/.next/server/chunks/ssr/[root-of-the-server]__0ouu4qp._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0q9g9ea._.js +0 -5
- package/.next/server/chunks/ssr/[root-of-the-server]__17h1ggo._.js +0 -46
- package/.next/server/chunks/ssr/[root-of-the-server]__1jyeu61._.js +0 -5
- package/.next/server/chunks/ssr/_0afrpci._.js +0 -3
- package/.next/server/chunks/ssr/_0bgse1c._.js +0 -162
- package/.next/server/chunks/ssr/_0jstvlg._.js +0 -39
- package/.next/server/chunks/ssr/_0qsmpcu._.js +0 -3
- package/.next/server/chunks/ssr/_0z38nha._.js +0 -3
- package/.next/server/chunks/ssr/_1-41lck._.js +0 -3
- package/.next/server/chunks/ssr/_10_ph1t._.js +0 -3
- package/.next/server/chunks/ssr/_116lfdc._.js +0 -3
- package/.next/server/chunks/ssr/_14dfh7a._.js +0 -4
- package/.next/server/chunks/ssr/_17qtuv7._.js +0 -3
- package/.next/server/chunks/ssr/_19jez1a._.js +0 -3
- package/.next/server/chunks/ssr/_1_5xof_._.js +0 -3
- package/.next/server/chunks/ssr/_1alxym6._.js +0 -3
- package/.next/server/chunks/ssr/_1ou5sj0._.js +0 -3
- package/.next/server/chunks/ssr/_1tmw842._.js +0 -5
- package/.next/server/chunks/ssr/_1uij_rj._.js +0 -3
- package/.next/server/chunks/ssr/_1w9w1ok._.js +0 -3
- package/.next/server/chunks/ssr/_20gq_24._.js +0 -3
- package/.next/server/chunks/ssr/features_bot_0ouemw8._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_@base-ui_react_1j9i1ho._.js +0 -3
- package/.next/static/chunks/01l7kw74vfp32.js +0 -1
- package/.next/static/chunks/0a5_-jqhaktjj.js +0 -1
- package/.next/static/chunks/0npvak0wpgagb.js +0 -1
- package/.next/static/chunks/19l81deo_pyoc.js +0 -1
- package/.next/static/chunks/1bnhw-5fj7aiz.js +0 -1
- package/.next/static/chunks/1in6nxpu33iab.js +0 -1
- package/.next/static/chunks/1u7kg91f9qy3g.js +0 -1
- package/.next/static/chunks/2ajs12-fcdwzm.js +0 -1
- package/.next/static/chunks/2i7qtmxc1kuqg.js +0 -1
- package/.next/static/chunks/2kz1f6r59nky0.js +0 -3
- package/.next/static/chunks/31kn4_h2rvf6k.css +0 -1
- package/.next/static/chunks/35jj-5u4te56r.js +0 -1
- package/.next/static/chunks/37ixzapa06xlo.js +0 -1
- package/.next/static/chunks/3jtcieuk1l6tw.js +0 -1
- package/.next/static/chunks/3k1d8y03t5nax.js +0 -58
- package/.next/static/chunks/3sla-dm1puqd1.js +0 -35
- package/.next/static/chunks/3t2c76awm9k_p.js +0 -1
- package/.next/static/chunks/3vrmcm31ih7gb.js +0 -1
- package/.next/static/chunks/3yiqr95d7ybeq.js +0 -15
- package/bin/autostart.mjs +0 -162
- /package/.next/server/app/api/{llm-model/catalog → bot/thread/file}/route/build-manifest.json +0 -0
- /package/.next/server/app/api/{llm-model/catalog → bot/thread/file}/route/server-reference-manifest.json +0 -0
- /package/.next/server/app/api/{llm-model/catalog → bot/thread/file}/route.js.map +0 -0
- /package/.next/server/app/api/llm-model/{credits → catalog/[provider]}/route/build-manifest.json +0 -0
- /package/.next/server/app/api/llm-model/{credits → catalog/[provider]}/route/server-reference-manifest.json +0 -0
- /package/.next/server/app/api/llm-model/{credits → catalog/[provider]}/route.js.map +0 -0
- /package/.next/static/{8I2hKtciyA9LXvd8txuOz → YhaRHJqObuAcXZe5VLFs0}/_buildManifest.js +0 -0
- /package/.next/static/{8I2hKtciyA9LXvd8txuOz → YhaRHJqObuAcXZe5VLFs0}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{8I2hKtciyA9LXvd8txuOz → YhaRHJqObuAcXZe5VLFs0}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,728231,e=>{"use strict";var t=e.i(843476);e.s([],951047),e.i(951047);var n=e.i(271645),o=e.i(896499),a=e.i(956789),r=e.i(146376),i=e.i(733332);let s=n.createContext(void 0);function l(e){let t=n.useContext(s);if(void 0===t&&!e)throw Error((0,i.default)(72));return t}var u=e.i(574735),d=e.i(667865),c=e.i(229315),p=e.i(584446),h=e.i(157940);function f(e){return null!=e&&null!=e.clientX}var g=e.i(17989),m=e.i(675606),y=e.i(264111),w=e.i(176782),v=e.i(301252),b=e.i(56434),S=e.i(18478),k=e.i(116786),x=e.i(990627);let P={...k.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class C extends v.ReactStore{constructor(e,t,n){const o=new x.PopupTriggerMap;super(R(e,o,t,n),T(o),P)}setOpen=(e,t)=>{(0,y.applyPopupOpenChange)(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,(0,m.createChangeEventDetails)(b.REASONS.triggerPress,e))}}function R(e,t,n,o=!1){return{...(0,k.createInitialPopupStoreState)(t,n,o),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function T(e){return{popupRef:n.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}let O=(0,o.fastComponent)(function(e){let{disabled:o=!1,defaultOpen:a=!1,open:i,disableHoverablePopup:l=!1,trackCursorAxis:u="none",actionsRef:d,onOpenChange:c,onOpenChangeComplete:p,handle:h,triggerId:f,defaultTriggerId:g=null,children:w}=e,v=(0,y.usePopupRootStore)((e,t)=>new C({open:a,openProp:i,activeTriggerId:g,triggerIdProp:f},e,t));v.useControlledProp("openProp",i),v.useControlledProp("triggerIdProp",f),v.useContextCallback("onOpenChange",c),v.useContextCallback("onOpenChangeComplete",p);let S=v.useState("open"),k=!o&&S,x=v.useState("activeTriggerId"),P=v.useState("mounted"),R=v.useState("payload");v.useSyncedValues({trackCursorAxis:u,disableHoverablePopup:l,disabled:o}),(0,y.useImplicitActiveTrigger)(v,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:T,transitionStatus:O}=(0,y.useOpenStateTransitions)(k,v),A=v.useState("isInstantPhase"),I=v.useState("instantType"),M=v.useState("lastOpenChangeReason"),L=n.useRef(null);(0,r.useIsoLayoutEffect)(()=>{S&&o&&v.setOpen(!1,(0,m.createChangeEventDetails)(b.REASONS.disabled))},[S,o,v]),(0,r.useIsoLayoutEffect)(()=>{"ending"===O&&M===b.REASONS.none||"ending"!==O&&A?("delay"!==I&&(L.current=I),v.set("instantType","delay")):null!==L.current&&(v.set("instantType",L.current),L.current=null)},[O,A,M,I,v]),(0,r.useIsoLayoutEffect)(()=>{k&&null==x&&v.set("payload",void 0)},[v,x,k]),n.useImperativeHandle(d,()=>({unmount:T,close:()=>v.setOpen(!1,(0,m.createChangeEventDetails)(b.REASONS.imperativeAction))}),[T,v]);let D=k||P||!o&&"none"!==u;return(0,t.jsxs)(s.Provider,{value:v,children:[h&&(0,t.jsx)(y.PopupHandleAttachment,{handle:h,store:v}),D&&(0,t.jsx)(E,{store:v,disabled:o,trackCursorAxis:u}),"function"==typeof w?w({payload:R}):w]})});function E({store:e,disabled:t,trackCursorAxis:o}){let r=e.useState("floatingRootContext"),i=(0,g.useDismiss)(r,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=function(e,t={}){let{enabled:o=!0,axis:a="both"}=t,r="rootStore"in e?e.rootStore:e,i=r.useState("open"),s=r.useState("floatingElement"),l=r.useState("domReferenceElement"),g=r.context.dataRef,m=n.useRef(!1),y=n.useRef(null),[w,v]=n.useState(),[b,S]=n.useState([]),k=(0,d.useStableCallback)(e=>{r.set("positionReference",e)}),x=(0,d.useStableCallback)((e,t,n)=>{if(!m.current&&(!g.current.openEvent||f(g.current.openEvent))){var o,i;let s,u,d;r.set("positionReference",(o=n??l,i={x:e,y:t,axis:a,dataRef:g,pointerType:w},s=null,u=null,d=!1,{contextElement:o||void 0,getBoundingClientRect(){let e=o?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},t="x"===i.axis||"both"===i.axis,n="y"===i.axis||"both"===i.axis,a=["mouseenter","mousemove"].includes(i.dataRef.current.openEvent?.type||"")&&"touch"!==i.pointerType,r=e.width,l=e.height,c=e.x,p=e.y;return null==s&&i.x&&t&&(s=e.x-i.x),null==u&&i.y&&n&&(u=e.y-i.y),c-=s||0,p-=u||0,r=0,l=0,!d||a?(r="y"===i.axis?e.width:0,l="x"===i.axis?e.height:0,c=t&&null!=i.x?i.x:c,p=n&&null!=i.y?i.y:p):d&&!a&&(l="x"===i.axis?e.height:l,r="y"===i.axis?e.width:r),d=!0,{width:r,height:l,x:c,y:p,top:p,right:c+r,bottom:p+l,left:c}}}))}}),P=(0,d.useStableCallback)(e=>{i?y.current||(x(e.clientX,e.clientY,e.currentTarget),S([])):x(e.clientX,e.clientY,e.currentTarget)}),C=(0,h.isMouseLikePointerType)(w)?s:i;n.useEffect(()=>{if(!o)return void k(l);if(!C)return;function e(){y.current?.(),y.current=null}let t=(0,c.getWindow)(s);return!g.current.openEvent||f(g.current.openEvent)?y.current=(0,u.addEventListener)(t,"mousemove",function(t){let n=(0,p.getTarget)(t);(0,p.contains)(s,n)?e():x(t.clientX,t.clientY)}):k(l),e},[C,o,s,g,l,r,x,k,b]),n.useEffect(()=>()=>{r.set("positionReference",null)},[r]),n.useEffect(()=>{o&&!s&&(m.current=!1)},[o,s]),n.useEffect(()=>{!o&&i&&(m.current=!0)},[o,i]);let R=n.useMemo(()=>{function e(e){v(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:P,onMouseEnter:P}},[P]);return n.useMemo(()=>o?{reference:R,trigger:R}:{},[o,R])}(r,{enabled:!t&&"none"!==o,axis:"none"===o?void 0:o}),l=n.useMemo(()=>(0,w.mergeProps)(s.reference,i.reference),[s.reference,i.reference]);return(0,y.usePopupInteractionProps)(e,{activeTriggerProps:l,inactiveTriggerProps:l,popupProps:i.floating??a.EMPTY_OBJECT}),null}var A=e.i(439957),I=e.i(446265),M=e.i(879938),L=e.i(552245),D=e.i(459636),N=e.i(788015);let j=n.createContext(void 0);var H=e.i(650316),_=e.i(944681);let B=n.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new A.Timeout,currentIdRef:{current:null},currentContextRef:{current:null}});function K(e){let{children:o,delay:a,timeoutMs:i=0}=e,s=n.useRef(a),l=n.useRef(a),u=n.useRef(null),d=n.useRef(null),c=(0,A.useTimeout)();return(0,r.useIsoLayoutEffect)(()=>{if(l.current=a,!u.current){s.current=a;return}s.current={open:(0,_.getDelay)(s.current,"open"),close:(0,_.getDelay)(a,"close")}},[a,u,s,l]),(0,t.jsx)(B.Provider,{value:n.useMemo(()=>({hasProvider:!0,delayRef:s,initialDelayRef:l,currentIdRef:u,timeoutMs:i,currentContextRef:d,timeout:c}),[i,c]),children:o})}var F=e.i(413082),z=e.i(872135),W=e.i(673752),U=e.i(322846);let V="data-base-ui-tooltip-trigger";function $(e){if("composedPath"in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if((0,c.isElement)(n))return n}}let t=e.target;return(0,c.isElement)(t)?t:null}let q=(0,o.fastComponentRef)(function(e,t){let{render:o,className:a,style:s,handle:u,payload:d,disabled:f,delay:g,closeOnClick:w=!0,closeDelay:v,id:S,...k}=e,x=l(!0),P=(0,D.usePopupHandleStore)(u)??x;if(!P)throw Error((0,i.default)(82));let C=(0,N.useBaseUiId)(S),R=P.useState("isTriggerActive",C),T=P.useState("isOpenedByTrigger",C),O=P.useState("floatingRootContext"),E=n.useRef(null),K=v??0,{registerTrigger:q,isMountedByThisTrigger:Y}=(0,y.useTriggerDataForwarding)(C,E,P,{payload:d,closeOnClick:w,closeDelay:K}),X=n.useContext(j),{activeIdRef:G,delayRef:J,isInstantPhase:Q,hasProvider:Z}=function(e,t={open:!1}){let{open:o}=t,a="rootStore"in e?e.rootStore:e,i=a.useState("floatingId"),{currentIdRef:s,delayRef:l,timeoutMs:u,initialDelayRef:d,currentContextRef:c,hasProvider:p,timeout:h}=n.useContext(B),[f,g]=n.useState(!1),y=n.useRef(o);return(0,r.useIsoLayoutEffect)(()=>{y.current=o},[o]),(0,r.useIsoLayoutEffect)(()=>{function e(){c.current?.setIsInstantPhase(!1),s.current=null,c.current=null,l.current=d.current,h.clear()}if(s.current&&!o&&s.current===i){if(g(!1),u)return h.start(u,()=>{a.select("open")||s.current&&s.current!==i||e()}),()=>{(y.current||s.current!==i)&&h.clear()};e()}},[o,i,s,l,u,d,c,h,a]),(0,r.useIsoLayoutEffect)(()=>{if(!o)return;let e=c.current,t=s.current;h.clear(),c.current={onOpenChange:a.setOpen,setIsInstantPhase:g},s.current=i,l.current={open:0,close:(0,_.getDelay)(d.current,"close")},null!==t&&t!==i?(g(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,(0,m.createChangeEventDetails)(b.REASONS.none))):(g(!1),e?.setIsInstantPhase(!1))},[o,i,a,s,l,d,c,h]),(0,r.useIsoLayoutEffect)(()=>()=>{s.current===i&&(c.current=null,y.current)&&(s.current=null,l.current=d.current,h.clear())},[c,s,l,i,d,h]),n.useMemo(()=>({activeIdRef:s,hasProvider:p,delayRef:l,isInstantPhase:f}),[s,p,l,f])}(O,{open:T}),ee=(0,W.useHoverInteractionSharedState)(O);P.useSyncedValue("isInstantPhase",Q);let et=P.useState("disabled"),en=f??et,eo=(0,I.useValueAsRef)(en),ea=P.useState("trackCursorAxis"),er=P.useState("disableHoverablePopup"),ei=n.useRef(!1),es=(0,A.useTimeout)(),el=n.useRef(void 0);function eu(){return Z&&null!=G.current?0:g??X??600}function ed(e){let t=E.current;if(!t||!e)return!1;let n=function(e){let t=e;for(;t;){let e=t.closest(`[${V}]`);if(e)return e;let n=t.getRootNode();t="host"in n&&(0,c.isElement)(n.host)?n.host:null}return null}(e);return null!==n&&n!==t&&(0,p.contains)(t,n)}let ec=(0,z.useHoverReferenceInteraction)(O,{enabled:!en,mouseOnly:!0,move:!1,handleClose:er||"both"===ea?null:(0,H.safePolygon)(),restMs:eu,delay:()=>null==v&&Z?{close:(0,_.getDelay)(J.current,"close")}:{close:K},triggerElementRef:E,isActiveTrigger:R,isClosing:()=>"ending"===P.select("transitionStatus"),shouldOpen:()=>!ei.current}),ep=(0,F.useFocus)(O,{enabled:!en}).reference,eh=P.useState("triggerProps",Y),ef=Y||"none"!==ea;return(0,L.useRenderElement)("button",e,{state:{open:T},ref:[t,q,E],props:[ec,ep,ef?eh:void 0,{onMouseOver(e){(e=>{let t,n=ei.current,o=$(e),a=(ei.current=t=ed(o),t&&(ee.openChangeTimeout.clear(),ee.restTimeout.clear(),ee.restTimeoutPending=!1,es.clear()),t),r=E.current,i=r&&o&&(0,p.contains)(r,o);if(a&&P.select("open")&&P.select("lastOpenChangeReason")===b.REASONS.triggerHover)return P.setOpen(!1,(0,m.createChangeEventDetails)(b.REASONS.triggerHover,e));if(n&&!a&&i&&!eo.current&&!P.select("open")&&r&&(0,h.isMouseLikePointerType)(el.current)){let t=()=>{ei.current||eo.current||P.select("open")||P.setOpen(!0,(0,m.createChangeEventDetails)(b.REASONS.triggerHover,e,r))},n=eu();0===n?(es.clear(),t()):es.start(n,t)}})(e.nativeEvent)},onFocus(e){ed($(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){ei.current=!1,es.clear(),el.current=void 0},onPointerEnter(e){el.current=e.pointerType},onPointerDown(e){el.current=e.pointerType,P.set("closeOnClick",w),w&&!P.select("open")&&P.cancelPendingOpen(e.nativeEvent)},onClick(e){w&&!P.select("open")&&P.cancelPendingOpen(e.nativeEvent)},id:C,[U.triggerDisabled]:en?"":void 0,[V]:en?void 0:""},k],stateAttributesMapping:M.triggerOpenStateMapping})}),Y=n.createContext(void 0);var X=e.i(378680);let G=n.forwardRef(function(e,n){let{keepMounted:o=!1,...a}=e;return l().useState("mounted")||o?(0,t.jsx)(Y.Provider,{value:o,children:(0,t.jsx)(X.FloatingPortalLite,{ref:n,...a})}):null}),J=n.createContext(void 0);function Q(){let e=n.useContext(J);if(void 0===e)throw Error((0,i.default)(71));return e}var Z=e.i(923706),ee=e.i(638396),et=e.i(789579);let en=n.forwardRef(function(e,o){let{render:a,className:r,anchor:s,positionMethod:u="absolute",side:d="top",align:c="center",sideOffset:p=0,alignOffset:h=0,collisionBoundary:f="clipping-ancestors",collisionPadding:g=5,arrowPadding:m=5,sticky:y=!1,disableAnchorTracking:w=!1,collisionAvoidance:v=ee.POPUP_COLLISION_AVOIDANCE,style:b,...S}=e,k=l(),x=function(){let e=n.useContext(Y);if(void 0===e)throw Error((0,i.default)(70));return e}(),P=k.useState("open"),C=k.useState("mounted"),R=k.useState("trackCursorAxis"),T=k.useState("disableHoverablePopup"),O=k.useState("floatingRootContext"),E=k.useState("instantType"),A=k.useState("transitionStatus"),I=k.useState("adaptiveOrigin"),M=(0,Z.useAnchorPositioning)({anchor:s,positionMethod:u,floatingRootContext:O,mounted:C,side:d,sideOffset:p,align:c,alignOffset:h,collisionBoundary:f,collisionPadding:g,sticky:y,arrowPadding:m,disableAnchorTracking:w,keepMounted:x,collisionAvoidance:v,adaptiveOrigin:I}),L=n.useMemo(()=>({open:P,side:M.side,align:M.align,anchorHidden:M.anchorHidden,instant:"none"!==R?"tracking-cursor":E}),[P,M.side,M.align,M.anchorHidden,R,E]),D=(0,et.usePositioner)(e,L,{styles:M.positionerStyles,transitionStatus:A,props:S,refs:[o,k.useStateSetter("positionerElement")],hidden:!C,inert:!P||"both"===R||T});return(0,t.jsx)(J.Provider,{value:M,children:D})});var eo=e.i(137584),ea=e.i(253984),er=e.i(431157);let ei=n.forwardRef(function(e,t){let{render:n,className:o,style:a,...r}=e,i=l(),{side:s,align:u}=Q(),d=i.useState("open"),c=i.useState("instantType"),p=i.useState("transitionStatus"),h=i.useState("popupProps"),f=i.useState("floatingRootContext"),g=i.useState("disabled"),m=i.useState("closeDelay");(0,eo.useOpenChangeComplete)({open:d,ref:i.context.popupRef,onComplete(){d&&i.context.onOpenChangeComplete?.(!0)}}),(0,er.useHoverFloatingInteraction)(f,{enabled:!g,closeDelay:m});let w=i.useStateSetter("popupElement");return(0,L.useRenderElement)("div",e,{state:{open:d,side:s,align:u,instant:c,transitionStatus:p},ref:[t,i.context.popupRef,w],props:[y.FOCUSABLE_POPUP_PROPS,h,(0,ea.getDisabledMountTransitionStyles)(p),r],stateAttributesMapping:M.popupTransitionStateMapping})}),es=n.forwardRef(function(e,t){let{render:n,className:o,style:a,...r}=e,i=l(),{arrowRef:s,side:u,align:d,arrowUncentered:c,arrowStyles:p}=Q(),h=i.useState("open"),f=i.useState("instantType");return(0,L.useRenderElement)("div",e,{state:{open:h,side:u,align:d,uncentered:c,instant:f},ref:[t,s],props:[{style:p,"aria-hidden":!0},r],stateAttributesMapping:M.popupStateMapping})});var el=e.i(818390);let eu=n.forwardRef(function(e,t){let{render:n,className:o,style:a,children:r,...i}=e,s=l(),u=Q(),d=s.useState("instantType"),{children:c,state:p}=(0,el.usePopupViewport)({store:s,side:u.side,children:r}),h={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:d};return(0,L.useRenderElement)("div",e,{state:h,ref:t,props:[i,{children:c}],stateAttributesMapping:el.popupViewportStateMapping})});var ed=e.i(564170);class ec extends ed.BasePopupHandle{constructor(){super(function(){let e=new x.PopupTriggerMap;return Object.assign(new S.NullStore(Object.freeze(R(void 0,e)),Object.freeze(T(e)),P),{setOpen:a.NOOP,cancelPendingOpen:a.NOOP})}(),"Tooltip")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",0,es,"Handle",0,ec,"Popup",0,ei,"Portal",0,G,"Positioner",0,en,"Provider",0,function(e){let{delay:o,closeDelay:a,timeout:r=400}=e,i=n.useMemo(()=>({open:o,close:a}),[o,a]);return(0,t.jsx)(j.Provider,{value:o,children:(0,t.jsx)(K,{delay:i,timeoutMs:r,children:e.children})})},"Root",0,O,"Trigger",0,q,"Viewport",0,eu,"createHandle",0,function(){return new ec}],599643);var ep=e.i(599643),ep=ep,eh=e.i(647163);e.s(["Tooltip",0,function({...e}){return(0,t.jsx)(ep.Root,{"data-slot":"tooltip",...e})},"TooltipContent",0,function({className:e,side:n="top",sideOffset:o=4,align:a="center",alignOffset:r=0,children:i,...s}){return(0,t.jsx)(ep.Portal,{children:(0,t.jsx)(ep.Positioner,{align:a,alignOffset:r,side:n,sideOffset:o,className:"isolate z-50",children:(0,t.jsxs)(ep.Popup,{"data-slot":"tooltip-content",className:(0,eh.cn)("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[i,(0,t.jsx)(ep.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})},"TooltipProvider",0,function({delay:e=0,...n}){return(0,t.jsx)(ep.Provider,{"data-slot":"tooltip-provider",delay:e,...n})},"TooltipTrigger",0,function({...e}){return(0,t.jsx)(ep.Trigger,{"data-slot":"tooltip-trigger",...e})}],728231)},463625,e=>{"use strict";var t=e.i(41533),n=e.i(213377),o=e.i(451888),a=e.i(864723);let r="Concierge",i=[{name:o.DEFAULT_BOT.name,description:o.DEFAULT_BOT.description,hint:"Takes whatever nobody else is for",systemPrompt:"",icon:o.DEFAULT_BOT_ICON},{name:"Analyst",description:"Finds out and answers with sources — what things cost, how numbers moved, which one to pick",hint:"Finds out, cites, and lays it out",icon:{color:a.MARK_INK.violet,shape:"squircle"},systemPrompt:`Questions answered by finding out are yours — what something costs, how a figure moved and why, which to pick, whether to buy now or wait — and the answer is only as good as where it came from.
|
|
2
|
+
|
|
3
|
+
**Answer first.** Whoever asked reads your first lines and may stop there, so they hold the answer and the two or three facts behind it. A title says the finding, not the topic. A few facts are your final text and nothing more; more than that is one page in your folder under \`artifacts/\`, every figure with where it came from — or a sheet, when the figures are their own to keep and go on with.
|
|
4
|
+
|
|
5
|
+
**From the source, never from memory.** A number comes from where it is published, a claim from the text that makes it, with the moment it is said; two sources that disagree, a figure you could not confirm, a page you could not read are said beside the answer, not smoothed over. A number you derive shows its arithmetic; an estimate is a range.
|
|
6
|
+
|
|
7
|
+
**What you keep.** The currency they think in, the sources they trust, what they already own and are weighing — dated, so the next job starts from it.`},{name:"Curator",description:"Keeps them up to date — a morning news brief, a video, podcast, talk or article summed up",hint:"Brings what is worth their time",icon:{color:a.MARK_INK.emerald,shape:"blob"},systemPrompt:`Keeping up is yours — the brief on the topics they follow, and anything long they point you at, a video, a podcast, a talk, an article, a PDF, handed back short — so they spend minutes on what would take them an hour.
|
|
8
|
+
|
|
9
|
+
**Their time is the point.** Lead with what changed and what matters to them; cut what they would skip. Every point links to where it is said: a story to its publisher, a moment to its timestamp.
|
|
10
|
+
|
|
11
|
+
**Never from memory.** A headline, a quote, a figure comes from the page or the transcript you read, with when. A story you could not open, or a video with no words to read, is said, not summed up from its title.
|
|
12
|
+
|
|
13
|
+
**What you keep.** The topics they follow and the ones they skip, the sources they trust, how long a brief they read and in which language — dated, so the next brief starts from it.`},{name:r,description:"Handles trips and errands — flights, stays, bookings, orders and forms, up to the step that pays",hint:"Takes errands to the last step",icon:{color:a.MARK_INK.sky,shape:"poly"},systemPrompt:`Trips and errands out in the world are yours — a trip planned day by day, flights and stays found and compared, a booking, an order, a reservation, a form filled — each taken as far as it goes before the step that pays or signs, which is theirs. A trip has a skill of your own, \`${t.TRAVEL_SKILL}\`: load it before any step of one.
|
|
14
|
+
|
|
15
|
+
**Real prices, real dates.** A fare, a price, an opening time comes from the page you read, with when; one you could not reach is said, never guessed. Finding them is part of the errand and yours, not a question to hand on. A choice they make by looking — a room, a place, a thing to buy — comes with its picture.
|
|
16
|
+
|
|
17
|
+
**Ready to act.** The answer says what is waiting for them, where, and what it costs, so the one step left is theirs.
|
|
18
|
+
|
|
19
|
+
**What you keep.** Where they travel from and with whom, the seats and rooms they like, the programs they collect with, where things are sent — dated, so the next errand starts from it.`},{name:"Designer",description:"Makes what gets looked at — design options side by side, slide decks, posters and posts at size",hint:"Draws the options to pick from",icon:{paint:"rainbow",shape:"heart"},systemPrompt:`Anything that has to be looked at is yours — a screen or a page to choose between, a deck to present, a post at the size it will be shown, a poster, a document someone reads. You build it in \`${t.ARTIFACT_SKILL}\` (a canvas of options side by side or anything at its exact size, a document, a picture book): load it before any step. It starts from ready boards and outlines and shoots what you made itself; writing the HTML from nothing instead costs you those and the check. A deck is \`${n.TOOL_NAMES.make_deck}\`, which draws its slides and shoots them itself; a page someone uses rather than reads — a tool, a small app — is in \`${t.ARTIFACT_SKILL}\` too, with steps of its own.
|
|
20
|
+
|
|
21
|
+
**Offer a real choice.** Two to four options, each exploring an axis you can name — everything at once against one thing at a time, dense against roomy — never five shades of one. Every option gets an honest case and the thing it costs; mark the one you would carry forward. Once an option is B it stays B, whatever is dropped before it.
|
|
22
|
+
|
|
23
|
+
**Root it in what is already there.** When the job names something that exists — a product, a site, its code, a brand, a file you were given — read it first and lift its exact colours, type, spacing and control sizes rather than inventing a look; say in one line what you matched. A screen you cannot open is asked for as a picture.
|
|
24
|
+
|
|
25
|
+
**The pictures are how you check your own work.** Look at what was shot, fix what the renderer refuses or the canvas marks as cut, shoot once more: two rounds at most.
|
|
26
|
+
|
|
27
|
+
**What you keep.** The brand's colours, type and spacing, and the direction they chose, so the next thing you draw starts from it.`},{name:"Tutor",description:"Explains anything simply as a picture book — a picture and a line or two a page, read aloud if asked",hint:"Explains anything like a picture book",icon:{color:a.MARK_INK.yellow,shape:"blob"},systemPrompt:`Explaining is yours — anything someone wants to understand, told so that a person who knows nothing about it follows every step. It ends as a picture book, made with \`${t.ARTIFACT_SKILL}\`, in your folder under \`artifacts/\`: one picture and a line or two a page, as a page to swipe through. A PDF or a video that reads itself aloud is made from the same book when they ask for one; a request that does not say is a page to swipe through, not a question.
|
|
28
|
+
|
|
29
|
+
**Simple, never wrong.** Read what you explain from where it is stated before the first page. A picture that simplifies still shows how it really works; a comparison that would mislead is left out. A new word comes after the picture that shows it, never before.
|
|
30
|
+
|
|
31
|
+
**What you keep.** What the user already knows and how they liked being taught — the level, a picture style, how many pages — dated, so the next book starts where they are.`},{name:"Marketer",description:"Marketing — positioning, page copy, launch plans, social posts, emails, an SEO audit",hint:"Works out what to say, to whom, and where",icon:{color:a.MARK_INK.red,shape:"poly"},systemPrompt:`Marketing work is yours — positioning, page copy, a launch plan, social posts, emails, an SEO audit — and it ends as the thing itself in your folder under \`artifacts/\`, ready to paste, post or send. \`${t.MARKETING_SKILL}\` is your own skill and holds the method for each of them: load it before any step.
|
|
32
|
+
|
|
33
|
+
**Ground every claim.** Competitors, prices, search terms and what people say about the problem come from pages you opened, with the link beside them. What you could not check is marked as a guess.
|
|
34
|
+
|
|
35
|
+
**What you keep.** One brief per product — what it is, for whom, against what, in which voice — dated, and every later job starts from it.`}];e.s(["BOT_SEEDS",0,i,"ERRANDS_BOT",0,r,"findBotSeed",0,e=>i.find(t=>t.name===e)??null])},90244,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7f5adc0951d70e2678010e26b172eb8a218228a3df",t.callServer,void 0,t.findSourceMapURL,"createSeedBotsAction");e.s(["createSeedBotsAction",0,n])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,107941,e=>{"use strict";var t=e.i(843476),n=e.i(24071),i=e.i(867927),s=e.i(482022),r=e.i(829600),a=e.i(456420);let o={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};o.node;let l=(0,a.default)(o);var d=e.i(905015),c=e.i(226091),u=e.i(726067),m=e.i(569644),f=e.i(815170),x=e.i(51921);let h={name:"sheet",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]};h.node;let p=(0,a.default)(h);var g=e.i(759659),v=e.i(438583),y=e.i(271645),k=e.i(798120),j=e.i(167881),b=e.i(917162),S=e.i(41533),w=e.i(895836),N=e.i(621285),A=e.i(125740),F=e.i(95187);let C=(0,F.createServerReference)("7f9f13c0736fd96048021c33f7bad4d5dff7852dd3",F.callServer,void 0,F.findSourceMapURL,"emptyScratchAction");var P=e.i(201830),$=e.i(245629),R=e.i(609856),z=e.i(283653),E=e.i(647163);let T={markdown:c.FileText,csv:p,json:d.FileJson,text:c.FileText,frame:l,image:f.Image,audio:x.Music,video:v.Video,none:r.File};function M({label:e,rows:n,children:i}){return 0===n.length?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"px-3 pt-3 pb-1 font-mono text-[10px] text-muted-foreground/60",children:e}),i]})}function W({entry:e,active:n,onPick:s}){let r="dir"===e.kind?u.Folder:T[e.view];return(0,t.jsxs)("button",{type:"button",onClick:s,title:"file"===e.kind?`${e.name} \xb7 ${(0,$.shortAgo)(e.at)}`:e.name,className:(0,E.cn)("mx-2 flex items-center gap-2 rounded-md px-2 py-1.5 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",n?(0,E.cn)(w.PICKED_ROW,"font-medium"):"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,t.jsx)(r,{className:"size-3.5 shrink-0 opacity-70"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),"file"===e.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/75",children:(0,E.formatBytes)(e.bytes)}),(0,t.jsx)("span",{className:"w-3.5 shrink-0"})]}):(0,t.jsx)(i.ChevronRight,{className:"size-3.5 shrink-0 text-muted-foreground/50"})]})}function O({empty:e}){return(0,t.jsx)("div",{className:"space-y-4 p-8",children:e?(0,t.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:["Nothing here yet. What a bot writes during a call lands in"," ",(0,t.jsxs)("span",{className:"font-mono text-[13px] text-foreground",children:[S.PATHS.artifacts,"/"]})," ","— a page, a table, a picture — and shows up here to open."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"Pick a file on the left."}),(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:"Only what the app can open is listed — a page, a table, a picture, a note. Installed packages and tool leftovers are left out, and no folder is measured, so a folder opens as fast as it lists. Reveal folder, at the foot, opens everything else."})]})})}function K({file:e,onGone:n}){let i=e.path,[r]=(0,R.useServerAction)(P.revealFileAction),[a,o]=(0,R.useServerAction)(A.deleteWorkspaceFileAction,{okMessage:"File deleted",onOk:()=>{(0,z.revalidate)(k.queryKey.workspace),n()}}),l=async()=>{await b.notify.confirm({title:`Delete ${i.split("/").pop()}?`,description:"It is deleted from disk for good.",okText:"Delete",destructive:!0})&&a(i)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-b border-border/60 px-6 py-2",children:[(0,t.jsx)(B,{path:i}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:[(0,E.formatBytes)(e.bytes)," · ",(0,$.shortAgo)(e.at)]}),(0,t.jsx)("a",{href:k.queryKey.fileView(i),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(s.ExternalLink,{className:"size-4"})}),(0,t.jsx)(j.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>r(i),children:(0,t.jsx)(m.FolderOpen,{})}),(0,t.jsx)(j.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:o,className:"text-muted-foreground",onClick:l,children:(0,t.jsx)(g.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:(0,t.jsx)(N.FilePreview,{path:i,bytes:e.bytes})})]})}function B({path:e}){let n=["workspace",...e.split("/").filter(Boolean)];return(0,t.jsx)("span",{className:"flex min-w-0 flex-1 items-center gap-1 font-mono text-[11px] text-muted-foreground",children:n.map((e,s)=>(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[s>0&&(0,t.jsx)(i.ChevronRight,{className:"size-3 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:(0,E.cn)("truncate",s===n.length-1&&"text-foreground"),children:e})]},`${s}-${e}`))})}e.s(["WorkspaceSetting",0,function(){let[e,i]=(0,y.useState)(""),[s,r]=(0,y.useState)(S.WORKSPACE_VIEW.rows),[a,o]=(0,y.useState)(null),[l,d]=(0,y.useState)(""),{data:c,isLoading:u,error:f}=(0,z.useServerRoute)(k.queryKey.workspaceFolder(e,s),{keepPreviousData:!0}),x=e=>{i(e),r(S.WORKSPACE_VIEW.rows)},[h,p]=(0,R.useServerAction)(C,{okMessage:"Scratch emptied",onOk:()=>(0,z.revalidate)(k.queryKey.workspace)}),[g]=(0,R.useServerAction)(P.revealFileAction),v=async()=>{await b.notify.confirm({title:"Empty scratch?",description:`Everything under ${S.PATHS.scratch}/ is deleted for good. ${S.PATHS.artifacts}/ and ${S.PATHS.projects}/ are untouched.`,okText:"Empty",destructive:!0})&&h()};if(u)return(0,t.jsx)(w.SettingPanesSkeleton,{});if(f)return(0,t.jsx)(w.SettingError,{message:f.message});let N=c?.entries??[],A=c?.total??0,F=l.trim().toLowerCase(),$=F?N.filter(e=>e.name.toLowerCase().includes(F)):N,E=$.filter(e=>"dir"===e.kind),T=$.filter(e=>"file"===e.kind),B=""!==e||N.some(e=>"dir"===e.kind&&e.name===S.PATHS.scratch),V=N.find(e=>"file"===e.kind&&e.path===a?.path)??a;return(0,t.jsx)(w.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:`${S.PATHS.workspace}${e?`/${e}`:""}`}),` \xb7 ${function(e,t){let n=e.filter(e=>"dir"===e.kind).length,i=e.length-n,s=[n&&`${n} ${1===n?"folder":"folders"}`,i&&`${i} ${1===i?"file":"files"}`].filter(Boolean);if(!s.length)return"empty";let r=s.join(" · ");return t>e.length?`${r} of ${t.toLocaleString("en")}`:r}(N,A)}`]})}),(0,t.jsxs)(j.Button,{variant:"outline",size:"sm",onClick:()=>g(e||"."),children:[(0,t.jsx)(m.FolderOpen,{}),"Reveal folder"]}),B&&(0,t.jsx)(j.Button,{variant:"outline",size:"sm",loading:p,onClick:v,className:"text-destructive hover:text-destructive",children:"Empty scratch"})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(w.SettingFilter,{value:l,onChange:d,placeholder:"Filter this folder",className:"mx-2 mb-1.5 w-auto"}),e&&(0,t.jsxs)("button",{type:"button",onClick:()=>x(e.split("/").slice(0,-1).join("/")),className:"mx-2 mb-1 flex items-center gap-1 rounded-md px-2 py-1 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)(n.ChevronLeft,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.split("/").slice(0,-1).pop()??"workspace"})]}),0===$.length?(0,t.jsx)("p",{className:"px-4 py-3 text-xs text-muted-foreground/60",children:F?"Nothing matches":"Empty folder"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M,{label:"folders",rows:E,children:E.map(e=>(0,t.jsx)(W,{entry:e,onPick:()=>x(e.path)},e.path))}),(0,t.jsx)(M,{label:"files",rows:T,children:T.map(e=>(0,t.jsx)(W,{entry:e,active:e.path===a?.path,onPick:()=>"file"===e.kind&&o(e)},e.path))})]}),A>N.length&&(0,t.jsx)("button",{type:"button",onClick:()=>r(s+S.WORKSPACE_VIEW.rows),className:"mx-2 mt-2 rounded-md px-2 py-1.5 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:`Show ${Math.min(S.WORKSPACE_VIEW.rows,A-N.length)} more of ${A.toLocaleString("en")}`})]}),right:V?.kind==="file"?(0,t.jsx)(K,{file:V,onGone:()=>o(null)},V.path):(0,t.jsx)(O,{empty:!e&&0===N.length})})}],107941)},125740,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7fa31daf369b37a1ff41ebd3e394698f03ca2c7c7f",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,n])},726067,e=>{"use strict";var t=e.i(456420);let n={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};n.node;let i=(0,t.default)(n);e.s(["Folder",0,i],726067)},759659,e=>{"use strict";var t=e.i(456420);let n={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};n.node;let i=(0,t.default)(n);e.s(["Trash2",0,i],759659)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,107941,e=>{"use strict";var t=e.i(843476),n=e.i(24071),i=e.i(867927),s=e.i(482022),r=e.i(829600),a=e.i(456420);let o={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};o.node;let l=(0,a.default)(o);var d=e.i(905015),c=e.i(226091),u=e.i(726067),m=e.i(569644),x=e.i(815170),h=e.i(51921);let f={name:"sheet",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]};f.node;let p=(0,a.default)(f);var g=e.i(759659),v=e.i(438583),y=e.i(271645),k=e.i(798120),j=e.i(167881),b=e.i(917162),S=e.i(41533),w=e.i(895836),N=e.i(621285),A=e.i(761709),F=e.i(95187);let C=(0,F.createServerReference)("7f117143e1d71ef4df335980373f5c51e6bc95c888",F.callServer,void 0,F.findSourceMapURL,"emptyScratchAction");var P=e.i(480975),$=e.i(245629),R=e.i(609856),z=e.i(283653),E=e.i(647163);let T={markdown:c.FileText,csv:p,json:d.FileJson,text:c.FileText,frame:l,image:x.Image,audio:h.Music,video:v.Video,none:r.File};function M({label:e,rows:n,children:i}){return 0===n.length?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"px-3 pt-3 pb-1 font-mono text-[10px] text-muted-foreground/60",children:e}),i]})}function W({entry:e,active:n,onPick:s}){let r="dir"===e.kind?u.Folder:T[e.view];return(0,t.jsxs)("button",{type:"button",onClick:s,title:"file"===e.kind?`${e.name} \xb7 ${(0,$.shortAgo)(e.at)}`:e.name,className:(0,E.cn)("mx-2 flex items-center gap-2 rounded-md px-2 py-1.5 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",n?(0,E.cn)(w.PICKED_ROW,"font-medium"):"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,t.jsx)(r,{className:"size-3.5 shrink-0 opacity-70"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),"file"===e.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/75",children:(0,E.formatBytes)(e.bytes)}),(0,t.jsx)("span",{className:"w-3.5 shrink-0"})]}):(0,t.jsx)(i.ChevronRight,{className:"size-3.5 shrink-0 text-muted-foreground/50"})]})}function O({empty:e}){return(0,t.jsx)("div",{className:"space-y-4 p-8",children:e?(0,t.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:["Nothing here yet. What a bot writes during a call lands in"," ",(0,t.jsxs)("span",{className:"font-mono text-[13px] text-foreground",children:[S.PATHS.artifacts,"/"]})," ","— a page, a table, a picture — and shows up here to open."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"Pick a file on the left."}),(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:"Only what the app can open is listed — a page, a table, a picture, a note. Installed packages and tool leftovers are left out, and no folder is measured, so a folder opens as fast as it lists. Reveal folder, at the foot, opens everything else."})]})})}function K({file:e,onGone:n}){let i=e.path,[r]=(0,R.useServerAction)(P.revealFileAction),[a,o]=(0,R.useServerAction)(A.deleteWorkspaceFileAction,{okMessage:"File deleted",onOk:()=>{(0,z.revalidate)(k.queryKey.workspace),n()}}),l=async()=>{await b.notify.confirm({title:`Delete ${i.split("/").pop()}?`,description:"It is deleted from disk for good.",okText:"Delete",destructive:!0})&&a(i)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-b border-border/60 px-6 py-2",children:[(0,t.jsx)(B,{path:i}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:[(0,E.formatBytes)(e.bytes)," · ",(0,$.shortAgo)(e.at)]}),(0,t.jsx)("a",{href:k.queryKey.fileView(i),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(s.ExternalLink,{className:"size-4"})}),(0,t.jsx)(j.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>r(i),children:(0,t.jsx)(m.FolderOpen,{})}),(0,t.jsx)(j.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:o,className:"text-muted-foreground",onClick:l,children:(0,t.jsx)(g.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:(0,t.jsx)(N.FilePreview,{path:i,bytes:e.bytes})})]})}function B({path:e}){let n=["workspace",...e.split("/").filter(Boolean)];return(0,t.jsx)("span",{className:"flex min-w-0 flex-1 items-center gap-1 font-mono text-[11px] text-muted-foreground",children:n.map((e,s)=>(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[s>0&&(0,t.jsx)(i.ChevronRight,{className:"size-3 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:(0,E.cn)("truncate",s===n.length-1&&"text-foreground"),children:e})]},`${s}-${e}`))})}e.s(["WorkspaceSetting",0,function(){let[e,i]=(0,y.useState)(""),[s,r]=(0,y.useState)(S.WORKSPACE_VIEW.rows),[a,o]=(0,y.useState)(null),[l,d]=(0,y.useState)(""),{data:c,isLoading:u,error:x}=(0,z.useServerRoute)(k.queryKey.workspaceFolder(e,s),{keepPreviousData:!0}),h=e=>{i(e),r(S.WORKSPACE_VIEW.rows)},[f,p]=(0,R.useServerAction)(C,{okMessage:"Scratch emptied",onOk:()=>(0,z.revalidate)(k.queryKey.workspace)}),[g]=(0,R.useServerAction)(P.revealFileAction),v=async()=>{await b.notify.confirm({title:"Empty scratch?",description:`Everything under ${S.PATHS.scratch}/ is deleted for good. ${S.PATHS.artifacts}/ and ${S.PATHS.projects}/ are untouched.`,okText:"Empty",destructive:!0})&&f()};if(u)return(0,t.jsx)(w.SettingPanesSkeleton,{});if(x)return(0,t.jsx)(w.SettingError,{message:x.message});let N=c?.entries??[],A=c?.total??0,F=l.trim().toLowerCase(),$=F?N.filter(e=>e.name.toLowerCase().includes(F)):N,E=$.filter(e=>"dir"===e.kind),T=$.filter(e=>"file"===e.kind),B=""!==e||N.some(e=>"dir"===e.kind&&e.name===S.PATHS.scratch),V=N.find(e=>"file"===e.kind&&e.path===a?.path)??a;return(0,t.jsx)(w.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:`${S.PATHS.workspace}${e?`/${e}`:""}`}),` \xb7 ${function(e,t){let n=e.filter(e=>"dir"===e.kind).length,i=e.length-n,s=[n&&`${n} ${1===n?"folder":"folders"}`,i&&`${i} ${1===i?"file":"files"}`].filter(Boolean);if(!s.length)return"empty";let r=s.join(" · ");return t>e.length?`${r} of ${t.toLocaleString("en")}`:r}(N,A)}`]})}),(0,t.jsxs)(j.Button,{variant:"outline",size:"sm",onClick:()=>g(e||"."),children:[(0,t.jsx)(m.FolderOpen,{}),"Reveal folder"]}),B&&(0,t.jsx)(j.Button,{variant:"outline",size:"sm",loading:p,onClick:v,className:"text-destructive hover:text-destructive",children:"Empty scratch"})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(w.SettingFilter,{value:l,onChange:d,placeholder:"Filter this folder",className:"mx-2 mb-1.5 w-auto"}),e&&(0,t.jsxs)("button",{type:"button",onClick:()=>h(e.split("/").slice(0,-1).join("/")),className:"mx-2 mb-1 flex items-center gap-1 rounded-md px-2 py-1 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)(n.ChevronLeft,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.split("/").slice(0,-1).pop()??"workspace"})]}),0===$.length?(0,t.jsx)("p",{className:"px-4 py-3 text-xs text-muted-foreground/60",children:F?"Nothing matches":"Empty folder"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M,{label:"folders",rows:E,children:E.map(e=>(0,t.jsx)(W,{entry:e,onPick:()=>h(e.path)},e.path))}),(0,t.jsx)(M,{label:"files",rows:T,children:T.map(e=>(0,t.jsx)(W,{entry:e,active:e.path===a?.path,onPick:()=>"file"===e.kind&&o(e)},e.path))})]}),A>N.length&&(0,t.jsx)("button",{type:"button",onClick:()=>r(s+S.WORKSPACE_VIEW.rows),className:"mx-2 mt-2 rounded-md px-2 py-1.5 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:`Show ${Math.min(S.WORKSPACE_VIEW.rows,A-N.length)} more of ${A.toLocaleString("en")}`})]}),right:V?.kind==="file"?(0,t.jsx)(K,{file:V,onGone:()=>o(null)},V.path):(0,t.jsx)(O,{empty:!e&&0===N.length})})}],107941)},761709,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7ffd6470380cab0591ee59221b19787592e2e2b9d3",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,n])},726067,e=>{"use strict";var t=e.i(456420);let n={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};n.node;let i=(0,t.default)(n);e.s(["Folder",0,i],726067)},759659,e=>{"use strict";var t=e.i(456420);let n={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};n.node;let i=(0,t.default)(n);e.s(["Trash2",0,i],759659)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94682,e=>{"use strict";var t=e.i(843476),n=e.i(24071),s=e.i(482022),r=e.i(569644),i=e.i(456420);let o={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]};o.node;let a=(0,i.default)(o);var l=e.i(759659),c=e.i(271645),d=e.i(798120),u=e.i(167881),h=e.i(917162),m=e.i(671428),f=e.i(41533),x=e.i(95187);let p=(0,x.createServerReference)("7f7a70497dec5a1a9b0b7346b054bdbbb692ebd112",x.callServer,void 0,x.findSourceMapURL,"deleteArtifactAction");var g=e.i(635963),b=e.i(853483),v=e.i(978411),j=e.i(895836),y=e.i(989409),k=e.i(83928),N=e.i(621285),S=e.i(480975),w=e.i(245629),A=e.i(609856),C=e.i(283653),T=e.i(647163);function $(e){let t=new Map;for(let n of e){let e=t.get(n.bot)??[];e.push(n),t.set(n.bot,e)}return[...t].map(([e,t])=>({bot:e,rows:t}))}function F({label:e,mark:n,count:s,active:r,onPick:i}){return(0,t.jsxs)("button",{type:"button",onClick:i,className:(0,T.cn)("mx-2 flex h-9 items-center gap-2 rounded-md px-2 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",r?(0,T.cn)(j.PICKED_ROW,"font-medium"):"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[n??(0,t.jsx)(a,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] text-muted-foreground/70 tabular-nums",children:s})]})}function z({row:e,file:i,onOpen:o,onBack:a,onGone:c,onShelf:m}){let[f]=(0,A.useServerAction)(S.revealFileAction),[x,g]=(0,A.useServerAction)(p,{okMessage:"Deleted",onOk:()=>{(0,C.revalidate)(d.queryKey.artifacts),i?a():c()}}),j=i?{path:i.path,bytes:i.bytes,at:i.at}:"file"===e.kind?{path:e.path,bytes:e.bytes,at:e.at}:null,{filed:k,note:$,failure:F,follow:R}=(0,b.useFileNote)(j?.path??null,null),M=e=>{y.useSettingsStore.getState().hide(),v.roomOpens.open(e)},P=async e=>{await h.notify.confirm({title:`Delete ${e.split("/").pop()}?`,description:j?"It is deleted from disk for good.":"The folder and everything in it are deleted from disk for good.",okText:"Delete",destructive:!0})&&x(e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-3 border-b border-border/60 px-6",children:[(0,t.jsxs)("button",{type:"button",onClick:i?a:m,className:"-ml-1 flex shrink-0 items-center gap-1 rounded-md px-1.5 py-1 font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(n.ChevronLeft,{className:"size-3"}),i?e.name:"Shelf"]}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-foreground",children:j?j.path.split("/").pop()??e.name:e.name}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:j?`${(0,T.formatBytes)(j.bytes)} \xb7 ${(0,w.shortAgo)(j.at)}`:`${e.count} ${1===e.count?"file":"files"} \xb7 ${(0,w.shortAgo)(e.at)}`}),k&&(0,t.jsx)(b.FileThreadChip,{note:$,onOpen:M}),j&&(0,t.jsx)("a",{href:d.queryKey.fileView(j.path),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(s.ExternalLink,{className:"size-4"})}),(0,t.jsx)(u.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>f(j?.path??e.path),children:(0,t.jsx)(r.FolderOpen,{})}),(0,t.jsx)(u.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:g,className:"ml-1.5 text-muted-foreground hover:text-destructive",onClick:()=>P(j?.path??e.path),children:(0,t.jsx)(l.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:j?(0,t.jsx)(N.FilePreview,{path:j.path,bytes:j.bytes}):(0,t.jsx)(O,{path:e.path,onOpen:o})}),j&&k&&(0,t.jsx)("div",{className:"shrink-0 border-t border-border/60 px-6 pt-2.5 pb-3",children:(0,t.jsx)(b.FileNoteBar,{path:j.path,note:$,failure:F,onThread:R,onOpenThread:M})})]})}function O({path:e,onOpen:n}){let{data:s,isLoading:r,error:i}=(0,C.useServerRoute)(d.queryKey.artifactSet(e,f.ARTIFACT_VIEW.setFiles));if(r)return(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3 p-5",children:Array.from({length:8},(e,n)=>(0,t.jsx)(m.Skeleton,{className:"aspect-4/3 w-full rounded-xl"},n))});if(i)return(0,t.jsx)(j.SettingError,{message:i.message});let o=s?.files??[];return 0===o.length?(0,t.jsx)("p",{className:"p-5 text-xs text-muted-foreground/60",children:"Nothing in here the app can open."}):(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3",children:o.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>n(e),title:`${e.name} \xb7 ${(0,T.formatBytes)(e.bytes)}`,className:"flex flex-col gap-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-offset-2",children:[(0,t.jsx)(R,{file:e}),(0,t.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground",children:e.name})]},e.path))}),s&&s.total>o.length&&(0,t.jsx)("p",{className:"pt-4 font-mono text-[11px] text-muted-foreground/60",children:`${o.length} of ${s.total.toLocaleString("en")} — the rest are in the folder`})]})}function R({file:e}){return(0,t.jsx)(k.FileThumb,{path:e.path,bytes:e.bytes,glyph:"size-5",className:"aspect-4/3 w-full rounded-xl ring-1 ring-foreground/5 ring-inset"})}function M({entries:e,bots:n,onPick:s}){return(0,t.jsx)("div",{className:"space-y-7 p-6",children:$(e).map(({bot:e,rows:i})=>(0,t.jsxs)("section",{className:"space-y-3",children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 text-sm font-medium",children:[e&&(0,t.jsx)(g.BotMark,{size:20,seed:e,...(0,g.markOf)(e,n),notify:!1,className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e??"Unsorted"}),(0,t.jsx)("span",{className:"font-mono text-[11px] font-normal text-muted-foreground",children:i.length})]}),(0,t.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))] gap-x-4 gap-y-5",children:i.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>s(e),className:"group flex min-w-0 flex-col gap-1.5 rounded-xl text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:["set"===e.kind?(0,t.jsx)("span",{className:"grid aspect-4/3 w-full place-items-center rounded-xl bg-muted/60 text-muted-foreground transition-colors group-hover:bg-muted",children:(0,t.jsx)(r.FolderOpen,{className:"size-5"})}):(0,t.jsx)(k.FileThumb,{path:e.path,bytes:e.bytes,glyph:"size-5",className:"aspect-4/3 w-full rounded-xl ring-1 ring-foreground/5 ring-inset"}),(0,t.jsxs)("span",{className:"min-w-0 space-y-0.5 px-0.5",children:[(0,t.jsx)("span",{className:"block truncate text-[13px]",children:e.name}),(0,t.jsxs)("span",{className:"block truncate font-mono text-[10.5px] text-muted-foreground",children:["set"===e.kind?`${e.count} ${1===e.count?"file":"files"} \xb7 `:"",(0,w.shortAgo)(e.at)]})]})]},e.path))})]},e??""))})}function P({empty:e}){return(0,t.jsx)("div",{className:"p-8",children:(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:e?"Nothing finished yet. When a bot ends a job with something to hand over — a page, a report, a set of pictures — it lands here.":"Pick something on the left. Each bot's work is under its face; a folder it filled is one row, and opens as a sheet."})})}e.s(["ArtifactSetting",0,function(){let[e,n]=(0,c.useState)(null),[s,i]=(0,c.useState)(""),[o,a]=(0,c.useState)(void 0),[l,h]=(0,c.useState)(f.ARTIFACT_VIEW.rows),{data:m,isLoading:x,error:p}=(0,C.useServerRoute)(d.queryKey.artifactShelf(l),{keepPreviousData:!0}),{data:b}=(0,C.useServerRoute)(d.queryKey.bot),[v]=(0,A.useServerAction)(S.revealFileAction);if(x)return(0,t.jsx)(j.SettingPanesSkeleton,{});if(p)return(0,t.jsx)(j.SettingError,{message:p.message});let y=m?.entries??[],k=m?.total??0,N=s.trim().toLowerCase(),w=y.filter(e=>(void 0===o||e.bot===o)&&(!N||e.name.toLowerCase().includes(N)||e.bot?.toLowerCase().includes(N))),T=y.find(t=>t.path===e?.row.path)??e?.row;return(0,t.jsx)(j.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"finished"}),` \xb7 ${function(e,t,n){if(0===t)return"empty";let s=t>e.length?`${e.length} of ${t.toLocaleString("en")} results`:`${t} ${1===t?"result":"results"}`;return n>t?`${s} \xb7 ${n.toLocaleString("en")} files`:s}(y,k,m?.files??0)}`]})}),(0,t.jsxs)(u.Button,{variant:"outline",size:"sm",onClick:()=>v(f.PATHS.artifacts),children:[(0,t.jsx)(r.FolderOpen,{}),"Reveal folder"]})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(j.SettingFilter,{value:s,onChange:i,placeholder:"Filter files",className:"mx-2 mb-1.5 w-auto"}),(0,t.jsx)(F,{label:"Everyone",count:y.length,active:void 0===o,onPick:()=>{a(void 0),n(null)}}),$(y).map(({bot:e,rows:s})=>(0,t.jsx)(F,{label:e??"Unsorted",mark:e?(0,t.jsx)(g.BotMark,{size:18,seed:e,...(0,g.markOf)(e,b),notify:!1,className:"shrink-0"}):void 0,count:s.length,active:o===e,onPick:()=>{a(e),n(null)}},e??"")),k>y.length&&(0,t.jsx)("button",{type:"button",onClick:()=>h(l+f.ARTIFACT_VIEW.rows),className:"mx-2 mt-2 rounded-md px-2 py-1.5 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:`Show ${Math.min(f.ARTIFACT_VIEW.rows,k-y.length)} more of ${k.toLocaleString("en")}`})]}),right:T?(0,t.jsx)(z,{row:T,file:e?.file??null,onOpen:e=>n({row:T,file:e}),onBack:()=>n({row:T,file:null}),onGone:()=>n(null),onShelf:()=>n(null)},T.path):w.length>0?(0,t.jsx)(M,{entries:w,bots:b,onPick:e=>n({row:e,file:null})}):(0,t.jsx)(P,{empty:0===k})})}],94682)},759659,e=>{"use strict";var t=e.i(456420);let n={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};n.node;let s=(0,t.default)(n);e.s(["Trash2",0,s],759659)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,463415,e=>{"use strict";var t=e.i(843476),n=e.i(451512);e.i(593698),e.i(986253);var r=e.i(647163);e.s(["DropdownMenu",0,function({...e}){return(0,t.jsx)(n.Menu.Root,{"data-slot":"dropdown-menu",...e})},"DropdownMenuContent",0,function({align:e="start",alignOffset:o=0,side:i="bottom",sideOffset:s=4,className:a,...u}){return(0,t.jsx)(n.Menu.Portal,{children:(0,t.jsx)(n.Menu.Positioner,{className:"isolate z-50 outline-none",align:e,alignOffset:o,side:i,sideOffset:s,children:(0,t.jsx)(n.Menu.Popup,{"data-slot":"dropdown-menu-content",className:(0,r.cn)("z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",a),...u})})})},"DropdownMenuGroup",0,function({...e}){return(0,t.jsx)(n.Menu.Group,{"data-slot":"dropdown-menu-group",...e})},"DropdownMenuItem",0,function({className:e,inset:o,variant:i="default",...s}){return(0,t.jsx)(n.Menu.Item,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":i,className:(0,r.cn)("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e),...s})},"DropdownMenuTrigger",0,function({...e}){return(0,t.jsx)(n.Menu.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}],463415)},451888,504565,553429,e=>{"use strict";var t=e.i(722219);e.s(["default",0,t],504565);var t=t,n=e.i(41533),r=e.i(265402),o=e.i(245629),i=e.i(864723),s=e.i(681307);s.z.object({to:s.z.string().trim().min(1),text:s.z.string().trim().min(1),why:s.z.string().trim().min(1),kind:s.z.enum(["message","question"]).default("message"),options:s.z.array(s.z.string().trim().min(1)).nullish()});let a=s.z.enum(["queued","running","waiting","external","paused","done","cancelled"]),u=s.z.object({bot:s.z.string(),state:a}),l=s.z.object({id:s.z.string(),bot:s.z.string(),text:s.z.string(),options:s.z.string().array().optional()}),d=s.z.enum(["message","question","report","interrupted"]),c="Thursday",p=s.z.object({participants:u.array(),questions:l.array(),deliveries:s.z.object({id:s.z.string(),bot:s.z.string(),text:s.z.string(),delivered:s.z.boolean()}).array(),relays:s.z.object({id:s.z.number(),bot:s.z.string(),text:s.z.string(),kind:d,messageId:s.z.string().nullable()}).array()});e.s(["ROOM_THURSDAY",0,c,"RoomViewSchema",0,p],553429);let f=t.object({color:t.string().regex(/^(#[0-9a-fA-F]{6}|currentColor)$/,"Hex color").optional(),shape:t.enum(i.MARK_SHAPES).optional(),outline:t.boolean().optional(),paint:t.enum(i.MARK_PAINT_IDS).optional()}),g=t.string().max(n.COMMON_VALIDATE.prompt.max),m=t.object({line:t.string(),reason:t.string(),at:t.number()}),v=t.object({id:t.number(),name:t.string(),serverName:t.string()}),b=t.string().trim().transform(e=>e.replace(/\s+/g," ")).refine(e=>e.toLowerCase()!==c.toLowerCase(),"Thursday is reserved for the voice assistant.").pipe(t.string().min(1,"A name is required").max(n.COMMON_VALIDATE.name.max)),h=t.object({input:t.number(),output:t.number()});t.object({name:t.string(),description:t.string(),descriptionLocked:t.boolean(),ownLine:m.nullish(),systemPrompt:t.string().nullish(),icon:f.nullish(),provider:r.textModelProviderSchema.nullish(),model:t.string().nullish(),compactAt:t.number().nullish(),effort:r.effortSchema.nullish(),disabled:t.boolean(),createdAt:o.DateLikeSchema,tools:v.array().default([]),tokens:h,lastJobAt:o.DateLikeSchema.nullish()}),t.object({name:b,description:t.string().trim().min(1,"Say what this bot is for").max(n.COMMON_VALIDATE.description.max),systemPrompt:g.optional(),icon:f.optional(),provider:r.textModelProviderSchema.nullish(),model:t.string().trim().max(80).nullish(),compactAt:t.coerce.number().int().min(8e3,"At least 8k").nullish(),effort:r.effortSchema.nullish(),disabled:t.boolean().optional(),descriptionLocked:t.boolean().optional(),toolIds:t.number().int().array().max(n.MAX_PINNED_TOOLS).optional()});let S={color:i.MARK_SYSTEM,shape:"blob"};t.object({file:t.string(),path:t.string(),line:t.string(),at:o.DateLikeSchema,bytes:t.number()});let R="Continue",x=t.discriminatedUnion("type",[t.object({type:t.literal("text"),text:t.string()}),t.object({type:t.literal("image"),src:t.string()})]),y=t.object({id:t.string(),seq:t.number(),bot:t.string().nullable(),parent:t.string().nullable(),to:t.string().nullish(),at:o.DateLikeSchema}),E=t.discriminatedUnion("kind",[y.extend({kind:t.literal("user"),text:t.string()}),y.extend({kind:t.literal("text"),text:t.string()}),y.extend({kind:t.literal("note"),text:t.string()}),y.extend({kind:t.literal("stop"),text:t.string()}),y.extend({kind:t.literal("tool"),callId:t.string(),name:t.string(),input:t.string(),note:t.string().nullish(),path:t.string().nullish()}),y.extend({kind:t.literal("tool-result"),callId:t.string(),name:t.string(),results:x.array(),more:t.boolean()}),y.extend({kind:t.literal("ask"),callId:t.string(),to:t.string(),text:t.string(),question:t.boolean().optional(),questionId:t.string().optional()})]),M=t.object({question:t.string(),messageId:t.string().optional(),bot:t.string().optional(),options:t.string().array()});t.object({id:t.string(),bot:t.string(),label:t.string(),request:t.string(),status:t.enum(["running","waiting","done","cancelled"]),outcome:t.string().nullable(),ask:M.nullable(),seen:t.boolean(),routineId:t.string().nullable(),tokens:h,contextTokens:t.number(),contextBudget:t.number(),createdAt:o.DateLikeSchema,updatedAt:o.DateLikeSchema,lines:E.array(),room:p});let I=e=>"done"===e.status||"cancelled"===e.status?"finished":"waiting"===e.status||e.room.questions.length>0?"needsYou":"working";e.s(["DEFAULT_BOT",0,{name:"Jarvis",description:"Anything — this computer, a browser, the web, files, services",ownLine:null,systemPrompt:null,icon:S,provider:null,model:null,disabled:!1,compactAt:null,effort:null},"DEFAULT_BOT_ICON",0,S,"THREAD_CONTINUE",0,R,"isAppStop",0,e=>{let t=e?.options??[];return!e?.messageId&&1===t.length&&t[0]===R},"isUnread",0,e=>"done"===e.status&&!e.seen,"needsThreadReply",0,e=>"needsYou"===I(e),"randomBotIcon",0,()=>({...(0,i.randomMarkFill)(),shape:i.MARK_SHAPES[Math.floor(Math.random()*i.MARK_SHAPES.length)]}),"standOf",0,I],451888)},493003,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7f146b8d620b2bc289f054c71cd79d8599d6fb21a9",t.callServer,void 0,t.findSourceMapURL,"markSeenAction");e.s(["markSeenAction",0,n])},978411,e=>{"use strict";var t=e.i(271645),n=e.i(798120),r=e.i(6799),o=e.i(493003),i=e.i(451888),s=e.i(245629),a=e.i(393080),u=e.i(283653),l=e.i(647163),d=e.i(553429);let c=[],p=!1,f=new Set;function g(e,t){let n=e=>({name:e,icon:t?.find(t=>t.name===e)?.icon??null}),r=n(e.bot),o=[],i=new Map,s=new Map,a=new Map;for(let t of e.lines){let e=t.bot?n(t.bot):r,u=t.to?n(t.to):t.parent?s.get(t.parent)??null:null;switch(t.kind){case"user":o.push({id:t.id,bot:t.to?n(t.to):r,to:t.to?n(t.to):null,text:t.text,kind:"user"});break;case"text":o.push({id:t.id,bot:e,to:u,text:t.text,kind:"say"});break;case"note":o.push({id:t.id,bot:e,to:u,text:t.text,kind:"note"});break;case"stop":o.push({id:t.id,bot:e,to:u,text:t.text,kind:"stop",at:t.at});break;case"tool":i.set(t.callId,o.length),o.push({id:t.id,bot:e,to:u,text:t.note??t.input,kind:"tool",at:t.at,tool:{name:t.name,input:t.input,note:t.note,path:t.path,callId:t.callId}});break;case"tool-result":{let e=i.get(t.callId)??a.get(t.callId),n=void 0===e?void 0:o[e];n?.tool&&void 0!==e?o[e]={...n,tool:{...n.tool,results:t.results,more:t.more}}:n?.kind==="ask"&&void 0!==e&&(o[e]={id:n.id,bot:n.bot,to:null,text:n.text,kind:"tool",tool:{name:t.name,input:n.text,callId:t.callId,results:t.results,more:t.more}});break}case"ask":{a.set(t.callId,o.length);let r=n(t.to);s.set(t.callId,e),o.push({id:t.id,bot:e,to:r,text:t.text,kind:"ask",question:t.question,questionId:t.questionId})}}}if(o.forEach((e,t)=>{if("user"!==e.kind)return;let n=o.slice(0,t).findLast(t=>"user"!==t.kind&&t.bot.name===e.bot.name);n?.kind==="tool"&&(o[t]={...e,steppedIn:!0})}),"done"===e.status){let e=o.at(-1);if(e&&"say"===e.kind&&e.bot.name===r.name){let t=o.length-1;for(;t>0&&"say"===o[t-1].kind&&A(o[t-1])===A(e);)t-=1;let n=o.splice(t);o.push({...n[0],kind:"result",text:n.map(e=>e.text).join("\n\n")})}}let u=[r],l=e=>{e&&e.name!==d.ROOM_THURSDAY&&(u.some(t=>t.name===e.name)||u.push(e))};for(let t of e.room.participants)l(n(t.bot));for(let e of o)l(e.bot),l(e.to);return{id:e.id,room:e.room,request:e.request,label:e.label,bot:r,roster:u,lines:o,status:"running"===e.status?"working":e.status,outcome:e.outcome,ask:e.ask,seen:e.seen,routineId:e.routineId,tokens:e.tokens,contextTokens:e.contextTokens,contextBudget:e.contextBudget,updatedAt:e.updatedAt}}let m=new Map,v=new Map,b=[],h=new Set,S=[],R=null,x=new Set,y=new Set,E=!1,M=new Set,I=!1,k=new Set,C=new Set,O=new Set,T=new Set,w=[],A=e=>e.id.slice(0,e.id.lastIndexOf("-")),P=e=>"user"===e.kind?{name:d.ROOM_THURSDAY}:e.bot,N=e=>"user"===e.kind?e.bot:e.to,L=(e,t)=>({kind:"entry",speaker:e.bot,entry:{kind:"work",key:`${e.lines[0].id}-work`,lines:e.lines,open:t}});e.s(["botThreads",0,{sync(e,t){for(let n of(p=!0,c=[...e].reverse().map(e=>g(e,t)),f))n()},primed:()=>p},"fileOpens",0,{open(e){for(let t of O)t(e);return O.size>0},subscribe:e=>(O.add(e),()=>{O.delete(e)})},"heardBy",0,N,"lastSaid",0,function(e){for(let t=e.lines.length-1;t>=0;t--){let n=e.lines[t];if("user"!==n.kind&&"note"!==n.kind&&"stop"!==n.kind)return n}return null},"ringingThreads",0,{set(e){if(!(e.length===b.length&&e.every((e,t)=>b[t]===e)))for(let t of(b=e,h))t()}},"roomOpen",0,{set(e){if(e!==R)for(let t of(R=e,x))t()}},"roomOpens",0,{open(e){for(let t of C)t(e??null)},subscribe:e=>(C.add(e),()=>{C.delete(e)})},"screenActs",0,{announce(e){for(let t of T)t(e)},subscribe:e=>(T.add(e),()=>{T.delete(e)})},"threadDrafts",0,{recipient:e=>v.get(e),select:(e,t)=>{v.set(e,t)},get:(e,t,n)=>m.get(e)?.get(JSON.stringify([t,n??null]))??"",set(e,t,n,r){let o=m.get(e)??new Map,i=JSON.stringify([t,r??null]);n?o.set(i,n):o.delete(i),o.size?m.set(e,o):m.delete(e)}},"threadFromRow",0,g,"threadItems",0,function(e,t,n=[]){let r,o=(r=new Set(e.lines.filter(e=>"tool"===e.kind||"ask"===e.kind).map(A)),e=>"user"===e.kind||"ask"===e.kind||"result"===e.kind||"say"===e.kind&&!r.has(A(e))),i=t===e.bot.name?e.lines:e.lines.filter(e=>P(e).name===t||o(e)&&N(e)?.name===t),s=new Set([e.bot.name,d.ROOM_THURSDAY]),a=new Map;for(let t of e.lines){let e=N(t);e&&!s.has(e.name)&&(s.add(e.name),a.set(t.id,{from:P(t),to:e})),s.add(t.bot.name)}let u=[],l=new Map,c=e=>{let t=e?l.get(e.name):void 0;t&&(l.delete(t.bot.name),u.push(L(t,!1)))};for(let e of i){if(!o(e)){let t=l.get(e.bot.name)??{bot:e.bot,lines:[],at:0};t.lines.push(e),t.at=u.length,l.set(e.bot.name,t);continue}let t=P(e);c(N(e));let n=a.get(e.id);n&&u.push({kind:"invite",key:`${e.id}-joins`,...n}),c(t),u.push({kind:"entry",speaker:t,entry:{kind:"message",key:e.id,line:e}})}for(let e of[...l.values()].sort((e,t)=>e.at-t.at).reverse())u.splice(e.at,0,L(e,!0));for(let e of n)l.has(e.name)||u.push({kind:"entry",speaker:e,entry:{kind:"work",key:`${e.name}-now`,lines:[],open:!0}});let p=[];for(let e of u){let t=p.at(-1);"invite"===e.kind?p.push(e):t?.kind==="turn"&&t.speaker.name===e.speaker.name?t.entries.push(e.entry):p.push({kind:"turn",key:e.entry.key,speaker:e.speaker,entries:[e.entry]})}return p},"useBotThreads",0,function(){return(0,t.useSyncExternalStore)(e=>(f.add(e),()=>f.delete(e)),()=>c,()=>w)},"useCallWaits",0,function(){return(0,t.useSyncExternalStore)(e=>(k.add(e),()=>k.delete(e)),()=>I,()=>!1)},"useRingingThreads",0,function(){return(0,t.useSyncExternalStore)(e=>(h.add(e),()=>h.delete(e)),()=>b,()=>S)},"useRoomOpen",0,function(){return(0,t.useSyncExternalStore)(e=>(x.add(e),()=>x.delete(e)),()=>R,()=>null)},"useSeenOnDetail",0,function(e){let d=(0,t.useRef)(new Set),c=e?.id??null,p=e?`${e.id}@${(0,s.toDate)(e.updatedAt).getTime()}`:null,f=!!e&&(0,i.isUnread)(e);(0,t.useEffect)(()=>{!c||!p||!f||d.current.has(p)||(d.current.add(p),(0,o.markSeenAction)([c]).then(a.unwrapResult).then(()=>(0,u.revalidate)(n.queryKey.threads)).catch(e=>{d.current.delete(p),r.toast.add({type:"error",title:"Could not mark the thread as read",description:(0,l.errorToString)(e)})}))},[c,p,f])},"useWriteLineUp",0,function(){return(0,t.useSyncExternalStore)(e=>(M.add(e),()=>M.delete(e)),()=>E,()=>!1)},"writeLine",0,{open(){for(let e of y)e()},subscribe:e=>(y.add(e),()=>{y.delete(e)}),shown(e){if(e!==E)for(let t of(E=e,M))t()},waits(e){if(e!==I)for(let t of(I=e,k))t()}}])},989409,768834,e=>{"use strict";var t=e.i(271645);let n=e=>{let t,n=new Set,r=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e))},s=t=e(r,o,i);return i},r=e=>{let r=e?n(e):n,o=e=>(function(e,n=e=>e){let r=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>n(e.getState()),[e,n]),t.default.useCallback(()=>n(e.getInitialState()),[e,n]));return t.default.useDebugValue(r),r})(r,e);return Object.assign(o,r),o},o=e=>e?r(e):r;e.s(["create",0,o],768834);let i=o()(e=>({open:!1,section:"thursday",show:t=>e(e=>({open:!0,section:t??e.section})),hide:()=>e({open:!1}),pick:t=>e({section:t}),unsaved:null,holdUnsaved:t=>e({unsaved:t})}));e.s(["openSettings",0,e=>i.getState().show(e),"useSettingsStore",0,i],989409)},413082,e=>{"use strict";var t=e.i(271645),n=e.i(574735),r=e.i(328744),o=e.i(365420),i=e.i(108868),s=e.i(439957),a=e.i(229315),u=e.i(451321),l=e.i(584446),d=e.i(596296),c=e.i(675606),p=e.i(56434);let f=r.platform.os.mac&&r.platform.engine.webkit;e.s(["useFocus",0,function(e,r={}){let{enabled:g=!0,delay:m}=r,v="rootStore"in e?e.rootStore:e,{events:b,dataRef:h}=v.context,S=t.useRef(!1),R=t.useRef(null),x=t.useRef(!0),y=(0,s.useTimeout)();t.useEffect(()=>{let e=v.select("domReferenceElement");if(!g)return;let t=(0,a.getWindow)(e);return(0,o.mergeCleanups)((0,n.addEventListener)(t,"blur",function(){let e=v.select("domReferenceElement");!v.select("open")&&(0,a.isHTMLElement)(e)&&e===(0,l.activeElement)((0,i.ownerDocument)(e))&&(S.current=!0,R.current=e)}),f&&(0,n.addEventListener)(t,"keydown",function(){x.current=!0},!0),f&&(0,n.addEventListener)(t,"pointerdown",function(){x.current=!1},!0))},[v,g]),t.useEffect(()=>{if(g)return b.on("openchange",e),()=>{b.off("openchange",e)};function e(e){if(e.reason===p.REASONS.triggerPress||e.reason===p.REASONS.escapeKey){let e=v.select("domReferenceElement");(0,a.isElement)(e)&&(R.current=e,S.current=!0)}}},[b,g,v]);let E=t.useMemo(()=>{function e(){S.current=!1,R.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(S.current){if(R.current===n)return;e()}let r=(0,l.getTarget)(t.nativeEvent);if((0,a.isElement)(r)){if(f&&!t.relatedTarget){if(!x.current&&!(0,d.isTypeableElement)(r))return}else if(!(0,d.matchesFocusVisible)(r))return}let o=(0,d.isTargetInsideEnabledTrigger)(t.relatedTarget,v.context.triggerElements),{nativeEvent:i,currentTarget:s}=t,u="function"==typeof m?m():m;v.select("open")&&o||0===u||void 0===u?v.setOpen(!0,(0,c.createChangeEventDetails)(p.REASONS.triggerFocus,i,s)):y.start(u,()=>{S.current||v.setOpen(!0,(0,c.createChangeEventDetails)(p.REASONS.triggerFocus,i,s))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,o=(0,a.isElement)(n)&&n.hasAttribute((0,u.createAttribute)("focus-guard"))&&"outside"===n.getAttribute("data-type");y.start(0,()=>{let e=v.select("domReferenceElement"),t=(0,l.activeElement)((0,i.ownerDocument)(e));if(!n&&t===e||(0,l.contains)(h.current.floatingContext?.refs.floating.current,t)||(0,l.contains)(e,t)||o)return;let s=n??t;(0,d.isTargetInsideEnabledTrigger)(s,v.context.triggerElements)||v.setOpen(!1,(0,c.createChangeEventDetails)(p.REASONS.triggerFocus,r))})}}},[h,m,v,y]);return t.useMemo(()=>g?{reference:E,trigger:E}:{},[g,E])}])},260891,e=>{"use strict";e.i(247167);var t=e.i(271645),n=e.i(708445),r=e.i(146376),o=e.i(108868),i=e.i(667865),s=e.i(446265),a=e.i(328744),u=e.i(229315),l=e.i(675606),d=e.i(56434),c=e.i(46420),p=e.i(621082),f=e.i(449055),g=e.i(584446),m=e.i(596296),v=e.i(503596),b=e.i(157940);function h(e){return a.platform.engine.webkit&&0===e.movementX&&0===e.movementY}function S(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function R(e,t){return S(t,e===f.ARROW_UP||e===f.ARROW_DOWN,e===f.ARROW_LEFT||e===f.ARROW_RIGHT)}function x(e,t,n){return S(t,e===f.ARROW_DOWN,n?e===f.ARROW_LEFT:e===f.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,a){let{listRef:y,activeIndex:E,onNavigate:M=()=>{},enabled:I=!0,selectedIndex:k=null,allowEscape:C=!1,loopFocus:O=!1,nested:T=!1,rtl:w=!1,virtual:A=!1,focusItemOnOpen:P="auto",focusItemOnHover:N=!0,openOnArrowKeyDown:L=!0,disabledIndices:D,orientation:F="vertical",parentOrientation:j,id:_,resetOnPointerLeave:H=!0,externalTree:B,grid:U}=a,z=null!=U,W="rootStore"in e?e.rootStore:e,Y=W.useState("open"),V=W.useState("floatingElement"),K=W.useState("domReferenceElement"),G=W.context.dataRef,q=(0,m.getFloatingFocusElement)(V),J=(0,m.isTypeableCombobox)(K),$=(0,s.useValueAsRef)(q),X=(0,c.useFloatingParentNodeId)(),Q=(0,c.useFloatingTree)(B),Z=t.useRef(P),ee=t.useRef(k??-1),et=t.useRef(null),en=t.useRef(!0),er=(0,i.useStableCallback)(e=>{M(-1===ee.current?null:ee.current,e)}),eo=t.useRef(!!V),ei=t.useRef(Y),es=t.useRef(!1),ea=t.useRef(!1),eu=t.useRef(null),el=(0,s.useValueAsRef)(D),ed=(0,s.useValueAsRef)(Y),ec=(0,s.useValueAsRef)(k),ep=(0,s.useValueAsRef)(H),ef=(0,n.useAnimationFrame)(),eg=(0,n.useAnimationFrame)(),em=(0,i.useStableCallback)(()=>{function e(e){A?Q?.events.emit("virtualfocus",e):eu.current=(0,v.enqueueFocus)(e,{sync:es.current,preventScroll:!0})}let t=y.current[ee.current],n=ea.current;t&&e(t),(es.current?e=>e():e=>ef.request(e))(()=>{let r=y.current[ee.current]||t;!r||(t||e(r),ex&&(n||!en.current)&&r.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,r.useIsoLayoutEffect)(()=>{G.current.orientation=F},[G,F]),(0,r.useIsoLayoutEffect)(()=>{I&&(Y&&V?(ee.current=k??-1,Z.current&&null!=k&&(ea.current=!0,er())):eo.current&&(ee.current=-1,er()))},[I,Y,V,k,er]),(0,r.useIsoLayoutEffect)(()=>{if(I){if(!Y){es.current=!1;return}if(V)if(null==E){if(es.current=!1,null!=ec.current)return;if(eo.current&&(ee.current=-1,em()),(!ei.current||!eo.current)&&Z.current&&(null!=et.current||!0===Z.current&&null==et.current)){let e=0,t=()=>{null==y.current[0]?(e<2&&(e?e=>eg.request(e):queueMicrotask)(t),e+=1):(ee.current=null==et.current||x(et.current,F,w)||T?(0,p.getMinListIndex)(y):(0,p.getMaxListIndex)(y),et.current=null,er())};t()}}else(0,p.isIndexOutOfListBounds)(y.current,E)||(ee.current=E,em(),ea.current=!1)}},[I,Y,V,E,ec,T,y,F,w,er,em,eg]),(0,r.useIsoLayoutEffect)(()=>{if(!I||V||!Q||A||!eo.current)return;let e=Q.nodesRef.current,t=e.find(e=>e.id===X)?.context?.elements.floating,n=(0,g.activeElement)((0,o.ownerDocument)(K??t??null)),r=e.some(e=>e.context&&(0,g.contains)(e.context.elements.floating,n));t&&!r&&en.current&&t.focus({preventScroll:!0})},[I,V,K,Q,X,A]),(0,r.useIsoLayoutEffect)(()=>{ei.current=Y,eo.current=!!V}),(0,r.useIsoLayoutEffect)(()=>{Y||(et.current=null,Z.current=P)},[Y,P]);let ev=null!=E,eb=(0,i.useStableCallback)(e=>{if(!ed.current)return;let t=y.current.indexOf(e.currentTarget);-1!==t&&(ee.current!==t||E!==t)&&(ee.current=t,er(e))}),eh=(0,i.useStableCallback)(()=>j??Q?.nodesRef.current.find(e=>e.id===X)?.context?.dataRef?.current.orientation),eS=(0,i.useStableCallback)(()=>(0,p.getMinListIndex)(y,el.current)),eR=(0,i.useStableCallback)(e=>{var t;let n,r;if(en.current=!1,es.current=!0,229===e.which||!ed.current&&e.currentTarget===$.current)return;if(T&&(t=e.key,n=w?t===f.ARROW_RIGHT:t===f.ARROW_LEFT,r=t===f.ARROW_UP,"both"===F||"horizontal"===F&&z?"Escape"===t:S(F,n,r))){R(e.key,eh())||(0,b.stopEvent)(e),W.setOpen(!1,(0,l.createChangeEventDetails)(d.REASONS.listNavigation,e.nativeEvent)),(0,u.isHTMLElement)(K)&&(A?Q?.events.emit("virtualfocus",K):K.focus());return}let o=ee.current,i=(0,p.getMinListIndex)(y,D),s=(0,p.getMaxListIndex)(y,D);if(J||("Home"===e.key&&((0,b.stopEvent)(e),ee.current=i,er(e)),"End"===e.key&&((0,b.stopEvent)(e),ee.current=s,er(e))),null!=U){let t=U(e,ee.current,y,F,O,w,D,i,s);if(null!=t&&(ee.current=t,er(e)),"both"===F)return}if(R(e.key,F)){if((0,b.stopEvent)(e),Y&&!A&&(0,g.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){ee.current=x(e.key,F,w)?i:s,er(e);return}x(e.key,F,w)?O?o>=s?C&&o!==y.current.length?ee.current=-1:(es.current=!1,ee.current=i):ee.current=(0,p.findNonDisabledListIndex)(y.current,{startingIndex:o,disabledIndices:D}):ee.current=Math.min(s,(0,p.findNonDisabledListIndex)(y.current,{startingIndex:o,disabledIndices:D})):O?o<=i?C&&-1!==o?ee.current=y.current.length:(es.current=!1,ee.current=s):ee.current=(0,p.findNonDisabledListIndex)(y.current,{startingIndex:o,decrement:!0,disabledIndices:D}):ee.current=Math.max(i,(0,p.findNonDisabledListIndex)(y.current,{startingIndex:o,decrement:!0,disabledIndices:D})),(0,p.isIndexOutOfListBounds)(y.current,ee.current)&&(ee.current=-1),er(e)}}),ex=t.useMemo(()=>({onFocus(e){es.current=!0,eb(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){!h(e)&&(es.current=!0,ea.current=!1,N&&eb(e))},onPointerLeave(e){if(!ed.current||!en.current||"touch"===e.pointerType)return;es.current=!0;let t=e.relatedTarget;if(!(!N||y.current.includes(t))&&ep.current&&(eu.current?.(),eu.current=null,ee.current=-1,er(e),!A)){let e=$.current,t=(0,g.activeElement)((0,o.ownerDocument)(e));e&&(0,g.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[eb,ed,$,N,y,er,ep,A]),ey=t.useMemo(()=>A&&Y&&ev&&{"aria-activedescendant":`${_}-${E}`},[A,Y,ev,_,E]),eE=t.useMemo(()=>({...!J?ey:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&Y&&!A){let t=(0,g.getTarget)(e.nativeEvent);if(t&&!(0,g.contains)($.current,t))return;(0,b.stopEvent)(e),W.setOpen(!1,(0,l.createChangeEventDetails)(d.REASONS.focusOut,e.nativeEvent)),(0,u.isHTMLElement)(K)&&K.focus();return}eR(e)},onPointerMove(e){h(e)||(en.current=!0)}}),[ey,eR,$,J,W,Y,A,K]),eM=t.useMemo(()=>{function e(e){W.setOpen(!0,(0,l.createChangeEventDetails)(d.REASONS.listNavigation,e.nativeEvent,e.currentTarget))}function t(e){"auto"===P&&(0,b.isVirtualClick)(e.nativeEvent)&&(Z.current=!A)}function n(e){Z.current=P,"auto"===P&&(0,b.isVirtualPointerEvent)(e.nativeEvent)&&(Z.current=!0)}return{onKeyDown(t){var n,r;let o=W.select("open");en.current=!1;let i=t.key.startsWith("Arrow"),s=(n=t.key,r=eh(),S(r,w?n===f.ARROW_LEFT:n===f.ARROW_RIGHT,n===f.ARROW_DOWN)),a=R(t.key,F),u=(T?s:a)||"Enter"===t.key||""===t.key.trim();if(A&&o)return eR(t);if(o||L||!i){if(u){let e=R(t.key,eh());et.current=T&&e?null:t.key}if(T){s&&((0,b.stopEvent)(t),o?(ee.current=eS(),er(t)):e(t));return}a&&(null!=ec.current&&(ee.current=ec.current),(0,b.stopEvent)(t),!o&&L?e(t):eR(t),o&&er(t))}},onFocus(e){W.select("open")&&!A&&(ee.current=-1,er(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[eR,P,eS,T,er,W,L,F,eh,w,ec,A]),eI=t.useMemo(()=>({...ey,...eM}),[ey,eM]);return t.useMemo(()=>I?{reference:eI,floating:eE,item:ex,trigger:eM}:{},[I,eI,eE,eM,ex])}])},736760,e=>{"use strict";var t=e.i(271645),n=e.i(146376),r=e.i(667865),o=e.i(439957),i=e.i(956789),s=e.i(621082),a=e.i(584446),u=e.i(157940);e.s(["useTypeahead",0,function(e,l){let{listRef:d,elementsRef:c,activeIndex:p,onMatch:f,disabledIndices:g,onTyping:m,enabled:v=!0,resetMs:b=750,selectedIndex:h=null}=l,S="rootStore"in e?e.rootStore:e,R=S.useState("open"),x=(0,o.useTimeout)(),y=t.useRef(""),E=t.useRef(h??p??-1),M=t.useRef(null),I=(0,r.useStableCallback)(e=>{function t(e){let t=c?.current[e];return!(t&&!(0,s.isElementVisible)(t)||t?.matches(":disabled"))&&(null==g||!(0,s.isListIndexDisabled)(i.EMPTY_ARRAY,e,g))}function n(e,r,o=0){if(0===e.length)return -1;let i=(o%e.length+e.length)%e.length,s=r.toLowerCase();for(let n=0;n<e.length;n+=1){let r=(i+n)%e.length,o=e[r];if(o?.toLowerCase().startsWith(s)&&t(r))return r}return -1}let r=d.current;if(y.current.length>0&&" "===e.key&&((0,u.stopEvent)(e),m?.(!0)),y.current.length>0&&" "!==y.current[0]&&-1===n(r,y.current)&&" "!==e.key&&m?.(!1),null==r||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;R&&" "!==e.key&&((0,u.stopEvent)(e),m?.(!0));let o=""===y.current;o&&(E.current=h??p??-1),r.every((e,n)=>!(e&&t(n))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&y.current===e.key&&(y.current="",E.current=M.current),y.current+=e.key,x.start(b,()=>{y.current="",E.current=M.current,m?.(!1)});let a=o?h??p??-1:E.current,l=n(r,y.current,(a??0)+1);-1!==l?(f?.(l),M.current=l):" "!==e.key&&(y.current="",m?.(!1))}),k=(0,r.useStableCallback)(e=>{let t=e.relatedTarget,n=S.select("domReferenceElement"),r=S.select("floatingElement");(0,a.contains)(n,t)||(0,a.contains)(r,t)||(x.clear(),y.current="",E.current=M.current,m?.(!1))});(0,n.useIsoLayoutEffect)(()=>{(R||null===h)&&(x.clear(),M.current=null,""!==y.current&&(y.current=""))},[R,h,x]);let C=t.useMemo(()=>({onKeyDown:I,onBlur:k}),[I,k]);return t.useMemo(()=>v?{reference:C,floating:C}:{},[v,C])}])},348990,e=>{"use strict";var t=e.i(956789),n=e.i(552245),r=e.i(395530);e.s(["CompositeItem",0,function(e){let{render:o,className:i,style:s,state:a=t.EMPTY_OBJECT,props:u=t.EMPTY_ARRAY,refs:l=t.EMPTY_ARRAY,metadata:d,stateAttributesMapping:c,tag:p="div",...f}=e,{compositeProps:g,compositeRef:m}=(0,r.useCompositeItem)({metadata:d});return(0,n.useRenderElement)(p,e,{state:a,ref:[m,...l],props:[g,...u,f],stateAttributesMapping:c})}])},451512,e=>{"use strict";e.i(261027);var t=e.i(382370),n=e.i(389554),r=e.i(685996),o=e.i(371714),i=e.i(181194),s=e.i(801545),a=e.i(91384),u=e.i(858307),l=e.i(764270),d=e.i(219712),c=e.i(82264),p=e.i(862050),f=e.i(282593),g=e.i(105953),m=e.i(63947),v=e.i(277450),b=e.i(733332),h=e.i(271645),S=e.i(439957),R=e.i(108868),x=e.i(896499),y=e.i(667865),E=e.i(146376),M=e.i(956789),I=e.i(650316),k=e.i(385689),C=e.i(46420),O=e.i(413082),T=e.i(872135),w=e.i(379248),A=e.i(584446),P=e.i(978921),N=e.i(879938),L=e.i(552245),D=e.i(540886),F=e.i(264042),j=e.i(348990),_=e.i(838452),H=e.i(229315),B=e.i(459636),U=e.i(264111),z=e.i(346570),W=e.i(788015),Y=e.i(56434),V=e.i(507447),K=e.i(638396),G=e.i(152535),q=e.i(176782),J=e.i(843476);let $=(0,x.fastComponentRef)(function(e,t){let n,{render:r,className:o,style:i,disabled:s=!1,nativeButton:a=!0,id:u,openOnHover:l,delay:d=100,closeDelay:c=0,handle:p,payload:f,...g}=e,m=(0,P.useMenuRootContext)(!0),v=(0,B.usePopupHandleStore)(p)??m?.store;if(!v)throw Error((0,b.default)(85));let x=(0,W.useBaseUiId)(u),$=v.useState("isTriggerActive",x),X=v.useState("floatingRootContext"),Q=v.useState("isOpenedByTrigger",x),Z=v.useState("triggerPopupId",x),ee=h.useRef(null),et=(n=(0,V.useMenubarContext)(!0),h.useMemo(()=>n?{type:"menubar",context:n}:{type:void 0},[n])),en=(0,_.useCompositeRootContext)(!0),er=(0,C.useFloatingTree)(),eo=h.useMemo(()=>er??new w.FloatingTreeStore,[er]),ei=(0,C.useFloatingNodeId)(eo),es=(0,C.useFloatingParentNodeId)(),{registerTrigger:ea,isMountedByThisTrigger:eu}=(0,U.useTriggerDataForwarding)(x,ee,v,{payload:f,closeDelay:c,parent:et,floatingTreeRoot:eo,floatingNodeId:ei,floatingParentNodeId:es,keyboardEventRelay:en?.relayKeyboardEvent}),el="menubar"===et.type,ed=v.useState("disabled"),ec=s||ed||el&&et.context.disabled,{getButtonProps:ep,buttonRef:ef}=(0,D.useButton)({disabled:ec,native:a});h.useEffect(()=>{Q||void 0!==et.type||(v.context.allowMouseUpTriggerRef.current=!1)},[v,Q,et.type]);let eg=h.useRef(null),em=(0,S.useTimeout)(),ev=(0,y.useStableCallback)(e=>{if(!eg.current)return;em.clear(),v.context.allowMouseUpTriggerRef.current=!1;let t=e.target;(0,A.contains)(eg.current,t)||(0,A.contains)(v.select("positionerElement"),t)||t===eg.current||null!=t&&function e(t){return(0,H.isHTMLElement)(t)&&t.hasAttribute("data-rootownerid")?t.getAttribute("data-rootownerid"):(0,H.isLastTraversableNode)(t)?void 0:e((0,H.getParentNode)(t))}(t)===v.select("rootId")||(0,F.isMouseWithinBounds)(e,eg.current)||eo.events.emit("close",{domEvent:e,reason:Y.REASONS.cancelOpen})});h.useEffect(()=>{Q&&v.select("lastOpenChangeReason")===Y.REASONS.triggerHover&&(0,R.ownerDocument)(eg.current).addEventListener("mouseup",ev,{once:!0})},[Q,ev,v]);let eb=el&&et.context.hasSubmenuOpen,eh=l??eb,eS=(0,T.useHoverReferenceInteraction)(X,{enabled:eh&&!ec&&(!el||eb&&!eu),handleClose:(0,I.safePolygon)({blockPointerEvents:!el}),mouseOnly:!0,move:!1,restMs:void 0===et.type?d:void 0,delay:{close:c},triggerElementRef:ee,externalTree:eo,isActiveTrigger:$,isClosing:()=>"ending"===v.select("transitionStatus")}),eR=function(e,t){let n=(0,S.useTimeout)(),[r,o]=h.useState(!1);return(0,E.useIsoLayoutEffect)(()=>{e&&t===Y.REASONS.triggerHover?(o(!0),n.start(K.PATIENT_CLICK_THRESHOLD,()=>{o(!1)})):e||(n.clear(),o(!1))},[e,t,n]),r}(Q,v.select("lastOpenChangeReason")),ex=(0,k.useClick)(X,{enabled:!ec,event:Q&&el?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:void 0===et.type&&eR}),ey=(0,O.useFocus)(X,{enabled:!ec&&eb}),eE=function(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,o=h.useRef(!1);return h.useMemo(()=>t?{onMouseDown:e=>{("open"===n&&!r||"close"===n&&r)&&(o.current=!0,(0,R.ownerDocument)(e.currentTarget).addEventListener("click",()=>{o.current=!1},{once:!0}))},onClick:e=>{o.current&&(o.current=!1,e.preventBaseUIHandler())}}:M.EMPTY_OBJECT,[t,n,r])}({open:Q,enabled:el,mouseDownAction:"open"}),eM=h.useMemo(()=>(0,q.mergeProps)(ey.reference,ex.reference),[ey.reference,ex.reference]),eI=v.useState("triggerProps",eu),{preFocusGuardRef:ek,handlePreFocusGuardFocus:eC,handleFocusTargetFocus:eO}=(0,z.useTriggerFocusGuards)(v,ee),eT={disabled:ec,open:Q},ew=[eg,t,ef,ea,ee],eA=[eM,eS??M.EMPTY_OBJECT,eI,{"aria-haspopup":"menu","aria-controls":Z,id:x,onMouseDown:e=>{v.select("open")||(em.start(200,()=>{v.context.allowMouseUpTriggerRef.current=!0}),(0,R.ownerDocument)(e.currentTarget).addEventListener("mouseup",ev,{once:!0}))}},el?{role:"menuitem"}:{},eE,g,ep],eP=(0,L.useRenderElement)("button",e,{enabled:!el,stateAttributesMapping:N.pressableTriggerOpenStateMapping,state:eT,ref:ew,props:eA});return el?(0,J.jsx)(j.CompositeItem,{tag:"button",render:r,className:o,style:i,state:eT,refs:ew,props:eA,stateAttributesMapping:N.pressableTriggerOpenStateMapping}):Q?(0,J.jsxs)(h.Fragment,{children:[(0,J.jsx)(G.FocusGuard,{ref:ek,onFocus:eC},`${x}-pre-focus-guard`),(0,J.jsx)(h.Fragment,{children:eP},x),(0,J.jsx)(G.FocusGuard,{ref:v.context.triggerFocusTargetRef,onFocus:eO},`${x}-post-focus-guard`)]}):(0,J.jsx)(h.Fragment,{children:eP},x)});var X=e.i(803414),Q=e.i(818390);let Z=h.forwardRef(function(e,t){let{render:n,className:r,style:o,children:i,...s}=e,{store:a}=(0,P.useMenuRootContext)(),{side:u}=(0,X.useMenuPositionerContext)(),l=a.useState("instantType"),{children:d,state:c}=(0,Q.usePopupViewport)({store:a,side:u,children:i}),p={activationDirection:c.activationDirection,transitioning:c.transitioning,instant:l};return(0,L.useRenderElement)("div",e,{state:p,ref:t,props:[s,{children:d}],stateAttributesMapping:Q.popupViewportStateMapping})});var ee=e.i(652225),et=e.i(328744),en=e.i(673553),er=e.i(866506),eo=e.i(874671);let ei={"aria-expanded":void 0},es=h.forwardRef(function(e,t){let{render:n,className:r,style:o,label:i,id:s,nativeButton:a=!1,openOnHover:u=!0,delay:l=100,closeDelay:d=0,disabled:c=!1,...p}=e,f=(0,eo.useMenuSubmenuRootContext)();if(!f?.parentMenu)throw Error((0,b.default)(37));let g=(0,en.useCompositeListItem)({guess:!0,label:i}),m=(0,X.useMenuPositionerContext)(),{store:v}=(0,P.useMenuRootContext)(),S=(0,W.useBaseUiId)(s),R=v.useState("open"),x=v.useState("floatingRootContext"),C=v.useState("floatingTreeRoot"),O=v.useState("triggerPopupId",S),w=(0,U.useTriggerRegistration)(S,v),A=(0,y.useStableCallback)(e=>{w(e),null!==e&&v.select("open")&&null==v.select("activeTriggerId")&&v.update({activeTriggerId:S??null,activeTriggerElement:e,closeDelay:d})}),D=h.useRef(null),F=h.useCallback(e=>{D.current=e,v.set("activeTriggerElement",e)},[v]);(0,E.useIsoLayoutEffect)(()=>(A(D.current),()=>A(null)),[A,S,v]),v.useSyncedValue("closeDelay",d);let j=f.parentMenu,_=v.useState("disabled"),H=j.useState("disabled"),B=c||_||H,z=j.useState("itemProps"),V=j.useState("isActive",g.index),K=h.useMemo(()=>({type:"submenu-trigger",setActive(){j.select("highlightItemOnHover")&&j.set("activeIndex",g.index)}}),[j,g.index]),{getItemProps:G,itemRef:q}=(0,er.useMenuItem)({closeOnClick:!1,disabled:B,highlighted:V,id:S,store:v,typingRef:j.context.typingRef,nativeButton:a,itemMetadata:K,nodeId:m?.context.nodeId}),J=v.useState("hoverEnabled"),$=(0,T.useHoverReferenceInteraction)(x,{enabled:J&&u&&!B,handleClose:(0,I.safePolygon)({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:l,delay:{open:l,close:d},shouldOpen:l>0?()=>j.select("allowMouseEnter"):void 0,triggerElementRef:D,externalTree:C,isClosing:()=>"ending"===v.select("transitionStatus"),guardStaleOpen:!0}),Q=(0,k.useClick)(x,{enabled:!B,event:"mousedown",toggle:!u,ignoreMouse:u,stickIfOpen:!1}).reference??M.EMPTY_OBJECT,Z=v.useState("triggerProps",!0);delete Z.id;let ee=v.useState("openMethod"),es=v.useState("lastOpenChangeReason")===Y.REASONS.listNavigation||"keyboard"===ee,ea=R&&es&&et.platform.screenReader.voiceOver;return(0,L.useRenderElement)("div",e,{state:{disabled:B,highlighted:V,open:R},stateAttributesMapping:N.triggerOpenStateMapping,props:[Q,$,Z,z,ea?ei:void 0,{"aria-controls":O,tabIndex:R||V?0:-1,onBlur(){V&&j.set("activeIndex",null)}},p,G],ref:[t,g.ref,q,A,F]})});var ea=e.i(536481),eu=e.i(564170);class el extends eu.BasePopupHandle{constructor(){super((0,ea.createNullMenuStore)(),"Menu")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",()=>t.MenuArrow,"Backdrop",()=>n.MenuBackdrop,"CheckboxItem",()=>r.MenuCheckboxItem,"CheckboxItemIndicator",()=>o.MenuCheckboxItemIndicator,"Group",()=>i.MenuGroup,"GroupLabel",()=>s.MenuGroupLabel,"Handle",0,el,"Item",()=>a.MenuItem,"LinkItem",()=>u.MenuLinkItem,"Popup",()=>l.MenuPopup,"Portal",()=>d.MenuPortal,"Positioner",()=>c.MenuPositioner,"RadioGroup",()=>p.MenuRadioGroup,"RadioItem",()=>f.MenuRadioItem,"RadioItemIndicator",()=>g.MenuRadioItemIndicator,"Root",()=>m.MenuRoot,"Separator",()=>ee.Separator,"SubmenuRoot",()=>v.MenuSubmenuRoot,"SubmenuTrigger",0,es,"Trigger",0,$,"Viewport",0,Z,"createHandle",0,function(){return new el}],160948);var ed=e.i(160948);e.s(["Menu",0,ed],451512)},261027,803414,978921,382370,239613,389554,866506,685996,371714,181194,801545,91384,858307,764270,219712,82264,862050,282593,105953,e=>{"use strict";e.s([],261027);var t=e.i(271645),n=e.i(733332);let r=t.createContext(void 0);function o(e){let o=t.useContext(r);if(void 0===o&&!e)throw Error((0,n.default)(33));return o}e.s(["MenuPositionerContext",0,r,"useMenuPositionerContext",0,o],803414);let i=t.createContext(void 0);function s(e){let r=t.useContext(i);if(void 0===r&&!e)throw Error((0,n.default)(36));return r}e.s(["MenuRootContext",0,i,"useMenuRootContext",0,s],978921);var a=e.i(552245),u=e.i(879938);let l=t.forwardRef(function(e,t){let{render:n,className:r,style:i,...l}=e,{store:d}=s(),{arrowRef:c,side:p,align:f,arrowUncentered:g,arrowStyles:m}=o(),v=d.useState("open");return(0,a.useRenderElement)("div",e,{ref:[c,t],stateAttributesMapping:u.popupStateMapping,state:{open:v,side:p,align:f,uncentered:g},props:{style:m,"aria-hidden":!0,...l}})});e.s(["MenuArrow",0,l],382370);let d=t.createContext(void 0);function c(e=!0){let r=t.useContext(d);if(void 0===r&&!e)throw Error((0,n.default)(25));return r}e.s(["useContextMenuRootContext",0,c],239613);var p=e.i(56434);let f=t.forwardRef(function(e,t){let{render:n,className:r,style:o,...i}=e,{store:l}=s(),d=l.useState("open"),f=l.useState("mounted"),g=l.useState("transitionStatus"),m=l.useState("lastOpenChangeReason"),v=c();return(0,a.useRenderElement)("div",e,{ref:v?.backdropRef?[t,v.backdropRef]:t,state:{open:d,transitionStatus:g},stateAttributesMapping:u.popupTransitionStateMapping,props:[{role:"presentation",hidden:!f,style:{pointerEvents:m===p.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},i]})});e.s(["MenuBackdrop",0,f],389554);var g=e.i(951437),m=e.i(956789);let v=t.createContext(void 0);var b=e.i(828918),h=e.i(540886),S=e.i(176782),R=e.i(328744),x=e.i(64350);function y(e){let{closeOnClick:n,highlighted:r,id:o,nodeId:i,store:s,typingRef:a,itemRef:u,itemMetadata:l}=e,{events:d}=s.useState("floatingTreeRoot"),f=s.useState("open"),g=c(!0),m=void 0!==g;return t.useMemo(()=>({id:o,role:"menuitem",tabIndex:f&&r?0:-1,onKeyDown(e){" "===e.key&&a?.current&&e.preventDefault()},onMouseMove(e){i&&d.emit("itemhover",{nodeId:i,target:e.currentTarget})},onClick(e){n&&d.emit("close",{domEvent:e,reason:p.REASONS.itemPress})},onMouseUp(e){if(g){let t=g.initialCursorPointRef.current;if(g.initialCursorPointRef.current=null,m&&t&&1>=Math.abs(e.clientX-t.x)&&1>=Math.abs(e.clientY-t.y)||m&&!R.platform.os.mac&&2===e.button)return}u.current&&s.context.allowMouseUpTriggerRef.current&&(!m||2===e.button)&&"regular-item"===l.type&&(0,x.dispatchClickWithModifiers)(u.current,e,{detail:1})}}),[n,r,o,d,i,f,s,a,u,g,m,l])}let E={type:"regular-item"};function M(e){let{closeOnClick:n,disabled:r,highlighted:o,id:i,store:s,typingRef:a=s.context.typingRef,nativeButton:u,itemMetadata:l,nodeId:d}=e,c=t.useRef(null),{getButtonProps:p,buttonRef:f}=(0,h.useButton)({disabled:r,focusableWhenDisabled:!0,native:u,composite:!0}),g=y({closeOnClick:n,highlighted:o,id:i,nodeId:d,store:s,typingRef:a,itemRef:c,itemMetadata:l}),m=t.useCallback(e=>(0,S.mergeProps)(g,{onMouseEnter(){"submenu-trigger"===l.type&&l.setActive()}},e,p),[g,p,l]),v=(0,b.useMergedRefs)(c,f);return t.useMemo(()=>({getItemProps:m,itemRef:v}),[m,v])}e.s(["REGULAR_ITEM",0,E,"useMenuItem",0,M],866506);var I=e.i(673553),k=e.i(788015);let C={checked:e=>e?{"data-checked":""}:{"data-unchecked":""},...e.i(474354).transitionStatusMapping};var O=e.i(675606),T=e.i(843476);let w=t.forwardRef(function(e,n){let{render:r,className:i,id:u,label:l,nativeButton:d=!1,disabled:c=!1,closeOnClick:f=!1,checked:b,defaultChecked:h,onCheckedChange:S,style:R,...x}=e,y=(0,I.useCompositeListItem)({guess:!0,label:l}),w=o(!0),A=(0,k.useBaseUiId)(u),{store:P}=s(),N=P.useState("disabled"),L=c||N,D=P.useState("isActive",y.index),F=P.useState("itemProps"),[j,_]=(0,g.useControlled)({controlled:b,default:h??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:H,itemRef:B}=M({closeOnClick:f,disabled:L,highlighted:D,id:A,store:P,nativeButton:d,nodeId:w?.context.nodeId,itemMetadata:E}),U=t.useMemo(()=>({disabled:L,highlighted:D,checked:j}),[L,D,j]),z=(0,a.useRenderElement)("div",e,{state:U,stateAttributesMapping:C,props:[F,{role:"menuitemcheckbox","aria-checked":j,onClick:function(e){let t=(0,O.createChangeEventDetails)(p.REASONS.itemPress,e.nativeEvent,void 0,{preventUnmountOnClose:m.NOOP});S?.(!j,t),t.isCanceled||_(e=>!e)}},x,H],ref:[B,n,y.ref]});return(0,T.jsx)(v.Provider,{value:U,children:z})});e.s(["MenuCheckboxItem",0,w],685996);var A=e.i(223910),P=e.i(137584);let N=t.forwardRef(function(e,r){let{render:o,className:i,style:s,keepMounted:u=!1,...l}=e,d=function(){let e=t.useContext(v);if(void 0===e)throw Error((0,n.default)(30));return e}(),c=t.useRef(null),{transitionStatus:p,mounted:f,setMounted:g}=(0,A.useTransitionStatus)(d.checked);(0,P.useOpenChangeComplete)({batch:!0,enabled:!d.checked,open:d.checked,ref:c,onComplete(){d.checked||g(!1)}});let m={checked:d.checked,disabled:d.disabled,highlighted:d.highlighted,transitionStatus:p};return(0,a.useRenderElement)("span",e,{state:m,ref:[r,c],stateAttributesMapping:C,props:{"aria-hidden":!0,...l},enabled:u||f})});e.s(["MenuCheckboxItemIndicator",0,N],371714);let L=t.createContext(void 0),D=t.forwardRef(function(e,n){let{render:r,className:o,style:i,...s}=e,[u,l]=t.useState(void 0),d=(0,a.useRenderElement)("div",e,{ref:n,props:{role:"group","aria-labelledby":u,...s}});return(0,T.jsx)(L.Provider,{value:l,children:d})});e.s(["MenuGroup",0,D],181194);var F=e.i(146376);let j=t.forwardRef(function(e,r){let{render:o,className:i,style:s,id:u,...l}=e,d=(0,k.useBaseUiId)(u),c=function(){let e=t.useContext(L);if(void 0===e)throw Error((0,n.default)(31));return e}();return(0,F.useIsoLayoutEffect)(()=>(c(d),()=>{c(e=>e===d?void 0:e)}),[c,d]),(0,a.useRenderElement)("div",e,{ref:r,props:{id:d,"aria-hidden":!0,...l}})});e.s(["MenuGroupLabel",0,j],801545);let _=t.forwardRef(function(e,t){let{render:n,className:r,id:i,label:u,nativeButton:l=!1,disabled:d=!1,closeOnClick:c=!0,style:p,...f}=e,g=(0,I.useCompositeListItem)({guess:!0,label:u}),m=o(!0),v=(0,k.useBaseUiId)(i),{store:b}=s(),h=b.useState("disabled"),S=d||h,R=b.useState("isActive",g.index),x=b.useState("itemProps"),{getItemProps:y,itemRef:C}=M({closeOnClick:c,disabled:S,highlighted:R,id:v,store:b,nativeButton:l,nodeId:m?.context.nodeId,itemMetadata:E});return(0,a.useRenderElement)("div",e,{state:{disabled:S,highlighted:R},props:[x,f,y],ref:[C,t,g.ref]})});e.s(["MenuItem",0,_],91384);let H=t.forwardRef(function(e,n){let{render:r,className:i,id:u,label:l,closeOnClick:d=!1,style:c,...p}=e,f=t.useRef(null),g=(0,I.useCompositeListItem)({guess:!0,label:l}),m=o(!0),v=m?.context.nodeId,b=(0,k.useBaseUiId)(u),{store:R}=s(),x=R.useState("isActive",g.index),M=R.useState("itemProps"),C=R.context.typingRef,{getButtonProps:O,buttonRef:T}=(0,h.useButton)({native:!1,composite:!0}),w=y({closeOnClick:d,highlighted:x,id:b,nodeId:v,store:R,typingRef:C,itemRef:f,itemMetadata:E});return(0,a.useRenderElement)("a",e,{state:{highlighted:x},props:[M,p,function(e){return(0,S.mergeProps)(w,e,O)}],ref:[f,T,n,g.ref]})});e.s(["MenuLinkItem",0,H],858307);var B=e.i(61487),U=e.i(431157),z=e.i(96533),W=e.i(673327),Y=e.i(253984);let V=t.forwardRef(function(e,n){let{render:r,className:i,style:l,finalFocus:d,...c}=e,{store:f}=s(),{side:g,align:m}=o(),v=null!=(0,z.useToolbarRootContext)(!0),b=f.useState("open"),h=f.useState("transitionStatus"),S=f.useState("popupProps"),R=f.useState("mounted"),x=f.useState("instantType"),y=f.useState("activeTriggerElement"),E=f.useState("parent"),M=f.useState("lastOpenChangeReason"),I=f.useState("rootId"),k=f.useState("floatingRootContext"),C=f.useState("floatingTreeRoot"),w=f.useState("closeDelay"),A=f.useState("hoverEnabled"),N=f.useState("disabled"),L=f.useState("openMethod"),D="context-menu"===E.type;(0,P.useOpenChangeComplete)({open:b,ref:f.context.popupRef,onComplete(){b&&f.context.onOpenChangeComplete?.(!0)}}),t.useEffect(()=>{function e(e){f.setOpen(!1,(0,O.createChangeEventDetails)(e.reason,e.domEvent))}return C.events.on("close",e),()=>{C.events.off("close",e)}},[C.events,f]),(0,U.useHoverFloatingInteraction)(k,{enabled:A&&!N&&!D&&"menubar"!==E.type,closeDelay:w});let F=f.useStateSetter("popupElement"),j={transitionStatus:h,side:g,align:m,open:b,nested:"menu"===E.type,instant:x},_=(0,a.useRenderElement)("div",e,{state:j,ref:[n,f.context.popupRef,F],stateAttributesMapping:u.popupTransitionStateMapping,props:[S,{onKeyDown(e){v&&W.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,Y.getDisabledMountTransitionStyles)(h),c,{"data-rootownerid":I}]}),H=void 0===E.type||D;return(y||"menubar"===E.type&&M!==p.REASONS.outsidePress)&&(H=!0),(0,T.jsx)(B.FloatingFocusManager,{context:k,openInteractionType:L,modal:D,disabled:!R,returnFocus:void 0===d?H:d,initialFocus:"menu"!==E.type,restoreFocus:!0,externalTree:"menubar"!==E.type?C:void 0,previousFocusableElement:y,nextFocusableElement:void 0===E.type?f.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:void 0===E.type?f.context.beforeContentFocusGuardRef:void 0,children:_})});e.s(["MenuPopup",0,V],764270);var K=e.i(726674);let G=t.createContext(void 0),q=t.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:o,parent:i}=s();if(!(o.useState("mounted")||n))return null;let a="menu"===i.type||"menubar"===i.type?"group":void 0;return(0,T.jsx)(G.Provider,{value:n,children:(0,T.jsx)(K.FloatingPortal,{ref:t,...r,portalOwnerRole:a})})});e.s(["MenuPortal",0,q],219712);var J=e.i(144394),$=e.i(439957),X=e.i(46420),Q=e.i(923706),Z=e.i(53687),ee=e.i(426),et=e.i(638396),en=e.i(222640),er=e.i(789579),eo=e.i(33383);let ei=t.forwardRef(function(e,o){let{anchor:i,positionMethod:a="absolute",className:u,render:l,side:d,align:f,sideOffset:g=0,alignOffset:m=0,collisionBoundary:v="clipping-ancestors",collisionPadding:b=5,arrowPadding:h=5,sticky:S=!1,disableAnchorTracking:R=!1,collisionAvoidance:x=et.DROPDOWN_COLLISION_AVOIDANCE,style:y,...E}=e,{store:M}=s(),I=function(){let e=t.useContext(G);if(void 0===e)throw Error((0,n.default)(32));return e}(),k=c(!0),C=M.useState("parent"),w=M.useState("floatingRootContext"),A=M.useState("floatingTreeRoot"),P=M.useState("mounted"),N=M.useState("open"),L=M.useState("modal"),D=M.useState("openMethod"),j=M.useState("activeTriggerElement"),_=M.useState("transitionStatus"),H=M.useState("positionerElement"),B=M.useState("instantType"),U=M.useState("adaptiveOrigin"),z=M.useState("lastOpenChangeReason"),W=M.useState("floatingNodeId"),Y=M.useState("floatingParentNodeId"),V=w.useState("domReferenceElement"),K=t.useRef(null),q=(0,en.useAnimationsFinished)(H),ei=i,es=g,ea=m,eu=f,el=x;"context-menu"===C.type&&(ei=i??C.context?.anchor,eu=eu??"start",d||"center"===eu||(ea=e.alignOffset??2,es=e.sideOffset??-5));let ed=d,ec=eu;"menu"===C.type?(ed=ed??"inline-end",ec=ec??"start",el=e.collisionAvoidance??et.POPUP_COLLISION_AVOIDANCE):"menubar"===C.type&&(ed=ed??("vertical"===C.context.orientation?"inline-end":"bottom"),ec=ec??"start");let ep="context-menu"===C.type,ef=(0,Q.useAnchorPositioning)({anchor:ei,floatingRootContext:w,positionMethod:k?"fixed":a,mounted:P,side:ed,sideOffset:es,align:ec,alignOffset:ea,arrowPadding:ep?0:h,collisionBoundary:v,collisionPadding:b,sticky:S,nodeId:W,keepMounted:I,disableAnchorTracking:R,collisionAvoidance:el,shift:ep?{crossAxis:!("side"in el&&"flip"===el.side),rootBoundary:"layoutViewport"}:void 0,externalTree:A,adaptiveOrigin:U});t.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===W&&M.set("hoverEnabled",!1),e.nodeId!==W&&e.parentNodeId===M.select("floatingParentNodeId")&&M.setOpen(!1,(0,O.createChangeEventDetails)(p.REASONS.siblingOpen)))}return A.events.on("menuopenchange",e),()=>{A.events.off("menuopenchange",e)}},[M,A.events,W]),t.useEffect(()=>{if(null!=M.select("floatingParentNodeId"))return A.events.on("menuopenchange",e),()=>{A.events.off("menuopenchange",e)};function e(e){if(e.open||e.nodeId!==M.select("floatingParentNodeId"))return;let t=e.reason??p.REASONS.siblingOpen;M.setOpen(!1,(0,O.createChangeEventDetails)(t))}},[A.events,M]);let eg=(0,$.useTimeout)();t.useEffect(()=>{N||eg.clear()},[N,eg]),t.useEffect(()=>{function e(e){if(N&&e.nodeId===M.select("floatingParentNodeId"))if(e.target&&j&&j!==e.target){let e=M.select("closeDelay");e>0?eg.isStarted()||eg.start(e,()=>{M.setOpen(!1,(0,O.createChangeEventDetails)(p.REASONS.siblingOpen))}):M.setOpen(!1,(0,O.createChangeEventDetails)(p.REASONS.siblingOpen))}else eg.clear()}return A.events.on("itemhover",e),()=>{A.events.off("itemhover",e)}},[A.events,N,j,M,eg]),t.useEffect(()=>{let e={open:N,nodeId:W,parentNodeId:Y,reason:M.select("lastOpenChangeReason")};A.events.emit("menuopenchange",e)},[A.events,N,M,W,Y]),(0,F.useIsoLayoutEffect)(()=>{let e=K.current;if(V&&(K.current=V),e&&V&&V!==e){M.set("instantType",void 0);let e=new AbortController;return q(()=>{M.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[V,q,M]);let em={open:N,side:ef.side,align:ef.align,anchorHidden:ef.anchorHidden,nested:"menu"===C.type,instant:B},ev="menubar"===C.type&&C.context.modal,eb=L&&z!==p.REASONS.triggerHover;(0,eo.useAnchoredPopupScrollLock)(N&&(ev||eb),"touch"===D,H,j);let eh=(0,er.usePositioner)(e,em,{styles:ef.positionerStyles,transitionStatus:_,props:E,refs:[o,M.useStateSetter("positionerElement")],hidden:!P,inert:!N}),eS=P&&"menu"!==C.type&&("menubar"!==C.type&&L&&z!==p.REASONS.triggerHover||"menubar"===C.type&&C.context.modal),eR=null;return"menubar"===C.type?eR=C.context.contentElement:void 0===C.type&&(eR=j),(0,T.jsxs)(r.Provider,{value:ef,children:[eS&&(0,T.jsx)(ee.InternalBackdrop,{ref:"context-menu"===C.type||"nested-context-menu"===C.type?C.context.internalBackdropRef:null,inert:(0,J.inertValue)(!N),cutout:eR}),(0,T.jsx)(X.FloatingNode,{id:W,children:(0,T.jsx)(Z.CompositeList,{elementsRef:M.context.itemDomElements,labelsRef:M.context.itemLabels,children:eh})})]})});e.s(["MenuPositioner",0,ei],82264);var es=e.i(667865);let ea=t.createContext(void 0),eu=t.memo(t.forwardRef(function(e,n){let{render:r,className:o,value:i,defaultValue:s,onValueChange:u,disabled:l=!1,style:d,"aria-labelledby":c,...p}=e,[f,m]=t.useState(void 0),[v,b]=(0,g.useControlled)({controlled:i,default:s,name:"MenuRadioGroup"}),h=(0,es.useStableCallback)((e,t)=>{u?.(e,t),t.isCanceled||b(e)}),S=(0,a.useRenderElement)("div",e,{state:{disabled:l},ref:n,props:{role:"group","aria-labelledby":c??f,"aria-disabled":l||void 0,...p}}),R=t.useMemo(()=>({value:v,setValue:h,disabled:l}),[v,h,l]);return(0,T.jsx)(L.Provider,{value:m,children:(0,T.jsx)(ea.Provider,{value:R,children:S})})}));e.s(["MenuRadioGroup",0,eu],862050);let el=t.createContext(void 0),ed=t.forwardRef(function(e,r){let{render:i,className:u,id:l,label:d,nativeButton:c=!1,disabled:f=!1,closeOnClick:g=!1,value:v,style:b,...h}=e,S=(0,I.useCompositeListItem)({guess:!0,label:d}),R=o(!0),x=(0,k.useBaseUiId)(l),{store:y}=s(),w=y.useState("isActive",S.index),A=y.useState("itemProps"),{value:P,setValue:N,disabled:L}=function(){let e=t.useContext(ea);if(void 0===e)throw Error((0,n.default)(34));return e}(),D=y.useState("disabled"),F=f||L||D,j=P===v,{getItemProps:_,itemRef:H}=M({closeOnClick:g,disabled:F,highlighted:w,id:x,store:y,nativeButton:c,nodeId:R?.context.nodeId,itemMetadata:E}),B=t.useMemo(()=>({disabled:F,highlighted:w,checked:j}),[F,w,j]),U=(0,a.useRenderElement)("div",e,{state:B,stateAttributesMapping:C,props:[A,{role:"menuitemradio","aria-checked":j,onClick:function(e){N(v,(0,O.createChangeEventDetails)(p.REASONS.itemPress,e.nativeEvent,void 0,{preventUnmountOnClose:m.NOOP}))}},h,_],ref:[H,r,S.ref]});return(0,T.jsx)(el.Provider,{value:B,children:U})});e.s(["MenuRadioItem",0,ed],282593);let ec=t.forwardRef(function(e,r){let{render:o,className:i,style:s,keepMounted:u=!1,...l}=e,d=function(){let e=t.useContext(el);if(void 0===e)throw Error((0,n.default)(35));return e}(),c=t.useRef(null),{transitionStatus:p,mounted:f,setMounted:g}=(0,A.useTransitionStatus)(d.checked);(0,P.useOpenChangeComplete)({batch:!0,enabled:!d.checked,open:d.checked,ref:c,onComplete(){d.checked||g(!1)}});let m={checked:d.checked,disabled:d.disabled,highlighted:d.highlighted,transitionStatus:p};return(0,a.useRenderElement)("span",e,{state:m,stateAttributesMapping:C,ref:[r,c],props:{"aria-hidden":!0,...l},enabled:u||f})});e.s(["MenuRadioItemIndicator",0,ec],105953)},63947,507447,536481,874671,277450,e=>{"use strict";var t=e.i(271645),n=e.i(439957),r=e.i(667865),o=e.i(883977),i=e.i(146376),s=e.i(388940),a=e.i(956789),u=e.i(896499),l=e.i(46420),d=e.i(17989),c=e.i(260891),p=e.i(736760),f=e.i(350527),g=e.i(978921),m=e.i(733332);let v=t.createContext(null);function b(e){let n=t.useContext(v);if(null===n&&!e)throw Error((0,m.default)(5));return n}e.s(["useMenubarContext",0,b],507447);var h=e.i(638396),S=e.i(872855),R=e.i(32199),x=e.i(675606),y=e.i(56434),E=e.i(239613),M=e.i(176782),I=e.i(222640),k=e.i(301252),C=e.i(379248),O=e.i(18478),T=e.i(116786),w=e.i(990627);let A={...T.popupStoreSelectors,disabled:e=>"menubar"===e.parent.type&&e.parent.context.disabled||e.disabled,modal:e=>(void 0===e.parent.type||"context-menu"===e.parent.type)&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>"menu"===e.parent.type?e.parent.store.select("rootId"):void 0!==e.parent.type?e.parent.context.rootId:e.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>"menu"===e.parent.type?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>e.keyboardEventRelay?e.keyboardEventRelay:"menu"===e.parent.type?e.parent.store.select("keyboardEventRelay"):void 0};class P extends k.ReactStore{constructor(e,t,n=!1){const r=new w.PopupTriggerMap;super(L(r,t,n,e),N(r),A),this.unsubscribeParentListener=this.observe("parent",e=>{if(this.unsubscribeParentListener?.(),"menu"===e.type){let t=e.store.select("rootId"),n=e.store.select("floatingTreeRoot"),r=e.store.select("keyboardEventRelay");this.unsubscribeParentListener=e.store.subscribe(()=>{let o=e.store.select("rootId"),i=e.store.select("floatingTreeRoot"),s=e.store.select("keyboardEventRelay");(t!==o||n!==i||r!==s)&&(t=o,n=i,r=s,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}void 0!==e.type&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit("setOpen",{open:e,eventDetails:t})}unsubscribeParentListener=null}function N(e){return{positionerRef:t.createRef(),popupRef:t.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:t.createRef(),beforeContentFocusGuardRef:t.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function L(e,t,n=!1,r){return{...(0,T.createInitialPopupStoreState)(e,t,n),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new C.FloatingTreeStore,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:a.EMPTY_OBJECT,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}e.s(["MenuStore",0,P,"createNullMenuStore",0,function(){let e=new w.PopupTriggerMap;return Object.assign(new O.NullStore(Object.freeze(L(e)),Object.freeze(N(e)),A),{setOpen:a.NOOP})}],536481);var D=e.i(264111);let F=t.createContext(void 0);function j(){return t.useContext(F)}e.s(["MenuSubmenuRootContext",0,F,"useMenuSubmenuRootContext",0,j],874671);var _=e.i(843476);let H=(0,u.fastComponent)(function(e){var u,m,v;let k,{children:C,open:O,onOpenChange:T,onOpenChangeComplete:w,defaultOpen:A=!1,disabled:N=!1,modal:L,loopFocus:F=!0,orientation:H="vertical",actionsRef:B,closeParentOnEsc:U=!1,handle:z,triggerId:W,defaultTriggerId:Y=null,highlightItemOnHover:V=!0}=e,K=(0,E.useContextMenuRootContext)(!0),G=(0,g.useMenuRootContext)(!0),q=b(!0),J=j(),$=t.useMemo(()=>J&&G?{type:"menu",store:G.store}:q?{type:"menubar",context:q}:K&&!G?{type:"context-menu",context:K}:{type:void 0},[K,G,q,J]),X=(0,o.useId)(),Q=(0,o.useId)(),Z=(0,l.useFloatingParentNodeId)(),ee="menu"===$.type?$.store:void 0,et=(O??A)&&ee?.state.transitionStatus==="starting",en=(0,s.useRefWithInit)(()=>et?ee?.state.instantType:void 0).current,er=(u={open:A,openProp:O,activeTriggerId:Y,triggerIdProp:W,parent:$,disabled:N,highlightItemOnHover:V,modal:void 0===$.type?L:void 0,rootId:X,instantType:en},m=Q,v=null!=Z,(0,s.useRefWithInit)(()=>new P(u,m,v)).current);er.useControlledProp("openProp",O),er.useControlledProp("triggerIdProp",W),er.useContextCallback("onOpenChangeComplete",w);let eo=er.useState("floatingTreeRoot"),ei=(0,l.useFloatingNodeId)(eo),es=er.useState("open"),ea=er.useState("activeTriggerElement"),eu=er.useState("positionerElement"),el=er.useState("hoverEnabled"),ed=er.useState("disabled"),ec=er.useState("lastOpenChangeReason"),ep=er.useState("parent"),ef=er.useState("activeIndex"),eg=er.useState("payload"),em=er.useState("floatingParentNodeId"),ev=t.useRef(null),eb=t.useRef("context-menu"!==ep.type),eh=(0,n.useTimeout)(),eS=t.useRef(!0),eR=(0,n.useTimeout)(),ex=null!=em,{openMethod:ey,triggerProps:eE}=(0,R.useOpenInteractionType)(es);er.useSyncedValues({disabled:N,highlightItemOnHover:V,modal:void 0===ep.type?L:void 0,openMethod:ey,rootId:X}),(0,D.useImplicitActiveTrigger)(er);let{forceUnmount:eM,transitionStatus:eI}=(0,D.useOpenStateTransitions)(es,er,()=>{er.set("allowMouseEnter",!1)},et),ek=(0,I.useAnimationsFinished)(er.context.popupRef);t.useEffect(()=>{if(void 0===en)return;let e=()=>{er.state.instantType===en&&er.set("instantType",void 0)};if(!es)return void e();if(void 0!==eI)return;if(null==er.context.popupRef.current)return void e();let t=new AbortController;return ek(e,t.signal),()=>{t.abort()}},[en,es,eI,ek,er]),(0,i.useIsoLayoutEffect)(()=>{K&&!G?er.update({parent:{type:"context-menu",context:K},floatingNodeId:ei,floatingParentNodeId:Z}):G&&er.update({floatingNodeId:ei,floatingParentNodeId:Z})},[K,G,ei,Z,er]),t.useEffect(()=>{if(es||(ev.current=null),"context-menu"===ep.type){if(!es){eh.clear(),eb.current=!1;return}eh.start(500,()=>{eb.current=!0})}},[eh,es,ep.type]),(0,i.useIsoLayoutEffect)(()=>{es||el||er.set("hoverEnabled",!0)},[es,el,er]);let eC=(0,r.useStableCallback)((e,t)=>{let n=t.reason;if(!e&&!er.select("open")||es===e&&t.trigger===ea&&ec===n)return;let r=(0,D.attachPreventUnmountOnClose)(t);if(e||null!=t.trigger||(t.trigger=ea??void 0),T?.(e,t),t.isCanceled)return;er.state.floatingRootContext.dispatchOpenChange(e,t);let o=t.event;if(!1===e&&o?.type==="click"&&"touch"===o.pointerType&&!eS.current)return;e&&n===y.REASONS.triggerFocus?(eS.current=!1,eR.start(300,()=>{eS.current=!0})):(eS.current=!0,eR.clear());let i=(n===y.REASONS.triggerPress||n===y.REASONS.itemPress)&&0===o.detail,s=!e&&(n===y.REASONS.escapeKey||null==n);ev.current=t.event;let a=(0,D.createPopupOpenState)(er.state,e,t.trigger,r());a.openChangeReason=n,"menubar"===ep.type&&(n===y.REASONS.triggerFocus||n===y.REASONS.focusOut||n===y.REASONS.triggerHover||n===y.REASONS.listNavigation||n===y.REASONS.siblingOpen)?a.instantType="group":i||s?a.instantType=i?"click":"dismiss":a.instantType=void 0,er.update(a)}),eO=(0,f.useSyncedFloatingRootContext)({popupStore:er,floatingRootContext:er.state.floatingRootContext,floatingId:Q,nested:null!=Z,onOpenChange:eC}),eT=eO.context.events;(0,i.useIsoLayoutEffect)(()=>{let e=({open:e,eventDetails:t})=>eC(e,t);return eT.on("setOpen",e),()=>{eT?.off("setOpen",e)}},[eT,eC]);let ew=t.useCallback(()=>{er.setOpen(!1,(0,x.createChangeEventDetails)(y.REASONS.imperativeAction))},[er]);t.useImperativeHandle(B,()=>({unmount:eM,close:ew}),[eM,ew]),"context-menu"===ep.type&&(k=ep.context),t.useImperativeHandle(k?.positionerRef,()=>eu,[eu]),t.useImperativeHandle(k?.actionsRef,()=>({setOpen:eC}),[eC]);let eA=(0,d.useDismiss)(eO,{enabled:!ed,bubbles:{escapeKey:U&&"menu"===ep.type},outsidePress:()=>"context-menu"!==ep.type||ev.current?.type==="contextmenu"||eb.current,externalTree:ex?eo:void 0}),eP=(0,S.useDirection)(),eN=t.useCallback(e=>{er.select("activeIndex")!==e&&er.set("activeIndex",e)},[er]),eL=(0,c.useListNavigation)(eO,{enabled:!ed,listRef:er.context.itemDomElements,activeIndex:ef,nested:void 0!==ep.type,loopFocus:F,orientation:H,parentOrientation:"menubar"===ep.type?ep.context.orientation:void 0,rtl:"rtl"===eP,disabledIndices:a.EMPTY_ARRAY,onNavigate:eN,openOnArrowKeyDown:"context-menu"!==ep.type,externalTree:ex?eo:void 0,focusItemOnHover:V}),eD=t.useCallback(e=>{er.context.typingRef.current=e},[er]),eF=(0,p.useTypeahead)(eO,{enabled:!ed,listRef:er.context.itemLabels,elementsRef:er.context.itemDomElements,activeIndex:ef,resetMs:h.TYPEAHEAD_RESET_MS,onMatch:e=>{es&&e!==ef&&er.set("activeIndex",e)},onTyping:eD}),ej=t.useMemo(()=>{let e=(0,M.mergeProps)(eF.reference,eL.reference,eA.reference,{onMouseMove(){er.set("allowMouseEnter",!0)}},eE);return e["aria-haspopup"]="menu",e["aria-expanded"]=es,e},[er,eF.reference,eL.reference,eA.reference,eE,es]),e_=t.useMemo(()=>{let e=(0,M.mergeProps)(eL.trigger,eA.trigger,eE);return e["aria-haspopup"]="menu",e["aria-expanded"]=!1,e},[eL.trigger,eA.trigger,eE]);(0,s.useRefWithInit)(()=>(er.update({inactiveTriggerProps:e_}),null));let eH=t.useMemo(()=>(0,M.mergeProps)(D.FOCUSABLE_POPUP_PROPS,{id:Q,role:"menu","aria-orientation":"horizontal"===H?"horizontal":void 0,"aria-labelledby":ea?.id,onMouseMove(){er.set("allowMouseEnter",!0),"menu"===ep.type&&er.set("hoverEnabled",!1)},onClick(){er.select("hoverEnabled")&&er.set("hoverEnabled",!1)},onKeyDown(e){let t=er.select("keyboardEventRelay");t&&!e.isPropagationStopped()&&t(e)}},eF.floating,eL.floating,eA.floating),[ea,Q,H,ep.type,er,eF.floating,eL.floating,eA.floating]),eB=eL.item??a.EMPTY_OBJECT;(0,D.usePopupInteractionProps)(er,{floatingRootContext:eO,activeTriggerProps:ej,inactiveTriggerProps:e_,popupProps:eH,itemProps:eB});let eU=t.useMemo(()=>({store:er,parent:$}),[er,$]),ez=(0,_.jsxs)(g.MenuRootContext.Provider,{value:eU,children:[z&&(0,_.jsx)(D.PopupHandleAttachment,{handle:z,store:er}),"function"==typeof C?C({payload:eg}):C]});return void 0===ep.type||"context-menu"===ep.type?(0,_.jsx)(l.FloatingTree,{externalTree:eo,children:ez}):ez});e.s(["MenuRoot",0,H],63947),e.s(["MenuSubmenuRoot",0,function(e){let n=(0,g.useMenuRootContext)().store,r=t.useMemo(()=>({parentMenu:n}),[n]);return(0,_.jsx)(F.Provider,{value:r,children:(0,_.jsx)(H,{...e})})}],277450)},264042,e=>{"use strict";var t=e.i(333848),n=e.i(328744);e.s(["isMouseWithinBounds",0,function(e,r){let o=function(e){let r=e.getBoundingClientRect(),o=(0,t.ownerWindow)(e);if(n.platform.env.jsdom)return r;let i=o.getComputedStyle(e,"::before"),s=o.getComputedStyle(e,"::after");if("none"===i.content&&"none"===s.content)return r;let a=parseFloat(i.width)||0,u=parseFloat(i.height)||0,l=parseFloat(s.width)||0,d=parseFloat(s.height)||0,c=Math.max(r.width,a,l),p=Math.max(r.height,u,d),f=c-r.width,g=p-r.height;return{left:r.left-f/2,right:r.right+f/2,top:r.top-g/2,bottom:r.bottom+g/2}}(r);return e.clientX>=o.left-5&&e.clientX<=o.right+5&&e.clientY>=o.top-5&&e.clientY<=o.bottom+5}])},593698,e=>{"use strict";var t=e.i(643957);e.s(["CheckIcon",()=>t.default])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,457343,e=>{"use strict";var t=e.i(843476),s=e.i(867927),n=e.i(632781),a=e.i(648119),i=e.i(929272),r=e.i(759659),o=e.i(263676),l=e.i(271645),d=e.i(798120),c=e.i(167881),u=e.i(630374),x=e.i(463415),h=e.i(917162),m=e.i(660302),p=e.i(671428),f=e.i(41533),g=e.i(856338),j=e.i(95187);let b=(0,j.createServerReference)("7f038abb37957ba7cb2c522ee43c2d00b63bfd9f8c",j.callServer,void 0,j.findSourceMapURL,"clearFinishedThreadsAction"),k=(0,j.createServerReference)("7f2f806ae17425ff9116581e0777a310cb1cfeeb6a",j.callServer,void 0,j.findSourceMapURL,"deleteThreadAction");var N=e.i(451888),w=e.i(635963),v=e.i(835878),y=e.i(222055),S=e.i(351866),T=e.i(978411),M=e.i(431594),D=e.i(895836),C=e.i(245629),R=e.i(609856),z=e.i(661504),A=e.i(283653),I=e.i(647163),$=e.i(399512);let O="w-36";function F({thread:e,bots:a,open:i,onOpen:r,onStop:o,onDelete:d}){let c="running"===e.status,u=(0,l.useMemo)(()=>(0,T.threadFromRow)(e,a),[e,a]),x=function(e){let t=e.room.questions[0];if(t)return{text:(0,I.plainText)(t.text),tone:I.WAITING_INK};if("waiting"===e.status&&e.ask)return{text:(0,N.isAppStop)(e.ask)?(0,I.plainText)(e.outcome??e.ask.question):e.ask.question,tone:I.WAITING_INK};let s=e.seen;if("cancelled"===e.status)return{text:"Stopped",tone:"text-muted-foreground"};if("done"===e.status)return{text:(0,I.plainText)(e.outcome??"Done"),tone:s?"text-muted-foreground":"text-foreground/80"};for(let t=e.lines.length-1;t>=0;t--){let s=e.lines[t];if("tool"===s.kind)return{text:s.note??s.input,tone:"text-muted-foreground",tool:s.name,shine:!0};if("text"===s.kind)return{text:s.text,tone:"text-muted-foreground",shine:!0};if("user"===s.kind)break}return{text:`${e.bot} is taking it on…`,tone:"text-muted-foreground italic",shine:!0}}(e),h=e.tokens.input+e.tokens.output;return(0,t.jsxs)("div",{className:(0,I.cn)("group/row relative transition-colors",i?"bg-muted/80":"hover:bg-muted/50"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsxs)("button",{type:"button",onClick:r,className:"flex min-w-0 flex-1 items-center gap-3 rounded-md text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)(w.BotMark,{size:40,seed:e.bot,...(0,w.markOf)(e.bot,a),state:c?"thinking":"idle",notify:(0,N.needsThreadReply)(e)||(0,N.isUnread)(e),crossed:"cancelled"===e.status,className:"shrink-0"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:e.label}),e.routineId&&(0,t.jsx)("span",{title:"Started by a routine",className:"shrink-0",children:(0,t.jsx)(M.RoutineMark,{className:"size-3 text-muted-foreground/80"})}),(0,t.jsx)(v.BotRoster,{bots:u.roster}),c&&(0,t.jsx)(n.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"})]}),x&&(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-[13px] leading-snug",children:[x.tool&&(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:x.tool}),x.shine?(0,t.jsx)(m.ShinyText,{text:x.text,speed:2.2,className:"min-w-0 truncate"}):(0,t.jsx)("span",{className:(0,I.cn)("min-w-0 truncate",x.tone),children:x.text})]})]}),(0,t.jsxs)("span",{className:(0,I.cn)("flex shrink-0 flex-col items-end gap-0.5 font-mono text-[11px] leading-4 text-muted-foreground tabular-nums",O),children:[(0,t.jsx)("span",{children:(0,C.whenOf)(e.updatedAt)}),(0,t.jsxs)("span",{className:"max-w-full truncate text-muted-foreground/70",title:h>0?`${e.id} \xb7 in ${(0,I.formatCount)(e.tokens.input)} \xb7 out ${(0,I.formatCount)(e.tokens.output)}`:e.id,children:[e.bot,h>0&&` \xb7 ${(0,I.formatCount)(h)}`]})]}),(0,t.jsx)(s.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground"})]}),(0,t.jsx)(K,{thread:e,onStop:o,onDelete:d})]}),c&&(0,t.jsx)(B,{thread:e})]})}function K({thread:e,onStop:s,onDelete:n,className:o}){let l="running"===e.status||"waiting"===e.status;return(0,t.jsxs)(x.DropdownMenu,{children:[(0,t.jsx)(x.DropdownMenuTrigger,{render:(0,t.jsx)(c.Button,{size:"icon-sm",variant:"ghost","aria-label":"More",className:o}),children:(0,t.jsx)(a.MoreHorizontal,{})}),(0,t.jsxs)(x.DropdownMenuContent,{align:"end",children:[l&&(0,t.jsxs)(x.DropdownMenuItem,{onClick:s,children:[(0,t.jsx)(i.Square,{}),"Stop"]}),(0,t.jsxs)(x.DropdownMenuItem,{variant:"destructive",onClick:n,children:[(0,t.jsx)(r.Trash2,{}),"Delete"]})]})]})}function q({thread:e,whole:s,bots:n,onClose:a,onStop:i,onDelete:r}){let[d,x]=(0,l.useState)(null),h=(0,l.useCallback)(e=>{x(e?.closest("[data-slot=dialog-content]")??null)},[]),[m,f]=(0,l.useState)({}),g=(0,l.useMemo)(()=>e?(0,T.threadFromRow)(e,n):null,[e,n]),j=(0,l.useMemo)(()=>s?(0,T.threadFromRow)(s,n):g?.lines.length?g:null,[s,g,n]),b=e?m[e.id]??null:null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{ref:h,hidden:!0}),(0,t.jsx)(u.Dialog,{open:!!(e&&d),onOpenChange:e=>!e&&a(),modal:!1,disablePointerDismissal:!0,children:(0,t.jsx)(u.DialogPortal,{container:d,children:(0,t.jsx)(u.DialogPopup,{className:"absolute inset-y-0 right-0 z-10 flex w-[min(35rem,calc(100%-13rem))] flex-col border-l border-border/60 bg-popover text-popover-foreground shadow-2xl shadow-black/10 duration-150 data-open:animate-in data-open:fade-in-0 data-open:slide-in-from-right-4 data-closed:animate-out data-closed:fade-out-0 data-closed:slide-out-to-right-4",children:e&&g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2.5 pt-3.5 pr-3 pb-1.5 pl-5",children:[(0,t.jsx)(w.BotMark,{size:28,seed:e.bot,...(0,w.markOf)(e.bot,n),state:"running"===e.status?"thinking":"idle",notify:(0,N.needsThreadReply)(e),crossed:"cancelled"===e.status,className:"shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(u.DialogTitle,{className:"sr-only",children:e.label}),(0,t.jsx)("p",{className:"truncate text-[15px] leading-5 font-semibold",children:e.label}),(0,t.jsxs)("div",{className:"mt-0.5 flex min-w-0 items-center gap-2 font-mono text-[11px] text-muted-foreground",children:[(0,t.jsxs)("span",{title:e.id,className:"min-w-0 truncate",children:[e.bot," · ",(0,C.whenOf)(e.updatedAt)]}),(0,t.jsx)(S.ThreadFacts,{thread:g})]})]}),(0,t.jsx)(K,{thread:e,onStop:()=>i(e),onDelete:()=>r(e),className:"text-muted-foreground"}),(0,t.jsx)(u.DialogClose,{render:(0,t.jsx)(c.Button,{size:"icon-sm",variant:"ghost","aria-label":"Close the thread"}),children:(0,t.jsx)(o.X,{})})]}),j?(0,t.jsx)(S.Conversation,{thread:j,tab:b,onTab:t=>f(s=>({...s,[e.id]:t})),className:"max-h-none min-h-0 flex-1 px-5",tabsClassName:"px-5"}):(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 px-5 py-4",children:[(0,t.jsx)(p.Skeleton,{className:"h-3 w-4/5"}),(0,t.jsx)(p.Skeleton,{className:"h-3 w-3/5"}),(0,t.jsx)(p.Skeleton,{className:"h-3 w-2/3"})]}),(0,t.jsx)("div",{className:"shrink-0 px-5 pt-2 pb-4",children:(0,t.jsx)($.ThreadReply,{thread:{id:e.id,label:e.label,bot:e.bot,ask:e.ask,room:e.room},status:e.status,faces:g.roster,to:b??e.bot})})]})})})})]})}function B({thread:e}){let s=[];if(e.lines.forEach((t,n)=>{if("tool"!==t.kind)return;let a=e.lines[n+1];s.push({step:t,took:a?(0,C.toDate)(a.at).getTime()-(0,C.toDate)(t.at).getTime():null})}),0===s.length)return null;let a=(0,C.toDate)(e.updatedAt).getTime()-(0,C.toDate)(e.createdAt).getTime();return(0,t.jsxs)("div",{className:"pointer-events-none absolute top-[calc(100%-0.75rem)] left-17 z-20 hidden w-96 max-w-[calc(100%-5rem)] rounded-xl bg-background p-3 pb-2 shadow-xl shadow-black/10 ring-1 ring-border/60 group-hover/row:block",children:[(0,t.jsxs)("div",{className:"mb-1.5 flex items-center gap-2 font-mono text-[10px] text-muted-foreground",children:[(0,t.jsx)("span",{children:e.bot}),(0,t.jsx)("span",{className:"opacity-50",children:"·"}),(0,t.jsxs)("span",{children:[s.length," ",1===s.length?"step":"steps"]}),(0,t.jsx)("span",{className:"opacity-50",children:"·"}),(0,t.jsx)("span",{children:P(a)})]}),s.slice(-6).map(({step:e,took:s})=>{let a=(0,y.toolIcon)(e.name);return(0,t.jsxs)("div",{className:"flex h-5.5 items-center gap-2 font-mono text-[11px]",children:[null===s?(0,t.jsx)(n.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"}):(0,t.jsx)(a,{className:"size-3 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"w-24 shrink-0 truncate text-muted-foreground",children:e.name}),null===s?(0,t.jsx)(m.ShinyText,{text:e.note??e.input,speed:2.2,className:"min-w-0 flex-1 truncate"}):(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-foreground",children:e.note??e.input}),(0,t.jsx)("span",{className:"w-10 shrink-0 text-right text-muted-foreground/70 tabular-nums",children:null===s?"":P(s)})]},e.id)})]})}function P(e){let t=Math.max(0,e)/1e3;if(t<10)return`${t.toFixed(1)}s`;if(t<60)return`${Math.round(t)}s`;let s=Math.floor(t/60);return`${s}m ${Math.round(t-60*s)}s`}function L(){return(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsx)(p.Skeleton,{className:"size-10 shrink-0 rounded-full"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-2",children:[(0,t.jsx)(p.Skeleton,{className:"h-3 w-40 max-w-full"}),(0,t.jsx)(p.Skeleton,{className:"h-2.5 w-80 max-w-full"})]}),(0,t.jsxs)("span",{className:(0,I.cn)("flex shrink-0 flex-col items-end gap-1.5",O),children:[(0,t.jsx)(p.Skeleton,{className:"h-2.5 w-12"}),(0,t.jsx)(p.Skeleton,{className:"h-2.5 w-24"})]}),(0,t.jsx)("span",{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"size-7 shrink-0"})]})}e.s(["ThreadSetting",0,function(){let[e,s]=(0,l.useState)(null),[n,a]=(0,l.useState)(""),{data:i}=(0,A.useServerRoute)(d.queryKey.bot),{items:r,isLoading:o,isLoadingMore:u,error:x,hasMore:m,sentinelRef:p}=(0,z.useServerPages)({key:(e,t)=>{if(0===e)return d.queryKey.threadHistory(null);let s=t?.at(-1);return s?d.queryKey.threadHistory((0,C.toDate)(s.updatedAt).toISOString()):null},size:f.PAGE_SIZE}),j=r.find(t=>t.id===e),{data:w}=(0,A.useServerRoute)(e?d.queryKey.thread(e):null),v=w?.id===e?w:void 0;(0,T.useSeenOnDetail)(j);let[y]=(0,R.useServerAction)(g.cancelThreadAction,{onOk:e=>{(0,A.revalidate)(d.queryKey.threads),T.screenActs.announce({kind:"stopped",id:e.id,label:e.label})}}),[S]=(0,R.useServerAction)(k,{onOk:()=>(0,A.revalidate)(d.queryKey.threads)}),[M]=(0,R.useServerAction)(b,{onOk:()=>(0,A.revalidate)(d.queryKey.threads)}),I=n.trim().toLowerCase(),$=I?r.filter(e=>[e.label,e.outcome,e.bot].join(" ").toLowerCase().includes(I)):r,O=async()=>{await h.notify.confirm({title:"Clear finished jobs?",description:"Everything done or stopped goes, messages included. Running and waiting jobs stay.",okText:"Clear",destructive:!0})&&M()},K=async t=>{if(!await h.notify.confirm({title:`Delete "${t.label}"?`,description:"Its messages go with it — nothing can be picked back up.",okText:"Delete",destructive:!0}))return;let n=$.findIndex(e=>e.id===t.id),a=$[n+1]??$[n-1];try{await S(t.id)}catch{return}t.id===e&&s(a?.id??null)};if(o)return(0,t.jsx)(D.SettingSkeleton,{rows:3});if(x)return(0,t.jsx)(D.SettingError,{message:x.message});let B=r.filter(e=>"waiting"===e.status).length,P=r.filter(N.isUnread).length;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.SettingScreen,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(D.SettingRailNote,{children:[r.length," shown",B>0&&` \xb7 ${B} waiting on you`,P>0&&` \xb7 ${P} new result${1===P?"":"s"}`]}),(m||r.some(e=>"done"===e.status||"cancelled"===e.status))&&(0,t.jsx)(c.Button,{variant:"outline",size:"sm",onClick:O,children:"Clear finished"})]}),children:(0,t.jsx)(D.SettingGroup,{filter:(0,t.jsx)(D.SettingFilter,{value:n,onChange:a,placeholder:"Filter by label, bot or word"}),right:I?`${$.length} of ${r.length}`:void 0,children:(0,t.jsxs)(D.SettingItems,{children:[0===$.length?(0,t.jsx)("p",{className:"p-4 text-sm leading-relaxed text-muted-foreground",children:I?"Nothing here matches. Keep scrolling to search further back.":"Nothing yet. When Thursday hands a job to a bot mid-call, it shows up here — while it runs, and after."}):$.map(e=>(0,t.jsx)(F,{thread:e,bots:i,open:e.id===j?.id,onOpen:()=>s(e.id),onStop:()=>y(e.id),onDelete:()=>K(e)},e.id)),(0,t.jsx)(D.SettingMore,{hasMore:m,loading:u,sentinelRef:p,ghost:(0,t.jsx)(L,{}),className:"divide-y divide-border/60"})]})})}),(0,t.jsx)(q,{thread:j,whole:v,bots:i,onClose:()=>s(null),onStop:e=>y(e.id),onDelete:K})]})}],457343)},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},759659,e=>{"use strict";var t=e.i(456420);let s={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};s.node;let n=(0,t.default)(s);e.s(["Trash2",0,n],759659)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,457343,e=>{"use strict";var t=e.i(843476),s=e.i(867927),n=e.i(632781),a=e.i(648119),i=e.i(929272),r=e.i(759659),o=e.i(263676),l=e.i(271645),d=e.i(798120),c=e.i(167881),u=e.i(630374),x=e.i(463415),h=e.i(917162),m=e.i(660302),p=e.i(671428),f=e.i(41533),g=e.i(236805),j=e.i(95187);let b=(0,j.createServerReference)("7febffcb1100910f5a48f0c69005256ece858ef945",j.callServer,void 0,j.findSourceMapURL,"clearFinishedThreadsAction"),k=(0,j.createServerReference)("7fce19c8ccf864c3c04cd86620c05f935dffdbd4e7",j.callServer,void 0,j.findSourceMapURL,"deleteThreadAction");var N=e.i(451888),w=e.i(635963),v=e.i(835878),y=e.i(222055),S=e.i(351866),T=e.i(978411),M=e.i(431594),D=e.i(895836),C=e.i(245629),R=e.i(609856),z=e.i(661504),A=e.i(283653),I=e.i(647163),$=e.i(399512);let O="w-36";function F({thread:e,bots:a,open:i,onOpen:r,onStop:o,onDelete:d}){let c="running"===e.status,u=(0,l.useMemo)(()=>(0,T.threadFromRow)(e,a),[e,a]),x=function(e){let t=e.room.questions[0];if(t)return{text:(0,I.plainText)(t.text),tone:I.WAITING_INK};if("waiting"===e.status&&e.ask)return{text:(0,N.isAppStop)(e.ask)?(0,I.plainText)(e.outcome??e.ask.question):e.ask.question,tone:I.WAITING_INK};let s=e.seen;if("cancelled"===e.status)return{text:"Stopped",tone:"text-muted-foreground"};if("done"===e.status)return{text:(0,I.plainText)(e.outcome??"Done"),tone:s?"text-muted-foreground":"text-foreground/80"};for(let t=e.lines.length-1;t>=0;t--){let s=e.lines[t];if("tool"===s.kind)return{text:s.note??s.input,tone:"text-muted-foreground",tool:s.name,shine:!0};if("text"===s.kind)return{text:s.text,tone:"text-muted-foreground",shine:!0};if("user"===s.kind)break}return{text:`${e.bot} is taking it on…`,tone:"text-muted-foreground italic",shine:!0}}(e),h=e.tokens.input+e.tokens.output;return(0,t.jsxs)("div",{className:(0,I.cn)("group/row relative transition-colors",i?"bg-muted/80":"hover:bg-muted/50"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsxs)("button",{type:"button",onClick:r,className:"flex min-w-0 flex-1 items-center gap-3 rounded-md text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)(w.BotMark,{size:40,seed:e.bot,...(0,w.markOf)(e.bot,a),state:c?"thinking":"idle",notify:(0,N.needsThreadReply)(e)||(0,N.isUnread)(e),crossed:"cancelled"===e.status,className:"shrink-0"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:e.label}),e.routineId&&(0,t.jsx)("span",{title:"Started by a routine",className:"shrink-0",children:(0,t.jsx)(M.RoutineMark,{className:"size-3 text-muted-foreground/80"})}),(0,t.jsx)(v.BotRoster,{bots:u.roster}),c&&(0,t.jsx)(n.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"})]}),x&&(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-[13px] leading-snug",children:[x.tool&&(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:x.tool}),x.shine?(0,t.jsx)(m.ShinyText,{text:x.text,speed:2.2,className:"min-w-0 truncate"}):(0,t.jsx)("span",{className:(0,I.cn)("min-w-0 truncate",x.tone),children:x.text})]})]}),(0,t.jsxs)("span",{className:(0,I.cn)("flex shrink-0 flex-col items-end gap-0.5 font-mono text-[11px] leading-4 text-muted-foreground tabular-nums",O),children:[(0,t.jsx)("span",{children:(0,C.whenOf)(e.updatedAt)}),(0,t.jsxs)("span",{className:"max-w-full truncate text-muted-foreground/70",title:h>0?`${e.id} \xb7 in ${(0,I.formatCount)(e.tokens.input)} \xb7 out ${(0,I.formatCount)(e.tokens.output)}`:e.id,children:[e.bot,h>0&&` \xb7 ${(0,I.formatCount)(h)}`]})]}),(0,t.jsx)(s.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground"})]}),(0,t.jsx)(K,{thread:e,onStop:o,onDelete:d})]}),c&&(0,t.jsx)(B,{thread:e})]})}function K({thread:e,onStop:s,onDelete:n,className:o}){let l="running"===e.status||"waiting"===e.status;return(0,t.jsxs)(x.DropdownMenu,{children:[(0,t.jsx)(x.DropdownMenuTrigger,{render:(0,t.jsx)(c.Button,{size:"icon-sm",variant:"ghost","aria-label":"More",className:o}),children:(0,t.jsx)(a.MoreHorizontal,{})}),(0,t.jsxs)(x.DropdownMenuContent,{align:"end",children:[l&&(0,t.jsxs)(x.DropdownMenuItem,{onClick:s,children:[(0,t.jsx)(i.Square,{}),"Stop"]}),(0,t.jsxs)(x.DropdownMenuItem,{variant:"destructive",onClick:n,children:[(0,t.jsx)(r.Trash2,{}),"Delete"]})]})]})}function q({thread:e,whole:s,bots:n,onClose:a,onStop:i,onDelete:r}){let[d,x]=(0,l.useState)(null),h=(0,l.useCallback)(e=>{x(e?.closest("[data-slot=dialog-content]")??null)},[]),[m,f]=(0,l.useState)({}),g=(0,l.useMemo)(()=>e?(0,T.threadFromRow)(e,n):null,[e,n]),j=(0,l.useMemo)(()=>s?(0,T.threadFromRow)(s,n):g?.lines.length?g:null,[s,g,n]),b=e?m[e.id]??null:null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{ref:h,hidden:!0}),(0,t.jsx)(u.Dialog,{open:!!(e&&d),onOpenChange:e=>!e&&a(),modal:!1,disablePointerDismissal:!0,children:(0,t.jsx)(u.DialogPortal,{container:d,children:(0,t.jsx)(u.DialogPopup,{className:"absolute inset-y-0 right-0 z-10 flex w-[min(35rem,calc(100%-13rem))] flex-col border-l border-border/60 bg-popover text-popover-foreground shadow-2xl shadow-black/10 duration-150 data-open:animate-in data-open:fade-in-0 data-open:slide-in-from-right-4 data-closed:animate-out data-closed:fade-out-0 data-closed:slide-out-to-right-4",children:e&&g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2.5 pt-3.5 pr-3 pb-1.5 pl-5",children:[(0,t.jsx)(w.BotMark,{size:28,seed:e.bot,...(0,w.markOf)(e.bot,n),state:"running"===e.status?"thinking":"idle",notify:(0,N.needsThreadReply)(e),crossed:"cancelled"===e.status,className:"shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(u.DialogTitle,{className:"sr-only",children:e.label}),(0,t.jsx)("p",{className:"truncate text-[15px] leading-5 font-semibold",children:e.label}),(0,t.jsxs)("div",{className:"mt-0.5 flex min-w-0 items-center gap-2 font-mono text-[11px] text-muted-foreground",children:[(0,t.jsxs)("span",{title:e.id,className:"min-w-0 truncate",children:[e.bot," · ",(0,C.whenOf)(e.updatedAt)]}),(0,t.jsx)(S.ThreadFacts,{thread:g})]})]}),(0,t.jsx)(K,{thread:e,onStop:()=>i(e),onDelete:()=>r(e),className:"text-muted-foreground"}),(0,t.jsx)(u.DialogClose,{render:(0,t.jsx)(c.Button,{size:"icon-sm",variant:"ghost","aria-label":"Close the thread"}),children:(0,t.jsx)(o.X,{})})]}),j?(0,t.jsx)(S.Conversation,{thread:j,tab:b,onTab:t=>f(s=>({...s,[e.id]:t})),className:"max-h-none min-h-0 flex-1 px-5",tabsClassName:"px-5"}):(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 px-5 py-4",children:[(0,t.jsx)(p.Skeleton,{className:"h-3 w-4/5"}),(0,t.jsx)(p.Skeleton,{className:"h-3 w-3/5"}),(0,t.jsx)(p.Skeleton,{className:"h-3 w-2/3"})]}),(0,t.jsx)("div",{className:"shrink-0 px-5 pt-2 pb-4",children:(0,t.jsx)($.ThreadReply,{thread:{id:e.id,label:e.label,bot:e.bot,ask:e.ask,room:e.room},status:e.status,faces:g.roster,to:b??e.bot})})]})})})})]})}function B({thread:e}){let s=[];if(e.lines.forEach((t,n)=>{if("tool"!==t.kind)return;let a=e.lines[n+1];s.push({step:t,took:a?(0,C.toDate)(a.at).getTime()-(0,C.toDate)(t.at).getTime():null})}),0===s.length)return null;let a=(0,C.toDate)(e.updatedAt).getTime()-(0,C.toDate)(e.createdAt).getTime();return(0,t.jsxs)("div",{className:"pointer-events-none absolute top-[calc(100%-0.75rem)] left-17 z-20 hidden w-96 max-w-[calc(100%-5rem)] rounded-xl bg-background p-3 pb-2 shadow-xl shadow-black/10 ring-1 ring-border/60 group-hover/row:block",children:[(0,t.jsxs)("div",{className:"mb-1.5 flex items-center gap-2 font-mono text-[10px] text-muted-foreground",children:[(0,t.jsx)("span",{children:e.bot}),(0,t.jsx)("span",{className:"opacity-50",children:"·"}),(0,t.jsxs)("span",{children:[s.length," ",1===s.length?"step":"steps"]}),(0,t.jsx)("span",{className:"opacity-50",children:"·"}),(0,t.jsx)("span",{children:P(a)})]}),s.slice(-6).map(({step:e,took:s})=>{let a=(0,y.toolIcon)(e.name);return(0,t.jsxs)("div",{className:"flex h-5.5 items-center gap-2 font-mono text-[11px]",children:[null===s?(0,t.jsx)(n.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"}):(0,t.jsx)(a,{className:"size-3 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"w-24 shrink-0 truncate text-muted-foreground",children:e.name}),null===s?(0,t.jsx)(m.ShinyText,{text:e.note??e.input,speed:2.2,className:"min-w-0 flex-1 truncate"}):(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-foreground",children:e.note??e.input}),(0,t.jsx)("span",{className:"w-10 shrink-0 text-right text-muted-foreground/70 tabular-nums",children:null===s?"":P(s)})]},e.id)})]})}function P(e){let t=Math.max(0,e)/1e3;if(t<10)return`${t.toFixed(1)}s`;if(t<60)return`${Math.round(t)}s`;let s=Math.floor(t/60);return`${s}m ${Math.round(t-60*s)}s`}function L(){return(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsx)(p.Skeleton,{className:"size-10 shrink-0 rounded-full"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-2",children:[(0,t.jsx)(p.Skeleton,{className:"h-3 w-40 max-w-full"}),(0,t.jsx)(p.Skeleton,{className:"h-2.5 w-80 max-w-full"})]}),(0,t.jsxs)("span",{className:(0,I.cn)("flex shrink-0 flex-col items-end gap-1.5",O),children:[(0,t.jsx)(p.Skeleton,{className:"h-2.5 w-12"}),(0,t.jsx)(p.Skeleton,{className:"h-2.5 w-24"})]}),(0,t.jsx)("span",{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"size-7 shrink-0"})]})}e.s(["ThreadSetting",0,function(){let[e,s]=(0,l.useState)(null),[n,a]=(0,l.useState)(""),{data:i}=(0,A.useServerRoute)(d.queryKey.bot),{items:r,isLoading:o,isLoadingMore:u,error:x,hasMore:m,sentinelRef:p}=(0,z.useServerPages)({key:(e,t)=>{if(0===e)return d.queryKey.threadHistory(null);let s=t?.at(-1);return s?d.queryKey.threadHistory((0,C.toDate)(s.updatedAt).toISOString()):null},size:f.PAGE_SIZE}),j=r.find(t=>t.id===e),{data:w}=(0,A.useServerRoute)(e?d.queryKey.thread(e):null),v=w?.id===e?w:void 0;(0,T.useSeenOnDetail)(j);let[y]=(0,R.useServerAction)(g.cancelThreadAction,{onOk:e=>{(0,A.revalidate)(d.queryKey.threads),T.screenActs.announce({kind:"stopped",id:e.id,label:e.label})}}),[S]=(0,R.useServerAction)(k,{onOk:()=>(0,A.revalidate)(d.queryKey.threads)}),[M]=(0,R.useServerAction)(b,{onOk:()=>(0,A.revalidate)(d.queryKey.threads)}),I=n.trim().toLowerCase(),$=I?r.filter(e=>[e.label,e.outcome,e.bot].join(" ").toLowerCase().includes(I)):r,O=async()=>{await h.notify.confirm({title:"Clear finished jobs?",description:"Everything done or stopped goes, messages included. Running and waiting jobs stay.",okText:"Clear",destructive:!0})&&M()},K=async t=>{if(!await h.notify.confirm({title:`Delete "${t.label}"?`,description:"Its messages go with it — nothing can be picked back up.",okText:"Delete",destructive:!0}))return;let n=$.findIndex(e=>e.id===t.id),a=$[n+1]??$[n-1];try{await S(t.id)}catch{return}t.id===e&&s(a?.id??null)};if(o)return(0,t.jsx)(D.SettingSkeleton,{rows:3});if(x)return(0,t.jsx)(D.SettingError,{message:x.message});let B=r.filter(e=>"waiting"===e.status).length,P=r.filter(N.isUnread).length;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.SettingScreen,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(D.SettingRailNote,{children:[r.length," shown",B>0&&` \xb7 ${B} waiting on you`,P>0&&` \xb7 ${P} new result${1===P?"":"s"}`]}),(m||r.some(e=>"done"===e.status||"cancelled"===e.status))&&(0,t.jsx)(c.Button,{variant:"outline",size:"sm",onClick:O,children:"Clear finished"})]}),children:(0,t.jsx)(D.SettingGroup,{filter:(0,t.jsx)(D.SettingFilter,{value:n,onChange:a,placeholder:"Filter by label, bot or word"}),right:I?`${$.length} of ${r.length}`:void 0,children:(0,t.jsxs)(D.SettingItems,{children:[0===$.length?(0,t.jsx)("p",{className:"p-4 text-sm leading-relaxed text-muted-foreground",children:I?"Nothing here matches. Keep scrolling to search further back.":"Nothing yet. When Thursday hands a job to a bot mid-call, it shows up here — while it runs, and after."}):$.map(e=>(0,t.jsx)(F,{thread:e,bots:i,open:e.id===j?.id,onOpen:()=>s(e.id),onStop:()=>y(e.id),onDelete:()=>K(e)},e.id)),(0,t.jsx)(D.SettingMore,{hasMore:m,loading:u,sentinelRef:p,ghost:(0,t.jsx)(L,{}),className:"divide-y divide-border/60"})]})})}),(0,t.jsx)(q,{thread:j,whole:v,bots:i,onClose:()=>s(null),onStop:e=>y(e.id),onDelete:K})]})}],457343)},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},759659,e=>{"use strict";var t=e.i(456420);let s={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};s.node;let n=(0,t.default)(s);e.s(["Trash2",0,n],759659)}]);
|