@alook/app 0.0.73 → 0.0.75
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/bundled/email-worker/index.js +12 -6
- package/bundled/web/.open-next/.build/durable-objects/queue.js +5 -5
- package/bundled/web/.open-next/assets/BUILD_ID +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{060hy1yx9.8u4.js → 0eab27fokr42h.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{0hxwcjbgkr~0_.js → 0q68ch~b~z8vz.js} +1 -1
- package/bundled/web/.open-next/cache/{hO1_nTdFBzjO6p-ajc4L9 → UGFwPwgKnzZSC1Cx-oKdE}/_global-error.cache +1 -1
- package/bundled/web/.open-next/cache/{hO1_nTdFBzjO6p-ajc4L9 → UGFwPwgKnzZSC1Cx-oKdE}/_not-found.cache +1 -1
- package/bundled/web/.open-next/cache/{hO1_nTdFBzjO6p-ajc4L9 → UGFwPwgKnzZSC1Cx-oKdE}/sitemap.xml.cache +1 -1
- package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
- package/bundled/web/.open-next/cloudflare/init.js +1 -1
- package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
- package/bundled/web/.open-next/middleware/handler.mjs +5 -5
- package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/prerender-manifest.json +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/invite/[token]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/studio/new/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/activity/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/[convId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/email/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/files/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/meetings/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/new/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/flags/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/help/email-setup/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/[traceId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/workspaces/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(auth)/sign-in/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/agent-links/route.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/agents/[id]/whitelist/route.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/calendar/[id]/route.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/calendar/route.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/channels/[id]/route.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/channels/route.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/conversations/[id]/buffered-messages/route.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/email/notify/route.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/email/send/route.js +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/issues/[id]/route.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/issues/route.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/machine-tokens/activate/route.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/studios/route.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/workspaces/[id]/route.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/[id]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0..x3e2._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0.1j36e._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0.1vmoe._.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__009_wu3._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__00_g5g4._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__01crkpf._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__01~--ue._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__027mioa._.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__02_0idg._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__02rso~7._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__02tc9uk._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__02wurdb._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__034wlco._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__04ds4z_._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__04icw5-._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__06j-6ja._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__06tjmxh._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__06y_c-r._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__06~zt4i._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__09cer93._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__09ud9_1._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0ars103._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0b9cycy._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0dkg608._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0dy~25_._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0e7o6zp._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0faxj6t._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0flvgaf._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0grx101._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0gzp~d6._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0h1bbqr._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0hx4le1._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0j6wy8r._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0jvwtv1._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0k4l9.h._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0kc1f.6._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0ko5xa_._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0kruv9u._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0lc586o._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0lp-qwk._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0m5a1_f._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0m_ya4f._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0n6p6k4._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0niqi98._.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0ntc1ld._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0om99x0._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0oofrc0._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0p769.0._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0p8t~on._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0pyyhr-._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0qmcw57._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0r73dmn._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0s0l_.j._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0s9v7kt._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0sho.f4._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0ud56v.._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0v.x5_r._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0vc50cl._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0vvh~.2._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0w._3fo._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0wjwi1-._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0wp61q0._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0y4q15f._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0y_pjkm._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0~afpm2._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__10b3oxj._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__13imtgy._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0--kvw_._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0266t8u._.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_07-798_._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_08z6pkf._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_09ivzvb._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_09j_99x._.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0csh82a._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0exm5_w._.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0k3wl-3._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0r0h9so._.js +4 -4
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0w6dw.t._.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__04mf.th._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0e65njz._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_063q-hj._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0ilz5db._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_12e18r-._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_0liq_10._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_home_page_tsx_0lkx78f._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +5 -5
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.json +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +40 -40
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +181 -181
- package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +3 -3
- package/bundled/web/migrations/0031_query_performance_indexes.sql +21 -0
- package/bundled/ws-do/index.js +12 -6
- package/dist/cli/index.js +4 -1
- package/dist/cli/session-runner.js +4 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
- /package/bundled/web/.open-next/assets/_next/static/{hO1_nTdFBzjO6p-ajc4L9 → UGFwPwgKnzZSC1Cx-oKdE}/_buildManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{hO1_nTdFBzjO6p-ajc4L9 → UGFwPwgKnzZSC1Cx-oKdE}/_clientMiddlewareManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{hO1_nTdFBzjO6p-ajc4L9 → UGFwPwgKnzZSC1Cx-oKdE}/_ssgManifest.js +0 -0
- /package/bundled/web/.open-next/cache/{hO1_nTdFBzjO6p-ajc4L9 → UGFwPwgKnzZSC1Cx-oKdE}/robots.txt.cache +0 -0
|
@@ -80,6 +80,6 @@ module.exports=[542168,a=>{"use strict";a.i(846208);var b=a.i(892409),c=a.i(3461
|
|
|
80
80
|
AND c.workspace_id = ${c}
|
|
81
81
|
ON CONFLICT (conversation_id, user_id)
|
|
82
82
|
DO UPDATE SET last_read_at = ${d}
|
|
83
|
-
`)}a.s(["getUnreadCount",0,F,"listUnreadConversations",0,E,"markAllConversationsRead",0,H,"markConversationRead",0,G],975036);var I=a.i(975036),J=a.i(328039),K=a.i(855312),L=a.i(79908);a.s(["agent",0,e,"agentAccess",0,t,"agentLink",0,B,"agentPin",0,u,"agentSidebarOrder",0,v,"artifact",0,q,"calendarEvent",0,p,"channel",0,y,"conversation",0,g,"conversationMap",0,A,"email",0,n,"emailAccount",0,r,"inbox",0,I,"issue",0,J,"issueComment",0,K,"machine",0,k,"machineToken",0,l,"meetingSession",0,x,"member",0,d,"message",0,h,"messageFlag",0,L,"overview",0,w,"runtime",0,f,"session",0,o,"task",0,i,"taskMessage",0,j,"user",0,b,"whitelist",0,m,"workspace",0,c,"workspaceFileRequest",0,z,"workspaceInvite",0,s],395780);var M=a.i(395780);a.s(["queries",0,M],542168)},696826,a=>{"use strict";a.i(250195);var b=a.i(544979);a.s(["getDb",0,function(a){let c=a.withSession("first-primary");return(0,b.createDb)(c)}])},885135,a=>{"use strict";a.s(["WorkspaceProvider",()=>c,"useWorkspace",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceProvider() from the server but WorkspaceProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx <module evaluation>","WorkspaceProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useWorkspace() from the server but useWorkspace is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx <module evaluation>","useWorkspace")},27504,a=>{"use strict";a.s(["WorkspaceProvider",()=>c,"useWorkspace",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceProvider() from the server but WorkspaceProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx","WorkspaceProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useWorkspace() from the server but useWorkspace is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx","useWorkspace")},452149,a=>{"use strict";a.i(885135);var b=a.i(27504);a.n(b)},584236,a=>{"use strict";a.s(["AgentProvider",()=>c,"useAgentContext",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call AgentProvider() from the server but AgentProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx <module evaluation>","AgentProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAgentContext() from the server but useAgentContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx <module evaluation>","useAgentContext")},861849,a=>{"use strict";a.s(["AgentProvider",()=>c,"useAgentContext",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call AgentProvider() from the server but AgentProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx","AgentProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAgentContext() from the server but useAgentContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx","useAgentContext")},498915,a=>{"use strict";a.i(584236);var b=a.i(861849);a.n(b)},991013,a=>{"use strict";a.s(["ChannelProvider",()=>c,"useChannel",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call ChannelProvider() from the server but ChannelProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx <module evaluation>","ChannelProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useChannel() from the server but useChannel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx <module evaluation>","useChannel")},906430,a=>{"use strict";a.s(["ChannelProvider",()=>c,"useChannel",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call ChannelProvider() from the server but ChannelProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx","ChannelProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useChannel() from the server but useChannel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx","useChannel")},150409,a=>{"use strict";a.i(991013);var b=a.i(906430);a.n(b)},632146,a=>{"use strict";a.s(["InboxCountProvider",()=>c,"useInboxCount",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call InboxCountProvider() from the server but InboxCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx <module evaluation>","InboxCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useInboxCount() from the server but useInboxCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx <module evaluation>","useInboxCount")},269150,a=>{"use strict";a.s(["InboxCountProvider",()=>c,"useInboxCount",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call InboxCountProvider() from the server but InboxCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx","InboxCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useInboxCount() from the server but useInboxCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx","useInboxCount")},143131,a=>{"use strict";a.i(632146);var b=a.i(269150);a.n(b)},778759,a=>{"use strict";a.s(["FlagCountProvider",()=>c,"useFlagCount",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call FlagCountProvider() from the server but FlagCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx <module evaluation>","FlagCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useFlagCount() from the server but useFlagCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx <module evaluation>","useFlagCount")},292542,a=>{"use strict";a.s(["FlagCountProvider",()=>c,"useFlagCount",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call FlagCountProvider() from the server but FlagCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx","FlagCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useFlagCount() from the server but useFlagCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx","useFlagCount")},97859,a=>{"use strict";a.i(778759);var b=a.i(292542);a.n(b)},578647,a=>{"use strict";a.s(["WorkspaceShell",()=>c,"useSidebarTrigger",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceShell() from the server but WorkspaceShell is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx <module evaluation>","WorkspaceShell"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useSidebarTrigger() from the server but useSidebarTrigger is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx <module evaluation>","useSidebarTrigger")},383843,a=>{"use strict";a.s(["WorkspaceShell",()=>c,"useSidebarTrigger",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceShell() from the server but WorkspaceShell is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx","WorkspaceShell"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useSidebarTrigger() from the server but useSidebarTrigger is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx","useSidebarTrigger")},877617,a=>{"use strict";a.i(578647);var b=a.i(383843);a.n(b)},678399,a=>a.a(async(b,c)=>{try{var d=a.i(144637),e=a.i(446912);a.i(900104);var f=a.i(672234),g=a.i(716403);a.i(250195);var h=a.i(542168),i=a.i(696826),j=a.i(678327),k=a.i(452149),l=a.i(498915),m=a.i(150409),n=a.i(143131),o=a.i(97859),p=a.i(877617),q=b([j]);async function r({children:a,params:b}){let c=await (0,j.getSession)();c||(0,f.redirect)("/sign-in");let{slug:q}=await b,{env:s}=await (0,g.getCloudflareContext)({async:!0}),t=(0,i.getDb)(s.DB),u=await h.queries.workspace.getWorkspaceBySlug(t,q);u||(0,f.redirect)("/workspaces"),await h.queries.member.getMemberByUserAndWorkspace(t,c.user.id,u.id)||(0,f.redirect)("/workspaces");let v=await h.queries.agent.listAgents(t,u.id,c.user.id);if(0===v.length){let a=(await (0,e.headers)()).get("cookie")||"",b=Object.fromEntries(a.split(";").map(a=>{let[b,...c]=a.trim().split("=");return[b,c.join("=")]}));b.skip_init&&b.skip_init===u.id||(0,f.redirect)(`/studio/new?workspace_id=${u.id}`)}return(0,d.jsx)(k.WorkspaceProvider,{workspaceId:u.id,slug:q,children:(0,d.jsx)(l.AgentProvider,{workspaceId:u.id,children:(0,d.jsx)(n.InboxCountProvider,{children:(0,d.jsx)(o.FlagCountProvider,{children:(0,d.jsx)(m.ChannelProvider,{workspaceId:u.id,children:(0,d.jsx)(p.WorkspaceShell,{children:a})})})})})})}[j]=q.then?(await q)():q,a.s(["default",0,r]),c()}catch(a){c(a)}},!1),234278,a=>{a.n(a.i(678399))}];
|
|
83
|
+
`)}a.s(["getUnreadCount",0,F,"listUnreadConversations",0,E,"markAllConversationsRead",0,H,"markConversationRead",0,G],975036);var I=a.i(975036),J=a.i(328039),K=a.i(855312),L=a.i(79908);a.s(["agent",0,e,"agentAccess",0,t,"agentLink",0,B,"agentPin",0,u,"agentSidebarOrder",0,v,"artifact",0,q,"calendarEvent",0,p,"channel",0,y,"conversation",0,g,"conversationMap",0,A,"email",0,n,"emailAccount",0,r,"inbox",0,I,"issue",0,J,"issueComment",0,K,"machine",0,k,"machineToken",0,l,"meetingSession",0,x,"member",0,d,"message",0,h,"messageFlag",0,L,"overview",0,w,"runtime",0,f,"session",0,o,"task",0,i,"taskMessage",0,j,"user",0,b,"whitelist",0,m,"workspace",0,c,"workspaceFileRequest",0,z,"workspaceInvite",0,s],395780);var M=a.i(395780);a.s(["queries",0,M],542168)},696826,a=>{"use strict";a.i(250195);var b=a.i(544979);a.s(["getDb",0,function(a){let c=a.withSession("first-unconstrained");return(0,b.createDb)(c)}])},885135,a=>{"use strict";a.s(["WorkspaceProvider",()=>c,"useWorkspace",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceProvider() from the server but WorkspaceProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx <module evaluation>","WorkspaceProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useWorkspace() from the server but useWorkspace is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx <module evaluation>","useWorkspace")},27504,a=>{"use strict";a.s(["WorkspaceProvider",()=>c,"useWorkspace",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceProvider() from the server but WorkspaceProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx","WorkspaceProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useWorkspace() from the server but useWorkspace is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx","useWorkspace")},452149,a=>{"use strict";a.i(885135);var b=a.i(27504);a.n(b)},584236,a=>{"use strict";a.s(["AgentProvider",()=>c,"useAgentContext",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call AgentProvider() from the server but AgentProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx <module evaluation>","AgentProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAgentContext() from the server but useAgentContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx <module evaluation>","useAgentContext")},861849,a=>{"use strict";a.s(["AgentProvider",()=>c,"useAgentContext",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call AgentProvider() from the server but AgentProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx","AgentProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAgentContext() from the server but useAgentContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx","useAgentContext")},498915,a=>{"use strict";a.i(584236);var b=a.i(861849);a.n(b)},991013,a=>{"use strict";a.s(["ChannelProvider",()=>c,"useChannel",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call ChannelProvider() from the server but ChannelProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx <module evaluation>","ChannelProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useChannel() from the server but useChannel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx <module evaluation>","useChannel")},906430,a=>{"use strict";a.s(["ChannelProvider",()=>c,"useChannel",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call ChannelProvider() from the server but ChannelProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx","ChannelProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useChannel() from the server but useChannel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx","useChannel")},150409,a=>{"use strict";a.i(991013);var b=a.i(906430);a.n(b)},632146,a=>{"use strict";a.s(["InboxCountProvider",()=>c,"useInboxCount",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call InboxCountProvider() from the server but InboxCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx <module evaluation>","InboxCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useInboxCount() from the server but useInboxCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx <module evaluation>","useInboxCount")},269150,a=>{"use strict";a.s(["InboxCountProvider",()=>c,"useInboxCount",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call InboxCountProvider() from the server but InboxCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx","InboxCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useInboxCount() from the server but useInboxCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx","useInboxCount")},143131,a=>{"use strict";a.i(632146);var b=a.i(269150);a.n(b)},778759,a=>{"use strict";a.s(["FlagCountProvider",()=>c,"useFlagCount",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call FlagCountProvider() from the server but FlagCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx <module evaluation>","FlagCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useFlagCount() from the server but useFlagCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx <module evaluation>","useFlagCount")},292542,a=>{"use strict";a.s(["FlagCountProvider",()=>c,"useFlagCount",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call FlagCountProvider() from the server but FlagCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx","FlagCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useFlagCount() from the server but useFlagCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx","useFlagCount")},97859,a=>{"use strict";a.i(778759);var b=a.i(292542);a.n(b)},578647,a=>{"use strict";a.s(["WorkspaceShell",()=>c,"useSidebarTrigger",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceShell() from the server but WorkspaceShell is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx <module evaluation>","WorkspaceShell"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useSidebarTrigger() from the server but useSidebarTrigger is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx <module evaluation>","useSidebarTrigger")},383843,a=>{"use strict";a.s(["WorkspaceShell",()=>c,"useSidebarTrigger",()=>d]);var b=a.i(265047);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceShell() from the server but WorkspaceShell is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx","WorkspaceShell"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useSidebarTrigger() from the server but useSidebarTrigger is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx","useSidebarTrigger")},877617,a=>{"use strict";a.i(578647);var b=a.i(383843);a.n(b)},678399,a=>a.a(async(b,c)=>{try{var d=a.i(144637),e=a.i(446912);a.i(900104);var f=a.i(672234),g=a.i(716403);a.i(250195);var h=a.i(542168),i=a.i(696826),j=a.i(678327),k=a.i(452149),l=a.i(498915),m=a.i(150409),n=a.i(143131),o=a.i(97859),p=a.i(877617),q=b([j]);async function r({children:a,params:b}){let c=await (0,j.getSession)();c||(0,f.redirect)("/sign-in");let{slug:q}=await b,{env:s}=await (0,g.getCloudflareContext)({async:!0}),t=(0,i.getDb)(s.DB),u=await h.queries.workspace.getWorkspaceBySlug(t,q);u||(0,f.redirect)("/workspaces"),await h.queries.member.getMemberByUserAndWorkspace(t,c.user.id,u.id)||(0,f.redirect)("/workspaces");let v=await h.queries.agent.listAgents(t,u.id,c.user.id);if(0===v.length){let a=(await (0,e.headers)()).get("cookie")||"",b=Object.fromEntries(a.split(";").map(a=>{let[b,...c]=a.trim().split("=");return[b,c.join("=")]}));b.skip_init&&b.skip_init===u.id||(0,f.redirect)(`/studio/new?workspace_id=${u.id}`)}return(0,d.jsx)(k.WorkspaceProvider,{workspaceId:u.id,slug:q,children:(0,d.jsx)(l.AgentProvider,{workspaceId:u.id,children:(0,d.jsx)(n.InboxCountProvider,{children:(0,d.jsx)(o.FlagCountProvider,{children:(0,d.jsx)(m.ChannelProvider,{workspaceId:u.id,children:(0,d.jsx)(p.WorkspaceShell,{children:a})})})})})})}[j]=q.then?(await q)():q,a.s(["default",0,r]),c()}catch(a){c(a)}},!1),234278,a=>{a.n(a.i(678399))}];
|
|
84
84
|
|
|
85
85
|
//# sourceMappingURL=src_0liq_10._.js.map
|