thursday-agent 0.3.0 → 0.4.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.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/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/task/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/task/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/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.nft.json +1 -1
- package/.next/server/app/api/memory/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/tool-call/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/page/server-reference-manifest.json +40 -40
- package/.next/server/app/page.js +2 -2
- 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]__02va5wz._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0ls6_8y._.js +4 -4
- package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1-ga0kh._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1anc1p9._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ccon1w._.js +3 -3
- package/.next/server/chunks/[root-of-the-server]__1orn-5b._.js +4 -3
- package/.next/server/chunks/[root-of-the-server]__1wa1k7r._.js +3 -3
- package/.next/server/chunks/_0-fjql4._.js +5 -5
- package/.next/server/chunks/_00xh_q0._.js +3 -5
- package/.next/server/chunks/_05h2cii._.js +1 -1
- package/.next/server/chunks/_0fzqt2y._.js +48 -44
- package/.next/server/chunks/_0mecv0f._.js +5 -5
- package/.next/server/chunks/_0mh8j4m._.js +1 -1
- package/.next/server/chunks/_0wp4le3._.js +1 -1
- package/.next/server/chunks/_0y5fg-x._.js +1 -1
- package/.next/server/chunks/_1230wbx._.js +3 -3
- package/.next/server/chunks/_15hq89o._.js +1 -1
- package/.next/server/chunks/{_03kp0jp._.js → _1c78vw5._.js} +58 -56
- package/.next/server/chunks/_1j8k_j5._.js +1 -1
- package/.next/server/chunks/_1krd9rf._.js +1 -1
- package/.next/server/chunks/_1php4eq._.js +1 -1
- package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
- package/.next/server/chunks/features_1qf3cei._.js +1 -1
- package/.next/server/chunks/features_memory_1uqvksn._.js +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__092knlj._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__1eh7hid._.js → [root-of-the-server]__0s9dq5u._.js} +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1cyjywu._.js → [root-of-the-server]__0s9l2sv._.js} +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__0zkv7z_._.js → [root-of-the-server]__0xsog8n._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__10-dz5o._.js +13 -9
- package/.next/server/chunks/ssr/[root-of-the-server]__1gtlw6v._.js +2 -2
- 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 +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__0_69wqr._.js → [root-of-the-server]__202p40z._.js} +1 -1
- package/.next/server/chunks/ssr/_001_ms1._.js +1 -1
- package/.next/server/chunks/ssr/{_0c-ql2m._.js → _0fz4mf_._.js} +2 -2
- package/.next/server/chunks/ssr/{_07uchnc._.js → _0gb4gmf._.js} +2 -2
- package/.next/server/chunks/ssr/_0i_6q1w._.js +2 -2
- package/.next/server/chunks/ssr/{_20kd_n0._.js → _0ilna52._.js} +3 -3
- package/.next/server/chunks/ssr/{_0mo2w06._.js → _0n3toaw._.js} +2 -2
- package/.next/server/chunks/ssr/{_0mb8zc8._.js → _0s99bgb._.js} +2 -2
- package/.next/server/chunks/ssr/_0zcjrbg._.js +3 -0
- package/.next/server/chunks/ssr/{_13z3f85._.js → _1-_etts._.js} +2 -2
- package/.next/server/chunks/ssr/_13fke0x._.js +1 -1
- package/.next/server/chunks/ssr/{_01_6m32._.js → _1b2mjwr._.js} +2 -2
- package/.next/server/chunks/ssr/{_1eoqg_g._.js → _1f-dg-6._.js} +2 -2
- package/.next/server/chunks/ssr/{_0y0tiht._.js → _1fojd41._.js} +3 -3
- package/.next/server/chunks/ssr/_1gd8q8l._.js +3 -0
- package/.next/server/chunks/ssr/{_1xvgn77._.js → _1h0rw11._.js} +2 -2
- package/.next/server/chunks/ssr/_1jhd09t._.js +3 -0
- package/.next/server/chunks/ssr/{_0u2jv_x._.js → _1lz_cq2._.js} +46 -44
- package/.next/server/chunks/ssr/{_0kbkmar._.js → _1nnsk7z._.js} +2 -2
- package/.next/server/chunks/ssr/_1sji22n._.js +1 -1
- package/.next/server/chunks/ssr/_1vyd1ji._.js +1 -1
- package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +1 -1
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_0z5tsu8._.js → node_modules_00etblx._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1h4a4pp._.js → node_modules_04jf_m8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0h5hnr1._.js → node_modules_08dhkiq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1vqb6po._.js → node_modules_0940ns5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1i7u1ia._.js → node_modules_09q35v_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_124bue5._.js → node_modules_0_-_a--._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0h7u60n._.js → node_modules_0arus10._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0rjg6t1._.js → node_modules_0b__sgl._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_113tz0l._.js → node_modules_0cxaxk9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0lm7_vm._.js → node_modules_0g7fzk3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0h50b8n._.js → node_modules_0had7xd._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1-hc6uv._.js → node_modules_0pvd7q-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1bc7gu8._.js → node_modules_0yugy6m._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0y_cded._.js → node_modules_14om4ar._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0zp9r92._.js → node_modules_14q6g4n._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0eu1va6._.js → node_modules_198nmll._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1t9cyee._.js → node_modules_1_pc9kq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_063xwpp._.js → node_modules_1aaxuef._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0bvraul._.js → node_modules_1cx_ql6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1xx28h1._.js → node_modules_1cz2hle._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1l0qtdu._.js → node_modules_1efrqxi._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1juq3hs._.js → node_modules_1eg7m6c._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1_n3ztw._.js → node_modules_1gdh31p._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0mwym0g._.js → node_modules_1hpopmo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1bgb6-f._.js → node_modules_1qpjvy5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1uuj9x1._.js → node_modules_1vh5ntv._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d3skpl._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1b748ic._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0i44kk5._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1z4hm5e._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@vercel_oidc_dist_0qe30a_._.js → node_modules_@vercel_oidc_dist_06mk8id._.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 +41 -41
- package/.next/static/chunks/00rd4-v8r7axp.js +1 -0
- package/.next/static/chunks/{0tmgrnlje14-s.js → 08qe4as2q428z.js} +2 -2
- package/.next/static/chunks/{3ok9_x74rip3v.js → 0fl3gwe4-l6tz.js} +1 -1
- package/.next/static/chunks/{2a0k6jlq0_v1u.js → 0gnqdjn2lvdad.js} +2 -2
- package/.next/static/chunks/{1okqiww3pnwka.js → 0hwap1-p0m5sa.js} +1 -1
- package/.next/static/chunks/{1ekc7ul556kbl.js → 0w52rrrmuj9r9.js} +1 -1
- package/.next/static/chunks/{3agpgkwaa321p.js → 0wcprt5ot5she.js} +1 -1
- package/.next/static/chunks/{3xpbkl66ssib5.js → 15m575979un5f.js} +6 -6
- package/.next/static/chunks/{2fzs9fm8yarvq.js → 17p6tk6k88dq6.js} +1 -1
- package/.next/static/chunks/{26-pr2c9ro222.js → 1jd09sxcjddu1.js} +1 -1
- package/.next/static/chunks/{280t0_e99i276.js → 1w73ece_6bheu.js} +1 -1
- package/.next/static/chunks/{1grhjo7a5a0_-.js → 214ya3n5gxeih.js} +1 -1
- package/.next/static/chunks/22_zkas21rpna.js +1 -0
- package/.next/static/chunks/{0x79tx04dxbpp.js → 2u7xt6mxg44lf.js} +1 -1
- package/.next/static/chunks/{17donp69y4do7.js → 39j0fvpybzabl.js} +8 -8
- package/.next/static/chunks/{28cizcdaabd4h.js → 3akmqm77muj4-.js} +1 -1
- package/.next/static/chunks/3cq5g494yuke8.css +1 -0
- package/.next/static/chunks/3woj-xd7ki5_i.js +1 -0
- package/.next/static/chunks/{3cfi_q6d_wtci.js → 3zmcsnuo25zvq.js} +1 -1
- package/README.md +46 -23
- package/app/api/events/app-event.ts +0 -2
- package/bin/port.mjs +65 -0
- package/bin/thursday.mjs +2 -33
- package/docs/how-it-works.md +11 -7
- package/docs/images/face-dark.png +0 -0
- package/docs/images/face-light.png +0 -0
- package/docs/images/keeps-going.png +0 -0
- package/features/ai/chatgpt.ts +42 -20
- package/features/ai/load-tools.ts +20 -14
- package/features/ai/prompts/bot.prompt.ts +90 -88
- package/features/ai/prompts/thursday.prompt.ts +48 -41
- package/features/ai/tools/memory.tool.ts +65 -62
- package/features/ai/tools/tool-name.ts +0 -1
- package/features/ai/tools/workspace.tool.ts +3 -0
- package/features/bot/bot.action.ts +6 -1
- package/features/bot/bot.run.ts +11 -7
- package/features/bot/bot.runner.ts +34 -16
- package/features/bot/bot.schema.ts +25 -0
- package/features/bot/components/bot-room.tsx +57 -4
- package/features/bot/components/bot-tool.tsx +0 -1
- package/features/bot/task.query.ts +25 -6
- package/features/bot/task.store.ts +23 -4
- package/features/memory/components/memory-edit.tsx +7 -5
- package/features/thursday/components/thursday.tsx +0 -3
- package/features/thursday/tool-line.ts +0 -1
- package/features/thursday/use-thursday.ts +1 -1
- package/package.json +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1pduf5n._.js +0 -3
- package/.next/server/chunks/ssr/_14_lw10._.js +0 -3
- package/.next/server/chunks/ssr/_1spzm8z._.js +0 -3
- package/.next/server/chunks/ssr/lib_date-like_ts_02is0pw._.js +0 -3
- package/.next/static/chunks/0xzgvc0fkdb6t.js +0 -1
- package/.next/static/chunks/14hgtsjg-kael.css +0 -1
- package/.next/static/chunks/2hw2f6zmt7fmt.js +0 -1
- package/.next/static/chunks/3111pj5wnjgos.js +0 -1
- package/features/memory/components/memory-view.tsx +0 -84
- /package/.next/static/{x1cCqY0kWpR_VcYx_lWO5 → kaTO0UHqF1bMnWgCDik2f}/_buildManifest.js +0 -0
- /package/.next/static/{x1cCqY0kWpR_VcYx_lWO5 → kaTO0UHqF1bMnWgCDik2f}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{x1cCqY0kWpR_VcYx_lWO5 → kaTO0UHqF1bMnWgCDik2f}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
|
|
2
|
-
globalThis.__RSC_MANIFEST["/page"] = {"moduleLoading":{"prefix":""},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":339756,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":837457,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":347257,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":768017,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":897367,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/client/script.js":{"id":479520,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/app/api/events/app-event.client.ts":{"id":511769,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/components/ui/theme-sync.tsx":{"id":881283,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/components/ui/toast.tsx":{"id":6799,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":168027,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/features/intro/components/intro.tsx":{"id":302707,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js","/_next/static/chunks/3111pj5wnjgos.js","/_next/static/chunks/3t9huugh-5_ps.js","/_next/static/chunks/17donp69y4do7.js","/_next/static/chunks/43q9cgbuw8krx.js","/_next/static/chunks/0dcfqbly-089u.js","/_next/static/chunks/33lyk6a4x_hg8.js","/_next/static/chunks/2re701zfx-nrj.js","/_next/static/chunks/0tmgrnlje14-s.js","/_next/static/chunks/1rowt7kr1tu9y.js","/_next/static/chunks/0sqe8zks75fot.js","/_next/static/chunks/3cfi_q6d_wtci.js","/_next/static/chunks/0xzgvc0fkdb6t.js","/_next/static/chunks/38gweqdo4jpfj.js","/_next/static/chunks/3l6bwn061vy22.js","/_next/static/chunks/2h0sd2vumhb15.js","/_next/static/chunks/3zgnmu3cnahk0.js","/_next/static/chunks/1kq8h8wi_e0bc.js","/_next/static/chunks/0rsni9l5s4ou2.js","/_next/static/chunks/2tigdtz3dpcy8.js","/_next/static/chunks/18a96rkhi4_yd.js","/_next/static/chunks/2t4vhi3m8ahya.js","/_next/static/chunks/1d9i8nlx-zy9a.js","/_next/static/chunks/10teww7wt-f6h.js","/_next/static/chunks/0ev4hyghq0mbb.js","/_next/static/chunks/2hw2f6zmt7fmt.js"],"async":false},"[project]/features/thursday/components/boot.tsx":{"id":252284,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js","/_next/static/chunks/3111pj5wnjgos.js","/_next/static/chunks/3t9huugh-5_ps.js","/_next/static/chunks/17donp69y4do7.js","/_next/static/chunks/43q9cgbuw8krx.js","/_next/static/chunks/0dcfqbly-089u.js","/_next/static/chunks/33lyk6a4x_hg8.js","/_next/static/chunks/2re701zfx-nrj.js","/_next/static/chunks/0tmgrnlje14-s.js","/_next/static/chunks/1rowt7kr1tu9y.js","/_next/static/chunks/0sqe8zks75fot.js","/_next/static/chunks/3cfi_q6d_wtci.js","/_next/static/chunks/0xzgvc0fkdb6t.js","/_next/static/chunks/38gweqdo4jpfj.js","/_next/static/chunks/3l6bwn061vy22.js","/_next/static/chunks/2h0sd2vumhb15.js","/_next/static/chunks/3zgnmu3cnahk0.js","/_next/static/chunks/1kq8h8wi_e0bc.js","/_next/static/chunks/0rsni9l5s4ou2.js","/_next/static/chunks/2tigdtz3dpcy8.js","/_next/static/chunks/18a96rkhi4_yd.js","/_next/static/chunks/2t4vhi3m8ahya.js","/_next/static/chunks/1d9i8nlx-zy9a.js","/_next/static/chunks/10teww7wt-f6h.js","/_next/static/chunks/0ev4hyghq0mbb.js","/_next/static/chunks/2hw2f6zmt7fmt.js"],"async":false},"[project]/features/thursday/components/thursday.tsx":{"id":692888,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js","/_next/static/chunks/3111pj5wnjgos.js","/_next/static/chunks/3t9huugh-5_ps.js","/_next/static/chunks/17donp69y4do7.js","/_next/static/chunks/43q9cgbuw8krx.js","/_next/static/chunks/0dcfqbly-089u.js","/_next/static/chunks/33lyk6a4x_hg8.js","/_next/static/chunks/2re701zfx-nrj.js","/_next/static/chunks/0tmgrnlje14-s.js","/_next/static/chunks/1rowt7kr1tu9y.js","/_next/static/chunks/0sqe8zks75fot.js","/_next/static/chunks/3cfi_q6d_wtci.js","/_next/static/chunks/0xzgvc0fkdb6t.js","/_next/static/chunks/38gweqdo4jpfj.js","/_next/static/chunks/3l6bwn061vy22.js","/_next/static/chunks/2h0sd2vumhb15.js","/_next/static/chunks/3zgnmu3cnahk0.js","/_next/static/chunks/1kq8h8wi_e0bc.js","/_next/static/chunks/0rsni9l5s4ou2.js","/_next/static/chunks/2tigdtz3dpcy8.js","/_next/static/chunks/18a96rkhi4_yd.js","/_next/static/chunks/2t4vhi3m8ahya.js","/_next/static/chunks/1d9i8nlx-zy9a.js","/_next/static/chunks/10teww7wt-f6h.js","/_next/static/chunks/0ev4hyghq0mbb.js","/_next/static/chunks/2hw2f6zmt7fmt.js"],"async":true}},"ssrModuleMapping":{"339756":{"*":{"id":802420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"837457":{"*":{"id":324017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"347257":{"*":{"id":877682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"92825":{"*":{"id":697296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"768017":{"*":{"id":861660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"897367":{"*":{"id":990574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"27201":{"*":{"id":660704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"479520":{"*":{"id":496665,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"511769":{"*":{"id":986368,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"881283":{"*":{"id":198538,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"6799":{"*":{"id":864037,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"168027":{"*":{"id":340622,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js","server/chunks/ssr/node_modules_next_dist_client_components_1bi5-b2._.js"],"async":false}},"302707":{"*":{"id":102928,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js","server/chunks/ssr/_0c-ql2m._.js","server/chunks/ssr/_0mo2w06._.js","server/chunks/ssr/node_modules_14gkv49._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-2E4U76K2_mjs_20f4_iz._.js","server/chunks/ssr/node_modules_roughjs_bundled_rough_esm_15c9pcx.js","server/chunks/ssr/features_bot_1s_-2vj._.js","server/chunks/ssr/node_modules_1c0h-_d._.js","server/chunks/ssr/_1sji22n._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-LNGE3PJU_mjs_15ujw6f._.js","server/chunks/ssr/_14_lw10._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-75Z2AOVW_mjs_051rute._.js","server/chunks/ssr/node_modules_1vbiuwu._.js","server/chunks/ssr/_18cymkq._.js","server/chunks/ssr/_01n3o0m._.js","server/chunks/ssr/_20kd_n0._.js","server/chunks/ssr/lib_date-like_ts_02is0pw._.js","server/chunks/ssr/_0h42fze._.js","server/chunks/ssr/[root-of-the-server]__0lyi8i2._.js","server/chunks/ssr/node_modules_katex_dist_katex_mjs_1oxucd3._.js","server/chunks/ssr/node_modules_0rb-_la._.js","server/chunks/ssr/_0ap2fzn._.js","server/chunks/ssr/node_modules_17bwo43._.js","server/chunks/ssr/node_modules_1bmqmso._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-DU6HZSFF_mjs_20hsuk9._.js","server/chunks/ssr/_1vi_uo7._.js","server/chunks/ssr/_0mb8zc8._.js","server/chunks/ssr/[root-of-the-server]__0l93lgv._.js","server/chunks/ssr/_1spzm8z._.js","server/chunks/ssr/_13fke0x._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-OSK3NFVY_mjs_0x5leh1._.js","server/chunks/ssr/[root-of-the-server]__1pduf5n._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-4HAMMTFA_mjs_1cfif1_._.js"],"async":false}},"252284":{"*":{"id":72962,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js","server/chunks/ssr/_0c-ql2m._.js","server/chunks/ssr/_0mo2w06._.js","server/chunks/ssr/node_modules_14gkv49._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-2E4U76K2_mjs_20f4_iz._.js","server/chunks/ssr/node_modules_roughjs_bundled_rough_esm_15c9pcx.js","server/chunks/ssr/features_bot_1s_-2vj._.js","server/chunks/ssr/node_modules_1c0h-_d._.js","server/chunks/ssr/_1sji22n._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-LNGE3PJU_mjs_15ujw6f._.js","server/chunks/ssr/_14_lw10._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-75Z2AOVW_mjs_051rute._.js","server/chunks/ssr/node_modules_1vbiuwu._.js","server/chunks/ssr/_18cymkq._.js","server/chunks/ssr/_01n3o0m._.js","server/chunks/ssr/_20kd_n0._.js","server/chunks/ssr/lib_date-like_ts_02is0pw._.js","server/chunks/ssr/_0h42fze._.js","server/chunks/ssr/[root-of-the-server]__0lyi8i2._.js","server/chunks/ssr/node_modules_katex_dist_katex_mjs_1oxucd3._.js","server/chunks/ssr/node_modules_0rb-_la._.js","server/chunks/ssr/_0ap2fzn._.js","server/chunks/ssr/node_modules_17bwo43._.js","server/chunks/ssr/node_modules_1bmqmso._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-DU6HZSFF_mjs_20hsuk9._.js","server/chunks/ssr/_1vi_uo7._.js","server/chunks/ssr/_0mb8zc8._.js","server/chunks/ssr/[root-of-the-server]__0l93lgv._.js","server/chunks/ssr/_1spzm8z._.js","server/chunks/ssr/_13fke0x._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-OSK3NFVY_mjs_0x5leh1._.js","server/chunks/ssr/[root-of-the-server]__1pduf5n._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-4HAMMTFA_mjs_1cfif1_._.js"],"async":false}},"692888":{"*":{"id":137079,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js","server/chunks/ssr/_0c-ql2m._.js","server/chunks/ssr/_0mo2w06._.js","server/chunks/ssr/node_modules_14gkv49._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-2E4U76K2_mjs_20f4_iz._.js","server/chunks/ssr/node_modules_roughjs_bundled_rough_esm_15c9pcx.js","server/chunks/ssr/features_bot_1s_-2vj._.js","server/chunks/ssr/node_modules_1c0h-_d._.js","server/chunks/ssr/_1sji22n._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-LNGE3PJU_mjs_15ujw6f._.js","server/chunks/ssr/_14_lw10._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-75Z2AOVW_mjs_051rute._.js","server/chunks/ssr/node_modules_1vbiuwu._.js","server/chunks/ssr/_18cymkq._.js","server/chunks/ssr/_01n3o0m._.js","server/chunks/ssr/_20kd_n0._.js","server/chunks/ssr/lib_date-like_ts_02is0pw._.js","server/chunks/ssr/_0h42fze._.js","server/chunks/ssr/[root-of-the-server]__0lyi8i2._.js","server/chunks/ssr/node_modules_katex_dist_katex_mjs_1oxucd3._.js","server/chunks/ssr/node_modules_0rb-_la._.js","server/chunks/ssr/_0ap2fzn._.js","server/chunks/ssr/node_modules_17bwo43._.js","server/chunks/ssr/node_modules_1bmqmso._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-DU6HZSFF_mjs_20hsuk9._.js","server/chunks/ssr/_1vi_uo7._.js","server/chunks/ssr/_0mb8zc8._.js","server/chunks/ssr/[root-of-the-server]__0l93lgv._.js","server/chunks/ssr/_1spzm8z._.js","server/chunks/ssr/_13fke0x._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-OSK3NFVY_mjs_0x5leh1._.js","server/chunks/ssr/[root-of-the-server]__1pduf5n._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-4HAMMTFA_mjs_1cfif1_._.js"],"async":true}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"339756":{"*":{"id":926768,"name":"*","chunks":[],"async":false}},"837457":{"*":{"id":517910,"name":"*","chunks":[],"async":false}},"347257":{"*":{"id":292977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":348552,"name":"*","chunks":[],"async":false}},"768017":{"*":{"id":683919,"name":"*","chunks":[],"async":false}},"897367":{"*":{"id":724150,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":340771,"name":"*","chunks":[],"async":false}},"479520":{"*":{"id":944536,"name":"*","chunks":[],"async":false}},"511769":{"*":{"id":773791,"name":"*","chunks":[],"async":false}},"881283":{"*":{"id":265728,"name":"*","chunks":[],"async":false}},"6799":{"*":{"id":502807,"name":"*","chunks":[],"async":false}},"168027":{"*":{"id":782509,"name":"*","chunks":[],"async":false}},"302707":{"*":{"id":982616,"name":"*","chunks":[],"async":false}},"252284":{"*":{"id":128756,"name":"*","chunks":[],"async":false}},"692888":{"*":{"id":588694,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/app/layout":[{"path":"static/chunks/233p45nuh4m5b.css","inlined":false},{"path":"static/chunks/02omaqvvszea3.css","inlined":false},{"path":"static/chunks/14hgtsjg-kael.css","inlined":false}],"[project]/node_modules/next/dist/client/components/builtin/global-error":[{"path":"static/chunks/233p45nuh4m5b.css","inlined":false},{"path":"static/chunks/02omaqvvszea3.css","inlined":false},{"path":"static/chunks/14hgtsjg-kael.css","inlined":false}],"[project]/app/page":[{"path":"static/chunks/233p45nuh4m5b.css","inlined":false},{"path":"static/chunks/02omaqvvszea3.css","inlined":false},{"path":"static/chunks/14hgtsjg-kael.css","inlined":false}]},"entryJSFiles":{"[project]/app/layout":["static/chunks/3hibbjnt85-k6.js","static/chunks/3xk7yqgomx7yq.js","static/chunks/0ai8zhobo9662.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/3hibbjnt85-k6.js","static/chunks/3xk7yqgomx7yq.js","static/chunks/0ai8zhobo9662.js"],"[project]/app/page":["static/chunks/3hibbjnt85-k6.js","static/chunks/3xk7yqgomx7yq.js","static/chunks/0ai8zhobo9662.js","static/chunks/3111pj5wnjgos.js","static/chunks/3t9huugh-5_ps.js","static/chunks/17donp69y4do7.js","static/chunks/43q9cgbuw8krx.js","static/chunks/0dcfqbly-089u.js","static/chunks/33lyk6a4x_hg8.js","static/chunks/2re701zfx-nrj.js","static/chunks/0tmgrnlje14-s.js","static/chunks/1rowt7kr1tu9y.js","static/chunks/0sqe8zks75fot.js","static/chunks/3cfi_q6d_wtci.js","static/chunks/0xzgvc0fkdb6t.js","static/chunks/38gweqdo4jpfj.js","static/chunks/3l6bwn061vy22.js","static/chunks/2h0sd2vumhb15.js","static/chunks/3zgnmu3cnahk0.js","static/chunks/1kq8h8wi_e0bc.js","static/chunks/0rsni9l5s4ou2.js","static/chunks/2tigdtz3dpcy8.js","static/chunks/18a96rkhi4_yd.js","static/chunks/2t4vhi3m8ahya.js","static/chunks/1d9i8nlx-zy9a.js","static/chunks/10teww7wt-f6h.js","static/chunks/0ev4hyghq0mbb.js","static/chunks/2hw2f6zmt7fmt.js"]}};
|
|
2
|
+
globalThis.__RSC_MANIFEST["/page"] = {"moduleLoading":{"prefix":""},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":339756,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":837457,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":347257,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":768017,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":897367,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/client/script.js":{"id":479520,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/app/api/events/app-event.client.ts":{"id":511769,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/components/ui/theme-sync.tsx":{"id":881283,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/components/ui/toast.tsx":{"id":6799,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":168027,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js"],"async":false},"[project]/features/intro/components/intro.tsx":{"id":302707,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js","/_next/static/chunks/22_zkas21rpna.js","/_next/static/chunks/3t9huugh-5_ps.js","/_next/static/chunks/39j0fvpybzabl.js","/_next/static/chunks/43q9cgbuw8krx.js","/_next/static/chunks/0dcfqbly-089u.js","/_next/static/chunks/33lyk6a4x_hg8.js","/_next/static/chunks/2t4vhi3m8ahya.js","/_next/static/chunks/1rowt7kr1tu9y.js","/_next/static/chunks/00rd4-v8r7axp.js","/_next/static/chunks/0sqe8zks75fot.js","/_next/static/chunks/3zmcsnuo25zvq.js","/_next/static/chunks/3woj-xd7ki5_i.js","/_next/static/chunks/08qe4as2q428z.js","/_next/static/chunks/2tigdtz3dpcy8.js","/_next/static/chunks/0rsni9l5s4ou2.js","/_next/static/chunks/1kq8h8wi_e0bc.js","/_next/static/chunks/3zgnmu3cnahk0.js","/_next/static/chunks/3l6bwn061vy22.js","/_next/static/chunks/1d9i8nlx-zy9a.js","/_next/static/chunks/2h0sd2vumhb15.js","/_next/static/chunks/2re701zfx-nrj.js","/_next/static/chunks/18a96rkhi4_yd.js","/_next/static/chunks/10teww7wt-f6h.js","/_next/static/chunks/38gweqdo4jpfj.js","/_next/static/chunks/0ev4hyghq0mbb.js"],"async":false},"[project]/features/thursday/components/boot.tsx":{"id":252284,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js","/_next/static/chunks/22_zkas21rpna.js","/_next/static/chunks/3t9huugh-5_ps.js","/_next/static/chunks/39j0fvpybzabl.js","/_next/static/chunks/43q9cgbuw8krx.js","/_next/static/chunks/0dcfqbly-089u.js","/_next/static/chunks/33lyk6a4x_hg8.js","/_next/static/chunks/2t4vhi3m8ahya.js","/_next/static/chunks/1rowt7kr1tu9y.js","/_next/static/chunks/00rd4-v8r7axp.js","/_next/static/chunks/0sqe8zks75fot.js","/_next/static/chunks/3zmcsnuo25zvq.js","/_next/static/chunks/3woj-xd7ki5_i.js","/_next/static/chunks/08qe4as2q428z.js","/_next/static/chunks/2tigdtz3dpcy8.js","/_next/static/chunks/0rsni9l5s4ou2.js","/_next/static/chunks/1kq8h8wi_e0bc.js","/_next/static/chunks/3zgnmu3cnahk0.js","/_next/static/chunks/3l6bwn061vy22.js","/_next/static/chunks/1d9i8nlx-zy9a.js","/_next/static/chunks/2h0sd2vumhb15.js","/_next/static/chunks/2re701zfx-nrj.js","/_next/static/chunks/18a96rkhi4_yd.js","/_next/static/chunks/10teww7wt-f6h.js","/_next/static/chunks/38gweqdo4jpfj.js","/_next/static/chunks/0ev4hyghq0mbb.js"],"async":false},"[project]/features/thursday/components/thursday.tsx":{"id":692888,"name":"*","chunks":["/_next/static/chunks/3hibbjnt85-k6.js","/_next/static/chunks/3xk7yqgomx7yq.js","/_next/static/chunks/0ai8zhobo9662.js","/_next/static/chunks/22_zkas21rpna.js","/_next/static/chunks/3t9huugh-5_ps.js","/_next/static/chunks/39j0fvpybzabl.js","/_next/static/chunks/43q9cgbuw8krx.js","/_next/static/chunks/0dcfqbly-089u.js","/_next/static/chunks/33lyk6a4x_hg8.js","/_next/static/chunks/2t4vhi3m8ahya.js","/_next/static/chunks/1rowt7kr1tu9y.js","/_next/static/chunks/00rd4-v8r7axp.js","/_next/static/chunks/0sqe8zks75fot.js","/_next/static/chunks/3zmcsnuo25zvq.js","/_next/static/chunks/3woj-xd7ki5_i.js","/_next/static/chunks/08qe4as2q428z.js","/_next/static/chunks/2tigdtz3dpcy8.js","/_next/static/chunks/0rsni9l5s4ou2.js","/_next/static/chunks/1kq8h8wi_e0bc.js","/_next/static/chunks/3zgnmu3cnahk0.js","/_next/static/chunks/3l6bwn061vy22.js","/_next/static/chunks/1d9i8nlx-zy9a.js","/_next/static/chunks/2h0sd2vumhb15.js","/_next/static/chunks/2re701zfx-nrj.js","/_next/static/chunks/18a96rkhi4_yd.js","/_next/static/chunks/10teww7wt-f6h.js","/_next/static/chunks/38gweqdo4jpfj.js","/_next/static/chunks/0ev4hyghq0mbb.js"],"async":true}},"ssrModuleMapping":{"339756":{"*":{"id":802420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"837457":{"*":{"id":324017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"347257":{"*":{"id":877682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"92825":{"*":{"id":697296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"768017":{"*":{"id":861660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"897367":{"*":{"id":990574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"27201":{"*":{"id":660704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"479520":{"*":{"id":496665,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"511769":{"*":{"id":986368,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"881283":{"*":{"id":198538,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"6799":{"*":{"id":864037,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js"],"async":false}},"168027":{"*":{"id":340622,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js","server/chunks/ssr/node_modules_next_dist_client_components_1bi5-b2._.js"],"async":false}},"302707":{"*":{"id":102928,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js","server/chunks/ssr/_0fz4mf_._.js","server/chunks/ssr/_0n3toaw._.js","server/chunks/ssr/node_modules_14gkv49._.js","server/chunks/ssr/node_modules_roughjs_bundled_rough_esm_15c9pcx.js","server/chunks/ssr/_1gd8q8l._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-OSK3NFVY_mjs_0x5leh1._.js","server/chunks/ssr/node_modules_1c0h-_d._.js","server/chunks/ssr/_0zcjrbg._.js","server/chunks/ssr/features_bot_1s_-2vj._.js","server/chunks/ssr/node_modules_1bmqmso._.js","server/chunks/ssr/_01n3o0m._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-75Z2AOVW_mjs_051rute._.js","server/chunks/ssr/node_modules_1vbiuwu._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-2E4U76K2_mjs_20f4_iz._.js","server/chunks/ssr/_0ilna52._.js","server/chunks/ssr/_0h42fze._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-DU6HZSFF_mjs_20hsuk9._.js","server/chunks/ssr/node_modules_0rb-_la._.js","server/chunks/ssr/_0ap2fzn._.js","server/chunks/ssr/_1vi_uo7._.js","server/chunks/ssr/node_modules_katex_dist_katex_mjs_1oxucd3._.js","server/chunks/ssr/_18cymkq._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-4HAMMTFA_mjs_1cfif1_._.js","server/chunks/ssr/_1jhd09t._.js","server/chunks/ssr/node_modules_17bwo43._.js","server/chunks/ssr/[root-of-the-server]__0l93lgv._.js","server/chunks/ssr/[root-of-the-server]__0lyi8i2._.js","server/chunks/ssr/_13fke0x._.js","server/chunks/ssr/_1sji22n._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-LNGE3PJU_mjs_15ujw6f._.js","server/chunks/ssr/[root-of-the-server]__092knlj._.js","server/chunks/ssr/_0s99bgb._.js"],"async":false}},"252284":{"*":{"id":72962,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js","server/chunks/ssr/_0fz4mf_._.js","server/chunks/ssr/_0n3toaw._.js","server/chunks/ssr/node_modules_14gkv49._.js","server/chunks/ssr/node_modules_roughjs_bundled_rough_esm_15c9pcx.js","server/chunks/ssr/_1gd8q8l._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-OSK3NFVY_mjs_0x5leh1._.js","server/chunks/ssr/node_modules_1c0h-_d._.js","server/chunks/ssr/_0zcjrbg._.js","server/chunks/ssr/features_bot_1s_-2vj._.js","server/chunks/ssr/node_modules_1bmqmso._.js","server/chunks/ssr/_01n3o0m._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-75Z2AOVW_mjs_051rute._.js","server/chunks/ssr/node_modules_1vbiuwu._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-2E4U76K2_mjs_20f4_iz._.js","server/chunks/ssr/_0ilna52._.js","server/chunks/ssr/_0h42fze._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-DU6HZSFF_mjs_20hsuk9._.js","server/chunks/ssr/node_modules_0rb-_la._.js","server/chunks/ssr/_0ap2fzn._.js","server/chunks/ssr/_1vi_uo7._.js","server/chunks/ssr/node_modules_katex_dist_katex_mjs_1oxucd3._.js","server/chunks/ssr/_18cymkq._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-4HAMMTFA_mjs_1cfif1_._.js","server/chunks/ssr/_1jhd09t._.js","server/chunks/ssr/node_modules_17bwo43._.js","server/chunks/ssr/[root-of-the-server]__0l93lgv._.js","server/chunks/ssr/[root-of-the-server]__0lyi8i2._.js","server/chunks/ssr/_13fke0x._.js","server/chunks/ssr/_1sji22n._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-LNGE3PJU_mjs_15ujw6f._.js","server/chunks/ssr/[root-of-the-server]__092knlj._.js","server/chunks/ssr/_0s99bgb._.js"],"async":false}},"692888":{"*":{"id":137079,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0mz33a7._.js","server/chunks/ssr/node_modules_clsx_dist_clsx_mjs_0q8hrxx._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/_0h7zdni._.js","server/chunks/ssr/_0fz4mf_._.js","server/chunks/ssr/_0n3toaw._.js","server/chunks/ssr/node_modules_14gkv49._.js","server/chunks/ssr/node_modules_roughjs_bundled_rough_esm_15c9pcx.js","server/chunks/ssr/_1gd8q8l._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-OSK3NFVY_mjs_0x5leh1._.js","server/chunks/ssr/node_modules_1c0h-_d._.js","server/chunks/ssr/_0zcjrbg._.js","server/chunks/ssr/features_bot_1s_-2vj._.js","server/chunks/ssr/node_modules_1bmqmso._.js","server/chunks/ssr/_01n3o0m._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-75Z2AOVW_mjs_051rute._.js","server/chunks/ssr/node_modules_1vbiuwu._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-2E4U76K2_mjs_20f4_iz._.js","server/chunks/ssr/_0ilna52._.js","server/chunks/ssr/_0h42fze._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-DU6HZSFF_mjs_20hsuk9._.js","server/chunks/ssr/node_modules_0rb-_la._.js","server/chunks/ssr/_0ap2fzn._.js","server/chunks/ssr/_1vi_uo7._.js","server/chunks/ssr/node_modules_katex_dist_katex_mjs_1oxucd3._.js","server/chunks/ssr/_18cymkq._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-4HAMMTFA_mjs_1cfif1_._.js","server/chunks/ssr/_1jhd09t._.js","server/chunks/ssr/node_modules_17bwo43._.js","server/chunks/ssr/[root-of-the-server]__0l93lgv._.js","server/chunks/ssr/[root-of-the-server]__0lyi8i2._.js","server/chunks/ssr/_13fke0x._.js","server/chunks/ssr/_1sji22n._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-LNGE3PJU_mjs_15ujw6f._.js","server/chunks/ssr/[root-of-the-server]__092knlj._.js","server/chunks/ssr/_0s99bgb._.js"],"async":true}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"339756":{"*":{"id":926768,"name":"*","chunks":[],"async":false}},"837457":{"*":{"id":517910,"name":"*","chunks":[],"async":false}},"347257":{"*":{"id":292977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":348552,"name":"*","chunks":[],"async":false}},"768017":{"*":{"id":683919,"name":"*","chunks":[],"async":false}},"897367":{"*":{"id":724150,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":340771,"name":"*","chunks":[],"async":false}},"479520":{"*":{"id":944536,"name":"*","chunks":[],"async":false}},"511769":{"*":{"id":773791,"name":"*","chunks":[],"async":false}},"881283":{"*":{"id":265728,"name":"*","chunks":[],"async":false}},"6799":{"*":{"id":502807,"name":"*","chunks":[],"async":false}},"168027":{"*":{"id":782509,"name":"*","chunks":[],"async":false}},"302707":{"*":{"id":982616,"name":"*","chunks":[],"async":false}},"252284":{"*":{"id":128756,"name":"*","chunks":[],"async":false}},"692888":{"*":{"id":588694,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/app/layout":[{"path":"static/chunks/233p45nuh4m5b.css","inlined":false},{"path":"static/chunks/02omaqvvszea3.css","inlined":false},{"path":"static/chunks/3cq5g494yuke8.css","inlined":false}],"[project]/node_modules/next/dist/client/components/builtin/global-error":[{"path":"static/chunks/233p45nuh4m5b.css","inlined":false},{"path":"static/chunks/02omaqvvszea3.css","inlined":false},{"path":"static/chunks/3cq5g494yuke8.css","inlined":false}],"[project]/app/page":[{"path":"static/chunks/233p45nuh4m5b.css","inlined":false},{"path":"static/chunks/02omaqvvszea3.css","inlined":false},{"path":"static/chunks/3cq5g494yuke8.css","inlined":false}]},"entryJSFiles":{"[project]/app/layout":["static/chunks/3hibbjnt85-k6.js","static/chunks/3xk7yqgomx7yq.js","static/chunks/0ai8zhobo9662.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/3hibbjnt85-k6.js","static/chunks/3xk7yqgomx7yq.js","static/chunks/0ai8zhobo9662.js"],"[project]/app/page":["static/chunks/3hibbjnt85-k6.js","static/chunks/3xk7yqgomx7yq.js","static/chunks/0ai8zhobo9662.js","static/chunks/22_zkas21rpna.js","static/chunks/3t9huugh-5_ps.js","static/chunks/39j0fvpybzabl.js","static/chunks/43q9cgbuw8krx.js","static/chunks/0dcfqbly-089u.js","static/chunks/33lyk6a4x_hg8.js","static/chunks/2t4vhi3m8ahya.js","static/chunks/1rowt7kr1tu9y.js","static/chunks/00rd4-v8r7axp.js","static/chunks/0sqe8zks75fot.js","static/chunks/3zmcsnuo25zvq.js","static/chunks/3woj-xd7ki5_i.js","static/chunks/08qe4as2q428z.js","static/chunks/2tigdtz3dpcy8.js","static/chunks/0rsni9l5s4ou2.js","static/chunks/1kq8h8wi_e0bc.js","static/chunks/3zgnmu3cnahk0.js","static/chunks/3l6bwn061vy22.js","static/chunks/1d9i8nlx-zy9a.js","static/chunks/2h0sd2vumhb15.js","static/chunks/2re701zfx-nrj.js","static/chunks/18a96rkhi4_yd.js","static/chunks/10teww7wt-f6h.js","static/chunks/38gweqdo4jpfj.js","static/chunks/0ev4hyghq0mbb.js"]}};
|
|
3
3
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[418520,e=>e.a(async(t,a)=>{try{var i=await e.y("@libsql/client-6da938047d5fc1cd");e.n(i),a()}catch(e){a(e)}},!0),902157,(e,t,a)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},750227,(e,t,a)=>{t.exports=e.x("node:path",()=>require("node:path"))},333925,e=>{"use strict";let t=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),a=process.env.THURSDAY_HOME?.trim()||process.cwd(),i=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,s=`file:${a}/local.db`,o=".ai-workspace",n={workspace:o,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${o}/.agents/skills`}};e.s(["APP_DIR",0,t,"APP_NAME",0,"Thursday","APP_URL",0,i,"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_VIEWPORT",0,"700x700","CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,a,"DB_FILE_NAME",0,s,"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,n,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"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}])},799791,e=>e.a(async(t,a)=>{try{var i=e.i(336763),s=e.i(533102),o=e.i(876393),n=e.i(220376),r=e.i(724185),l=e.i(951056),c=t([o,r]);[o,r]=c.then?(await c)():c;let p=e=>({name:e.name,description:e.description,systemPrompt:e.systemPrompt,icon:e.icon,provider:e.provider,model:e.model,disabled:e.disabled,compactAt:e.compactAt});async function d(){let e=await o.database.select().from(n.botTable).orderBy(n.botTable.createdAt);return e.length?e.filter(e=>!e.disabled).map(p):[l.DEFAULT_BOT]}async function E(e){let t=await _(e);if(t)return p(t);let a=e.trim().toLowerCase(),[r]=await o.database.select().from(n.botTable).where((0,i.eq)(s.sql`lower(${n.botTable.name})`,a));return r?p(r):l.DEFAULT_BOT.name.toLowerCase()===a?l.DEFAULT_BOT:null}async function m(){return(0,l.isBotMemoryOn)(await (0,r.readConfig)(l.BOT_MEMORY_KEY))}async function _(e){let[t]=await o.database.select().from(n.botTable).where((0,i.eq)(n.botTable.name,e));return t??null}e.s(["findJobBot",0,E,"listJobBots",0,d,"readBotMemoryOn",0,m]),a()}catch(e){a(e)}},!1),656719,e=>{"use strict";var t=e.i(864328);let a=[...new Set(Object.values(t.SPEACH_MODEL_PROVIDERS).map(e=>e.apiKeyName))],i={image:"IMAGE_MODEL",video:"VIDEO_MODEL",speech:"SPEECH_MODEL",transcription:"TRANSCRIPTION_MODEL"},s={image:{label:"Image model",hint:"What bots draw with"},video:{label:"Video model",hint:"What bots film with — minutes a clip"},speech:{label:"Speech model",hint:"What reads text aloud into a file"},transcription:{label:"Transcription model",hint:"What turns a recording into text"}},o="EXA_API_KEY",n="DEFAULT_MODEL",r={key:n,label:"Default model",hint:"What a bot thinks with until it picks its own",text:!0,choices:t.TEXT_MODEL_PROVIDER_LIST.flatMap(e=>e.suggestModels.map(t=>({value:`${e.id}/${t.id}`,label:`${e.label} \xb7 ${t.label}`,needs:e.apiKeyName})))},l=e=>a.includes(e.apiKeyName),c=e=>({key:e.apiKeyName,label:e.label,provider:e.id,signIn:e.signIn}),d=[{id:"voice",title:"voice",hint:"calls run on one of these",section:"keys",require:"any",note:"one is required",entries:t.TEXT_MODEL_PROVIDER_LIST.filter(l).map(c)},{id:"text",title:"models",hint:"what bots think with — add any, or none",section:"keys",require:"none",entries:t.TEXT_MODEL_PROVIDER_LIST.filter(e=>!l(e)).map(c)},{id:"search",title:"search",hint:"how bots look things up — one key, or their own model's",section:"keys",require:"none",entries:[{key:o,label:"Exa",hint:"web search in one call — dashboard.exa.ai"}]},{id:"bots",title:"Bots",hint:"what a bot runs on when it has not picked its own",section:"models",require:"none",entries:[r]},{id:"studio",title:"Studio",hint:"what a bot draws, films and speaks with — off until you pick one",section:"models",require:"none",entries:Object.keys(i).map(e=>({key:i[e],...s[e],kind:e,choices:t.MEDIA_MODEL_PROVIDER_LIST.flatMap(t=>t.models[e].map(e=>({value:`${t.id}/${e.id}`,label:`${t.label} \xb7 ${e.label}`,needs:t.apiKeyName})))}))}];Object.fromEntries(d.flatMap(e=>e.entries).map(e=>[e.key,e])),d.flatMap(e=>e.entries.map(e=>e.key)),Object.fromEntries(d.flatMap(e=>e.entries).filter(e=>e.choices?.length).map(e=>[e.key,e.choices])),e.s(["DEFAULT_MODEL_KEY",0,n,"EXA_API_KEY",0,o,"MEDIA_MODEL_KEYS",0,i])},724185,e=>e.a(async(t,a)=>{try{var i=e.i(336763),s=e.i(876393),o=e.i(220376);e.i(656719);var n=t([s]);async function r(e){let t=process.env[e]?.trim();if(t)return t;let[a]=await s.database.select({value:o.configTable.value}).from(o.configTable).where((0,i.eq)(o.configTable.key,e));return a?.value.trim()||void 0}async function l(e,t){await s.database.insert(o.configTable).values({key:e,value:t}).onConflictDoUpdate({target:o.configTable.key,set:{value:t}})}[s]=n.then?(await n)():n,e.s(["readConfig",0,r,"writeConfig",0,l]),a()}catch(e){a(e)}},!1)];
|
|
1
|
+
module.exports=[418520,e=>e.a(async(t,a)=>{try{var i=await e.y("@libsql/client-6da938047d5fc1cd");e.n(i),a()}catch(e){a(e)}},!0),902157,(e,t,a)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},750227,(e,t,a)=>{t.exports=e.x("node:path",()=>require("node:path"))},333925,e=>{"use strict";let t=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),a=process.env.THURSDAY_HOME?.trim()||process.cwd(),i=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,s=`file:${a}/local.db`,o=".ai-workspace",n={workspace:o,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${o}/.agents/skills`}};e.s(["APP_DIR",0,t,"APP_NAME",0,"Thursday","APP_URL",0,i,"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_VIEWPORT",0,"700x700","CALL_EXEC_TIMEOUT_MS",0,15e3,"CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,a,"DB_FILE_NAME",0,s,"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,n,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"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}])},799791,e=>e.a(async(t,a)=>{try{var i=e.i(336763),s=e.i(533102),o=e.i(876393),n=e.i(220376),r=e.i(724185),l=e.i(951056),c=t([o,r]);[o,r]=c.then?(await c)():c;let p=e=>({name:e.name,description:e.description,systemPrompt:e.systemPrompt,icon:e.icon,provider:e.provider,model:e.model,disabled:e.disabled,compactAt:e.compactAt});async function d(){let e=await o.database.select().from(n.botTable).orderBy(n.botTable.createdAt);return e.length?e.filter(e=>!e.disabled).map(p):[l.DEFAULT_BOT]}async function E(e){let t=await _(e);if(t)return p(t);let a=e.trim().toLowerCase(),[r]=await o.database.select().from(n.botTable).where((0,i.eq)(s.sql`lower(${n.botTable.name})`,a));return r?p(r):l.DEFAULT_BOT.name.toLowerCase()===a?l.DEFAULT_BOT:null}async function m(){return(0,l.isBotMemoryOn)(await (0,r.readConfig)(l.BOT_MEMORY_KEY))}async function _(e){let[t]=await o.database.select().from(n.botTable).where((0,i.eq)(n.botTable.name,e));return t??null}e.s(["findJobBot",0,E,"listJobBots",0,d,"readBotMemoryOn",0,m]),a()}catch(e){a(e)}},!1),656719,e=>{"use strict";var t=e.i(864328);let a=[...new Set(Object.values(t.SPEACH_MODEL_PROVIDERS).map(e=>e.apiKeyName))],i={image:"IMAGE_MODEL",video:"VIDEO_MODEL",speech:"SPEECH_MODEL",transcription:"TRANSCRIPTION_MODEL"},s={image:{label:"Image model",hint:"What bots draw with"},video:{label:"Video model",hint:"What bots film with — minutes a clip"},speech:{label:"Speech model",hint:"What reads text aloud into a file"},transcription:{label:"Transcription model",hint:"What turns a recording into text"}},o="EXA_API_KEY",n="DEFAULT_MODEL",r={key:n,label:"Default model",hint:"What a bot thinks with until it picks its own",text:!0,choices:t.TEXT_MODEL_PROVIDER_LIST.flatMap(e=>e.suggestModels.map(t=>({value:`${e.id}/${t.id}`,label:`${e.label} \xb7 ${t.label}`,needs:e.apiKeyName})))},l=e=>a.includes(e.apiKeyName),c=e=>({key:e.apiKeyName,label:e.label,provider:e.id,signIn:e.signIn}),d=[{id:"voice",title:"voice",hint:"calls run on one of these",section:"keys",require:"any",note:"one is required",entries:t.TEXT_MODEL_PROVIDER_LIST.filter(l).map(c)},{id:"text",title:"models",hint:"what bots think with — add any, or none",section:"keys",require:"none",entries:t.TEXT_MODEL_PROVIDER_LIST.filter(e=>!l(e)).map(c)},{id:"search",title:"search",hint:"how bots look things up — one key, or their own model's",section:"keys",require:"none",entries:[{key:o,label:"Exa",hint:"web search in one call — dashboard.exa.ai"}]},{id:"bots",title:"Bots",hint:"what a bot runs on when it has not picked its own",section:"models",require:"none",entries:[r]},{id:"studio",title:"Studio",hint:"what a bot draws, films and speaks with — off until you pick one",section:"models",require:"none",entries:Object.keys(i).map(e=>({key:i[e],...s[e],kind:e,choices:t.MEDIA_MODEL_PROVIDER_LIST.flatMap(t=>t.models[e].map(e=>({value:`${t.id}/${e.id}`,label:`${t.label} \xb7 ${e.label}`,needs:t.apiKeyName})))}))}];Object.fromEntries(d.flatMap(e=>e.entries).map(e=>[e.key,e])),d.flatMap(e=>e.entries.map(e=>e.key)),Object.fromEntries(d.flatMap(e=>e.entries).filter(e=>e.choices?.length).map(e=>[e.key,e.choices])),e.s(["DEFAULT_MODEL_KEY",0,n,"EXA_API_KEY",0,o,"MEDIA_MODEL_KEYS",0,i])},724185,e=>e.a(async(t,a)=>{try{var i=e.i(336763),s=e.i(876393),o=e.i(220376);e.i(656719);var n=t([s]);async function r(e){let t=process.env[e]?.trim();if(t)return t;let[a]=await s.database.select({value:o.configTable.value}).from(o.configTable).where((0,i.eq)(o.configTable.key,e));return a?.value.trim()||void 0}async function l(e,t){await s.database.insert(o.configTable).values({key:e,value:t}).onConflictDoUpdate({target:o.configTable.key,set:{value:t}})}[s]=n.then?(await n)():n,e.s(["readConfig",0,r,"writeConfig",0,l]),a()}catch(e){a(e)}},!1)];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__02va5wz._.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
module.exports=[874533,(e,t,
|
|
1
|
+
module.exports=[874533,(e,t,a)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},912714,(e,t,a)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},944971,514499,e=>{"use strict";var t=e.i(105249),a=e.i(687388),i=e.i(264079),l=e.i(704161);let n={name:{max:16},shortDescription:{max:60},description:{max:100},prompt:{max:4e3}};e.s(["COMMON_VALIDATE",0,n],514499);var r=e.i(41444);Array(8).fill(0);let s="currentColor",o=[{id:"system",label:"System",value:s},{id:"slate",label:"Slate",value:"#64748B"},{id:"indigo",label:"Indigo",value:"#6366F1"},{id:"blue",label:"Blue",value:"#3B82F6"},{id:"cyan",label:"Cyan",value:"#06B6D4"},{id:"teal",label:"Teal",value:"#14B8A6"},{id:"green",label:"Green",value:"#22C55E"},{id:"lime",label:"Lime",value:"#84CC16"},{id:"amber",label:"Amber",value:"#F59E0B"},{id:"orange",label:"Orange",value:"#F97316"},{id:"red",label:"Red",value:"#EF4444"},{id:"pink",label:"Pink",value:"#EC4899"},{id:"violet",label:"Violet",value:"#8B5CF6"},{id:"fuchsia",label:"Fuchsia",value:"#D946EF"},{id:"rose",label:"Rose",value:"#F43F5E"},{id:"sky",label:"Sky",value:"#0EA5E9"},{id:"emerald",label:"Emerald",value:"#10B981"},{id:"yellow",label:"Yellow",value:"#EAB308"},{id:"stone",label:"Stone",value:"#78716C"},{id:"navy",label:"Navy",value:"#1E3A8A",dark:!0},{id:"ocean",label:"Ocean",value:"#155E75",dark:!0},{id:"pine",label:"Pine",value:"#166534",dark:!0},{id:"moss",label:"Moss",value:"#3F6212",dark:!0},{id:"olive",label:"Olive",value:"#854D0E",dark:!0},{id:"rust",label:"Rust",value:"#9A3412",dark:!0},{id:"wine",label:"Wine",value:"#9F1239",dark:!0},{id:"plum",label:"Plum",value:"#6B21A8",dark:!0},{id:"grape",label:"Grape",value:"#5B21B6",dark:!0},{id:"iron",label:"Iron",value:"#334155",dark:!0}],d=Object.fromEntries(o.map(e=>[e.id,e.value]));o.filter(e=>e.value!==s).map(e=>e.value),d.amber,d.red,o.filter(e=>e.value!==s&&!("dark"in e)).map(e=>e.value),o.filter(e=>"dark"in e).map(e=>e.value);let u=t.default.object({color:t.default.string().regex(/^(#[0-9a-fA-F]{6}|currentColor)$/,"Hex color").optional(),shape:t.default.enum(["blob","poly","squircle"]).optional(),outline:t.default.boolean().optional()}),c=t.default.string().max(n.prompt.max),m=t.default.object({id:t.default.number(),name:t.default.string(),serverName:t.default.string()}),f=t.default.string().trim().transform(e=>e.replace(/\s+/g," ")).pipe(t.default.string().min(1,"A name is required").max(n.name.max)),p=t.default.object({input:t.default.number(),output:t.default.number()});t.default.object({name:t.default.string(),description:t.default.string(),systemPrompt:t.default.string().nullish(),icon:u.nullish(),provider:i.textModelProviderSchema.nullish(),model:t.default.string().nullish(),compactAt:t.default.number().nullish(),disabled:t.default.boolean(),createdAt:l.DateLikeSchema,tools:m.array().default([]),tokens:p,lastJobAt:l.DateLikeSchema.nullish()}),t.default.object({name:f,description:t.default.string().trim().min(1,"Say what this bot is for").max(n.description.max),systemPrompt:c.optional(),icon:u.optional(),provider:i.textModelProviderSchema.nullish(),model:t.default.string().trim().max(80).nullish(),compactAt:t.default.coerce.number().int().min(8e3,"At least 8k").nullish(),disabled:t.default.boolean().optional(),toolIds:t.default.number().int().array().max(10).default([])}),t.default.object({file:t.default.string(),path:t.default.string(),line:t.default.string(),at:l.DateLikeSchema,bytes:t.default.number()});let g=a.PAGE_SIZE,h={thursday:"Thursday, on the call:",user:"The user, on screen:"},b=t.default.discriminatedUnion("type",[t.default.object({type:t.default.literal("text"),text:t.default.string()}),t.default.object({type:t.default.literal("image"),src:t.default.string()})]),k=t.default.object({id:t.default.string(),seq:t.default.number(),bot:t.default.string().nullable(),parent:t.default.string().nullable(),at:l.DateLikeSchema}),v=t.default.discriminatedUnion("kind",[k.extend({kind:t.default.literal("user"),text:t.default.string()}),k.extend({kind:t.default.literal("text"),text:t.default.string()}),k.extend({kind:t.default.literal("note"),text:t.default.string()}),k.extend({kind:t.default.literal("stop"),text:t.default.string()}),k.extend({kind:t.default.literal("tool"),callId:t.default.string(),name:t.default.string(),input:t.default.string(),note:t.default.string().nullish(),path:t.default.string().nullish()}),k.extend({kind:t.default.literal("tool-result"),callId:t.default.string(),name:t.default.string(),results:b.array(),more:t.default.boolean()}),k.extend({kind:t.default.literal("ask"),callId:t.default.string(),to:t.default.string(),text:t.default.string()}),k.extend({kind:t.default.literal("ask-result"),callId:t.default.string(),text:t.default.string()}),k.extend({kind:t.default.literal("waiting"),callId:t.default.string(),question:t.default.string(),options:t.default.string().array()})]),w=t.default.object({question:t.default.string(),options:t.default.string().array(),auto:t.default.boolean()});t.default.object({id:t.default.string(),bot:t.default.string(),label:t.default.string(),request:t.default.string(),status:t.default.enum(["running","waiting","done","failed"]),outcome:t.default.string().nullable(),ask:w.nullable(),seen:t.default.boolean(),tokens:p,contextTokens:t.default.number(),contextBudget:t.default.number(),createdAt:l.DateLikeSchema,updatedAt:l.DateLikeSchema,lines:v.array()}),e.s(["BOT_MEMORY_KEY",0,"BOT_MEMORY","COMPACT_AT_MIN",0,8e3,"DEFAULT_BOT",0,{name:"Jarvis",description:"Anything — this computer, a browser, the web, files, services",systemPrompt:null,icon:{color:"#14B8A6",shape:"squircle"},provider:null,model:null,disabled:!1,compactAt:null},"NO_TOKENS",0,{input:0,output:0},"TASK_CONTINUE",0,"Continue","TASK_HISTORY_PAGE",0,g,"botIconSchema",0,u,"isBotMemoryOn",0,e=>e?.trim()!=="off","tagSpeaker",0,(e,t)=>`${h[e]} ${t}`,"taskActivity",0,function(e,t=120){let a=null;for(let i=e.length-1;i>=0;i--){let l=e[i];if("tool"===l.kind)a??=`${l.name} ${l.note??l.input}`;else if("text"===l.kind)return(0,r.clip)(a?`${l.text} → ${a}`:l.text,t);else if("ask"===l.kind)return(0,r.clip)(l.parent?`asked ${l.to}: ${l.text}`:`asked ${l.to} for: ${l.text}`,t);else if("user"===l.kind||"waiting"===l.kind)break}return a?(0,r.clip)(a,t):null},"untagSpeaker",0,e=>{for(let t of Object.values(h))if(e.startsWith(`${t} `))return e.slice(t.length+1);return e}],944971)},629668,e=>{"use strict";var t=e.i(687388);let a=e=>`text/${e}; charset=utf-8`,i={md:{kind:"markdown",mime:a("markdown")},markdown:{kind:"markdown",mime:a("markdown")},csv:{kind:"csv",mime:a("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:a("plain")},log:{kind:"text",mime:a("plain")},html:{kind:"frame",mime:a("html")},htm:{kind:"frame",mime:a("html")},pdf:{kind:"frame",mime:"application/pdf"},png:{kind:"image",mime:"image/png"},jpg:{kind:"image",mime:"image/jpeg"},jpeg:{kind:"image",mime:"image/jpeg"},gif:{kind:"image",mime:"image/gif"},webp:{kind:"image",mime:"image/webp"},svg:{kind:"image",mime:"image/svg+xml"},mp3:{kind:"audio",mime:"audio/mpeg"},wav:{kind:"audio",mime:"audio/wav"},mp4:{kind:"video",mime:"video/mp4"},webm:{kind:"video",mime:"video/webm"},css:{kind:"none",mime:a("css")},js:{kind:"none",mime:a("javascript")},woff2:{kind:"none",mime:"font/woff2"}},l=e=>e.split(".").pop()?.toLowerCase()??"",n=new Set(["node_modules","__pycache__"]),r=Object.entries(i).filter(([,e])=>"none"!==e.kind).map(([e])=>e),s=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${r.join("|")})\b`,"giu"),o=`${t.PATHS.workspace}/`;e.s(["isListedFolder",0,e=>!e.startsWith(".")&&!n.has(e),"mimeOf",0,e=>i[l(e)]?.mime??"application/octet-stream","pathsIn",0,function(e){let t=e.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," "),a=new Set;for(let e of t.match(s)??[]){let t=function(e){let t,a,i=(a=(t=e.trim()).indexOf(o))>=0?t.slice(a+o.length)||null:t.startsWith("/")||/^[A-Za-z]:/.test(t)||t.split("/").includes("..")?null:t||null;if(!i)return null;let[l,...n]=i.split("/");return n.length&&l.includes(".")?null:i}(e);t&&a.add(t)}return[...a].slice(0,6)},"viewKindOf",0,e=>i[l(e)]?.kind??"none"])},786025,e=>{"use strict";var t=e.i(912714),a=e.i(750227),i=e.i(687388);e.i(640911);var l=e.i(874533),n=i;let r=new Set(["node_modules",".git",".next","dist","build",".venv","__pycache__",".turbo","coverage"]);async function*s(e){let i;try{i=await (0,t.readdir)(e,{withFileTypes:!0})}catch{return}for(let t of i){if(r.has(t.name)||t.name.startsWith("."))continue;let i=(0,a.join)(e,t.name);t.isDirectory()?yield*s(i):t.isFile()&&(yield i)}}async function o(e,i,l,n){if(e.length<=n.max)return e;let r=(0,a.join)(l,n.dir),s=(0,a.join)(r,`${new Date().toISOString().replace(/[:.]/g,"-")}-${i.replace(/[^a-zA-Z0-9_-]+/g,"_")}.txt`),o=s;try{await (0,t.mkdir)(r,{recursive:!0}),await (0,t.writeFile)(s,e),o=(0,a.relative)(l,s)||s}catch{o="(could not be written to a file)"}let d=(e.match(/\n/g)?.length??0)+1;return`${e.slice(0,n.head).trimEnd()}
|
|
2
2
|
|
|
3
|
-
[${
|
|
3
|
+
[${i} cut at ${n.max.toLocaleString("en")} chars — the whole thing (${d} lines) is at ${o}. Read the part you need with \`sed -n\`.]
|
|
4
4
|
|
|
5
|
-
${e.slice(-n.tail).trimStart()}`}let d=
|
|
6
|
-
[${e}]`,v("SIGTERM"),f=setTimeout(()=>{k+="\n[Killed: it did not exit on SIGTERM]",v("SIGKILL"),p=setTimeout(()=>{h.stdout?.destroy(),h.stderr?.destroy(),S({stdout:b,stderr:k,exitCode:-1})},1e3)},n.EXEC_KILL_GRACE_MS))},
|
|
5
|
+
${e.slice(-n.tail).trimStart()}`}let d=i.APP_DIR,u=(0,a.join)(i.DATA_DIR,i.PATHS.workspace),c=(process.env.THURSDAY_TOOL_PATH?.split(":")??[(0,a.join)(d,"node_modules",".bin")]).filter(Boolean),m=(0,a.join)(u,i.PATHS.artifacts),f=[i.PATHS.artifacts,i.PATHS.projects,i.PATHS.scratch,i.PATHS.bots],p=new Set([...f,".agents"]),g=(e,t)=>t===e||t.startsWith(e+a.sep),h=e=>(0,t.realpath)(e).catch(()=>null);async function b(e){let t=await h(u)??u,i=(0,a.resolve)(u,e);if(!g(u,i))return null;let l=i,n=await h(l);for(;null===n&&(0,a.dirname)(l)!==l;)l=(0,a.dirname)(l),n=await h(l);if(null===n)return null;let r=(0,a.relative)(l,i),s=r?(0,a.join)(n,r):n;return g(t,s)?s:null}let k=e=>`${i.PATHS.bots}/${e.replace(/[^\p{L}\p{N}_-]+/gu,"-")}`;async function v(e){let i=k(e);return await (0,t.mkdir)((0,a.join)(u,i),{recursive:!0}),i}async function w(e,l){let n,r=(n=l.trim().toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"").slice(0,40)||"job",`${i.PATHS.scratch}/${n}-${e.slice(0,6)}`);return await (0,t.mkdir)((0,a.join)(u,r),{recursive:!0}),r}let S=e=>e?{PLAYWRIGHT_CLI_SESSION:`task-${e}`,PLAYWRIGHT_MCP_VIEWPORT_SIZE:i.BROWSER_VIEWPORT}:{},y={runtimes:["node","python3","uv","bun","deno"],managers:["pnpm","npm","yarn"]};async function x(e){let t=Object.values(y).flat(),{stdout:a}=await e.exec(t.map(e=>`command -v ${e} >/dev/null 2>&1 && printf '%s ' ${e}`).join("; "),{timeoutMs:1e4}),i=new Set(a.trim().split(/\s+/).filter(Boolean)),l=e=>({found:e.filter(e=>i.has(e)),missing:e.filter(e=>!i.has(e))});return{runtimes:l(y.runtimes),managers:l(y.managers),browser:null}}async function A(){await j(),await _()}async function T(e){let t,a=await O(),i=S(e),l=await a.exec("playwright-cli list --json",{env:i,timeoutMs:15e3}).catch(()=>null);try{let{browsers:e}=JSON.parse(l?.stdout??"");t=e?.find(e=>e.name===i.PLAYWRIGHT_CLI_SESSION)}catch{}t?.headed!==!1||t.attached||await a.exec("playwright-cli close",{env:i,timeoutMs:15e3}).catch(()=>{}),await A()}async function E(e){let t=await O();await t.exec("playwright-cli close",{env:S(e),timeoutMs:15e3}).catch(()=>{}),await A()}let _=()=>$(i.PATHS.output),j=()=>$(".playwright-cli");async function $(e){let l=(0,a.join)(u,e),n=await (0,t.readdir)(l,{withFileTypes:!0}).catch(()=>[]),r=Date.now()-i.WORKSPACE_KEEP.forMs;for(let e of n){if(!e.isFile())continue;let i=(0,a.join)(l,e.name),n=await (0,t.stat)(i).catch(()=>null);n&&n.mtimeMs<r&&await (0,t.unlink)(i).catch(()=>{})}}let P={"pnpm-workspace.yaml":"packages:\n - '**'\n",".npmrc":"recursive-install=false\n"};async function O(){for(let e of f)await (0,t.mkdir)((0,a.join)(u,e),{recursive:!0});for(let[e,i]of Object.entries(P))await (0,t.writeFile)((0,a.join)(u,e),i,{flag:"wx"}).catch(()=>{});return(({workingDirectory:e,spill:i,toolPath:r})=>{let d=(0,a.resolve)(e),u=(r??[]).filter(Boolean).join(":"),c=e=>e.startsWith("/")||/^[A-Za-z]:/.test(e)?e:(0,a.resolve)(d,e);return{cwd:d,resolve:c,readFile:(e,a)=>(0,t.readFile)(c(e),a),async writeFile(e,i){let l=c(e);await (0,t.mkdir)((0,a.join)(l,".."),{recursive:!0}),await (0,t.writeFile)(l,i)},readdir:(e,a)=>(0,t.readdir)(c(e),a),fold:(e,t="output")=>o(e,t,d,i),async glob(e,{path:t=".",limit:i=200}={}){let l=c(t),n=RegExp("^"+e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*\//g,"(?:.*/)?").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]")+"$"),r=[];for await(let e of s(l)){let t=(0,a.relative)(l,e).split(a.sep).join("/");if((n.test(t)||n.test(e))&&r.push(e),r.length>=i)break}return r},exec:(e,{cwd:t,timeoutMs:a=n.EXEC_TIMEOUT_MS,signal:r,env:s}={})=>new Promise(m=>{let f,p,g=function(){let e={...process.env};for(let t of Object.keys(e))/KEY|TOKEN|SECRET|PASSWORD|CREDENTIAL|_AUTH/i.test(t)&&delete e[t];return e.TERM="dumb",e.PAGER="cat",e.GIT_PAGER="cat",e}();u&&(g.PATH=`${g.PATH??""}:${u}`);let h=(0,l.spawn)(e,{shell:!0,cwd:t?c(t):d,env:{...g,...s},detached:!0}),b="",k="";h.stdout?.on("data",e=>b+=e),h.stderr?.on("data",e=>k+=e);let v=e=>{try{h.pid&&process.kill(-h.pid,e)}catch{h.kill(e)}},w=!1,S=async e=>{w||(w=!0,clearTimeout(x),clearTimeout(f),clearTimeout(p),r?.removeEventListener("abort",A),m({...e,stdout:await o(e.stdout,"stdout",d,i),stderr:await o(e.stderr,"stderr",d,i)}))},y=e=>{f||w||(k+=`
|
|
6
|
+
[${e}]`,v("SIGTERM"),f=setTimeout(()=>{k+="\n[Killed: it did not exit on SIGTERM]",v("SIGKILL"),p=setTimeout(()=>{h.stdout?.destroy(),h.stderr?.destroy(),S({stdout:b,stderr:k,exitCode:-1})},1e3)},n.EXEC_KILL_GRACE_MS))},x=setTimeout(()=>y(`Timed out after ${a}ms`),a),A=()=>y("Aborted");r?.aborted?A():r?.addEventListener("abort",A,{once:!0}),h.on("close",e=>S({stdout:b,stderr:k,exitCode:e??-1})),h.on("error",e=>S({stdout:b,stderr:k+String(e),exitCode:-1}))})}})({workingDirectory:u,spill:{dir:i.PATHS.output,...i.TOOL_OUTPUT},toolPath:c})}async function I(e,i){let l=e.map(e=>(0,a.resolve)(u,e));if(i){let e=0;for await(let t of s((0,a.join)(u,i)))if(l.push(t),(e+=1)>=500)break}let n=new Map;for(let e of l){let i=await (0,t.stat)(e).catch(()=>null);if(!i?.isFile())continue;let l=(0,a.relative)(u,e);n.set(l&&!l.startsWith("..")?l:e,i.mtimeMs)}return[...n].sort((e,t)=>e[1]-t[1]).map(([e])=>e)}e.s(["ARTIFACTS",0,m,"WORKSPACE",0,u,"botFolder",0,k,"closeHiddenBrowser",0,T,"closeJobShell",0,E,"filesOnDisk",0,I,"insideWorkspace",0,b,"jobShellEnv",0,S,"openBotFolder",0,v,"openJobScratch",0,w,"openWorkspace",0,O,"pruneJobFiles",0,A,"readMachineTools",0,x,"writeRefusal",0,function(e){if(g(u,e)){let t=(0,a.relative)(u,e),[l]=t.split(a.sep);return l&&p.has(l)?null:`Not written: ${t||"the workspace root"} is outside the workspace's folders. Finished work goes under ${i.PATHS.artifacts}/, code under ${i.PATHS.projects}/, your own kit under ${i.PATHS.bots}/, and this job's working material under ${i.PATHS.scratch}/.`}return g(d,e)?`Not written: ${e} is inside the app that is running you, not the user's files. Work in ${u}; outside it, write only where the user pointed you.`:null}],786025)},704161,e=>{"use strict";var t=e.i(469719);let a=t.z.union([t.z.date(),t.z.iso.datetime()]);e.s(["DateLikeSchema",0,a,"toDate",0,e=>new Date(e)])},260338,e=>{"use strict";var t=e.i(518899),a=e.i(844988),i=e.i(156325);e.s(["count",0,function(e){return t.sql`count(${e||t.sql.raw("*")})`.mapWith(Number)},"max",0,function(e){return t.sql`max(${e})`.mapWith((0,a.is)(e,i.Column)?e:String)}])},105249,e=>{"use strict";var t=e.i(562810);e.s(["default",0,t])}];
|
|
7
7
|
|
|
8
8
|
//# sourceMappingURL=%5Broot-of-the-server%5D__0ls6_8y._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[750227,(e,s,t)=>{s.exports=e.x("node:path",()=>require("node:path"))},59639,(e,s,t)=>{s.exports=e.x("node:process",()=>require("node:process"))},509656,(e,s,t)=>{s.exports=e.x("node:tty",()=>require("node:tty"))},812057,(e,s,t)=>{s.exports=e.x("node:util",()=>require("node:util"))},333925,e=>{"use strict";let s=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),t=process.env.THURSDAY_HOME?.trim()||process.cwd(),r=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,o=`file:${t}/local.db`,_=".ai-workspace",c={workspace:_,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${_}/.agents/skills`}};e.s(["APP_DIR",0,s,"APP_NAME",0,"Thursday","APP_URL",0,r,"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_VIEWPORT",0,"700x700","CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,t,"DB_FILE_NAME",0,o,"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,c,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"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}])},207580,e=>{e.v(s=>Promise.all(["server/chunks/[externals]__0y3n8y6._.js","server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0q8fc1x._.js"].map(s=>e.l(s))).then(()=>s(27996)))}];
|
|
1
|
+
module.exports=[750227,(e,s,t)=>{s.exports=e.x("node:path",()=>require("node:path"))},59639,(e,s,t)=>{s.exports=e.x("node:process",()=>require("node:process"))},509656,(e,s,t)=>{s.exports=e.x("node:tty",()=>require("node:tty"))},812057,(e,s,t)=>{s.exports=e.x("node:util",()=>require("node:util"))},333925,e=>{"use strict";let s=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),t=process.env.THURSDAY_HOME?.trim()||process.cwd(),r=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,o=`file:${t}/local.db`,_=".ai-workspace",c={workspace:_,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${_}/.agents/skills`}};e.s(["APP_DIR",0,s,"APP_NAME",0,"Thursday","APP_URL",0,r,"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_VIEWPORT",0,"700x700","CALL_EXEC_TIMEOUT_MS",0,15e3,"CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,t,"DB_FILE_NAME",0,o,"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,c,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"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}])},207580,e=>{e.v(s=>Promise.all(["server/chunks/[externals]__0y3n8y6._.js","server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0q8fc1x._.js"].map(s=>e.l(s))).then(()=>s(27996)))}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__0ncs9uu._.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
module.exports=[418520,e=>e.a(async(t,r)=>{try{var s=await e.y("@libsql/client-6da938047d5fc1cd");e.n(s),r()}catch(e){r(e)}},!0),902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},59639,(e,t,r)=>{t.exports=e.x("node:process",()=>require("node:process"))},509656,(e,t,r)=>{t.exports=e.x("node:tty",()=>require("node:tty"))},812057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},232347,e=>{"use strict";let t,r,s,o,a,n;var c,l=e.i(333925),i=e.i(938281);let u={tasks:!0,memory:!0,mcp:!0,config:!0},_=globalThis,p=_.__appEvents??=(t=new Set,{emit(e){for(let r of[...t])try{r(e)}catch(e){console.error("event listener failed",e)}},subscribe:e=>(t.add(e),()=>{t.delete(e)})}),d=_.__presence??=(c=l.BROWSER_GONE_MS,r=!1,s=null,o=new Set,a=new Set,n=e=>{for(let t of[...e])try{t()}catch(e){console.error("presence listener failed",e)}},{get watching(){return r},track(e){if(e>0){s&&clearTimeout(s),s=null,r||(r=!0,n(a));return}!s&&r&&(s=setTimeout(()=>{s=null,r=!1,n(o)},c))},onGone:e=>(o.add(e),()=>o.delete(e)),onBack:e=>(a.add(e),()=>a.delete(e))}),
|
|
1
|
+
module.exports=[418520,e=>e.a(async(t,r)=>{try{var s=await e.y("@libsql/client-6da938047d5fc1cd");e.n(s),r()}catch(e){r(e)}},!0),902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},59639,(e,t,r)=>{t.exports=e.x("node:process",()=>require("node:process"))},509656,(e,t,r)=>{t.exports=e.x("node:tty",()=>require("node:tty"))},812057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},232347,e=>{"use strict";let t,r,s,o,a,n;var c,l=e.i(333925),i=e.i(938281);let u={tasks:!0,memory:!0,mcp:!0,config:!0},_=globalThis,p=_.__appEvents??=(t=new Set,{emit(e){for(let r of[...t])try{r(e)}catch(e){console.error("event listener failed",e)}},subscribe:e=>(t.add(e),()=>{t.delete(e)})}),d=_.__presence??=(c=l.BROWSER_GONE_MS,r=!1,s=null,o=new Set,a=new Set,n=e=>{for(let t of[...e])try{t()}catch(e){console.error("presence listener failed",e)}},{get watching(){return r},track(e){if(e>0){s&&clearTimeout(s),s=null,r||(r=!0,n(a));return}!s&&r&&(s=setTimeout(()=>{s=null,r=!1,n(o)},c))},onGone:e=>(o.add(e),()=>o.delete(e)),onBack:e=>(a.add(e),()=>a.delete(e))}),E=_.__appEventStream??=function(e,t={}){let r=new TextEncoder,s=t.heartbeatMs??2e4,o=0;return{respond:(a,n)=>{let c=()=>{};return new Response(new ReadableStream({async start(l){let u=!1,_=new Map,p=[],d=e=>{if(!u)try{l.enqueue(r.encode(e))}catch{c()}},E=e=>d(`data: ${JSON.stringify(e)}
|
|
2
2
|
|
|
3
|
-
`),
|
|
3
|
+
`),m=e=>{let r=t.coalesce?.keyOf(e)??null;if(null===r)return E(e);let s=_.get(r);s&&clearTimeout(s),_.set(r,setTimeout(()=>{_.delete(r),E(e)},t.coalesce?.ms))},f=e.subscribe(e=>p?p.push(e):m(e)),T=setInterval(()=>d(": ping\n\n"),s);o+=1,t.onWatchers?.(o),c=()=>{if(!u){for(let e of(u=!0,o-=1,t.onWatchers?.(o),f(),clearInterval(T),_.values()))clearTimeout(e);try{l.close()}catch{}}},a.addEventListener("abort",c);try{for(let e of await n?.()??[])E(e)}catch(e){i.logger.error("event stream opening failed",e),c();return}let O=p;for(let e of(p=null,O))m(e)},cancel(){c()}}),{headers:{"Content-Type":"text/event-stream; charset=utf-8","Cache-Control":"no-store","X-Accel-Buffering":"no"}})},get watchers(){return o}}}(p,{coalesce:{ms:150,keyOf:e=>e.type in u?e.type:null},onWatchers:d.track});_.__bootId??=crypto.randomUUID(),e.s(["appEventStream",0,E,"appEvents",0,p,"presence",0,d],232347)},333925,e=>{"use strict";let t=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),r=process.env.THURSDAY_HOME?.trim()||process.cwd(),s=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,o=`file:${r}/local.db`,a=".ai-workspace",n={workspace:a,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${a}/.agents/skills`}};e.s(["APP_DIR",0,t,"APP_NAME",0,"Thursday","APP_URL",0,s,"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_VIEWPORT",0,"700x700","CALL_EXEC_TIMEOUT_MS",0,15e3,"CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,r,"DB_FILE_NAME",0,o,"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,n,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"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}])},207580,e=>{e.v(t=>Promise.all(["server/chunks/[externals]__0y3n8y6._.js","server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0q8fc1x._.js"].map(t=>e.l(t))).then(()=>t(27996)))}];
|
|
4
4
|
|
|
5
5
|
//# sourceMappingURL=%5Broot-of-the-server%5D__1-ga0kh._.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
module.exports=[750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},59639,(e,t,r)=>{t.exports=e.x("node:process",()=>require("node:process"))},509656,(e,t,r)=>{t.exports=e.x("node:tty",()=>require("node:tty"))},812057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},232347,e=>{"use strict";let t,r,s,o,a,n;var c,l=e.i(333925),i=e.i(938281);let
|
|
1
|
+
module.exports=[750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},59639,(e,t,r)=>{t.exports=e.x("node:process",()=>require("node:process"))},509656,(e,t,r)=>{t.exports=e.x("node:tty",()=>require("node:tty"))},812057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},232347,e=>{"use strict";let t,r,s,o,a,n;var c,l=e.i(333925),i=e.i(938281);let _={tasks:!0,memory:!0,mcp:!0,config:!0},u=globalThis,p=u.__appEvents??=(t=new Set,{emit(e){for(let r of[...t])try{r(e)}catch(e){console.error("event listener failed",e)}},subscribe:e=>(t.add(e),()=>{t.delete(e)})}),d=u.__presence??=(c=l.BROWSER_GONE_MS,r=!1,s=null,o=new Set,a=new Set,n=e=>{for(let t of[...e])try{t()}catch(e){console.error("presence listener failed",e)}},{get watching(){return r},track(e){if(e>0){s&&clearTimeout(s),s=null,r||(r=!0,n(a));return}!s&&r&&(s=setTimeout(()=>{s=null,r=!1,n(o)},c))},onGone:e=>(o.add(e),()=>o.delete(e)),onBack:e=>(a.add(e),()=>a.delete(e))}),E=u.__appEventStream??=function(e,t={}){let r=new TextEncoder,s=t.heartbeatMs??2e4,o=0;return{respond:(a,n)=>{let c=()=>{};return new Response(new ReadableStream({async start(l){let _=!1,u=new Map,p=[],d=e=>{if(!_)try{l.enqueue(r.encode(e))}catch{c()}},E=e=>d(`data: ${JSON.stringify(e)}
|
|
2
2
|
|
|
3
|
-
`),
|
|
3
|
+
`),m=e=>{let r=t.coalesce?.keyOf(e)??null;if(null===r)return E(e);let s=u.get(r);s&&clearTimeout(s),u.set(r,setTimeout(()=>{u.delete(r),E(e)},t.coalesce?.ms))},T=e.subscribe(e=>p?p.push(e):m(e)),f=setInterval(()=>d(": ping\n\n"),s);o+=1,t.onWatchers?.(o),c=()=>{if(!_){for(let e of(_=!0,o-=1,t.onWatchers?.(o),T(),clearInterval(f),u.values()))clearTimeout(e);try{l.close()}catch{}}},a.addEventListener("abort",c);try{for(let e of await n?.()??[])E(e)}catch(e){i.logger.error("event stream opening failed",e),c();return}let O=p;for(let e of(p=null,O))m(e)},cancel(){c()}}),{headers:{"Content-Type":"text/event-stream; charset=utf-8","Cache-Control":"no-store","X-Accel-Buffering":"no"}})},get watchers(){return o}}}(p,{coalesce:{ms:150,keyOf:e=>e.type in _?e.type:null},onWatchers:d.track});u.__bootId??=crypto.randomUUID(),e.s(["appEventStream",0,E,"appEvents",0,p,"presence",0,d],232347)},333925,e=>{"use strict";let t=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),r=process.env.THURSDAY_HOME?.trim()||process.cwd(),s=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,o=`file:${r}/local.db`,a=".ai-workspace",n={workspace:a,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${a}/.agents/skills`}};e.s(["APP_DIR",0,t,"APP_NAME",0,"Thursday","APP_URL",0,s,"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_VIEWPORT",0,"700x700","CALL_EXEC_TIMEOUT_MS",0,15e3,"CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,r,"DB_FILE_NAME",0,o,"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,n,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"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}])},207580,e=>{e.v(t=>Promise.all(["server/chunks/[externals]__0y3n8y6._.js","server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0q8fc1x._.js"].map(t=>e.l(t))).then(()=>t(27996)))}];
|
|
4
4
|
|
|
5
5
|
//# sourceMappingURL=%5Broot-of-the-server%5D__1_04mcf._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[70729,s=>{s.v(e=>Promise.all(["server/chunks/[externals]_node_crypto_1kn79-7._.js"].map(e=>s.l(e))).then(()=>e(666680)))},242792,s=>{s.v(e=>Promise.all(["server/chunks/[root-of-the-server]__02va5wz._.js","server/chunks/_15hq89o._.js","server/chunks/_0-73of8._.js","server/chunks/_1kg70wc._.js"].map(e=>s.l(e))).then(()=>e(799791)))},327784,s=>{s.v(e=>Promise.all(["server/chunks/[root-of-the-server]__1anc1p9._.js","server/chunks/_1230wbx._.js","server/chunks/_1kg70wc._.js","server/chunks/_05h2cii._.js","server/chunks/_15hq89o._.js","server/chunks/
|
|
1
|
+
module.exports=[70729,s=>{s.v(e=>Promise.all(["server/chunks/[externals]_node_crypto_1kn79-7._.js"].map(e=>s.l(e))).then(()=>e(666680)))},242792,s=>{s.v(e=>Promise.all(["server/chunks/[root-of-the-server]__02va5wz._.js","server/chunks/_15hq89o._.js","server/chunks/_0-73of8._.js","server/chunks/_1kg70wc._.js"].map(e=>s.l(e))).then(()=>e(799791)))},327784,s=>{s.v(e=>Promise.all(["server/chunks/[root-of-the-server]__1anc1p9._.js","server/chunks/_1230wbx._.js","server/chunks/_1kg70wc._.js","server/chunks/_05h2cii._.js","server/chunks/_15hq89o._.js","server/chunks/_1c78vw5._.js","server/chunks/_0u10wmw._.js","server/chunks/lib_logger_ts_07e65t5._.js","server/chunks/[root-of-the-server]__01dkp4a._.js","server/chunks/_0mecv0f._.js"].map(e=>s.l(e))).then(()=>e(49002)))},868649,s=>{s.v(e=>Promise.all(["server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1y49572._.js","server/chunks/lib_logger_ts_07e65t5._.js","server/chunks/[root-of-the-server]__1ccon1w._.js","server/chunks/_0-fjql4._.js","server/chunks/_18-1wcc._.js","server/chunks/_1e48czp._.js","server/chunks/_0y5fg-x._.js"].map(e=>s.l(e))).then(()=>e(444444)))},573349,s=>{s.v(e=>Promise.all(["server/chunks/[root-of-the-server]__1wbc1wv._.js"].map(e=>s.l(e))).then(()=>e(913803)))},566462,s=>{s.v(e=>Promise.all(["server/chunks/[root-of-the-server]__0rl-fef._.js"].map(e=>s.l(e))).then(()=>e(313176)))},207580,s=>{s.v(e=>Promise.all(["server/chunks/[externals]__0y3n8y6._.js","server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0q8fc1x._.js"].map(e=>s.l(e))).then(()=>e(27996)))}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__1anc1p9._.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
module.exports=[418520,e=>e.a(async(t,r)=>{try{var a=await e.y("@libsql/client-6da938047d5fc1cd");e.n(a),r()}catch(e){r(e)}},!0),874533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},912714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},59639,(e,t,r)=>{t.exports=e.x("node:process",()=>require("node:process"))},509656,(e,t,r)=>{t.exports=e.x("node:tty",()=>require("node:tty"))},812057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},232347,e=>{"use strict";let t,r,a,i,s,o;var n,l=e.i(333925),c=e.i(938281);let u={tasks:!0,memory:!0,mcp:!0,config:!0},d=globalThis,p=d.__appEvents??=(t=new Set,{emit(e){for(let r of[...t])try{r(e)}catch(e){console.error("event listener failed",e)}},subscribe:e=>(t.add(e),()=>{t.delete(e)})}),f=d.__presence??=(n=l.BROWSER_GONE_MS,r=!1,a=null,i=new Set,s=new Set,o=e=>{for(let t of[...e])try{t()}catch(e){console.error("presence listener failed",e)}},{get watching(){return r},track(e){if(e>0){a&&clearTimeout(a),a=null,r||(r=!0,o(s));return}!a&&r&&(a=setTimeout(()=>{a=null,r=!1,o(i)},n))},onGone:e=>(i.add(e),()=>i.delete(e)),onBack:e=>(s.add(e),()=>s.delete(e))}),m=d.__appEventStream??=function(e,t={}){let r=new TextEncoder,a=t.heartbeatMs??2e4,i=0;return{respond:(s,o)=>{let n=()=>{};return new Response(new ReadableStream({async start(l){let u=!1,d=new Map,p=[],f=e=>{if(!u)try{l.enqueue(r.encode(e))}catch{n()}},m=e=>f(`data: ${JSON.stringify(e)}
|
|
2
2
|
|
|
3
|
-
`),h=e=>{let r=t.coalesce?.keyOf(e)??null;if(null===r)return m(e);let a=d.get(r);a&&clearTimeout(a),d.set(r,setTimeout(()=>{d.delete(r),m(e)},t.coalesce?.ms))},w=e.subscribe(e=>p?p.push(e):h(e)),T=setInterval(()=>f(": ping\n\n"),a);i+=1,t.onWatchers?.(i),n=()=>{if(!u){for(let e of(u=!0,i-=1,t.onWatchers?.(i),w(),clearInterval(T),d.values()))clearTimeout(e);try{l.close()}catch{}}},s.addEventListener("abort",n);try{for(let e of await o?.()??[])m(e)}catch(e){c.logger.error("event stream opening failed",e),n();return}let S=p;for(let e of(p=null,S))h(e)},cancel(){n()}}),{headers:{"Content-Type":"text/event-stream; charset=utf-8","Cache-Control":"no-store","X-Accel-Buffering":"no"}})},get watchers(){return i}}}(p,{coalesce:{ms:150,keyOf:e=>e.type in u?e.type:null},onWatchers:f.track});d.__bootId??=crypto.randomUUID(),e.s(["appEventStream",0,m,"appEvents",0,p,"presence",0,f],232347)},333925,e=>{"use strict";let t=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),r=process.env.THURSDAY_HOME?.trim()||process.cwd(),a=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,i=`file:${r}/local.db`,s=".ai-workspace",o={workspace:s,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${s}/.agents/skills`}};e.s(["APP_DIR",0,t,"APP_NAME",0,"Thursday","APP_URL",0,a,"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_VIEWPORT",0,"700x700","CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,r,"DB_FILE_NAME",0,i,"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,o,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"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}])},871096,e=>{"use strict";var t=e.i(912714),r=e.i(750227),a=e.i(333925),i=e.i(938281),s=e.i(874533),o=a;let n=new Set(["node_modules",".git",".next","dist","build",".venv","__pycache__",".turbo","coverage"]);async function*l(e){let a;try{a=await (0,t.readdir)(e,{withFileTypes:!0})}catch{return}for(let t of a){if(n.has(t.name)||t.name.startsWith("."))continue;let a=(0,r.join)(e,t.name);t.isDirectory()?yield*l(a):t.isFile()&&(yield a)}}async function c(e,a,i,s){if(e.length<=s.max)return e;let o=(0,r.join)(i,s.dir),n=(0,r.join)(o,`${new Date().toISOString().replace(/[:.]/g,"-")}-${a.replace(/[^a-zA-Z0-9_-]+/g,"_")}.txt`),l=n;try{await (0,t.mkdir)(o,{recursive:!0}),await (0,t.writeFile)(n,e),l=(0,r.relative)(i,n)||n}catch{l="(could not be written to a file)"}let c=(e.match(/\n/g)?.length??0)+1;return`${e.slice(0,s.head).trimEnd()}
|
|
3
|
+
`),h=e=>{let r=t.coalesce?.keyOf(e)??null;if(null===r)return m(e);let a=d.get(r);a&&clearTimeout(a),d.set(r,setTimeout(()=>{d.delete(r),m(e)},t.coalesce?.ms))},w=e.subscribe(e=>p?p.push(e):h(e)),T=setInterval(()=>f(": ping\n\n"),a);i+=1,t.onWatchers?.(i),n=()=>{if(!u){for(let e of(u=!0,i-=1,t.onWatchers?.(i),w(),clearInterval(T),d.values()))clearTimeout(e);try{l.close()}catch{}}},s.addEventListener("abort",n);try{for(let e of await o?.()??[])m(e)}catch(e){c.logger.error("event stream opening failed",e),n();return}let S=p;for(let e of(p=null,S))h(e)},cancel(){n()}}),{headers:{"Content-Type":"text/event-stream; charset=utf-8","Cache-Control":"no-store","X-Accel-Buffering":"no"}})},get watchers(){return i}}}(p,{coalesce:{ms:150,keyOf:e=>e.type in u?e.type:null},onWatchers:f.track});d.__bootId??=crypto.randomUUID(),e.s(["appEventStream",0,m,"appEvents",0,p,"presence",0,f],232347)},333925,e=>{"use strict";let t=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),r=process.env.THURSDAY_HOME?.trim()||process.cwd(),a=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,i=`file:${r}/local.db`,s=".ai-workspace",o={workspace:s,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${s}/.agents/skills`}};e.s(["APP_DIR",0,t,"APP_NAME",0,"Thursday","APP_URL",0,a,"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_VIEWPORT",0,"700x700","CALL_EXEC_TIMEOUT_MS",0,15e3,"CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,r,"DB_FILE_NAME",0,i,"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,o,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"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}])},871096,e=>{"use strict";var t=e.i(912714),r=e.i(750227),a=e.i(333925),i=e.i(938281),s=e.i(874533),o=a;let n=new Set(["node_modules",".git",".next","dist","build",".venv","__pycache__",".turbo","coverage"]);async function*l(e){let a;try{a=await (0,t.readdir)(e,{withFileTypes:!0})}catch{return}for(let t of a){if(n.has(t.name)||t.name.startsWith("."))continue;let a=(0,r.join)(e,t.name);t.isDirectory()?yield*l(a):t.isFile()&&(yield a)}}async function c(e,a,i,s){if(e.length<=s.max)return e;let o=(0,r.join)(i,s.dir),n=(0,r.join)(o,`${new Date().toISOString().replace(/[:.]/g,"-")}-${a.replace(/[^a-zA-Z0-9_-]+/g,"_")}.txt`),l=n;try{await (0,t.mkdir)(o,{recursive:!0}),await (0,t.writeFile)(n,e),l=(0,r.relative)(i,n)||n}catch{l="(could not be written to a file)"}let c=(e.match(/\n/g)?.length??0)+1;return`${e.slice(0,s.head).trimEnd()}
|
|
4
4
|
|
|
5
5
|
[${a} cut at ${s.max.toLocaleString("en")} chars — the whole thing (${c} lines) is at ${l}. Read the part you need with \`sed -n\`.]
|
|
6
6
|
|
|
7
|
-
${e.slice(-s.tail).trimStart()}`}let u=a.APP_DIR,d=(0,r.join)(a.DATA_DIR,a.PATHS.workspace),p=(process.env.THURSDAY_TOOL_PATH?.split(":")??[(0,r.join)(u,"node_modules",".bin")]).filter(Boolean);(0,r.join)(d,a.PATHS.artifacts);let f=[a.PATHS.artifacts,a.PATHS.projects,a.PATHS.scratch,a.PATHS.bots],m=new Set([...f,".agents"]),h=(e,t)=>t===e||t.startsWith(e+r.sep),w=e=>(0,t.realpath)(e).catch(()=>null);async function T(e){let t=await w(d)??d,a=(0,r.resolve)(d,e);if(!h(d,a))return null;let i=a,s=await w(i);for(;null===s&&(0,r.dirname)(i)!==i;)i=(0,r.dirname)(i),s=await w(i);if(null===s)return null;let o=(0,r.relative)(i,a),n=o?(0,r.join)(s,o):s;return h(t,n)?n:null}function S(e,t){let r=t.trim().toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"").slice(0,40)||"job";return`${a.PATHS.scratch}/${r}-${e.slice(0,6)}`}let _=e=>`${a.PATHS.bots}/${e.replace(/[^\p{L}\p{N}_-]+/gu,"-")}`;async function E(e){let a=_(e);return await (0,t.mkdir)((0,r.join)(d,a),{recursive:!0}),a}async function y(e,a){let i=S(e,a);return await (0,t.mkdir)((0,r.join)(d,i),{recursive:!0}),i}let A=e=>e?{PLAYWRIGHT_CLI_SESSION:`task-${e}`,PLAYWRIGHT_MCP_VIEWPORT_SIZE:a.BROWSER_VIEWPORT}:{},P=null,R={runtimes:["node","python3","uv","bun","deno"],managers:["pnpm","npm","yarn"]};async function g(e){let t=Object.values(R).flat(),{stdout:r}=await e.exec(t.map(e=>`command -v ${e} >/dev/null 2>&1 && printf '%s ' ${e}`).join("; "),{timeoutMs:1e4}),a=new Set(r.trim().split(/\s+/).filter(Boolean)),i=e=>({found:e.filter(e=>a.has(e)),missing:e.filter(e=>!a.has(e))});return{runtimes:i(R.runtimes),managers:i(R.managers),browser:P}}async function
|
|
8
|
-
[${e}]`,_("SIGTERM"),f=setTimeout(()=>{S+="\n[Killed: it did not exit on SIGTERM]",_("SIGKILL"),m=setTimeout(()=>{w.stdout?.destroy(),w.stderr?.destroy(),y({stdout:T,stderr:S,exitCode:-1})},1e3)},o.EXEC_KILL_GRACE_MS))},P=setTimeout(()=>A(`Timed out after ${r}ms`),r),R=()=>A("Aborted");i?.aborted?R():i?.addEventListener("abort",R,{once:!0}),w.on("close",e=>y({stdout:T,stderr:S,exitCode:e??-1})),w.on("error",e=>y({stdout:T,stderr:S+String(e),exitCode:-1}))})}})({workingDirectory:d,spill:{dir:a.PATHS.output,...a.TOOL_OUTPUT},toolPath:p})}async function
|
|
7
|
+
${e.slice(-s.tail).trimStart()}`}let u=a.APP_DIR,d=(0,r.join)(a.DATA_DIR,a.PATHS.workspace),p=(process.env.THURSDAY_TOOL_PATH?.split(":")??[(0,r.join)(u,"node_modules",".bin")]).filter(Boolean);(0,r.join)(d,a.PATHS.artifacts);let f=[a.PATHS.artifacts,a.PATHS.projects,a.PATHS.scratch,a.PATHS.bots],m=new Set([...f,".agents"]),h=(e,t)=>t===e||t.startsWith(e+r.sep),w=e=>(0,t.realpath)(e).catch(()=>null);async function T(e){let t=await w(d)??d,a=(0,r.resolve)(d,e);if(!h(d,a))return null;let i=a,s=await w(i);for(;null===s&&(0,r.dirname)(i)!==i;)i=(0,r.dirname)(i),s=await w(i);if(null===s)return null;let o=(0,r.relative)(i,a),n=o?(0,r.join)(s,o):s;return h(t,n)?n:null}function S(e,t){let r=t.trim().toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"").slice(0,40)||"job";return`${a.PATHS.scratch}/${r}-${e.slice(0,6)}`}let _=e=>`${a.PATHS.bots}/${e.replace(/[^\p{L}\p{N}_-]+/gu,"-")}`;async function E(e){let a=_(e);return await (0,t.mkdir)((0,r.join)(d,a),{recursive:!0}),a}async function y(e,a){let i=S(e,a);return await (0,t.mkdir)((0,r.join)(d,i),{recursive:!0}),i}let A=e=>e?{PLAYWRIGHT_CLI_SESSION:`task-${e}`,PLAYWRIGHT_MCP_VIEWPORT_SIZE:a.BROWSER_VIEWPORT}:{},P=null,R={runtimes:["node","python3","uv","bun","deno"],managers:["pnpm","npm","yarn"]};async function g(e){let t=Object.values(R).flat(),{stdout:r}=await e.exec(t.map(e=>`command -v ${e} >/dev/null 2>&1 && printf '%s ' ${e}`).join("; "),{timeoutMs:1e4}),a=new Set(r.trim().split(/\s+/).filter(Boolean)),i=e=>({found:e.filter(e=>a.has(e)),missing:e.filter(e=>!a.has(e))});return{runtimes:i(R.runtimes),managers:i(R.managers),browser:P}}async function O(){if(process.env.THURSDAY_SKIP_BROWSER)return;let e=await C(),t=await e.exec("playwright-cli install-browser chromium").catch(e=>({exitCode:1,stderr:String(e)}));(P=0===t.exitCode)||i.logger.warn(`no browser — bots cannot open a page until \`playwright-cli install-browser chromium\` succeeds: ${t.stderr.trim().split("\n").at(-1)??""}`)}async function v(){await k(),await b()}async function I(e){let t,r=await C(),a=A(e),i=await r.exec("playwright-cli list --json",{env:a,timeoutMs:15e3}).catch(()=>null);try{let{browsers:e}=JSON.parse(i?.stdout??"");t=e?.find(e=>e.name===a.PLAYWRIGHT_CLI_SESSION)}catch{}t?.headed!==!1||t.attached||await r.exec("playwright-cli close",{env:a,timeoutMs:15e3}).catch(()=>{}),await v()}async function M(e){let t=await C();await t.exec("playwright-cli close",{env:A(e),timeoutMs:15e3}).catch(()=>{}),await v()}let b=()=>x(a.PATHS.output),k=()=>x(".playwright-cli");async function x(e){let i=(0,r.join)(d,e),s=await (0,t.readdir)(i,{withFileTypes:!0}).catch(()=>[]),o=Date.now()-a.WORKSPACE_KEEP.forMs;for(let e of s){if(!e.isFile())continue;let a=(0,r.join)(i,e.name),s=await (0,t.stat)(a).catch(()=>null);s&&s.mtimeMs<o&&await (0,t.unlink)(a).catch(()=>{})}}async function $(){return(await (0,t.readdir)((0,r.join)(d,a.PATHS.scratch),{withFileTypes:!0}).catch(()=>[])).filter(e=>e.isDirectory()).map(e=>`${a.PATHS.scratch}/${e.name}`)}async function j(e){let i=Date.now()-a.WORKSPACE_KEEP.forMs,s=[];for(let a of e){let e=(0,r.join)(d,a),o=await (0,t.stat)(e).catch(()=>null);o?.isDirectory()&&!(o.mtimeMs>=i)&&(await (0,t.rm)(e,{recursive:!0,force:!0}).catch(()=>{}),s.push(a))}return s}let H={"pnpm-workspace.yaml":"packages:\n - '**'\n",".npmrc":"recursive-install=false\n"};async function C(){for(let e of f)await (0,t.mkdir)((0,r.join)(d,e),{recursive:!0});for(let[e,a]of Object.entries(H))await (0,t.writeFile)((0,r.join)(d,e),a,{flag:"wx"}).catch(()=>{});return(({workingDirectory:e,spill:a,toolPath:i})=>{let n=(0,r.resolve)(e),u=(i??[]).filter(Boolean).join(":"),d=e=>e.startsWith("/")||/^[A-Za-z]:/.test(e)?e:(0,r.resolve)(n,e);return{cwd:n,resolve:d,readFile:(e,r)=>(0,t.readFile)(d(e),r),async writeFile(e,a){let i=d(e);await (0,t.mkdir)((0,r.join)(i,".."),{recursive:!0}),await (0,t.writeFile)(i,a)},readdir:(e,r)=>(0,t.readdir)(d(e),r),fold:(e,t="output")=>c(e,t,n,a),async glob(e,{path:t=".",limit:a=200}={}){let i=d(t),s=RegExp("^"+e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*\//g,"(?:.*/)?").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]")+"$"),o=[];for await(let e of l(i)){let t=(0,r.relative)(i,e).split(r.sep).join("/");if((s.test(t)||s.test(e))&&o.push(e),o.length>=a)break}return o},exec:(e,{cwd:t,timeoutMs:r=o.EXEC_TIMEOUT_MS,signal:i,env:l}={})=>new Promise(p=>{let f,m,h=function(){let e={...process.env};for(let t of Object.keys(e))/KEY|TOKEN|SECRET|PASSWORD|CREDENTIAL|_AUTH/i.test(t)&&delete e[t];return e.TERM="dumb",e.PAGER="cat",e.GIT_PAGER="cat",e}();u&&(h.PATH=`${h.PATH??""}:${u}`);let w=(0,s.spawn)(e,{shell:!0,cwd:t?d(t):n,env:{...h,...l},detached:!0}),T="",S="";w.stdout?.on("data",e=>T+=e),w.stderr?.on("data",e=>S+=e);let _=e=>{try{w.pid&&process.kill(-w.pid,e)}catch{w.kill(e)}},E=!1,y=async e=>{E||(E=!0,clearTimeout(P),clearTimeout(f),clearTimeout(m),i?.removeEventListener("abort",R),p({...e,stdout:await c(e.stdout,"stdout",n,a),stderr:await c(e.stderr,"stderr",n,a)}))},A=e=>{f||E||(S+=`
|
|
8
|
+
[${e}]`,_("SIGTERM"),f=setTimeout(()=>{S+="\n[Killed: it did not exit on SIGTERM]",_("SIGKILL"),m=setTimeout(()=>{w.stdout?.destroy(),w.stderr?.destroy(),y({stdout:T,stderr:S,exitCode:-1})},1e3)},o.EXEC_KILL_GRACE_MS))},P=setTimeout(()=>A(`Timed out after ${r}ms`),r),R=()=>A("Aborted");i?.aborted?R():i?.addEventListener("abort",R,{once:!0}),w.on("close",e=>y({stdout:T,stderr:S,exitCode:e??-1})),w.on("error",e=>y({stdout:T,stderr:S+String(e),exitCode:-1}))})}})({workingDirectory:d,spill:{dir:a.PATHS.output,...a.TOOL_OUTPUT},toolPath:p})}async function L(e,a){let i=e.map(e=>(0,r.resolve)(d,e));if(a){let e=0;for await(let t of l((0,r.join)(d,a)))if(i.push(t),(e+=1)>=500)break}let s=new Map;for(let e of i){let a=await (0,t.stat)(e).catch(()=>null);if(!a?.isFile())continue;let i=(0,r.relative)(d,e);s.set(i&&!i.startsWith("..")?i:e,a.mtimeMs)}return[...s].sort((e,t)=>e[1]-t[1]).map(([e])=>e)}async function D(e,a){await (0,t.rm)((0,r.join)(d,S(e,a)),{recursive:!0,force:!0}).catch(()=>{})}e.s(["WORKSPACE",0,d,"botFolder",0,_,"closeHiddenBrowser",0,I,"closeJobShell",0,M,"ensureBrowser",0,O,"filesOnDisk",0,L,"insideWorkspace",0,T,"jobScratch",0,S,"jobShellEnv",0,A,"listScratchFolders",0,$,"openBotFolder",0,E,"openJobScratch",0,y,"openWorkspace",0,C,"pruneJobFiles",0,v,"readMachineTools",0,g,"removeJobScratch",0,D,"removeUnchangedFolders",0,j,"writeRefusal",0,function(e){if(h(d,e)){let t=(0,r.relative)(d,e),[i]=t.split(r.sep);return i&&m.has(i)?null:`Not written: ${t||"the workspace root"} is outside the workspace's folders. Finished work goes under ${a.PATHS.artifacts}/, code under ${a.PATHS.projects}/, your own kit under ${a.PATHS.bots}/, and this job's working material under ${a.PATHS.scratch}/.`}return h(u,e)?`Not written: ${e} is inside the app that is running you, not the user's files. Work in ${d}; outside it, write only where the user pointed you.`:null}],871096)}];
|
|
9
9
|
|
|
10
10
|
//# sourceMappingURL=%5Broot-of-the-server%5D__1ccon1w._.js.map
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
module.exports=[418520,e=>e.a(async(t,a)=>{try{var i=await e.y("@libsql/client-6da938047d5fc1cd");e.n(i),a()}catch(e){a(e)}},!0),666680,(e,t,a)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},902157,(e,t,a)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},750227,(e,t,a)=>{t.exports=e.x("node:path",()=>require("node:path"))},333925,e=>{"use strict";let t=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),a=process.env.THURSDAY_HOME?.trim()||process.cwd(),i=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,s=`file:${a}/local.db`,r=".ai-workspace",o={workspace:r,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${r}/.agents/skills`}};e.s(["APP_DIR",0,t,"APP_NAME",0,"Thursday","APP_URL",0,i,"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_VIEWPORT",0,"700x700","CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,a,"DB_FILE_NAME",0,s,"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,o,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"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}])},946280,e=>e.a(async(t,a)=>{try{var i=e.i(
|
|
2
|
-
|
|
1
|
+
module.exports=[418520,e=>e.a(async(t,a)=>{try{var i=await e.y("@libsql/client-6da938047d5fc1cd");e.n(i),a()}catch(e){a(e)}},!0),666680,(e,t,a)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},902157,(e,t,a)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},750227,(e,t,a)=>{t.exports=e.x("node:path",()=>require("node:path"))},333925,e=>{"use strict";let t=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),a=process.env.THURSDAY_HOME?.trim()||process.cwd(),i=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,s=`file:${a}/local.db`,r=".ai-workspace",o={workspace:r,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${r}/.agents/skills`}};e.s(["APP_DIR",0,t,"APP_NAME",0,"Thursday","APP_URL",0,i,"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_VIEWPORT",0,"700x700","CALL_EXEC_TIMEOUT_MS",0,15e3,"CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,a,"DB_FILE_NAME",0,s,"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,o,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"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}])},946280,e=>e.a(async(t,a)=>{try{var i=e.i(902157),s=e.i(750227),r=e.i(533102),o=e.i(410058),n=e.i(333925),l=e.i(876393),d=t([l]);[l]=d.then?(await d)():d;let u="__drizzle_migrations";async function c(e){let t=new Set((0,i.readdirSync)(e));if(!(await l.database.all(r.sql`select name from sqlite_master where type = 'table' and name = ${u}`)).length)return;let a=(await l.database.all(r.sql`select name from ${r.sql.identifier(u)}`)).find(e=>e.name&&!t.has(e.name));if(!a)return;let s=n.DB_FILE_NAME.replace(/^file:/,"");throw Error(`This database predates this build (migration "${a.name}" no longer ships) and cannot be upgraded in place. Stop the server, remove it, and start again — this only touches call/task/memory history, not your workspace or skills:
|
|
2
|
+
rm "${s}" "${s}-wal" "${s}-shm"`)}async function m(){let e=(0,s.join)(n.APP_DIR,"database/migrations");await c(e),await (0,o.migrate)(l.database,{migrationsFolder:e})}e.s(["migrateDatabase",0,m]),a()}catch(e){a(e)}},!1),410058,e=>{"use strict";var t=e.i(533102),a=e.i(663114),i=e.i(666680),s=e.i(902157),r=e.i(750227),o=e.i(171652);async function n(e,n){let l=function(e){if(s.default.existsSync(`${e.migrationsFolder}/meta/_journal.json`))throw Error('We detected that you have old drizzle-kit migration folders. You must upgrade drizzle-kit and run "drizzle-kit up"');let t=e.migrationsFolder,o=[],n=(0,s.readdirSync)(t).map(e=>({path:(0,r.join)(t,e,"migration.sql"),name:e})).filter(e=>(0,s.existsSync)(e.path));for(let e of(n.sort((e,t)=>e.name.localeCompare(t.name)),n)){let t=e.path,r=e.name.slice(0,14),n=s.default.readFileSync(t).toString(),l=n.split("--> statement-breakpoint").map(e=>e),d=(0,a.formatToMillis)(r);o.push({sql:l,bps:!0,folderMillis:d,hash:i.default.createHash("sha256").update(n).digest("hex"),name:e.name})}return o}(n),d=n.migrationsTable??"__drizzle_migrations",{newDb:c}=await (0,o.upgradeAsyncIfNeeded)(d,e,l);if(c){let a=t.sql`
|
|
3
|
+
CREATE TABLE IF NOT EXISTS ${t.sql.identifier(d)} (
|
|
3
4
|
id INTEGER PRIMARY KEY,
|
|
4
5
|
hash text NOT NULL,
|
|
5
6
|
created_at numeric,
|
|
6
7
|
name text,
|
|
7
8
|
applied_at TEXT
|
|
8
9
|
)
|
|
9
|
-
`;await e.session.run(a)}let m=await e.all(t.sql`SELECT id, hash, created_at, name FROM ${t.sql.identifier(
|
|
10
|
+
`;await e.session.run(a)}let m=await e.all(t.sql`SELECT id, hash, created_at, name FROM ${t.sql.identifier(d)}`);if(n.init){if(m.length)return{exitCode:"databaseMigrations"};if(l.length>1)return{exitCode:"localMigrations"};let[a]=l;return void(a&&await e.run(t.sql`insert into ${t.sql.identifier(d)} ("hash", "created_at", "name", "applied_at") values(${a.hash}, ${a.folderMillis}, ${a.name}, ${new Date().toISOString()})`))}let u=(0,a.getMigrationsToRun)({localMigrations:l,dbMigrations:m}),p=[];for(let a of u){for(let i of a.sql)p.push(e.run(t.sql.raw(i)));p.push(e.run(t.sql`INSERT INTO ${t.sql.identifier(d)} ("hash", "created_at", "name", "applied_at") values(${a.hash}, ${a.folderMillis}, ${a.name}, ${new Date().toISOString()})`))}await e.session.migrate(p)}e.s(["migrate",0,n],410058)}];
|
|
10
11
|
|
|
11
12
|
//# sourceMappingURL=%5Broot-of-the-server%5D__1orn-5b._.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
module.exports=[874533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},912714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},59639,(e,t,r)=>{t.exports=e.x("node:process",()=>require("node:process"))},509656,(e,t,r)=>{t.exports=e.x("node:tty",()=>require("node:tty"))},812057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},333925,e=>{"use strict";let t=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),r=process.env.THURSDAY_HOME?.trim()||process.cwd(),i=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,a=`file:${r}/local.db`,s=".ai-workspace",o={workspace:s,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${s}/.agents/skills`}};e.s(["APP_DIR",0,t,"APP_NAME",0,"Thursday","APP_URL",0,i,"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_VIEWPORT",0,"700x700","CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,r,"DB_FILE_NAME",0,a,"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,o,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"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}])},871096,e=>{"use strict";var t=e.i(912714),r=e.i(750227),i=e.i(333925),a=e.i(938281),s=e.i(874533),o=i;let n=new Set(["node_modules",".git",".next","dist","build",".venv","__pycache__",".turbo","coverage"]);async function*l(e){let i;try{i=await (0,t.readdir)(e,{withFileTypes:!0})}catch{return}for(let t of i){if(n.has(t.name)||t.name.startsWith("."))continue;let i=(0,r.join)(e,t.name);t.isDirectory()?yield*l(i):t.isFile()&&(yield i)}}async function c(e,i,a,s){if(e.length<=s.max)return e;let o=(0,r.join)(a,s.dir),n=(0,r.join)(o,`${new Date().toISOString().replace(/[:.]/g,"-")}-${i.replace(/[^a-zA-Z0-9_-]+/g,"_")}.txt`),l=n;try{await (0,t.mkdir)(o,{recursive:!0}),await (0,t.writeFile)(n,e),l=(0,r.relative)(a,n)||n}catch{l="(could not be written to a file)"}let c=(e.match(/\n/g)?.length??0)+1;return`${e.slice(0,s.head).trimEnd()}
|
|
1
|
+
module.exports=[874533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},912714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},59639,(e,t,r)=>{t.exports=e.x("node:process",()=>require("node:process"))},509656,(e,t,r)=>{t.exports=e.x("node:tty",()=>require("node:tty"))},812057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},333925,e=>{"use strict";let t=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),r=process.env.THURSDAY_HOME?.trim()||process.cwd(),i=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,a=`file:${r}/local.db`,s=".ai-workspace",o={workspace:s,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${s}/.agents/skills`}};e.s(["APP_DIR",0,t,"APP_NAME",0,"Thursday","APP_URL",0,i,"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_VIEWPORT",0,"700x700","CALL_EXEC_TIMEOUT_MS",0,15e3,"CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,r,"DB_FILE_NAME",0,a,"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,o,"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,callTurn:160,botMemory:100},"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}])},871096,e=>{"use strict";var t=e.i(912714),r=e.i(750227),i=e.i(333925),a=e.i(938281),s=e.i(874533),o=i;let n=new Set(["node_modules",".git",".next","dist","build",".venv","__pycache__",".turbo","coverage"]);async function*l(e){let i;try{i=await (0,t.readdir)(e,{withFileTypes:!0})}catch{return}for(let t of i){if(n.has(t.name)||t.name.startsWith("."))continue;let i=(0,r.join)(e,t.name);t.isDirectory()?yield*l(i):t.isFile()&&(yield i)}}async function c(e,i,a,s){if(e.length<=s.max)return e;let o=(0,r.join)(a,s.dir),n=(0,r.join)(o,`${new Date().toISOString().replace(/[:.]/g,"-")}-${i.replace(/[^a-zA-Z0-9_-]+/g,"_")}.txt`),l=n;try{await (0,t.mkdir)(o,{recursive:!0}),await (0,t.writeFile)(n,e),l=(0,r.relative)(a,n)||n}catch{l="(could not be written to a file)"}let c=(e.match(/\n/g)?.length??0)+1;return`${e.slice(0,s.head).trimEnd()}
|
|
2
2
|
|
|
3
3
|
[${i} cut at ${s.max.toLocaleString("en")} chars — the whole thing (${c} lines) is at ${l}. Read the part you need with \`sed -n\`.]
|
|
4
4
|
|
|
5
|
-
${e.slice(-s.tail).trimStart()}`}let u=i.APP_DIR,d=(0,r.join)(i.DATA_DIR,i.PATHS.workspace),p=(process.env.THURSDAY_TOOL_PATH?.split(":")??[(0,r.join)(u,"node_modules",".bin")]).filter(Boolean);(0,r.join)(d,i.PATHS.artifacts);let m=[i.PATHS.artifacts,i.PATHS.projects,i.PATHS.scratch,i.PATHS.bots],h=new Set([...m,".agents"]),w=(e,t)=>t===e||t.startsWith(e+r.sep),f=e=>(0,t.realpath)(e).catch(()=>null);async function T(e){let t=await f(d)??d,i=(0,r.resolve)(d,e);if(!w(d,i))return null;let a=i,s=await f(a);for(;null===s&&(0,r.dirname)(a)!==a;)a=(0,r.dirname)(a),s=await f(a);if(null===s)return null;let o=(0,r.relative)(a,i),n=o?(0,r.join)(s,o):s;return w(t,n)?n:null}function S(e,t){let r=t.trim().toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"").slice(0,40)||"job";return`${i.PATHS.scratch}/${r}-${e.slice(0,6)}`}let E=e=>`${i.PATHS.bots}/${e.replace(/[^\p{L}\p{N}_-]+/gu,"-")}`;async function _(e){let i=E(e);return await (0,t.mkdir)((0,r.join)(d,i),{recursive:!0}),i}async function A(e,i){let a=S(e,i);return await (0,t.mkdir)((0,r.join)(d,a),{recursive:!0}),a}let P=e=>e?{PLAYWRIGHT_CLI_SESSION:`task-${e}`,PLAYWRIGHT_MCP_VIEWPORT_SIZE:i.BROWSER_VIEWPORT}:{},y=null,R={runtimes:["node","python3","uv","bun","deno"],managers:["pnpm","npm","yarn"]};async function O(e){let t=Object.values(R).flat(),{stdout:r}=await e.exec(t.map(e=>`command -v ${e} >/dev/null 2>&1 && printf '%s ' ${e}`).join("; "),{timeoutMs:1e4}),i=new Set(r.trim().split(/\s+/).filter(Boolean)),a=e=>({found:e.filter(e=>i.has(e)),missing:e.filter(e=>!i.has(e))});return{runtimes:a(R.runtimes),managers:a(R.managers),browser:y}}async function
|
|
6
|
-
[${e}]`,E("SIGTERM"),m=setTimeout(()=>{S+="\n[Killed: it did not exit on SIGTERM]",E("SIGKILL"),h=setTimeout(()=>{f.stdout?.destroy(),f.stderr?.destroy(),A({stdout:T,stderr:S,exitCode:-1})},1e3)},o.EXEC_KILL_GRACE_MS))},y=setTimeout(()=>P(`Timed out after ${r}ms`),r),R=()=>P("Aborted");a?.aborted?R():a?.addEventListener("abort",R,{once:!0}),f.on("close",e=>A({stdout:T,stderr:S,exitCode:e??-1})),f.on("error",e=>A({stdout:T,stderr:S+String(e),exitCode:-1}))})}})({workingDirectory:d,spill:{dir:i.PATHS.output,...i.TOOL_OUTPUT},toolPath:p})}async function
|
|
5
|
+
${e.slice(-s.tail).trimStart()}`}let u=i.APP_DIR,d=(0,r.join)(i.DATA_DIR,i.PATHS.workspace),p=(process.env.THURSDAY_TOOL_PATH?.split(":")??[(0,r.join)(u,"node_modules",".bin")]).filter(Boolean);(0,r.join)(d,i.PATHS.artifacts);let m=[i.PATHS.artifacts,i.PATHS.projects,i.PATHS.scratch,i.PATHS.bots],h=new Set([...m,".agents"]),w=(e,t)=>t===e||t.startsWith(e+r.sep),f=e=>(0,t.realpath)(e).catch(()=>null);async function T(e){let t=await f(d)??d,i=(0,r.resolve)(d,e);if(!w(d,i))return null;let a=i,s=await f(a);for(;null===s&&(0,r.dirname)(a)!==a;)a=(0,r.dirname)(a),s=await f(a);if(null===s)return null;let o=(0,r.relative)(a,i),n=o?(0,r.join)(s,o):s;return w(t,n)?n:null}function S(e,t){let r=t.trim().toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"").slice(0,40)||"job";return`${i.PATHS.scratch}/${r}-${e.slice(0,6)}`}let E=e=>`${i.PATHS.bots}/${e.replace(/[^\p{L}\p{N}_-]+/gu,"-")}`;async function _(e){let i=E(e);return await (0,t.mkdir)((0,r.join)(d,i),{recursive:!0}),i}async function A(e,i){let a=S(e,i);return await (0,t.mkdir)((0,r.join)(d,a),{recursive:!0}),a}let P=e=>e?{PLAYWRIGHT_CLI_SESSION:`task-${e}`,PLAYWRIGHT_MCP_VIEWPORT_SIZE:i.BROWSER_VIEWPORT}:{},y=null,R={runtimes:["node","python3","uv","bun","deno"],managers:["pnpm","npm","yarn"]};async function O(e){let t=Object.values(R).flat(),{stdout:r}=await e.exec(t.map(e=>`command -v ${e} >/dev/null 2>&1 && printf '%s ' ${e}`).join("; "),{timeoutMs:1e4}),i=new Set(r.trim().split(/\s+/).filter(Boolean)),a=e=>({found:e.filter(e=>i.has(e)),missing:e.filter(e=>!i.has(e))});return{runtimes:a(R.runtimes),managers:a(R.managers),browser:y}}async function I(){if(process.env.THURSDAY_SKIP_BROWSER)return;let e=await C(),t=await e.exec("playwright-cli install-browser chromium").catch(e=>({exitCode:1,stderr:String(e)}));(y=0===t.exitCode)||a.logger.warn(`no browser — bots cannot open a page until \`playwright-cli install-browser chromium\` succeeds: ${t.stderr.trim().split("\n").at(-1)??""}`)}async function M(){await x(),await b()}async function g(e){let t,r=await C(),i=P(e),a=await r.exec("playwright-cli list --json",{env:i,timeoutMs:15e3}).catch(()=>null);try{let{browsers:e}=JSON.parse(a?.stdout??"");t=e?.find(e=>e.name===i.PLAYWRIGHT_CLI_SESSION)}catch{}t?.headed!==!1||t.attached||await r.exec("playwright-cli close",{env:i,timeoutMs:15e3}).catch(()=>{}),await M()}async function v(e){let t=await C();await t.exec("playwright-cli close",{env:P(e),timeoutMs:15e3}).catch(()=>{}),await M()}let b=()=>$(i.PATHS.output),x=()=>$(".playwright-cli");async function $(e){let a=(0,r.join)(d,e),s=await (0,t.readdir)(a,{withFileTypes:!0}).catch(()=>[]),o=Date.now()-i.WORKSPACE_KEEP.forMs;for(let e of s){if(!e.isFile())continue;let i=(0,r.join)(a,e.name),s=await (0,t.stat)(i).catch(()=>null);s&&s.mtimeMs<o&&await (0,t.unlink)(i).catch(()=>{})}}async function j(){return(await (0,t.readdir)((0,r.join)(d,i.PATHS.scratch),{withFileTypes:!0}).catch(()=>[])).filter(e=>e.isDirectory()).map(e=>`${i.PATHS.scratch}/${e.name}`)}async function k(e){let a=Date.now()-i.WORKSPACE_KEEP.forMs,s=[];for(let i of e){let e=(0,r.join)(d,i),o=await (0,t.stat)(e).catch(()=>null);o?.isDirectory()&&!(o.mtimeMs>=a)&&(await (0,t.rm)(e,{recursive:!0,force:!0}).catch(()=>{}),s.push(i))}return s}let H={"pnpm-workspace.yaml":"packages:\n - '**'\n",".npmrc":"recursive-install=false\n"};async function C(){for(let e of m)await (0,t.mkdir)((0,r.join)(d,e),{recursive:!0});for(let[e,i]of Object.entries(H))await (0,t.writeFile)((0,r.join)(d,e),i,{flag:"wx"}).catch(()=>{});return(({workingDirectory:e,spill:i,toolPath:a})=>{let n=(0,r.resolve)(e),u=(a??[]).filter(Boolean).join(":"),d=e=>e.startsWith("/")||/^[A-Za-z]:/.test(e)?e:(0,r.resolve)(n,e);return{cwd:n,resolve:d,readFile:(e,r)=>(0,t.readFile)(d(e),r),async writeFile(e,i){let a=d(e);await (0,t.mkdir)((0,r.join)(a,".."),{recursive:!0}),await (0,t.writeFile)(a,i)},readdir:(e,r)=>(0,t.readdir)(d(e),r),fold:(e,t="output")=>c(e,t,n,i),async glob(e,{path:t=".",limit:i=200}={}){let a=d(t),s=RegExp("^"+e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*\//g,"(?:.*/)?").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]")+"$"),o=[];for await(let e of l(a)){let t=(0,r.relative)(a,e).split(r.sep).join("/");if((s.test(t)||s.test(e))&&o.push(e),o.length>=i)break}return o},exec:(e,{cwd:t,timeoutMs:r=o.EXEC_TIMEOUT_MS,signal:a,env:l}={})=>new Promise(p=>{let m,h,w=function(){let e={...process.env};for(let t of Object.keys(e))/KEY|TOKEN|SECRET|PASSWORD|CREDENTIAL|_AUTH/i.test(t)&&delete e[t];return e.TERM="dumb",e.PAGER="cat",e.GIT_PAGER="cat",e}();u&&(w.PATH=`${w.PATH??""}:${u}`);let f=(0,s.spawn)(e,{shell:!0,cwd:t?d(t):n,env:{...w,...l},detached:!0}),T="",S="";f.stdout?.on("data",e=>T+=e),f.stderr?.on("data",e=>S+=e);let E=e=>{try{f.pid&&process.kill(-f.pid,e)}catch{f.kill(e)}},_=!1,A=async e=>{_||(_=!0,clearTimeout(y),clearTimeout(m),clearTimeout(h),a?.removeEventListener("abort",R),p({...e,stdout:await c(e.stdout,"stdout",n,i),stderr:await c(e.stderr,"stderr",n,i)}))},P=e=>{m||_||(S+=`
|
|
6
|
+
[${e}]`,E("SIGTERM"),m=setTimeout(()=>{S+="\n[Killed: it did not exit on SIGTERM]",E("SIGKILL"),h=setTimeout(()=>{f.stdout?.destroy(),f.stderr?.destroy(),A({stdout:T,stderr:S,exitCode:-1})},1e3)},o.EXEC_KILL_GRACE_MS))},y=setTimeout(()=>P(`Timed out after ${r}ms`),r),R=()=>P("Aborted");a?.aborted?R():a?.addEventListener("abort",R,{once:!0}),f.on("close",e=>A({stdout:T,stderr:S,exitCode:e??-1})),f.on("error",e=>A({stdout:T,stderr:S+String(e),exitCode:-1}))})}})({workingDirectory:d,spill:{dir:i.PATHS.output,...i.TOOL_OUTPUT},toolPath:p})}async function L(e,i){let a=e.map(e=>(0,r.resolve)(d,e));if(i){let e=0;for await(let t of l((0,r.join)(d,i)))if(a.push(t),(e+=1)>=500)break}let s=new Map;for(let e of a){let i=await (0,t.stat)(e).catch(()=>null);if(!i?.isFile())continue;let a=(0,r.relative)(d,e);s.set(a&&!a.startsWith("..")?a:e,i.mtimeMs)}return[...s].sort((e,t)=>e[1]-t[1]).map(([e])=>e)}async function D(e,i){await (0,t.rm)((0,r.join)(d,S(e,i)),{recursive:!0,force:!0}).catch(()=>{})}e.s(["WORKSPACE",0,d,"botFolder",0,E,"closeHiddenBrowser",0,g,"closeJobShell",0,v,"ensureBrowser",0,I,"filesOnDisk",0,L,"insideWorkspace",0,T,"jobScratch",0,S,"jobShellEnv",0,P,"listScratchFolders",0,j,"openBotFolder",0,_,"openJobScratch",0,A,"openWorkspace",0,C,"pruneJobFiles",0,M,"readMachineTools",0,O,"removeJobScratch",0,D,"removeUnchangedFolders",0,k,"writeRefusal",0,function(e){if(w(d,e)){let t=(0,r.relative)(d,e),[a]=t.split(r.sep);return a&&h.has(a)?null:`Not written: ${t||"the workspace root"} is outside the workspace's folders. Finished work goes under ${i.PATHS.artifacts}/, code under ${i.PATHS.projects}/, your own kit under ${i.PATHS.bots}/, and this job's working material under ${i.PATHS.scratch}/.`}return w(u,e)?`Not written: ${e} is inside the app that is running you, not the user's files. Work in ${d}; outside it, write only where the user pointed you.`:null}],871096)}];
|
|
7
7
|
|
|
8
8
|
//# sourceMappingURL=%5Broot-of-the-server%5D__1wa1k7r._.js.map
|