thursday-agent 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/keep-working/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +1 -1
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/probe/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js +11 -11
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js +6 -6
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js +11 -11
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +6 -6
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next/server/app/page/server-reference-manifest.json +56 -56
- package/.next/server/app/page.js +3 -3
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__012s2o8._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__04r4h-2._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0mrk2it._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0nmhgeo._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1fy2g82._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1nmflqk._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1v7-zke._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1wnzmx9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1xv-5cq._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ygplx1._.js +1 -1
- package/.next/server/chunks/_05v8k21._.js +1 -1
- package/.next/server/chunks/_0awtznl._.js +4 -4
- package/.next/server/chunks/_0k6qjcf._.js +1 -1
- package/.next/server/chunks/_0na2fj1._.js +5 -5
- package/.next/server/chunks/_0x-ej3f._.js +21 -21
- package/.next/server/chunks/_1dc_d1q._.js +22 -20
- package/.next/server/chunks/_1jc5g4p._.js +2 -2
- package/.next/server/chunks/_1jn-aep._.js +50 -48
- package/.next/server/chunks/{_1u8ygbz._.js → _1m88lkh._.js} +7 -7
- package/.next/server/chunks/_1uuucy-._.js +4 -4
- package/.next/server/chunks/_1v9r2ke._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1h4bnrf._.js → [root-of-the-server]__0oo-wlv._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1kyi568._.js → [root-of-the-server]__0tvavy9._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0tzekbl._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0zuns7e._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1se25x0._.js +1 -1
- package/.next/server/chunks/ssr/{_1i3ddn7._.js → _05pl_u8._.js} +1 -1
- package/.next/server/chunks/ssr/_070nv1_._.js +3 -0
- package/.next/server/chunks/ssr/_097-ljd._.js +1 -1
- package/.next/server/chunks/ssr/_0dshsh4._.js +3 -0
- package/.next/server/chunks/ssr/_0fqhhwi._.js +1 -1
- package/.next/server/chunks/ssr/{_0z8jpch._.js → _0ital-2._.js} +2 -2
- package/.next/server/chunks/ssr/{_19g570d._.js → _0kjj5ts._.js} +3 -3
- package/.next/server/chunks/ssr/{_1nod5hh._.js → _0l_mcfz._.js} +2 -2
- package/.next/server/chunks/ssr/_0ld9_qq._.js +1 -1
- package/.next/server/chunks/ssr/_0ltz2q5._.js +3 -0
- package/.next/server/chunks/ssr/_0scf7xy._.js +3 -0
- package/.next/server/chunks/ssr/_0u5xv6g._.js +3 -0
- package/.next/server/chunks/ssr/{_0ewory0._.js → _0urj3mc._.js} +2 -2
- package/.next/server/chunks/ssr/{_0pm-2p-._.js → _1-zyvdb._.js} +2 -2
- package/.next/server/chunks/ssr/{_1_rqu8x._.js → _12mijol._.js} +7 -7
- package/.next/server/chunks/ssr/_15zqt-t._.js +1 -1
- package/.next/server/chunks/ssr/_184327j._.js +1 -1
- package/.next/server/chunks/ssr/{_1y-ea28._.js → _1a-nuxx._.js} +2 -2
- package/.next/server/chunks/ssr/_1alxym6._.js +3 -0
- package/.next/server/chunks/ssr/{_0hzz82u._.js → _1d423aj._.js} +25 -23
- package/.next/server/chunks/ssr/{_1u1mxu9._.js → _1flbs77._.js} +2 -2
- package/.next/server/chunks/ssr/_1mqn9mc._.js +1 -1
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/{_1oijqjw._.js → _1tmu8z-._.js} +2 -2
- package/.next/server/chunks/ssr/{_10y6r1n._.js → _1uy0xom._.js} +3 -3
- package/.next/server/chunks/ssr/_1x-kojb._.js +20 -0
- package/.next/server/chunks/ssr/_1xoch6f._.js +1 -1
- package/.next/server/chunks/ssr/_1z74dmq._.js +164 -0
- package/.next/server/chunks/ssr/features_bot_1nr94ks._.js +3 -0
- package/.next/server/chunks/ssr/features_bot_1s_-2vj._.js +1 -1
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +1 -1
- package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_111sh9o._.js → node_modules_03d0rfz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0lg75qx._.js → node_modules_04_sbbc._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_10gbm2y._.js → node_modules_05ybmta._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1v9tc1c._.js → node_modules_068ws5v._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1_8mv4v._.js → node_modules_06bb4q8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01f8_se._.js → node_modules_07rs_p2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ii1l89._.js → node_modules_0dzm4um._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_20xmwtu._.js → node_modules_0jljel9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1ix-g49._.js → node_modules_0sgy-dc._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0woscox._.js → node_modules_0t_ez6-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_059vtf2._.js → node_modules_0th357h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_06w645b._.js → node_modules_0ubdtk-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0b8df3s._.js → node_modules_0uyh_vb._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_07ih6wb._.js → node_modules_0wnlddw._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0gt-uw9._.js → node_modules_0x630an._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1x825hz._.js → node_modules_0yvz9e0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0t-44lj._.js → node_modules_12et8d5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1m3gb16._.js → node_modules_13kwejm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1p9rdsy._.js → node_modules_1af3w91._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0sz5yg1._.js → node_modules_1bucjlk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1teyzfa._.js → node_modules_1lkix61._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1lsyy7k._.js → node_modules_1ogczzz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1-7qawg._.js → node_modules_1s-gb-1._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0yv-re6._.js → node_modules_1uwg-gz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_03ptrl9._.js → node_modules_1wbkzl9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_00jv9_3._.js → node_modules_1z1lrbk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@base-ui_react_0jne69c._.js → node_modules_@base-ui_react_0buz1-j._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00q1oa3._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0r443fh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1-2_5z7._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_10wnlbk._.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 +57 -57
- package/.next/static/chunks/06nt9tatr-dug.js +1 -0
- package/.next/static/chunks/0_awn8tucznxc.js +1 -0
- package/.next/static/chunks/{34s52v8f841zo.js → 0ge-hx0ed83a1.js} +1 -1
- package/.next/static/chunks/0pda_vf-abwvx.js +1 -0
- package/.next/static/chunks/{2u9yjkpkoij75.js → 0qmd8n52hp-6v.js} +1 -1
- package/.next/static/chunks/0rowp9rx3qbxu.js +18 -0
- package/.next/static/chunks/{1ocy4w0v20a3v.js → 13ixzheqw7o-w.js} +2 -2
- package/.next/static/chunks/1grkt5gr8pbg1.js +17 -0
- package/.next/static/chunks/{21gf2t_whhurc.js → 1yugpvvi8qrbu.js} +2 -2
- package/.next/static/chunks/{1e4yrzs5evq_r.js → 245hb85nsy6j4.js} +1 -1
- package/.next/static/chunks/27lkanxvtdn09.js +1 -0
- package/.next/static/chunks/{0oz7a68qanm99.js → 27tvv1i-smrck.js} +1 -1
- package/.next/static/chunks/{2zhfdbq50ee5i.js → 2c64drdevdla3.js} +1 -1
- package/.next/static/chunks/{0k5tkt_qi52kb.js → 2ndw4w4u2x51r.js} +1 -1
- package/.next/static/chunks/37j27b3e1gt7r.js +1 -0
- package/.next/static/chunks/{2om4lkg86feb4.js → 38301ji-85i30.js} +1 -1
- package/.next/static/chunks/{09c13vnqy7al3.js → 3bbzsitgiltnt.js} +2 -2
- package/.next/static/chunks/3fec-aeteddr-.js +1 -0
- package/.next/static/chunks/3go3hwp1z2_h2.css +1 -0
- package/.next/static/chunks/3h2bun3hcggg8.js +1 -0
- package/.next/static/chunks/{0g1p98s2pfx2w.js → 3h2e-xv1zxh_f.js} +2 -2
- package/.next/static/chunks/3j1y335o95mj7.js +1 -0
- package/.next/static/chunks/3obf9n3cxj99k.js +1 -0
- package/.next/static/chunks/{2upc9mkcc3nlq.js → 427qsc6kahxyo.js} +1 -1
- package/README.md +31 -14
- package/bin/port.mjs +11 -7
- package/bin/thursday.mjs +1 -1
- package/components/ui/radio-group.tsx +2 -2
- package/components/ui/shiny-text.tsx +3 -22
- package/docs/how-it-works.md +11 -3
- package/docs/images/first-run.png +0 -0
- package/docs/images/keeps-going.png +0 -0
- package/docs/images/two-minds.png +0 -0
- package/features/ai/components/model-browser.tsx +1 -1
- package/features/ai/components/model-picker.tsx +1 -1
- package/features/ai/guide.ts +9 -4
- package/features/ai/prompts/bot.prompt.ts +4 -1
- package/features/ai/tools/routine.tool.ts +28 -16
- package/features/bot/bot.runner.ts +3 -1
- package/features/bot/components/bot-mark.tsx +6 -1
- package/features/bot/components/bot-setting.tsx +2 -4
- package/features/bot/components/bot-tool.tsx +2 -0
- package/features/bot/components/room-list.tsx +12 -3
- package/features/bot/components/room-pill.tsx +26 -19
- package/features/config/components/config-setting.tsx +17 -5
- package/features/config/components/voice-key.tsx +38 -18
- package/features/connectors/mcp.const.ts +90 -59
- package/features/intro/components/intro.tsx +50 -27
- package/features/routine/components/routine-mark.tsx +4 -6
- package/features/routine/components/routine-setting.tsx +332 -143
- package/features/routine/routine.query.ts +24 -3
- package/features/routine/routine.schema.ts +55 -4
- package/features/settings/components/install-app.tsx +1 -4
- package/features/settings/components/setting-ui.tsx +1 -1
- package/features/skills/skills.discover.ts +2 -1
- package/features/skills/skills.query.ts +5 -1
- package/features/skills/skills.schema.ts +2 -0
- package/features/thursday/components/ascii-orb.tsx +39 -10
- package/features/thursday/components/connect-wave.tsx +284 -0
- package/features/thursday/components/side-captions.tsx +29 -17
- package/features/thursday/components/thursday-setting.tsx +2 -2
- package/features/thursday/components/thursday.tsx +130 -58
- package/features/thursday/components/voice-picker.tsx +1 -1
- package/features/thursday/components/write-line.tsx +2 -2
- package/features/thursday/open-work.ts +11 -3
- package/features/thursday/tool-line.ts +94 -12
- package/features/thursday/use-text-call.ts +3 -2
- package/features/thursday/use-thursday.ts +5 -2
- package/features/workspace/components/artifact-view.tsx +129 -7
- package/guide/bots.md +17 -5
- package/guide/calls.md +15 -7
- package/guide/setup.md +10 -2
- package/lib/desktop-notify.ts +3 -2
- package/package.json +1 -1
- package/scripts/bot-context.test.mts +1 -1
- package/skills/computer/SKILL.md +1 -0
- package/skills/interactive-page/SKILL.md +4 -0
- package/.next/server/chunks/[root-of-the-server]__0n-l_n_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0wvo2of._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1e6aut3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ziojdq._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1srp8l5._.js +0 -3
- package/.next/server/chunks/ssr/_0mes4s0._.js +0 -3
- package/.next/server/chunks/ssr/_0ya0cb0._.js +0 -3
- package/.next/server/chunks/ssr/_0yto5s7._.js +0 -20
- package/.next/server/chunks/ssr/_10dw2nv._.js +0 -3
- package/.next/server/chunks/ssr/_1p0gxeo._.js +0 -164
- package/.next/server/chunks/ssr/_1r41yvh._.js +0 -3
- package/.next/server/chunks/ssr/_1r79ksv._.js +0 -3
- package/.next/server/chunks/ssr/features_bot_1ogjt52._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_@base-ui_react_0b3d4m9._.js +0 -3
- package/.next/static/chunks/03omwz_vi2ndg.js +0 -1
- package/.next/static/chunks/0_1bqgd6wt_og.js +0 -1
- package/.next/static/chunks/0abgkzikaznxc.js +0 -1
- package/.next/static/chunks/0bddkpash59-o.js +0 -17
- package/.next/static/chunks/0c2-bzhy3a0ib.js +0 -1
- package/.next/static/chunks/0iilfb1ocevnx.js +0 -1
- package/.next/static/chunks/0imbhx-j830a_.css +0 -1
- package/.next/static/chunks/24h1y9dhy3m_2.js +0 -1
- package/.next/static/chunks/2be08eqxsfc1y.js +0 -1
- package/.next/static/chunks/2d3yhjtafgmtw.js +0 -1
- package/.next/static/chunks/2f_5saocsko_b.js +0 -1
- package/.next/static/chunks/2lwbr5vx0ixaj.js +0 -18
- package/.next/static/chunks/44kjmi5h_p8px.js +0 -1
- /package/.next/static/{UiOMPYpQ4fqGyu5PzS-7j → u8kJqShUAa49vY7BxAWsw}/_buildManifest.js +0 -0
- /package/.next/static/{UiOMPYpQ4fqGyu5PzS-7j → u8kJqShUAa49vY7BxAWsw}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{UiOMPYpQ4fqGyu5PzS-7j → u8kJqShUAa49vY7BxAWsw}/_ssgManifest.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"node": {
|
|
3
|
-
"
|
|
3
|
+
"7fe4ca0025887ef75a28b09d987a6cc0562a30794b": {
|
|
4
4
|
"workers": {
|
|
5
5
|
"app/page": {
|
|
6
6
|
"moduleId": 363531,
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"filename": "features/config/config.action.ts",
|
|
12
12
|
"exportedName": "setConfigAction"
|
|
13
13
|
},
|
|
14
|
-
"
|
|
14
|
+
"7f3cf6b1793082312db7b2fd7c85ff203efbeb9ed4": {
|
|
15
15
|
"workers": {
|
|
16
16
|
"app/page": {
|
|
17
17
|
"moduleId": 363531,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"filename": "features/config/config.action.ts",
|
|
23
23
|
"exportedName": "startChatGptSignInAction"
|
|
24
24
|
},
|
|
25
|
-
"
|
|
25
|
+
"7fe5490edefe26bbd6ca2aad6d89e46ca9383af8e3": {
|
|
26
26
|
"workers": {
|
|
27
27
|
"app/page": {
|
|
28
28
|
"moduleId": 363531,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"filename": "features/bot/bot.action.ts",
|
|
34
34
|
"exportedName": "createSeedBotsAction"
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"7f12f52e553a4bf45ff738281dbe08b3fb64a18949": {
|
|
37
37
|
"workers": {
|
|
38
38
|
"app/page": {
|
|
39
39
|
"moduleId": 363531,
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"filename": "features/config/config.action.ts",
|
|
45
45
|
"exportedName": "removeConfigAction"
|
|
46
46
|
},
|
|
47
|
-
"
|
|
47
|
+
"7f0f56959a962aa9afdd9e960a43559dc1e57c384b": {
|
|
48
48
|
"workers": {
|
|
49
49
|
"app/page": {
|
|
50
50
|
"moduleId": 363531,
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"filename": "features/reach/reach.action.ts",
|
|
56
56
|
"exportedName": "forgetReachAction"
|
|
57
57
|
},
|
|
58
|
-
"
|
|
58
|
+
"7f528f2137f59470c5f0ef1a3a8db7a60163b5cd11": {
|
|
59
59
|
"workers": {
|
|
60
60
|
"app/page": {
|
|
61
61
|
"moduleId": 363531,
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"filename": "features/bot/bot.action.ts",
|
|
67
67
|
"exportedName": "answerThreadAction"
|
|
68
68
|
},
|
|
69
|
-
"
|
|
69
|
+
"7f03a72fd8ed1d45bbf0b7f8f4469d10023619ae6f": {
|
|
70
70
|
"workers": {
|
|
71
71
|
"app/page": {
|
|
72
72
|
"moduleId": 363531,
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"filename": "features/bot/bot.action.ts",
|
|
78
78
|
"exportedName": "cancelThreadAction"
|
|
79
79
|
},
|
|
80
|
-
"
|
|
80
|
+
"7fafffef7f5ddff042f88ebc845340a5c6cac7bbba": {
|
|
81
81
|
"workers": {
|
|
82
82
|
"app/page": {
|
|
83
83
|
"moduleId": 363531,
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"filename": "features/bot/bot.action.ts",
|
|
89
89
|
"exportedName": "withdrawStepInAction"
|
|
90
90
|
},
|
|
91
|
-
"
|
|
91
|
+
"7f969d744615558389e49a38b007fca870d7856f39": {
|
|
92
92
|
"workers": {
|
|
93
93
|
"app/page": {
|
|
94
94
|
"moduleId": 363531,
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"filename": "features/bot/bot.action.ts",
|
|
100
100
|
"exportedName": "markSeenAction"
|
|
101
101
|
},
|
|
102
|
-
"
|
|
102
|
+
"7fae66a0d5faa8a35f076c4c73c00631832f637565": {
|
|
103
103
|
"workers": {
|
|
104
104
|
"app/page": {
|
|
105
105
|
"moduleId": 363531,
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"filename": "features/signins/signins.action.ts",
|
|
111
111
|
"exportedName": "setSignInBotAction"
|
|
112
112
|
},
|
|
113
|
-
"
|
|
113
|
+
"7fe2d70a70024f0fa498ebfe3c0e167bd1c00b608e": {
|
|
114
114
|
"workers": {
|
|
115
115
|
"app/page": {
|
|
116
116
|
"moduleId": 363531,
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"filename": "features/workspace/workspace.action.ts",
|
|
122
122
|
"exportedName": "giveFilesAction"
|
|
123
123
|
},
|
|
124
|
-
"
|
|
124
|
+
"7f1bea5380a307b807a64d5494b95f438f73b84926": {
|
|
125
125
|
"workers": {
|
|
126
126
|
"app/page": {
|
|
127
127
|
"moduleId": 363531,
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"filename": "features/bot/bot.action.ts",
|
|
133
133
|
"exportedName": "compactThreadAction"
|
|
134
134
|
},
|
|
135
|
-
"
|
|
135
|
+
"7f284980eddf0dc50d6dc014ce41f10d9aaa77294a": {
|
|
136
136
|
"workers": {
|
|
137
137
|
"app/artifact/[...path]/page": {
|
|
138
138
|
"moduleId": 701876,
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"filename": "features/workspace/workspace.action.ts",
|
|
149
149
|
"exportedName": "openFileAction"
|
|
150
150
|
},
|
|
151
|
-
"
|
|
151
|
+
"7f32b4bee4dbad000bc8017f0a9d78d688106dd349": {
|
|
152
152
|
"workers": {
|
|
153
153
|
"app/page": {
|
|
154
154
|
"moduleId": 363531,
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"filename": "features/memory/memory.action.ts",
|
|
160
160
|
"exportedName": "addFactsAction"
|
|
161
161
|
},
|
|
162
|
-
"
|
|
162
|
+
"7fbe28e5e0f298648026a88c55afae8f760e35ab01": {
|
|
163
163
|
"workers": {
|
|
164
164
|
"app/page": {
|
|
165
165
|
"moduleId": 363531,
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"filename": "features/memory/memory.action.ts",
|
|
171
171
|
"exportedName": "createNoteAction"
|
|
172
172
|
},
|
|
173
|
-
"
|
|
173
|
+
"7f1ff41ed843d7940bf53ed5f354252aa4f6ffd46b": {
|
|
174
174
|
"workers": {
|
|
175
175
|
"app/page": {
|
|
176
176
|
"moduleId": 363531,
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
"filename": "features/memory/memory.action.ts",
|
|
182
182
|
"exportedName": "deleteNoteAction"
|
|
183
183
|
},
|
|
184
|
-
"
|
|
184
|
+
"7ff7c3db8b4cf8739b10e17fbd47b1aa1dbe492047": {
|
|
185
185
|
"workers": {
|
|
186
186
|
"app/page": {
|
|
187
187
|
"moduleId": 363531,
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"filename": "features/memory/memory.action.ts",
|
|
193
193
|
"exportedName": "forgetFactAction"
|
|
194
194
|
},
|
|
195
|
-
"
|
|
195
|
+
"7fdbfcc59d39e08337aa61aaaf088a0570cceba437": {
|
|
196
196
|
"workers": {
|
|
197
197
|
"app/page": {
|
|
198
198
|
"moduleId": 363531,
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
"filename": "features/memory/memory.action.ts",
|
|
204
204
|
"exportedName": "reviseFactAction"
|
|
205
205
|
},
|
|
206
|
-
"
|
|
206
|
+
"7f815912a92651a576a95f03ebab717c68769254fa": {
|
|
207
207
|
"workers": {
|
|
208
208
|
"app/page": {
|
|
209
209
|
"moduleId": 363531,
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
"filename": "features/memory/memory.action.ts",
|
|
215
215
|
"exportedName": "setFactAlwaysLoadAction"
|
|
216
216
|
},
|
|
217
|
-
"
|
|
217
|
+
"7f47f28f779f3429cd440598830eb48af5df0c2394": {
|
|
218
218
|
"workers": {
|
|
219
219
|
"app/page": {
|
|
220
220
|
"moduleId": 363531,
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"filename": "features/memory/memory.action.ts",
|
|
226
226
|
"exportedName": "updateNoteAction"
|
|
227
227
|
},
|
|
228
|
-
"
|
|
228
|
+
"7f13d8faa34186e7365b3c63f374dbaa419688a25b": {
|
|
229
229
|
"workers": {
|
|
230
230
|
"app/page": {
|
|
231
231
|
"moduleId": 363531,
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"filename": "features/bot/bot.action.ts",
|
|
237
237
|
"exportedName": "createBotAction"
|
|
238
238
|
},
|
|
239
|
-
"
|
|
239
|
+
"7f0c22d8b471fffbf754a8f207752d6dd5e58a4b3f": {
|
|
240
240
|
"workers": {
|
|
241
241
|
"app/page": {
|
|
242
242
|
"moduleId": 363531,
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
"filename": "features/bot/bot.action.ts",
|
|
248
248
|
"exportedName": "deleteBotAction"
|
|
249
249
|
},
|
|
250
|
-
"
|
|
250
|
+
"7fd73c81876ad81d279b00590058941f2b4350d681": {
|
|
251
251
|
"workers": {
|
|
252
252
|
"app/page": {
|
|
253
253
|
"moduleId": 363531,
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"filename": "features/bot/bot.action.ts",
|
|
259
259
|
"exportedName": "setBotMemoryOnAction"
|
|
260
260
|
},
|
|
261
|
-
"
|
|
261
|
+
"7f41f79900aac180c6fead3a02f6cf64b02b399090": {
|
|
262
262
|
"workers": {
|
|
263
263
|
"app/page": {
|
|
264
264
|
"moduleId": 363531,
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
"filename": "features/bot/bot.action.ts",
|
|
270
270
|
"exportedName": "updateBotAction"
|
|
271
271
|
},
|
|
272
|
-
"
|
|
272
|
+
"7f0ce65e996cfa2473780a3cf0b38904069554f768": {
|
|
273
273
|
"workers": {
|
|
274
274
|
"app/page": {
|
|
275
275
|
"moduleId": 363531,
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
"filename": "features/bot/bot.action.ts",
|
|
281
281
|
"exportedName": "setKeepWorkingOnAction"
|
|
282
282
|
},
|
|
283
|
-
"
|
|
283
|
+
"7f386fcb5dafb367fade673d0783e6ab91d1cb713f": {
|
|
284
284
|
"workers": {
|
|
285
285
|
"app/page": {
|
|
286
286
|
"moduleId": 363531,
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
"filename": "features/workspace/workspace.action.ts",
|
|
292
292
|
"exportedName": "deleteWorkspaceFileAction"
|
|
293
293
|
},
|
|
294
|
-
"
|
|
294
|
+
"7f230b0357a8d6818091fb8981f424afd921f99b72": {
|
|
295
295
|
"workers": {
|
|
296
296
|
"app/page": {
|
|
297
297
|
"moduleId": 363531,
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
"filename": "features/bot/bot.action.ts",
|
|
303
303
|
"exportedName": "clearFinishedThreadsAction"
|
|
304
304
|
},
|
|
305
|
-
"
|
|
305
|
+
"7fe4d932b1d57cd266de86cc2481632eafe6603389": {
|
|
306
306
|
"workers": {
|
|
307
307
|
"app/page": {
|
|
308
308
|
"moduleId": 363531,
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
"filename": "features/bot/bot.action.ts",
|
|
314
314
|
"exportedName": "deleteThreadAction"
|
|
315
315
|
},
|
|
316
|
-
"
|
|
316
|
+
"7fcce53089b7d9ab37e1ede476aa5dedc0b0d35e12": {
|
|
317
317
|
"workers": {
|
|
318
318
|
"app/page": {
|
|
319
319
|
"moduleId": 363531,
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
"filename": "features/routine/routine.action.ts",
|
|
325
325
|
"exportedName": "createRoutineAction"
|
|
326
326
|
},
|
|
327
|
-
"
|
|
327
|
+
"7fdc335db44dcf20b0412b805f81e431a0f5686511": {
|
|
328
328
|
"workers": {
|
|
329
329
|
"app/page": {
|
|
330
330
|
"moduleId": 363531,
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
"filename": "features/routine/routine.action.ts",
|
|
336
336
|
"exportedName": "deleteRoutineAction"
|
|
337
337
|
},
|
|
338
|
-
"
|
|
338
|
+
"7fa185f09203bb0a1f39243fa623f48a736f8dd739": {
|
|
339
339
|
"workers": {
|
|
340
340
|
"app/page": {
|
|
341
341
|
"moduleId": 363531,
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
"filename": "features/routine/routine.action.ts",
|
|
347
347
|
"exportedName": "runRoutineNowAction"
|
|
348
348
|
},
|
|
349
|
-
"
|
|
349
|
+
"7f07a02cdabcb5642ab071031c8335e8f0ba101a04": {
|
|
350
350
|
"workers": {
|
|
351
351
|
"app/page": {
|
|
352
352
|
"moduleId": 363531,
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"filename": "features/routine/routine.action.ts",
|
|
358
358
|
"exportedName": "updateRoutineAction"
|
|
359
359
|
},
|
|
360
|
-
"
|
|
360
|
+
"7f3dd80394270fb057d0d3bac3f669ff586b75dd4c": {
|
|
361
361
|
"workers": {
|
|
362
362
|
"app/page": {
|
|
363
363
|
"moduleId": 363531,
|
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
"filename": "features/thursday/thursday.action.ts",
|
|
369
369
|
"exportedName": "deleteCallAction"
|
|
370
370
|
},
|
|
371
|
-
"
|
|
371
|
+
"7f7fb480a317331a2e1c0c5b0201895c0357c45d37": {
|
|
372
372
|
"workers": {
|
|
373
373
|
"app/page": {
|
|
374
374
|
"moduleId": 363531,
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
"filename": "features/thursday/thursday.action.ts",
|
|
380
380
|
"exportedName": "deleteEndedCallsAction"
|
|
381
381
|
},
|
|
382
|
-
"
|
|
382
|
+
"7fc86a7b16cd5f1d18158ce91a6df143d06b4a1735": {
|
|
383
383
|
"workers": {
|
|
384
384
|
"app/page": {
|
|
385
385
|
"moduleId": 363531,
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
"filename": "features/thursday/thursday.action.ts",
|
|
391
391
|
"exportedName": "resetHistoryAction"
|
|
392
392
|
},
|
|
393
|
-
"
|
|
393
|
+
"7fca40b0f5cc9392ce04fba2dc6406df351837a645": {
|
|
394
394
|
"workers": {
|
|
395
395
|
"app/page": {
|
|
396
396
|
"moduleId": 363531,
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
"filename": "features/thursday/thursday.action.ts",
|
|
402
402
|
"exportedName": "setCallSkillsAction"
|
|
403
403
|
},
|
|
404
|
-
"
|
|
404
|
+
"7f544e0bfd17d65ffe5723294ffc9f978a10552ec1": {
|
|
405
405
|
"workers": {
|
|
406
406
|
"app/page": {
|
|
407
407
|
"moduleId": 363531,
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
"filename": "features/artifact/artifact.action.ts",
|
|
413
413
|
"exportedName": "deleteArtifactAction"
|
|
414
414
|
},
|
|
415
|
-
"
|
|
415
|
+
"7fc68b7e34326b980091695084d6ee2298e41557f2": {
|
|
416
416
|
"workers": {
|
|
417
417
|
"app/page": {
|
|
418
418
|
"moduleId": 363531,
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
"filename": "features/workspace/workspace.action.ts",
|
|
424
424
|
"exportedName": "emptyScratchAction"
|
|
425
425
|
},
|
|
426
|
-
"
|
|
426
|
+
"7f71481f459417afb27d076b8972927f4808165aa6": {
|
|
427
427
|
"workers": {
|
|
428
428
|
"app/page": {
|
|
429
429
|
"moduleId": 363531,
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
"filename": "features/skills/skills.action.ts",
|
|
435
435
|
"exportedName": "createSkillAction"
|
|
436
436
|
},
|
|
437
|
-
"
|
|
437
|
+
"7fc29cba484b0566586cce270b1195770f97f1f490": {
|
|
438
438
|
"workers": {
|
|
439
439
|
"app/page": {
|
|
440
440
|
"moduleId": 363531,
|
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
"filename": "features/skills/skills.action.ts",
|
|
446
446
|
"exportedName": "deleteSkillAction"
|
|
447
447
|
},
|
|
448
|
-
"
|
|
448
|
+
"7f745110016d50db011a7ba27d2a04d32d7d0ce457": {
|
|
449
449
|
"workers": {
|
|
450
450
|
"app/page": {
|
|
451
451
|
"moduleId": 363531,
|
|
@@ -456,7 +456,7 @@
|
|
|
456
456
|
"filename": "features/skills/skills.action.ts",
|
|
457
457
|
"exportedName": "setSkillDisabledAction"
|
|
458
458
|
},
|
|
459
|
-
"
|
|
459
|
+
"7f97d693ca586e4f61593fadfddcc65d3df878b978": {
|
|
460
460
|
"workers": {
|
|
461
461
|
"app/page": {
|
|
462
462
|
"moduleId": 363531,
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
"filename": "features/skills/skills.action.ts",
|
|
468
468
|
"exportedName": "uploadSkillAction"
|
|
469
469
|
},
|
|
470
|
-
"
|
|
470
|
+
"7f9f7203d69588d2a7607491fa423f8974ed7d8271": {
|
|
471
471
|
"workers": {
|
|
472
472
|
"app/page": {
|
|
473
473
|
"moduleId": 363531,
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
"filename": "features/connectors/mcp.action.ts",
|
|
479
479
|
"exportedName": "callToolAction"
|
|
480
480
|
},
|
|
481
|
-
"
|
|
481
|
+
"7f3ffbe43cd0e53bcef209cec6c741a97021df5ec0": {
|
|
482
482
|
"workers": {
|
|
483
483
|
"app/page": {
|
|
484
484
|
"moduleId": 363531,
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
"filename": "features/connectors/mcp.action.ts",
|
|
490
490
|
"exportedName": "deleteServerAction"
|
|
491
491
|
},
|
|
492
|
-
"
|
|
492
|
+
"7f37aeae9f639b84e3375d6c3d50d4e5c13c749973": {
|
|
493
493
|
"workers": {
|
|
494
494
|
"app/page": {
|
|
495
495
|
"moduleId": 363531,
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
"filename": "features/connectors/mcp.action.ts",
|
|
501
501
|
"exportedName": "refreshServerAction"
|
|
502
502
|
},
|
|
503
|
-
"
|
|
503
|
+
"7f86f9bf2207bdccd91bb068c5bbbb14fb0b889db9": {
|
|
504
504
|
"workers": {
|
|
505
505
|
"app/page": {
|
|
506
506
|
"moduleId": 363531,
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
"filename": "features/connectors/mcp.action.ts",
|
|
512
512
|
"exportedName": "registerServerAction"
|
|
513
513
|
},
|
|
514
|
-
"
|
|
514
|
+
"7fe1d039254156c2ed313171ea448ee9fc263728ce": {
|
|
515
515
|
"workers": {
|
|
516
516
|
"app/page": {
|
|
517
517
|
"moduleId": 363531,
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
"filename": "features/signins/signins.action.ts",
|
|
523
523
|
"exportedName": "removeSignInAction"
|
|
524
524
|
},
|
|
525
|
-
"
|
|
525
|
+
"7fb9729f395338fd70134d15a1faf5d5808c27721b": {
|
|
526
526
|
"workers": {
|
|
527
527
|
"app/page": {
|
|
528
528
|
"moduleId": 363531,
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
"filename": "features/bot/bot.action.ts",
|
|
534
534
|
"exportedName": "acceptThreadRelaysAction"
|
|
535
535
|
},
|
|
536
|
-
"
|
|
536
|
+
"7fe7b47d7c1662675aedb02812f8b9497ba7cb5167": {
|
|
537
537
|
"workers": {
|
|
538
538
|
"app/page": {
|
|
539
539
|
"moduleId": 363531,
|
|
@@ -544,7 +544,7 @@
|
|
|
544
544
|
"filename": "features/thursday/thursday.action.ts",
|
|
545
545
|
"exportedName": "endCallAction"
|
|
546
546
|
},
|
|
547
|
-
"
|
|
547
|
+
"7f77ce98db42abe1550c06168842157ca188fb760c": {
|
|
548
548
|
"workers": {
|
|
549
549
|
"app/page": {
|
|
550
550
|
"moduleId": 363531,
|
|
@@ -555,7 +555,7 @@
|
|
|
555
555
|
"filename": "features/thursday/thursday.action.ts",
|
|
556
556
|
"exportedName": "openTextCallAction"
|
|
557
557
|
},
|
|
558
|
-
"
|
|
558
|
+
"7f6c0eb7d189d5a2ceb8f62b89db8ee74d6b8d7764": {
|
|
559
559
|
"workers": {
|
|
560
560
|
"app/page": {
|
|
561
561
|
"moduleId": 363531,
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
"filename": "features/thursday/thursday.action.ts",
|
|
567
567
|
"exportedName": "openCallAction"
|
|
568
568
|
},
|
|
569
|
-
"
|
|
569
|
+
"7f2c2006da91929e52b9c81dd4d69996ba52acd459": {
|
|
570
570
|
"workers": {
|
|
571
571
|
"app/page": {
|
|
572
572
|
"moduleId": 363531,
|
|
@@ -577,7 +577,7 @@
|
|
|
577
577
|
"filename": "features/thursday/thursday.action.ts",
|
|
578
578
|
"exportedName": "saveThoughtAction"
|
|
579
579
|
},
|
|
580
|
-
"
|
|
580
|
+
"7f4d510263ccb8474f8382980f5d9ea3517823bd0d": {
|
|
581
581
|
"workers": {
|
|
582
582
|
"app/page": {
|
|
583
583
|
"moduleId": 363531,
|
|
@@ -588,7 +588,7 @@
|
|
|
588
588
|
"filename": "features/thursday/thursday.action.ts",
|
|
589
589
|
"exportedName": "saveTurnsAction"
|
|
590
590
|
},
|
|
591
|
-
"
|
|
591
|
+
"7f72623480f406bb2a93a2498ec98b39a79a6e0f72": {
|
|
592
592
|
"workers": {
|
|
593
593
|
"app/page": {
|
|
594
594
|
"moduleId": 363531,
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
"filename": "features/bot/bot.action.ts",
|
|
600
600
|
"exportedName": "startThreadAction"
|
|
601
601
|
},
|
|
602
|
-
"
|
|
602
|
+
"7ff1868c982b766f6a3ab0f49bf5fb2cea920496f4": {
|
|
603
603
|
"workers": {
|
|
604
604
|
"app/page": {
|
|
605
605
|
"moduleId": 363531,
|
|
@@ -610,7 +610,7 @@
|
|
|
610
610
|
"filename": "features/reach/reach.action.ts",
|
|
611
611
|
"exportedName": "allowReachAction"
|
|
612
612
|
},
|
|
613
|
-
"
|
|
613
|
+
"7fa06f8affacad13d4cf04a20f59b50207fcee6a48": {
|
|
614
614
|
"workers": {
|
|
615
615
|
"app/page": {
|
|
616
616
|
"moduleId": 363531,
|
|
@@ -623,5 +623,5 @@
|
|
|
623
623
|
}
|
|
624
624
|
},
|
|
625
625
|
"edge": {},
|
|
626
|
-
"encryptionKey": "
|
|
626
|
+
"encryptionKey": "dBH0lWZdeexImrGJJFxhyz20tlX1JMHU9DsBXMptG98="
|
|
627
627
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,616816,e=>{"use strict";var t=e.i(843476),r=e.i(689664),n=e.i(263676),a=e.i(271645),l=e.i(798120),i=e.i(167881),s=e.i(23750),o=e.i(968978),u=e.i(149666),c=e.i(609856),h=e.i(283653),f=e.i(647163),d=e.i(799623),m=e.i(992112);function g({provider:e,saved:r,autoFocus:n,dense:a,plain:l,value:i,ready:s,saving:u,onValue:c,onSubmit:h}){return(0,t.jsxs)("div",{className:"space-y-2",children:[!l&&(0,t.jsxs)("span",{className:"flex items-center gap-2 px-0.5 text-muted-foreground",children:[(0,t.jsx)(o.ProviderIcon,{provider:e.id,className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:(0,f.cn)("font-mono",a?"text-[11px]":"text-[12.5px]"),children:e.label})]}),(0,t.jsx)(p,{provider:e,saved:r,autoFocus:n,dense:a,mark:l,value:i,ready:s,saving:u,onValue:c,onSubmit:h})]})}function p({provider:e,saved:n,autoFocus:a,dense:l,mark:u,value:c,ready:h,saving:d,onValue:m,onSubmit:g}){let y=c.trim().startsWith("xai-")||c.trim().startsWith("sk-ant-");return(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),g()},className:(0,f.cn)("flex items-center gap-3 rounded-2xl border bg-muted/40 px-4 transition-colors",l?"h-11 rounded-xl px-3":"h-14",n||h?"border-foreground bg-transparent":"border-border"),children:[u&&(0,t.jsx)(o.ProviderIcon,{provider:e.id,className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)(s.Input,{autoFocus:a,type:"password","aria-label":"OpenAI API key",autoComplete:"off",value:c,spellCheck:!1,placeholder:n?"Replace it":"sk-…",onChange:e=>m(e.target.value),className:(0,f.cn)("min-w-0 flex-1 border-0 bg-transparent px-0 font-mono shadow-none focus-visible:ring-0 dark:bg-transparent",l?"h-7 text-[13px]":"h-9 text-[15px]")}),c?(0,t.jsx)(i.Button,{type:"submit",size:"sm",variant:y?"outline":"default",loading:d,disabled:!h,className:(0,f.cn)("shrink-0",l?"h-7 px-3":"h-9 px-4"),children:y?`Not ${e.label}?`:"Save"}):n&&(0,t.jsx)("span",{className:(0,f.cn)("grid shrink-0 animate-in place-items-center rounded-full bg-foreground text-background zoom-in-50 duration-300",l?"size-5":"size-7"),children:(0,t.jsx)(r.Check,{className:l?"size-3":"size-4"})})]})}e.s(["KEY_MIN",0,8,"KeyInput",0,p,"VoiceKeys",0,function({ref:e,autoFocus:r,dense:s=!1,plain:o=!1,onCancel:p,onSaved:y,className:M}){let{data:O}=(0,h.useServerRoute)(l.queryKey.config),[x,A]=(0,a.useState)({}),[E,S]=(0,a.useState)(null),[b,_]=(0,a.useState)(null),[w]=(0,c.useServerAction)(d.setConfigAction,{errorMessage:!1,onError:e=>_(e??"That key was not saved."),onOk:()=>{(0,h.revalidate)(l.queryKey.config),(0,h.revalidate)(l.queryKey.llmModel)}}),N=e=>(x[e]?.trim().length??0)>=8,v=async e=>{let t=e.apiKeyName;if(!N(t)||E)return!1;_(null),S(t);try{return await w(t,x[t]),A(e=>({...e,[t]:""})),y?.(e.id),!0}catch{return!1}finally{S(null)}};return(0,a.useImperativeHandle)(e,()=>({pending:()=>N(u.LIVE_PROVIDER.apiKeyName),flush:async()=>!N(u.LIVE_PROVIDER.apiKeyName)||v(u.LIVE_PROVIDER)})),(0,t.jsxs)("div",{className:(0,f.cn)("w-full",s?"space-y-2":"space-y-4",M),children:[s&&!o&&(0,t.jsxs)("div",{className:"flex h-6 items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"px-0.5 font-mono text-[11px] text-muted-foreground",children:"Voice key"}),p&&(0,t.jsx)(i.Button,{type:"button",size:"icon",variant:"ghost","aria-label":"Not now",onClick:p,className:"-my-1 size-6",children:(0,t.jsx)(n.X,{className:"size-3.5"})})]}),(0,t.jsx)(g,{provider:u.LIVE_PROVIDER,saved:(0,m.isConfigSet)(O,u.LIVE_PROVIDER.apiKeyName),autoFocus:r,dense:s,plain:o,value:x[u.LIVE_PROVIDER.apiKeyName]??"",ready:N(u.LIVE_PROVIDER.apiKeyName),saving:E===u.LIVE_PROVIDER.apiKeyName,onValue:e=>{_(null),A(t=>({...t,[u.LIVE_PROVIDER.apiKeyName]:e}))},onSubmit:()=>void v(u.LIVE_PROVIDER)}),b&&(0,t.jsx)("p",{className:(0,f.cn)("px-0.5 leading-5 break-words",s?"text-xs":"text-center text-[13px]",f.WAITING_INK),children:b}),!o&&(0,t.jsx)("p",{className:(0,f.cn)("px-0.5 font-mono text-muted-foreground",s?"text-[11px]":"pt-1 text-center text-[12.5px]"),children:s?"Live voice and reasoning share this OpenAI API key.":"Live uses an OpenAI API key, billed separately from ChatGPT. Stored on this machine, in this app's database."})]})}])},333495,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(41533),a=e.i(218080),l=e.i(567334);let i=[235,235,235];function s(e){let t=[[],[],[],[],[]],r=0;for(let n of Array.from(e.toUpperCase())){let e=l.LETTERS[n];if(e){if(t[0].length)for(let e of t)e.push(-1);e.forEach((e,n)=>{for(let a of e)t[n].push("#"===a?r:-1)})," "!==n&&r++}}return t}let o=s("ERROR");function u(e,t,r,n,a){return e+(t-e)*Math.min(1,a/(t>e?r:n))}function c(e,t,r,n,a,l){let i=Math.floor(t/(n*l)+e[0].length/2),s=Math.floor(r/(a*l)+e.length/2);return s<0||s>=e.length?-1:e[s][i]??-1}function h(e,t,r,n){let a=e=>Math.max(1,Math.min(3,Math.floor(625.6/(e[0].length*t)),Math.floor(421.6/(e.length*r)))),l=s(n),i=3>a(l)?function(e){let t=Array.from(e.trim()),r=t.flatMap((e,t)=>" "===e?[t]:[]);if(!r.length)return null;let n=t.length/2,a=r.reduce((e,t)=>Math.abs(t-n)<Math.abs(e-n)?t:e),l=s(t.slice(0,a).join("")),i=s(t.slice(a+1).join(""));if(!l[0].length||!i[0].length)return null;let o=Math.max(-1,...l.flat())+1,u=Math.max(l[0].length,i[0].length),c=(e,t)=>{let r=Math.floor((u-e.length)/2);return[...Array(r).fill(-1),...e.map(e=>e<0?e:e+t),...Array(u-e.length-r).fill(-1)]},h=()=>Array(u).fill(-1);return[...l.map(e=>c(e,0)),h(),h(),...i.map(e=>c(e,o))]}(n):null,o=i&&a(i)>a(l)?i:l,u=a(o),h=0;for(let n of e)n.word=c(o,n.dx,n.dy,t,r,u),h=Math.max(h,n.word+1);return h}function f({className:e,mode:s="idle",charset:d=n.ASCII_FACE.charset,fontSize:m=n.ASCII_FACE.fontSize.default,density:g=n.ASCII_FACE.density.default,size:p=680,color:y=i,getSpectrum:M,word:O=null}){let x=(0,r.useRef)(null),A=(0,r.useRef)(null),E=(0,r.useRef)([]),S=(0,r.useRef)(null),b=(0,r.useRef)(d),_=(0,r.useRef)({cur:[...y],target:y}),w=(0,r.useRef)(0),N=(0,r.useRef)(M);N.current=M;let v=(0,r.useRef)({phrase:0,bob:0,bobVel:0,amp:[,,,,].fill(0),phase:Array.from({length:4},(e,t)=>2.1*t),spin:0,rings:[]}),L=(0,r.useRef)({mode:s,start:0}),R=(0,r.useRef)(performance.now()),I=(0,r.useRef)({scale:.3,lift:0,gather:0,comet:0,speech:0,err:0,word:0}),T=(0,r.useRef)(null),k=(0,r.useRef)({cw:1,ch:1});return(0,r.useEffect)(()=>{let e=x.current;if(!e)return;let t=.95*m/g,r=1.25*m/g,n=680/p,a=t*n,i=r*n,s=Math.max(1,Math.floor(625.6/(o[0].length*a)));w.current=p,k.current={cw:a,ch:i};let u=[],f=Math.ceil(p/t),d=Math.ceil(p/r);for(let e=0;e<d;e++)for(let h=0;h<f;h++){let f=h*t,d=e*r,m=(f-p/2)*n,g=(d-p/2)*n,y=Math.hypot(m,g),M=c(o,m,g,a,i,s);M<0&&y>328||u.push({x:f+t/2,y:d+r/2,dx:m,dy:g,dist:y,angle:Math.atan2(g,m),seed:(0,l.hash)(h,e),grain:(0,l.hash)(5.7*h+19,2.3*e+53),gap:.05+.3*(0,l.hash)(7.3*h+11,3.1*e+5),emoji:(0,l.hash)(2.7*h+31,5.9*e+17)<l.EMOJI_RATIO,speck:(0,l.hash)(4.1*h+23,6.3*e+41),letter:M,word:-1})}E.current=u,T.current&&h(u,a,i,T.current.text),S.current={ascii:Array.from({length:l.RAMP.length},()=>new Int32Array(u.length)),emoji:Array.from({length:l.RAMP.length},()=>new Int32Array(u.length)),asciiN:new Int32Array(l.RAMP.length),emojiN:new Int32Array(l.RAMP.length),glyph:Array(u.length)};let y=Math.min(2,window.devicePixelRatio||1);e.width=p*y,e.height=p*y,e.style.width=`${p}px`,e.style.height=`${p}px`;let M=e.getContext("2d");return M&&(M.setTransform(y,0,0,y,0,0),M.font=`700 ${m}px ui-monospace,SFMono-Regular,Menlo,monospace`,M.textAlign="center",M.textBaseline="middle",A.current=M),()=>{M?.clearRect(0,0,p,p),E.current=[],S.current=null}},[m,g,p]),(0,r.useEffect)(()=>{b.current=d},[d]),(0,r.useEffect)(()=>{_.current.target=y},[y]),(0,r.useEffect)(()=>{L.current.mode!==s&&(L.current={mode:s,start:.001*performance.now()})},[s]),(0,r.useEffect)(()=>{if(!O||Date.now()-O.at>(O.hold??3.4)*1e3)return;let{cw:e,ch:t}=k.current,r=performance.now(),n=r-R.current<600?.11*O.text.length+.3+.45:0;T.current={text:O.text,start:.001*r-n,letters:h(E.current,e,t,O.text),hold:O.hold??3.4}},[O]),(0,r.useEffect)(()=>{let e=0,t=(0,a.createVoiceFollower)(),r=Array(a.SPECTRUM_BANDS).fill(0),n=.001*performance.now(),i=0,s=0,o=a=>{let c=.001*a,h=Math.min(.05,Math.max(0,c-n));n=c;let f=A.current,d=S.current;if(!f||!d){e=requestAnimationFrame(o);return}let m=b.current,g=w.current;d.asciiN.fill(0),d.emojiN.fill(0);let p=N.current?.();if(!p||p.length<2){for(let e=0;e<r.length;e++){let t=.5*Math.sin(1.7*c+1.7*e)+.3*Math.sin(.8*c+.6*e)+.2*Math.sin(3*c+2.9*e);r[e]=.5*t+.5}p=r}let y=v.current,M=t.read(p,h);y.phrase=M.phrase,M.onset>0&&(y.bobVel+=.06*M.onset,y.rings.push({born:c,power:M.onset}),y.rings.length>5&&y.rings.shift()),y.bobVel+=-(.012*y.bob)-.09*y.bobVel,y.bob+=y.bobVel,i+=h;for(let e=0;e<4;e++){let t=Math.floor(e*M.bands.length/4),r=Math.max(t+1,Math.floor((e+1)*M.bands.length/4)),n=0;for(let e=t;e<r;e++)n+=M.bands[e];n/=r-t;let a=.7+.6*(0,l.hash)((.9*c|0)+31*e,e);y.amp[e]+=(n*a-y.amp[e])*(.05+.02*e),y.phase[e]+=h*(.9+.5*e)*(e%2?-1:1)}for(y.spin+=h*(1.1+.9*y.phrase);y.rings.length>0&&c-y.rings[0].born>.7;)y.rings.shift();let O=L.current,x=T.current,R=x?c-x.start:0,k=null!==x&&"error"!==O.mode&&R<x.hold+.08*x.letters+.45+.35+.9?{scale:0,lift:0,gather:0,comet:0,speech:0,err:0,word:1}:function(e,t){let r={scale:1,lift:0,gather:0,comet:0,speech:0,err:0,word:0};switch(e){case"idle":return r;case"connecting":{let e=1-Math.exp(-t/1.3);return{...r,scale:.45+.55*e,lift:.06*e,gather:1}}case"speaking":return{...r,speech:1};case"working":return{...r,scale:0,comet:1};case"ending":return{...r,scale:0};case"error":return{...r,scale:0,err:1}}}(O.mode,c-O.start),j=I.current;j.scale=u(j.scale,k.scale,.45,"ending"===O.mode?.4:.7,h),j.lift=u(j.lift,k.lift,.22,.4,h),j.gather=u(j.gather,k.gather,.3,.95,h),j.comet=u(j.comet,k.comet,.45,.9,h),j.speech=u(j.speech,k.speech,.5,.75,h),"error"===O.mode&&(j.err<=.01&&(s=0),s+=h),j.err=u(j.err,k.err,.5,.6,h),j.word=u(j.word,k.word,.35,.5,h);let C=j.err>.5,P=j.word>.5,V="emojiOnly"===m?l.EMOJI_CHAR_RATE:l.CHAR_RATE,$=E.current;for(let e=0;e<$.length;e++){let t=$[e],r=function(e,t,r,n,a,i,s){let o,u,c,h,f=i.scale>.02?function(e,t,r=0,n=1){let a=170*Math.max(.02,n),i=1-(0,l.smoothstep)(.55*a,a,e.dist);return(.58+r+.2*Math.sin(.05*e.dist-.4*t)+.07*Math.sin(.35*t))*i}(e,t,i.lift,i.scale)*(1-.6*i.speech):0;return i.gather>.01&&(f+=function(e,t,r){let n=170*r;if(e.speck>=.55||e.dist<.8*n)return 0;let a=Math.min(55,Math.floor((e.angle+Math.PI)/(2*Math.PI)*56)),i=(.7*t+(0,l.hash)(a,5.3))%1,s=e.dist-(n+(320-n)*(1-i)**1.25)-(e.grain-.5)*16;return Math.exp(-(s*s)/260)*(0,l.smoothstep)(0,.2,i)*(1-i)*1.1}(e,t,i.scale)*i.gather),i.comet>.01&&(f+=(u=Math.exp(-((o=e.dist-210)*o)/1100),u*Math.exp(-((h=Math.atan2(Math.sin(c=e.angle-3*t),Math.cos(c)))*h)/(h<0?2.8:.16))*i.comet)),i.speech>.01&&(f+=function(e,t,r,n){var a;let l=170+40*r.phrase+85*r.bob;for(let t=0;t<4;t++)l+=28*r.amp[t]*Math.sin((t+2)*(e.angle+r.spin)+r.phase[t]);let i=170+(((a=l)<=205?Math.max(110,a):205+30*Math.tanh((a-205)/30))-170)*n,s=(e.grain-.5)*20+20*Math.sin(5*e.angle+.9*t+6.283*e.seed)*.3,o=e.dist-(i+s),u=Math.exp(-(o*o)/800)+.5*Math.exp(-(e.dist*e.dist)/6e3);if(e.dist<i&&(u+=.22*(1-e.dist/i)**.6*(.75+.25*Math.sin(.05*e.dist-1.2*t))),e.speck<.22){let n=90*(.6+.9*e.grain);for(let a=0;a<r.rings.length;a++){let l=r.rings[a],s=t-l.born,o=e.dist-(i+6+s*n);u+=Math.exp(-(o*o)/500)*l.power*Math.max(0,1-s/.7)}}return u}(e,t,s,i.speech)*i.speech),i.err>.01&&(f+=function(e,t,r){if(e.letter<0)return 0;let n=r%9.2,a=.12*e.seed;return Math.max(0,(0,l.smoothstep)(0,1,(n-.65*e.letter-a)/.8)-(0,l.smoothstep)(0,1,(n-5.6-.5*e.letter-a)/.7))*(.86+.14*Math.sin(3.5*t+6*e.seed))}(e,t,r)*i.err),i.word>.01&&(f+=function(e,t,r,n){if(e.word<0)return 0;let a=.45*e.seed,i=(0,l.smoothstep)(0,1,(r-.11*e.word-a)/.3),s=r-n-.08*e.word-a,o=(0,l.smoothstep)(0,1,s/.35),u=.2*(1-(0,l.smoothstep)(0,1,(s-.35)/.9));return Math.max(i-o,i>.5?u*o:0)*((i>0&&i<1||o>0&&u>0)&&.35>(0,l.hash)(Math.floor(14*t)+97*e.seed,31*e.grain)?.25:1)*(.86+.14*Math.sin(3.5*t+6*e.seed))}(e,t,n,a)*i.word),f}(t,c,s,R,x?.hold??3.4,j,y);!(C&&t.letter>=0||P&&t.word>=0)&&((r*=(.66+.72*t.grain)*(.8+.4*(0,l.hash)(Math.floor(.05*t.dx+.5*c),Math.floor(.05*t.dy-.3*c))))>.3&&(0,l.hash)(31.7*Math.floor(1.6*c),613*t.seed)>.992&&(r=Math.max(r,.9)),r<t.gap+.05*Math.sin(.28*c+6.283*t.seed)&&(r=0));let n=(r=r<0?0:r>1?1:r)*(l.RAMP.length-1)|0;if(0===n)continue;let a=i*V+7*t.seed|0;if("emojiOnly"===m||"emoji"===m&&t.emoji&&n>=l.EMOJI_MIN_LEVEL){let r=((t.seed*l.EMOJI_POOL.length|0)+a)%l.EMOJI_POOL.length;d.glyph[e]=l.EMOJI_POOL[r],d.emoji[n][d.emojiN[n]++]=e}else{let r=l.RAMP[n],i=((t.seed*r.length|0)+a)%r.length;d.glyph[e]=r[i],d.ascii[n][d.asciiN[n]++]=e}}f.clearRect(0,0,g,g);let D=E.current,K=l.RAMP.length-1,F=_.current;for(let e=0;e<3;e++)F.cur[e]+=(F.target[e]-F.cur[e])*.05;f.fillStyle=`rgb(${0|F.cur[0]},${0|F.cur[1]},${0|F.cur[2]})`;for(let e=1;e<=K;e++){let t=d.asciiN[e];if(0===t)continue;f.globalAlpha=l.ALPHA_TOP*(e/K);let r=d.ascii[e];for(let e=0;e<t;e++){let t=D[r[e]];f.fillText(d.glyph[r[e]],t.x,t.y)}}for(let e=1;e<=K;e++){let t=d.emojiN[e];if(0===t)continue;f.globalAlpha=.35+e/K*.65;let r=d.emoji[e];for(let e=0;e<t;e++){let t=D[r[e]];f.fillText(d.glyph[r[e]],t.x,t.y)}}f.globalAlpha=1,e=requestAnimationFrame(o)};return e=requestAnimationFrame(o),()=>cancelAnimationFrame(e)},[]),(0,t.jsx)("canvas",{ref:x,className:e,"aria-hidden":!0,style:{display:"block",pointerEvents:"none"}})}var d=e.i(922521),m=e.i(647163);let g={ending:"ending",idle:"idle",connecting:"connecting",listening:"idle",speaking:"speaking",working:"working",delegating:"working"},p=[247,247,247],y=[10,10,10];function M({status:e,failed:r,word:n,size:a,getSpectrum:l,look:i,className:s}){let o="dark"===(0,d.useResolvedTheme)();return(0,t.jsx)(f,{mode:r?"error":g[e],word:n,size:a,color:o?p:y,getSpectrum:l,charset:i.charset,fontSize:i.fontSize,density:i.density,className:s})}let O=(0,r.memo)(function({look:e,status:n="idle",size:a=448,className:l,...i}){let s=(0,r.useRef)(null),[o,u]=(0,r.useState)(a),[c,h]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=s.current;if(!e)return;let t=new ResizeObserver(([e])=>{let t=Math.round(e.contentRect.width);t>0&&u(t)});return t.observe(e),()=>t.disconnect()},[]),(0,r.useEffect)(()=>{let e=requestAnimationFrame(()=>h(!0));return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)("div",{ref:s,className:(0,m.cn)("aspect-square transition-opacity duration-700 ease-out",c?"opacity-100":"opacity-0",l),children:(0,t.jsx)(M,{...i,look:e,status:n,size:o})})});e.s(["Face",0,O],333495)},67045,e=>{"use strict";let t,r;var n=e.i(768834);let a=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>a(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>a(t)(e)}}};var l=e.i(149666),i=e.i(265402),s=e.i(671228);let o=s.ThursdaySettingsSchema.extend({wake:s.WakeSchema.catch(s.WAKE_DEFAULT),hotkey:s.HotkeySchema.catch(s.HOTKEY_DEFAULT),callBack:s.CallBackSchema.catch(s.CALL_BACK_DEFAULT),captionView:s.CaptionViewSchema.catch("sides"),textModel:i.textModelRefSchema.nullable().catch(null)}),u={...l.LIVE_DEFAULTS,wake:s.WAKE_DEFAULT,hotkey:s.HOTKEY_DEFAULT,callBack:s.CALL_BACK_DEFAULT,captionView:"sides",textModel:null},c=(0,n.create)()((t=e=>({...u,patch:t=>e(t)}),r={name:"thursday.settings",version:1,migrate:(e,t)=>t<1&&e&&"object"==typeof e?{...e,webSearch:!0}:e,merge:(e,t)=>{let r=o.safeParse((0,l.migrateLiveSettings)(e)),n=r.success?r.data:u;return{...t,...n}}},(e,n,l)=>{let i,s={storage:function(e){let t;try{t=e()}catch(e){return}return{getItem:e=>{var r;let n=e=>null===e?null:JSON.parse(e,void 0),a=null!=(r=t.getItem(e))?r:null;return a instanceof Promise?a.then(n):n(a)},setItem:(e,r)=>t.setItem(e,JSON.stringify(r,void 0)),removeItem:e=>t.removeItem(e)}}(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...r},o=!1,u=0,c=new Set,h=new Set,f=s.storage;if(!f)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),e(...t)});let d=()=>{let e=s.partialize({...n()});return f.setItem(s.name,{state:e,version:s.version})},m=l.setState;l.setState=(e,t)=>(m(e,t),d());let g=t((...t)=>(e(...t),d()));l.getInitialState=()=>g;let p=()=>{var t,r;if(!f)return;let l=++u;o=!1,c.forEach(e=>{var t;return e(null!=(t=n())?t:g)});let m=(null==(r=s.onRehydrateStorage)?void 0:r.call(s,null!=(t=n())?t:g))||void 0;return a(f.getItem.bind(f))(s.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===s.version)return[!1,e.state];else{if(s.migrate){let t=s.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(t=>{var r;if(l!==u)return;let[a,o]=t;if(e(i=s.merge(o,null!=(r=n())?r:g),!0),a)return d()}).then(()=>{l===u&&(null==m||m(n(),void 0),i=n(),o=!0,h.forEach(e=>e(i)))}).catch(e=>{l===u&&(null==m||m(void 0,e))})};return l.persist={setOptions:e=>{s={...s,...e},e.storage&&(f=e.storage)},clearStorage:()=>{++u,null==f||f.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(h.add(e),()=>{h.delete(e)})},s.skipHydration||p(),i||g}));e.s(["thursdaySettings",0,()=>{let e="u"<typeof navigator?null:navigator.language??null;return s.ThursdaySettingsSchema.parse({...c.getState(),locale:e})},"useThursdayStore",0,c],67045)},561540,e=>{"use strict";var t=e.i(213377);let r={[t.TOOL_NAMES.memory_recall]:"Checking your notes",[t.TOOL_NAMES.memory_remember]:"Noting that down",[t.TOOL_NAMES.memory_forget]:"Forgetting that",[t.TOOL_NAMES.memory_conversation]:"Reading back an earlier call",[t.TOOL_NAMES.bash]:"Doing it on this computer",[t.TOOL_NAMES.web_search]:"Searching the web",[t.TOOL_NAMES.load_skill]:"Reading how to do this",[t.TOOL_NAMES.look_at]:"Looking at the picture",[t.TOOL_NAMES.end_call]:"Ending the call",[t.TOOL_NAMES.routine]:"Checking your routines"};function n(e){if(!e)return null;try{let t=JSON.parse(e);if(t&&"object"==typeof t&&!Array.isArray(t))return t}catch{}return null}let a=new Set([t.TOOL_NAMES.thread_tell,t.TOOL_NAMES.thread_answer,t.TOOL_NAMES.thread_status,t.TOOL_NAMES.thread_show,t.TOOL_NAMES.thread_cancel,t.TOOL_NAMES.thread_seen]);function l(e,r){if(e!==t.TOOL_NAMES.web_search)return null;try{let e=JSON.parse(r),t=Array.isArray(e.sources)?e.sources.flatMap(e=>e&&"object"==typeof e&&"string"==typeof e.url?[e]:[]):[];return{query:"string"==typeof e.query?e.query:null,sources:t}}catch{return null}}e.s(["searchOf",0,l,"searchQueryOf",0,function(e){let t=n(e)?.query;return"string"==typeof t&&t.trim()?t.trim():null},"searchSourcesOf",0,function(e){let r=n(e);return r?l(t.TOOL_NAMES.web_search,JSON.stringify(r))?.sources??[]:[]},"startedLabel",0,function(e,r){if(e!==t.TOOL_NAMES.thread_start)return null;try{let e=JSON.parse(r);return"string"==typeof e.label?e.label:null}catch{return null}},"toolBot",0,function(e,r,l){let i=n(r);if(!i)return null;if(e===t.TOOL_NAMES.thread_start)return"string"==typeof i.bot&&i.bot.trim()?i.bot.trim():null;if(!a.has(e)||!l)return null;let s="string"==typeof i.thread?i.thread.trim():"";if(!s||"all"===s.toLowerCase())return null;let o=s.toLowerCase(),u=l.find(e=>e.id===s)??l.find(e=>e.label.toLowerCase()===o);return u?e===t.TOOL_NAMES.thread_answer?u.room.questions[0]?.bot??u.bot:u.bot:null},"toolLine",0,function(e,a,l=null){let i;if(e===t.TOOL_NAMES.tool_search||e===t.TOOL_NAMES.tool_call)return"Reaching a connected service";let s=n(a);return(s&&function(e,r,n){if(e===t.TOOL_NAMES.memory_remember){let e="string"==typeof r.path?r.path.trim():"",t=function(e){if(!Array.isArray(e.facts))return null;let t=e.facts.map(e=>e&&"object"==typeof e&&"string"==typeof e.text?e.text.trim():"").filter(Boolean);return t.length?{text:t[0],more:t.length-1}:null}(r);if(!e)return null;if(!t)return`Noting that under ${e}`;let n=t.more>0?` (+${t.more})`:"";return`Noting under ${e}: ${function(e){let t=e.trim().replace(/\s+/g," ");if(t.length<=28)return t;let r=t.slice(0,28),n=r.lastIndexOf(" ");return`${(n>14?r.slice(0,n):r).trimEnd()}…`}(t.text)}${n}`}if(e===t.TOOL_NAMES.thread_start){let e="string"==typeof r.bot?r.bot.trim():"";return e?`Handing this to ${e}`:"Handing this over"}if(e===t.TOOL_NAMES.web_search){let e="string"==typeof r.query?r.query.trim():"";return e?`Searching \xb7 ${e}`:null}if(e===t.TOOL_NAMES.routine){if("create"===r.action){let e=["string"==typeof r.bot?r.bot.trim():"",function(e){if("string"==typeof e.at&&e.at.length>=16){let[t,r]=e.at.split(" "),[n,a,l]=t.split("-").map(Number),i=new Date(n,a-1,l);if(i.toDateString()===new Date().toDateString())return`once at ${r}`;let s=i.toLocaleDateString("en-US",{month:"short",day:"numeric"});return`once, ${s} ${r}`}return"string"==typeof e.time&&e.time?`daily at ${e.time}`:"number"==typeof e.everyHours?`every ${e.everyHours} hours`:null}(r)].filter(Boolean).join(", ");return e?`Setting a routine \xb7 ${e}`:"Setting a routine"}return"change"===r.action?"Changing a routine":"delete"===r.action?"Deleting a routine":null}let a="string"==typeof r.thread?r.thread.trim():"";return e===t.TOOL_NAMES.thread_tell?n?`Telling ${n}`:"Passing that on":e===t.TOOL_NAMES.thread_answer?n?`Answering ${n}`:"Answering that":e===t.TOOL_NAMES.thread_cancel?a?`Stopping ${a}`:"Stopping that":e===t.TOOL_NAMES.thread_seen?a?`Marking ${a} as read`:"Marking that as read":e===t.TOOL_NAMES.thread_show?a?`Opening ${a}`:"Opening that":e===t.TOOL_NAMES.thread_status?a&&"all"!==a.toLowerCase()?`Checking on ${a}`:"Checking on the work":null}(e,s,l))??r[e]??((i=e.indexOf("__"))<=0?null:`Reaching ${e.slice(0,i).replace(/[-_]/g," ")}`)}])},319841,e=>{"use strict";var t=e.i(271645);let r=["ctrl","alt","meta"],n=/^(Control|Alt|Shift|Meta|OS)/,a=/^(input|textarea|select)$/i,l=e=>!!e&&!!(a.test(e.tagName)||e.isContentEditable||e.closest?.("[data-hotkey-capture]"));function i(e){let{code:t,ctrlKey:r,altKey:a,shiftKey:l,metaKey:i}=e;if(!t||n.test(t)||!r&&!a&&!i)return null;let s=[];return r&&s.push("ctrl"),a&&s.push("alt"),l&&s.push("shift"),i&&s.push("meta"),[...s,t].join("+")}let s={ctrl:["Ctrl","⌃"],alt:["Alt","⌥"],shift:["Shift","⇧"],meta:["Meta","⌘"]};e.s(["HOTKEY_CAPTURE",0,{"data-hotkey-capture":""},"capturesKeys",0,l,"comboOf",0,i,"isCombo",0,e=>{let t=e.split("+"),a=t.at(-1);return!!(a&&!n.test(a)&&t.slice(0,-1).some(e=>r.includes(e)))},"useHotkey",0,function({enabled:e,combo:r,onPress:n}){let a=(0,t.useRef)(n);a.current=n,(0,t.useEffect)(()=>{if(!e||!r)return;let t=e=>{e.repeat||l(e.target)||i(e)===r&&(e.preventDefault(),a.current())};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e,r])},"useHotkeyLabel",0,function(e){let[r,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>n(/mac/i.test(navigator.userAgent)),[]),e?function(e,t=!1){let r=e.split("+"),n=r.at(-1)??"",a=r.slice(0,-1).map(e=>s[e]?.[+!!t]??e),l=n.replace(/^(Key|Digit|Numpad)/,"").replace(/([a-z])([A-Z])/g,"$1 $2")||n;return t?[...a,l].join(""):[...a,l].join(" + ")}(e,r):null}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,638475,e=>{"use strict";var t=e.i(843476),n=e.i(798120),a=e.i(319036),i=e.i(609856),s=e.i(283653),r=e.i(95187);let l=(0,r.createServerReference)("7f0ce65e996cfa2473780a3cf0b38904069554f768",r.callServer,void 0,r.findSourceMapURL,"setKeepWorkingOnAction"),o="Work while the app is closed";e.s(["KeepWorkingSwitch",0,function(){let{data:e,mutate:r}=(0,s.useServerRoute)(n.queryKey.botKeepWorking),[d]=(0,i.useServerAction)(l,{onOk:()=>(0,s.revalidate)(n.queryKey.botKeepWorking)});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",title:"Off, closing the last tab stops running jobs and holds routines until one is open again. On, they run until the server stops.",children:o}),(0,t.jsx)(a.Switch,{checked:e??!1,disabled:void 0===e,onCheckedChange:e=>{r(e,!1),d(e)},"aria-label":o})]})}],638475)},480869,e=>{"use strict";var t=e.i(843476),n=e.i(401851),a=e.i(493801),i=e.i(456420);let s={name:"calendar-days",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]]};s.node;let r=(0,i.default)(s);var l=e.i(716327),o=e.i(867927),d=e.i(632781),u=e.i(648119),c=e.i(21357),h=e.i(759659),m=e.i(263676),x=e.i(271645),f=e.i(798120),p=e.i(167881),g=e.i(630374),b=e.i(463415),j=e.i(23750),y=e.i(917162),k=e.i(421429),v=e.i(660302),w=e.i(319036),N=e.i(184762),S=e.i(41533),M=e.i(635963),D=e.i(638475),T=e.i(978411),$=e.i(895836),C=e.i(989409),R=e.i(245629),O=e.i(609856),A=e.i(283653),z=e.i(647163),I=e.i(95187);let q=(0,I.createServerReference)("7fcce53089b7d9ab37e1ede476aa5dedc0b0d35e12",I.callServer,void 0,I.findSourceMapURL,"createRoutineAction"),E=(0,I.createServerReference)("7fdc335db44dcf20b0412b805f81e431a0f5686511",I.callServer,void 0,I.findSourceMapURL,"deleteRoutineAction"),F=(0,I.createServerReference)("7fa185f09203bb0a1f39243fa623f48a736f8dd739",I.callServer,void 0,I.findSourceMapURL,"runRoutineNowAction"),K=(0,I.createServerReference)("7f07a02cdabcb5642ab071031c8335e8f0ba101a04",I.callServer,void 0,I.findSourceMapURL,"updateRoutineAction");var W=e.i(504565);let P=[1,2,3,4,5,6,7],B=W.default.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/,"A time is HH:MM, 00:00 to 23:59");function H(e){let[t,n]=e.split(" "),[a,i,s]=t.split("-").map(Number),[r,l]=n.split(":").map(Number);return new Date(a,i-1,s,r,l)}let U=/^\d{4}-\d\d-\d\d ([01]\d|2[0-3]):[0-5]\d$/,L=W.default.string().regex(U,'A moment is "YYYY-MM-DD HH:MM"').refine(e=>{if(!U.test(e))return!0;let t=H(e);return t.getMonth()===Number(e.slice(5,7))-1&&t.getDate()===Number(e.slice(8,10))},"There is no such day"),G=W.default.discriminatedUnion("kind",[W.default.object({kind:W.default.literal("once"),at:L}),W.default.object({kind:W.default.literal("daily"),time:B,days:W.default.array(W.default.number().int().min(1).max(7)).min(1,"Pick at least one day").transform(e=>[...new Set(e)].sort((e,t)=>e-t))}),W.default.object({kind:W.default.literal("every"),hours:W.default.number().int().min(S.ROUTINE.minHours,`No more often than every ${S.ROUTINE.minHours}h`).max(168)})]),Y=W.default.object({bot:W.default.string().trim().min(1,"Pick a bot"),label:W.default.string().trim().min(1,"Give it a name").max(80),request:W.default.string().trim().min(1,"Say what it should do"),schedule:G}),J=W.default.object({id:W.default.string(),status:W.default.enum(["running","waiting","done","cancelled"]),outcome:W.default.string().nullable(),updatedAt:R.DateLikeSchema});Y.extend({id:W.default.string(),enabled:W.default.boolean(),nextRunAt:R.DateLikeSchema,runs:W.default.array(J)});let _=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(e){if("once"===e.kind){let[t,n]=e.at.split(" "),[,a,i]=t.split("-").map(Number);return`Once \xb7 ${V[a-1]} ${i} ${n}`}if("every"===e.kind)return 1===e.hours?"Every hour":`Every ${e.hours} hours`;let{days:t,time:n}=e;if(7===t.length)return`Daily ${n}`;if(1===t.length)return`${_[t[0]-1]} ${n}`;let a=t.every((e,n)=>0===n||e===t[n-1]+1)?`${_[t[0]-1]}–${_[t.at(-1)-1]}`:t.map(e=>_[e-1]).join(" ");return`Daily ${n} \xb7 ${a}`}var Q=e.i(431594);let Z=(e,t)=>{let n=t?.find(t=>t.name===e)?.icon;return{color:n?.color,shape:n?.shape,outline:n?.outline,paint:n?.paint}};function ee({routine:e,bots:n,open:a,onOpen:i,onSwitch:s}){let r=function(e,t){let n=e.runs[0],a=n?.outcome?(0,z.plainText)(n.outcome):"",i=n?`${(0,R.whenOf)(n.updatedAt)}${a?` — ${a}`:""}`:"Not run yet";if(!e.enabled)return{text:`Off \xb7 ${i}`,tone:"text-muted-foreground"};let s=t?.find(t=>t.name===e.bot);return t&&(!s||s.disabled)?{text:s?`${e.bot} is switched off`:`${e.bot} is gone — pick another bot`,tone:z.WAITING_INK,waits:!0}:n?.status==="running"?{text:"Running now",tone:"",shine:!0}:n?.status==="waiting"?{text:`The last run waits on you${a?`: ${a}`:""}`,tone:z.WAITING_INK,waits:!0}:{text:i,tone:"text-muted-foreground"}}(e,n),l=e.runs[0]?.status==="running";return(0,t.jsxs)("div",{className:(0,z.cn)("flex items-center gap-3 p-4 transition-colors",a?"bg-muted/80":"hover:bg-muted/50"),children:[(0,t.jsxs)("button",{type:"button",onClick:i,className:(0,z.cn)("flex min-w-0 flex-1 items-center gap-3 rounded-md text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",!e.enabled&&"opacity-70"),children:[(0,t.jsx)(M.BotMark,{size:40,seed:e.bot,...Z(e.bot,n),state:l?"thinking":"idle",notify:!!r.waits,className:"shrink-0"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:e.label}),l&&(0,t.jsx)(d.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"})]}),(0,t.jsx)("span",{className:"flex min-w-0 text-[13px] leading-snug",children:r.shine?(0,t.jsx)(v.ShinyText,{text:r.text,speed:2.2,className:"min-w-0 truncate"}):(0,t.jsx)("span",{className:(0,z.cn)("min-w-0 truncate",r.tone),children:r.text})})]}),(0,t.jsxs)("span",{className:"flex w-44 shrink-0 flex-col items-end gap-0.5 font-mono text-[11px] leading-4 text-muted-foreground tabular-nums",children:[(0,t.jsxs)("span",{className:"flex max-w-full items-center gap-1.5 text-foreground",children:[(0,t.jsx)(Q.RoutineMark,{className:"size-3 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"truncate",children:X(e.schedule)})]}),(0,t.jsx)("span",{className:"max-w-full truncate text-muted-foreground/70",children:e.enabled?`next ${(0,R.whenOf)(e.nextRunAt)}`:"off"})]})]}),(0,t.jsx)(w.Switch,{checked:e.enabled,onCheckedChange:s,"aria-label":`${e.label} on or off`,className:"shrink-0"}),(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":`Open ${e.label}`,className:"shrink-0 rounded-md text-muted-foreground outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(o.ChevronRight,{className:"size-4"})})]})}let et=e=>String(e).padStart(2,"0");function en(e,t=new Date){let n=new Date(t);return n.setDate(n.getDate()+e),`${n.getFullYear()}-${et(n.getMonth()+1)}-${et(n.getDate())}`}let ea=(e,t)=>{let n=e?.schedule;return{label:e?.label??"",bot:e?.bot??t.find(e=>!e.disabled)?.name??"",request:e?.request??"",kind:n?.kind??"daily",time:n?.kind==="daily"?n.time:n?.kind==="once"?n.at.slice(11):"09:00",days:n?.kind==="daily"?n.days:[...P],hours:n?.kind==="every"?n.hours:6,date:n?.kind==="once"?n.at.slice(0,10):en(1)}};function ei(e){let t=/^\d\d:\d\d$/.test(e.time);return"once"===e.kind?t&&e.date?{kind:"once",at:`${e.date} ${e.time}`}:null:"daily"===e.kind?e.days.length&&t?{kind:"daily",time:e.time,days:e.days}:null:{kind:"every",hours:e.hours}}let es=e=>e?.kind==="once"&&H(e.at)<=new Date,er=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],el=[{label:"Every day",days:[1,2,3,4,5,6,7]},{label:"Weekdays",days:[1,2,3,4,5]},{label:"Weekends",days:[6,7]}],eo=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ed=[1,2,3,6,12,24].filter(e=>e>=S.ROUTINE.minHours);function eu({routine:e,bots:n,onClose:a,onMade:i}){var s,r;let d,[v,S]=(0,x.useState)(null),D=(0,x.useCallback)(e=>{S(e?.closest("[data-slot=dialog-content]")??null)},[]),$="new"===e?null:e,I="new"===e?"new":e?.id??"",[W,B]=(0,x.useState)(()=>ea($,n));(0,x.useEffect)(()=>B(ea($,n)),[I]);let H=e=>B(t=>({...t,...e})),U=()=>(0,A.revalidate)(f.queryKey.routines),[L,G]=(0,O.useServerAction)(q,{onOk:e=>{U(),i(e.id)}}),[Y]=(0,O.useServerAction)(K,{onOk:U}),[J]=(0,O.useServerAction)(E,{onOk:U}),[_,V]=(0,O.useServerAction)(F,{onOk:()=>{U(),(0,A.revalidate)(f.queryKey.threads)}}),ee=ei(W),ex=ee&&!es(ee)&&W.label.trim()&&W.bot&&W.request.trim()?{label:W.label.trim(),bot:W.bot,request:W.request.trim(),schedule:ee}:null,ej=e=>{$&&Y($.id,e).catch(()=>{})},ey=e=>{H(e);let t=ei({...W,...e});!t||es(t)||ej({schedule:t,..."once"===t.kind?{enabled:!0}:{}})},ek=async()=>{!$||await y.notify.confirm({title:`Delete "${$.label}"?`,description:"It starts no more. The jobs it already opened stay.",okText:"Delete",destructive:!0})&&(await J($.id).catch(()=>{}),a())},ev=n.find(e=>e.name===W.bot),ew=$?.runs[0]?.status==="running"||$?.runs[0]?.status==="waiting";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{ref:D,hidden:!0}),(0,t.jsx)(g.Dialog,{open:!!(e&&v),onOpenChange:e=>!e&&a(),modal:!1,disablePointerDismissal:!0,children:(0,t.jsx)(g.DialogPortal,{container:v,children:(0,t.jsx)(g.DialogPopup,{className:"absolute inset-y-0 right-0 z-10 flex w-[min(35rem,calc(100%-13rem))] flex-col border-l border-border/60 bg-popover text-popover-foreground shadow-2xl shadow-black/10 duration-150 data-open:animate-in data-open:fade-in-0 data-open:slide-in-from-right-4 data-closed:animate-out data-closed:fade-out-0 data-closed:slide-out-to-right-4",children:e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2.5 pt-3.5 pr-3 pb-1.5 pl-5",children:[ev?(0,t.jsx)(M.BotMark,{size:28,seed:ev.name,...Z(ev.name,n),notify:!1,className:"shrink-0"}):(0,t.jsx)("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:(0,t.jsx)(Q.RoutineMark,{className:"size-3.5"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(g.DialogTitle,{className:"sr-only",children:$?$.label:"New routine"}),(0,t.jsx)("p",{className:"truncate text-[15px] leading-5 font-semibold",children:$?$.label:"New routine"}),$&&(0,t.jsxs)("p",{className:"mt-0.5 flex min-w-0 items-center gap-1.5 font-mono text-[11px] text-muted-foreground",children:[(0,t.jsx)(Q.RoutineMark,{className:"size-3 shrink-0"}),(0,t.jsxs)("span",{className:"truncate",children:[$.bot," · ",X($.schedule),$.enabled&&` \xb7 next ${(0,R.whenOf)($.nextRunAt)}`]})]})]}),$&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.Switch,{checked:$.enabled,onCheckedChange:e=>void Y($.id,{enabled:e}).catch(()=>{}),"aria-label":`${$.label} on or off`,className:"mr-1 shrink-0"}),(0,t.jsxs)(b.DropdownMenu,{children:[(0,t.jsx)(b.DropdownMenuTrigger,{render:(0,t.jsx)(p.Button,{size:"icon-sm",variant:"ghost","aria-label":"More",className:"text-muted-foreground"}),children:(0,t.jsx)(u.MoreHorizontal,{})}),(0,t.jsx)(b.DropdownMenuContent,{align:"end",children:(0,t.jsxs)(b.DropdownMenuItem,{variant:"destructive",onClick:ek,children:[(0,t.jsx)(h.Trash2,{}),"Delete"]})})]})]}),(0,t.jsx)(g.DialogClose,{render:(0,t.jsx)(p.Button,{size:"icon-sm",variant:"ghost","aria-label":"Close the routine"}),children:(0,t.jsx)(m.X,{})})]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 space-y-4 overflow-y-auto px-5 pt-3 pb-5",children:[(0,t.jsxs)(eb,{label:"Name",htmlFor:"routine-name",children:[(0,t.jsx)(j.Input,{id:"routine-name",value:W.label,onChange:e=>H({label:e.target.value}),onBlur:()=>{let e=W.label.trim();e&&e!==$?.label&&ej({label:e})},placeholder:"Morning mail",maxLength:80,autoFocus:!$}),(0,t.jsx)(ec,{children:"What it is called in this list, and what she calls it on a call."})]}),(0,t.jsxs)(eb,{label:"Bot",children:[(0,t.jsxs)(b.DropdownMenu,{children:[(0,t.jsxs)(b.DropdownMenuTrigger,{render:(0,t.jsx)(p.Button,{variant:"outline",className:"justify-start gap-2 pl-1.5 font-normal"}),children:[ev?(0,t.jsx)(M.BotMark,{size:20,seed:ev.name,...Z(ev.name,n),notify:!1,className:"shrink-0"}):null,(0,t.jsx)("span",{className:(0,z.cn)(!ev&&"pl-1.5 text-muted-foreground"),children:ev?.name??(W.bot||"Pick a bot")}),(0,t.jsx)(l.ChevronDown,{className:"ml-1 size-3.5 text-muted-foreground"})]}),(0,t.jsx)(b.DropdownMenuContent,{align:"start",children:(0,t.jsx)(b.DropdownMenuGroup,{children:n.filter(e=>!e.disabled).map(e=>(0,t.jsxs)(b.DropdownMenuItem,{onClick:()=>{H({bot:e.name}),e.name!==$?.bot&&ej({bot:e.name})},children:[(0,t.jsx)(M.BotMark,{size:16,seed:e.name,...Z(e.name,n),notify:!1,className:"shrink-0"}),e.name]},e.name))})})]}),(0,t.jsx)(ec,{children:"Who does the job each time it starts."})]}),(0,t.jsx)(eb,{label:"When",children:(0,t.jsxs)("div",{className:"space-y-3.5",children:[(0,t.jsx)(k.Segmented,{"aria-label":"How it starts",value:W.kind,onChange:e=>ey({kind:e}),options:[{value:"once",label:"Once"},{value:"daily",label:"On set days"},{value:"every",label:"Every few hours"}]}),(0,t.jsx)("div",{className:"space-y-2.5",children:"once"===W.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(em,{word:"On",children:(0,t.jsx)(ef,{value:W.date,onPick:e=>ey({date:e})})}),(0,t.jsxs)(em,{word:"At",children:[(0,t.jsx)(ep,{value:W.time,onChange:e=>H({time:e}),onDone:()=>ey({})}),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"or"}),(0,t.jsx)(eh,{picked:!1,onClick:()=>{let e;return ey(((e=new Date(Date.now()+36e5)).setMinutes(5*Math.ceil(e.getMinutes()/5),0,0),{date:en(0,e),time:`${et(e.getHours())}:${et(e.getMinutes())}`}))},children:"In an hour"})]})]}):"daily"===W.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(em,{word:"On",children:P.map(e=>{let n=W.days.includes(e);return(0,t.jsx)(eh,{picked:n,"aria-label":eo[e-1],onClick:()=>ey({days:n?W.days.filter(t=>t!==e):[...W.days,e].sort((e,t)=>e-t)}),children:er[e-1]},e)})}),(0,t.jsx)(em,{children:el.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>ey({days:[...e.days]}),className:"h-6.5 rounded-full bg-muted px-2.5 text-xs text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:e.label},e.label))}),(0,t.jsx)(em,{word:"At",children:(0,t.jsx)(ep,{value:W.time,onChange:e=>H({time:e}),onDone:()=>ey({})})})]}):(0,t.jsxs)(em,{word:"Every",children:[(ed.includes(W.hours)?ed:[...ed,W.hours].sort((e,t)=>e-t)).map(e=>(0,t.jsx)(eh,{picked:e===W.hours,onClick:()=>ey({hours:e}),className:"min-w-10 px-3",children:e},e)),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"hours"})]})}),(0,t.jsx)(eg,{schedule:ee,kind:W.kind})]})}),(0,t.jsxs)(eb,{label:"Job",htmlFor:"routine-request",children:[(0,t.jsx)(N.Textarea,{id:"routine-request",value:W.request,onChange:e=>H({request:e.target.value}),onBlur:()=>{let e=W.request.trim();e&&e!==$?.request&&ej({request:e})},placeholder:"Go through the mail that came since the last run and draft replies to what needs one. Send nothing.",className:"min-h-28"}),(0,t.jsx)(ec,{children:"Handed to the bot as a new thread each time, with a line on how the last run ended. Nobody is there to ask, so say everything it needs."})]}),$&&(0,t.jsxs)("div",{className:"pt-1",children:[(0,t.jsx)("div",{className:"flex h-6 items-center",children:(0,t.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:"Runs"})}),0===$.runs.length?(0,t.jsx)("p",{className:"py-2 text-[13px] text-muted-foreground",children:"Not run yet."}):$.runs.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{var t;return t=e.id,void(C.useSettingsStore.getState().hide(),T.roomOpens.open(t))},className:"flex h-9 w-full items-center gap-3 border-t border-border/60 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)("span",{className:"w-28 shrink-0 font-mono text-[11px] text-muted-foreground tabular-nums",children:(0,R.whenOf)(e.updatedAt)}),(0,t.jsx)("span",{className:(0,z.cn)("min-w-0 flex-1 truncate","waiting"===e.status?z.WAITING_INK:"text-muted-foreground"),children:"running"===e.status?"Running now":e.outcome?(0,z.plainText)(e.outcome):"cancelled"===e.status?"Stopped":"No words"}),(0,t.jsx)(o.ChevronRight,{className:"size-3 shrink-0 text-muted-foreground"})]},e.id))]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-t border-border/60 px-5 py-3",children:[(0,t.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-4 text-muted-foreground",children:$||ex?"Starts while Thursday is running on this computer, with a tab open unless work goes on with the app closed. A time that passed meanwhile starts once, not once for each.":`Still needs ${s=W,r=ee,(d=[s.label.trim()?null:"a name",s.bot?null:"a bot",!r?"a time":es(r)?"a time still ahead":null,s.request.trim()?null:"a job"].filter(e=>null!==e)).length>1?`${d.slice(0,-1).join(", ")} and ${d.at(-1)}`:d[0]??"nothing"}.`}),$?(0,t.jsxs)(p.Button,{variant:"outline",size:"sm",loading:V,disabled:ew,title:ew?"Its last run is still open":void 0,onClick:()=>void _($.id).catch(()=>{}),children:[(0,t.jsx)(c.Play,{}),"Run now"]}):(0,t.jsx)(p.Button,{variant:"brand",size:"sm",loading:G,disabled:!ex,onClick:()=>ex&&void L(ex).catch(()=>{}),children:"Create"})]})]})})})})]})}let ec=({children:e})=>(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e});function eh({picked:e,className:n,...a}){return(0,t.jsx)("button",{type:"button","aria-pressed":e,className:(0,z.cn)("inline-flex h-8 items-center justify-center gap-1.5 rounded-full px-3.5 text-[13px] whitespace-nowrap outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",e?"bg-primary font-medium text-primary-foreground":"text-foreground ring-1 ring-border ring-inset hover:bg-muted",n),...a})}function em({word:e,children:n}){return(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-8 w-9 shrink-0 items-center text-[13px] text-muted-foreground",children:e}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:n})]})}function ex(e){let t=H(`${e} 00:00`),a=(t.getTime()-H(`${en(0)} 00:00`).getTime())/864e5;return(0,n.format)(t,a<7?"EEE d":"EEE, MMM d")}function ef({value:e,onPick:n}){let a=(0,x.useRef)(null),i=[0,1,2,3].map(e=>en(e)),s=()=>a.current?.showPicker();return(0,t.jsxs)(t.Fragment,{children:[i.map((a,i)=>(0,t.jsx)(eh,{picked:a===e,onClick:()=>n(a),children:0===i?"Today":1===i?"Tomorrow":ex(a)},a)),!i.includes(e)&&(0,t.jsx)(eh,{picked:!0,onClick:s,children:ex(e)}),(0,t.jsxs)("span",{className:"relative",children:[(0,t.jsx)(eh,{picked:!1,"aria-label":"Another day",onClick:s,className:"w-8 px-0",children:(0,t.jsx)(r,{className:"size-3.5"})}),(0,t.jsx)("input",{ref:a,type:"date",tabIndex:-1,"aria-hidden":!0,min:i[0],value:e,onChange:e=>e.target.value&&n(e.target.value),className:"pointer-events-none absolute inset-0 opacity-0"})]})]})}function ep({value:e,onChange:n,onDone:a}){return(0,t.jsx)(j.Input,{type:"time","aria-label":"Time of day",value:e,onChange:e=>n(e.target.value),onBlur:a,onClick:e=>e.currentTarget.showPicker?.(),className:"h-8.5 w-28 px-3 text-[15px] tabular-nums md:text-[15px] [&::-webkit-calendar-picker-indicator]:hidden"})}function eg({schedule:e,kind:n}){if(!e||es(e))return(0,t.jsx)("p",{className:"text-xs text-destructive",children:e?"That time has passed. Pick a later one.":"daily"===n?"Pick a time and at least one day.":"Pick a time."});let i=function(e,t){if("once"===e.kind)return H(e.at);if("every"===e.kind)return new Date(t.getTime()+36e5*e.hours);let[n,a]=e.time.split(":").map(Number);for(let i=0;i<=7;i++){let s=new Date(t);s.setDate(s.getDate()+i),s.setHours(n,a,0,0);let r=0===s.getDay()?7:s.getDay();if(s>t&&e.days.includes(r))return s}return new Date(t.getTime()+864e5)}(e,new Date);return(0,t.jsxs)("p",{className:"flex items-start gap-2 text-[13px] leading-5",children:[(0,t.jsx)(Q.RoutineMark,{className:"mt-0.75 size-3.5 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"min-w-0",children:[X(e),(0,t.jsxs)("span",{className:"text-muted-foreground",children:[" · ","once"===e.kind?`${(0,a.formatDistanceToNowStrict)(i,{addSuffix:!0})}, then it switches itself off`:`first start ${(0,R.whenOf)(i)}`]})]})]})}function eb({label:e,htmlFor:n,children:a}){return(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("label",{htmlFor:n,className:"w-14 shrink-0 pt-2 font-mono text-xs text-muted-foreground",children:e}),(0,t.jsx)("div",{className:"min-w-0 flex-1 space-y-1.5",children:a})]})}e.s(["RoutineSetting",0,function(){let[e,n]=(0,x.useState)(null),{data:a,isLoading:i,error:s}=(0,A.useServerRoute)(f.queryKey.routines),{data:r}=(0,A.useServerRoute)(f.queryKey.bot),[l]=(0,O.useServerAction)(K,{onOk:()=>(0,A.revalidate)(f.queryKey.routines)});if(i)return(0,t.jsx)($.SettingSkeleton,{rows:3});if(s)return(0,t.jsx)($.SettingError,{message:s.message});let o=a??[],d=o.filter(e=>e.enabled).length,u=o.find(t=>t.id===e);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($.SettingScreen,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)($.SettingRailNote,{children:[o.length," of ",S.ROUTINE.max," · ",d," on"]}),(0,t.jsx)(D.KeepWorkingSwitch,{})]}),children:(0,t.jsx)($.SettingItems,{addRow:o.length<S.ROUTINE.max?{label:"New routine",onClick:()=>n("new")}:void 0,children:0===o.length?(0,t.jsx)("p",{className:"p-4 text-sm leading-relaxed text-muted-foreground",children:'Nothing starts by itself yet. Tell Thursday what should — "every weekday at nine, go through my mail" — or make one here.'}):o.map(a=>(0,t.jsx)(ee,{routine:a,bots:r,open:a.id===e,onOpen:()=>n(a.id),onSwitch:e=>l(a.id,{enabled:e})},a.id))})}),(0,t.jsx)(eu,{routine:"new"===e?"new":u??null,bots:r??[],onClose:()=>n(null),onMade:e=>n(e)})]})}],480869)},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},21357,e=>{"use strict";var t=e.i(456420);let n={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};n.node;let a=(0,t.default)(n);e.s(["Play",0,a],21357)},759659,e=>{"use strict";var t=e.i(456420);let n={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};n.node;let a=(0,t.default)(n);e.s(["Trash2",0,a],759659)}]);
|