thursday-agent 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +5 -2
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +5 -5
- package/.next/routes-manifest.json +24 -6
- package/.next/server/app/_global-error/page.js +2 -2
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +2 -2
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +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 +14 -14
- package/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +12 -12
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/artifact/route.js +3 -3
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/bot/memory/files/route.js +10 -0
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -0
- package/.next/server/app/api/bot/memory/files/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/bot/memory/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/bot/memory/route.js +14 -0
- package/.next/server/app/api/bot/{notes → memory}/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/bot/route.js +6 -6
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/task/[id]/route.js +8 -8
- package/.next/server/app/api/bot/task/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/task/route.js +8 -8
- package/.next/server/app/api/bot/task/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js +5 -5
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js +4 -5
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js +3 -3
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/route.js +9 -8
- package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/llm-model/credits/route/build-manifest.json +12 -0
- package/.next/server/app/api/llm-model/credits/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/llm-model/credits/route.js +16 -0
- package/.next/server/app/api/llm-model/credits/route.js.map +5 -0
- package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -0
- package/.next/server/app/api/llm-model/credits/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/llm-model/route.js +10 -8
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/llm-model/subscription/route/build-manifest.json +12 -0
- package/.next/server/app/api/llm-model/subscription/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/llm-model/subscription/route.js +15 -0
- package/.next/server/app/api/llm-model/subscription/route.js.map +5 -0
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -0
- package/.next/server/app/api/llm-model/subscription/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/mcp/[name]/route.js +4 -4
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js +5 -5
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +4 -4
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js +4 -4
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/memory/edit/route/build-manifest.json +12 -0
- package/.next/server/app/api/memory/edit/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/memory/edit/route.js +24 -0
- package/.next/server/app/api/memory/edit/route.js.map +5 -0
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -0
- package/.next/server/app/api/memory/{tidy → edit}/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/memory/route.js +6 -7
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js +3 -3
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js +3 -3
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js +9 -7
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/skills/route.js +9 -7
- package/.next/server/app/api/thursday/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +17 -15
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js +4 -5
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +1 -1
- package/.next/server/app/artifact/[...path]/page.js +5 -6
- 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 +3 -4
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/favicon.ico.body +0 -0
- package/.next/server/app/page/server-reference-manifest.json +57 -90
- package/.next/server/app/page.js +10 -10
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +5 -2
- package/.next/server/chunks/[externals]__0dzuk6_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__01dkp4a._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__02va5wz._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__02xjoto._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__04q--0f._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0bl-e63._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ce8nf8._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__0ffbg85._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0j7z0r3._.js +12 -0
- package/.next/server/chunks/[root-of-the-server]__0jq4ohy._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0ls6_8y._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0pa2n68._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0q0vvt2._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1-ga0kh._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__11n256_._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__12cabg9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1339jnv._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__15bjnu5._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__18_teo8._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1anc1p9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ccon1w._.js +5 -5
- package/.next/server/chunks/[root-of-the-server]__1fizn31._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1llj3-b._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1orn-5b._.js +11 -0
- package/.next/server/chunks/[root-of-the-server]__1p8m3f4._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1wa1k7r._.js +8 -0
- package/.next/server/chunks/_0-73of8._.js +5 -5
- package/.next/server/chunks/_0-fjql4._.js +26 -0
- package/.next/server/chunks/_00xh_q0._.js +27 -0
- package/.next/server/chunks/{_0pppbb5._.js → _03kp0jp._.js} +163 -36
- package/.next/server/chunks/_051qh8u._.js +3 -0
- package/.next/server/chunks/{node_modules_next_04q-o58._.js → _05dla15._.js} +2 -2
- package/.next/server/chunks/_05h2cii._.js +1 -1
- package/.next/server/chunks/_0c9j6rb._.js +49 -0
- package/.next/server/chunks/_0fzqt2y._.js +130 -0
- package/.next/server/chunks/{_0vnutv9._.js → _0ioz3nd._.js} +1 -1
- package/.next/server/chunks/_0iwfby5._.js +3 -0
- package/.next/server/chunks/_0mecv0f._.js +26 -0
- package/.next/server/chunks/_0mh8j4m._.js +3 -0
- package/.next/server/chunks/_0n74zsf._.js +4 -4
- package/.next/server/chunks/_0obojvv._.js +3 -0
- package/.next/server/chunks/_0recufk._.js +49 -0
- package/.next/server/chunks/_0rnf-6n._.js +4 -4
- package/.next/server/chunks/_0sb7tlz._.js +3 -0
- package/.next/server/chunks/_0u10wmw._.js +5 -5
- package/.next/server/chunks/_0u4aiy2._.js +3 -0
- package/.next/server/chunks/_0wp4le3._.js +1 -1
- package/.next/server/chunks/_0y5fg-x._.js +1 -1
- package/.next/server/chunks/_1230wbx._.js +10 -0
- package/.next/server/chunks/_12nheja._.js +3 -0
- package/.next/server/chunks/_13510xh._.js +3 -0
- package/.next/server/chunks/_15hq89o._.js +1 -1
- package/.next/server/chunks/_17l5ygt._.js +49 -0
- package/.next/server/chunks/_18-1wcc._.js +5 -5
- package/.next/server/chunks/_1_5mnq4._.js +4 -4
- package/.next/server/chunks/_1_9mjx-._.js +3 -0
- package/.next/server/chunks/_1d0j961._.js +6 -0
- package/.next/server/chunks/_1d5zmy8._.js +1 -1
- package/.next/server/chunks/_1drgfx4._.js +4 -4
- package/.next/server/chunks/_1f46eie._.js +3 -0
- package/.next/server/chunks/_1h5_8sk._.js +3 -0
- package/.next/server/chunks/_1hdnxb7._.js +3 -0
- package/.next/server/chunks/_1j8k_j5._.js +3 -0
- package/.next/server/chunks/_1krd9rf._.js +3 -0
- package/.next/server/chunks/_1nc0eui._.js +11 -0
- package/.next/server/chunks/_1nula3v._.js +3 -0
- package/.next/server/chunks/_1pf4qe-._.js +3 -0
- package/.next/server/chunks/_1php4eq._.js +1 -1
- package/.next/server/chunks/_1qxheoa._.js +3 -0
- package/.next/server/chunks/_1x6kd1r._.js +3 -0
- package/.next/server/chunks/_1yuv4vp._.js +1 -1
- package/.next/server/chunks/_1zjrdag._.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_bot_memory_files_route_actions_1_xd_8f.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_bot_memory_route_actions_1a8xfr7.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_credits_route_actions_0v424pb.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_subscription_route_actions_0-udcm5.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_memory_edit_route_actions_02sfnmr.js +3 -0
- package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
- package/.next/server/chunks/features_0rpfxbk._.js +3 -0
- package/.next/server/chunks/features_1qf3cei._.js +3 -0
- package/.next/server/chunks/features_bot_0zt92oh._.js +3 -0
- package/.next/server/chunks/features_bot_bot_query_ts_12mgkl2._.js +3 -0
- package/.next/server/chunks/features_memory_1uqvksn._.js +6 -0
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0a1rd09._.js → node_modules_consola_dist_chunks_prompt_mjs_0i7cvml._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_06067w6._.js → node_modules_consola_dist_chunks_prompt_mjs_0icqaqw._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_096ais_._.js → node_modules_consola_dist_chunks_prompt_mjs_0r28-sm._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_02s3hjt._.js → node_modules_consola_dist_chunks_prompt_mjs_0v_7drq._.js} +1 -1
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1xoq2rl._.js +3 -0
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0tvkfgh._.js → node_modules_consola_dist_chunks_prompt_mjs_1y49572._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__09q9med._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1qfqvmg._.js → [root-of-the-server]__0_69wqr._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0hg5gib._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0i8ie7f._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0jsmmb-._.js → [root-of-the-server]__0mz33a7._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0tbkdlx._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0vnmv-s._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0f6s48x._.js → [root-of-the-server]__0xpcv9w._.js} +3 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0xtssj3._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0zkv7z_._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__10-dz5o._.js +57 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__15_uhip._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__16jc196._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__0m1b5ky._.js → [root-of-the-server]__1cyjywu._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1eh7hid._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1gtlw6v._.js +43 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1mzi-ju._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1ox7hbk._.js +4 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1pduf5n._.js +3 -0
- package/.next/server/chunks/ssr/{_1mznrxk._.js → _001_ms1._.js} +3 -3
- package/.next/server/chunks/ssr/_01_6m32._.js +3 -0
- package/.next/server/chunks/ssr/_01n3o0m._.js +3 -0
- package/.next/server/chunks/ssr/_07uchnc._.js +3 -0
- package/.next/server/chunks/ssr/_0ap2fzn._.js +3 -0
- package/.next/server/chunks/ssr/_0c-ql2m._.js +3 -0
- package/.next/server/chunks/ssr/_0h42fze._.js +3 -0
- package/.next/server/chunks/ssr/_0h7zdni._.js +1 -1
- package/.next/server/chunks/ssr/_0i_6q1w._.js +41 -0
- package/.next/server/chunks/ssr/_0kbkmar._.js +3 -0
- package/.next/server/chunks/ssr/{_077-g6s._.js → _0mb8zc8._.js} +3 -3
- package/.next/server/chunks/ssr/_0mo2w06._.js +3 -0
- package/.next/server/chunks/ssr/{_13punpm._.js → _0q0zan6._.js} +2 -2
- package/.next/server/chunks/ssr/{_040sk32._.js → _0u2jv_x._.js} +76 -82
- package/.next/server/chunks/ssr/_0y0tiht._.js +4 -0
- package/.next/server/chunks/ssr/_0zhoc3r._.js +3 -0
- package/.next/server/chunks/ssr/_1-teee5._.js +3 -3
- package/.next/server/chunks/ssr/_13fke0x._.js +3 -0
- package/.next/server/chunks/ssr/{_1lip4th._.js → _13z3f85._.js} +2 -2
- package/.next/server/chunks/ssr/_14_lw10._.js +3 -0
- package/.next/server/chunks/ssr/_15j2_8f._.js +3 -0
- package/.next/server/chunks/ssr/{_09ja_w1._.js → _1eoqg_g._.js} +2 -2
- package/.next/server/chunks/ssr/_1sji22n._.js +3 -0
- package/.next/server/chunks/ssr/_1spzm8z._.js +3 -0
- package/.next/server/chunks/ssr/{_0x_nu5e._.js → _1vi_uo7._.js} +2 -2
- package/.next/server/chunks/ssr/_1vyd1ji._.js +1 -1
- package/.next/server/chunks/ssr/{_1m3bsfr._.js → _1xvgn77._.js} +2 -2
- package/.next/server/chunks/ssr/_20kd_n0._.js +42 -0
- package/.next/server/chunks/ssr/features_bot_1s_-2vj._.js +3 -0
- package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +1 -1
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/lib_date-like_ts_02is0pw._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_18_dk7_._.js → node_modules_063xwpp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01qnv-a._.js → node_modules_0bvraul._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0n1kj4p._.js → node_modules_0eu1va6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0kl7-tn._.js → node_modules_0h50b8n._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_n241r._.js → node_modules_0h5hnr1._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0lrjk5t._.js → node_modules_0h7u60n._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ndvxub._.js → node_modules_0lm7_vm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_13r44jq._.js → node_modules_0mwym0g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17lrt3y._.js → node_modules_0rjg6t1._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_0x3-ply._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_004qlr4._.js → node_modules_0y_cded._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0kxz4gt._.js → node_modules_0z5tsu8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0iz1rzd._.js → node_modules_0zp9r92._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_19dp7ko._.js → node_modules_1-hc6uv._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1q0p85z._.js → node_modules_113tz0l._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1toafc-._.js → node_modules_124bue5._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_17bwo43._.js +55 -0
- package/.next/server/chunks/ssr/{node_modules_08d8bke._.js → node_modules_1_n3ztw._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1dwguw_._.js → node_modules_1bc7gu8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_20yebtj._.js → node_modules_1bgb6-f._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1n5ygqe._.js → node_modules_1h4a4pp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04n7mjs._.js → node_modules_1i7u1ia._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hn8z1f._.js → node_modules_1juq3hs._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1xyd7ov._.js → node_modules_1l0qtdu._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0m93zeg._.js → node_modules_1t9cyee._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_09xhur7._.js → node_modules_1uuj9x1._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hd-5tv._.js → node_modules_1vqb6po._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1zu988w._.js → node_modules_1xx28h1._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0m9a4y0._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d3skpl._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_13w_wy9._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0i44kk5._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_@vercel_oidc_dist_0qe30a_._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_next_dist_0w6mzq5._.js → node_modules_next_dist_0drixxt._.js} +4 -4
- package/.next/server/chunks/ssr/node_modules_next_dist_1n3w9lb._.js +2 -2
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +58 -91
- package/.next/static/chunks/{31ttnjt6g35a0.js → 0ev4hyghq0mbb.js} +1 -1
- package/.next/static/chunks/0r5qcctujhxli.js +1 -0
- package/.next/static/chunks/0tmgrnlje14-s.js +3 -0
- package/.next/static/chunks/0x79tx04dxbpp.js +1 -0
- package/.next/static/chunks/0xzgvc0fkdb6t.js +1 -0
- package/.next/static/chunks/10teww7wt-f6h.js +1 -0
- package/.next/static/chunks/14hgtsjg-kael.css +1 -0
- package/.next/static/chunks/17donp69y4do7.js +40 -0
- package/.next/static/chunks/{3_h9txt3tq8t8.js → 1dkjg87pxk0n9.js} +1 -1
- package/.next/static/chunks/1ekc7ul556kbl.js +1 -0
- package/.next/static/chunks/{3ard_noqapnw1.js → 1grhjo7a5a0_-.js} +1 -1
- package/.next/static/chunks/1kq8h8wi_e0bc.js +53 -0
- package/.next/static/chunks/1okqiww3pnwka.js +1 -0
- package/.next/static/chunks/26-pr2c9ro222.js +1 -0
- package/.next/static/chunks/{18vhba44l1fc9.js → 280t0_e99i276.js} +1 -1
- package/.next/static/chunks/28cizcdaabd4h.js +1 -0
- package/.next/static/chunks/2a0k6jlq0_v1u.js +2 -0
- package/.next/static/chunks/2fzs9fm8yarvq.js +1 -0
- package/.next/static/chunks/2h0sd2vumhb15.js +1 -0
- package/.next/static/chunks/2hw2f6zmt7fmt.js +1 -0
- package/.next/static/chunks/2t4vhi3m8ahya.js +1 -0
- package/.next/static/chunks/2tigdtz3dpcy8.js +1 -0
- package/.next/static/chunks/3111pj5wnjgos.js +1 -0
- package/.next/static/chunks/{07kl352c-lvcz.js → 3agpgkwaa321p.js} +1 -1
- package/.next/static/chunks/3cfi_q6d_wtci.js +1 -0
- package/.next/static/chunks/3ok9_x74rip3v.js +1 -0
- package/.next/static/chunks/3xk7yqgomx7yq.js +1 -0
- package/.next/static/chunks/3xpbkl66ssib5.js +38 -0
- package/.next/static/media/favicon.37o1pjldwi2uc.ico +0 -0
- package/README.md +6 -4
- package/app/api/bot/memory/files/route.ts +14 -0
- package/app/api/bot/memory/route.ts +5 -0
- package/app/api/events/app-event.ts +3 -5
- package/app/api/llm-model/credits/route.ts +11 -0
- package/app/api/llm-model/route.ts +6 -1
- package/app/api/llm-model/subscription/route.ts +11 -0
- package/app/api/memory/edit/route.ts +7 -0
- package/app/api/memory/route.ts +21 -0
- package/app/api/query-key.ts +19 -4
- package/bin/thursday.mjs +3 -0
- package/components/ui/shiny-text.tsx +48 -134
- package/database/migrations/{20260909060813_optimal_sabretooth → 20260910173049_numerous_spirit}/migration.sql +24 -34
- package/database/migrations/{20260909060813_optimal_sabretooth → 20260910173049_numerous_spirit}/snapshot.json +71 -145
- package/database/migrations/20260911030320_opposite_jack_power/migration.sql +1 -0
- package/database/migrations/{20260909063821_bitter_tenebrous → 20260911030320_opposite_jack_power}/snapshot.json +57 -184
- package/features/ai/chatgpt.ts +617 -0
- package/features/ai/components/chatgpt-sign-in.tsx +66 -0
- package/features/ai/components/model-picker.tsx +17 -1
- package/features/ai/components/provider-icon.tsx +1 -0
- package/features/ai/load-tools.ts +58 -42
- package/features/ai/model.schema.ts +232 -34
- package/features/ai/model.ts +169 -24
- package/features/ai/prompts/bot.prompt.ts +156 -65
- package/features/ai/prompts/memory-edit.prompt.ts +33 -0
- package/features/ai/prompts/prompt-helper.ts +45 -26
- package/features/ai/prompts/thursday.prompt.ts +40 -17
- package/features/ai/tools/bot.tool.ts +35 -52
- package/features/ai/tools/connected.ts +17 -4
- package/features/ai/tools/memory.tool.ts +133 -72
- package/features/ai/tools/search.tool.ts +136 -47
- package/features/ai/tools/tool-name.ts +2 -5
- package/features/ai/tools/workspace.tool.ts +2 -1
- package/features/bot/bot.action.ts +8 -18
- package/features/bot/bot.memory.ts +89 -0
- package/features/bot/bot.query.ts +37 -57
- package/features/bot/bot.run.ts +507 -241
- package/features/bot/bot.runner.ts +410 -114
- package/features/bot/bot.schema.ts +79 -19
- package/features/bot/bot.seed.ts +89 -16
- package/features/bot/components/bot-mark.tsx +122 -20
- package/features/bot/components/bot-room.tsx +159 -130
- package/features/bot/components/bot-setting.tsx +790 -402
- package/features/bot/components/bot-tool.tsx +2 -6
- package/features/bot/components/mark-palette.tsx +54 -0
- package/features/bot/components/path-chips.tsx +1 -1
- package/features/bot/components/task-badge.tsx +26 -6
- package/features/bot/components/task-reply.tsx +22 -33
- package/features/bot/components/task-setting.tsx +20 -17
- package/features/bot/task.query.ts +215 -28
- package/features/bot/task.store.ts +53 -9
- package/features/config/components/config-setting.tsx +265 -34
- package/features/config/components/models-badge.tsx +42 -0
- package/features/config/config.action.ts +12 -0
- package/features/config/config.const.ts +38 -2
- package/features/connectors/mcp.manager.ts +10 -2
- package/features/intro/components/intro.tsx +47 -46
- package/features/memory/components/memory-edit.tsx +338 -0
- package/features/memory/components/memory-setting.tsx +75 -77
- package/features/memory/memory.action.ts +3 -43
- package/features/memory/memory.edit.ts +87 -0
- package/features/memory/memory.query.ts +24 -42
- package/features/memory/memory.schema.ts +29 -106
- package/features/settings/components/settings.tsx +2 -0
- package/features/settings/settings.alert.ts +3 -1
- package/features/thursday/components/ascii-orb.tsx +106 -90
- package/features/thursday/components/boot.tsx +7 -0
- package/features/thursday/components/call-log.tsx +219 -92
- package/features/thursday/components/face.tsx +6 -4
- package/features/thursday/components/tab-state.tsx +97 -0
- package/features/thursday/components/thursday-mark.tsx +4 -1
- package/features/thursday/components/thursday-setting.tsx +17 -47
- package/features/thursday/components/thursday.tsx +208 -95
- package/features/thursday/thursday.action.ts +12 -17
- package/features/thursday/thursday.query.ts +61 -70
- package/features/thursday/thursday.schema.ts +20 -7
- package/features/thursday/tool-line.ts +85 -11
- package/features/thursday/use-thursday.ts +86 -59
- package/features/workspace/components/file-view.tsx +4 -2
- package/features/workspace/workspace.ts +110 -26
- package/lib/limits.ts +1 -1
- package/lib/oauth-page.ts +27 -0
- package/lib/realtime/openai.ts +2 -2
- package/lib/realtime/realtime.protocol.ts +1 -1
- package/lib/realtime/realtime.tap.ts +122 -0
- package/lib/sandbox.ts +59 -36
- package/package.json +1 -1
- package/skills/browser/SKILL.md +55 -34
- package/.next/server/app/api/bot/notes/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/bot/notes/route.js +0 -14
- package/.next/server/app/api/bot/notes/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/memory/tidy/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/memory/tidy/route.js +0 -22
- package/.next/server/app/api/memory/tidy/route.js.nft.json +0 -1
- package/.next/server/chunks/0d-b_next_dist_server_app-render_after-task-async-storage_external_0-exn7p.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0-npkh_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__005var5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__019dx9f._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__02_2sm-._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__04_8spk._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__05luceg._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__06t77t4._.js +0 -11
- package/.next/server/chunks/[root-of-the-server]__0bed6hu._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0cro2dz._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0dupqt7._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0emr6go._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0le4d-p._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0m8ywyo._.js +0 -10
- package/.next/server/chunks/[root-of-the-server]__0nfuugi._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0p32jfz._.js +0 -12
- package/.next/server/chunks/[root-of-the-server]__0phdgco._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0wvgrsl._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__10qshki._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__11j52t0._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1692zrv._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__16thabu._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__173nhwf._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1_aoyr9._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1bn73ih._.js +0 -10
- package/.next/server/chunks/[root-of-the-server]__1bqhuh9._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1cqizfq._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1e-ci13._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1fboj2j._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1lr7j9t._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1oli73c._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1txedx6._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1untqv8._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1zgpz1w._.js +0 -3
- package/.next/server/chunks/_00_584r._.js +0 -293
- package/.next/server/chunks/_012yhfm._.js +0 -39
- package/.next/server/chunks/_06mxlgn._.js +0 -3
- package/.next/server/chunks/_07rtlxv._.js +0 -3
- package/.next/server/chunks/_0a351g7._.js +0 -6
- package/.next/server/chunks/_0kjjmag._.js +0 -3
- package/.next/server/chunks/_0nn99o2._.js +0 -3
- package/.next/server/chunks/_0zuzmt_._.js +0 -39
- package/.next/server/chunks/_106co2o._.js +0 -3
- package/.next/server/chunks/_12bbv5i._.js +0 -100
- package/.next/server/chunks/_15q1pig._.js +0 -3
- package/.next/server/chunks/_19wg5yn._.js +0 -138
- package/.next/server/chunks/_1bt95p9._.js +0 -55
- package/.next/server/chunks/_1cbk7ms._.js +0 -26
- package/.next/server/chunks/_1drv2et._.js +0 -40
- package/.next/server/chunks/_1ic3bew._.js +0 -5
- package/.next/server/chunks/_1mxn_lb._.js +0 -3
- package/.next/server/chunks/_1rysr-r._.js +0 -10
- package/.next/server/chunks/_1u3rwbr._.js +0 -3
- package/.next/server/chunks/_1x7p319._.js +0 -6
- package/.next/server/chunks/_next-internal_server_app_api_bot_notes_route_actions_0qcsyu7.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_api_memory_tidy_route_actions_0_cfuom.js +0 -3
- package/.next/server/chunks/features_bot_task_query_ts_11xuzl3._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0gzvgfv._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0vorg6w._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1tpvamf._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1vmaq9f._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1y9-wcr._.js +0 -3
- package/.next/server/chunks/ssr/[externals]_node_crypto_1kn79-7._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0iuoa-r._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0un-erv._.js +0 -4
- package/.next/server/chunks/ssr/[root-of-the-server]__1-mnhyd._.js +0 -92
- package/.next/server/chunks/ssr/[root-of-the-server]__1bww500._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1vcdast._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1xwnu-h._.js +0 -3
- package/.next/server/chunks/ssr/_0-mc7ro._.js +0 -3
- package/.next/server/chunks/ssr/_01p5r6-._.js +0 -3
- package/.next/server/chunks/ssr/_03webdr._.js +0 -3
- package/.next/server/chunks/ssr/_09-0k3z._.js +0 -3
- package/.next/server/chunks/ssr/_0f_b_9s._.js +0 -3
- package/.next/server/chunks/ssr/_0fafgvl._.js +0 -3
- package/.next/server/chunks/ssr/_0sf1isi._.js +0 -3
- package/.next/server/chunks/ssr/_0su6_08._.js +0 -3
- package/.next/server/chunks/ssr/_0ti51xc._.js +0 -3
- package/.next/server/chunks/ssr/_0w5bgak._.js +0 -3
- package/.next/server/chunks/ssr/_0y84qo6._.js +0 -3
- package/.next/server/chunks/ssr/_1ciyoo3._.js +0 -3
- package/.next/server/chunks/ssr/_1e-dgz0._.js +0 -4
- package/.next/server/chunks/ssr/_1fq7zgb._.js +0 -3
- package/.next/server/chunks/ssr/_1g6l4uj._.js +0 -3
- package/.next/server/chunks/ssr/_1ruzehw._.js +0 -3
- package/.next/server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js +0 -4
- package/.next/server/chunks/ssr/features_config_components_14jqgy4._.js +0 -3
- package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +0 -4
- package/.next/server/chunks/ssr/node_modules_zod_v4_classic_external_15fmmz3.js +0 -55
- package/.next/static/chunks/05b6nx_o3_f_n.js +0 -1
- package/.next/static/chunks/0dmns-gi0raa4.js +0 -1
- package/.next/static/chunks/0f9sq-7q_yxyl.js +0 -1
- package/.next/static/chunks/0oc4_xoia77dg.css +0 -1
- package/.next/static/chunks/0pheo8m3a-rzi.js +0 -1
- package/.next/static/chunks/19i8h2t-5evjx.js +0 -1
- package/.next/static/chunks/1c5fcj473025q.js +0 -1
- package/.next/static/chunks/1pi_hbmjw-f-z.js +0 -1
- package/.next/static/chunks/1twt6k09vg4np.js +0 -1
- package/.next/static/chunks/1ytnip8wdng93.js +0 -1
- package/.next/static/chunks/28gotuisldmom.js +0 -1
- package/.next/static/chunks/2998p0y7k1c8z.js +0 -3
- package/.next/static/chunks/29gyb3nubj51j.js +0 -53
- package/.next/static/chunks/2l233xfycjpd8.js +0 -1
- package/.next/static/chunks/2p5n7pa3c40t-.js +0 -2
- package/.next/static/chunks/2ru1q132af7h7.js +0 -1
- package/.next/static/chunks/2t8wqycwg3y04.js +0 -2
- package/.next/static/chunks/2uxum7qbyeyxd.js +0 -1
- package/.next/static/chunks/32z_ypgtchw48.js +0 -1
- package/.next/static/chunks/33pyjb3xd1iez.js +0 -1
- package/.next/static/chunks/3omud5xunrk1f.js +0 -1
- package/.next/static/chunks/42dnrkbph9e-1.js +0 -1
- package/.next/static/media/favicon.2vob68tjqpejf.ico +0 -0
- package/database/migrations/20260909063821_bitter_tenebrous/migration.sql +0 -1
- package/features/ai/prompts/memory-tidy.prompt.ts +0 -129
- package/features/ai/tools/tidy.tool.ts +0 -22
- package/features/bot/bot.notes.ts +0 -120
- package/features/memory/components/memory-tidy.tsx +0 -395
- package/features/memory/memory.tidy.ts +0 -332
- package/features/memory/tidy.query.ts +0 -135
- package/features/thursday/use-call-title.ts +0 -31
- /package/.next/server/app/api/bot/{notes → memory/files}/route/build-manifest.json +0 -0
- /package/.next/server/app/api/bot/{notes → memory/files}/route/server-reference-manifest.json +0 -0
- /package/.next/server/app/api/bot/{notes → memory/files}/route.js.map +0 -0
- /package/.next/server/app/api/{memory/tidy → bot/memory}/route/build-manifest.json +0 -0
- /package/.next/server/app/api/{memory/tidy → bot/memory}/route/server-reference-manifest.json +0 -0
- /package/.next/server/app/api/{memory/tidy → bot/memory}/route.js.map +0 -0
- /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → x1cCqY0kWpR_VcYx_lWO5}/_buildManifest.js +0 -0
- /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → x1cCqY0kWpR_VcYx_lWO5}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → x1cCqY0kWpR_VcYx_lWO5}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},326758,a=>{a.v("/_next/static/media/favicon.
|
|
1
|
+
module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},326758,a=>{a.v("/_next/static/media/favicon.37o1pjldwi2uc.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},438872,a=>{"use strict";let b={src:a.i(326758).default,width:48,height:48};a.s(["default",0,b])},782509,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(211857);a.n(d("[project]/node_modules/next/dist/client/components/builtin/global-error.js"))},866114,a=>{"use strict";var b=a.i(782509);a.n(b)},262212,function(a){a.n(a.i(866114))},875972,a=>{"use strict";var b=a.i(612948),c=a.i(167436),d=a.i(594331);a.i(670408);let e=(0,b.instrumentModuleGetter)(()=>a.r(438872)),f=(0,b.instrumentModuleGetter)(()=>a.r(70864)),g=(0,b.instrumentModuleGetter)(()=>a.r(43619)),h=(0,b.instrumentModuleGetter)(()=>a.r(13718)),i=(0,b.instrumentModuleGetter)(()=>a.r(118198)),j=(0,b.instrumentModuleGetter)(()=>a.r(262212)),k=["",{children:["/_not-found",{children:["__PAGE__",{},{metadata:{},page:[(0,b.instrumentModuleGetter)(()=>a.r(43619)),"[project]/node_modules/next/dist/client/components/builtin/not-found.js"]},[]]},{metadata:{}},[]]},{metadata:{icon:[async()=>{let a=(0,d.interopDefault)(await e());return[{url:`/favicon.ico?${a.src.split("/").splice(-1)[0]}`,sizes:`${a.width}x${a.height}`,type:"image/x-icon"}]}]},layout:[f,"[project]/app/layout.tsx"],"not-found":[g,"[project]/node_modules/next/dist/client/components/builtin/not-found.js"],forbidden:[h,"[project]/node_modules/next/dist/client/components/builtin/forbidden.js"],unauthorized:[i,"[project]/node_modules/next/dist/client/components/builtin/unauthorized.js"],"global-error":[j,"[project]/node_modules/next/dist/client/components/builtin/global-error.js"]},[]],l=a.r.bind(a),m=a.l.bind(a),n=(0,c.createAppPageEntrypoint)({tree:k,page:"/_not-found/page",pathname:"/_not-found",require:l,loadChunk:m,interopDefault:d.interopDefault}),o=n.__next_app__,p=n.routeModule,q=n.handler;a.s(["__next_app__",0,o,"handler",0,q,"routeModule",0,p],610568),a.i(610568);var r=a.i(722922);a.s(["ClientPageRoot",()=>r.ClientPageRoot,"ClientSegmentRoot",()=>r.ClientSegmentRoot,"Fragment",()=>r.Fragment,"HTTPAccessFallbackBoundary",()=>r.HTTPAccessFallbackBoundary,"InstantValidation",()=>r.InstantValidation,"LayoutRouter",()=>r.LayoutRouter,"LoadingBoundaryProvider",()=>r.LoadingBoundaryProvider,"Postpone",()=>r.Postpone,"RenderFromTemplateContext",()=>r.RenderFromTemplateContext,"RootLayoutBoundary",()=>r.RootLayoutBoundary,"SegmentViewNode",()=>r.SegmentViewNode,"SegmentViewStateNode",()=>r.SegmentViewStateNode,"__next_app__",0,o,"captureOwnerStack",()=>r.captureOwnerStack,"collectPrefetchHints",()=>r.collectPrefetchHints,"collectSegmentData",()=>r.collectSegmentData,"createElement",()=>r.createElement,"createMetadataComponents",()=>r.createMetadataComponents,"createPrerenderParamsForClientSegment",()=>r.createPrerenderParamsForClientSegment,"createPrerenderSearchParamsForClientPage",()=>r.createPrerenderSearchParamsForClientPage,"createServerParamsForServerSegment",()=>r.createServerParamsForServerSegment,"createServerSearchParamsForServerPage",()=>r.createServerSearchParamsForServerPage,"createTemporaryReferenceSet",()=>r.createTemporaryReferenceSet,"decodeAction",()=>r.decodeAction,"decodeFormState",()=>r.decodeFormState,"decodeReply",()=>r.decodeReply,"handler",0,q,"isEmptyHTMLPrelude",()=>r.isEmptyHTMLPrelude,"patchFetch",()=>r.patchFetch,"preconnect",()=>r.preconnect,"preloadFont",()=>r.preloadFont,"preloadStyle",()=>r.preloadStyle,"prerender",()=>r.prerender,"prerenderToNodeStream",()=>r.prerenderToNodeStream,"renderToPipeableStream",()=>r.renderToPipeableStream,"renderToReadableStream",()=>r.renderToReadableStream,"routeModule",0,p,"serverHooks",()=>r.serverHooks,"taintObjectReference",()=>r.taintObjectReference],875972)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__0xtssj3._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},59639,(a,b,c)=>{b.exports=a.x("node:process",()=>require("node:process"))},287702,a=>{"use strict";process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),process.env.THURSDAY_HOME?.trim()||process.cwd(),process.env.THURSDAY_URL?.trim()||process.env.PORT?.trim();let b=".ai-workspace",c={workspace:b,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${b}/.agents/skills`}};a.s(["APP_NAME",0,"Thursday","ARTIFACT_VIEW",0,{rows:200,setFiles:120},"ASCII_FACE",0,{charset:"emojiOnly",fontSize:{default:8,min:4,max:16},density:{default:1.4,min:.6,max:2}},"BOT_RUN",0,{steps:100,compactAt:5e5,compactHeadroom:.8,summaryWords:{min:600,max:3e3,perTokens:200},depth:2,askBack:3,silenceMs:3e5,autoResumes:3,retryAfterMs:[3e4,12e4,3e5],overflowShrink:.6,compactFiles:40},"BROWSER_SKILL",0,"browser","CALL_HISTORY_PAGE",0,10,"IS_DEV",0,!1,"PAGE_SIZE",0,50,"PATHS",0,c,"PROMPT_CROWDED",0,{bots:10,skills:20},"STUDIO_SERVER",0,"studio","WORKSPACE_VIEW",0,{rows:200,textMax:524288,elementMax:0x3200000}])},992025,a=>{a.v(a=>Promise.resolve().then(()=>a(948986)))},929490,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1i7u1ia._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(161868)))},969267,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_063xwpp._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1feyqvf._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0arohj6._.js","server/chunks/ssr/node_modules_11trqmi._.js"].map(b=>a.l(b))).then(()=>b(626047)))},784520,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0qwth-_._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-I7D4REHJ_mjs_0qg1lr5._.js"].map(b=>a.l(b))).then(()=>b(155638)))},613707,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-F27PBJKO_mjs_0ms0zmb._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-7LVT6UL2_mjs_06bhe3-._.js"].map(b=>a.l(b))).then(()=>b(557384)))},53467,a=>{"use strict";var b=a.i(261234),c=a.i(539110);a.i(975930);var d=a.i(671731),e=(0,c.__name)(a=>{let{securityLevel:c}=(0,b.getConfig2)(),e=(0,d.select)("body");if("sandbox"===c){let b=(0,d.select)(`#i${a}`),c=b.node()?.contentDocument??document;e=(0,d.select)(c.body)}return e.select(`#${a}`)},"selectSvgElement");a.s(["selectSvgElement",0,e])},882458,a=>{"use strict";var b=a.i(416635),c=a.i(43429),d=a.i(428212),e=a.i(916573),f=a.i(887370),g=a.i(261234),h=a.i(875117),i=a.i(539110),j={common:g.common_default,getConfig:g.getConfig,insertCluster:b.insertCluster,insertEdge:c.insertEdge,insertEdgeLabel:c.insertEdgeLabel,insertMarkers:c.markers_default,insertNode:d.insertNode,interpolateToCurve:f.interpolateToCurve,labelHelper:e.labelHelper,log:h.log,positionEdgeLabel:c.positionEdgeLabel},k={},l=(0,i.__name)(a=>{for(let b of a)k[b.name]=b},"registerLayoutLoaders");(0,i.__name)(()=>{l([{name:"dagre",loader:(0,i.__name)(async()=>await a.A(390118),"loader")},{name:"swimlane",loader:(0,i.__name)(async()=>await a.A(860094),"loader")},{name:"cose-bilkent",loader:(0,i.__name)(async()=>await a.A(989520),"loader")}])},"registerDefaultLayoutLoaders")();var m=(0,i.__name)(async(a,b)=>{if(!(a.layoutAlgorithm in k))throw Error(`Unknown layout algorithm: ${a.layoutAlgorithm}`);if(a.diagramId)for(let b of a.nodes){let c=b.domId||b.id;b.domId=`${a.diagramId}-${c}`}let c=k[a.layoutAlgorithm],d=await c.loader(),{theme:e,themeVariables:f}=a.config,{useGradient:g,gradientStart:h,gradientStop:i}=f,l=b.attr("id");if(b.append("defs").append("filter").attr("id",`${l}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${e?.includes("dark")?"#FFFFFF":"#000000"}`),b.append("defs").append("filter").attr("id",`${l}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${e?.includes("dark")?"#FFFFFF":"#000000"}`),g){let a=b.append("linearGradient").attr("id",b.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");a.append("svg:stop").attr("offset","0%").attr("stop-color",h).attr("stop-opacity",1),a.append("svg:stop").attr("offset","100%").attr("stop-color",i).attr("stop-opacity",1)}return d.render(a,b,j,{algorithm:c.algorithm})},"render"),n=(0,i.__name)((a="",{fallback:b="dagre"}={})=>{if(a in k)return a;if(b in k)return h.log.warn(`Layout algorithm ${a} is not registered. Using ${b} as fallback.`),b;throw Error(`Both layout algorithms ${a} and ${b} are not registered.`)},"getRegisteredLayoutAlgorithm");a.s(["getRegisteredLayoutAlgorithm",0,n,"registerLayoutLoaders",0,l,"render",0,m])},854712,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1v463pe._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js"].map(b=>a.l(b))).then(()=>b(336243)))},892569,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0thh8pk._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js"].map(b=>a.l(b))).then(()=>b(538994)))},989520,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1nl12mt._.js","server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0arohj6._.js"].map(b=>a.l(b))).then(()=>b(127273)))},388833,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0mwym0g._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(517237)))},390118,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_dagre-GXQ25YYZ_mjs_0k_lz8d._.js","server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js"].map(b=>a.l(b))).then(()=>b(920028)))},831868,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1-hc6uv._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0eji647._.js"].map(b=>a.l(b))).then(()=>b(767190)))},840309,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0bvraul._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(464445)))},835410,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1uuj9x1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(617803)))},728413,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1vqb6po._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-VX7I27RA_mjs_0dl8gzm._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_13hksv_._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(217755)))},992149,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0z5tsu8._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(752425)))},70220,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0y_cded._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(137554)))},595386,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0il0v7d._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-RLTQ6QDP_mjs_18g60i7._.js"].map(b=>a.l(b))).then(()=>b(239909)))},707604,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0ql0igl._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js"].map(b=>a.l(b))).then(()=>b(1258)))},598518,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1831lye._.js","server/chunks/ssr/node_modules_1_d0q_7._.js"].map(b=>a.l(b))).then(()=>b(722966)))},126571,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1t9cyee._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0dlpxwr._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-WWUBYQGX_mjs_0g15hiw._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(349834)))},814636,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_113tz0l._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1ok0411._.js"].map(b=>a.l(b))).then(()=>b(525902)))},147136,a=>{a.v(b=>Promise.all(["server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-5VMMS53U_mjs_05o2e4d._.js"].map(b=>a.l(b))).then(()=>b(206340)))},719552,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_201yvda._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-3NMN7TZE_mjs_16ehrbl._.js"].map(b=>a.l(b))).then(()=>b(450754)))},653408,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5VM5RSS4_mjs_0tg6kya._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UXKFOSKX_mjs_1uiqd5g._.js"].map(b=>a.l(b))).then(()=>b(301315)))},165250,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1turj0n._.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_mindmap-definition-YA3MSWOX_mjs_19k8byt._.js"].map(b=>a.l(b))).then(()=>b(790158)))},325455,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1bc7gu8._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(595628)))},934650,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0i44kk5._.js","server/chunks/ssr/node_modules_1rg7lj4._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1sgfrma._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(748116)))},389088,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_111pp7w._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-AXDQQJYC_mjs_0h4a9wq._.js"].map(b=>a.l(b))).then(()=>b(888630)))},523431,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1_n3ztw._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(846881)))},458290,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1turj0n._.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_requirementDiagram-BXWQKSXE_mjs_0kwiv6n._.js"].map(b=>a.l(b))).then(()=>b(443250)))},215730,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_d3-scale_src_1tr1qwb._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-P5KCCOFB_mjs_187yyta._.js"].map(b=>a.l(b))).then(()=>b(656950)))},295724,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1o1kg4c._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-WJ2MYXX4_mjs_1n01m3a._.js"].map(b=>a.l(b))).then(()=>b(571979)))},482052,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-INFHLROL_mjs_179zv_p._.js"].map(b=>a.l(b))).then(()=>b(865684)))},438231,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1rxlz7e._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-D77RDMKH_mjs_1mer5fv._.js","server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js"].map(b=>a.l(b))).then(()=>b(168538)))},991687,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0jkhu0x._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js"].map(b=>a.l(b))).then(()=>b(472309)))},860094,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_swimlanes-42K2YHIH_mjs_0scuk32._.js"].map(b=>a.l(b))).then(()=>b(827033)))},819980,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_04f6p6a._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js"].map(b=>a.l(b))).then(()=>b(1471)))},623969,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_d3-shape_src_arc_1-w13bo.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_timeline-definition-24CTP7MA_mjs_10dmaxt._.js"].map(b=>a.l(b))).then(()=>b(301394)))},788557,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-4TSXK5OY_mjs_0anqu7y._.js"].map(b=>a.l(b))).then(()=>b(509170)))},925161,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_063xwpp._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-VM6X3IG4_mjs_0kh3fjb._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_17wxxyr._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(914844)))},506751,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0xht9wg._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-S5SC5T6Z_mjs_08t5e44._.js"].map(b=>a.l(b))).then(()=>b(176947)))},236914,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_streamdown_dist_highlighted-body-KPVGNVTW_1fnf894.js"].map(b=>a.l(b))).then(()=>b(391282)))},172487,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_streamdown_dist_mermaid-HWGCJPDP_093xi20.js"].map(b=>a.l(b))).then(()=>b(853409)))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0zkv7z_._.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
module.exports=[614747,a=>a.a(async(b,c)=>{try{var d=a.i(569572),e=a.i(762008),f=a.i(221214),g=a.i(84929),h=a.i(986743),i=a.i(661210),j=a.i(138100),k=a.i(569549),l=a.i(821415),m=a.i(176668),n=a.i(644468),o=a.i(938934),p=b([f,g,h,k,n]);async function q(a,b){var c,p,q;let u=await (0,l.openWorkspace)(),[v,w,x,y,z,A,B]=await Promise.all([(0,j.loadSkills)(u),(0,h.listNoteIndex)(),(0,h.listAlwaysLoaded)(),(0,n.listConnectedToolNames)(),(0,f.listJobBots)(),(0,k.listRecentTurns)(d.RECENT_CALL.rows),(0,k.readCallSkillsOn)()]),C=await (0,g.listCallJobs)(A.map(a=>a.callId)),D=w.filter(a=>(0,i.isAlwaysListed)(a.path)&&0===a.factCount),E=[`You are Thursday, a personal voice assistant modeled on Friday, the AI in *Iron Man* — quick, warm, dry, on their side. ${(0,o.nowLine)()}
|
|
2
|
+
|
|
3
|
+
This is a call, not a chat: one or two sentences a turn. If you did not catch something, say so and ask again.`,function(a,b){let{crowded:c,heavy:f}=(0,o.tidying)(a),g=`## Memory
|
|
4
|
+
|
|
5
|
+
What you have kept from talking with this user — the only thing that survives a session.`,h=b.length?`Already known — carried into every call:
|
|
6
|
+
|
|
7
|
+
${(0,o.carriedLines)(b)}`:"",j=`path — what is under it (facts) "what the user calls it"
|
|
8
|
+
|
|
9
|
+
${(0,o.noteLines)(a,c)}
|
|
10
|
+
|
|
11
|
+
Open a note before answering out of it; a topic not listed is one you know nothing about. A fact marked \`said\` came from a call; open that call with \`${e.TOOL_NAMES.memory_conversation}\` only when the line itself cannot answer — exactly what they said, or why it was saved.
|
|
12
|
+
|
|
13
|
+
Anything worth knowing next time goes in the moment it comes up, without asking — one fact per line, dates as dates. A rule they lay down for you — their language, how long an answer runs, when to hang up — is \`alwaysLoad\`; unsaved, it dies with the call. What stopped being true is corrected with \`replaces\`, not left standing beside it. Never claim to remember what you did not save.
|
|
14
|
+
|
|
15
|
+
${i.MEMORY_PATHS.map(a=>`- ${a.path} — ${a.of}`).join("\n")}`,k=f.length?`${[...f].sort((a,b)=>b.factCount-a.factCount).slice(0,3).map(a=>`${a.path} (${a.factCount})`).join(", ")} ${f.length>1?"have":"has"} grown past ${d.MEMORY_LIMITS.factsPerNote} facts, more than one note holds well. Put ${f.length>1?"each":"it"} on their screen with \`${e.TOOL_NAMES.memory_show}\`, read back what is stale and forget only what they name.`:"",l=c?`Memory is past ${d.MEMORY_LIMITS.facts} facts in all. The coldest notes are ${a.slice(-4).map(a=>a.path).join(", ")} — ask whether any of them is still worth keeping, and delete the note if not.`:"",m=[k,l].filter(Boolean).join(" ");return[g,h,j,m&&`${m} Get this settled before anything else you would bring up yourself — not before what they came to you with.`].filter(Boolean).join("\n\n")}(w,x),function(a){if(0===a.roster.length)return"";let b=`## Bots
|
|
16
|
+
|
|
17
|
+
Who you hand work to — the names \`${e.TOOL_NAMES.delegate}\` takes.
|
|
18
|
+
|
|
19
|
+
${a.roster.map(a=>`- **${a.name}** — ${a.description}`).join("\n")}`,c=[a.skills.length?`**Skills** a bot reads before it starts:
|
|
20
|
+
${(0,o.skillLines)(a.skills,{short:!0})}`:"",a.mcpTools.length?`**Connected services** a bot can run tools inside:
|
|
21
|
+
${(0,o.mcpServerLines)(a.mcpTools)}`:""].filter(Boolean),d=c.length?`Not yours, and not names to hand work to:
|
|
22
|
+
|
|
23
|
+
${c.join("\n\n")}`:"",f=`**Anything that takes more than a few seconds is a bot's** — one note or one file is yours. \`${e.TOOL_NAMES.delegate}\` answers at once: say who has it and keep talking. Put the request in their own words, with what it stands on and nothing they did not say; if something only they can say is missing — how much, which one, by when — ask that first.
|
|
24
|
+
|
|
25
|
+
**The conversation belongs to the job, not to the bot** — hand the same bot a second job and it starts from nothing, knowing neither what was asked nor what it found. So more about a job you already handed over goes to \`${e.TOOL_NAMES.task}\` by its name, and the bot wakes with that job's own thread; with no name given it takes the one that moved last.`;return[b,"**A bot has the whole machine** — this computer, a real browser, the web, files, a shell to build whatever is missing — and far more time than you. It signs in where it has to, with the window in front of them, and carries a job to the end: the account made, the page built. How, and whether, is its call; yours is what they want — so a thing you have no idea how to do is a job, not a no. Bots borrow each other, so a job that spans several things is still one job for one bot.",d,f,"A job comes back as a system note, not the user speaking. **It was written to you, not to them** — its length is not how much to say, and the whole of it is already on their screen. Give them the part that answers what they asked, in one sentence, in your own words. A file it names opens there by itself — say what it holds, not the path. A question arrives the same way: answer it yourself if you can, else read them the options and send back what they say."].filter(Boolean).join("\n\n")}({roster:z,skills:B?[]:v,mcpTools:y}),(c=B?v:[],0===c.length?"":`## Skills
|
|
26
|
+
|
|
27
|
+
How a thing is done here, written down. A bot reads one before it starts; these you can read too.
|
|
28
|
+
|
|
29
|
+
${(0,o.skillLines)(c,{short:!0})}
|
|
30
|
+
|
|
31
|
+
\`${e.TOOL_NAMES.load_skill}\` puts one in front of you, and what it says then goes for you as well. Read one when it covers what was asked and the doing is a glance — a note, a file, one command. What it describes that takes longer is still a job: hand that over, with what the skill said in the request.`),t(u.cwd),(p=A,q=C,p.some(a=>a.turns.length>0)?`## Recent conversation
|
|
32
|
+
|
|
33
|
+
What was said on the last calls, verbatim, newest last. This is the past: pick it up when the user brings it up, never answer as though it was just asked.
|
|
34
|
+
|
|
35
|
+
A \`${e.TOOL_NAMES.delegate}\` line carries the job's handle and how it ended; the handle is for \`${e.TOOL_NAMES.task}\`, never said out loud. What they ask for now is often one of these carried further, not a new job.
|
|
36
|
+
|
|
37
|
+
${(0,o.recentCallLines)(p.map(a=>({...a,jobs:q.filter(b=>b.callId===a.callId)})),d.RECENT_CALL.tokens)}`:""),s(a)].filter(Boolean).join("\n\n");return(0,o.logPromptSize)("thursday",E),m.logger.debug(`thursday prompt
|
|
38
|
+
${E}`),{text:E,peers:z.map(a=>a.name),opening:D.some(a=>"profile"===a.path)?r(b):null}}[f,g,h,k,n]=p.then?(await p)():p;let r=a=>`[First call — nothing is known about this user yet, and this call is where that changes. This is not the user speaking.
|
|
39
|
+
|
|
40
|
+
Open the conversation yourself: greet them in one line and ask what to call them.${a?` Say it in the language of \`${a}\` — that is what their browser is set to, and it is the only thing known about them so far. If they answer in another language, that one wins from then on.`:""}
|
|
41
|
+
|
|
42
|
+
From there, the work of this call is learning who they are. As a conversation, not a form: one question at a time, and each answer saved with \`${e.TOOL_NAMES.memory_remember}\` the moment it lands, before the next question. What to call them and how to refer to them. The language and register they want from you — switch to their language the moment you hear it. What they do, and where. Who is around them — family, whoever they live with, the people they name. How they like things done.
|
|
43
|
+
|
|
44
|
+
Their name, their language and how to address them are \`alwaysLoad\`; the rest goes to \`profile\`, \`preferences\` and \`people/\`.
|
|
45
|
+
|
|
46
|
+
If they came with something they want done, that comes first — hand it over and pick this up in the gaps. But do not end this call without a name and a language saved.]`,s=a=>a?.trim()?`## Owner's instruction
|
|
47
|
+
|
|
48
|
+
Written by the user themselves. Where this and anything above disagree, this wins.
|
|
49
|
+
|
|
50
|
+
${a.trim()}`:"",t=a=>`## Environment
|
|
51
|
+
|
|
52
|
+
Current Cwd: ${a}
|
|
53
|
+
Platform: ${process.platform}
|
|
54
|
+
|
|
55
|
+
Where \`${e.TOOL_NAMES.bash}\` runs, and what the paths you get back are relative to. Yours to use while you talk: open a file, play something, look at what is on the machine — one command is a thing you do, not a job you hand over.`;a.s(["loadThursdayPrompt",0,q]),c()}catch(a){c(a)}},!1),260210,a=>{"use strict";var b=a.i(137936),c=a.i(912714),d=a.i(750227);a.i(569572),a.i(684321);var e=a.i(821415),f=a.i(293480);async function g(a){let b=await (0,e.insideWorkspace)(a);return b?.startsWith(e.ARTIFACTS+d.sep)||(0,f.publicError)("Not an artifact"),b}async function h(a){let b=await g(a),d=await (0,c.stat)(b).catch(()=>null);d||(0,f.publicError)("File not found"),d.isFile()||(0,f.publicError)("That is a folder, not a file"),await (0,c.rm)(b)}var i=a.i(225689),j=a.i(713095);let k=(0,i.serverAction)(async a=>{let b=a.trim();b||(0,f.publicError)("Which file?"),await h(b)});(0,j.ensureServerEntryExports)([k]),(0,b.registerServerReference)(k,"7fcb8973f9c88ffb3dd3e12eeeb7dfe80f2f1eb188",null),a.s(["deleteArtifactAction",0,k],260210)},362562,(a,b,c)=>{b.exports=a.x("module",()=>require("module"))},910350,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(689656),g=a.i(225689),h=a.i(293480),i=a.i(221214),j=a.i(674986),k=a.i(446957),l=a.i(636616),m=a.i(84929),n=a.i(713095),o=b([i,j,m]);[i,j,m]=o.then?(await o)():o;let p=(0,g.serverAction)(async a=>{let b=k.BotFormSchema.parse(a),c=await (0,i.createBot)(b);return c||(0,h.publicError)(`"${b.name}" already exists`),{name:c.name}}),q=(0,g.serverAction)(async(a,b)=>{let c=k.BotFormSchema.partial().parse(b);await (0,i.updateBot)(a,c)||(0,h.publicError)("Bot not found")}),r=e.z.object({name:e.z.string().trim().min(1).max(80),provider:f.textModelProviderSchema.nullish(),model:e.z.string().trim().min(1).max(80).nullish(),color:k.botIconSchema.shape.color}),s=(0,g.serverAction)(async a=>{let b=r.array().max(20).parse(a),c=(0,l.rollSeedColors)(),d=[];for(let[a,e]of b.entries()){let b=(0,l.findBotSeed)(e.name);if(!b)continue;let f=await (0,i.createBot)({name:b.name,description:b.description,systemPrompt:b.systemPrompt,icon:{...b.icon,color:e.color??c[a%c.length]},provider:e.provider,model:e.model,toolIds:[]});f&&d.push(f.name)}return{created:d}}),t=(0,g.serverAction)(async a=>{await (0,i.deleteBot)(a)||(0,h.publicError)("Bot not found")}),u=(0,g.serverAction)(async a=>{await (0,i.writeBotMemoryOn)(!0===a)}),v=(0,g.serverAction)(async(a,b)=>{let c,d,e=b.trim();e||(0,h.publicError)("Nothing to hand over.");let f=await (0,i.findBot)(a);f||(0,h.publicError)(`No bot called "${a}".`);let g=(d=(c=e.replace(/\s+/g," ").trim().split(" ")).slice(0,4).join(" "),(c.length>4?`${d}…`:d).slice(0,60));return{id:await (0,j.startTask)({bot:f.name,request:e,label:g}),label:g,bot:f.name}}),w=(0,g.serverAction)(async(a,b)=>{let c=await (0,m.resolveTask)(a);return c||(0,h.publicError)(`No job called "${a}".`),b.trim()||(0,h.publicError)("Nothing to tell it."),await (0,j.answerTask)(c.id,b.trim()),{id:c.id,label:c.label,status:"running"}}),x=(0,g.serverAction)(async a=>{let b=await (0,m.resolveTask)(a);return b||(0,h.publicError)(`No job called "${a}".`),await (0,j.cancelTask)(b.id),{id:b.id,label:b.label,status:"cancelled"}}),y=(0,g.serverAction)(async a=>{await (0,m.markSeen)(a.filter(a=>"string"==typeof a&&a))}),z=(0,g.serverAction)(async a=>{await (0,j.removeTask)(a)||(0,h.publicError)("Task not found")}),A=(0,g.serverAction)(async()=>({removed:await (0,j.removeFinishedTasks)()}));(0,n.ensureServerEntryExports)([p,q,s,t,u,v,w,x,y,z,A]),(0,d.registerServerReference)(p,"7fa56dad6d8a2bc8e9fc327be0fad0827edc696eae",null),(0,d.registerServerReference)(q,"7fd5c4f6e679d30ce1d78bbf71c52bcd215ebfc1ac",null),(0,d.registerServerReference)(s,"7f146977640e230a08d980d2d2ec28e7dcf4438f21",null),(0,d.registerServerReference)(t,"7f74ef3be000997b6c5ad71b82e000a986cfde753a",null),(0,d.registerServerReference)(u,"7fb8ea5c85b220f5ff05764cb61851edf3871e8663",null),(0,d.registerServerReference)(v,"7f3ab92bbd495ee087cfb7b701c5f8af0d813bcf67",null),(0,d.registerServerReference)(w,"7f5bc96ea47ad8a575bfdee5fedc10d3a60faa0387",null),(0,d.registerServerReference)(x,"7f02f750f851a61ed3c2676040dea1e1ded9819205",null),(0,d.registerServerReference)(y,"7f15442d74ed44708143e5eb45805be0e17c010418",null),(0,d.registerServerReference)(z,"7fcad43ea4ae0039c0186bcc86a4e3b3a0e706caa4",null),(0,d.registerServerReference)(A,"7f673b8897006f8ae8c1a709d306fe394476e76d0b",null),a.s(["answerTaskAction",0,w,"cancelTaskAction",0,x,"clearFinishedTasksAction",0,A,"createBotAction",0,p,"createSeedBotsAction",0,s,"deleteBotAction",0,t,"deleteTaskAction",0,z,"markSeenAction",0,y,"setBotMemoryOnAction",0,u,"startTaskAction",0,v,"updateBotAction",0,q]),c()}catch(a){c(a)}},!1),937864,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(652619),g=a.i(225689),h=a.i(293480),i=a.i(688034),j=a.i(725466),k=a.i(713095),l=b([f,j]);[f,j]=l.then?(await l)():l;let m=e.z.enum(i.CONFIG_KEYS),n=(0,g.serverAction)(async(a,b)=>{let c=e.z.object({key:m,value:e.z.string().trim().min(1)}).parse({key:a,value:b}),d=i.CONFIG_ENTRIES[c.key];d?.signIn&&(0,h.publicError)(`${d.label} takes a sign-in, not a key.`),d?.choices?(0,i.acceptsChoice)(d,c.value)||(0,h.publicError)("That is not one of the options."):c.value.length<8&&(0,h.publicError)("That does not look like a key"),await (0,j.writeConfig)(c.key,c.value)}),o=(0,g.serverAction)(async a=>{await (0,j.removeConfig)(m.parse(a))}),p=(0,g.serverAction)(async()=>(0,f.startChatGptSignIn)());(0,k.ensureServerEntryExports)([n,o,p]),(0,d.registerServerReference)(n,"7f37945ceb686a8a33e09428221c3e9cd25fdcbbe6",null),(0,d.registerServerReference)(o,"7f9bc624b9c7f137e24cde3bf2bd49ab2a3d39404c",null),(0,d.registerServerReference)(p,"7fafe9889bfe63d1e391f146da7740d5e4f0039cbc",null),a.s(["removeConfigAction",0,o,"setConfigAction",0,n,"startChatGptSignInAction",0,p]),c()}catch(a){c(a)}},!1),935930,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(569572),f=a.i(947950),g=a.i(899284),h=a.i(225689),i=a.i(293480),j=a.i(182248),k=a.i(317844),l=a.i(713095),m=b([f,k]);[f,k]=m.then?(await m)():m;let o=(0,h.serverAction)(async a=>{let b=g.MCPServerFormSchema.parse(a);b.name===e.STUDIO_SERVER&&(0,i.publicError)(`"${e.STUDIO_SERVER}" is the app's own — pick another name`);let c=!!await (0,f.findServerDetail)(b.name);await (0,f.upsertServer)(b);let d=await n(b.name);return"error"!==d.status||c||await (0,f.deleteServer)(b.name),d}),p=(0,h.serverAction)(async a=>(await k.mcpManager.disconnect(a),n(a))),q=(0,h.serverAction)(async a=>{await k.mcpManager.disconnect(a),await (0,f.deleteServer)(a)||(0,i.publicError)("Server not found")});async function n(a){try{let b=await k.mcpManager.connect(a);return"auth_required"===b.status?{name:a,status:"auth_required",authorizationUrl:b.authorizationUrl,toolCount:0}:{name:a,status:"connected",toolCount:b.tools.length}}catch(b){return{name:a,status:"error",toolCount:0,error:(0,j.errorToString)(b)}}}let r=(0,h.serverAction)(async(a,b,c)=>{try{return await k.mcpManager.callTool(a,b,c)}catch(a){a instanceof k.McpAuthRequiredError&&(0,i.publicError)("Authorization required — reconnect this server first"),(0,i.publicError)((0,j.errorToString)(a))}});(0,l.ensureServerEntryExports)([o,p,q,r]),(0,d.registerServerReference)(o,"7f0f31e6c8be9bc825768389fc145a1b3446503296",null),(0,d.registerServerReference)(p,"7f01ea36e10e34b1bdd93e76c79733f6d9944ba5ab",null),(0,d.registerServerReference)(q,"7f8b31e414a34ee8f44144711314836c2ef544e4d6",null),(0,d.registerServerReference)(r,"7f5794ac71620e44519ac5e4528c812ec673d30e36",null),a.s(["callToolAction",0,r,"deleteServerAction",0,q,"refreshServerAction",0,p,"registerServerAction",0,o]),c()}catch(a){c(a)}},!1),542715,a=>a.a(async(b,c)=>{try{var d=a.i(937864),e=a.i(910350);a.i(451208);var f=a.i(201300),g=a.i(439759);a.i(260210),a.i(432443);var h=a.i(935930),i=b([d,e,f,g,h]);[d,e,f,g,h]=i.then?(await i)():i,a.s([]),c()}catch(a){c(a)}},!1),873715,a=>a.a(async(b,c)=>{try{var d=a.i(542715),e=a.i(937864),f=a.i(910350),g=a.i(451208),h=a.i(201300),i=a.i(439759),j=a.i(260210),k=a.i(432443),l=a.i(935930),m=b([d,e,f,h,i,l]);[d,e,f,h,i,l]=m.then?(await m)():m,a.s(["7f01ea36e10e34b1bdd93e76c79733f6d9944ba5ab",()=>l.refreshServerAction,"7f02e7db8b28f260e8681ddc98e73321c154495252",()=>h.updateNoteAction,"7f02f750f851a61ed3c2676040dea1e1ded9819205",()=>f.cancelTaskAction,"7f0f31e6c8be9bc825768389fc145a1b3446503296",()=>l.registerServerAction,"7f146977640e230a08d980d2d2ec28e7dcf4438f21",()=>f.createSeedBotsAction,"7f147159e492165c6f3e725b6fb1e5b607e98e646a",()=>h.reviseFactAction,"7f15442d74ed44708143e5eb45805be0e17c010418",()=>f.markSeenAction,"7f194293e4c1ab83ed63877cc9d8b7aebf42b46bb8",()=>g.deleteWorkspaceFileAction,"7f238d60ec0427ba89cff15934ff099cbe1044619c",()=>h.createNoteAction,"7f37945ceb686a8a33e09428221c3e9cd25fdcbbe6",()=>e.setConfigAction,"7f3ab92bbd495ee087cfb7b701c5f8af0d813bcf67",()=>f.startTaskAction,"7f3acf83fcc379119e185d7a3834d5eed97ad0a1c1",()=>k.setSkillDisabledAction,"7f3ddbf37770ac395e5d1cbd8e5defa43d735b967a",()=>k.deleteSkillAction,"7f4d47e01fc323498dec73a09cf3336f5d4c1d51e0",()=>k.createSkillAction,"7f50cfd7d0e623e886552f9994a05a234251f6b400",()=>i.resetHistoryAction,"7f5794ac71620e44519ac5e4528c812ec673d30e36",()=>l.callToolAction,"7f5bc96ea47ad8a575bfdee5fedc10d3a60faa0387",()=>f.answerTaskAction,"7f647083e5350baa7762d6d282de825cdf6b737384",()=>g.openFileAction,"7f673b8897006f8ae8c1a709d306fe394476e76d0b",()=>f.clearFinishedTasksAction,"7f7158cd6d7b4345e5616c2f390c98da69d9b1cc59",()=>i.saveTurnsAction,"7f74ef3be000997b6c5ad71b82e000a986cfde753a",()=>f.deleteBotAction,"7f77eeed8de53bdd8bc4cea5fa47d4df68a64ffef9",()=>h.setFactAlwaysLoadAction,"7f8836b516d90511f9ac2025e946c291a9cd0d8174",()=>g.emptyScratchAction,"7f8b31e414a34ee8f44144711314836c2ef544e4d6",()=>l.deleteServerAction,"7f9a2b254168fd5502160348c9e187bc9a1f582de4",()=>h.forgetFactAction,"7f9bc624b9c7f137e24cde3bf2bd49ab2a3d39404c",()=>e.removeConfigAction,"7fa0f05df10fadbdbc32f656a9d5c05cd146302f7a",()=>i.deleteCallAction,"7fa56dad6d8a2bc8e9fc327be0fad0827edc696eae",()=>f.createBotAction,"7faf414a19a4e2dc232e5b58fb933b933518d61724",()=>i.endCallAction,"7fafe9889bfe63d1e391f146da7740d5e4f0039cbc",()=>e.startChatGptSignInAction,"7fb326617fb6fe0d74f20b79af1e912238def02960",()=>i.setCallSkillsAction,"7fb8ea5c85b220f5ff05764cb61851edf3871e8663",()=>f.setBotMemoryOnAction,"7fc31f84110d23b621f3e25a91911ccd4664d8643e",()=>h.deleteNoteAction,"7fcad43ea4ae0039c0186bcc86a4e3b3a0e706caa4",()=>f.deleteTaskAction,"7fcb8973f9c88ffb3dd3e12eeeb7dfe80f2f1eb188",()=>j.deleteArtifactAction,"7fd0bfd5ef4b8f7c1cce531ca4dba6996ada3534e0",()=>i.openCallAction,"7fd5c4f6e679d30ce1d78bbf71c52bcd215ebfc1ac",()=>f.updateBotAction,"7fda69a255fb7c5c5fd5401dd0430ccfc6d9ebd601",()=>h.addFactsAction,"7fe2a2ec036940cdf16482cfbd7aecf01f5571fe5a",()=>i.deleteEndedCallsAction,"7fe6ee51994f51caff9011049ffe2a9aa4153d8a4e",()=>k.uploadSkillAction]),c()}catch(a){c(a)}},!1),201300,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(569572),g=a.i(986743),h=a.i(661210),i=a.i(225689),j=a.i(293480),k=a.i(713095),l=b([g]);[g]=l.then?(await l)():l;let m=e.z.string().trim().refine(h.isMemoryPath,"Invalid note path"),n=(0,i.serverAction)(async(a,b,c=[])=>{let d=m.parse(a),f=e.z.string().min(1).parse(b),h=await (0,g.createNote)(d,f,{ownedByUser:!0});for(let a of(h||(0,j.publicError)("Note already exists"),c.map(a=>a.trim()).filter(Boolean)))await (0,g.addFact)(h.id,a);return{id:h.id}}),o=(0,i.serverAction)(async(a,b)=>{await (0,g.updateNote)(a,b)||(0,j.publicError)("Note not found")}),p=(0,i.serverAction)(async a=>{await (0,g.deleteNote)(a)||(0,j.publicError)("Note not found")}),q=(0,i.serverAction)(async(a,b)=>{let c=b.map(a=>a.trim()).filter(Boolean);for(let b of(0===c.length&&(0,j.publicError)("Fact text is required"),c))await (0,g.addFact)(a,b);return{added:c.length}}),r=(0,i.serverAction)(async(a,b,c)=>{c.trim()||(0,j.publicError)("Fact text is required"),await (0,g.reviseFact)(a,b,c.trim())||(0,j.publicError)("Fact not found")}),s=(0,i.serverAction)(async(a,b)=>{await (0,g.forgetFact)(a,b)||(0,j.publicError)("Fact not found")}),t=(0,i.serverAction)(async(a,b,c)=>{let d=await (0,g.setFactAlwaysLoad)(a,b,c);"full"===d&&(0,j.publicError)(`Only ${f.MEMORY_LIMITS.carried} facts can be carried into every call — drop one first`),"missing"===d&&(0,j.publicError)("Fact not found")});(0,k.ensureServerEntryExports)([n,o,p,q,r,s,t]),(0,d.registerServerReference)(n,"7f238d60ec0427ba89cff15934ff099cbe1044619c",null),(0,d.registerServerReference)(o,"7f02e7db8b28f260e8681ddc98e73321c154495252",null),(0,d.registerServerReference)(p,"7fc31f84110d23b621f3e25a91911ccd4664d8643e",null),(0,d.registerServerReference)(q,"7fda69a255fb7c5c5fd5401dd0430ccfc6d9ebd601",null),(0,d.registerServerReference)(r,"7f147159e492165c6f3e725b6fb1e5b607e98e646a",null),(0,d.registerServerReference)(s,"7f9a2b254168fd5502160348c9e187bc9a1f582de4",null),(0,d.registerServerReference)(t,"7f77eeed8de53bdd8bc4cea5fa47d4df68a64ffef9",null),a.s(["addFactsAction",0,q,"createNoteAction",0,n,"deleteNoteAction",0,p,"forgetFactAction",0,s,"reviseFactAction",0,r,"setFactAlwaysLoadAction",0,t,"updateNoteAction",0,o]),c()}catch(a){c(a)}},!1),432443,a=>{"use strict";var b,c,d,e=a.i(137936),f=(0,a.i(362562).createRequire)("/");try{c=(b=f("worker_threads")).Worker,d=b.isMarkedAsUntransferable}catch(a){}var g=c?function(a,b,e,f,g){var h=!1,i=new c(a+";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global",{eval:!0}).on("error",function(a){return g(a,null)}).on("message",function(a){return g(null,a)}).on("exit",function(a){a&&!h&&g(Error("exited with code "+a),null)});return d&&(f=f.filter(function(a){return!d(a)})),i.postMessage(e,f),i.terminate=function(){return h=!0,c.prototype.terminate.call(i)},i}:function(a,b,c,d,e){setImmediate(function(){return e(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var f=function(){};return{terminate:f,postMessage:f}},h=Uint8Array,i=Uint16Array,j=Int32Array,k=new h([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new h([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),m=new h([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),n=function(a,b){for(var c=new i(31),d=0;d<31;++d)c[d]=b+=1<<a[d-1];for(var e=new j(c[30]),d=1;d<30;++d)for(var f=c[d];f<c[d+1];++f)e[f]=f-c[d]<<5|d;return{b:c,r:e}},b=n(k,2),o=b.b,p=b.r;o[28]=258,p[258]=28;for(var q=n(l,0),r=q.b,s=q.r,t=new i(32768),u=0;u<32768;++u){var v=(43690&u)>>1|(21845&u)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,t[u]=((65280&v)>>8|(255&v)<<8)>>1}for(var w=function(a,b,c){for(var d,e=a.length,f=0,g=new i(b);f<e;++f)a[f]&&++g[a[f]-1];var h=new i(b);for(f=1;f<b;++f)h[f]=h[f-1]+g[f-1]<<1;if(c){d=new i(1<<b);var j=15-b;for(f=0;f<e;++f)if(a[f])for(var k=f<<4|a[f],l=b-a[f],m=h[a[f]-1]++<<l,n=m|(1<<l)-1;m<=n;++m)d[t[m]>>j]=k}else for(d=new i(e),f=0;f<e;++f)a[f]&&(d[f]=t[h[a[f]-1]++]>>15-a[f]);return d},x=new h(288),u=0;u<144;++u)x[u]=8;for(var u=144;u<256;++u)x[u]=9;for(var u=256;u<280;++u)x[u]=7;for(var u=280;u<288;++u)x[u]=8;for(var y=new h(32),u=0;u<32;++u)y[u]=5;var z=w(x,9,0),A=w(x,9,1),B=w(y,5,0),C=w(y,5,1),D=function(a){for(var b=a[0],c=1;c<a.length;++c)a[c]>b&&(b=a[c]);return b},E=function(a,b,c){var d=b/8|0;return(a[d]|a[d+1]<<8)>>(7&b)&c},F=function(a,b){var c=b/8|0;return(a[c]|a[c+1]<<8|a[c+2]<<16)>>(7&b)},G=function(a){return(a+7)/8|0},H=function(a,b,c){return(null==b||b<0)&&(b=0),(null==c||c>a.length)&&(c=a.length),new h(a.subarray(b,c))},I=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],J=function(a,b,c){var d=Error(b||I[a]);if(d.code=a,Error.captureStackTrace&&Error.captureStackTrace(d,J),!c)throw d;return d},K=function(a,b,c,d){var e=a.length,f=d?d.length:0;if(!e||b.f&&!b.l)return c||new h(0);var g=!c,i=g||2!=b.i,j=b.i;g&&(c=new h(3*e));var n=function(a){var b=c.length;if(a>b){var d=new h(Math.max(2*b,a));d.set(c),c=d}},p=b.f||0,q=b.p||0,s=b.b||0,t=b.l,u=b.d,v=b.m,x=b.n,y=8*e;do{if(!t){p=E(a,q,1);var z=E(a,q+1,3);if(q+=3,z)if(1==z)t=A,u=C,v=9,x=5;else if(2==z){var B=E(a,q,31)+257,I=E(a,q+10,15)+4,K=B+E(a,q+5,31)+1;q+=14;for(var L=new h(K),M=new h(19),N=0;N<I;++N)M[m[N]]=E(a,q+3*N,7);q+=3*I;for(var O=D(M),P=(1<<O)-1,Q=w(M,O,1),N=0;N<K;){var R=Q[E(a,q,P)];q+=15&R;var S=R>>4;if(S<16)L[N++]=S;else{var T=0,U=0;for(16==S?(U=3+E(a,q,3),q+=2,T=L[N-1]):17==S?(U=3+E(a,q,7),q+=3):18==S&&(U=11+E(a,q,127),q+=7);U--;)L[N++]=T}}var V=L.subarray(0,B),W=L.subarray(B);v=D(V),x=D(W),t=w(V,v,1),u=w(W,x,1)}else J(1);else{var S=G(q)+4,X=a[S-4]|a[S-3]<<8,Y=S+X;if(Y>e){j&&J(0);break}i&&n(s+X),c.set(a.subarray(S,Y),s),b.b=s+=X,b.p=q=8*Y,b.f=p;continue}if(q>y){j&&J(0);break}}i&&n(s+131072);for(var Z=(1<<v)-1,$=(1<<x)-1,_=q;;_=q){var T=t[F(a,q)&Z],aa=T>>4;if((q+=15&T)>y){j&&J(0);break}if(T||J(2),aa<256)c[s++]=aa;else if(256==aa){_=q,t=null;break}else{var ab=aa-254;if(aa>264){var N=aa-257,ac=k[N];ab=E(a,q,(1<<ac)-1)+o[N],q+=ac}var ad=u[F(a,q)&$],ae=ad>>4;ad||J(3),q+=15&ad;var W=r[ae];if(ae>3){var ac=l[ae];W+=F(a,q)&(1<<ac)-1,q+=ac}if(q>y){j&&J(0);break}i&&n(s+131072);var af=s+ab;if(s<W){var ag=f-W,ah=Math.min(W,af);for(ag+s<0&&J(3);s<ah;++s)c[s]=d[ag+s]}for(;s<af;++s)c[s]=c[s-W]}}b.l=t,b.p=_,b.b=s,b.f=p,t&&(p=1,b.m=v,b.d=u,b.n=x)}while(!p)return s!=c.length&&g?H(c,0,s):c.subarray(0,s)},L=function(a,b,c){c<<=7&b;var d=b/8|0;a[d]|=c,a[d+1]|=c>>8},M=function(a,b,c){c<<=7&b;var d=b/8|0;a[d]|=c,a[d+1]|=c>>8,a[d+2]|=c>>16},N=function(a,b){for(var c=[],d=0;d<a.length;++d)a[d]&&c.push({s:d,f:a[d]});var e=c.length,f=c.slice();if(!e)return{t:U,l:0};if(1==e){var g=new h(c[0].s+1);return g[c[0].s]=1,{t:g,l:1}}c.sort(function(a,b){return a.f-b.f}),c.push({s:-1,f:25001});var j=c[0],k=c[1],l=0,m=1,n=2;for(c[0]={s:-1,f:j.f+k.f,l:j,r:k};m!=e-1;)j=c[c[l].f<c[n].f?l++:n++],k=c[l!=m&&c[l].f<c[n].f?l++:n++],c[m++]={s:-1,f:j.f+k.f,l:j,r:k};for(var o=f[0].s,d=1;d<e;++d)f[d].s>o&&(o=f[d].s);var p=new i(o+1),q=O(c[m-1],p,0);if(q>b){var d=0,r=0,s=q-b,t=1<<s;for(f.sort(function(a,b){return p[b.s]-p[a.s]||a.f-b.f});d<e;++d){var u=f[d].s;if(p[u]>b)r+=t-(1<<q-p[u]),p[u]=b;else break}for(r>>=s;r>0;){var v=f[d].s;p[v]<b?r-=1<<b-p[v]++-1:++d}for(;d>=0&&r;--d){var w=f[d].s;p[w]==b&&(--p[w],++r)}q=b}return{t:new h(p),l:q}},O=function(a,b,c){return -1==a.s?Math.max(O(a.l,b,c+1),O(a.r,b,c+1)):b[a.s]=c},P=function(a){for(var b=a.length;b&&!a[--b];);for(var c=new i(++b),d=0,e=a[0],f=1,g=function(a){c[d++]=a},h=1;h<=b;++h)if(a[h]==e&&h!=b)++f;else{if(!e&&f>2){for(;f>138;f-=138)g(32754);f>2&&(g(f>10?f-11<<5|28690:f-3<<5|12305),f=0)}else if(f>3){for(g(e),--f;f>6;f-=6)g(8304);f>2&&(g(f-3<<5|8208),f=0)}for(;f--;)g(e);f=1,e=a[h]}return{c:c.subarray(0,d),n:b}},Q=function(a,b){for(var c=0,d=0;d<b.length;++d)c+=a[d]*b[d];return c},R=function(a,b,c){var d=c.length,e=G(b+2);a[e]=255&d,a[e+1]=d>>8,a[e+2]=255^a[e],a[e+3]=255^a[e+1];for(var f=0;f<d;++f)a[e+f+4]=c[f];return(e+4+d)*8},S=function(a,b,c,d,e,f,g,h,j,n,o){L(b,o++,c),++e[256];for(var p,q,r,s,t=N(e,15),u=t.t,v=t.l,A=N(f,15),C=A.t,D=A.l,E=P(u),F=E.c,G=E.n,H=P(C),I=H.c,J=H.n,K=new i(19),O=0;O<F.length;++O)++K[31&F[O]];for(var O=0;O<I.length;++O)++K[31&I[O]];for(var S=N(K,7),T=S.t,U=S.l,V=19;V>4&&!T[m[V-1]];--V);var W=n+5<<3,X=Q(e,x)+Q(f,y)+g,Y=Q(e,u)+Q(f,C)+g+14+3*V+Q(K,T)+2*K[16]+3*K[17]+7*K[18];if(j>=0&&W<=X&&W<=Y)return R(b,o,a.subarray(j,j+n));if(L(b,o,1+(Y<X)),o+=2,Y<X){p=w(u,v,0),q=u,r=w(C,D,0),s=C;var Z=w(T,U,0);L(b,o,G-257),L(b,o+5,J-1),L(b,o+10,V-4),o+=14;for(var O=0;O<V;++O)L(b,o+3*O,T[m[O]]);o+=3*V;for(var $=[F,I],_=0;_<2;++_)for(var aa=$[_],O=0;O<aa.length;++O){var ab=31&aa[O];L(b,o,Z[ab]),o+=T[ab],ab>15&&(L(b,o,aa[O]>>5&127),o+=aa[O]>>12)}}else p=z,q=x,r=B,s=y;for(var O=0;O<h;++O){var ac=d[O];if(ac>255){var ab=ac>>18&31;M(b,o,p[ab+257]),o+=q[ab+257],ab>7&&(L(b,o,ac>>23&31),o+=k[ab]);var ad=31∾M(b,o,r[ad]),o+=s[ad],ad>3&&(M(b,o,ac>>5&8191),o+=l[ad])}else M(b,o,p[ac]),o+=q[ac]}return M(b,o,p[256]),o+q[256]},T=new j([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),U=new h(0),V=function(a,b,c,d,e,f){var g=f.z||a.length,m=new h(d+g+5*(1+Math.ceil(g/7e3))+e),n=m.subarray(d,m.length-e),o=f.l,q=7&(f.r||0);if(b){q&&(n[0]=f.r>>3);for(var r=T[b-1],t=r>>13,u=8191&r,v=(1<<c)-1,w=f.p||new i(32768),x=f.h||new i(v+1),y=Math.ceil(c/3),z=2*y,A=function(b){return(a[b]^a[b+1]<<y^a[b+2]<<z)&v},B=new j(25e3),C=new i(288),D=new i(32),E=0,F=0,I=f.i||0,J=0,K=f.w||0,L=0;I+2<g;++I){var M=A(I),N=32767&I,O=x[M];if(w[N]=O,x[M]=N,K<=I){var P=g-I;if((E>7e3||J>24576)&&(P>423||!o)){q=S(a,n,0,B,C,D,F,J,L,I-L,q),J=E=F=0,L=I;for(var Q=0;Q<286;++Q)C[Q]=0;for(var Q=0;Q<30;++Q)D[Q]=0}var U=2,V=0,W=u,X=N-O&32767;if(P>2&&M==A(I-X))for(var Y=Math.min(t,P)-1,Z=Math.min(32767,I),$=Math.min(258,P);X<=Z&&--W&&N!=O;){if(a[I+U]==a[I+U-X]){for(var _=0;_<$&&a[I+_]==a[I+_-X];++_);if(_>U){if(U=_,V=X,_>Y)break;for(var aa=Math.min(X,_-2),ab=0,Q=0;Q<aa;++Q){var ac=I-X+Q&32767,ad=w[ac],ae=ac-ad&32767;ae>ab&&(ab=ae,O=ac)}}}O=w[N=O],X+=N-O&32767}if(V){B[J++]=0x10000000|p[U]<<18|s[V];var af=31&p[U],ag=31&s[V];F+=k[af]+l[ag],++C[257+af],++D[ag],K=I+U,++E}else B[J++]=a[I],++C[a[I]]}}for(I=Math.max(I,K);I<g;++I)B[J++]=a[I],++C[a[I]];q=S(a,n,o,B,C,D,F,J,L,I-L,q),o||(f.r=7&q|n[q/8|0]<<3,q-=7,f.h=x,f.p=w,f.i=I,f.w=K)}else{for(var I=f.w||0;I<g+o;I+=65535){var ah=I+65535;ah>=g&&(n[q/8|0]=o,ah=g),q=R(n,q+1,a.subarray(I,ah))}f.i=g}return H(m,0,d+G(q)+e)},W=function(){for(var a=new Int32Array(256),b=0;b<256;++b){for(var c=b,d=9;--d;)c=(1&c&&-0x12477ce0)^c>>>1;a[b]=c}return a}(),X=function(){var a=-1;return{p:function(b){for(var c=a,d=0;d<b.length;++d)c=W[255&c^b[d]]^c>>>8;a=c},d:function(){return~a}}},Y=function(){var a=1,b=0;return{p:function(c){for(var d=a,e=b,f=0|c.length,g=0;g!=f;){for(var h=Math.min(g+2655,f);g<h;++g)e+=d+=c[g];d=(65535&d)+15*(d>>16),e=(65535&e)+15*(e>>16)}a=d,b=e},d:function(){return a%=65521,b%=65521,(255&a)<<24|(65280&a)<<8|(255&b)<<8|b>>8}}},Z=function(a,b,c,d,e){if(!e&&(e={l:1},b.dictionary)){var f=b.dictionary.subarray(-32768),g=new h(f.length+a.length);g.set(f),g.set(a,f.length),a=g,e.w=f.length}return V(a,null==b.level?6:b.level,null==b.mem?e.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):20:12+b.mem,c,d,e)},$=function(a,b){var c={};for(var d in a)c[d]=a[d];for(var d in b)c[d]=b[d];return c},_=function(a,b,c){for(var d=a(),e=a.toString(),f=e.slice(e.indexOf("[")+1,e.lastIndexOf("]")).replace(/\s+/g,"").split(","),g=0;g<d.length;++g){var h=d[g],i=f[g];if("function"==typeof h){b+=";"+i+"=";var j=h.toString();if(h.prototype)if(-1!=j.indexOf("[native code]")){var k=j.indexOf(" ",8)+1;b+=j.slice(k,j.indexOf("(",k))}else for(var l in b+=j,h.prototype)b+=";"+i+".prototype."+l+"="+h.prototype[l].toString();else b+=j}else c[i]=h}return b},aa=[],ab=function(a){var b=[];for(var c in a)a[c].buffer&&b.push((a[c]=new a[c].constructor(a[c])).buffer);return b},ac=function(a,b,c,d){if(!aa[c]){for(var e="",f={},h=a.length-1,i=0;i<h;++i)e=_(a[i],e,f);aa[c]={c:_(a[h],e,f),e:f}}var j=$({},aa[c].e);return g(aa[c].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+b.toString()+"}",c,j,ab(j),d)},ad=function(){return[h,i,j,k,l,m,o,r,A,C,t,I,w,D,E,F,G,H,J,K,aB,ah,ai]},ae=function(){return[h,i,j,k,l,m,p,s,z,x,B,y,t,T,U,w,L,M,N,O,P,Q,R,S,G,H,V,Z,ay,ah]},af=function(){return[aq,ar]},ag=function(){return[au]},ah=function(a){return postMessage(a,[a.buffer])},ai=function(a){return a&&{out:a.size&&new h(a.size),dictionary:a.dictionary}},aj=function(a){return a.ondata=function(a,b){return postMessage([a,b],[a.buffer])},function(b){b.data[0]?(a.push(b.data[0],b.data[1]),postMessage([b.data[0].length])):a.flush(b.data[1])}},ak=function(a,b,c,d,e,f,g){var h,i=ac(a,d,e,function(a,c){a?(i.terminate(),b.ondata.call(b,a)):Array.isArray(c)?1==c.length?(b.queuedSize-=c[0],b.ondrain&&b.ondrain(c[0])):(c[1]&&i.terminate(),b.ondata.call(b,a,c[0],c[1])):g(c)});i.postMessage(c),b.queuedSize=0,b.push=function(a,c){b.ondata||J(5),h&&b.ondata(J(4,0,1),null,!!c),b.queuedSize+=a.length,i.postMessage([a,h=c],a.buffer instanceof ArrayBuffer?[a.buffer]:[])},b.terminate=function(){i.terminate()},f&&(b.flush=function(a){i.postMessage([0,a])})},al=function(a,b){return a[b]|a[b+1]<<8},am=function(a,b){return(a[b]|a[b+1]<<8|a[b+2]<<16|a[b+3]<<24)>>>0},an=function(a,b){return am(a,b)+0x100000000*am(a,b+4)},ao=function(a,b,c){for(;c;++b)a[b]=c,c>>>=8},ap=function(a,b){var c=b.filename;if(a[0]=31,a[1]=139,a[2]=8,a[8]=b.level<2?4:2*(9==b.level),a[9]=3,0!=b.mtime&&ao(a,4,Math.floor(new Date(b.mtime||Date.now())/1e3)),c){a[3]=8;for(var d=0;d<=c.length;++d)a[d+10]=c.charCodeAt(d)}},aq=function(a){(31!=a[0]||139!=a[1]||8!=a[2])&&J(6,"invalid gzip data");var b=a[3],c=10;4&b&&(c+=(a[10]|a[11]<<8)+2);for(var d=(b>>3&1)+(b>>4&1);d>0;d-=!a[c++]);return c+(2&b)},ar=function(a){var b=a.length;return(a[b-4]|a[b-3]<<8|a[b-2]<<16|a[b-1]<<24)>>>0},as=function(a){return 10+(a.filename?a.filename.length+1:0)},at=function(a,b){var c=b.level;if(a[0]=120,a[1]=(0==c?0:c<6?1:9==c?3:2)<<6|(b.dictionary&&32),a[1]|=31-(a[0]<<8|a[1])%31,b.dictionary){var d=Y();d.p(b.dictionary),ao(a,2,d.d())}},au=function(a,b){return((15&a[0])!=8||a[0]>>4>7||(a[0]<<8|a[1])%31)&&J(6,"invalid zlib data"),(a[1]>>5&1)==+!b&&J(6,"invalid zlib data: "+(32&a[1]?"need":"unexpected")+" dictionary"),(a[1]>>3&4)+2};function av(a,b){return"function"==typeof a&&(b=a,a={}),this.ondata=b,a}var aw=function(){function a(a,b){if("function"==typeof a&&(b=a,a={}),this.ondata=b,this.o=a||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new h(98304),this.o.dictionary){var c=this.o.dictionary.subarray(-32768);this.b.set(c,32768-c.length),this.s.i=32768-c.length}}return a.prototype.p=function(a,b){this.ondata(Z(a,this.o,0,0,this.s),b)},a.prototype.push=function(a,b){this.ondata||J(5),this.s.l&&J(4);var c=a.length+this.s.z;if(c>this.b.length){if(c>2*this.b.length-32768){var d=new h(-32768&c);d.set(this.b.subarray(0,this.s.z)),this.b=d}var e=this.b.length-this.s.z;this.b.set(a.subarray(0,e),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(a.subarray(e),32768),this.s.z=a.length-e+32768,this.s.i=32766,this.s.w=32768}else this.b.set(a,this.s.z),this.s.z+=a.length;this.s.l=1&b,(this.s.z>this.s.w+8191||b)&&(this.p(this.b,b||!1),this.s.w=this.s.i,this.s.i-=2),b&&(this.s=this.o={},this.b=U)},a.prototype.flush=function(a){if(this.ondata||J(5),this.s.l&&J(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,a){var b=new h(6);b[0]=this.s.r>>3;var c=R(b,this.s.r,U);this.s.r=0,this.ondata(b.subarray(0,c>>3),!1)}},a}(),ax=function(a,b){ak([ae,function(){return[aj,aw]}],this,av.call(this,a,b),function(a){onmessage=aj(new aw(a.data))},6,1)};function ay(a,b){return Z(a,b||{},0,0)}var az=function(){function a(a,b){"function"==typeof a&&(b=a,a={}),this.ondata=b;var c=a&&a.dictionary&&a.dictionary.subarray(-32768);this.s={i:0,b:c?c.length:0},this.o=new h(32768),this.p=new h(0),c&&this.o.set(c)}return a.prototype.e=function(a){if(this.ondata||J(5),this.d&&J(4),this.p.length){if(a.length){var b=new h(this.p.length+a.length);b.set(this.p),b.set(a,this.p.length),this.p=b}}else this.p=a},a.prototype.c=function(a){this.s.i=+(this.d=a||!1);var b=this.s.b,c=K(this.p,this.s,this.o);this.ondata(H(c,b,this.s.b),this.d),this.o=H(c,this.s.b-32768),this.s.b=this.o.length,this.p=H(this.p,this.s.p/8|0),this.s.p&=7},a.prototype.push=function(a,b){this.e(a),this.c(b)},a}(),aA=function(a,b){ak([ad,function(){return[aj,az]}],this,av.call(this,a,b),function(a){onmessage=aj(new az(a.data))},7,0)};function aB(a,b){return K(a,{i:2},b&&b.out,b&&b.dictionary)}(function(){function a(a,b){this.c=X(),this.l=0,this.v=1,aw.call(this,a,b)}a.prototype.push=function(a,b){this.c.p(a),this.l+=a.length,aw.prototype.push.call(this,a,b)},a.prototype.p=function(a,b){var c=Z(a,this.o,this.v&&as(this.o),b&&8,this.s);this.v&&(ap(c,this.o),this.v=0),b&&(ao(c,c.length-8,this.c.d()),ao(c,c.length-4,this.l)),this.ondata(c,b)},a.prototype.flush=function(a){aw.prototype.flush.call(this,a)}})();var aC=function(){function a(a,b){this.v=1,this.r=0,az.call(this,a,b)}return a.prototype.push=function(a,b){if(az.prototype.e.call(this,a),this.r+=a.length,this.v){var c=this.p.subarray(this.v-1),d=c.length>3?aq(c):4;if(d>c.length){if(!b)return}else this.v>1&&this.onmember&&this.onmember(this.r-c.length);this.p=c.subarray(d),this.v=0}az.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=G(this.s.p)+9,this.s={i:0},this.o=new h(0),this.push(new h(0),b)):b&&az.prototype.c.call(this,b)},a}(),aD=function(a,b){var c=this;ak([ad,af,function(){return[aj,az,aC]}],this,av.call(this,a,b),function(a){var b=new aC(a.data);b.onmember=function(a){return postMessage(a)},onmessage=aj(b)},9,0,function(a){return c.onmember&&c.onmember(a)})},aE=(function(){function a(a,b){this.c=Y(),this.v=1,aw.call(this,a,b)}a.prototype.push=function(a,b){this.c.p(a),aw.prototype.push.call(this,a,b)},a.prototype.p=function(a,b){var c=Z(a,this.o,this.v&&(this.o.dictionary?6:2),b&&4,this.s);this.v&&(at(c,this.o),this.v=0),b&&ao(c,c.length-4,this.c.d()),this.ondata(c,b)},a.prototype.flush=function(a){aw.prototype.flush.call(this,a)}}(),function(){function a(a,b){az.call(this,a,b),this.v=a&&a.dictionary?2:1}return a.prototype.push=function(a,b){if(az.prototype.e.call(this,a),this.v){if(this.p.length<6&&!b)return;this.p=this.p.subarray(au(this.p,this.v-1)),this.v=0}b&&(this.p.length<4&&J(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),az.prototype.c.call(this,b)},a}()),aF=function(a,b){ak([ad,ag,function(){return[aj,az,aE]}],this,av.call(this,a,b),function(a){onmessage=aj(new aE(a.data))},11,0)},aG=function(){function a(a,b){this.o=av.call(this,a,b)||{},this.G=aC,this.I=az,this.Z=aE}return a.prototype.i=function(){var a=this;this.s.ondata=function(b,c){a.ondata(b,c)}},a.prototype.push=function(a,b){if(this.ondata||J(5),this.s)this.s.push(a,b);else{if(this.p&&this.p.length){var c=new h(this.p.length+a.length);c.set(this.p),c.set(a,this.p.length)}else this.p=a;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,b),this.p=null)}},a}();function aH(a,b){aG.call(this,a,b),this.queuedSize=0,this.G=aD,this.I=aA,this.Z=aF}aH.prototype.i=function(){var a=this;this.s.ondata=function(b,c,d){a.ondata(b,c,d)},this.s.ondrain=function(b){a.queuedSize-=b,a.ondrain&&a.ondrain(b)}},aH.prototype.push=function(a,b){this.queuedSize+=a.length,aG.prototype.push.call(this,a,b)};var aI="u">typeof TextEncoder&&new TextEncoder,aJ="u">typeof TextDecoder&&new TextDecoder,aK=0;try{aJ.decode(U,{stream:!0}),aK=1}catch(a){}var aL=function(a){for(var b="",c=0;;){var d=a[c++],e=(d>127)+(d>223)+(d>239);if(c+e>a.length)return{s:b,r:H(a,c-1)};e?3==e?b+=String.fromCharCode(55296|(d=((15&d)<<18|(63&a[c++])<<12|(63&a[c++])<<6|63&a[c++])-65536)>>10,56320|1023&d):1&e?b+=String.fromCharCode((31&d)<<6|63&a[c++]):b+=String.fromCharCode((15&d)<<12|(63&a[c++])<<6|63&a[c++]):b+=String.fromCharCode(d)}};function aM(a,b){if(b){for(var c=new h(a.length),d=0;d<a.length;++d)c[d]=a.charCodeAt(d);return c}if(aI)return aI.encode(a);for(var e=a.length,f=new h(a.length+(a.length>>1)),g=0,i=function(a){f[g++]=a},d=0;d<e;++d){if(g+5>f.length){var j=new h(g+8+(e-d<<1));j.set(f),f=j}var k=a.charCodeAt(d);k<128||b?i(k):(k<2048?i(192|k>>6):(k>55295&&k<57344?(i(240|(k=65536+(1047552&k)|1023&a.charCodeAt(++d))>>18),i(128|k>>12&63)):i(224|k>>12),i(128|k>>6&63)),i(128|63&k))}return H(f,0,g)}function aN(a,b){if(b){for(var c="",d=0;d<a.length;d+=16384)c+=String.fromCharCode.apply(null,a.subarray(d,d+16384));return c}if(aJ)return aJ.decode(a);var e=aL(a),f=e.s,c=e.r;return c.length&&J(8),f}(function(a){this.ondata=a,aK?this.t=new TextDecoder:this.p=U}).prototype.push=function(a,b){if(this.ondata||J(5),b=!!b,this.t){this.ondata(this.t.decode(a,{stream:!0}),b),b&&(this.t.decode().length&&J(8),this.t=null);return}this.p||J(4);var c=new h(this.p.length+a.length);c.set(this.p),c.set(a,this.p.length);var d=aL(c),e=d.s,f=d.r;b?(f.length&&J(8),this.p=null):this.p=f,this.ondata(e,b)},(function(a){this.ondata=a}).prototype.push=function(a,b){this.ondata||J(5),this.d&&J(4),this.ondata(aM(a),this.d=b||!1)};var aO=function(a){return 1==a?3:a<6?2:+(9==a)},aP=function(a,b,c){var d=al(a,b+28),e=al(a,b+30),f=aN(a.subarray(b+46,b+46+d),!(2048&al(a,b+8))),g=b+46+d,h=aQ(a,g,e,c,am(a,b+20),am(a,b+24),am(a,b+42)),i=h[0],j=h[1],k=h[2];return[al(a,b+10),i,j,f,g+e+al(a,b+32),k]},aQ=function(a,b,c,d,e,f,g){var h=0xffffffff==e,i=0xffffffff==f,j=0xffffffff==g,k=b+c;if(d&&h+i+j){for(;b+4<k;b+=4+al(a,b+2))if(1==al(a,b))return[h?an(a,b+4+8*i):e,i?an(a,b+4):f,j?an(a,b+4+8*(i+h)):g,1];d<2&&J(13)}return[e,f,g,0]},aR=function(a){var b=0;if(a)for(var c in a){var d=a[c].length;d>65535&&J(9),b+=d+4}return b},aS=function(a,b,c,d,e,f,g,h){var i=d.length,j=c.extra,k=h&&h.length,l=aR(j);ao(a,b,null!=g?0x2014b50:0x4034b50),b+=4,null!=g&&(a[b++]=20,a[b++]=c.os),a[b]=20,b+=2,a[b++]=c.flag<<1|(f<0&&8),a[b++]=e&&8,a[b++]=255&c.compression,a[b++]=c.compression>>8;var m=new Date(null==c.mtime?Date.now():c.mtime),n=m.getFullYear()-1980;if((n<0||n>119)&&J(10),ao(a,b,n<<25|m.getMonth()+1<<21|m.getDate()<<16|m.getHours()<<11|m.getMinutes()<<5|m.getSeconds()>>1),b+=4,-1!=f&&(ao(a,b,c.crc),ao(a,b+4,f<0?-f-2:f),ao(a,b+8,c.size)),ao(a,b+12,i),ao(a,b+14,l),b+=16,null!=g&&(ao(a,b,k),ao(a,b+6,c.attrs),ao(a,b+10,g),b+=14),a.set(d,b),b+=i,l)for(var o in j){var p=j[o],q=p.length;ao(a,b,+o),ao(a,b+2,q),a.set(p,b+4),b+=4+q}return k&&(a.set(h,b),b+=k),b},aT=function(a,b,c,d,e){ao(a,b,0x6054b50),ao(a,b+8,c),ao(a,b+10,c),ao(a,b+12,d),ao(a,b+16,e)},aU=function(){function a(a){this.filename=a,this.c=X(),this.size=0,this.compression=0}return a.prototype.process=function(a,b){this.ondata(null,a,b)},a.prototype.push=function(a,b){this.ondata||J(5),this.c.p(a),this.size+=a.length,b&&(this.crc=this.c.d()),this.process(a,b||!1)},a}();function aV(a,b){var c=this;b||(b={}),aU.call(this,a),this.d=new aw(b,function(a,b){c.ondata(null,a,b)}),this.compression=8,this.flag=aO(b.level)}function aW(a,b){var c=this;b||(b={}),aU.call(this,a),this.d=new ax(b,function(a,b,d){c.ondata(a,b,d)}),this.compression=8,this.flag=aO(b.level),this.terminate=this.d.terminate}function aX(a){this.ondata=a,this.u=[],this.d=1}aV.prototype.process=function(a,b){try{this.d.push(a,b)}catch(a){this.ondata(a,null,b)}},aV.prototype.push=function(a,b){aU.prototype.push.call(this,a,b)},aW.prototype.process=function(a,b){this.d.push(a,b)},aW.prototype.push=function(a,b){aU.prototype.push.call(this,a,b)},aX.prototype.add=function(a){var b=this;if(this.ondata||J(5),2&this.d)this.ondata(J(4+(1&this.d)*8,0,1),null,!1);else{var c=aM(a.filename),d=c.length,e=a.comment,f=e&&aM(e),g=d!=a.filename.length||f&&e.length!=f.length,i=d+aR(a.extra)+30;d>65535&&this.ondata(J(11,0,1),null,!1);var j=new h(i);aS(j,0,a,c,g,-1);var k=[j],l=function(){for(var a=0,c=k;a<c.length;a++){var d=c[a];b.ondata(null,d,!1)}k=[]},m=this.d;this.d=0;var n=this.u.length,o=$(a,{f:c,u:g,o:f,t:function(){a.terminate&&a.terminate()},r:function(){if(l(),m){var a=b.u[n+1];a?a.r():b.d=1}m=1}}),p=0;a.ondata=function(c,d,e){if(c)b.ondata(c,d,e),b.terminate();else if(p+=d.length,k.push(d),e){var f=new h(16);ao(f,0,0x8074b50),ao(f,4,a.crc),ao(f,8,p),ao(f,12,a.size),k.push(f),o.c=p,o.b=i+p+16,o.crc=a.crc,o.size=a.size,m&&o.r(),m=1}else m&&l()},this.u.push(o)}},aX.prototype.end=function(){var a=this;2&this.d?this.ondata(J(4+(1&this.d)*8,0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&a.d&&(a.u.splice(-1,1),a.e())},t:function(){}}),this.d=3)},aX.prototype.e=function(){for(var a=0,b=0,c=0,d=0,e=this.u;d<e.length;d++){var f=e[d];c+=46+f.f.length+aR(f.extra)+(f.o?f.o.length:0)}for(var g=new h(c+22),i=0,j=this.u;i<j.length;i++){var f=j[i];aS(g,a,f,f.f,f.u,-f.c-2,b,f.o),a+=46+f.f.length+aR(f.extra)+(f.o?f.o.length:0),b+=f.b}aT(g,a,this.u.length,c,b),this.ondata(null,g,!0),this.d=2},aX.prototype.terminate=function(){for(var a=0,b=this.u;a<b.length;a++)b[a].t();this.d=2};var aY=function(){function a(){}return a.prototype.push=function(a,b){this.ondata(null,a,b)},a.compression=0,a}();function aZ(){var a=this;this.i=new az(function(b,c){a.ondata(null,b,c)})}function a$(a,b){var c=this;b<32e4?this.i=new az(function(a,b){c.ondata(null,a,b)}):(this.i=new aA(function(a,b,d){c.ondata(a,b,d)}),this.terminate=this.i.terminate)}function a_(a){this.onfile=a,this.k=[],this.o={0:aY},this.p=U}aZ.prototype.push=function(a,b){try{this.i.push(a,b)}catch(a){this.ondata(a,null,b)}},aZ.compression=8,a$.prototype.push=function(a,b){this.i.terminate&&(a=H(a,0)),this.i.push(a,b)},a$.compression=8,a_.prototype.push=function(a,b){var c=this;if(this.onfile||J(5),this.p||J(4),this.c>0){var d=Math.min(this.c,a.length),e=a.subarray(0,d);if(this.c-=d,this.d?this.d.push(e,!this.c):this.k[0].push(e),(a=a.subarray(d)).length)return this.push(a,b)}else{var f=0,g=0,i=void 0,j=void 0;this.p.length?a.length?((j=new h(this.p.length+a.length)).set(this.p),j.set(a,this.p.length)):j=this.p:j=a;for(var k=j.length,l=this.c,m=l&&this.d,n=this;g<k-4&&"break"!==function(){var a=am(j,g);if(0x4034b50==a){f=1,i=g,n.d=null,n.c=0;var b=al(j,g+6),d=al(j,g+8),e=al(j,g+26),h=al(j,g+28);if(k>g+30+e+h){var m,o=[];n.k.unshift(o),f=2;var p=am(j,g+18),q=am(j,g+22),r=aN(j.subarray(g+30,g+=30+e),!(2048&b)),s=aQ(j,g,h,2,p,q,0),t=s[0],u=s[1],v=s[3];8&b&&(t=-1-v),g+=h,n.c=t;var w={name:r,compression:d,start:function(){if(w.ondata||J(5),t){var a=c.o[d];a||w.ondata(J(14,"unknown compression type "+d,1),null,!1),(m=t<0?new a(r):new a(r,t,u)).ondata=function(a,b,c){w.ondata(a,b,c)};for(var b=0;b<o.length;b++){var e=o[b];m.push(e,!1)}c.k[0]==o&&c.c?c.d=m:m.push(U,!0)}else w.ondata(null,U,!0)},terminate:function(){m&&m.terminate&&m.terminate()}};t>=0&&(w.size=t,w.originalSize=u),n.onfile(w)}return"break"}if(l){if(0x8074b50==a)return i=g+=12+(-2==l&&8),f=3,n.c=0,"break";else if(0x2014b50==a)return i=g-=4,f=3,n.c=0,"break"}}();++g);if(this.p=U,l<0){var o=f?j.subarray(0,i-12-(-2==l&&8)-(0x8074b50==am(j,i-16)&&4)):j.subarray(0,g);m?m.push(o,!!f):this.k[+(2==f)].push(o)}if(2&f)return this.push(j.subarray(g),b);this.p=j.subarray(g)}b&&(this.c&&J(13),this.p=null)},a_.prototype.register=function(a){this.o[a.compression]=a},"function"==typeof queueMicrotask&&queueMicrotask;var a0=a.i(53112),a1=a.i(762805),a2=a.i(951941),a3=a.i(225689),a4=a.i(293480),a5=a.i(713095);let a6=(0,a3.serverAction)(async a=>{let{name:b,description:c,content:d}=a2.SkillDraftSchema.parse(a);return await (0,a1.writeCustomSkill)(b,new Map([["SKILL.md",(0,a1.renderSkillMarkdown)({name:b,description:c},d)]]))}),a7=(0,a3.serverAction)(async a=>{let{fileName:b,base64:c}=a2.SkillUploadSchema.parse(a),d=Buffer.from(c,"base64");d.byteLength>0x1400000&&(0,a4.publicError)("File is larger than 20 MB");let e=b.toLowerCase(),f=new Map;if(e.endsWith(".md"))f.set("SKILL.md",d);else if(e.endsWith(".zip")||e.endsWith(".skill")){let a;try{a=function(a){for(var b={},c=a.length-22;0x6054b50!=am(a,c);--c)(!c||a.length-c>65558)&&J(13);var d=al(a,c+8);if(!d)return{};var e=am(a,c+16),f=0x7064b50==am(a,c-20);if(f){var g=am(a,c-12);(f=0x6064b50==am(a,g))&&(d=am(a,g+32),e=am(a,g+48))}for(var i=void 0,j=0;j<d;++j){var k=aP(a,e,f),l=k[0],m=k[1],n=k[2],o=k[3],p=k[4],q=k[5],r=q+30+al(a,q+26)+al(a,q+28);e=p,(!i||i({name:o,size:m,originalSize:n,compression:l}))&&(l?8==l?b[o]=aB(a.subarray(r,r+m),{out:new h(n)}):J(14,"unknown compression type "+l):b[o]=H(a,r,r+m))}return b}(new Uint8Array(d))}catch{(0,a4.publicError)("The archive could not be opened")}let b=Object.keys(a).filter(a=>!a.startsWith("__MACOSX/")).filter(a=>"SKILL.md"===a.split("/").pop()).sort((a,b)=>a.split("/").length-b.split("/").length)[0];b||(0,a4.publicError)("The archive has no SKILL.md");let c=b.slice(0,-8);for(let[b,d]of Object.entries(a)){if(!b.startsWith(c)||b.endsWith("/")||b.startsWith("__MACOSX/"))continue;let a=b.slice(c.length);a.split("/").some(a=>".."===a||""===a)||f.set(a,d)}}else(0,a4.publicError)("Upload a .md, .zip or .skill file");let g=f.get("SKILL.md"),i="string"==typeof g?g:Buffer.from(g).toString("utf-8"),j=(0,a1.parseFrontmatter)(i);return(0,a1.writeCustomSkill)(j.name,f)}),a8=(0,a3.serverAction)(async a=>{await (0,a1.deleteCustomSkill)(a2.SkillNameSchema.parse(a))}),a9=(0,a3.serverAction)(async(a,b,c)=>{await (0,a1.setSkillDisabled)(a2.SkillSourceSchema.parse(a),a2.SkillNameSchema.parse(b),a0.z.boolean().parse(c))});(0,a5.ensureServerEntryExports)([a6,a7,a8,a9]),(0,e.registerServerReference)(a6,"7f4d47e01fc323498dec73a09cf3336f5d4c1d51e0",null),(0,e.registerServerReference)(a7,"7fe6ee51994f51caff9011049ffe2a9aa4153d8a4e",null),(0,e.registerServerReference)(a8,"7f3ddbf37770ac395e5d1cbd8e5defa43d735b967a",null),(0,e.registerServerReference)(a9,"7f3acf83fcc379119e185d7a3834d5eed97ad0a1c1",null),a.s(["createSkillAction",0,a6,"deleteSkillAction",0,a8,"setSkillDisabledAction",0,a9,"uploadSkillAction",0,a7],432443)},439759,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(527990),f=a.i(723885),g=a.i(738131),h=a.i(689656),i=a.i(614747),j=a.i(674986),k=a.i(84929),l=a.i(725466),m=a.i(986743),n=a.i(225689),o=a.i(293480),p=a.i(253514),q=a.i(569549),r=a.i(3894),s=a.i(713095),t=b([g,i,j,k,l,m,q]);async function u(a){if(a&&await (0,l.readConfig)(h.SPEACH_MODEL_PROVIDERS[a.provider].apiKeyName))return a;for(let a of h.SPEACH_MODEL_PROVIDER_LIST)if(await (0,l.readConfig)(a.apiKeyName))return{provider:a.id,voice:null,model:null};(0,o.publicError)("No voice key — calls run on one. Add one in Config.")}async function v(){let a=await (0,g.loadTools)({target:"thursday"});return Object.entries(a).map(([a,b])=>{let{$schema:c,...d}=(0,e.asSchema)(b.inputSchema).jsonSchema;return{name:a,description:"string"==typeof b.description?b.description:"",parameters:d}})}[g,i,j,k,l,m,q]=t.then?(await t)():t;let w=(0,n.serverAction)(async a=>{let b=r.ThursdaySettingsSchema.parse(a),c=await u(b.model),d=h.SPEACH_MODEL_PROVIDERS[c.provider],e=await (0,l.readConfig)(d.apiKeyName);e||(0,o.publicError)(`No ${d.label} key — add one in Config.`);let[f,g]=await Promise.all([(0,i.loadThursdayPrompt)(b.systemPrompt,b.locale),v()]),j=c.model??d.models[0].id,k=await (0,p.issueClientSecret)({provider:c.provider,apiKey:e,model:j});return{callId:await (0,q.insertCall)({provider:c.provider,model:j}),provider:c.provider,credential:k,session:{model:j,voice:c.voice??d.defaultVoice,instructions:f.text,tools:g},opening:f.opening}}),x=(0,n.serverAction)(async a=>{await (0,q.writeCallSkillsOn)(f.default.boolean().parse(a))}),y=(0,n.serverAction)(async(a,b)=>{await (0,q.saveTurns)(a,r.CallTurnSchema.array().min(1).parse(b))}),z=(0,n.serverAction)(async a=>{await (0,q.endCall)(a)}),A=(0,n.serverAction)(async a=>{await (0,q.deleteCall)(a)||(0,o.publicError)("That call is still on the line — hang up first.")}),B=(0,n.serverAction)(async()=>(0,q.deleteEndedCalls)()),C=(0,n.serverAction)(async()=>{let a=await (0,k.listAllTaskIds)();for(let b of a)await (0,j.removeTask)(b);let b=await (0,q.deleteEndedCalls)(),c=await (0,m.deleteAllNotes)();return{calls:b,tasks:a.length,notes:c}});(0,s.ensureServerEntryExports)([w,x,y,z,A,B,C]),(0,d.registerServerReference)(w,"7fd0bfd5ef4b8f7c1cce531ca4dba6996ada3534e0",null),(0,d.registerServerReference)(x,"7fb326617fb6fe0d74f20b79af1e912238def02960",null),(0,d.registerServerReference)(y,"7f7158cd6d7b4345e5616c2f390c98da69d9b1cc59",null),(0,d.registerServerReference)(z,"7faf414a19a4e2dc232e5b58fb933b933518d61724",null),(0,d.registerServerReference)(A,"7fa0f05df10fadbdbc32f656a9d5c05cd146302f7a",null),(0,d.registerServerReference)(B,"7fe2a2ec036940cdf16482cfbd7aecf01f5571fe5a",null),(0,d.registerServerReference)(C,"7f50cfd7d0e623e886552f9994a05a234251f6b400",null),a.s(["deleteCallAction",0,A,"deleteEndedCallsAction",0,B,"endCallAction",0,z,"openCallAction",0,w,"resetHistoryAction",0,C,"saveTurnsAction",0,y,"setCallSkillsAction",0,x]),c()}catch(a){c(a)}},!1),253514,a=>{"use strict";var b=a.i(176668),c=a.i(293480),d=a.i(223622);let e={openai:({model:a})=>({url:"https://api.openai.com/v1/realtime/client_secrets",body:{session:{type:"realtime",model:a}}}),xai:({model:a,ttlSeconds:b})=>({url:"https://api.x.ai/v1/realtime/client_secrets",body:{expires_after:{seconds:b},session:{model:a}}})};async function f({provider:a,apiKey:g,model:h,ttlSeconds:i=600}){var j;let k,l,{url:m,body:n}=e[a]({model:h,ttlSeconds:i}),o=await fetch(m,{method:"POST",headers:{Authorization:`Bearer ${g}`,"Content-Type":"application/json"},body:JSON.stringify(n)}).catch(d=>{b.logger.warn(`${a} unreachable`,d),(0,c.publicError)(`Could not reach ${a}.`)}),p=await o.json().catch(()=>null);o.ok||(0,c.publicError)((j=o.status,"string"==typeof(l="string"==typeof(k=p?.error)?k:k?.message??p?.message)&&l.trim()?l:`Could not start a session (${j})`));let q=d.RealtimeCredentialSchema.safeParse(p);return q.success||(0,c.publicError)("The session token came back in a shape we do not know."),{value:q.data.value,expiresAt:q.data.expires_at}}a.s(["issueClientSecret",0,f])}];
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__10-dz5o._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[522734,(a,b,c)=>{b.exports=a.x("fs",()=>require("fs"))},446786,(a,b,c)=>{b.exports=a.x("os",()=>require("os"))},814747,(a,b,c)=>{b.exports=a.x("path",()=>require("path"))},57753,(a,b,c)=>{"use strict";var d=Object.create,e=Object.defineProperty,f=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,h=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,j=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of g(b))i.call(a,h)||h===c||e(a,h,{get:()=>b[h],enumerable:!(d=f(b,h))||d.enumerable});return a},k=(a,b,c)=>(c=null!=a?d(h(a)):{},j(!b&&a&&a.__esModule?c:e(c,"default",{value:a,enumerable:!0}),a)),l={},m={isValidAccessToken:()=>u,readAuthConfig:()=>s,writeAuthConfig:()=>t};for(var n in m)e(l,n,{get:m[n],enumerable:!0});b.exports=j(e({},"__esModule",{value:!0}),l);var o=k(a.r(522734)),p=k(a.r(814747)),q=a.r(809750);function r(){let a=(0,q.getVercelDataDir)();if(!a)throw Error(`Unable to find Vercel CLI data directory. Your platform: ${process.platform}. Supported: darwin, linux, win32.`);return p.join(a,"auth.json")}function s(){try{let a=r();if(!o.existsSync(a))return null;let b=o.readFileSync(a,"utf8");if(!b)return null;return JSON.parse(b)}catch(a){return null}}function t(a){let b=r(),c=p.dirname(b);o.existsSync(c)||o.mkdirSync(c,{mode:504,recursive:!0}),o.writeFileSync(b,JSON.stringify(a,null,2),{mode:384})}function u(a,b=0){if(!a.token)return!1;if("number"!=typeof a.expiresAt)return!0;let c=Math.floor(Date.now()/1e3);return a.expiresAt>=c+b/1e3}},69845,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={AccessTokenMissingError:()=>k,RefreshAccessTokenFailedError:()=>l};for(var j in i)d(h,j,{get:i[j],enumerable:!0});b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);class k extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login)."),this.name="AccessTokenMissingError"}}class l extends Error{constructor(a){super("Failed to refresh authentication token.",{cause:a}),this.name="RefreshAccessTokenFailedError"}}},301479,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={processTokenResponse:()=>p,refreshTokenRequest:()=>o};for(var j in i)d(h,j,{get:i[j],enumerable:!0});b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);var k=a.r(446786);let l=`@vercel/oidc node-${process.version} ${(0,k.platform)()} (${(0,k.arch)()}) ${(0,k.hostname)()}`,m=null;async function n(){if(m)return m;let a=await fetch("https://vercel.com/.well-known/openid-configuration",{headers:{"user-agent":l}});if(!a.ok)throw Error("Failed to discover OAuth endpoints");let b=await a.json();if(!b||"string"!=typeof b.token_endpoint)throw Error("Invalid OAuth discovery response");let c=b.token_endpoint;return m=c,c}async function o(a){let b=await n();return await fetch(b,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","user-agent":l},body:new URLSearchParams({client_id:"cl_HYyOPBNtFMfHhaUn9L4QPfTZz6TP47bp",grant_type:"refresh_token",...a})})}async function p(a){let b=await a.json();return a.ok?"object"!=typeof b||null===b?[Error("Invalid token response")]:"string"!=typeof b.access_token?[Error("Missing access_token in response")]:"Bearer"!==b.token_type?[Error("Invalid token_type in response")]:"number"!=typeof b.expires_in?[Error("Missing expires_in in response")]:[null,b]:[Error("object"==typeof b&&b&&"error"in b?String(b.error):"Token refresh failed")]}},325279,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={VercelOidcTokenError:()=>k};for(var j in i)d(h,j,{get:i[j],enumerable:!0});b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);class k extends Error{constructor(a,b){super(a),this.name="VercelOidcTokenError",this.cause=b}toString(){return this.cause?`${this.name}: ${this.message}: ${this.cause}`:`${this.name}: ${this.message}`}}},314225,(a,b,c)=>{"use strict";var d=Object.create,e=Object.defineProperty,f=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,h=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,j=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of g(b))i.call(a,h)||h===c||e(a,h,{get:()=>b[h],enumerable:!(d=f(b,h))||d.enumerable});return a},k=(a,b,c)=>(c=null!=a?d(h(a)):{},j(!b&&a&&a.__esModule?c:e(c,"default",{value:a,enumerable:!0}),a)),l={},m={findRootDir:()=>s,getUserDataDir:()=>t};for(var n in m)e(l,n,{get:m[n],enumerable:!0});b.exports=j(e({},"__esModule",{value:!0}),l);var o=k(a.r(814747)),p=k(a.r(522734)),q=k(a.r(446786)),r=a.r(325279);function s(){try{let a=process.cwd();for(;a!==o.default.dirname(a);){let b=o.default.join(a,".vercel");if(p.default.existsSync(b))return a;a=o.default.dirname(a)}}catch(a){throw new r.VercelOidcTokenError("Token refresh only supported in node server environments")}return null}function t(){if(process.env.XDG_DATA_HOME)return process.env.XDG_DATA_HOME;switch(q.default.platform()){case"darwin":return o.default.join(q.default.homedir(),"Library/Application Support");case"linux":return o.default.join(q.default.homedir(),".local/share");case"win32":if(process.env.LOCALAPPDATA)return process.env.LOCALAPPDATA;return null;default:return null}}},809750,(a,b,c)=>{"use strict";var d=Object.create,e=Object.defineProperty,f=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,h=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,j=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of g(b))i.call(a,h)||h===c||e(a,h,{get:()=>b[h],enumerable:!(d=f(b,h))||d.enumerable});return a},k=(a,b,c)=>(c=null!=a?d(h(a)):{},j(!b&&a&&a.__esModule?c:e(c,"default",{value:a,enumerable:!0}),a)),l={},m={assertVercelOidcTokenResponse:()=>y,findProjectInfo:()=>z,getTokenPayload:()=>C,getVercelDataDir:()=>v,getVercelOidcToken:()=>x,getVercelToken:()=>w,isExpired:()=>D,loadToken:()=>B,saveToken:()=>A};for(var n in m)e(l,n,{get:m[n],enumerable:!0});b.exports=j(e({},"__esModule",{value:!0}),l);var o=k(a.r(814747)),p=k(a.r(522734)),q=a.r(325279),r=a.r(314225),s=a.r(57753),t=a.r(301479),u=a.r(69845);function v(){let a=(0,r.getUserDataDir)();return a?o.join(a,"com.vercel.cli"):null}async function w(a){let b=(0,s.readAuthConfig)();if(!b?.token)throw new u.AccessTokenMissingError;if((0,s.isValidAccessToken)(b,a?.expirationBufferMs))return b.token;if(!b.refreshToken)throw(0,s.writeAuthConfig)({}),new u.RefreshAccessTokenFailedError("No refresh token available");try{let a=await (0,t.refreshTokenRequest)({refresh_token:b.refreshToken}),[c,d]=await (0,t.processTokenResponse)(a);if(c||!d)throw(0,s.writeAuthConfig)({}),new u.RefreshAccessTokenFailedError(c);let e={token:d.access_token,expiresAt:Math.floor(Date.now()/1e3)+d.expires_in};return d.refresh_token&&(e.refreshToken=d.refresh_token),(0,s.writeAuthConfig)(e),e.token}catch(a){if((0,s.writeAuthConfig)({}),a instanceof u.AccessTokenMissingError||a instanceof u.RefreshAccessTokenFailedError)throw a;throw new u.RefreshAccessTokenFailedError(a)}}async function x(a,b,c){let d=`https://api.vercel.com/v1/projects/${b}/token?source=vercel-oidc-refresh${c?`&teamId=${c}`:""}`,e=await fetch(d,{method:"POST",headers:{Authorization:`Bearer ${a}`}});if(!e.ok)throw new q.VercelOidcTokenError(`Failed to refresh OIDC token: ${e.statusText}`);let f=await e.json();return y(f),f}function y(a){if(!a||"object"!=typeof a)throw TypeError("Vercel OIDC token is malformed. Expected an object. Please run `vc env pull` and try again");if(!("token"in a)||"string"!=typeof a.token)throw TypeError("Vercel OIDC token is malformed. Expected a string-valued token property. Please run `vc env pull` and try again")}function z(){let a=(0,r.findRootDir)();if(!a)throw new q.VercelOidcTokenError("Unable to find project root directory. Have you linked your project with `vc link?`");let b=o.join(a,".vercel","project.json");if(!p.existsSync(b))throw new q.VercelOidcTokenError("project.json not found, have you linked your project with `vc link?`");let c=JSON.parse(p.readFileSync(b,"utf8"));if("string"!=typeof c.projectId&&"string"!=typeof c.orgId)throw TypeError("Expected a string-valued projectId property. Try running `vc link` to re-link your project.");return{projectId:c.projectId,teamId:c.orgId}}function A(a,b){let c=(0,r.getUserDataDir)();if(!c)throw new q.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let d=o.join(c,"com.vercel.token",`${b}.json`),e=JSON.stringify(a);p.mkdirSync(o.dirname(d),{mode:504,recursive:!0}),p.writeFileSync(d,e),p.chmodSync(d,432)}function B(a){let b=(0,r.getUserDataDir)();if(!b)throw new q.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let c=o.join(b,"com.vercel.token",`${a}.json`);if(!p.existsSync(c))return null;let d=JSON.parse(p.readFileSync(c,"utf8"));return y(d),d}function C(a){let b=a.split(".");if(3!==b.length)throw new q.VercelOidcTokenError("Invalid token. Please run `vc env pull` and try again");let c=b[1].replace(/-/g,"+").replace(/_/g,"/"),d=c.padEnd(c.length+(4-c.length%4)%4,"=");return JSON.parse(Buffer.from(d,"base64").toString("utf8"))}function D(a,b=0){return 1e3*a.exp<Date.now()+b}}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__15_uhip._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},291927,a=>{"use strict";var b=a.i(907997),c=a.i(912714);a.i(570396);var d=a.i(673727);let e=a=>`/api/file/${a.split("/").map(encodeURIComponent).join("/")}`;var f=a.i(569572),g=a.i(744761),h=a.i(684321),i=a.i(821415);let j=async a=>(await a).path.join("/");async function k({params:a}){let b=await j(a);return{title:b.split("/").pop()??b}}async function l({params:a}){let c=await j(a),f=await (0,i.insideWorkspace)(c);f||(0,d.notFound)();let g=(0,h.viewKindOf)(c);return(0,b.jsxs)("main",{className:"min-h-screen bg-background",children:[(0,b.jsxs)("header",{className:"flex h-10 items-center gap-2 border-b border-border/60 px-4",children:[(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px] text-muted-foreground",children:c}),(0,b.jsx)("a",{href:e(c),download:!0,className:"shrink-0 font-mono text-[11px] text-muted-foreground hover:text-foreground",children:"Download"})]}),"frame"===g?(0,b.jsx)("iframe",{title:c,src:e(c),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-[calc(100vh-2.5rem)] w-full bg-white"}):"image"===g?(0,b.jsx)("img",{src:e(c),alt:c,className:"mx-auto max-w-full p-6"}):"audio"===g?(0,b.jsx)("audio",{controls:!0,src:e(c),className:"mx-auto mt-10 w-full max-w-xl px-6",children:(0,b.jsx)("track",{kind:"captions"})}):"video"===g?(0,b.jsx)("video",{controls:!0,src:e(c),className:"mx-auto max-h-[calc(100vh-2.5rem)] max-w-full p-6",children:(0,b.jsx)("track",{kind:"captions"})}):"none"===g?(0,b.jsx)("p",{className:"p-6 font-mono text-xs text-muted-foreground",children:"Nothing here knows how to draw this file — download it above."}):(0,b.jsx)(m,{full:f,kind:g})]})}async function m({full:a,kind:e}){let h=await (0,c.stat)(a).catch(()=>null);h?.isFile()||(0,d.notFound)();let i=h.size>f.WORKSPACE_VIEW.textMax,j=i?await n(a,f.WORKSPACE_VIEW.textMax):await (0,c.readFile)(a,"utf-8").catch(()=>null);return null===j&&(0,d.notFound)(),(0,b.jsx)("div",{className:"mx-auto max-w-5xl",children:(0,b.jsx)(g.FileBody,{kind:e,content:j,truncated:i?h.size:null,where:"page"})})}async function n(a,b){let d=await (0,c.open)(a).catch(()=>null);if(!d)return null;try{let a=Buffer.alloc(b),{bytesRead:c}=await d.read(a,0,b,0),e=a.subarray(0,c).toString("utf-8"),f=e.lastIndexOf("\n");return f>0?e.slice(0,f):e}finally{await d.close()}}a.s(["default",0,l,"dynamic",0,"force-dynamic","generateMetadata",0,k],291927)},854103,function(a){a.n(a.i(291927))},326758,a=>{a.v("/_next/static/media/favicon.
|
|
1
|
+
module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},291927,a=>{"use strict";var b=a.i(907997),c=a.i(912714);a.i(570396);var d=a.i(673727);let e=a=>`/api/file/${a.split("/").map(encodeURIComponent).join("/")}`;var f=a.i(569572),g=a.i(744761),h=a.i(684321),i=a.i(821415);let j=async a=>(await a).path.join("/");async function k({params:a}){let b=await j(a);return{title:b.split("/").pop()??b}}async function l({params:a}){let c=await j(a),f=await (0,i.insideWorkspace)(c);f||(0,d.notFound)();let g=(0,h.viewKindOf)(c);return(0,b.jsxs)("main",{className:"min-h-screen bg-background",children:[(0,b.jsxs)("header",{className:"flex h-10 items-center gap-2 border-b border-border/60 px-4",children:[(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px] text-muted-foreground",children:c}),(0,b.jsx)("a",{href:e(c),download:!0,className:"shrink-0 font-mono text-[11px] text-muted-foreground hover:text-foreground",children:"Download"})]}),"frame"===g?(0,b.jsx)("iframe",{title:c,src:e(c),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-[calc(100vh-2.5rem)] w-full bg-white"}):"image"===g?(0,b.jsx)("img",{src:e(c),alt:c,className:"mx-auto max-w-full p-6"}):"audio"===g?(0,b.jsx)("audio",{controls:!0,src:e(c),className:"mx-auto mt-10 w-full max-w-xl px-6",children:(0,b.jsx)("track",{kind:"captions"})}):"video"===g?(0,b.jsx)("video",{controls:!0,src:e(c),className:"mx-auto max-h-[calc(100vh-2.5rem)] max-w-full p-6",children:(0,b.jsx)("track",{kind:"captions"})}):"none"===g?(0,b.jsx)("p",{className:"p-6 font-mono text-xs text-muted-foreground",children:"Nothing here knows how to draw this file — download it above."}):(0,b.jsx)(m,{full:f,kind:g})]})}async function m({full:a,kind:e}){let h=await (0,c.stat)(a).catch(()=>null);h?.isFile()||(0,d.notFound)();let i=h.size>f.WORKSPACE_VIEW.textMax,j=i?await n(a,f.WORKSPACE_VIEW.textMax):await (0,c.readFile)(a,"utf-8").catch(()=>null);return null===j&&(0,d.notFound)(),(0,b.jsx)("div",{className:"mx-auto max-w-5xl",children:(0,b.jsx)(g.FileBody,{kind:e,content:j,truncated:i?h.size:null,where:"page"})})}async function n(a,b){let d=await (0,c.open)(a).catch(()=>null);if(!d)return null;try{let a=Buffer.alloc(b),{bytesRead:c}=await d.read(a,0,b,0),e=a.subarray(0,c).toString("utf-8"),f=e.lastIndexOf("\n");return f>0?e.slice(0,f):e}finally{await d.close()}}a.s(["default",0,l,"dynamic",0,"force-dynamic","generateMetadata",0,k],291927)},854103,function(a){a.n(a.i(291927))},326758,a=>{a.v("/_next/static/media/favicon.37o1pjldwi2uc.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},438872,a=>{"use strict";let b={src:a.i(326758).default,width:48,height:48};a.s(["default",0,b])},453874,a=>{"use strict";a.s(["FileBody",()=>c,"FileDialog",()=>d,"FileLink",()=>e,"FilePreview",()=>f,"FileViewer",()=>g,"fileTarget",()=>h,"useFileText",()=>i,"useOpenFile",()=>j]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call FileBody() from the server but FileBody is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","FileBody"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call FileDialog() from the server but FileDialog is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","FileDialog"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call FileLink() from the server but FileLink is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","FileLink"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call FilePreview() from the server but FilePreview is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","FilePreview"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call FileViewer() from the server but FileViewer is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","FileViewer"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call fileTarget() from the server but fileTarget is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","fileTarget"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call useFileText() from the server but useFileText is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","useFileText"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call useOpenFile() from the server but useOpenFile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","useOpenFile")},744761,a=>{"use strict";var b=a.i(453874);a.n(b)},819442,a=>{"use strict";var b=a.i(612948),c=a.i(167436),d=a.i(594331);a.i(670408);let e=(0,b.instrumentModuleGetter)(()=>a.r(438872)),f=(0,b.instrumentModuleGetter)(()=>a.r(70864)),g=(0,b.instrumentModuleGetter)(()=>a.r(43619)),h=(0,b.instrumentModuleGetter)(()=>a.r(13718)),i=(0,b.instrumentModuleGetter)(()=>a.r(118198)),j=(0,b.instrumentModuleGetter)(()=>a.r(262212)),k=["",{children:["artifact",{children:["[...path]",{children:["__PAGE__",{},{metadata:{},page:[(0,b.instrumentModuleGetter)(()=>a.r(854103)),"[project]/app/artifact/[...path]/page.tsx"]},[]]},{metadata:{}},[]]},{metadata:{}},[]]},{metadata:{icon:[async()=>{let a=(0,d.interopDefault)(await e());return[{url:`/favicon.ico?${a.src.split("/").splice(-1)[0]}`,sizes:`${a.width}x${a.height}`,type:"image/x-icon"}]}]},layout:[f,"[project]/app/layout.tsx"],"not-found":[g,"[project]/node_modules/next/dist/client/components/builtin/not-found.js"],forbidden:[h,"[project]/node_modules/next/dist/client/components/builtin/forbidden.js"],unauthorized:[i,"[project]/node_modules/next/dist/client/components/builtin/unauthorized.js"],"global-error":[j,"[project]/node_modules/next/dist/client/components/builtin/global-error.js"]},[]],l=a.r.bind(a),m=a.l.bind(a),n=(0,c.createAppPageEntrypoint)({tree:k,page:"/artifact/[...path]/page",pathname:"/artifact/[...path]",require:l,loadChunk:m,interopDefault:d.interopDefault}),o=n.__next_app__,p=n.routeModule,q=n.handler;a.s(["__next_app__",0,o,"handler",0,q,"routeModule",0,p],725510),a.i(725510);var r=a.i(722922);a.s(["ClientPageRoot",()=>r.ClientPageRoot,"ClientSegmentRoot",()=>r.ClientSegmentRoot,"Fragment",()=>r.Fragment,"HTTPAccessFallbackBoundary",()=>r.HTTPAccessFallbackBoundary,"InstantValidation",()=>r.InstantValidation,"LayoutRouter",()=>r.LayoutRouter,"LoadingBoundaryProvider",()=>r.LoadingBoundaryProvider,"Postpone",()=>r.Postpone,"RenderFromTemplateContext",()=>r.RenderFromTemplateContext,"RootLayoutBoundary",()=>r.RootLayoutBoundary,"SegmentViewNode",()=>r.SegmentViewNode,"SegmentViewStateNode",()=>r.SegmentViewStateNode,"__next_app__",0,o,"captureOwnerStack",()=>r.captureOwnerStack,"collectPrefetchHints",()=>r.collectPrefetchHints,"collectSegmentData",()=>r.collectSegmentData,"createElement",()=>r.createElement,"createMetadataComponents",()=>r.createMetadataComponents,"createPrerenderParamsForClientSegment",()=>r.createPrerenderParamsForClientSegment,"createPrerenderSearchParamsForClientPage",()=>r.createPrerenderSearchParamsForClientPage,"createServerParamsForServerSegment",()=>r.createServerParamsForServerSegment,"createServerSearchParamsForServerPage",()=>r.createServerSearchParamsForServerPage,"createTemporaryReferenceSet",()=>r.createTemporaryReferenceSet,"decodeAction",()=>r.decodeAction,"decodeFormState",()=>r.decodeFormState,"decodeReply",()=>r.decodeReply,"handler",0,q,"isEmptyHTMLPrelude",()=>r.isEmptyHTMLPrelude,"patchFetch",()=>r.patchFetch,"preconnect",()=>r.preconnect,"preloadFont",()=>r.preloadFont,"preloadStyle",()=>r.preloadStyle,"prerender",()=>r.prerender,"prerenderToNodeStream",()=>r.prerenderToNodeStream,"renderToPipeableStream",()=>r.renderToPipeableStream,"renderToReadableStream",()=>r.renderToReadableStream,"routeModule",0,p,"serverHooks",()=>r.serverHooks,"taintObjectReference",()=>r.taintObjectReference],819442)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__16jc196._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[509656,(a,b,c)=>{b.exports=a.x("node:tty",()=>require("node:tty"))},812057,(a,b,c)=>{b.exports=a.x("node:util",()=>require("node:util"))},26378,a=>{"use strict";var b=a.i(228722),c=a.i(730983),d=a.i(100031);let e=(0,c.realtimeSession)({transport:({credential:a,setup:b,audio:c,on:e})=>(0,d.createSocketTransport)({url:`wss://api.x.ai/v1/realtime?model=${encodeURIComponent(b.model)}`,protocols:[`xai-client-secret.${a.value}`],label:"Grok",audio:c,on:e}),sessionUpdate:a=>({type:"session.update",session:{model:a.model,instructions:a.instructions,voice:a.voice,turn_detection:{type:"server_vad"},audio:{input:{format:{type:"audio/pcm",rate:b.PCM_SAMPLE_RATE},transcription:{model:"grok-transcribe"}},output:{format:{type:"audio/pcm",rate:b.PCM_SAMPLE_RATE}}},tools:(0,c.toFunctionTools)(a.tools)}})});a.s(["createXaiSession",0,e])},715837,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]__0dizgek._.js","server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_05cwqv2._.js"].map(b=>a.l(b))).then(()=>b(270101)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__1cyjywu._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[70729,a=>{a.v(a=>Promise.resolve().then(()=>a(666680)))},276307,a=>{a.v(a=>Promise.resolve().then(()=>a(221214)))},763543,a=>{a.v(a=>Promise.resolve().then(()=>a(674986)))},242808,a=>{a.v(a=>Promise.resolve().then(()=>a(84929)))},682672,a=>{a.v(a=>Promise.resolve().then(()=>a(72918)))},966249,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@vercel_oidc_dist_token_16gdpgb.js"].map(b=>a.l(b))).then(()=>b(860544)))},832030,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_node_readline_1u65a-m._.js","server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_1j4x-_j._.js"].map(b=>a.l(b))).then(()=>b(322479)))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__1eh7hid._.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module.exports=[418520,a=>a.a(async(b,c)=>{try{var d=await a.y("@libsql/client-6da938047d5fc1cd");a.n(d),c()}catch(a){c(a)}},!0),500874,(a,b,c)=>{b.exports=a.x("buffer",()=>require("buffer"))},233405,(a,b,c)=>{b.exports=a.x("child_process",()=>require("child_process"))},522734,(a,b,c)=>{b.exports=a.x("fs",()=>require("fs"))},874533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},666680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},902157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},912714,(a,b,c)=>{b.exports=a.x("node:fs/promises",()=>require("node:fs/promises"))},347299,(a,b,c)=>{b.exports=a.x("node:http",()=>require("node:http"))},750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},59639,(a,b,c)=>{b.exports=a.x("node:process",()=>require("node:process"))},509656,(a,b,c)=>{b.exports=a.x("node:tty",()=>require("node:tty"))},812057,(a,b,c)=>{b.exports=a.x("node:util",()=>require("node:util"))},446786,(a,b,c)=>{b.exports=a.x("os",()=>require("os"))},605365,(a,b,c)=>{b.exports=a.x("process",()=>require("process"))},762008,a=>{"use strict";a.s(["STUDIO_TOOLS",0,{generate_image:"generate_image",generate_speech:"generate_speech",transcribe:"transcribe",generate_video:"generate_video"},"TOOL_NAMES",0,{memory_recall:"memory_recall",memory_remember:"memory_remember",memory_forget:"memory_forget",memory_show:"memory_show",memory_conversation:"memory_conversation",bash:"bash",write_file:"write_file",tool_search:"tool_search",tool_call:"tool_call",load_skill:"load_skill",web_search:"web_search",delegate:"delegate",task:"task",ask_bot:"ask_bot",ask_thursday:"ask_thursday",ask_back:"ask_back",answer:"answer",end_call:"end_call"}])},636616,a=>{"use strict";var b=a.i(569572),c=a.i(762008),d=a.i(62721);let e=[{name:"Jarvis",description:"Any job — turns it into a plan, hands each part to whoever it belongs to, does the rest, answers with one result",hint:"Plans a job and hands out the parts",icon:{shape:"squircle"},recommended:!0,systemPrompt:"You are Jarvis. A job reaches you as a sentence and leaves as a plan: what it actually needs, in what order, and who does each part. Settle what is still open in one round rather than guessing at it, then send for what the job is made of before you build — a part another bot exists for is theirs, and everything nobody else is for is yours. You hold the whole while they hold pieces: the order the parts run in, the seams where what comes back has to fit together, and the single thing that is handed over at the end. The plan is how the job gets done, not what gets handed back."},{name:"Navigator",description:"The web through a real browser — opens the page itself, signs in, brings back prices, images and links as they stand now",hint:"Opens the page itself and reads what is on it",icon:{shape:"poly"},recommended:!0,systemPrompt:`You are Navigator. Every browser job is yours: load the \`${b.BROWSER_SKILL}\` skill first and work through it. A search result says a page exists; you say what is on it right now — so open it, sign in where it asks you to, and keep going past the first screen until you have the thing itself: exact figures, the links that open them, the images off the page. Nothing you did not see goes in what you hand back, and a page that refused you is a fact with a url on it, not a gap to fill in from memory. Whoever asked should never need to open the site after you.`},{name:"Scribe",description:"Writing that gets read — finds out what it is for, researches it, then picks the form: prose, table, or a page",hint:"Writes what gets read, in the form that fits",icon:{shape:"blob"},recommended:!0,systemPrompt:"You are Scribe. Who reads it and what they do next decides everything else, so learn that first, then research before you claim: every number and name you write traces back to something you actually read. Pick the form by the reading — a `.md` for something read once, a `.csv` for what gets sorted, a page (the `interactive-page` skill) for something used or something whose pictures are the point. When the request does not settle which it is — something read once or something used — ask before you write rather than committing a whole draft to a guess. Cut what the reader would skip, and never spend a paragraph where a table or a picture answers in one glance. One page they finish beats five they abandon."},{name:"Insta",description:"Instagram end to end — settles what the post is, draws it, writes it, and puts it up once approved",hint:"Draws the pictures, writes the caption, posts it",icon:{shape:"poly"},requires:["image"],systemPrompt:`You are Insta. One job takes a post from nothing to live on instagram.com — settle what it is, sign in, draw it, write it, put it up. Load the \`${b.BROWSER_SKILL}\` skill before any browser step.
|
|
2
|
+
|
|
3
|
+
Settle it in one question. Ask only for what the request leaves open, in a single \`${c.TOOL_NAMES.ask_thursday}\`: the topic, how many pictures, whether to build a cover, and whether they name the music or you pick. A request that already says its topic is not asked for it again. Told to decide yourself: \`${c.TOOL_NAMES.web_search}\` for what is current on that topic, three pictures, a cover, and a recent track from Instagram's own list. Never ask twice for one round.
|
|
4
|
+
|
|
5
|
+
Then check the tools are there. \`${c.TOOL_NAMES.tool_search}\` with \`server: "${b.STUDIO_SERVER}"\` and \`tools: ["${c.STUDIO_TOOLS.generate_image}", "${c.STUDIO_TOOLS.generate_video}"]\` — one call returns both schemas, and a name that does not come back means nobody picked that model, so the tool does not exist. Missing what the job needs: \`${c.TOOL_NAMES.ask_thursday}\` saying to pick an image (or video) model in Settings › Models, and stop. Never work around a tool that is not there.
|
|
6
|
+
|
|
7
|
+
Sign in once, and into an account made for this rather than their own — the session is kept and every later job posts as whoever it is. Your file is \`bots/Insta/.auth/instagram.json\`, the login page is \`https://www.instagram.com/accounts/login/\`, and the skill carries the rest.
|
|
8
|
+
|
|
9
|
+
Anything covering the screen is closed before you read what is under it. It is in the way, not a sign-in problem.
|
|
10
|
+
|
|
11
|
+
Pictures come from two places. Draw them when the post is an idea or a mood; take the real one off the web when it is about something that happened, since a drawn picture passed off as the event is a lie. To take one: open the page and \`curl -o\` its image url into your folder. What is on someone's page is theirs — name the source, or draw one instead.
|
|
12
|
+
Draw. \`${c.TOOL_NAMES.tool_call}\` with \`server: "${b.STUDIO_SERVER}"\`, the tool, its \`args\`, and a \`description\` line saying what the call is for. \`aspectRatio\` is \`"1:1"\` for feed, \`"3:4"\` portrait, \`"9:16"\` story or reel. Put the whole picture in \`prompt\` — subject, framing, light, palette — the image model sees nothing of this job. Issue every picture in one step and repeat the same look in each prompt, or the slides come back in different hands. Keep what you use under \`artifacts/\`.
|
|
13
|
+
|
|
14
|
+
The cover is built, not drawn: image models mangle text. Write one HTML file over the first picture — a transparent-to-black gradient darkening one end, and a single bold headline over it, placed where the picture is empty rather than over its subject: bottom-left, bottom, or bottom-right. Then \`resize 1080 1350\`, serve it and open it the way the skill does, \`screenshot\`. That is slide one.
|
|
15
|
+
|
|
16
|
+
Write the caption to be read: what this is, in the user's voice, no invented facts, no wall of tags.
|
|
17
|
+
|
|
18
|
+
The composer is the one part not to memorise. Its refs change on every snapshot, so take a fresh one at each step and read what is actually there: Create, the files, crop and edit, music, caption — and stop on the last screen, before Share. Music: search the name they gave, or take a current one that fits the topic. No music step on this format means there is none.
|
|
19
|
+
|
|
20
|
+
Ask before it goes up. \`${c.TOOL_NAMES.ask_thursday}\` with the caption as written, the picture paths and the track you picked; options \`Post it\` / \`Change something\`. Share only on the first. Nothing is published on your own judgement, whatever the request said.
|
|
21
|
+
|
|
22
|
+
Answer with the post's url once it is up, and the file paths either way.`},{name:"Voyage",description:"Plans a trip — the days in walking order, a map for each one, and a page with the pictures",hint:"Plans the days, maps them, builds the page",icon:{shape:"blob"},systemPrompt:`You are Voyage. A trip leaves you as a plan someone can walk: what to see, in what order, on which day, with the map and the pictures. Load the \`${b.BROWSER_SKILL}\` skill before any browser step.
|
|
23
|
+
|
|
24
|
+
Settle it in one question. Ask only what the request leaves open, in a single \`${c.TOOL_NAMES.ask_thursday}\`: where, which dates, how many nights, who is going, roughly what budget, and what they care about — food, museums, walking, quiet. Never ask twice for one round.
|
|
25
|
+
|
|
26
|
+
Research in one step, not six. Send every \`${c.TOOL_NAMES.web_search}\` at once: the weather those dates usually bring, entry rules, currency and what things cost, plugs, how transit works there, and what is on or shut while they are there. A festival or a Monday closure changes the plan, so it is research, not colour.
|
|
27
|
+
|
|
28
|
+
Then open the pages for the places you shortlist — hours, closing days and prices are what search results get wrong. While you are on a page, take its pictures with \`--raw eval "JSON.stringify([...document.images].filter(i => i.naturalWidth > 200).map(i => i.currentSrc))"\` and keep whose page they came from.
|
|
29
|
+
|
|
30
|
+
A day is a walkable cluster, not a wishlist. Group by where things are, then order them by when they open; a day scattered across the city is a list, not a plan. Leave one thing per day loose — arriving, weather and a long lunch all happen.
|
|
31
|
+
|
|
32
|
+
The map is written, not clicked. One directions url per day, built by hand: \`https://www.google.com/maps/dir/?api=1&origin=A&destination=D&waypoints=B|C&travelmode=walking&hl=en\` (\`transit\` where that is how the city moves). Then one \`bash\` line, chained with &&: \`resize 1280 800\`, \`goto\`, \`sleep 4\`, \`click "getByRole('button', { name: 'Collapse side panel' })"\`, \`sleep 2\`, \`screenshot\`. The window is small, so without the resize the map is unreadable; the tiles come back black if you shoot the moment it loads; and the route panel covers a third of the map until it is collapsed.
|
|
33
|
+
|
|
34
|
+
Nobody has to sign in to anything: the day urls open in their own Maps app on a tap, and the trip is finished without them. Putting the pins on their own map is an extra you offer once the plan is done, never a gate in front of it — \`https://www.google.com/maps/d/\` wants a Google sign-in, so hand over the finished trip first and ask afterwards. If they say yes, it is their own account and never a bot one, because the point is that it is on their phone: write one csv of name, address and day with \`bash\` and \`upload\` it into a new map, so every pin lands in one import instead of one click each. Read the import screens rather than remembering them.
|
|
35
|
+
|
|
36
|
+
Photos in one step too: every \`curl -o\` in a single \`bash\` call, into the trip folder.
|
|
37
|
+
|
|
38
|
+
The page is the deliverable: the days in order, the map under each, the photos with whose page they came from, and the facts that decide what to pack. If someone on your roster writes pages, it is theirs and they get steps of their own — send the days as written, the paths of every shot and photo, and each fact with its source, because they cannot see your thread. If nobody does, write it yourself with the \`interactive-page\` skill.
|
|
39
|
+
|
|
40
|
+
Answer with the folder under \`artifacts/\` and what is in it: the page, a map per day, the pictures.`}];e.filter(a=>a.recommended),a.s(["findBotSeed",0,a=>e.find(b=>b.name===a)??null,"rollSeedColors",0,()=>(0,d.randomMarkColors)(e.length)])},451208,a=>{"use strict";var b=a.i(137936),c=a.i(821415),d=a.i(912714),e=a.i(750227),f=a.i(569572),g=a.i(293480);async function h(a){let b=await (0,c.insideWorkspace)(a);b||(0,g.publicError)("Outside the workspace");let e=await (0,d.stat)(b).catch(()=>null);e||(0,g.publicError)("File not found"),e.isFile()||(0,g.publicError)("That is a folder, not a file"),await (0,d.rm)(b)}async function i(){let a=(0,e.join)(c.WORKSPACE,f.PATHS.scratch);for(let b of(await (0,d.readdir)(a).catch(()=>[])))await (0,d.rm)((0,e.join)(a,b),{recursive:!0,force:!0})}a.i(684321);var j=a.i(225689),k=a.i(874533),l=a.i(812057);let m={darwin:a=>["open",[a]],win32:a=>["cmd.exe",["/c","start","",a]],linux:a=>["xdg-open",[a]]};async function n(a){await (0,d.access)(a);let b=m[process.platform]?.(a);if(!b)throw Error(`Opening files is not wired up on ${process.platform}.`);let[c,e]=b;await (0,l.promisify)(k.execFile)(c,e,{windowsHide:!0})}var o=a.i(182248),p=a.i(713095);let q=(0,j.serverAction)(async a=>{let b=a.trim();b||(0,g.publicError)("Which file?");let d=(await (0,c.openWorkspace)()).resolve(b);try{await n(d)}catch(a){(0,g.publicError)(`Could not open ${b}: ${(0,o.errorToString)(a)}`)}}),r=(0,j.serverAction)(async a=>{let b=a.trim();b||(0,g.publicError)("Which file?"),await h(b)}),s=(0,j.serverAction)(async()=>i());(0,p.ensureServerEntryExports)([q,r,s]),(0,b.registerServerReference)(q,"7f647083e5350baa7762d6d282de825cdf6b737384",null),(0,b.registerServerReference)(r,"7f194293e4c1ab83ed63877cc9d8b7aebf42b46bb8",null),(0,b.registerServerReference)(s,"7f8836b516d90511f9ac2025e946c291a9cd0d8174",null),a.s(["deleteWorkspaceFileAction",0,r,"emptyScratchAction",0,s,"openFileAction",0,q],451208)},225689,a=>{"use strict";a.i(570396);var b=a.i(673727),c=a.i(975160),d=a.i(176668),e=a.i(293480);let f=a=>!!a&&"object"==typeof a&&(!0===a.$ok||!1===a.$ok),g=a=>f(a)&&a.$ok,h=a=>({$ok:!0,data:a}),i=a=>({$ok:!1,message:a});async function j(a){try{let b=h(await a());for(;g(b)&&f(b.data);)b=b.data;return b}catch(a){if((0,b.unstable_rethrow)(a),(0,e.isPublicError)(a))return i(a.message);if(a instanceof c.ZodError)return i(a.issues[0]?.message);if(f(a)&&!a.$ok)return a;return d.logger.error(a),i()}}a.s(["serverAction",0,a=>(...b)=>j(()=>a(...b))],225689)},293480,a=>{"use strict";class b extends Error{message;constructor(a){super(a),this.message=a}}a.s(["isPublicError",0,a=>a instanceof b,"publicError",0,function(a){throw new b(a)}])},484261,(a,b,c)=>{"use strict";var d=Object.create,e=Object.defineProperty,f=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,h=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,j=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of g(b))i.call(a,h)||h===c||e(a,h,{get:()=>b[h],enumerable:!(d=f(b,h))||d.enumerable});return a},k=(a,b,c)=>(c=null!=a?d(h(a)):{},j(!b&&a&&a.__esModule?c:e(c,"default",{value:a,enumerable:!0}),a)),l={},m={isValidAccessToken:()=>u,readAuthConfig:()=>s,writeAuthConfig:()=>t};for(var n in m)e(l,n,{get:m[n],enumerable:!0});b.exports=j(e({},"__esModule",{value:!0}),l);var o=k(a.r(522734)),p=k(a.r(814747)),q=a.r(72918);function r(){let a=(0,q.getVercelDataDir)();if(!a)throw Error(`Unable to find Vercel CLI data directory. Your platform: ${process.platform}. Supported: darwin, linux, win32.`);return p.join(a,"auth.json")}function s(){try{let a=r();if(!o.existsSync(a))return null;let b=o.readFileSync(a,"utf8");if(!b)return null;return JSON.parse(b)}catch(a){return null}}function t(a){let b=r(),c=p.dirname(b);o.existsSync(c)||o.mkdirSync(c,{mode:504,recursive:!0}),o.writeFileSync(b,JSON.stringify(a,null,2),{mode:384})}function u(a,b=0){if(!a.token)return!1;if("number"!=typeof a.expiresAt)return!0;let c=Math.floor(Date.now()/1e3);return a.expiresAt>=c+b/1e3}},351275,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={AccessTokenMissingError:()=>k,RefreshAccessTokenFailedError:()=>l};for(var j in i)d(h,j,{get:i[j],enumerable:!0});b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);class k extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login)."),this.name="AccessTokenMissingError"}}class l extends Error{constructor(a){super("Failed to refresh authentication token.",{cause:a}),this.name="RefreshAccessTokenFailedError"}}},719472,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={processTokenResponse:()=>p,refreshTokenRequest:()=>o};for(var j in i)d(h,j,{get:i[j],enumerable:!0});b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);var k=a.r(446786);let l=`@vercel/oidc node-${process.version} ${(0,k.platform)()} (${(0,k.arch)()}) ${(0,k.hostname)()}`,m=null;async function n(){if(m)return m;let a=await fetch("https://vercel.com/.well-known/openid-configuration",{headers:{"user-agent":l}});if(!a.ok)throw Error("Failed to discover OAuth endpoints");let b=await a.json();if(!b||"string"!=typeof b.token_endpoint)throw Error("Invalid OAuth discovery response");let c=b.token_endpoint;return m=c,c}async function o(a){let b=await n();return await fetch(b,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","user-agent":l},body:new URLSearchParams({client_id:"cl_HYyOPBNtFMfHhaUn9L4QPfTZz6TP47bp",grant_type:"refresh_token",...a})})}async function p(a){let b=await a.json();return a.ok?"object"!=typeof b||null===b?[Error("Invalid token response")]:"string"!=typeof b.access_token?[Error("Missing access_token in response")]:"Bearer"!==b.token_type?[Error("Invalid token_type in response")]:"number"!=typeof b.expires_in?[Error("Missing expires_in in response")]:[null,b]:[Error("object"==typeof b&&b&&"error"in b?String(b.error):"Token refresh failed")]}},580949,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={VercelOidcTokenError:()=>k};for(var j in i)d(h,j,{get:i[j],enumerable:!0});b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);class k extends Error{constructor(a,b){super(a),this.name="VercelOidcTokenError",this.cause=b}toString(){return this.cause?`${this.name}: ${this.message}: ${this.cause}`:`${this.name}: ${this.message}`}}},50067,(a,b,c)=>{"use strict";var d=Object.create,e=Object.defineProperty,f=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,h=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,j=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of g(b))i.call(a,h)||h===c||e(a,h,{get:()=>b[h],enumerable:!(d=f(b,h))||d.enumerable});return a},k=(a,b,c)=>(c=null!=a?d(h(a)):{},j(!b&&a&&a.__esModule?c:e(c,"default",{value:a,enumerable:!0}),a)),l={},m={findRootDir:()=>s,getUserDataDir:()=>t};for(var n in m)e(l,n,{get:m[n],enumerable:!0});b.exports=j(e({},"__esModule",{value:!0}),l);var o=k(a.r(814747)),p=k(a.r(522734)),q=k(a.r(446786)),r=a.r(580949);function s(){try{let a=process.cwd();for(;a!==o.default.dirname(a);){let b=o.default.join(a,".vercel");if(p.default.existsSync(b))return a;a=o.default.dirname(a)}}catch(a){throw new r.VercelOidcTokenError("Token refresh only supported in node server environments")}return null}function t(){if(process.env.XDG_DATA_HOME)return process.env.XDG_DATA_HOME;switch(q.default.platform()){case"darwin":return o.default.join(q.default.homedir(),"Library/Application Support");case"linux":return o.default.join(q.default.homedir(),".local/share");case"win32":if(process.env.LOCALAPPDATA)return process.env.LOCALAPPDATA;return null;default:return null}}},72918,(a,b,c)=>{"use strict";var d=Object.create,e=Object.defineProperty,f=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,h=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,j=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of g(b))i.call(a,h)||h===c||e(a,h,{get:()=>b[h],enumerable:!(d=f(b,h))||d.enumerable});return a},k=(a,b,c)=>(c=null!=a?d(h(a)):{},j(!b&&a&&a.__esModule?c:e(c,"default",{value:a,enumerable:!0}),a)),l={},m={assertVercelOidcTokenResponse:()=>y,findProjectInfo:()=>z,getTokenPayload:()=>C,getVercelDataDir:()=>v,getVercelOidcToken:()=>x,getVercelToken:()=>w,isExpired:()=>D,loadToken:()=>B,saveToken:()=>A};for(var n in m)e(l,n,{get:m[n],enumerable:!0});b.exports=j(e({},"__esModule",{value:!0}),l);var o=k(a.r(814747)),p=k(a.r(522734)),q=a.r(580949),r=a.r(50067),s=a.r(484261),t=a.r(719472),u=a.r(351275);function v(){let a=(0,r.getUserDataDir)();return a?o.join(a,"com.vercel.cli"):null}async function w(a){let b=(0,s.readAuthConfig)();if(!b?.token)throw new u.AccessTokenMissingError;if((0,s.isValidAccessToken)(b,a?.expirationBufferMs))return b.token;if(!b.refreshToken)throw(0,s.writeAuthConfig)({}),new u.RefreshAccessTokenFailedError("No refresh token available");try{let a=await (0,t.refreshTokenRequest)({refresh_token:b.refreshToken}),[c,d]=await (0,t.processTokenResponse)(a);if(c||!d)throw(0,s.writeAuthConfig)({}),new u.RefreshAccessTokenFailedError(c);let e={token:d.access_token,expiresAt:Math.floor(Date.now()/1e3)+d.expires_in};return d.refresh_token&&(e.refreshToken=d.refresh_token),(0,s.writeAuthConfig)(e),e.token}catch(a){if((0,s.writeAuthConfig)({}),a instanceof u.AccessTokenMissingError||a instanceof u.RefreshAccessTokenFailedError)throw a;throw new u.RefreshAccessTokenFailedError(a)}}async function x(a,b,c){let d=`https://api.vercel.com/v1/projects/${b}/token?source=vercel-oidc-refresh${c?`&teamId=${c}`:""}`,e=await fetch(d,{method:"POST",headers:{Authorization:`Bearer ${a}`}});if(!e.ok)throw new q.VercelOidcTokenError(`Failed to refresh OIDC token: ${e.statusText}`);let f=await e.json();return y(f),f}function y(a){if(!a||"object"!=typeof a)throw TypeError("Vercel OIDC token is malformed. Expected an object. Please run `vc env pull` and try again");if(!("token"in a)||"string"!=typeof a.token)throw TypeError("Vercel OIDC token is malformed. Expected a string-valued token property. Please run `vc env pull` and try again")}function z(){let a=(0,r.findRootDir)();if(!a)throw new q.VercelOidcTokenError("Unable to find project root directory. Have you linked your project with `vc link?`");let b=o.join(a,".vercel","project.json");if(!p.existsSync(b))throw new q.VercelOidcTokenError("project.json not found, have you linked your project with `vc link?`");let c=JSON.parse(p.readFileSync(b,"utf8"));if("string"!=typeof c.projectId&&"string"!=typeof c.orgId)throw TypeError("Expected a string-valued projectId property. Try running `vc link` to re-link your project.");return{projectId:c.projectId,teamId:c.orgId}}function A(a,b){let c=(0,r.getUserDataDir)();if(!c)throw new q.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let d=o.join(c,"com.vercel.token",`${b}.json`),e=JSON.stringify(a);p.mkdirSync(o.dirname(d),{mode:504,recursive:!0}),p.writeFileSync(d,e),p.chmodSync(d,432)}function B(a){let b=(0,r.getUserDataDir)();if(!b)throw new q.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let c=o.join(b,"com.vercel.token",`${a}.json`);if(!p.existsSync(c))return null;let d=JSON.parse(p.readFileSync(c,"utf8"));return y(d),d}function C(a){let b=a.split(".");if(3!==b.length)throw new q.VercelOidcTokenError("Invalid token. Please run `vc env pull` and try again");let c=b[1].replace(/-/g,"+").replace(/_/g,"/"),d=c.padEnd(c.length+(4-c.length%4)%4,"=");return JSON.parse(Buffer.from(d,"base64").toString("utf8"))}function D(a,b=0){return 1e3*a.exp<Date.now()+b}},713095,(a,b,c)=>{"use strict";function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
|
|
41
|
+
Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},137936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(211857)}];
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__1gtlw6v._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[589578,a=>{a.v({className:"geist_a71539c9-module__T19VSG__className",variable:"geist_a71539c9-module__T19VSG__variable"})},435214,a=>{a.v({className:"geist_mono_8d43a2aa-module__8Li5zG__className",variable:"geist_mono_8d43a2aa-module__8Li5zG__variable"})},2844,a=>{a.v({className:"noto_sans_kr_aea9f400-module__SrCM8q__className",variable:"noto_sans_kr_aea9f400-module__SrCM8q__variable"})},773791,a=>{"use strict";a.s(["AppEventSource",()=>c,"useAppEvent",()=>d]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call AppEventSource() from the server but AppEventSource is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/app/api/events/app-event.client.ts","AppEventSource"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAppEvent() from the server but useAppEvent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/app/api/events/app-event.client.ts","useAppEvent")},720519,a=>{"use strict";var b=a.i(773791);a.n(b)},233290,a=>{"use strict";var b=a.i(907997),c=a.i(589578);let d={className:c.default.className,style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"}};null!=c.default.variable&&(d.variable=c.default.variable);var e=a.i(435214);let f={className:e.default.className,style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"}};null!=e.default.variable&&(f.variable=e.default.variable);var g=a.i(2844);let h={className:g.default.className,style:{fontFamily:"'Noto Sans KR', 'Noto Sans KR Fallback'",fontStyle:"normal"}};null!=g.default.variable&&(h.variable=g.default.variable);var i=a.i(371618),j=a.i(720519),k=a.i(322950),l=a.i(996266),m=a.i(569572);let n=`(function(){try{var t=localStorage.getItem(${JSON.stringify("thursday.theme")});var d=t==="dark"||(t!=="light"&&matchMedia("(prefers-color-scheme: dark)").matches);var h=document.documentElement;h.classList.toggle("dark",d);h.style.colorScheme=d?"dark":"light"}catch(e){}})();`,o={title:m.APP_NAME,description:`The "${m.APP_NAME}" is a voice agent that can help you with your daily tasks.`};a.s(["default",0,function({children:a}){return(0,b.jsx)("html",{lang:"en",suppressHydrationWarning:!0,className:`${d.variable} ${f.variable} ${h.variable} h-full antialiased`,children:(0,b.jsxs)("body",{className:"h-screen w-full flex flex-col",children:[(0,b.jsx)(i.default,{id:"theme-boot",strategy:"beforeInteractive",children:n}),(0,b.jsx)(k.ThemeSync,{}),(0,b.jsx)(j.AppEventSource,{}),a,(0,b.jsx)(l.Toaster,{})]})})},"metadata",0,o],233290)},70864,function(a){a.n(a.i(233290))},265728,a=>{"use strict";a.s(["ThemeSync",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call ThemeSync() from the server but ThemeSync is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/theme-sync.tsx","ThemeSync")},322950,a=>{"use strict";var b=a.i(265728);a.n(b)},502807,a=>{"use strict";a.s(["Toast",()=>c,"ToastAction",()=>d,"ToastClose",()=>e,"ToastContent",()=>f,"ToastDescription",()=>g,"ToastPortal",()=>h,"ToastProvider",()=>i,"ToastTitle",()=>j,"ToastViewport",()=>k,"Toaster",()=>l,"createToastManager",()=>m,"toast",()=>n,"useToastManager",()=>o]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Toast() from the server but Toast is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","Toast"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastAction() from the server but ToastAction is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastAction"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastClose() from the server but ToastClose is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastClose"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastContent() from the server but ToastContent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastContent"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastDescription() from the server but ToastDescription is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastDescription"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastPortal() from the server but ToastPortal is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastPortal"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastProvider() from the server but ToastProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastProvider"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastTitle() from the server but ToastTitle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastTitle"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastViewport() from the server but ToastViewport is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastViewport"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call Toaster() from the server but Toaster is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","Toaster"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call createToastManager() from the server but createToastManager is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","createToastManager"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call toast() from the server but toast is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","toast"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call useToastManager() from the server but useToastManager is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","useToastManager")},996266,a=>{"use strict";var b=a.i(502807);a.n(b)},569572,a=>{"use strict";let b=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),c=process.env.THURSDAY_HOME?.trim()||process.cwd(),d=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,e=`file:${c}/local.db`,f=".ai-workspace",g={workspace:f,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${f}/.agents/skills`}};a.s(["APP_DIR",0,b,"APP_NAME",0,"Thursday","APP_URL",0,d,"
|
|
1
|
+
module.exports=[589578,a=>{a.v({className:"geist_a71539c9-module__T19VSG__className",variable:"geist_a71539c9-module__T19VSG__variable"})},435214,a=>{a.v({className:"geist_mono_8d43a2aa-module__8Li5zG__className",variable:"geist_mono_8d43a2aa-module__8Li5zG__variable"})},2844,a=>{a.v({className:"noto_sans_kr_aea9f400-module__SrCM8q__className",variable:"noto_sans_kr_aea9f400-module__SrCM8q__variable"})},773791,a=>{"use strict";a.s(["AppEventSource",()=>c,"useAppEvent",()=>d]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call AppEventSource() from the server but AppEventSource is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/app/api/events/app-event.client.ts","AppEventSource"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAppEvent() from the server but useAppEvent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/app/api/events/app-event.client.ts","useAppEvent")},720519,a=>{"use strict";var b=a.i(773791);a.n(b)},233290,a=>{"use strict";var b=a.i(907997),c=a.i(589578);let d={className:c.default.className,style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"}};null!=c.default.variable&&(d.variable=c.default.variable);var e=a.i(435214);let f={className:e.default.className,style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"}};null!=e.default.variable&&(f.variable=e.default.variable);var g=a.i(2844);let h={className:g.default.className,style:{fontFamily:"'Noto Sans KR', 'Noto Sans KR Fallback'",fontStyle:"normal"}};null!=g.default.variable&&(h.variable=g.default.variable);var i=a.i(371618),j=a.i(720519),k=a.i(322950),l=a.i(996266),m=a.i(569572);let n=`(function(){try{var t=localStorage.getItem(${JSON.stringify("thursday.theme")});var d=t==="dark"||(t!=="light"&&matchMedia("(prefers-color-scheme: dark)").matches);var h=document.documentElement;h.classList.toggle("dark",d);h.style.colorScheme=d?"dark":"light"}catch(e){}})();`,o={title:m.APP_NAME,description:`The "${m.APP_NAME}" is a voice agent that can help you with your daily tasks.`};a.s(["default",0,function({children:a}){return(0,b.jsx)("html",{lang:"en",suppressHydrationWarning:!0,className:`${d.variable} ${f.variable} ${h.variable} h-full antialiased`,children:(0,b.jsxs)("body",{className:"h-screen w-full flex flex-col",children:[(0,b.jsx)(i.default,{id:"theme-boot",strategy:"beforeInteractive",children:n}),(0,b.jsx)(k.ThemeSync,{}),(0,b.jsx)(j.AppEventSource,{}),a,(0,b.jsx)(l.Toaster,{})]})})},"metadata",0,o],233290)},70864,function(a){a.n(a.i(233290))},265728,a=>{"use strict";a.s(["ThemeSync",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call ThemeSync() from the server but ThemeSync is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/theme-sync.tsx","ThemeSync")},322950,a=>{"use strict";var b=a.i(265728);a.n(b)},502807,a=>{"use strict";a.s(["Toast",()=>c,"ToastAction",()=>d,"ToastClose",()=>e,"ToastContent",()=>f,"ToastDescription",()=>g,"ToastPortal",()=>h,"ToastProvider",()=>i,"ToastTitle",()=>j,"ToastViewport",()=>k,"Toaster",()=>l,"createToastManager",()=>m,"toast",()=>n,"useToastManager",()=>o]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Toast() from the server but Toast is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","Toast"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastAction() from the server but ToastAction is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastAction"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastClose() from the server but ToastClose is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastClose"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastContent() from the server but ToastContent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastContent"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastDescription() from the server but ToastDescription is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastDescription"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastPortal() from the server but ToastPortal is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastPortal"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastProvider() from the server but ToastProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastProvider"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastTitle() from the server but ToastTitle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastTitle"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastViewport() from the server but ToastViewport is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastViewport"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call Toaster() from the server but Toaster is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","Toaster"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call createToastManager() from the server but createToastManager is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","createToastManager"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call toast() from the server but toast is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","toast"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call useToastManager() from the server but useToastManager is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","useToastManager")},996266,a=>{"use strict";var b=a.i(502807);a.n(b)},569572,a=>{"use strict";let b=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),c=process.env.THURSDAY_HOME?.trim()||process.cwd(),d=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,e=`file:${c}/local.db`,f=".ai-workspace",g={workspace:f,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${f}/.agents/skills`}};a.s(["APP_DIR",0,b,"APP_NAME",0,"Thursday","APP_URL",0,d,"ASCII_FACE",0,{charset:"emojiOnly",fontSize:{default:8,min:4,max:16},density:{default:1.4,min:.6,max:2}},"BOT_MEMORY_LISTED",0,20,"BOT_RUN",0,{steps:100,compactAt:5e5,compactHeadroom:.8,summaryWords:{min:600,max:3e3,perTokens:200},depth:2,askBack:3,silenceMs:3e5,autoResumes:3,retryAfterMs:[3e4,12e4,3e5],overflowShrink:.6,compactFiles:40},"BROWSER_GONE_MS",0,1e4,"BROWSER_SKILL",0,"browser","BROWSER_VIEWPORT",0,"700x700","CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,c,"DB_FILE_NAME",0,e,"EXEC_KILL_GRACE_MS",0,5e3,"EXEC_TIMEOUT_MS",0,18e4,"INBOX_FINISHED",0,3,"IS_DEV",0,!1,"MEMORY_CONVERSATION_PAGE",0,100,"MEMORY_LIMITS",0,{facts:400,factsPerNote:50,carried:20},"PAGE_SIZE",0,50,"PATHS",0,g,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"RECENT_CALL",0,{rows:20,tokens:600},"SEARCH",0,{sources:6,excerptChars:1200,timeoutMs:3e4},"STUDIO_SERVER",0,"studio","TOOL_OUTPUT",0,{max:8e3,head:5500,tail:1500},"WORKSPACE_KEEP",0,{forMs:2592e5,sweepEveryMs:36e5},"WORKSPACE_VIEW",0,{rows:200,textMax:524288,elementMax:0x3200000}])},944536,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(211857);a.n(d("[project]/node_modules/next/dist/client/script.js"))},411153,a=>{"use strict";var b=a.i(944536);a.n(b)},371618,(a,b,c)=>{b.exports=a.r(411153)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__1mzi-ju._.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
module.exports=[874533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},912714,(a,b,c)=>{b.exports=a.x("node:fs/promises",()=>require("node:fs/promises"))},750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},59639,(a,b,c)=>{b.exports=a.x("node:process",()=>require("node:process"))},509656,(a,b,c)=>{b.exports=a.x("node:tty",()=>require("node:tty"))},812057,(a,b,c)=>{b.exports=a.x("node:util",()=>require("node:util"))},701876,a=>{"use strict";var b=a.i(451208);a.s([],489277),a.i(489277),a.s(["7f647083e5350baa7762d6d282de825cdf6b737384",()=>b.openFileAction],701876)},451208,a=>{"use strict";var b=a.i(137936),c=a.i(821415),d=a.i(912714),e=a.i(750227),f=a.i(569572),g=a.i(293480);async function h(a){let b=await (0,c.insideWorkspace)(a);b||(0,g.publicError)("Outside the workspace");let e=await (0,d.stat)(b).catch(()=>null);e||(0,g.publicError)("File not found"),e.isFile()||(0,g.publicError)("That is a folder, not a file"),await (0,d.rm)(b)}async function i(){let a=(0,e.join)(c.WORKSPACE,f.PATHS.scratch);for(let b of(await (0,d.readdir)(a).catch(()=>[])))await (0,d.rm)((0,e.join)(a,b),{recursive:!0,force:!0})}a.i(684321);var j=a.i(225689),k=a.i(874533),l=a.i(812057);let m={darwin:a=>["open",[a]],win32:a=>["cmd.exe",["/c","start","",a]],linux:a=>["xdg-open",[a]]};async function n(a){await (0,d.access)(a);let b=m[process.platform]?.(a);if(!b)throw Error(`Opening files is not wired up on ${process.platform}.`);let[c,e]=b;await (0,l.promisify)(k.execFile)(c,e,{windowsHide:!0})}var o=a.i(182248),p=a.i(713095);let q=(0,j.serverAction)(async a=>{let b=a.trim();b||(0,g.publicError)("Which file?");let d=(await (0,c.openWorkspace)()).resolve(b);try{await n(d)}catch(a){(0,g.publicError)(`Could not open ${b}: ${(0,o.errorToString)(a)}`)}}),r=(0,j.serverAction)(async a=>{let b=a.trim();b||(0,g.publicError)("Which file?"),await h(b)}),s=(0,j.serverAction)(async()=>i());(0,p.ensureServerEntryExports)([q,r,s]),(0,b.registerServerReference)(q,"7f647083e5350baa7762d6d282de825cdf6b737384",null),(0,b.registerServerReference)(r,"7f194293e4c1ab83ed63877cc9d8b7aebf42b46bb8",null),(0,b.registerServerReference)(s,"7f8836b516d90511f9ac2025e946c291a9cd0d8174",null),a.s(["deleteWorkspaceFileAction",0,r,"emptyScratchAction",0,s,"openFileAction",0,q],451208)},225689,a=>{"use strict";a.i(570396);var b=a.i(673727),c=a.i(975160),d=a.i(176668),e=a.i(293480);let f=a=>!!a&&"object"==typeof a&&(!0===a.$ok||!1===a.$ok),g=a=>f(a)&&a.$ok,h=a=>({$ok:!0,data:a}),i=a=>({$ok:!1,message:a});async function j(a){try{let b=h(await a());for(;g(b)&&f(b.data);)b=b.data;return b}catch(a){if((0,b.unstable_rethrow)(a),(0,e.isPublicError)(a))return i(a.message);if(a instanceof c.ZodError)return i(a.issues[0]?.message);if(f(a)&&!a.$ok)return a;return d.logger.error(a),i()}}a.s(["serverAction",0,a=>(...b)=>j(()=>a(...b))],225689)},293480,a=>{"use strict";class b extends Error{message;constructor(a){super(a),this.message=a}}a.s(["isPublicError",0,a=>a instanceof b,"publicError",0,function(a){throw new b(a)}])},832030,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_node_readline_1u65a-m._.js","server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_1j4x-_j._.js"].map(b=>a.l(b))).then(()=>b(322479)))},713095,(a,b,c)=>{"use strict";function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
|
|
2
|
+
Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},137936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(211857)}];
|
|
3
|
+
|
|
4
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__1ox7hbk._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},59639,(a,b,c)=>{b.exports=a.x("node:process",()=>require("node:process"))},545097,a=>{"use strict";var b=a.i(187924),c=a.i(497895);let d={muted:{rest:"text-muted-foreground",band:"via-foreground"},waiting:{rest:c.WAITING_INK,band:"via-amber-950 dark:via-amber-100"}};a.s(["ShinyText",0,function({text:a,tone:e="muted",speed:f=2.4,className:g}){let{rest:h,band:i}=d[e];return(0,b.jsxs)("span",{"data-slot":"shiny-text",className:(0,c.cn)("relative inline-block max-w-full",h,g),children:[a,(0,b.jsx)("span",{"aria-hidden":!0,style:{animationDuration:`${f}s`},className:(0,c.cn)("pointer-events-none absolute inset-0 animate-shine overflow-hidden bg-linear-120 from-transparent from-35% via-50% to-transparent to-65% bg-size-[200%_auto] bg-clip-text text-transparent p-[inherit] select-none [text-overflow:inherit] motion-reduce:hidden",i),children:a})]})}])},287702,a=>{"use strict";process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),process.env.THURSDAY_HOME?.trim()||process.cwd(),process.env.THURSDAY_URL?.trim()||process.env.PORT?.trim();let b=".ai-workspace",c={workspace:b,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${b}/.agents/skills`}};a.s(["APP_NAME",0,"Thursday","ARTIFACT_VIEW",0,{rows:200,setFiles:120},"ASCII_FACE",0,{charset:"emojiOnly",fontSize:{default:8,min:4,max:16},density:{default:1.4,min:.6,max:2}},"BOT_RUN",0,{steps:100,compactAt:5e5,compactHeadroom:.8,summaryWords:{min:600,max:3e3,perTokens:200},depth:2,askBack:3,silenceMs:3e5,autoResumes:3,retryAfterMs:[3e4,12e4,3e5],overflowShrink:.6,compactFiles:40},"BROWSER_SKILL",0,"browser","CALL_HISTORY_PAGE",0,10,"IS_DEV",0,!1,"PAGE_SIZE",0,50,"PATHS",0,c,"PROMPT_CROWDED",0,{bots:10,skills:20},"STUDIO_SERVER",0,"studio","WORKSPACE_VIEW",0,{rows:200,textMax:524288,elementMax:0x3200000}])},421042,a=>{"use strict";a.s(["STUDIO_TOOLS",0,{generate_image:"generate_image",generate_speech:"generate_speech",transcribe:"transcribe",generate_video:"generate_video"},"TOOL_NAMES",0,{memory_recall:"memory_recall",memory_remember:"memory_remember",memory_forget:"memory_forget",memory_show:"memory_show",memory_conversation:"memory_conversation",bash:"bash",write_file:"write_file",tool_search:"tool_search",tool_call:"tool_call",load_skill:"load_skill",web_search:"web_search",delegate:"delegate",task:"task",ask_bot:"ask_bot",ask_thursday:"ask_thursday",ask_back:"ask_back",answer:"answer",end_call:"end_call"}])},139329,a=>{"use strict";var b=a.i(156757),c=a.i(199169);let d=b.z.enum(["user","call","bot"]),e=b.z.object({id:b.z.number(),text:b.z.string(),alwaysLoad:b.z.boolean(),source:d.nullish(),createdAt:c.DateLikeSchema});b.z.object({id:b.z.number(),path:b.z.string(),description:b.z.string(),aliases:b.z.string().array().nullish(),ownedByUser:b.z.boolean(),hits:b.z.number(),lastReadAt:c.DateLikeSchema.nullable(),createdAt:c.DateLikeSchema,updatedAt:c.DateLikeSchema,factCount:b.z.number(),facts:e.array()});let f=[{path:"profile",of:"The user themselves — their name, age, what they do, where they live, and whatever else says who they are"},{path:"preferences",of:"How they want things done, and said"},{path:"people/",of:"Someone in their life, and what matters about them"},{path:"projects/",of:"Something with an end — a trip, a purchase, a deadline, a thing being built"},{path:"topics/",of:"Something ongoing that keeps coming back"},{path:"inbox",of:"Nowhere obvious yet"}],g=f.filter(a=>!a.path.endsWith("/")).map(a=>a.path),h=f.filter(a=>a.path.endsWith("/")).map(a=>a.path.slice(0,-1));RegExp(`^(?:${g.join("|")}|(?:${h.join("|")})/.+)$`);let i=["profile","preferences"];[...i],a.s(["isFading",0,function(a){let b,d,e;return b=a.path,!i.includes(b)&&.15>(d=(0,c.toDate)(a.lastReadAt??a.createdAt),e=Math.max(0,(Date.now()-d.getTime())/864e5),(a.hits+1)/(1+e))},"memorySourceLabel",0,a=>"user"===a?"you":"call"===a?"on a call":"bot"===a?"a bot":"","noteTitle",0,function(a){let b=a.indexOf("/");return -1===b?a:a.slice(b+1)},"sectionOf",0,function(a){if("profile"===a||"preferences"===a)return"you";let b=a.slice(0,a.indexOf("/"));return h.includes(b)?b:"inbox"}])},16966,a=>{"use strict";var b=a.i(572131),c=a.i(801811),d=a.i(559539),e=a.i(492403);a.s(["useCompositeItem",0,function(a={}){let{highlightItemOnHover:f,highlightedIndex:g,onHighlightedIndexChange:h}=(0,d.useCompositeRootContext)(),{ref:i,index:j}=(0,e.useCompositeListItem)(a),k=g===j,l=b.useRef(null),m=(0,c.useMergedRefs)(i,l);return{compositeProps:{tabIndex:k?0:-1,onFocus(){h(j)},onMouseMove(){let a=l.current;if(!f||!a)return;let b=a.hasAttribute("disabled")||"true"===a.ariaDisabled;k||b||a.focus()}},compositeRef:m,index:j}}])},579923,a=>{"use strict";var b=a.i(572131),c=a.i(779549),d=a.i(854401),e=a.i(357738),f=a.i(909392),g=a.i(187924);function h(){return new Map}function i(){return new Set}function j(a,b){return a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}a.s(["CompositeList",0,function(a){let{children:k,elementsRef:l,labelsRef:m,onMapChange:n}=a,o=(0,d.useStableCallback)(n),[,p]=b.useState(!1),q=(0,c.useRefWithInit)(i).current,r=(0,c.useRefWithInit)(h).current,s=b.useRef(0),t=b.useRef(!0),u=b.useRef(null),v=b.useRef(null),w=(0,d.useStableCallback)(()=>{t.current||(t.current=!0,p(a=>!a))}),x=(0,d.useStableCallback)((a,b)=>{r.set(a,b),w()}),y=(0,d.useStableCallback)(a=>{r.delete(a),w()}),z=(0,d.useStableCallback)(a=>{let b=new Map;return l.current.length=0,m&&(m.current.length=0),a.forEach(a=>{b.set(a.element,{...a.registration.metadata??{},index:a.index}),l.current[a.index]=a.element,m&&(m.current[a.index]=void 0!==a.registration.label?a.registration.label:a.registration.textRef?.current?.textContent??a.element.textContent)}),s.current=l.current.length,b}),A=(0,d.useStableCallback)(()=>{var a;let b,c,d,e,[f,g]=(a=r,b=new Set,c=[],d=[],a.forEach((a,e)=>{if(!e.isConnected)return;let f=a.index,g={index:f??-1,element:e,registration:a};null===f?d.push(g):f>=0&&(b.add(f),c.push(g))}),e=0,d.sort((a,b)=>j(a.element,b.element)),d.forEach(a=>{for(;b.has(e);)e+=1;a.index=e,c.push(a),e+=1}),b.size>0&&c.sort((a,b)=>a.index-b.index),[c,d.map(a=>a.element)]),h=z(f),i=u.current,k=!i||i.length!==f.length||f.some((a,b)=>{let c=i[b];return a.index!==c.index||a.element!==c.element||a.registration.index!==c.registration.index||a.registration.metadata!==c.registration.metadata});!function(a){if(v.current?.disconnect(),v.current=null,"function"!=typeof MutationObserver||a.length<2)return;let b=new MutationObserver(c=>{if(!function(a){for(let b of a)for(let a=0;a<b.removedNodes.length;a+=1)if(b.removedNodes[a].isConnected)return!0;return!1}(c))return;let d=null;for(let c of a)if(c.isConnected){if(d&&j(d,c)>0){b.disconnect(),w();return}d=c}});v.current=b;let c=new Set;for(let b=1;b<a.length;b+=1){let d=function(a,b){let c=a.parentElement;for(;c&&!c.contains(b);)c=c.parentElement;return c}(a[b-1],a[b]);d&&c.add(d)}c.forEach(a=>b.observe(a,{childList:!0}))}(g),u.current=f,t.current=!1,k&&(q.forEach(a=>a(h)),o(h))});(0,e.useIsoLayoutEffect)(()=>(!t.current&&u.current&&z(u.current),()=>{l.current=[],m&&(m.current=[])}),[l,m,z]),(0,e.useIsoLayoutEffect)(()=>{t.current&&A()}),(0,e.useIsoLayoutEffect)(()=>()=>{v.current?.disconnect(),t.current=!0},[]);let B=(0,d.useStableCallback)(a=>(q.add(a),()=>{q.delete(a)})),C=b.useMemo(()=>({register:x,unregister:y,subscribeMapChange:B,nextIndexRef:s}),[x,y,B,s]);return(0,g.jsx)(f.CompositeListContext.Provider,{value:C,children:k})}])},909392,a=>{"use strict";var b=a.i(572131);let c=b.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});a.s(["CompositeListContext",0,c,"useCompositeListContext",0,function(){return b.useContext(c)}])},492403,a=>{"use strict";var b=a.i(572131),c=a.i(357738),d=a.i(909392);a.s(["useCompositeListItem",0,function(a={}){let{guess:e,label:f,metadata:g,textRef:h,index:i}=a,{register:j,unregister:k,subscribeMapChange:l,nextIndexRef:m}=(0,d.useCompositeListContext)(),n=b.useRef(-1),[o,p]=b.useState(null==i&&e?()=>{if(-1===n.current){let a=m.current;m.current+=1,n.current=a}return n.current}:-1),q=i??o,r=b.useRef(null),s=b.useCallback(a=>{let b=r.current;b&&k(b),r.current=a,a&&j(a,{metadata:g??null,index:i??null,label:f,textRef:h})},[i,j,k,g,f,h]);return(0,c.useIsoLayoutEffect)(()=>{if(null==i)return l(a=>{let b=r.current?a.get(r.current)?.index:null;null!=b&&p(b)})},[i,l]),{ref:s,index:q}}])},118816,a=>{"use strict";var b=a.i(572131),c=a.i(926184);let d=b.forwardRef(function(a,b){let{className:d,render:e,orientation:f="horizontal",style:g,...h}=a;return(0,c.useRenderElement)("div",a,{state:{orientation:f},ref:b,props:[{role:"separator","aria-orientation":f},h]})});a.s(["Separator",0,d])},144501,a=>{"use strict";var b=a.i(20265),c=a.i(426476);a.s(["getCssDimensions",0,function(a){let d=(0,c.getComputedStyle)(a),e=parseFloat(d.width)||0,f=parseFloat(d.height)||0,g=(0,c.isHTMLElement)(a),h=g?a.offsetWidth:e,i=g?a.offsetHeight:f;return((0,b.round)(e)!==h||(0,b.round)(f)!==i)&&(e=h,f=i),{width:e,height:f}}])},327598,a=>{"use strict";var b=a.i(164831);let c={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};c.node;let d=(0,b.default)(c);a.s(["ArrowUp",0,d],327598)},689594,a=>{"use strict";var b=a.i(164831);let c={name:"book-marked",size:24,node:[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]};c.node;let d=(0,b.default)(c);a.s(["BookMarked",0,d],689594)},589027,a=>{"use strict";var b=a.i(164831);let c={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};c.node;let d=(0,b.default)(c);a.s(["ChevronDown",0,d],589027)},707963,a=>{"use strict";var b=a.i(164831);let c={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};c.node;let d=(0,b.default)(c);a.s(["ChevronLeft",0,d],707963)},199968,a=>{"use strict";var b=a.i(164831);let c={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};c.node;let d=(0,b.default)(c);a.s(["default",0,d])},141146,a=>{"use strict";var b=a.i(199968);a.s(["ChevronRight",()=>b.default])},168370,a=>{"use strict";var b=a.i(164831);let c={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};c.node;let d=(0,b.default)(c);a.s(["ExternalLink",0,d],168370)},707938,a=>{"use strict";var b=a.i(164831);let c={name:"file-braces",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:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};c.node;let d=(0,b.default)(c);a.s(["FileJson",0,d],707938)},483138,a=>{"use strict";var b=a.i(164831);let c={name:"file-text",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:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};c.node;let d=(0,b.default)(c);a.s(["FileText",0,d],483138)},998697,a=>{"use strict";var b=a.i(164831);let c={name:"file",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"}]]};c.node;let d=(0,b.default)(c);a.s(["File",0,d],998697)},844561,a=>{"use strict";var b=a.i(164831);let c={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};c.node;let d=(0,b.default)(c);a.s(["FolderOpen",0,d],844561)},696732,a=>{"use strict";var b=a.i(164831);let c={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};c.node;let d=(0,b.default)(c);a.s(["Globe",0,d],696732)},71215,a=>{"use strict";var b=a.i(164831);let c={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};c.node;let d=(0,b.default)(c);a.s(["Image",0,d],71215)},875160,a=>{"use strict";var b=a.i(702918);a.s(["Loader2",()=>b.default])},474215,a=>{"use strict";var b=a.i(176965);a.s(["X",()=>b.default])},53467,a=>{"use strict";var b=a.i(261234),c=a.i(539110);a.i(975930);var d=a.i(671731),e=(0,c.__name)(a=>{let{securityLevel:c}=(0,b.getConfig2)(),e=(0,d.select)("body");if("sandbox"===c){let b=(0,d.select)(`#i${a}`),c=b.node()?.contentDocument??document;e=(0,d.select)(c.body)}return e.select(`#${a}`)},"selectSvgElement");a.s(["selectSvgElement",0,e])},882458,a=>{"use strict";var b=a.i(416635),c=a.i(43429),d=a.i(428212),e=a.i(916573),f=a.i(887370),g=a.i(261234),h=a.i(875117),i=a.i(539110),j={common:g.common_default,getConfig:g.getConfig,insertCluster:b.insertCluster,insertEdge:c.insertEdge,insertEdgeLabel:c.insertEdgeLabel,insertMarkers:c.markers_default,insertNode:d.insertNode,interpolateToCurve:f.interpolateToCurve,labelHelper:e.labelHelper,log:h.log,positionEdgeLabel:c.positionEdgeLabel},k={},l=(0,i.__name)(a=>{for(let b of a)k[b.name]=b},"registerLayoutLoaders");(0,i.__name)(()=>{l([{name:"dagre",loader:(0,i.__name)(async()=>await a.A(390118),"loader")},{name:"swimlane",loader:(0,i.__name)(async()=>await a.A(860094),"loader")},{name:"cose-bilkent",loader:(0,i.__name)(async()=>await a.A(989520),"loader")}])},"registerDefaultLayoutLoaders")();var m=(0,i.__name)(async(a,b)=>{if(!(a.layoutAlgorithm in k))throw Error(`Unknown layout algorithm: ${a.layoutAlgorithm}`);if(a.diagramId)for(let b of a.nodes){let c=b.domId||b.id;b.domId=`${a.diagramId}-${c}`}let c=k[a.layoutAlgorithm],d=await c.loader(),{theme:e,themeVariables:f}=a.config,{useGradient:g,gradientStart:h,gradientStop:i}=f,l=b.attr("id");if(b.append("defs").append("filter").attr("id",`${l}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${e?.includes("dark")?"#FFFFFF":"#000000"}`),b.append("defs").append("filter").attr("id",`${l}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${e?.includes("dark")?"#FFFFFF":"#000000"}`),g){let a=b.append("linearGradient").attr("id",b.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");a.append("svg:stop").attr("offset","0%").attr("stop-color",h).attr("stop-opacity",1),a.append("svg:stop").attr("offset","100%").attr("stop-color",i).attr("stop-opacity",1)}return d.render(a,b,j,{algorithm:c.algorithm})},"render"),n=(0,i.__name)((a="",{fallback:b="dagre"}={})=>{if(a in k)return a;if(b in k)return h.log.warn(`Layout algorithm ${a} is not registered. Using ${b} as fallback.`),b;throw Error(`Both layout algorithms ${a} and ${b} are not registered.`)},"getRegisteredLayoutAlgorithm");a.s(["getRegisteredLayoutAlgorithm",0,n,"registerLayoutLoaders",0,l,"render",0,m])},869789,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(120635),g=a.r(556704),h=a.r(832319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__1pduf5n._.js.map
|