thursday-agent 0.26.0 → 0.27.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/build-manifest.json +5 -5
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.json +5 -5
- package/.next/server/app/_global-error/page/build-manifest.json +2 -2
- 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/build-manifest.json +2 -2
- 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 +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/artifact/route.js +10 -10
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js +1 -1
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js +8 -8
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js +8 -8
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/file/route.js +15 -15
- package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/route.js +5 -5
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/tool-result/[id]/route.js +6 -6
- package/.next/server/app/api/bot/tool-result/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js +3 -3
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js +1 -1
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/favicon/[host]/route.js +4 -4
- 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 +5 -5
- package/.next/server/app/api/llm-model/automatic/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/[provider]/route.js +5 -5
- package/.next/server/app/api/llm-model/catalog/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/[provider]/route.js +5 -5
- package/.next/server/app/api/llm-model/credits/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/route.js +6 -6
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js +6 -6
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js +5 -5
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js +6 -6
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +5 -5
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js +5 -5
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +15 -15
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js +4 -4
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js +18 -18
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js +8 -8
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/running/route.js +2 -2
- package/.next/server/app/api/running/route.js.nft.json +1 -1
- package/.next/server/app/api/signins/route.js +3 -3
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js +6 -6
- 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 +5 -5
- package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/plan/route.js +14 -14
- package/.next/server/app/api/thursday/call/plan/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js +6 -6
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/settings/route.js +5 -5
- package/.next/server/app/api/thursday/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js +14 -14
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +15 -15
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/update/route.js +7 -7
- package/.next/server/app/api/update/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js +6 -6
- 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/build-manifest.json +2 -2
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +11 -11
- package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js +2 -2
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next/server/app/page/build-manifest.json +2 -2
- package/.next/server/app/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/page/server-reference-manifest.json +184 -184
- package/.next/server/app/page.js +10 -10
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__01jpmcj._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__03bjojd._.js +3 -3
- package/.next/server/chunks/{[root-of-the-server]__0wosonh._.js → [root-of-the-server]__05u-9a3._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1dyse-1._.js → [root-of-the-server]__0_qe8iq._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0d-dfqm._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0jqidnu._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0mmynvy._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0qhf60h._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0sea36s._.js +4 -4
- package/.next/server/chunks/[root-of-the-server]__0zezbds._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__12hkdpz._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__13hng6h._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__14inehv._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__17kdjf6._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__17yv6lg._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0b3_rzi._.js → [root-of-the-server]__1hjb8wf._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1jcu_e9._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1jmr2ed._.js +3 -3
- package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1o7z93z._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1onvx8x._.js +2 -2
- package/.next/server/chunks/_0-mqt2w._.js +1 -1
- package/.next/server/chunks/_04s1gb9._.js +30 -27
- package/.next/server/chunks/_06u9yo-._.js +1 -1
- package/.next/server/chunks/_08354bn._.js +33 -30
- package/.next/server/chunks/_083t_nr._.js +1 -1
- package/.next/server/chunks/_0c-s0ei._.js +1 -1
- package/.next/server/chunks/_0gifi_2._.js +2 -2
- package/.next/server/chunks/_0m3sdq8._.js +1 -1
- package/.next/server/chunks/_0pljp-1._.js +1 -1
- package/.next/server/chunks/_0wjia9n._.js +1 -1
- package/.next/server/chunks/_0wyh244._.js +33 -30
- package/.next/server/chunks/_0x2mdif._.js +1 -1
- package/.next/server/chunks/_1-sk_q4._.js +1 -1
- package/.next/server/chunks/_12a_gfz._.js +1 -1
- package/.next/server/chunks/_14-kmob._.js +1 -1
- package/.next/server/chunks/_16zct7w._.js +30 -27
- package/.next/server/chunks/_1823_7a._.js +4 -4
- package/.next/server/chunks/_1f_x75d._.js +1 -1
- package/.next/server/chunks/_1o2r4ja._.js +1 -1
- package/.next/server/chunks/_1q42187._.js +3 -3
- package/.next/server/chunks/_1ufbxe1._.js +1 -1
- package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
- package/.next/server/chunks/features_14kex_m._.js +11 -11
- package/.next/server/chunks/features_bot_08z387_._.js +4 -4
- package/.next/server/chunks/features_memory_0__61kl._.js +1 -1
- package/.next/server/chunks/features_memory_1uqvksn._.js +1 -1
- package/.next/server/chunks/features_workspace_workspace_ts_13h82gv._.js +1 -1
- package/.next/server/chunks/features_workspace_workspace_ts_1iyjroj._.js +3 -3
- package/.next/server/chunks/ssr/{[root-of-the-server]__0x297x3._.js → [root-of-the-server]__03_9u5q._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__0653diy._.js → [root-of-the-server]__04ky8w1._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1zlzs9j._.js → [root-of-the-server]__0crm8gr._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__02936mh._.js → [root-of-the-server]__0d3n8i_._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__0s8q44q._.js → [root-of-the-server]__0d4o9hs._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0id2dqb._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1s0etwd._.js → [root-of-the-server]__0q2c15o._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0t_oz3-._.js +6 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__16x99f1._.js → [root-of-the-server]__12r70jm._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1867koj._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__0glkz9k._.js → [root-of-the-server]__1fvh0zn._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__1t38-p_._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1c1xyyb._.js → [root-of-the-server]__1uy0zqr._.js} +2 -2
- package/.next/server/chunks/ssr/_02uubus._.js +3 -0
- package/.next/server/chunks/ssr/_0692i-a._.js +3 -0
- package/.next/server/chunks/ssr/_079xt7h._.js +32 -29
- package/.next/server/chunks/ssr/_07g7ojr._.js +3 -0
- package/.next/server/chunks/ssr/_0ewhz_x._.js +3 -0
- package/.next/server/chunks/ssr/_0f3t9pm._.js +2 -2
- package/.next/server/chunks/ssr/_0gx6qzr._.js +57 -0
- package/.next/server/chunks/ssr/_0pjwmak._.js +6 -0
- package/.next/server/chunks/ssr/_0pnzfq1._.js +1 -1
- package/.next/server/chunks/ssr/_0px9eat._.js +3 -0
- package/.next/server/chunks/ssr/_0r2_l__._.js +3 -0
- package/.next/server/chunks/ssr/{_20_wc-g._.js → _0rcuovx._.js} +2 -2
- package/.next/server/chunks/ssr/_0uwhhcs._.js +3 -0
- package/.next/server/chunks/ssr/{_1wct0tm._.js → _128r03g._.js} +1 -1
- package/.next/server/chunks/ssr/_12c2n7f._.js +3 -0
- package/.next/server/chunks/ssr/{_12_ail7._.js → _14f64h2._.js} +1 -1
- package/.next/server/chunks/ssr/_17fa2ns._.js +162 -0
- package/.next/server/chunks/ssr/_1_px1o-._.js +3 -0
- package/.next/server/chunks/ssr/_1a_w_du._.js +1 -1
- package/.next/server/chunks/ssr/_1e_9qjr._.js +1 -1
- package/.next/server/chunks/ssr/_1f59vze._.js +57 -0
- package/.next/server/chunks/ssr/_1j5ohq5._.js +3 -0
- package/.next/server/chunks/ssr/{_0ingto_._.js → _1kj3d2q._.js} +2 -2
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/_1ocl7u0._.js +3 -0
- package/.next/server/chunks/ssr/_1q9r6u6._.js +3 -0
- package/.next/server/chunks/ssr/{_0fvctar._.js → _1qqusa-._.js} +2 -2
- package/.next/server/chunks/ssr/_1soynbw._.js +2 -2
- package/.next/server/chunks/ssr/_1uok0wt._.js +3 -0
- package/.next/server/chunks/ssr/_1v1pcoh._.js +1 -1
- package/.next/server/chunks/ssr/_1xw9imq._.js +3 -0
- package/.next/server/chunks/ssr/{components_ui_markdown-body_tsx_0h7bkrz._.js → components_ui_markdown-body_tsx_08i96c6._.js} +2 -2
- package/.next/server/chunks/ssr/features_0rrgq_t._.js +1 -1
- package/.next/server/chunks/ssr/features_ai_components_model-picker_tsx_0ucb1y9._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_0tb4ui-._.js +2 -2
- package/.next/server/chunks/ssr/features_bot_components_01ye2wp._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js +2 -2
- package/.next/server/chunks/ssr/features_bot_components_thread-setting_tsx_0yae7zy._.js +1 -1
- package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +2 -2
- 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 +2 -2
- package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
- package/.next/server/chunks/ssr/features_skills_components_skills-setting_tsx_1wtuuip._.js +1 -1
- package/.next/server/chunks/ssr/features_thursday_components_thursday-setting_tsx_1_6ydrc._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_193w7l8._.js → node_modules_02djdfa._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1bwlhwa._.js → node_modules_03ybg-h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01xoz64._.js → node_modules_066eqdg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_20ifwl6._.js → node_modules_09605b3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1yilsx4._.js → node_modules_0_c17cv._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_080f5gu._.js → node_modules_0a1-9-h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17c047f._.js → node_modules_0bfpl_c._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1pav8g4._.js → node_modules_0brchjo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0gwiuga._.js → node_modules_0c0pgdi._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_02-zrtu._.js → node_modules_0ep265x._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0kqej10._.js → node_modules_0gzvt6a._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0i18max._.js → node_modules_0h4gjw5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1m2_gxv._.js → node_modules_0iso-he._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0cda8i6._.js → node_modules_0jvqmb4._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_0kzgugm._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_0uvoegq._.js → node_modules_0l8gpkg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_12ajdg8._.js → node_modules_0mlrvds._.js} +2 -2
- package/.next/server/chunks/ssr/node_modules_0nvqvnw._.js +7 -7
- package/.next/server/chunks/ssr/{node_modules_1s3j8gb._.js → node_modules_0ogtyfm._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1_xiwxs._.js → node_modules_0os_-0h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1abjhxx._.js → node_modules_0p05zru._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1o-m6_3._.js → node_modules_0pf8124._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0eqvt2l._.js → node_modules_0pp3v4f._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0rzz90e._.js → node_modules_0r1vv13._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1kum1yu._.js → node_modules_0r9yw6x._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1yw5fq4._.js → node_modules_0rk1a3e._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1es3wjv._.js → node_modules_0sq1pa3._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1-cv1_p._.js → node_modules_0w-pjyz._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0g_yuwn._.js → node_modules_0yoh66_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1s9agqr._.js → node_modules_10kn3ni._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1yajzrd._.js → node_modules_124ipg-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0svoyrb._.js → node_modules_12_p7d0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_203yqqb._.js → node_modules_12w12wr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17ks351._.js → node_modules_16kmp_v._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_05qs8r_._.js → node_modules_16m_yhd._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_07dc1cr._.js → node_modules_171uvar._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0qsi9t2._.js → node_modules_19pn2ti._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0k9_jdk._.js → node_modules_1_ly5yy._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0o_gq58._.js → node_modules_1_wsn9q._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1u7wlaq._.js → node_modules_1djak6n._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_08cq8i-._.js → node_modules_1e-oxmh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_15x7int._.js → node_modules_1ed4zep._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1pkpq6d._.js → node_modules_1f2qlxm._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1aw7c9f._.js → node_modules_1fn72fs._.js} +2 -2
- package/.next/server/chunks/ssr/node_modules_1h9p77x._.js +7 -7
- package/.next/server/chunks/ssr/{node_modules_1ucf2fi._.js → node_modules_1hj0rvo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_12pvysk._.js → node_modules_1jvkoqj._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0tq4-57._.js → node_modules_1jzofr8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_08hfp3a._.js → node_modules_1maqy-g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_071fb26._.js → node_modules_1oox5h1._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_jxnnn._.js → node_modules_1p56fwh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01yukzc._.js → node_modules_1prbr1-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hrbceb._.js → node_modules_1qfou69._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_11f1w-3._.js → node_modules_1qnosqe._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1kd_hpx._.js → node_modules_1rdpn6v._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_079iwnx._.js → node_modules_1v6m9sp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1iapzqf._.js → node_modules_1z8ywx9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1dim95c._.js → node_modules_1zzudo-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1_71wv3._.js → node_modules_2157u1j._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_1c5gb92._.js → node_modules_katex_dist_katex_mjs_12lynt6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_1ocxq2z._.js → node_modules_katex_dist_katex_mjs_1vjoadq._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1v93o68._.js +1 -1
- package/.next/server/middleware-build-manifest.js +5 -5
- 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 +185 -185
- package/.next/static/chunks/051z85h3ofmif.js +1 -0
- package/.next/static/chunks/05722zc-sohb_.js +4 -0
- package/.next/static/chunks/07jo959manleh.js +1 -0
- package/.next/static/chunks/0_5a18_y41-_4.js +1 -0
- package/.next/static/chunks/0be7dgti95u_2.js +1 -0
- package/.next/static/chunks/0c28x0q2aqsbj.js +1 -0
- package/.next/static/chunks/0o_rabv5are-o.js +2 -0
- package/.next/static/chunks/{0776-hu4_eek7.js → 0wwq57j09skhy.js} +2 -2
- package/.next/static/chunks/0zm3urd75-zw5.js +1 -0
- package/.next/static/chunks/16hfi69t-6a4t.js +2 -0
- package/.next/static/chunks/1g58g8-daiwu5.js +3 -0
- package/.next/static/chunks/1i1u85j-_yb1n.js +15 -0
- package/.next/static/chunks/1kd2sxkkrae8e.js +1 -0
- package/.next/static/chunks/{3xloayc4c096r.js → 1n3a07w81jbc-.js} +1 -1
- package/.next/static/chunks/1nncyxatu7une.js +1 -0
- package/.next/static/chunks/1s5t41jiomssd.css +1 -0
- package/.next/static/chunks/1yl4mlpsw8e7h.js +1 -0
- package/.next/static/chunks/{33qtnlc00c9gq.js → 2gl-fo_rmmmq0.js} +1 -1
- package/.next/static/chunks/2h_sak2oi70qs.js +1 -0
- package/.next/static/chunks/2isg5redeg2bc.js +1 -0
- package/.next/static/chunks/{2fxn-xltgy2un.js → 2of2-kggzp-fk.js} +1 -1
- package/.next/static/chunks/2vmran3sacktz.js +1 -0
- package/.next/static/chunks/2w02v9g8o9-rz.js +1 -0
- package/.next/static/chunks/2wi2pcbjrqm86.js +1 -0
- package/.next/static/chunks/2xk8otp3gnzml.js +1 -0
- package/.next/static/chunks/2ym1hrikoit8p.js +1 -0
- package/.next/static/chunks/34d1f980dv5c6.js +18 -0
- package/.next/static/chunks/34zhr71217o1-.js +2 -0
- package/.next/static/chunks/{0o1r15rfncytn.js → 37r4l2878vybp.js} +1 -1
- package/.next/static/chunks/{2cz5734j90h5b.js → 3a-2z23puvz2z.js} +1 -1
- package/.next/static/chunks/3d55-y263hup9.js +1 -0
- package/.next/static/chunks/3dzrveotr82eu.js +39 -0
- package/.next/static/chunks/3fensfht8pxhl.js +55 -0
- package/.next/static/chunks/3k7fum0yljmyr.js +1 -0
- package/.next/static/chunks/3sawwm4vucnzn.js +1 -0
- package/.next/static/chunks/{0z0-g4k1hnpw2.js → 3u208m--8u1iq.js} +1 -1
- package/.next/static/chunks/{turbopack-1kym6rf88i5i0.js → turbopack-0ekrsq98buh0j.js} +1 -1
- package/README.md +18 -18
- package/bin/background.mjs +60 -32
- package/bin/print.mjs +82 -0
- package/bin/thursday.mjs +44 -13
- package/guide/bots.md +19 -3
- package/guide/calls.md +5 -2
- package/guide/memory.md +2 -1
- package/guide/setup.md +8 -6
- package/guide/trouble.md +4 -0
- package/package.json +11 -5
- package/public/voices/intro/awake-f4e02fad.ogg +0 -0
- package/seed-skills/concierge/travel/scripts/itinerary.mjs +2 -1
- package/server.js +1 -1
- package/skills/artifact/references/document.md +5 -2
- package/skills/artifact/runtime/document/markdown.mjs +14 -1
- package/skills/artifact/runtime/shell/head.html +1 -1
- package/skills/artifact/scripts/document.mjs +9 -3
- package/skills/browser/SKILL.md +17 -13
- package/.next/server/chunks/[root-of-the-server]__0ald4vb._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0srfj96._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1kos36s._.js +0 -6
- package/.next/server/chunks/ssr/_024j8bs._.js +0 -3
- package/.next/server/chunks/ssr/_04jb10a._.js +0 -3
- package/.next/server/chunks/ssr/_059oyhd._.js +0 -3
- package/.next/server/chunks/ssr/_0d0uyl3._.js +0 -3
- package/.next/server/chunks/ssr/_0fk7dbp._.js +0 -88
- package/.next/server/chunks/ssr/_0gfa_rb._.js +0 -3
- package/.next/server/chunks/ssr/_0i7zd74._.js +0 -3
- package/.next/server/chunks/ssr/_0sp2z94._.js +0 -3
- package/.next/server/chunks/ssr/_1avnw03._.js +0 -57
- package/.next/server/chunks/ssr/_1bfrntd._.js +0 -6
- package/.next/server/chunks/ssr/_1cpvfkg._.js +0 -3
- package/.next/server/chunks/ssr/_1cqjpyq._.js +0 -3
- package/.next/server/chunks/ssr/_1khngyc._.js +0 -72
- package/.next/server/chunks/ssr/_1kyjimg._.js +0 -162
- package/.next/server/chunks/ssr/_1sw4r4m._.js +0 -6
- package/.next/server/chunks/ssr/_20004tu._.js +0 -57
- package/.next/server/chunks/ssr/node_modules_01alue6._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_02n9-pb._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0zxr5sz._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_trash_mjs_0px2gzr._.js +0 -3
- package/.next/static/chunks/02d9vhnz5mwvu.js +0 -1
- package/.next/static/chunks/06ff4fq0z4das.js +0 -1
- package/.next/static/chunks/09q9n7jrkm4c9.js +0 -39
- package/.next/static/chunks/0b3wt5kqs-mk2.js +0 -2
- package/.next/static/chunks/0blrj_tg1yur0.js +0 -1
- package/.next/static/chunks/0dn1ptom1ahgg.js +0 -18
- package/.next/static/chunks/0dq7uppta9s--.js +0 -1
- package/.next/static/chunks/0hoz2b--nhn4y.js +0 -1
- package/.next/static/chunks/0kfjtkez2xze2.js +0 -1
- package/.next/static/chunks/0mv2zywfzt83k.js +0 -4
- package/.next/static/chunks/0txtrhykehsd_.js +0 -55
- package/.next/static/chunks/17vs1vz7_4l4p.css +0 -1
- package/.next/static/chunks/1dnvf_117h4k3.js +0 -2
- package/.next/static/chunks/1irynso77np9t.js +0 -1
- package/.next/static/chunks/1sh_-w_keseat.js +0 -1
- package/.next/static/chunks/1z2_9pl3nezly.js +0 -3
- package/.next/static/chunks/23ty4edkuxirx.js +0 -1
- package/.next/static/chunks/2f1cnfz4h1e2x.js +0 -1
- package/.next/static/chunks/2jepcbdewlwlg.js +0 -1
- package/.next/static/chunks/2r_zq_knm0hph.js +0 -15
- package/.next/static/chunks/2yfmmo4qr_f-m.js +0 -1
- package/.next/static/chunks/3-xnkknav7azp.js +0 -1
- package/.next/static/chunks/38q31td1ecuay.js +0 -1
- package/.next/static/chunks/3n75-7grldc6f.js +0 -1
- package/.next/static/chunks/3ofr4htw4wpj3.js +0 -1
- package/.next/static/chunks/40bkw3zfenss4.js +0 -2
- package/public/voices/intro/awake-17dbafbf.ogg +0 -0
- package/public/voices/intro/models-d09ddc74.ogg +0 -0
- /package/.next/static/{YIQV0_9FZPTFUe9TCiVSF → 3_9hbwcAuWTSWCJSufp3d}/_buildManifest.js +0 -0
- /package/.next/static/{YIQV0_9FZPTFUe9TCiVSF → 3_9hbwcAuWTSWCJSufp3d}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{YIQV0_9FZPTFUe9TCiVSF → 3_9hbwcAuWTSWCJSufp3d}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[777794,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(497895);a.s(["Segmented",0,function({options:a,value:e,onChange:f,view:g=!1,size:h="default",className:i,...j}){let k=(0,c.useRef)([]),l=a.findIndex(a=>a.value===e);return(0,b.jsx)("div",{role:"radiogroup",onKeyDown:b=>{let c={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1}[b.key];if(c&&!(a.length<2)){let d;b.preventDefault(),b.stopPropagation(),d=(Math.max(0,l)+c+a.length)%a.length,f(a[d].value),k.current[d]?.focus()}},className:(0,d.cn)("flex w-fit gap-0.5 rounded-full bg-muted","sm"===h?"p-0.5":"p-0.75",i),...j,children:a.map((a,c)=>{let i=a.value===e;return(0,b.jsx)("button",{ref:a=>{k.current[c]=a},type:"button",role:"radio","aria-checked":i,tabIndex:i||l<0&&0===c?0:-1,title:a.title,onClick:()=>f(a.value),className:(0,d.cn)("flex items-center justify-center gap-1.5 rounded-full whitespace-nowrap transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/50","sm"===h?"h-6 px-2.5 text-[12px]":"h-7 px-3 text-[12.5px]",!i&&"text-muted-foreground hover:text-foreground",i&&(g?"bg-background font-medium text-foreground shadow-sm dark:bg-input/60":"bg-brand font-medium text-brand-foreground")),children:a.label},a.value)})})}])},341889,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(767561),e=a.i(497895);a.s(["SiteIcon",0,function({host:a,className:f="size-3.5 rounded-full",fallback:g}){let[h,i]=(0,c.useState)(!1);return h?g??(0,b.jsx)("span",{"aria-hidden":!0,className:(0,e.cn)("grid shrink-0 place-items-center bg-foreground/10 text-[8.5px] font-medium text-foreground/70 uppercase",f),children:a[0]}):(0,b.jsx)("img",{src:d.queryKey.favicon(a),alt:"",onError:()=>i(!0),className:(0,e.cn)("shrink-0",f)})}])},249049,a=>{"use strict";var b=a.i(187924),c=a.i(823319),d=a.i(752562),e=a.i(474215),f=a.i(572131),g=a.i(767561),h=a.i(340695),i=a.i(205522),j=a.i(287702),k=a.i(852307),l=a.i(379630),m=a.i(96340),n=a.i(61876),o=a.i(313237),p=a.i(759497),q=a.i(497895),r=a.i(370403),s=a.i(478978);function t(){let a=n.TEXT_MODEL_PROVIDERS[m.LIVE_PROVIDER.id].keysAt;return a?(0,b.jsxs)("a",{href:a,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2.5 text-[13px] font-medium text-foreground no-underline",children:[(0,b.jsxs)("span",{className:"flex h-7.5 shrink-0 items-center gap-1.5 rounded-full bg-muted px-3.5 whitespace-nowrap transition-colors hover:bg-accent",children:["Get a key",(0,b.jsx)(c.ArrowUpRight,{className:"size-3.5"})]}),(0,b.jsx)("span",{className:"truncate font-mono text-[11px] font-normal text-muted-foreground",children:a.replace(/^https:\/\//,"")})]}):null}function u(a=null){let{data:b}=(0,p.useServerRoute)(g.queryKey.config),c=(0,s.isConfigSet)(b,n.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName),{data:d}=(0,p.useServerRoute)(c?g.queryKey.llmModel:null),{data:e}=(0,p.useServerRoute)(c?g.queryKey.subscriptionUsage:null),f=(!e||"refused"in e?null:e.plan)??d?.find(a=>"chatgpt"===a.id)?.plan??null,h=void 0!==b&&(!c||void 0!==d),i=(0,n.planCallsOf)(c?{plan:f}:null);return{known:h,signedIn:c,plan:f,planCalls:i,line:h?(0,m.liveLineOf)(a,a=>(0,s.isConfigSet)(b,a),f):null,countsForCall:a=>(0,s.isConfigSet)(b,a)&&(a!==n.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName||i)}}function v({children:a}){return(0,b.jsxs)("span",{className:"flex h-7 items-center justify-center gap-1.5 text-[12.5px] text-muted-foreground",children:[(0,b.jsx)("span",{className:"grid size-4 shrink-0 animate-in place-items-center rounded-full bg-primary text-primary-foreground duration-300 zoom-in-50",children:(0,b.jsx)(d.Check,{className:"size-2.5"})}),a]})}function w({provider:a,title:c,tag:d,about:e,warn:f=!1,children:g}){return(0,b.jsxs)("div",{className:"flex items-center gap-3 rounded-xl p-3 ring-1 ring-border ring-inset",children:[(0,b.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,b.jsx)(l.ProviderIcon,{provider:a,className:"size-4"})}),(0,b.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,b.jsxs)("span",{className:"flex items-center gap-2 text-[13px] leading-tight font-medium",children:[(0,b.jsx)("span",{className:"truncate",children:c}),d&&(0,b.jsx)("span",{className:"shrink-0 rounded-full px-1.5 font-mono text-[9.5px] leading-4 font-normal text-muted-foreground ring-1 ring-border ring-inset",children:d})]}),(0,b.jsx)("span",{className:(0,q.cn)("text-[11.5px] leading-snug text-pretty",f?q.WAITING_INK:"text-muted-foreground"),children:e})]}),(0,b.jsx)("span",{className:"w-28 shrink-0",children:g})]})}function x({ref:a,autoFocus:c,dense:d=!1,plain:i=!1,onCancel:k,onSaved:l,className:n}){let{data:t}=(0,p.useServerRoute)(g.queryKey.config),[u,v]=(0,f.useState)({}),[w,z]=(0,f.useState)(null),[A,B]=(0,f.useState)(null),[C]=(0,o.useServerAction)(r.setConfigAction,{errorMessage:!1,onError:a=>B(a??"That key was not saved."),onOk:()=>{(0,p.revalidate)(g.queryKey.config),(0,p.revalidate)(g.queryKey.llmModel)}}),D=a=>(u[a]?.trim().length??0)>=j.KEY_MIN,E=async a=>{let b=a.apiKeyName;if(!D(b)||w)return!1;B(null),z(b);try{return await C(b,u[b]),v(a=>({...a,[b]:""})),l?.(a.id),!0}catch{return!1}finally{z(null)}};return(0,f.useImperativeHandle)(a,()=>({pending:()=>D(m.LIVE_PROVIDER.apiKeyName),flush:async()=>!D(m.LIVE_PROVIDER.apiKeyName)||E(m.LIVE_PROVIDER)})),(0,b.jsxs)("div",{className:(0,q.cn)("w-full",d?"space-y-2":"space-y-4",n),children:[d&&!i&&(0,b.jsxs)("div",{className:"flex h-6 items-center justify-between gap-2",children:[(0,b.jsx)("span",{className:"px-0.5 font-mono text-[11px] text-muted-foreground",children:"Voice key"}),k&&(0,b.jsx)(h.Button,{type:"button",size:"icon",variant:"ghost","aria-label":"Not now",onClick:k,className:"-my-1 size-6",children:(0,b.jsx)(e.X,{className:"size-3.5"})})]}),(0,b.jsx)(y,{provider:m.LIVE_PROVIDER,saved:(0,s.isConfigSet)(t,m.LIVE_PROVIDER.apiKeyName),autoFocus:c,dense:d,plain:i,value:u[m.LIVE_PROVIDER.apiKeyName]??"",ready:D(m.LIVE_PROVIDER.apiKeyName),saving:w===m.LIVE_PROVIDER.apiKeyName,onValue:a=>{B(null),v(b=>({...b,[m.LIVE_PROVIDER.apiKeyName]:a}))},onSubmit:()=>void E(m.LIVE_PROVIDER)}),(A||(0,s.isConfigUnreadable)(t,m.LIVE_PROVIDER.apiKeyName))&&(0,b.jsx)("p",{className:(0,q.cn)("px-0.5 leading-5 break-words",d?"text-xs":"text-center text-[13px]",q.WAITING_INK),children:A??(0,s.lostWords)("The OpenAI key saved before","Paste it again.")}),!i&&(0,b.jsx)("p",{className:(0,q.cn)("px-0.5 font-mono text-muted-foreground",d?"text-[11px]":"pt-1 text-center text-[12.5px]"),children:d?"Live voice and reasoning share this OpenAI API key.":"Live uses an OpenAI API key, billed separately from ChatGPT. Stored on this machine, in this app's database."})]})}function y({provider:a,saved:c,autoFocus:d,dense:e,plain:f,value:g,ready:h,saving:i,onValue:j,onSubmit:k}){return(0,b.jsxs)("div",{className:"space-y-2",children:[!f&&(0,b.jsxs)("span",{className:"flex items-center gap-2 px-0.5 text-muted-foreground",children:[(0,b.jsx)(l.ProviderIcon,{provider:a.id,className:"size-4 shrink-0"}),(0,b.jsx)("span",{className:(0,q.cn)("font-mono",e?"text-[11px]":"text-[12.5px]"),children:a.label})]}),(0,b.jsx)(A,{provider:a,saved:c,autoFocus:d,dense:e,mark:f,value:g,ready:h,saving:i,onValue:j,onSubmit:k})]})}let z=a=>a?.replace(/…$/,"")??"";function A({provider:a,saved:c,autoFocus:e,dense:f,mark:g,value:j,ready:k,saving:m,onValue:o,onSubmit:p}){var r;let s,t=(r=a.id,s=z(n.TEXT_MODEL_PROVIDERS[r].keyLooks),Object.entries(n.TEXT_MODEL_PROVIDERS).flatMap(([a,b])=>{let c=z(b.keyLooks);return a!==r&&c&&!s.startsWith(c)?[c]:[]})).some(a=>j.trim().startsWith(a));return(0,b.jsxs)("form",{onSubmit:a=>{a.preventDefault(),p()},className:(0,q.cn)("flex items-center gap-3 rounded-2xl border bg-muted/40 px-4 transition-colors",f?"h-11 rounded-xl px-3":"h-14",c||k?"border-foreground bg-transparent":"border-border"),children:[g&&(0,b.jsx)(l.ProviderIcon,{provider:a.id,className:"size-4 shrink-0 text-muted-foreground"}),(0,b.jsx)(i.Input,{autoFocus:e,type:"password","aria-label":"OpenAI API key",autoComplete:"off",value:j,spellCheck:!1,placeholder:c?"Replace it":"sk-…",onChange:a=>o(a.target.value),className:(0,q.cn)("min-w-0 flex-1 border-0 bg-transparent px-0 font-mono shadow-none focus-visible:ring-0 dark:bg-transparent",f?"h-7 text-[13px]":"h-9 text-[15px]")}),j?(0,b.jsx)(h.Button,{type:"submit",size:"sm",variant:t?"outline":"default",loading:m,disabled:!k,className:(0,q.cn)("shrink-0",f?"h-7 px-3":"h-9 px-4"),children:t?`Not ${a.label}?`:"Save"}):c&&(0,b.jsx)("span",{className:(0,q.cn)("grid shrink-0 animate-in place-items-center rounded-full bg-foreground text-background zoom-in-50 duration-300",f?"size-5":"size-7"),children:(0,b.jsx)(d.Check,{className:f?"size-3":"size-4"})})]})}a.s(["CallLines",0,function({onSaved:a}){let{data:c}=(0,p.useServerRoute)(g.queryKey.config),[d,e]=(0,f.useState)(()=>(0,s.isConfigUnreadable)(c,m.LIVE_PROVIDER.apiKeyName)),i=(0,s.isConfigUnreadable)(c,n.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName),j=(0,s.isConfigSet)(c,m.LIVE_PROVIDER.apiKeyName),{data:l}=(0,p.useServerRoute)(g.queryKey.thursdaySettings),o=u(l?.runsOn??null),q=o.signedIn&&!o.planCalls,r=o.known&&o.signedIn&&o.planCalls&&!i;return(0,b.jsxs)("div",{className:"flex w-full flex-col gap-2 text-left",children:[!r&&!j&&(0,b.jsx)("p",{className:"font-mono text-[11px] text-muted-foreground",children:"Either one is enough."}),(0,b.jsx)(w,{provider:"chatgpt",title:n.TEXT_MODEL_PROVIDERS.chatgpt.label,tag:o.signedIn?(0,n.planName)(o.plan)??void 0:void 0,about:i?"The sign-in saved before can't be unlocked any more.":q?"Bots and writing run on this plan; spoken calls don't.":r&&"chatgpt"===o.line?"Calls and bots run on your plan.":r&&"openai"===o.line?"Bots run on your plan; calls run on the key.":"Your ChatGPT plan. No key, no bill by the minute.",warn:i||q,children:r?(0,b.jsx)(v,{children:"Signed in"}):(0,b.jsx)(k.ChatGptSignIn,{variant:q||j?"outline":"brand",size:"sm",className:"w-full rounded-full",label:i||q?"Sign in again":"Sign in"})}),(0,b.jsx)(w,{provider:"openai",title:"OpenAI API key",about:j&&o.known?"chatgpt"===o.line?"Calls run on your plan; switch in Settings › Thursday.":"Calls run on it now, billed by the minute.":"Billed by the minute of call, apart from ChatGPT.",children:j?(0,b.jsx)(v,{children:"Saved"}):(0,b.jsx)(h.Button,{size:"sm",variant:q?"brand":"outline","aria-expanded":d,onClick:()=>e(a=>!a),className:"w-full rounded-full",children:"Paste a key"})}),d&&!j&&(0,b.jsxs)("div",{className:"flex animate-in flex-col gap-2.5 pt-1 fade-in slide-in-from-top-1 duration-200",children:[(0,b.jsx)(x,{dense:!0,plain:!0,autoFocus:!0,onSaved:a}),(0,b.jsx)(t,{})]})]})},"KeyInput",0,A,"useVoiceLine",0,u])},823319,a=>{"use strict";var b=a.i(164831);let c={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};c.node;let d=(0,b.default)(c);a.s(["ArrowUpRight",0,d],823319)},692867,626335,a=>{"use strict";var b=a.i(164831);let c={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]};c.node;let d=(0,b.default)(c);a.s(["AudioLines",0,d],692867);let e={name:"captions",size:24,node:[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2",key:"12ruh7"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4",key:"1ueiar"}]],aliases:["subtitles"]};e.node;let f=(0,b.default)(e);a.s(["Captions",0,f],626335)},752562,a=>{"use strict";var b=a.i(2589);a.s(["Check",()=>b.default])},585650,a=>{"use strict";var b=a.i(164831);let c={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};c.node;let d=(0,b.default)(c);a.s(["Copy",0,d],585650)},126766,a=>{"use strict";var b=a.i(164831);let c={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};c.node;let d=(0,b.default)(c);a.s(["KeyRound",0,d],126766)},162591,a=>{"use strict";var b=a.i(164831);let c={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};c.node;let d=(0,b.default)(c);a.s(["Mail",0,d],162591)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_1_px1o-._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[446334,a=>{"use strict";var b=a.i(187924),c=a.i(341889),d=a.i(497895);a.s(["SourceChips",0,function({sources:a,limit:e,className:f}){let g=a.flatMap(a=>{let b=(0,d.hostOf)(a.url);return b?[{...a,host:b}]:[]}),h=e?g.slice(0,e):g,i=g.length-h.length;return(0,b.jsxs)("span",{className:(0,d.cn)("flex min-w-0 flex-wrap items-center gap-1",f),children:[h.map(a=>(0,b.jsxs)("a",{href:a.url,target:"_blank",rel:"noreferrer",title:a.title??a.url,className:"flex h-[22px] min-w-0 items-center gap-1.5 rounded-full bg-muted pr-2 pl-1 text-[11.5px] leading-4 text-foreground/80 outline-none transition-colors hover:bg-accent focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,b.jsx)(c.SiteIcon,{host:a.host}),(0,b.jsx)("span",{className:"truncate",children:a.host})]},a.url)),i>0&&(0,b.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:["+",i]})]})}])},321799,a=>{"use strict";var b=a.i(187924),c=a.i(164831);let d={name:"file-x",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]]};d.node;let e=(0,c.default)(d);var f=a.i(571987),g=a.i(572131),h=a.i(767561),i=a.i(287702),j=a.i(38793),k=a.i(369768),l=a.i(559553),m=a.i(759497),n=a.i(497895);let o=a=>a.split(".").pop()?.toLowerCase()??"file",p=a=>a.split("/").pop()??a;a.s(["Attachments",0,function({text:a,from:c=null,className:d,onBubble:q=!1}){let r=(0,g.useMemo)(()=>(0,l.pathsIn)(a),[a]),{data:s}=(0,m.useServerRoute)(r.length?h.queryKey.workspaceFiles(r):null),t=(0,g.useMemo)(()=>s??[],[s]),u=(0,g.useMemo)(()=>t.filter(a=>"image"===(0,l.viewKindOf)(a.path)),[t]),v=(0,g.useMemo)(()=>{let a=0;return t.filter(b=>{let c=(0,j.faceOf)(b.path,b.bytes);return"text"===c||"page"===c&&(a+=1)<=i.FILE_THUMB.pages})},[t]),w=t.filter(a=>!u.includes(a)&&!v.includes(a)),x=new Set(t.map(a=>p(a.path))),y=r.filter(a=>!t.some(b=>b.path===a)&&!x.has(p(a)));if(!r.length||!s||!t.length&&!y.length)return null;let z=u.map(a=>a.path),A=u.slice(0,4),B=u.length-A.length,C=u.length+v.length<=2,D=C?"h-40 w-32":"h-26.25 w-21";return(0,b.jsxs)("div",{className:(0,n.cn)("flex min-w-0 flex-col gap-1.5",d),children:[(A.length>0||v.length>0)&&(0,b.jsxs)("div",{className:"flex flex-wrap items-start gap-1.5",children:[v.map(a=>(0,b.jsxs)(k.FileLink,{from:c,path:a.path,title:`${a.path} — ${(0,n.formatBytes)(a.bytes)}`,className:(0,n.cn)("flex shrink-0 flex-col gap-1 rounded-xl outline-none transition-opacity hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",C?"w-32":"w-21"),children:[(0,b.jsx)(j.FileThumb,{path:a.path,bytes:a.bytes,className:(0,n.cn)("w-full rounded-xl ring-1 ring-foreground/5 ring-inset",D)}),(0,b.jsxs)("span",{className:"flex flex-col items-start px-0.5",children:[(0,b.jsx)("span",{className:"max-w-full truncate text-[11.5px] leading-4",children:p(a.path)}),(0,b.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[o(a.path)," · ",(0,n.formatBytes)(a.bytes)]})]})]},a.path)),A.map((a,d)=>(0,b.jsxs)(k.FileLink,{from:c,path:a.path,group:z,title:`${a.path} — ${(0,n.formatBytes)(a.bytes)}`,className:(0,n.cn)("relative shrink-0 overflow-hidden rounded-xl bg-muted outline-none ring-1 ring-foreground/5 ring-inset transition-opacity hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",D),children:[(0,b.jsx)(f.default,{src:h.queryKey.file(a.path),alt:p(a.path),fill:!0,sizes:`${i.FILE_THUMB.imageWidth}px`,loading:"lazy",decoding:"async",className:"object-cover"}),B>0&&d===A.length-1&&(0,b.jsxs)("span",{className:"absolute inset-0 grid place-items-center bg-black/45 text-[14px] font-medium text-white",children:["+",B]})]},a.path))]}),w.map(a=>{let d=(0,j.fileIcon)(a.path);return(0,b.jsxs)(k.FileLink,{from:c,path:a.path,title:a.path,className:(0,n.cn)("flex w-fit max-w-full items-center gap-2.5 rounded-xl py-1.5 pr-3 pl-1.5 outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",q?"bg-background/70 hover:bg-background":"bg-muted/70 hover:bg-muted"),children:[(0,b.jsx)("span",{className:(0,n.cn)("grid size-8 shrink-0 place-items-center rounded-lg text-muted-foreground",q?"bg-muted":"bg-background"),children:(0,b.jsx)(d,{className:"size-3.5"})}),(0,b.jsxs)("span",{className:"flex min-w-0 flex-col items-start",children:[(0,b.jsx)("span",{className:"max-w-full truncate text-[12.5px] leading-4.25",children:p(a.path)}),(0,b.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[o(a.path)," · ",(0,n.formatBytes)(a.bytes)]})]})]},a.path)}),y.length>0&&(0,b.jsx)("div",{className:"flex flex-wrap gap-1.5",children:y.map(a=>(0,b.jsxs)("span",{title:`${a} — not on disk`,className:"flex max-w-full items-center gap-1.5 rounded-full bg-muted/70 py-1 pr-2.5 pl-2 font-mono text-[11px] text-muted-foreground",children:[(0,b.jsx)(e,{className:"size-3 shrink-0"}),(0,b.jsx)("span",{className:"truncate line-through",children:p(a)})]},a))})]})},"imagePathsIn",0,function(a){return(0,l.pathsIn)(a).filter(a=>"image"===(0,l.viewKindOf)(a))},"shortenPaths",0,function(a){return a.split(/(```[\s\S]*?```)/).map((a,b)=>b%2==1?a:a.replace(/`([^`\n]+)`/g,(a,b)=>{let c=b.trim();if(!c.includes("/"))return a;let[d]=(0,l.pathsIn)(c),e=d?.split("/").pop();return d&&e&&c.endsWith(e)?`\`${e}\``:a})).join("")}],321799)},8468,107340,86922,600154,a=>{"use strict";var b=a.i(187924),c=a.i(692867),d=a.i(795304),e=a.i(626335),f=a.i(752562),g=a.i(589027),h=a.i(168370),i=a.i(755681),j=a.i(847799),k=a.i(483138),l=a.i(696732),m=a.i(149596),n=a.i(71215),o=a.i(126766),p=a.i(62140),q=a.i(875160),r=a.i(162591),s=a.i(328423),t=a.i(488540),u=a.i(204719),v=a.i(674746),w=a.i(357307),x=a.i(586446),y=a.i(924613),z=a.i(571987),A=a.i(572131),B=a.i(767561),C=a.i(545097),D=a.i(341889),E=a.i(950463),F=a.i(446334),G=a.i(287702),H=a.i(421042),I=a.i(321799),J=a.i(164831);let K={name:"cable",size:24,node:[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]]};K.node;let L=(0,J.default)(K);a.s(["McpMark",0,L],107340);let M={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};M.node;let N=(0,J.default)(M);a.s(["MemoryMark",0,N],86922);var O=a.i(156819);let P=a.i(444080).BookMarked;a.s(["SkillsMark",0,P],600154);var Q=a.i(38793),R=a.i(369768),S=a.i(759497),T=a.i(497895);let U={[H.TOOL_NAMES.web_search]:function({tool:a,threadId:c,collapsed:d}){let e=aa(a),f=e.length?[]:an(a.results);return(0,b.jsxs)(ah,{tool:a,threadId:c,collapsed:d,children:[(0,b.jsxs)("p",{className:"px-3 pt-1 pb-1.5 text-[13px] leading-snug break-keep wrap-anywhere",children:["“",a.input,"”"]}),e.length>0&&(0,b.jsx)(F.SourceChips,{sources:e,className:"px-3 pb-2"}),f.length>0&&(0,b.jsx)("ol",{className:"space-y-0.5 px-3 pb-2",children:f.map((a,c)=>(0,b.jsxs)("li",{className:"flex gap-2 text-[11.5px] leading-snug text-muted-foreground",children:[(0,b.jsx)("span",{className:"mt-1.25 size-1 shrink-0 rounded-full bg-muted-foreground/50"}),(0,b.jsx)("span",{className:"truncate",children:a})]},`${c}-${a}`))})]})},[H.TOOL_NAMES.bash]:function({tool:a,threadId:c,collapsed:d}){let e=an(a.results);return(0,b.jsx)(ah,{tool:a,threadId:c,collapsed:d,children:(0,b.jsxs)("pre",{className:"mx-3 overflow-x-auto rounded-lg bg-foreground/5 px-2.5 py-1.5 font-mono text-[11px] leading-relaxed scrollbar-none dark:bg-black/25",children:[(0,b.jsx)("span",{className:"text-muted-foreground/60",children:"$ "}),a.input,e.length>0&&(0,b.jsx)("span",{className:"block text-muted-foreground",children:e.join("\n")})]})})},[H.TOOL_NAMES.write_file]:function({tool:a,threadId:c,collapsed:d}){let e=a.path??a.input;return(0,b.jsxs)(ah,{tool:a,threadId:c,collapsed:d,children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-1 pb-1.5",children:[(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px]",children:a.input}),(0,b.jsxs)(R.FileLink,{path:e,from:c,label:`Open ${e}`,className:"flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:bg-background hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50",children:[(0,b.jsx)(h.ExternalLink,{className:"size-3"}),"Open"]})]}),(0,b.jsx)(am,{lines:an(a.results),mono:!0})]})}},V=Object.values(H.STUDIO_TOOLS);function W(a){if(a.name!==H.TOOL_NAMES.tool_call)return null;let[b,c,...d]=a.input.split(" ");if(b!==G.STUDIO_SERVER)return null;let e=V.find(a=>a===c);return e?{name:e,words:d.join(" ")}:null}let X={[H.STUDIO_TOOLS.generate_image]:n.Image,[H.STUDIO_TOOLS.generate_video]:x.Video,[H.STUDIO_TOOLS.generate_speech]:c.AudioLines,[H.STUDIO_TOOLS.transcribe]:e.Captions},Y={[H.TOOL_NAMES.web_search]:l.Globe,[H.TOOL_NAMES.bash]:w.Terminal,[H.TOOL_NAMES.write_file]:j.FilePen,[H.TOOL_NAMES.memory_recall]:N,[H.TOOL_NAMES.memory_create]:N,[H.TOOL_NAMES.memory_remember]:N,[H.TOOL_NAMES.memory_describe]:N,[H.TOOL_NAMES.memory_forget]:N,[H.TOOL_NAMES.load_skill]:P,[H.TOOL_NAMES.tool_search]:L,[H.TOOL_NAMES.tool_call]:L,[H.TOOL_NAMES.thread_start]:v.Send,[H.TOOL_NAMES.thread_tell]:v.Send,[H.TOOL_NAMES.thread_answer]:v.Send,[H.TOOL_NAMES.thread_status]:p.ListChecks,[H.TOOL_NAMES.thread_cancel]:p.ListChecks,[H.TOOL_NAMES.thread_show]:p.ListChecks,[H.TOOL_NAMES.thread_seen]:p.ListChecks,[H.TOOL_NAMES.send_message]:s.MessageSquare,[H.TOOL_NAMES.look_at]:i.Eye,[H.TOOL_NAMES.make_deck]:u.Presentation,[H.TOOL_NAMES.describe_self]:m.IdCard,[H.TOOL_NAMES.sign_in_use]:o.KeyRound,[H.TOOL_NAMES.sign_in_keep]:o.KeyRound,[H.TOOL_NAMES.check_mail]:r.Mail,[H.TOOL_NAMES.end_call]:t.PhoneOff,[H.TOOL_NAMES.routine]:O.RoutineMark},Z=a=>Y[a]??y.Wrench,$=new Set(["cat","sed","head","tail","grep","rg","ls","find","wc","awk","jq"]),_=a=>a.split("/").pop()??a;function aa(a){return an(a.results).flatMap(a=>{let b=/https?:\/\/\S+/.exec(a)?.[0];if(!b)return[];let c=a.slice(0,a.indexOf(b)).replace(/[\s—-]+$/,"");return[{url:b,...c?{title:c}:{}}]})}function ab(a){return(0,I.imagePathsIn)([a.path??"",a.input,...an(a.results)].join("\n"))}function ac(a){let b=ab(a)[0],c=W(a);if(c)return{icon:X[c.name]??y.Wrench,image:b,makes:c.name===H.STUDIO_TOOLS.generate_image};if(a.name===H.TOOL_NAMES.web_search)return{icon:l.Globe,pages:aa(a)};if(a.name===H.TOOL_NAMES.write_file)return{icon:j.FilePen,image:b,target:_(a.path??a.input)};if(a.name!==H.TOOL_NAMES.bash)return{icon:Z(a.name),image:b};let e=a.input.replace(/^\s*cd\s+\S+\s*&&\s*/,"").trim(),[f=""]=e.split(/\s+/),g=/(?:^|[\s;&|(])playwright-cli((?:\s+-\S+)*)\s+([a-z-]+)/.exec(e);if(g){if("screenshot"===g[2])return{icon:d.Camera,image:b};let a=/https?:\/\/[^\s'"]+/.exec(e)?.[0];return{icon:l.Globe,host:a&&(0,T.hostOf)(a)||void 0,image:b}}return $.has(f)?{icon:k.FileText,image:b,target:a.path?_(a.path):void 0}:{icon:w.Terminal,image:b,target:f||void 0}}function ad({face:a}){if(a.pages?.length){let c=[...new Set(a.pages.flatMap(a=>(0,T.hostOf)(a.url)??[]))].slice(0,3);return(0,b.jsx)("span",{className:"flex shrink-0 items-center gap-1",children:c.map(a=>(0,b.jsx)(D.SiteIcon,{host:a},a))})}return a.host?(0,b.jsxs)("span",{className:"flex h-5 shrink-0 items-center gap-1.5 rounded-full bg-muted pr-2 pl-1 text-[11px] text-foreground/80",children:[(0,b.jsx)(D.SiteIcon,{host:a.host}),a.host]}):a.target&&!a.image?(0,b.jsx)("span",{className:"max-w-40 shrink truncate font-mono text-[10.5px] text-muted-foreground",children:a.target}):null}let ae="size-36 rounded-xl";function af({tool:a,threadId:c,collapsed:d}){let e=W(a),[f]=ab(a),g=void 0===a.results&&e?.name===H.STUDIO_TOOLS.generate_image;return(0,b.jsxs)(ah,{tool:a,threadId:c,collapsed:d,children:[e?.words&&(0,b.jsxs)("p",{className:"px-3 pt-1 pb-1.5 text-[13px] leading-snug break-keep wrap-anywhere",children:["“",e.words,"”"]}),f?(0,b.jsx)(R.FileLink,{path:f,from:c,title:f,className:"mx-3 mb-1.5 block w-fit overflow-hidden rounded-xl outline-none ring-1 ring-foreground/5 transition-opacity ring-inset hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,b.jsx)(Q.FileThumb,{path:f,className:ae})}):g?(0,b.jsx)(E.Skeleton,{className:(0,T.cn)("mx-3 mb-1.5",ae)}):(0,b.jsx)(am,{lines:an(a.results)})]})}function ag({tool:a,threadId:c,collapsed:d}){return(0,b.jsxs)(ah,{tool:a,threadId:c,collapsed:d,children:[(0,b.jsx)("p",{className:"px-3 pt-1 pb-1.5 text-[12px] leading-snug break-keep wrap-anywhere",children:a.input}),(0,b.jsx)(am,{lines:an(a.results)})]})}function ah({tool:a,threadId:c,collapsed:d=!1,children:e}){let h=void 0===a.results,i=ac(a),j=i.icon,[k,l]=(0,A.useState)(!d),m=c&&a.callId&&((a.results?.length??0)>0||a.more);return(0,b.jsxs)("div",{className:(0,T.cn)("@container w-full overflow-hidden rounded-xl transition-colors",k?"bg-background/80 dark:bg-white/4":"hover:bg-foreground/4"),children:[(0,b.jsxs)("button",{type:"button",onClick:()=>l(a=>!a),"aria-expanded":k,className:"flex w-full items-center gap-2 rounded-xl px-2.5 py-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,b.jsx)("span",{className:"grid size-5 shrink-0 place-items-center rounded-[7px] bg-foreground/8 text-muted-foreground",children:h?(0,b.jsx)(q.Loader2,{className:"size-3 animate-spin"}):(0,b.jsx)(j,{className:"size-3"})}),a.note?(0,b.jsxs)(b.Fragment,{children:[h?(0,b.jsx)(C.ShinyText,{text:a.note,speed:2.4,className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep"}):(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep",children:a.note}),(0,b.jsx)("span",{className:"hidden min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-muted-foreground/85 @lg:block",children:a.input})]}):h?(0,b.jsx)(C.ShinyText,{text:a.input,speed:2.4,className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4"}):(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-foreground/80",children:a.input}),(0,b.jsx)(ai,{paths:ab(a),waiting:h&&i.makes}),(0,b.jsx)(ad,{face:i}),!h&&(0,b.jsx)(f.Check,{className:"size-3 shrink-0 text-muted-foreground/50"}),(0,b.jsx)(g.ChevronDown,{className:(0,T.cn)("size-3 shrink-0 text-muted-foreground/50 transition-transform",k&&"rotate-180")})]}),k&&(0,b.jsxs)("div",{className:"pb-1.5 pl-[1.625rem]",children:[e,m&&(0,b.jsx)(ak,{threadId:c,callId:a.callId})]})]})}function ai({paths:a,waiting:c}){let[d,e]=(0,A.useState)([]),f=a.filter(a=>!d.includes(a)).slice(0,aj);return f.length?(0,b.jsx)("span",{className:"flex shrink-0 items-center",children:f.map((a,c)=>(0,b.jsx)(z.default,{src:B.queryKey.file(a),alt:"",width:48,height:48,loading:"lazy",decoding:"async",onError:()=>e(b=>[...b,a]),className:(0,T.cn)("size-6 rounded-md bg-muted object-cover ring-2 ring-background",c>0&&"-ml-1.5")},a))}):c?(0,b.jsx)(E.Skeleton,{className:"size-6 shrink-0 rounded-md"}):null}let aj=3;function ak({threadId:a,callId:c}){let[d,e]=(0,A.useState)(!1),{data:f,isLoading:h}=(0,S.useServerRoute)(d?B.queryKey.toolResult(a,c):null);return(0,b.jsxs)("div",{className:"px-3 pb-1",children:[(0,b.jsxs)("button",{type:"button",onClick:()=>e(a=>!a),className:"flex items-center gap-1 rounded-md py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,b.jsx)(g.ChevronDown,{className:(0,T.cn)("size-3",d&&"rotate-180")}),d?"Less":"Everything"]}),d&&(h||!f?(0,b.jsx)(E.Skeleton,{className:"mt-1.5 h-12 w-full rounded-lg"}):(0,b.jsxs)("div",{className:"mt-1.5 space-y-1.5",children:[ao(f).map((a,c)=>(0,b.jsx)(al,{src:a},`${c}-${a.length}`)),an(f).length>0&&(0,b.jsx)("pre",{className:"max-h-72 overflow-auto rounded-lg bg-foreground/5 px-2.5 py-2 font-mono text-[11px] leading-relaxed break-all whitespace-pre-wrap dark:bg-black/25",children:an(f).join("\n")})]}))]})}function al({src:a}){let[c,d]=(0,A.useState)(!1);return c?null:(0,b.jsx)("img",{src:a,alt:"",onError:()=>d(!0),className:"block w-full rounded-lg bg-muted object-contain"})}function am({lines:a,mono:c}){return 0===a.length?null:(0,b.jsx)("ul",{className:"px-3 pb-1.5",children:a.map((a,d)=>(0,b.jsx)("li",{className:(0,T.cn)("truncate text-[11px] leading-relaxed text-muted-foreground",c&&"font-mono"),children:a},`${d}-${a}`))})}let an=a=>a?.flatMap(a=>"text"===a.type?[a.text]:[])??[],ao=a=>a?.flatMap(a=>"image"===a.type?[a.src]:[])??[];a.s(["BotTool",0,function(a){let c=W(a.tool)?af:U[a.tool.name]??ag;return(0,b.jsx)(c,{...a})},"StepTile",0,function({tool:a,onOpen:c}){let d=ac(a),[e,f]=(0,A.useState)(!1),g=d.icon;return(0,b.jsx)("button",{type:"button",onClick:c,title:a.note??a.input,"aria-label":a.note??a.input,className:"grid size-6 shrink-0 place-items-center overflow-hidden rounded-full bg-background text-muted-foreground outline-none transition-transform hover:scale-110 focus-visible:ring-3 focus-visible:ring-ring/50",children:d.image&&!e?(0,b.jsx)(z.default,{src:B.queryKey.file(d.image),alt:"",width:48,height:48,loading:"lazy",decoding:"async",onError:()=>f(!0),className:"size-full object-cover"}):d.host?(0,b.jsx)(D.SiteIcon,{host:d.host,className:"size-3.5 rounded-full",fallback:(0,b.jsx)(g,{className:"size-3"})}):(0,b.jsx)(g,{className:"size-3"})})},"toolIcon",0,Z],8468)},346075,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(923033),e=a.i(647509),f=a.i(663390);let g=240/276,h=new Map,i=new Set,j=null;a.s(["THURSDAY_SEED",0,"thursday","ThursdayMark",0,function({size:a=16,className:k}){let l="emoji"===(0,f.useFaceGlyphs)(),{cells:m,font:n}=function(a){let b=h.get(a);if(b)return b;let c=a*g,d=(a-c)/2,f=Math.max(2,Math.round(c/4)),i=c/f,j=.98*i,k=[];for(let a=0;a<f;a++)for(let b=0;b<f;b++){let g=3===f&&1!==a&&1!==b?.72:1,h=c/2+i*(b+.5-f/2)*g,l=c/2+i*(a+.5-f/2)*g,m=Math.hypot(h-c/2,l-c/2)/(c/2),n=977*f+a*f+b;!(m+(f>=5?((0,e.hash)(n,1)-.5)*.24:0)>.98)&&(f>=8&&(0,e.hash)(n,2)<.02+.24*m**3||k.push({seed:n,x:d+h,y:d+l+.36*j,r:m}))}let l={cells:k,font:j};return h.set(a,l),l}(a),[o,p]=(0,c.useState)(0),q=(0,c.useRef)(null),r=(0,d.useOnScreen)(q);return(0,c.useEffect)(()=>{if(r&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){if(i.add(p),!j){let a=Date.now();j=setInterval(()=>{let b=Date.now()-a;for(let a of i)a(b)},155)}return()=>{i.delete(p),0===i.size&&j&&(clearInterval(j),j=null)}}},[r]),(0,b.jsx)("svg",{ref:q,viewBox:`0 0 ${a} ${a}`,width:a,height:a,className:k,fill:"currentColor","aria-hidden":!0,children:m.map(a=>(0,b.jsx)("text",{x:a.x,y:a.y,textAnchor:"middle",fontFamily:l?'"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif':"ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:l?void 0:700,fontSize:n,children:function(a,b,c){let d=Math.floor((b+620*(0,e.hash)(a.seed,11)*3)/620);if(c){let b=Math.floor((0,e.hash)(a.seed,17)*e.EMOJI_POOL.length);return e.EMOJI_POOL[(b+9*d)%e.EMOJI_POOL.length]}let f=Math.round(5+4*Math.max(0,1-a.r**2)**.6),g=e.RAMP[Math.min(e.RAMP.length-1,f)];return g[Math.floor((0,e.hash)(a.seed,d)*g.length)]??" "}(a,o,l)},a.seed))})}])},795304,755681,847799,149596,62140,328423,488540,674746,357307,a=>{"use strict";var b=a.i(164831);let c={name:"camera",size:24,node:[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]};c.node;let d=(0,b.default)(c);a.s(["Camera",0,d],795304);let e={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};e.node;let f=(0,b.default)(e);a.s(["Eye",0,f],755681);let g={name:"file-pen",size:24,node:[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],aliases:["file-edit"]};g.node;let h=(0,b.default)(g);a.s(["FilePen",0,h],847799);let i={name:"id-card",size:24,node:[["path",{d:"M13 19a4 4 0 00-8 0",key:"cugzd5"}],["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]]};i.node;let j=(0,b.default)(i);a.s(["IdCard",0,j],149596);let k={name:"list-checks",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};k.node;let l=(0,b.default)(k);a.s(["ListChecks",0,l],62140);let m={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};m.node;let n=(0,b.default)(m);a.s(["MessageSquare",0,n],328423);let o={name:"phone-off",size:24,node:[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]]};o.node;let p=(0,b.default)(o);a.s(["PhoneOff",0,p],488540);let q={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};q.node;let r=(0,b.default)(q);a.s(["Send",0,r],674746);let s={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};s.node;let t=(0,b.default)(s);a.s(["Terminal",0,t],357307)}];
|
|
1
|
+
module.exports=[446334,a=>{"use strict";var b=a.i(187924),c=a.i(341889),d=a.i(497895);a.s(["SourceChips",0,function({sources:a,limit:e,className:f}){let g=a.flatMap(a=>{let b=(0,d.hostOf)(a.url);return b?[{...a,host:b}]:[]}),h=e?g.slice(0,e):g,i=g.length-h.length;return(0,b.jsxs)("span",{className:(0,d.cn)("flex min-w-0 flex-wrap items-center gap-1",f),children:[h.map(a=>(0,b.jsxs)("a",{href:a.url,target:"_blank",rel:"noreferrer",title:a.title??a.url,className:"flex h-[22px] min-w-0 items-center gap-1.5 rounded-full bg-muted pr-2 pl-1 text-[11.5px] leading-4 text-foreground/80 outline-none transition-colors hover:bg-accent focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,b.jsx)(c.SiteIcon,{host:a.host}),(0,b.jsx)("span",{className:"truncate",children:a.host})]},a.url)),i>0&&(0,b.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:["+",i]})]})}])},321799,a=>{"use strict";var b=a.i(187924),c=a.i(164831);let d={name:"file-x",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]]};d.node;let e=(0,c.default)(d);var f=a.i(571987),g=a.i(572131),h=a.i(767561),i=a.i(287702),j=a.i(38793),k=a.i(369768),l=a.i(559553),m=a.i(759497),n=a.i(497895);let o=a=>a.split(".").pop()?.toLowerCase()??"file",p=a=>a.split("/").pop()??a;a.s(["Attachments",0,function({text:a,from:c=null,className:d,onBubble:q=!1}){let r=(0,g.useMemo)(()=>(0,l.pathsIn)(a),[a]),{data:s}=(0,m.useServerRoute)(r.length?h.queryKey.workspaceFiles(r):null),t=(0,g.useMemo)(()=>s??[],[s]),u=(0,g.useMemo)(()=>t.filter(a=>"image"===(0,l.viewKindOf)(a.path)),[t]),v=(0,g.useMemo)(()=>{let a=0;return t.filter(b=>{let c=(0,j.faceOf)(b.path,b.bytes);return"text"===c||"page"===c&&(a+=1)<=i.FILE_THUMB.pages})},[t]),w=t.filter(a=>!u.includes(a)&&!v.includes(a)),x=new Set(t.map(a=>p(a.path))),y=r.filter(a=>!t.some(b=>b.path===a)&&!x.has(p(a)));if(!r.length||!s||!t.length&&!y.length)return null;let z=u.map(a=>a.path),A=u.slice(0,4),B=u.length-A.length,C=u.length+v.length<=2,D=C?"h-40 w-32":"h-26.25 w-21";return(0,b.jsxs)("div",{className:(0,n.cn)("flex min-w-0 flex-col gap-1.5",d),children:[(A.length>0||v.length>0)&&(0,b.jsxs)("div",{className:"flex flex-wrap items-start gap-1.5",children:[v.map(a=>(0,b.jsxs)(k.FileLink,{from:c,path:a.path,title:`${a.path} — ${(0,n.formatBytes)(a.bytes)}`,className:(0,n.cn)("flex shrink-0 flex-col gap-1 rounded-xl outline-none transition-opacity hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",C?"w-32":"w-21"),children:[(0,b.jsx)(j.FileThumb,{path:a.path,bytes:a.bytes,className:(0,n.cn)("w-full rounded-xl ring-1 ring-foreground/5 ring-inset",D)}),(0,b.jsxs)("span",{className:"flex flex-col items-start px-0.5",children:[(0,b.jsx)("span",{className:"max-w-full truncate text-[11.5px] leading-4",children:p(a.path)}),(0,b.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[o(a.path)," · ",(0,n.formatBytes)(a.bytes)]})]})]},a.path)),A.map((a,d)=>(0,b.jsxs)(k.FileLink,{from:c,path:a.path,group:z,title:`${a.path} — ${(0,n.formatBytes)(a.bytes)}`,className:(0,n.cn)("relative shrink-0 overflow-hidden rounded-xl bg-muted outline-none ring-1 ring-foreground/5 ring-inset transition-opacity hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",D),children:[(0,b.jsx)(f.default,{src:h.queryKey.file(a.path),alt:p(a.path),fill:!0,sizes:`${i.FILE_THUMB.imageWidth}px`,loading:"lazy",decoding:"async",className:"object-cover"}),B>0&&d===A.length-1&&(0,b.jsxs)("span",{className:"absolute inset-0 grid place-items-center bg-black/45 text-[14px] font-medium text-white",children:["+",B]})]},a.path))]}),w.map(a=>{let d=(0,j.fileIcon)(a.path);return(0,b.jsxs)(k.FileLink,{from:c,path:a.path,title:a.path,className:(0,n.cn)("flex w-fit max-w-full items-center gap-2.5 rounded-xl py-1.5 pr-3 pl-1.5 outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",q?"bg-background/70 hover:bg-background":"bg-muted/70 hover:bg-muted"),children:[(0,b.jsx)("span",{className:(0,n.cn)("grid size-8 shrink-0 place-items-center rounded-lg text-muted-foreground",q?"bg-muted":"bg-background"),children:(0,b.jsx)(d,{className:"size-3.5"})}),(0,b.jsxs)("span",{className:"flex min-w-0 flex-col items-start",children:[(0,b.jsx)("span",{className:"max-w-full truncate text-[12.5px] leading-4.25",children:p(a.path)}),(0,b.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[o(a.path)," · ",(0,n.formatBytes)(a.bytes)]})]})]},a.path)}),y.length>0&&(0,b.jsx)("div",{className:"flex flex-wrap gap-1.5",children:y.map(a=>(0,b.jsxs)("span",{title:`${a} — not on disk`,className:"flex max-w-full items-center gap-1.5 rounded-full bg-muted/70 py-1 pr-2.5 pl-2 font-mono text-[11px] text-muted-foreground",children:[(0,b.jsx)(e,{className:"size-3 shrink-0"}),(0,b.jsx)("span",{className:"truncate line-through",children:p(a)})]},a))})]})},"imagePathsIn",0,function(a){return(0,l.pathsIn)(a).filter(a=>"image"===(0,l.viewKindOf)(a))},"shortenPaths",0,function(a){return a.split(/(```[\s\S]*?```)/).map((a,b)=>b%2==1?a:a.replace(/`([^`\n]+)`/g,(a,b)=>{let c=b.trim();if(!c.includes("/"))return a;let[d]=(0,l.pathsIn)(c),e=d?.split("/").pop();return d&&e&&c.endsWith(e)?`\`${e}\``:a})).join("")}],321799)},8468,107340,86922,600154,a=>{"use strict";var b=a.i(187924),c=a.i(692867),d=a.i(795304),e=a.i(626335),f=a.i(752562),g=a.i(589027),h=a.i(168370),i=a.i(755681),j=a.i(847799),k=a.i(483138),l=a.i(696732),m=a.i(149596),n=a.i(71215),o=a.i(126766),p=a.i(62140),q=a.i(875160),r=a.i(162591),s=a.i(328423),t=a.i(488540),u=a.i(204719),v=a.i(674746),w=a.i(357307),x=a.i(586446),y=a.i(924613),z=a.i(571987),A=a.i(572131),B=a.i(767561),C=a.i(545097),D=a.i(341889),E=a.i(950463),F=a.i(446334),G=a.i(287702),H=a.i(421042),I=a.i(321799),J=a.i(164831);let K={name:"cable",size:24,node:[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]]};K.node;let L=(0,J.default)(K);a.s(["McpMark",0,L],107340);let M={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};M.node;let N=(0,J.default)(M);a.s(["MemoryMark",0,N],86922);var O=a.i(156819);let P=a.i(444080).BookMarked;a.s(["SkillsMark",0,P],600154);var Q=a.i(38793),R=a.i(369768),S=a.i(759497),T=a.i(497895);let U={[H.TOOL_NAMES.web_search]:function({tool:a,threadId:c,collapsed:d}){let e=aa(a),f=e.length?[]:an(a.results);return(0,b.jsxs)(ah,{tool:a,threadId:c,collapsed:d,children:[(0,b.jsxs)("p",{className:"px-3 pt-1 pb-1.5 text-[13px] leading-snug break-keep wrap-anywhere",children:["“",a.input,"”"]}),e.length>0&&(0,b.jsx)(F.SourceChips,{sources:e,className:"px-3 pb-2"}),f.length>0&&(0,b.jsx)("ol",{className:"space-y-0.5 px-3 pb-2",children:f.map((a,c)=>(0,b.jsxs)("li",{className:"flex gap-2 text-[11.5px] leading-snug text-muted-foreground",children:[(0,b.jsx)("span",{className:"mt-1.25 size-1 shrink-0 rounded-full bg-muted-foreground/50"}),(0,b.jsx)("span",{className:"truncate",children:a})]},`${c}-${a}`))})]})},[H.TOOL_NAMES.bash]:function({tool:a,threadId:c,collapsed:d}){let e=an(a.results);return(0,b.jsx)(ah,{tool:a,threadId:c,collapsed:d,children:(0,b.jsxs)("pre",{className:"mx-3 overflow-x-auto rounded-lg bg-foreground/5 px-2.5 py-1.5 font-mono text-[11px] leading-relaxed scrollbar-none dark:bg-black/25",children:[(0,b.jsx)("span",{className:"text-muted-foreground/60",children:"$ "}),a.input,e.length>0&&(0,b.jsx)("span",{className:"block text-muted-foreground",children:e.join("\n")})]})})},[H.TOOL_NAMES.write_file]:function({tool:a,threadId:c,collapsed:d}){let e=a.path??a.input;return(0,b.jsxs)(ah,{tool:a,threadId:c,collapsed:d,children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-1 pb-1.5",children:[(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px]",children:a.input}),(0,b.jsxs)(R.FileLink,{path:e,from:c,label:`Open ${e}`,className:"flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:bg-background hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50",children:[(0,b.jsx)(h.ExternalLink,{className:"size-3"}),"Open"]})]}),(0,b.jsx)(am,{lines:an(a.results),mono:!0})]})}},V=Object.values(H.STUDIO_TOOLS);function W(a){if(a.name!==H.TOOL_NAMES.tool_call)return null;let[b,c,...d]=a.input.split(" ");if(b!==G.STUDIO_SERVER)return null;let e=V.find(a=>a===c);return e?{name:e,words:d.join(" ")}:null}let X={[H.STUDIO_TOOLS.generate_image]:n.Image,[H.STUDIO_TOOLS.generate_video]:x.Video,[H.STUDIO_TOOLS.generate_speech]:c.AudioLines,[H.STUDIO_TOOLS.transcribe]:e.Captions},Y={[H.TOOL_NAMES.web_search]:l.Globe,[H.TOOL_NAMES.bash]:w.Terminal,[H.TOOL_NAMES.write_file]:j.FilePen,[H.TOOL_NAMES.memory_recall]:N,[H.TOOL_NAMES.memory_create]:N,[H.TOOL_NAMES.memory_remember]:N,[H.TOOL_NAMES.memory_describe]:N,[H.TOOL_NAMES.memory_forget]:N,[H.TOOL_NAMES.load_skill]:P,[H.TOOL_NAMES.tool_search]:L,[H.TOOL_NAMES.tool_call]:L,[H.TOOL_NAMES.thread_start]:v.Send,[H.TOOL_NAMES.thread_tell]:v.Send,[H.TOOL_NAMES.thread_answer]:v.Send,[H.TOOL_NAMES.thread_status]:p.ListChecks,[H.TOOL_NAMES.thread_cancel]:p.ListChecks,[H.TOOL_NAMES.thread_show]:p.ListChecks,[H.TOOL_NAMES.thread_seen]:p.ListChecks,[H.TOOL_NAMES.send_message]:s.MessageSquare,[H.TOOL_NAMES.look_at]:i.Eye,[H.TOOL_NAMES.make_deck]:u.Presentation,[H.TOOL_NAMES.describe_self]:m.IdCard,[H.TOOL_NAMES.sign_in_use]:o.KeyRound,[H.TOOL_NAMES.sign_in_keep]:o.KeyRound,[H.TOOL_NAMES.check_mail]:r.Mail,[H.TOOL_NAMES.end_call]:t.PhoneOff,[H.TOOL_NAMES.routine]:O.RoutineMark},Z=a=>Y[a]??y.Wrench,$=new Set(["cat","sed","head","tail","grep","rg","ls","find","wc","awk","jq"]),_=a=>a.split("/").pop()??a;function aa(a){return an(a.results).flatMap(a=>{let b=/https?:\/\/\S+/.exec(a)?.[0];if(!b)return[];let c=a.slice(0,a.indexOf(b)).replace(/[\s—-]+$/,"");return[{url:b,...c?{title:c}:{}}]})}function ab(a){return(0,I.imagePathsIn)([a.path??"",a.input,...an(a.results)].join("\n"))}function ac(a){let b=ab(a)[0],c=W(a);if(c)return{icon:X[c.name]??y.Wrench,image:b,makes:c.name===H.STUDIO_TOOLS.generate_image};if(a.name===H.TOOL_NAMES.web_search)return{icon:l.Globe,pages:aa(a)};if(a.name===H.TOOL_NAMES.write_file)return{icon:j.FilePen,image:b,target:_(a.path??a.input)};if(a.name!==H.TOOL_NAMES.bash)return{icon:Z(a.name),image:b};let e=a.input.replace(/^\s*cd\s+\S+\s*&&\s*/,"").trim(),[f=""]=e.split(/\s+/),g=/(?:^|[\s;&|(])playwright-cli((?:\s+-\S+)*)\s+([a-z-]+)/.exec(e);if(g){if("screenshot"===g[2])return{icon:d.Camera,image:b};let a=/https?:\/\/[^\s'"]+/.exec(e)?.[0];return{icon:l.Globe,host:a&&(0,T.hostOf)(a)||void 0,image:b}}return $.has(f)?{icon:k.FileText,image:b,target:a.path?_(a.path):void 0}:{icon:w.Terminal,image:b,target:f||void 0}}function ad({face:a}){if(a.pages?.length){let c=[...new Set(a.pages.flatMap(a=>(0,T.hostOf)(a.url)??[]))].slice(0,3);return(0,b.jsx)("span",{className:"flex shrink-0 items-center gap-1",children:c.map(a=>(0,b.jsx)(D.SiteIcon,{host:a},a))})}return a.host?(0,b.jsxs)("span",{className:"flex h-5 shrink-0 items-center gap-1.5 rounded-full bg-muted pr-2 pl-1 text-[11px] text-foreground/80",children:[(0,b.jsx)(D.SiteIcon,{host:a.host}),a.host]}):a.target&&!a.image?(0,b.jsx)("span",{className:"max-w-40 shrink truncate font-mono text-[10.5px] text-muted-foreground",children:a.target}):null}let ae="size-36 rounded-xl";function af({tool:a,threadId:c,collapsed:d}){let e=W(a),[f]=ab(a),g=void 0===a.results&&e?.name===H.STUDIO_TOOLS.generate_image;return(0,b.jsxs)(ah,{tool:a,threadId:c,collapsed:d,children:[e?.words&&(0,b.jsxs)("p",{className:"px-3 pt-1 pb-1.5 text-[13px] leading-snug break-keep wrap-anywhere",children:["“",e.words,"”"]}),f?(0,b.jsx)(R.FileLink,{path:f,from:c,title:f,className:"mx-3 mb-1.5 block w-fit overflow-hidden rounded-xl outline-none ring-1 ring-foreground/5 transition-opacity ring-inset hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,b.jsx)(Q.FileThumb,{path:f,className:ae})}):g?(0,b.jsx)(E.Skeleton,{className:(0,T.cn)("mx-3 mb-1.5",ae)}):(0,b.jsx)(am,{lines:an(a.results)})]})}function ag({tool:a,threadId:c,collapsed:d}){return(0,b.jsxs)(ah,{tool:a,threadId:c,collapsed:d,children:[(0,b.jsx)("p",{className:"px-3 pt-1 pb-1.5 text-[12px] leading-snug break-keep wrap-anywhere",children:a.input}),(0,b.jsx)(am,{lines:an(a.results)})]})}function ah({tool:a,threadId:c,collapsed:d=!1,children:e}){let h=void 0===a.results,i=ac(a),j=i.icon,[k,l]=(0,A.useState)(!d),m=c&&a.callId&&((a.results?.length??0)>0||a.more);return(0,b.jsxs)("div",{className:(0,T.cn)("@container w-full overflow-hidden rounded-xl transition-colors",k?"bg-background/80 dark:bg-white/4":"hover:bg-foreground/4"),children:[(0,b.jsxs)("button",{type:"button",onClick:()=>l(a=>!a),"aria-expanded":k,className:"flex w-full items-center gap-2 rounded-xl px-2.5 py-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,b.jsx)("span",{className:"grid size-5 shrink-0 place-items-center rounded-[7px] bg-foreground/8 text-muted-foreground",children:h?(0,b.jsx)(q.Loader2,{className:"size-3 animate-spin"}):(0,b.jsx)(j,{className:"size-3"})}),a.note?(0,b.jsxs)(b.Fragment,{children:[h?(0,b.jsx)(C.ShinyText,{text:a.note,speed:2.4,className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep"}):(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep",children:a.note}),(0,b.jsx)("span",{className:"hidden min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-muted-foreground @lg:block",children:a.input})]}):h?(0,b.jsx)(C.ShinyText,{text:a.input,speed:2.4,className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4"}):(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-foreground/80",children:a.input}),(0,b.jsx)(ai,{paths:ab(a),waiting:h&&i.makes}),(0,b.jsx)(ad,{face:i}),!h&&(0,b.jsx)(f.Check,{className:"size-3 shrink-0 text-muted-foreground/50"}),(0,b.jsx)(g.ChevronDown,{className:(0,T.cn)("size-3 shrink-0 text-muted-foreground/50 transition-transform",k&&"rotate-180")})]}),k&&(0,b.jsxs)("div",{className:"pb-1.5 pl-[1.625rem]",children:[e,m&&(0,b.jsx)(ak,{threadId:c,callId:a.callId})]})]})}function ai({paths:a,waiting:c}){let[d,e]=(0,A.useState)([]),f=a.filter(a=>!d.includes(a)).slice(0,aj);return f.length?(0,b.jsx)("span",{className:"flex shrink-0 items-center",children:f.map((a,c)=>(0,b.jsx)(z.default,{src:B.queryKey.file(a),alt:"",width:48,height:48,loading:"lazy",decoding:"async",onError:()=>e(b=>[...b,a]),className:(0,T.cn)("size-6 rounded-md bg-muted object-cover ring-2 ring-background",c>0&&"-ml-1.5")},a))}):c?(0,b.jsx)(E.Skeleton,{className:"size-6 shrink-0 rounded-md"}):null}let aj=3;function ak({threadId:a,callId:c}){let[d,e]=(0,A.useState)(!1),{data:f,isLoading:h}=(0,S.useServerRoute)(d?B.queryKey.toolResult(a,c):null);return(0,b.jsxs)("div",{className:"px-3 pb-1",children:[(0,b.jsxs)("button",{type:"button",onClick:()=>e(a=>!a),className:"flex items-center gap-1 rounded-md py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,b.jsx)(g.ChevronDown,{className:(0,T.cn)("size-3",d&&"rotate-180")}),d?"Less":"Everything"]}),d&&(h||!f?(0,b.jsx)(E.Skeleton,{className:"mt-1.5 h-12 w-full rounded-lg"}):(0,b.jsxs)("div",{className:"mt-1.5 space-y-1.5",children:[ao(f).map((a,c)=>(0,b.jsx)(al,{src:a},`${c}-${a.length}`)),an(f).length>0&&(0,b.jsx)("pre",{className:"max-h-72 overflow-auto rounded-lg bg-foreground/5 px-2.5 py-2 font-mono text-[11px] leading-relaxed break-all whitespace-pre-wrap dark:bg-black/25",children:an(f).join("\n")})]}))]})}function al({src:a}){let[c,d]=(0,A.useState)(!1);return c?null:(0,b.jsx)("img",{src:a,alt:"",onError:()=>d(!0),className:"block w-full rounded-lg bg-muted object-contain"})}function am({lines:a,mono:c}){return 0===a.length?null:(0,b.jsx)("ul",{className:"px-3 pb-1.5",children:a.map((a,d)=>(0,b.jsx)("li",{className:(0,T.cn)("truncate text-[11px] leading-relaxed text-muted-foreground",c&&"font-mono"),children:a},`${d}-${a}`))})}let an=a=>a?.flatMap(a=>"text"===a.type?[a.text]:[])??[],ao=a=>a?.flatMap(a=>"image"===a.type?[a.src]:[])??[];a.s(["BotTool",0,function(a){let c=W(a.tool)?af:U[a.tool.name]??ag;return(0,b.jsx)(c,{...a})},"StepTile",0,function({tool:a,onOpen:c}){let d=ac(a),[e,f]=(0,A.useState)(!1),g=d.icon;return(0,b.jsx)("button",{type:"button",onClick:c,title:a.note??a.input,"aria-label":a.note??a.input,className:"grid size-6 shrink-0 place-items-center overflow-hidden rounded-full bg-background text-muted-foreground outline-none transition-transform hover:scale-110 focus-visible:ring-3 focus-visible:ring-ring/50",children:d.image&&!e?(0,b.jsx)(z.default,{src:B.queryKey.file(d.image),alt:"",width:48,height:48,loading:"lazy",decoding:"async",onError:()=>f(!0),className:"size-full object-cover"}):d.host?(0,b.jsx)(D.SiteIcon,{host:d.host,className:"size-3.5 rounded-full",fallback:(0,b.jsx)(g,{className:"size-3"})}):(0,b.jsx)(g,{className:"size-3"})})},"toolIcon",0,Z],8468)},346075,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(923033),e=a.i(647509),f=a.i(663390);let g=240/276,h=new Map,i=new Set,j=null;a.s(["THURSDAY_SEED",0,"thursday","ThursdayMark",0,function({size:a=16,className:k}){let l="emoji"===(0,f.useFaceGlyphs)(),{cells:m,font:n}=function(a){let b=h.get(a);if(b)return b;let c=a*g,d=(a-c)/2,f=Math.max(2,Math.round(c/4)),i=c/f,j=.98*i,k=[];for(let a=0;a<f;a++)for(let b=0;b<f;b++){let g=3===f&&1!==a&&1!==b?.72:1,h=c/2+i*(b+.5-f/2)*g,l=c/2+i*(a+.5-f/2)*g,m=Math.hypot(h-c/2,l-c/2)/(c/2),n=977*f+a*f+b;!(m+(f>=5?((0,e.hash)(n,1)-.5)*.24:0)>.98)&&(f>=8&&(0,e.hash)(n,2)<.02+.24*m**3||k.push({seed:n,x:d+h,y:d+l+.36*j,r:m}))}let l={cells:k,font:j};return h.set(a,l),l}(a),[o,p]=(0,c.useState)(0),q=(0,c.useRef)(null),r=(0,d.useOnScreen)(q);return(0,c.useEffect)(()=>{if(r&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){if(i.add(p),!j){let a=Date.now();j=setInterval(()=>{let b=Date.now()-a;for(let a of i)a(b)},155)}return()=>{i.delete(p),0===i.size&&j&&(clearInterval(j),j=null)}}},[r]),(0,b.jsx)("svg",{ref:q,viewBox:`0 0 ${a} ${a}`,width:a,height:a,className:k,fill:"currentColor","aria-hidden":!0,children:m.map(a=>(0,b.jsx)("text",{x:a.x,y:a.y,textAnchor:"middle",fontFamily:l?'"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif':"ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:l?void 0:700,fontSize:n,children:function(a,b,c){let d=Math.floor((b+620*(0,e.hash)(a.seed,11)*3)/620);if(c){let b=Math.floor((0,e.hash)(a.seed,17)*e.EMOJI_POOL.length);return e.EMOJI_POOL[(b+9*d)%e.EMOJI_POOL.length]}let f=Math.round(5+4*Math.max(0,1-a.r**2)**.6),g=e.RAMP[Math.min(e.RAMP.length-1,f)];return g[Math.floor((0,e.hash)(a.seed,d)*g.length)]??" "}(a,o,l)},a.seed))})}])},795304,755681,847799,149596,62140,328423,488540,674746,357307,a=>{"use strict";var b=a.i(164831);let c={name:"camera",size:24,node:[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]};c.node;let d=(0,b.default)(c);a.s(["Camera",0,d],795304);let e={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};e.node;let f=(0,b.default)(e);a.s(["Eye",0,f],755681);let g={name:"file-pen",size:24,node:[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],aliases:["file-edit"]};g.node;let h=(0,b.default)(g);a.s(["FilePen",0,h],847799);let i={name:"id-card",size:24,node:[["path",{d:"M13 19a4 4 0 00-8 0",key:"cugzd5"}],["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]]};i.node;let j=(0,b.default)(i);a.s(["IdCard",0,j],149596);let k={name:"list-checks",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};k.node;let l=(0,b.default)(k);a.s(["ListChecks",0,l],62140);let m={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};m.node;let n=(0,b.default)(m);a.s(["MessageSquare",0,n],328423);let o={name:"phone-off",size:24,node:[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]]};o.node;let p=(0,b.default)(o);a.s(["PhoneOff",0,p],488540);let q={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};q.node;let r=(0,b.default)(q);a.s(["Send",0,r],674746);let s={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};s.node;let t=(0,b.default)(s);a.s(["Terminal",0,t],357307)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=_1a_w_du._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[964665,a=>{"use strict";var b=a.i(187924),c=a.i(707963),d=a.i(168370),e=a.i(844561),f=a.i(164831);let g={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"}]]};g.node;let h=(0,f.default)(g);var i=a.i(951675),j=a.i(572131),k=a.i(767561),l=a.i(340695),m=a.i(446181),n=a.i(950463),o=a.i(287702),p=a.i(405050);let q=(0,p.createServerReference)("7faa2050a249f12d3f4ea225e27b7896d8c9a3ef94",p.callServer,void 0,p.findSourceMapURL,"deleteArtifactAction");var r=a.i(913834),s=a.i(450937),t=a.i(135432),u=a.i(619477),v=a.i(28996),w=a.i(38793),x=a.i(369768),y=a.i(391749),z=a.i(199169),A=a.i(313237),B=a.i(759497),C=a.i(497895);function D(a){let b=new Map;for(let c of a){let a=b.get(c.bot)??[];a.push(c),b.set(c.bot,a)}return[...b].map(([a,b])=>({bot:a,rows:b}))}function E({label:a,mark:c,count:d,active:e,onPick:f}){return(0,b.jsxs)("button",{type:"button",onClick:f,className:(0,C.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",e?(0,C.cn)(u.PICKED_ROW,"font-medium"):"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[c??(0,b.jsx)(h,{className:"size-4 shrink-0"}),(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate",children:a}),(0,b.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] text-muted-foreground/70 tabular-nums",children:d})]})}function F({row:a,file:f,onOpen:g,onBack:h,onGone:j,onShelf:n}){let[o]=(0,A.useServerAction)(y.revealFileAction),[p,r]=(0,A.useServerAction)(q,{okMessage:"Deleted",onOk:()=>{(0,B.revalidate)(k.queryKey.artifacts),f?h():j()}}),u=f?{path:f.path,bytes:f.bytes,at:f.at}:"file"===a.kind?{path:a.path,bytes:a.bytes,at:a.at}:null,{filed:w,note:D,failure:E,follow:H}=(0,s.useFileNote)(u?.path??null,null),I=a=>{v.useSettingsStore.getState().hide(),t.roomOpens.open(a)},J=async a=>{await m.notify.confirm({title:`Delete ${a.split("/").pop()}?`,description:u?"It is deleted from disk for good.":"The folder and everything in it are deleted from disk for good.",okText:"Delete",destructive:!0})&&p(a)};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-3 border-b border-border/60 px-6",children:[(0,b.jsxs)("button",{type:"button",onClick:f?h:n,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,b.jsx)(c.ChevronLeft,{className:"size-3"}),f?a.name:"Shelf"]}),(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-foreground",children:u?u.path.split("/").pop()??a.name:a.name}),(0,b.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:u?`${(0,C.formatBytes)(u.bytes)} \xb7 ${(0,z.shortAgo)(u.at)}`:`${a.count} ${1===a.count?"file":"files"} \xb7 ${(0,z.shortAgo)(a.at)}`}),w&&(0,b.jsx)(s.FileThreadChip,{note:D,onOpen:I}),u&&(0,b.jsx)("a",{href:k.queryKey.fileView(u.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,b.jsx)(d.ExternalLink,{className:"size-4"})}),(0,b.jsx)(l.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>o(u?.path??a.path),children:(0,b.jsx)(e.FolderOpen,{})}),(0,b.jsx)(l.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:r,className:"ml-1.5 text-muted-foreground hover:text-destructive",onClick:()=>J(u?.path??a.path),children:(0,b.jsx)(i.Trash2,{})})]}),(0,b.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:u?(0,b.jsx)(x.FilePreview,{path:u.path,bytes:u.bytes}):(0,b.jsx)(G,{path:a.path,onOpen:g})}),u&&w&&(0,b.jsx)("div",{className:"shrink-0 border-t border-border/60 px-6 pt-2.5 pb-3",children:(0,b.jsx)(s.FileNoteBar,{path:u.path,note:D,failure:E,onThread:H,onOpenThread:I})})]})}function G({path:a,onOpen:c}){let{data:d,isLoading:e,error:f}=(0,B.useServerRoute)(k.queryKey.artifactSet(a,o.ARTIFACT_VIEW.setFiles));if(e)return(0,b.jsx)("div",{className:"grid grid-cols-4 gap-3 p-5",children:Array.from({length:8},(a,c)=>(0,b.jsx)(n.Skeleton,{className:"aspect-4/3 w-full rounded-xl"},c))});if(f)return(0,b.jsx)(u.SettingError,{message:f.message});let g=d?.files??[];return 0===g.length?(0,b.jsx)("p",{className:"p-5 text-xs text-muted-foreground/60",children:"Nothing in here the app can open."}):(0,b.jsxs)("div",{className:"p-5",children:[(0,b.jsx)("div",{className:"grid grid-cols-4 gap-3",children:g.map(a=>(0,b.jsxs)("button",{type:"button",onClick:()=>c(a),title:`${a.name} \xb7 ${(0,C.formatBytes)(a.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,b.jsx)(H,{file:a}),(0,b.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground",children:a.name})]},a.path))}),d&&d.total>g.length&&(0,b.jsx)("p",{className:"pt-4 font-mono text-[11px] text-muted-foreground/60",children:`${g.length} of ${d.total.toLocaleString("en")} — the rest are in the folder`})]})}function H({file:a}){return(0,b.jsx)(w.FileThumb,{path:a.path,bytes:a.bytes,glyph:"size-5",className:"aspect-4/3 w-full rounded-xl ring-1 ring-foreground/5 ring-inset"})}function I({entries:a,bots:c,onPick:d}){return(0,b.jsx)("div",{className:"space-y-7 p-6",children:D(a).map(({bot:a,rows:f})=>(0,b.jsxs)("section",{className:"space-y-3",children:[(0,b.jsxs)("h3",{className:"flex items-center gap-2 text-sm font-medium",children:[a&&(0,b.jsx)(r.BotMark,{size:20,seed:a,...(0,r.markOf)(a,c),notify:!1,className:"shrink-0"}),(0,b.jsx)("span",{className:"truncate",children:a??"Unsorted"}),(0,b.jsx)("span",{className:"font-mono text-[11px] font-normal text-muted-foreground",children:f.length})]}),(0,b.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))] gap-x-4 gap-y-5",children:f.map(a=>(0,b.jsxs)("button",{type:"button",onClick:()=>d(a),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"===a.kind?(0,b.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,b.jsx)(e.FolderOpen,{className:"size-5"})}):(0,b.jsx)(w.FileThumb,{path:a.path,bytes:a.bytes,glyph:"size-5",className:"aspect-4/3 w-full rounded-xl ring-1 ring-foreground/5 ring-inset"}),(0,b.jsxs)("span",{className:"min-w-0 space-y-0.5 px-0.5",children:[(0,b.jsx)("span",{className:"block truncate text-[13px]",children:a.name}),(0,b.jsxs)("span",{className:"block truncate font-mono text-[10.5px] text-muted-foreground",children:["set"===a.kind?`${a.count} ${1===a.count?"file":"files"} \xb7 `:"",(0,z.shortAgo)(a.at)]})]})]},a.path))})]},a??""))})}function J({empty:a}){return(0,b.jsx)("div",{className:"p-8",children:(0,b.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:a?"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."})})}a.s(["ArtifactSetting",0,function(){let[a,c]=(0,j.useState)(null),[d,f]=(0,j.useState)(""),[g,h]=(0,j.useState)(void 0),[i,m]=(0,j.useState)(o.ARTIFACT_VIEW.rows),{data:n,isLoading:p,error:q}=(0,B.useServerRoute)(k.queryKey.artifactShelf(i),{keepPreviousData:!0}),{data:s}=(0,B.useServerRoute)(k.queryKey.bot),[t]=(0,A.useServerAction)(y.revealFileAction);if(p)return(0,b.jsx)(u.SettingPanesSkeleton,{});if(q)return(0,b.jsx)(u.SettingError,{message:q.message});let v=n?.entries??[],w=n?.total??0,x=d.trim().toLowerCase(),z=v.filter(a=>(void 0===g||a.bot===g)&&(!x||a.name.toLowerCase().includes(x)||a.bot?.toLowerCase().includes(x))),C=v.find(b=>b.path===a?.row.path)??a?.row;return(0,b.jsx)(u.SettingPanes,{footer:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u.SettingRailNote,{children:(0,b.jsxs)("span",{className:"font-mono",children:[(0,b.jsx)("span",{className:"font-medium text-foreground",children:"finished"}),` \xb7 ${function(a,b,c){if(0===b)return"empty";let d=b>a.length?`${a.length} of ${b.toLocaleString("en")} results`:`${b} ${1===b?"result":"results"}`;return c>b?`${d} \xb7 ${c.toLocaleString("en")} files`:d}(v,w,n?.files??0)}`]})}),(0,b.jsxs)(l.Button,{variant:"outline",size:"sm",onClick:()=>t(o.PATHS.artifacts),children:[(0,b.jsx)(e.FolderOpen,{}),"Reveal folder"]})]}),left:(0,b.jsxs)("div",{className:"flex flex-col py-2",children:[(0,b.jsx)(u.SettingFilter,{value:d,onChange:f,placeholder:"Filter files",className:"mx-2 mb-1.5 w-auto"}),(0,b.jsx)(E,{label:"Everyone",count:v.length,active:void 0===g,onPick:()=>{h(void 0),c(null)}}),D(v).map(({bot:a,rows:d})=>(0,b.jsx)(E,{label:a??"Unsorted",mark:a?(0,b.jsx)(r.BotMark,{size:18,seed:a,...(0,r.markOf)(a,s),notify:!1,className:"shrink-0"}):void 0,count:d.length,active:g===a,onPick:()=>{h(a),c(null)}},a??"")),w>v.length&&(0,b.jsx)("button",{type:"button",onClick:()=>m(i+o.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(o.ARTIFACT_VIEW.rows,w-v.length)} more of ${w.toLocaleString("en")}`})]}),right:C?(0,b.jsx)(F,{row:C,file:a?.file??null,onOpen:a=>c({row:C,file:a}),onBack:()=>c({row:C,file:null}),onGone:()=>c(null),onShelf:()=>c(null)},C.path):z.length>0?(0,b.jsx)(I,{entries:z,bots:s,onPick:a=>c({row:a,file:null})}):(0,b.jsx)(J,{empty:0===w})})}],964665)},951675,a=>{"use strict";var b=a.i(164831);let c={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"]};c.node;let d=(0,b.default)(c);a.s(["Trash2",0,d],951675)}];
|
|
1
|
+
module.exports=[964665,a=>{"use strict";var b=a.i(187924),c=a.i(707963),d=a.i(168370),e=a.i(844561),f=a.i(164831);let g={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"}]]};g.node;let h=(0,f.default)(g);var i=a.i(951675),j=a.i(572131),k=a.i(767561),l=a.i(340695),m=a.i(446181),n=a.i(950463),o=a.i(287702),p=a.i(405050);let q=(0,p.createServerReference)("7f9aa558e49f9f8c28b97b3c168cc94c81028f78bf",p.callServer,void 0,p.findSourceMapURL,"deleteArtifactAction");var r=a.i(913834),s=a.i(450937),t=a.i(135432),u=a.i(619477),v=a.i(28996),w=a.i(38793),x=a.i(369768),y=a.i(613842),z=a.i(199169),A=a.i(313237),B=a.i(759497),C=a.i(497895);function D(a){let b=new Map;for(let c of a){let a=b.get(c.bot)??[];a.push(c),b.set(c.bot,a)}return[...b].map(([a,b])=>({bot:a,rows:b}))}function E({label:a,mark:c,count:d,active:e,onPick:f}){return(0,b.jsxs)("button",{type:"button",onClick:f,className:(0,C.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",e?(0,C.cn)(u.PICKED_ROW,"font-medium"):"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[c??(0,b.jsx)(h,{className:"size-4 shrink-0"}),(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate",children:a}),(0,b.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] text-muted-foreground tabular-nums",children:d})]})}function F({row:a,file:f,onOpen:g,onBack:h,onGone:j,onShelf:n}){let[o]=(0,A.useServerAction)(y.revealFileAction),[p,r]=(0,A.useServerAction)(q,{okMessage:"Deleted",onOk:()=>{(0,B.revalidate)(k.queryKey.artifacts),f?h():j()}}),u=f?{path:f.path,bytes:f.bytes,at:f.at}:"file"===a.kind?{path:a.path,bytes:a.bytes,at:a.at}:null,{filed:w,note:D,failure:E,follow:H}=(0,s.useFileNote)(u?.path??null,null),I=a=>{v.useSettingsStore.getState().hide(),t.roomOpens.open(a)},J=async a=>{await m.notify.confirm({title:`Delete ${a.split("/").pop()}?`,description:u?"It is deleted from disk for good.":"The folder and everything in it are deleted from disk for good.",okText:"Delete",destructive:!0})&&p(a)};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-3 border-b border-border/60 px-6",children:[(0,b.jsxs)("button",{type:"button",onClick:f?h:n,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,b.jsx)(c.ChevronLeft,{className:"size-3"}),f?a.name:"Shelf"]}),(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-foreground",children:u?u.path.split("/").pop()??a.name:a.name}),(0,b.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:u?`${(0,C.formatBytes)(u.bytes)} \xb7 ${(0,z.shortAgo)(u.at)}`:`${a.count} ${1===a.count?"file":"files"} \xb7 ${(0,z.shortAgo)(a.at)}`}),w&&(0,b.jsx)(s.FileThreadChip,{note:D,onOpen:I}),u&&(0,b.jsx)("a",{href:k.queryKey.fileView(u.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,b.jsx)(d.ExternalLink,{className:"size-4"})}),(0,b.jsx)(l.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>o(u?.path??a.path),children:(0,b.jsx)(e.FolderOpen,{})}),(0,b.jsx)(l.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:r,className:"ml-1.5 text-muted-foreground hover:text-destructive",onClick:()=>J(u?.path??a.path),children:(0,b.jsx)(i.Trash2,{})})]}),(0,b.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:u?(0,b.jsx)(x.FilePreview,{path:u.path,bytes:u.bytes}):(0,b.jsx)(G,{path:a.path,onOpen:g})}),u&&w&&(0,b.jsx)("div",{className:"shrink-0 border-t border-border/60 px-6 pt-2.5 pb-3",children:(0,b.jsx)(s.FileNoteBar,{path:u.path,note:D,failure:E,onThread:H,onOpenThread:I})})]})}function G({path:a,onOpen:c}){let{data:d,isLoading:e,error:f}=(0,B.useServerRoute)(k.queryKey.artifactSet(a,o.ARTIFACT_VIEW.setFiles));if(e)return(0,b.jsx)("div",{className:"grid grid-cols-4 gap-3 p-5",children:Array.from({length:8},(a,c)=>(0,b.jsx)(n.Skeleton,{className:"aspect-4/3 w-full rounded-xl"},c))});if(f)return(0,b.jsx)(u.SettingError,{message:f.message});let g=d?.files??[];return 0===g.length?(0,b.jsx)("p",{className:"p-5 text-xs text-muted-foreground",children:"Nothing in here the app can open."}):(0,b.jsxs)("div",{className:"p-5",children:[(0,b.jsx)("div",{className:"grid grid-cols-4 gap-3",children:g.map(a=>(0,b.jsxs)("button",{type:"button",onClick:()=>c(a),title:`${a.name} \xb7 ${(0,C.formatBytes)(a.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,b.jsx)(H,{file:a}),(0,b.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground",children:a.name})]},a.path))}),d&&d.total>g.length&&(0,b.jsx)("p",{className:"pt-4 font-mono text-[11px] text-muted-foreground",children:`${g.length} of ${d.total.toLocaleString("en")} — the rest are in the folder`})]})}function H({file:a}){return(0,b.jsx)(w.FileThumb,{path:a.path,bytes:a.bytes,glyph:"size-5",className:"aspect-4/3 w-full rounded-xl ring-1 ring-foreground/5 ring-inset"})}function I({entries:a,bots:c,onPick:d}){return(0,b.jsx)("div",{className:"space-y-7 p-6",children:D(a).map(({bot:a,rows:f})=>(0,b.jsxs)("section",{className:"space-y-3",children:[(0,b.jsxs)("h3",{className:"flex items-center gap-2 text-sm font-medium",children:[a&&(0,b.jsx)(r.BotMark,{size:20,seed:a,...(0,r.markOf)(a,c),notify:!1,className:"shrink-0"}),(0,b.jsx)("span",{className:"truncate",children:a??"Unsorted"}),(0,b.jsx)("span",{className:"font-mono text-[11px] font-normal text-muted-foreground",children:f.length})]}),(0,b.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))] gap-x-4 gap-y-5",children:f.map(a=>(0,b.jsxs)("button",{type:"button",onClick:()=>d(a),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"===a.kind?(0,b.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,b.jsx)(e.FolderOpen,{className:"size-5"})}):(0,b.jsx)(w.FileThumb,{path:a.path,bytes:a.bytes,glyph:"size-5",className:"aspect-4/3 w-full rounded-xl ring-1 ring-foreground/5 ring-inset"}),(0,b.jsxs)("span",{className:"min-w-0 space-y-0.5 px-0.5",children:[(0,b.jsx)("span",{className:"block truncate text-[13px]",children:a.name}),(0,b.jsxs)("span",{className:"block truncate font-mono text-[10.5px] text-muted-foreground",children:["set"===a.kind?`${a.count} ${1===a.count?"file":"files"} \xb7 `:"",(0,z.shortAgo)(a.at)]})]})]},a.path))})]},a??""))})}function J({empty:a}){return(0,b.jsx)("div",{className:"p-8",children:(0,b.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:a?"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."})})}a.s(["ArtifactSetting",0,function(){let[a,c]=(0,j.useState)(null),[d,f]=(0,j.useState)(""),[g,h]=(0,j.useState)(void 0),[i,m]=(0,j.useState)(o.ARTIFACT_VIEW.rows),{data:n,isLoading:p,error:q}=(0,B.useServerRoute)(k.queryKey.artifactShelf(i),{keepPreviousData:!0}),{data:s}=(0,B.useServerRoute)(k.queryKey.bot),[t]=(0,A.useServerAction)(y.revealFileAction);if(p)return(0,b.jsx)(u.SettingPanesSkeleton,{});if(q)return(0,b.jsx)(u.SettingError,{message:q.message});let v=n?.entries??[],w=n?.total??0,x=d.trim().toLowerCase(),z=v.filter(a=>(void 0===g||a.bot===g)&&(!x||a.name.toLowerCase().includes(x)||a.bot?.toLowerCase().includes(x))),C=v.find(b=>b.path===a?.row.path)??a?.row;return(0,b.jsx)(u.SettingPanes,{footer:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u.SettingRailNote,{children:(0,b.jsxs)("span",{className:"font-mono",children:[(0,b.jsx)("span",{className:"font-medium text-foreground",children:"finished"}),` \xb7 ${function(a,b,c){if(0===b)return"empty";let d=b>a.length?`${a.length} of ${b.toLocaleString("en")} results`:`${b} ${1===b?"result":"results"}`;return c>b?`${d} \xb7 ${c.toLocaleString("en")} files`:d}(v,w,n?.files??0)}`]})}),(0,b.jsxs)(l.Button,{variant:"outline",size:"sm",onClick:()=>t(o.PATHS.artifacts),children:[(0,b.jsx)(e.FolderOpen,{}),"Reveal folder"]})]}),left:(0,b.jsxs)("div",{className:"flex flex-col py-2",children:[(0,b.jsx)(u.SettingFilter,{value:d,onChange:f,placeholder:"Filter files",className:"mx-2 mb-1.5 w-auto"}),(0,b.jsx)(E,{label:"Everyone",count:v.length,active:void 0===g,onPick:()=>{h(void 0),c(null)}}),D(v).map(({bot:a,rows:d})=>(0,b.jsx)(E,{label:a??"Unsorted",mark:a?(0,b.jsx)(r.BotMark,{size:18,seed:a,...(0,r.markOf)(a,s),notify:!1,className:"shrink-0"}):void 0,count:d.length,active:g===a,onPick:()=>{h(a),c(null)}},a??"")),w>v.length&&(0,b.jsx)("button",{type:"button",onClick:()=>m(i+o.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(o.ARTIFACT_VIEW.rows,w-v.length)} more of ${w.toLocaleString("en")}`})]}),right:C?(0,b.jsx)(F,{row:C,file:a?.file??null,onOpen:a=>c({row:C,file:a}),onBack:()=>c({row:C,file:null}),onGone:()=>c(null),onShelf:()=>c(null)},C.path):z.length>0?(0,b.jsx)(I,{entries:z,bots:s,onPick:a=>c({row:a,file:null})}):(0,b.jsx)(J,{empty:0===w})})}],964665)},951675,a=>{"use strict";var b=a.i(164831);let c={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"]};c.node;let d=(0,b.default)(c);a.s(["Trash2",0,d],951675)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=_1e_9qjr._.js.map
|