@alook/app 0.0.100 → 0.0.102
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 +5 -1
- 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/{0tvembqw.e82g.js → 01yvpio9kzobl.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{0.9oyh86wn1fd.js → 06-36_p6krl~i.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/06lpxhe_9sltg.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{0uayv05d6mntr.js → 0byowbhmg_3u~.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{0wx~9mjjiq42o.js → 0h1de3c3ehomh.js} +3 -3
- package/bundled/web/.open-next/assets/_next/static/chunks/0huy7.sigtt~2.css +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0hyshwdxcbwbq.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0k2238cv1yqp0.js +62 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{0dhez0ocwb1sn.js → 0r775oyts5ozc.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{0u.pao5ubynoe.js → 0v4hr9uuvoz8q.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{01uwb4d6kz814.js → 0y8rj~id6sl.y.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/10rvnbe-gw6a7.js +3 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/10ux4o4nkn.sj.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{0xbk75wddja-u.js → 135zhgfi292f8.js} +2 -2
- package/bundled/web/.open-next/cache/{stPDLxY2tICyNcpCDMCz4 → vYwH57AQyFDz3H5YJt_2h}/_global-error.cache +1 -1
- package/bundled/web/.open-next/cache/{stPDLxY2tICyNcpCDMCz4 → vYwH57AQyFDz3H5YJt_2h}/_not-found.cache +1 -1
- package/bundled/web/.open-next/cache/{stPDLxY2tICyNcpCDMCz4 → vYwH57AQyFDz3H5YJt_2h}/privacy.cache +1 -1
- package/bundled/web/.open-next/cache/{stPDLxY2tICyNcpCDMCz4 → vYwH57AQyFDz3H5YJt_2h}/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 +4 -4
- 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/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/privacy/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/0b5f_next_dist_esm_build_templates_app-route_08rz-qa.js +172 -572
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[turbopack]_runtime.js +8 -7
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0i4u2y-._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0iw.~u_._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0j3ag~p._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0j_~vur._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0mk4o2l._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0r0h9so._.js +5 -4
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/01k0_lucide-react_dist_esm_icons_0q8k8yb._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__0r7fdlr._.js → [root-of-the-server]__05g0phj._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__07of89~._.js → [root-of-the-server]__06c6dak._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__0cdpfp7._.js → [root-of-the-server]__0uv4dv6._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[turbopack]_runtime.js +8 -7
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_02.xen~._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0.q_x36._.js → _06a692f._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_09n89mu._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0_.06ux._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0a8f3fa._.js → _0c-ma68._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0sby7nn._.js +64 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0u~xh2v._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0xhx.5_._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0wtsjmd._.js → _0~twhbc._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_12yhe5_._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_0stugv_._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_0~23g-y._.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_calendar_page_tsx_01geiyd._.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/chunks/ssr/src_web_src_components_home_home-page_tsx_0to84tv._.js +1 -37
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_lib_templates_index_ts_13n9_2e._.js +172 -572
- 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 +444 -1542
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +171 -153
- package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +3 -3
- package/bundled/web/wrangler.toml +1 -1
- package/bundled/ws-do/index.js +5 -1
- package/dist/cli/index.js +8 -4
- package/dist/cli/session-runner.js +6 -2
- package/dist/index.js +5 -1
- package/package.json +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/01mduafj8.t03.js +0 -37
- package/bundled/web/.open-next/assets/_next/static/chunks/051._099hez6h.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/07ju9-jia-17m.js +0 -325
- package/bundled/web/.open-next/assets/_next/static/chunks/09m73_4eia.5a.css +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/09tp3dnnhv6a0.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_13__3im._.js +0 -327
- /package/bundled/web/.open-next/assets/_next/static/{stPDLxY2tICyNcpCDMCz4 → vYwH57AQyFDz3H5YJt_2h}/_buildManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{stPDLxY2tICyNcpCDMCz4 → vYwH57AQyFDz3H5YJt_2h}/_clientMiddlewareManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{stPDLxY2tICyNcpCDMCz4 → vYwH57AQyFDz3H5YJt_2h}/_ssgManifest.js +0 -0
- /package/bundled/web/.open-next/cache/{stPDLxY2tICyNcpCDMCz4 → vYwH57AQyFDz3H5YJt_2h}/robots.txt.cache +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[28429,a=>{"use strict";var b=a.i(236631);a.s(["ChevronDown",()=>b.default])},292400,466064,a=>{"use strict";var b=a.i(437199);let c=b.createContext({disabled:!1});a.s(["FieldItemContext",0,c,"useFieldItemContext",0,function(){return b.useContext(c)}],292400);var d=a.i(407575);let e=b.createContext(void 0);a.s(["useCheckboxGroupContext",0,function(a=!0){let c=b.useContext(e);if(void 0===c&&!a)throw Error((0,d.default)(3));return c}],466064)},76592,a=>{"use strict";var b=a.i(749314),c=a.i(75118);a.s(["Label",0,function({className:a,...d}){return(0,b.jsx)("label",{"data-slot":"label",className:(0,c.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...d})}])},390248,a=>{"use strict";a.s(["hasCustomEmailErrors",0,function(a){return!!(a.emailAddress||a.imapHost||a.imapPassword||a.smtpHost||a.smtpPassword)},"hasWorkspaceFormErrors",0,function(a){return!!(a.name||a.slug)},"validateCustomEmailFields",0,function({emailAddress:a,imapHost:b,imapUsername:c,imapPassword:d,smtpHost:e,smtpUsername:f,smtpPassword:g}){let h={};return a.trim()||(h.emailAddress="Email address is required"),b.trim()||(h.imapHost="IMAP host is required"),c.trim()&&d.trim()||(h.imapPassword="IMAP credentials are required"),e.trim()||(h.smtpHost="SMTP host is required"),f.trim()&&g.trim()||(h.smtpPassword="SMTP credentials are required"),h},"validateWorkspaceForm",0,function({name:a,slug:b}){let c={};return a.trim()||(c.name="Workspace name is required"),b.trim()||(c.slug="Workspace slug is required"),c}])},588709,a=>{"use strict";var b=a.i(749314),c=a.i(437199),d=a.i(207058),e=a.i(752792),f=a.i(506180),g=a.i(732254),h=a.i(224226),i=a.i(137993);a.i(735132);var j=a.i(628508),k=a.i(325848),l=a.i(854445);let m={shape:"circle",eye:"dots",nose:"dot",bg:0};async function n(){let b=await ((a,b=3e3)=>new Promise(c=>{let d=document.querySelector(a);if(d)return void c(d);let e=new MutationObserver(()=>{let b=document.querySelector(a);b&&(e.disconnect(),c(b))});e.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>{e.disconnect(),c(null)},b)}))("#agent-name");if(!b||(await new Promise(a=>{requestAnimationFrame(()=>requestAnimationFrame(()=>a()))}),!b.getBoundingClientRect().height))return;let{driver:c}=await a.A(995011);await Promise.resolve({}),c({showProgress:!0,animate:!0,allowClose:!0,overlayClickBehavior:()=>{},overlayColor:"black",overlayOpacity:.4,popoverClass:"agent-tour-popover",steps:[{element:"#agent-name",popover:{title:"Name your agent",description:"Give your agent a name — this is how you'll identify it.",side:"bottom",align:"start"}},{element:"#agent-runtime-select",disableActiveInteraction:!1,popover:{title:"Choose a runtime",description:"Select which machine and provider will run this agent.",side:"bottom",align:"start"}}]}).drive()}function o({runtimes:a,defaultRuntimeId:d="",modelOptions:e,guided:p=!1,onTourReady:q,onSave:r,onCancel:s,saving:t}){let{workspaceId:u}=(0,f.useWorkspace)(),[v,w]=(0,c.useState)(""),[x,y]=(0,c.useState)(""),[z,A]=(0,c.useState)(""),[B,C]=(0,c.useState)(d),[D,E]=(0,c.useState)(""),[F,G]=(0,c.useState)({}),[H,I]=(0,c.useState)(null),J=(0,c.useRef)(null),[K,L]=(0,c.useState)(""),[M,N]=(0,c.useState)(m),O=(0,c.useRef)(!1);(0,c.useEffect)(()=>{O.current||(O.current=!0,N((0,k.randomConfig)()),w((0,l.uniqueNamesGenerator)({dictionaries:[l.names],length:1,style:"capital"})))},[]);let P=(0,c.useCallback)(()=>{w((0,l.uniqueNamesGenerator)({dictionaries:[l.names],length:1,style:"capital"})),G(a=>({...a,name:void 0}))},[]),Q=a.find(a=>a.id===B),R=Q&&e?e[Q.provider]??[]:[],S=(0,h.nameToHandle)(v),T=D||S,U=(0,h.getHandleError)(T),V=(0,c.useRef)(!1);(0,c.useEffect)(()=>{q?.(()=>n())},[q]),(0,c.useEffect)(()=>{p&&!V.current&&(V.current=!0,n())},[p]);let W=async a=>{a.preventDefault();let b=function({name:a,runtimeId:b}){let c={};return a.trim()||(c.name="Name is required"),b||(c.runtimeId="Select an online runtime"),c}({name:v,runtimeId:B});G(b),b.name||b.runtimeId||await r({name:v.trim(),description:x,instructions:z,runtime_id:B,email_handle:D||S||void 0,runtime_config:K?{model:K}:{},custom_email:J.current?.()??H??void 0,avatar_url:(0,k.serializeAvatarConfig)(M)})};return(0,b.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto thin-scrollbar",children:(0,b.jsxs)("form",{onSubmit:W,noValidate:!0,className:"mx-auto max-w-md flex flex-col gap-5 px-8 pt-8 pb-6",children:[(0,b.jsx)(j.AvatarPickerDialog,{config:M,onChange:N}),(0,b.jsx)(h.GeneralFields,{name:v,setName:a=>{w(a),F.name&&a.trim()&&G(a=>({...a,name:void 0}))},description:x,setDescription:y,instructions:z,setInstructions:A,model:K,setModel:L,runtimeId:B,setRuntimeId:b=>{let c=a.find(a=>a.id===B)?.provider,d=a.find(a=>a.id===b)?.provider;C(b),c&&c!==d&&L(""),F.runtimeId&&b&&G(a=>({...a,runtimeId:void 0}))},runtimes:a,providerModels:R,errors:F,runtimeAsRadio:!0,onShuffle:P,emailHandleSlot:(0,b.jsx)(h.EmailHandleField,{emailHandle:D,setEmailHandle:E,derivedHandle:S}),advancedSection:(0,b.jsx)(i.CustomEmailForm,{workspaceId:u,onDataChange:I,getDataRef:J})}),(0,b.jsxs)("div",{className:"flex items-center gap-2 pt-2",children:[(0,b.jsx)(g.Button,{type:"button",variant:"ghost",size:"sm",onClick:s,children:"Cancel"}),(0,b.jsx)(g.Button,{type:"submit",size:"sm",disabled:t||!!U,children:t?"Creating...":"Create"})]})]})})}var p=a.i(588339),q=a.i(921584),r=a.i(370085),s=a.i(525132);a.s(["default",0,function(){let a=(0,d.useRouter)(),{slug:h,workspaceId:i}=(0,f.useWorkspace)(),{agents:j,runtimes:k,handleCreateAgent:l,getFirstOnlineRuntimeId:m}=(0,e.useAgentContext)(),[n,t]=(0,c.useState)(!1),[u,v]=(0,c.useState)({}),w=(0,c.useRef)(null);(0,c.useEffect)(()=>{(0,p.fetchModelOptions)().then(v).catch(()=>{})},[]);let x=(0,c.useCallback)(a=>{w.current=a},[]);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 border-b border-border/50 px-3 md:px-5 py-2.5",children:[(0,b.jsx)("h1",{className:"text-sm font-medium",children:"Create Agent"}),(0,b.jsxs)(s.Tooltip,{children:[(0,b.jsx)(s.TooltipTrigger,{render:(0,b.jsx)(g.Button,{variant:"ghost",size:"icon-xs",onClick:()=>w.current?.(),className:"text-muted-foreground"}),children:(0,b.jsx)(r.CircleHelp,{className:"size-3.5"})}),(0,b.jsx)(s.TooltipContent,{children:"Show guided tour"})]})]}),(0,b.jsx)(o,{runtimes:k,defaultRuntimeId:m(),modelOptions:u,guided:0===j.length,onTourReady:x,saving:n,onCancel:()=>a.back(),onSave:async b=>{t(!0);try{let c=await l({name:b.name,description:b.description||void 0,instructions:b.instructions||void 0,runtime_id:b.runtime_id,email_handle:b.email_handle||void 0,runtime_config:b.runtime_config,avatar_url:b.avatar_url});if(c){if(b.custom_email)try{await (0,p.createEmailAccount)(c.id,b.custom_email,i),q.toast.success("Custom email connected")}catch(a){q.toast.error(a instanceof Error?a.message:"Failed to connect custom email")}a.push(`/w/${h}/agents/${c.id}/chat`)}return!!c}finally{t(!1)}}})]})}],588709)},81396,a=>{a.v(a=>Promise.resolve().then(()=>a(588339)))},995011,a=>{a.v(b=>Promise.all(["server/chunks/ssr/0_ek_driver_js_dist_driver_js_mjs_01pzbxs._.js"].map(b=>a.l(b))).then(()=>b(569973)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=_0c-ma68._.js.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
module.exports=[113046,a=>{"use strict";let b=(0,a.i(647651).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);a.s(["XCircle",0,b],113046)},762276,a=>{"use strict";var b=a.i(854445);a.i(735132);var c=a.i(325848);let d=`You are the lead coordinator. You receive tasks from the user and decide how to handle them.
|
|
2
|
+
|
|
3
|
+
## Principles
|
|
4
|
+
- You are the user's single point of contact. Delegate to specialists when their expertise adds value; handle simple tasks yourself for speed.
|
|
5
|
+
- Every delegation must be self-contained: clear goal, full context, and acceptance criteria so the specialist can succeed without back-and-forth.
|
|
6
|
+
- When specialists report back, verify key claims on high-stakes outputs before passing to the user.
|
|
7
|
+
- Synthesize specialist work into clear, concise responses. Credit teammates naturally.
|
|
8
|
+
- If a delegation fails or a specialist is blocked, report back to the user with what happened and your next step.
|
|
9
|
+
- Be warm but concise. Never ask "should I continue?" — if you have what you need, keep moving.`,e=`You are a personal AI assistant. You work solo — no team to delegate to.
|
|
10
|
+
|
|
11
|
+
## Principles
|
|
12
|
+
- Handle tasks directly: emails, research, scheduling, writing, analysis — whatever comes your way.
|
|
13
|
+
- Be fast, accurate, and proactive. Suggest next steps when you see opportunities.
|
|
14
|
+
- Lead with the answer or deliverable, then context if needed.
|
|
15
|
+
- For complex tasks, break into steps and work through them methodically.
|
|
16
|
+
- Match the user's tone. Be concise — they want results, not status reports.
|
|
17
|
+
- If genuinely ambiguous, ask one focused question. Otherwise, keep moving.`,f=`You are the technical research specialist. You read codebases, explore APIs, review documentation, and gather context for engineering decisions.
|
|
18
|
+
|
|
19
|
+
## Principles
|
|
20
|
+
- Find technical truth: read code, trace execution paths, compare options with real trade-offs.
|
|
21
|
+
- Lead with the recommendation, then supporting evidence. Cite sources: file paths, docs, code lines.
|
|
22
|
+
- Be explicit about confidence — distinguish "verified in source" from "docs claim X."
|
|
23
|
+
- If a request is ambiguous, ask one focused clarification before starting.
|
|
24
|
+
- Density over volume. Engineers want answers, not essays.`,g=`You are the content research specialist. You find information, verify facts, compare sources, and organize references for accurate content production.
|
|
25
|
+
|
|
26
|
+
## Principles
|
|
27
|
+
- Cross-reference claims from multiple sources. Never trust a single source for important facts.
|
|
28
|
+
- Lead with key findings the writer needs, then supporting detail.
|
|
29
|
+
- Cite everything: URLs, publication dates, author credentials. Note source freshness.
|
|
30
|
+
- If sources conflict, explain the disagreement and which to trust.
|
|
31
|
+
- If something can't be verified, say so clearly. Separate facts from opinions.`,h=`You are the sales research specialist. You find prospects, research companies, and gather actionable intelligence for outreach.
|
|
32
|
+
|
|
33
|
+
## Principles
|
|
34
|
+
- Every finding should be actionable — not academic. Focus on: who to contact, what they care about, how to position.
|
|
35
|
+
- For prospects, prioritize buying-intent signals: recent funding, tech stack changes, hiring patterns, pain points.
|
|
36
|
+
- Lead with the most actionable finding. Cite sources with dates and reliability indicators.
|
|
37
|
+
- Synthesize into intelligence, not data dumps. Sales moves fast — timeliness over completeness.`,i=`You are the engineering specialist. You write code, run tests, debug issues, and verify implementations.
|
|
38
|
+
|
|
39
|
+
## Principles
|
|
40
|
+
- Ship working code. Verify every change before reporting done.
|
|
41
|
+
- Follow existing patterns. Keep changes minimal and focused on the task.
|
|
42
|
+
- If requirements are unclear or you see multiple valid approaches, ask before coding — not mid-way through.
|
|
43
|
+
- Self-review before reporting: completeness, edge cases, test coverage.
|
|
44
|
+
- If unsure, say so. Bad code is worse than no code.`,j=`You are the content operations specialist. You handle formatting, publishing workflows, and keep the content pipeline on schedule.
|
|
45
|
+
|
|
46
|
+
## Principles
|
|
47
|
+
- Content gets published on time, in the right format, to the right channels.
|
|
48
|
+
- Match formatting to each platform's conventions. Proofread for obvious errors.
|
|
49
|
+
- Track what's published, pending, and overdue. Follow up proactively.
|
|
50
|
+
- Never publish without confirming the final version with the leader.`,k=`You are the sales operations specialist. You handle outreach emails, follow-ups, and pipeline logistics.
|
|
51
|
+
|
|
52
|
+
## Principles
|
|
53
|
+
- Deals die in the follow-up gap. Every prospect gets timely, personalized communication.
|
|
54
|
+
- Subject lines: specific and intriguing. Body: short, personalized first line, clear CTA.
|
|
55
|
+
- Follow-ups reference previous context and add new value — never just "checking in."
|
|
56
|
+
- Track interactions and flag cold deals. Escalate after two unanswered follow-ups.`,l=`You are the customer support specialist. You draft responses to inquiries and track issues to resolution.
|
|
57
|
+
|
|
58
|
+
## Principles
|
|
59
|
+
- Every interaction builds trust. Be empathetic, accurate, and efficient — resolve on first response when possible.
|
|
60
|
+
- Lead with acknowledgment, then solution or clear next steps. Use simple language.
|
|
61
|
+
- If you can't resolve immediately, set realistic expectations: what you'll do, by when.
|
|
62
|
+
- Track open issues proactively. Escalate complex or sensitive cases with full context.`;a.s(["SCENARIO_PRESETS",0,[{id:"software-dev",label:"Software Development",description:"Build and ship code with a coordinated dev team",icon:"🖥",members:[{role:"leader",description:"Coordinates work, summarizes results, and replies to you",instructions:d},{role:"engineer",description:"Writes code, runs tests, and verifies implementations",instructions:i,relationship:{leaderSees:"Delegate coding tasks with: clear requirement description, acceptance criteria (3-5 specific testable items), relevant file paths, existing patterns to follow, and context from research findings if applicable.",memberSees:"Report back with: implementation status, files changed, acceptance criteria checklist (pass/fail each), test results, and self-review concerns. After implementation, send work to the reviewer if one exists."}},{role:"researcher",description:"Reads code, explores APIs, and gathers technical context",instructions:f,relationship:{leaderSees:"Delegate technical research with: what to investigate, what decision it informs, scope boundary, and relevant file paths or code pointers.",memberSees:"Report back with: technical summary, evidence (file paths, doc URLs, code snippets), recommendation, and confidence level (High/Medium/Low). Flag anything unverified."}}]},{id:"content-research",label:"Content & Research",description:"Research topics, write content, and manage publishing",icon:"📝",members:[{role:"leader",description:"Coordinates work, shapes content direction, and delivers output",instructions:d},{role:"researcher",description:"Finds sources, verifies facts, and organizes references",instructions:g,relationship:{leaderSees:"Delegate content research with: topic or claim to investigate, target content format (article, report, social), depth needed, and specific sources to check if any.",memberSees:"Report back with: key facts for the writer, organized source list (URL, date, reliability), verification gaps, framing suggestion, and per-claim confidence."}},{role:"assistant",description:"Handles formatting, publishing workflows, and follow-ups",instructions:j,relationship:{leaderSees:"Delegate content operations with: what content to format or publish, target platform, deadline, and style requirements.",memberSees:"Report back with: what was done (formatted, published, submitted), next step (awaiting review, scheduled date), and blockers if any."}}]},{id:"personal-assistant",label:"Personal Assistant",description:"One AI that handles your everyday tasks and communications",icon:"🤖",members:[{role:"leader",description:"Handles all tasks directly — emails, research, scheduling, and more",instructions:e}]},{id:"sales-outreach",label:"Sales & Outreach",description:"Prospect, follow up, and close deals as a team",icon:"📈",members:[{role:"leader",description:"Coordinates outreach strategy and manages deal flow",instructions:d},{role:"researcher",description:"Researches prospects, companies, and market intelligence",instructions:h,relationship:{leaderSees:"Delegate prospect research with: target criteria, market or industry focus, what intelligence is needed, and how it will be used (outreach, pitch, proposal).",memberSees:"Report back with: prioritized prospect list (name, role, company, relevance, suggested angle), market signals, and confidence per finding."}},{role:"assistant",description:"Handles outreach emails, follow-ups, and pipeline tracking",instructions:k,relationship:{leaderSees:"Delegate outreach with: who to contact, messaging angle, follow-up cadence, and desired outcome.",memberSees:"Report back with: emails sent or scheduled, responses received, pipeline updates, and deals needing escalation."}}]},{id:"customer-support",label:"Customer Support",description:"Handle tickets, draft replies, and track resolutions",icon:"🎧",members:[{role:"leader",description:"Coordinates support queue and handles escalations",instructions:d},{role:"assistant",description:"Drafts customer responses and tracks open issues",instructions:l,relationship:{leaderSees:"Delegate support tasks with: customer issue summary, urgency level, prior interaction context, and resolution approach.",memberSees:"Report back with: response drafted or sent, resolution status, follow-up schedule, and recurring patterns to flag."}}]},{id:"custom",label:"Custom",description:"Build your own team from scratch",icon:"✨",members:[{role:"leader",description:"Coordinates work and replies to you",instructions:d}]}],"shuffleMembers",0,function(a){let d=new Set,e=[];for(let f=0;f<a;f++){let a,f=0;do a=(0,b.uniqueNamesGenerator)({dictionaries:[b.names],length:1,style:"capital"}),f++;while(d.has(a)&&f<100)d.add(a),e.push({name:a,avatarUrl:(0,c.serializeAvatarConfig)((0,c.randomConfig)())})}return e}])},212484,a=>{"use strict";var b=a.i(749314),c=a.i(75118),d=a.i(762276);a.s(["ScenarioPicker",0,function({selected:a,onSelect:e,onBrowseTemplates:f}){return(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)("h2",{className:"text-base font-semibold tracking-tight",children:"What will your company focus on?"}),f&&(0,b.jsxs)("button",{type:"button",onClick:f,className:"text-[11px] text-muted-foreground hover:text-foreground transition-colors underline underline-offset-2",children:["Browse templates ",(0,b.jsx)("span",{"aria-hidden":"true",children:"›"})]})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:d.SCENARIO_PRESETS.map(d=>(0,b.jsxs)("button",{onClick:()=>e(d.id),className:(0,c.cn)("flex flex-col items-start gap-1 rounded-lg border p-4 text-left transition-all hover:border-foreground/30",a===d.id?"border-foreground/50 bg-muted/50":"border-border"),children:[(0,b.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,b.jsx)("span",{className:"text-lg",children:d.icon}),(0,b.jsxs)("span",{className:"text-[10px] text-muted-foreground/70",children:[d.members.length," agent",d.members.length>1?"s":""]})]}),(0,b.jsx)("span",{className:"text-sm font-medium",children:d.label}),(0,b.jsx)("span",{className:"text-xs text-muted-foreground leading-tight",children:d.description})]},d.id))})]})}])},263233,a=>{"use strict";var b=a.i(749314),c=a.i(75118),d=a.i(732254),e=a.i(439882),f=a.i(877014);a.i(735132);var g=a.i(325848),h=a.i(354498),i=a.i(74414);let j={leader:"Lead",researcher:"Researcher",engineer:"Engineer",assistant:"Assistant"};a.s(["TeamPreview",0,function({members:a,runtimes:k,onShuffle:l,onAssignRuntime:m}){let n=k.length>1&&m;return(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)("h2",{className:"text-base font-semibold tracking-tight",children:"Your company"}),(0,b.jsxs)(d.Button,{variant:"ghost",size:"sm",onClick:l,className:"h-7 text-xs gap-1.5",children:[(0,b.jsx)(f.RefreshCw,{className:"size-3"}),"Shuffle"]})]}),(0,b.jsx)("div",{className:(0,c.cn)("grid gap-3 grid-cols-1",2===a.length&&"sm:grid-cols-2",3===a.length&&"sm:grid-cols-2 md:grid-cols-3",a.length>=4&&"sm:grid-cols-2 md:grid-cols-4"),children:a.map((a,c)=>{let d,f=a.avatarUrl?(0,g.parseAvatarUrl)(a.avatarUrl):null;return(0,b.jsxs)(e.Card,{size:"sm",className:"flex flex-col px-3 py-4 gap-2 h-full",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2.5",children:[f?(0,b.jsx)(g.AvatarRenderer,{config:f,size:36,className:"rounded-xl shrink-0"}):(0,b.jsx)("div",{className:"size-9 rounded-xl bg-muted flex items-center justify-center text-sm font-semibold shrink-0",children:a.name.charAt(0)}),(0,b.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,b.jsx)("span",{className:"text-sm font-medium",children:a.name}),(0,b.jsx)("span",{className:"text-[10px] text-muted-foreground bg-muted/60 px-1.5 py-0.5 rounded",children:j[a.role]})]})]}),(0,b.jsxs)("p",{className:"text-[10px] text-muted-foreground/70 font-mono truncate",children:[a.emailHandle||a.name.toLowerCase(),"@alook.ai"]}),(0,b.jsx)("p",{className:"text-[11px] text-muted-foreground leading-snug flex-1",children:a.description}),n&&(d=k.find(b=>b.id===a.runtimeId),(0,b.jsx)("div",{className:"mt-1",children:(0,b.jsxs)(h.Select,{value:a.runtimeId,onValueChange:a=>{a&&m(c,a)},children:[(0,b.jsx)(h.SelectTrigger,{className:"h-7 text-[11px]",children:(0,b.jsxs)("div",{className:"flex items-center gap-1.5 truncate",children:[d&&(0,b.jsx)(i.ProviderLogo,{provider:d.provider||"",className:"size-3 shrink-0"}),(0,b.jsx)("span",{className:"truncate",children:d?.provider||d?.runtime_mode||"Select"})]})}),(0,b.jsx)(h.SelectPopup,{children:k.map(a=>(0,b.jsx)(h.SelectItem,{value:a.id,children:a.provider||a.runtime_mode},a.id))})]})}))]},c)})})]})}])},927981,a=>a.a(async(b,c)=>{try{var d=a.i(749314),e=a.i(437199),f=a.i(207058),g=a.i(732254),h=a.i(334235),i=a.i(16831),j=a.i(940723),k=a.i(113046),l=a.i(388425),m=a.i(321932),n=a.i(671465),o=a.i(921584),p=a.i(454607),q=a.i(562706),r=a.i(561101),s=a.i(212484),t=a.i(263233),u=a.i(762276),v=a.i(588339),w=a.i(881503),x=b([p]);[p]=x.then?(await x)():x,a.s(["StudioOnboardingClient",0,function({workspaceId:a,workspaceSlug:b,workspaceName:c,initialTemplate:x}){let y=(0,f.useRouter)(),z=!a,[A,B]=(0,e.useState)(a),C=(0,e.useRef)(A);(0,e.useEffect)(()=>{C.current=A},[A]);let[D,E]=(0,e.useState)([]),[F,G]=(0,e.useState)(!!a),[H,I]=(0,e.useState)(x?x.baseScenario:null),[J,K]=(0,e.useState)(z||"Personal"===c?"":c),[L,M]=(0,e.useState)(null),[N,O]=(0,e.useState)(!1),[P,Q]=(0,e.useState)([]),[R,S]=(0,e.useState)(!1),[T,U]=(0,e.useState)(""),[V,W]=(0,e.useState)(!1),[X,Y]=(0,e.useState)(!1),[Z,$]=(0,e.useState)(!1),[_,aa]=(0,e.useState)(!1),ab=D.filter(a=>"online"===a.status),ac=ab.length>0,ad=new Set(ab.map(a=>a.daemon_id).filter(Boolean)).size;(0,e.useEffect)(()=>{A&&(0,v.listRuntimes)(A).then(E).catch(()=>{}).finally(()=>G(!1))},[A]);let ae=(0,e.useCallback)(a=>{let b=C.current;if("runtime.registered"===a.type){Y(!0);let c=a.workspaceId;c&&!b?(B(c),(0,v.listRuntimes)(c).then(E).catch(()=>{})):b&&(0,v.listRuntimes)(b).then(E).catch(()=>{})}else if("runtime.status"===a.type&&"online"===a.status){$(!0);let a=C.current;a&&(0,v.listRuntimes)(a).then(E).catch(()=>{})}},[]);(0,w.useUserWs)(ae),(0,e.useEffect)(()=>{let a=ab[0]?.id;a&&Q(b=>0!==b.length&&b.some(a=>!a.runtimeId)?b.map(b=>b.runtimeId?b:{...b,runtimeId:a}):b)},[ab]);let af=(0,e.useCallback)(async a=>{try{let b=await fetch("/api/studios/check-handles",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({names:a})});if(!b.ok)return null;return await b.json()}catch{return null}},[]);(0,e.useEffect)(()=>{if(!x||F||P.length>0)return;let a=(0,u.shuffleMembers)(x.members.length),b=ab[0]?.id||"",c=x.members.map((c,d)=>({name:a[d].name,role:c.role,description:c.description,instructions:c.instructions,avatarUrl:a[d].avatarUrl,runtimeId:b,relationship:c.relationship}));Q(c),af(c.map(a=>a.name)).then(a=>{a&&Q(b=>b.map(b=>{let c=a.find(a=>a.name===b.name);return c?{...b,emailHandle:c.handle}:b}))})},[x,F]);let ag=async a=>{I(a);let b=u.SCENARIO_PRESETS.find(b=>b.id===a),c=(0,u.shuffleMembers)(b.members.length),d=ab[0]?.id||"",e=b.members.map((a,b)=>({name:c[b].name,role:a.role,description:a.description,instructions:a.instructions,avatarUrl:c[b].avatarUrl,runtimeId:d,relationship:a.relationship}));Q(e);let f=await af(e.map(a=>a.name));f&&Q(a=>a.map(a=>{let b=f.find(b=>b.name===a.name);return b?{...a,emailHandle:b.handle}:a}))},ah=async()=>{let a=(0,u.shuffleMembers)(P.length),b=P.map((b,c)=>({...b,name:a[c].name,avatarUrl:a[c].avatarUrl,emailHandle:void 0}));Q(b);let c=await af(b.map(a=>a.name));c&&Q(a=>a.map(a=>{let b=c.find(b=>b.name===a.name);return b?{...a,emailHandle:b.handle}:a}))},ai=async()=>{if(J.trim()){O(!0),M(null);try{let a=A?`/api/studios/check-name?name=${encodeURIComponent(J.trim())}&workspace_id=${A}`:`/api/studios/check-name?name=${encodeURIComponent(J.trim())}`,b=await fetch(a),c=await b.json();M(c.available)}catch{M(null),o.toast.error("Failed to check name availability")}finally{O(!1)}}},aj=(0,e.useCallback)(async()=>{W(!0);try{let a=C.current;!a&&z&&(a=(await (0,v.createWorkspace)("Personal")).id,B(a));let b=await (0,v.createMachineToken)("cli",a||void 0);U(b.token)}catch{o.toast.error("Failed to generate token")}finally{W(!1)}},[z]),ak=async()=>{S(!0);try{if(!A){o.toast.error("Please connect a computer first"),S(!1);return}let a=await fetch("/api/studios",{method:"POST",headers:{"Content-Type":"application/json","X-Workspace-ID":A},body:JSON.stringify({name:J.trim()||void 0,scenario:H,members:P.map(a=>({name:a.name,role:a.role,runtime_id:a.runtimeId,description:a.description,instructions:a.instructions,avatar_url:a.avatarUrl||null,email_handle:a.emailHandle||void 0,relationship:a.relationship||void 0}))})});if(!a.ok){let b=await a.json();throw Error(b.error||"Failed to create company")}let b=await a.json();o.toast.success("Company created!"),y.push(`/w/${b.workspace.slug}/agents/${b.leader_agent_id}`)}catch(a){o.toast.error(a instanceof Error?a.message:"Failed to create company"),S(!1)}},al=z?J.trim()&&!0===L:!1!==L,am=H&&P.length>0&&P.every(a=>a.runtimeId)&&al&&(ac||X);return H?(0,d.jsxs)("div",{className:"relative flex min-h-dvh flex-col items-center p-6",children:[(0,d.jsxs)("div",{className:"absolute top-4 left-4 flex items-center gap-1",children:[(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:()=>y.push("/workspaces"),children:[(0,d.jsx)(n.LayoutGrid,{className:"size-3 mr-1.5"}),"Workspaces"]}),(0,d.jsx)("span",{className:"text-muted-foreground/40",children:"/"}),(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:()=>I(null),children:[(0,d.jsx)(m.ArrowLeft,{className:"size-3 mr-1.5"}),"Back"]})]}),(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",className:"absolute top-4 right-4 text-xs text-muted-foreground",onClick:async()=>{await (0,q.clearAllCache)(),(0,p.signOut)({fetchOptions:{onSuccess:()=>y.push("/sign-in")}})},children:[(0,d.jsx)(l.LogOut,{className:"size-3 mr-1.5"}),"Sign out"]}),(0,d.jsxs)("div",{className:"w-full max-w-3xl space-y-10 py-14",children:[(0,d.jsx)("div",{className:"text-center",children:(0,d.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",style:{fontFamily:"var(--font-news)"},children:"Build your company"})}),F?(0,d.jsx)("div",{className:"flex justify-center py-8",children:(0,d.jsx)(i.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h2",{className:"text-base font-semibold tracking-tight",children:"Company name"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.Input,{value:J,onChange:a=>{K(a.target.value),M(null)},placeholder:"e.g. Atlas Lab",className:"text-sm"}),(0,d.jsx)(g.Button,{variant:"outline",size:"sm",onClick:ai,disabled:!J.trim()||N,className:"shrink-0",children:N?(0,d.jsx)(i.Loader2,{className:"size-3 animate-spin"}):"Check"})]}),!1===L&&(0,d.jsxs)("p",{className:"text-xs text-red-500 flex items-center gap-1",children:[(0,d.jsx)(k.XCircle,{className:"size-3"})," Name is taken, try another"]}),(0,d.jsxs)("p",{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[!0===L&&(0,d.jsxs)("span",{className:"text-emerald-600 flex items-center gap-0.5",children:[(0,d.jsx)(j.CheckCircle2,{className:"size-3"})," Available"]}),!0===L&&(0,d.jsx)("span",{children:"·"}),z?(0,d.jsx)("span",{children:"Required — pick a name for your company."}):(0,d.jsx)("span",{children:"Optional — you can always rename later."})]})]}),(0,d.jsx)(t.TeamPreview,{members:P,runtimes:ab,onShuffle:ah,onAssignRuntime:(a,b)=>{Q(c=>c.map((c,d)=>d===a?{...c,runtimeId:b}:c))}}),(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsx)("h2",{className:"text-base font-semibold tracking-tight",children:"Connect a computer"}),ac?(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("p",{className:"text-xs text-emerald-600 flex items-center gap-1",children:[(0,d.jsx)(j.CheckCircle2,{className:"size-3"})," ",ad," computer",ad>1?"s":""," connected"]}),(0,d.jsx)("button",{type:"button",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:()=>aa(a=>!a),children:"Register another"})]}),_&&(0,d.jsx)("div",{className:"rounded-xl bg-muted/40 p-5",children:(0,d.jsx)(r.ConnectMachineSteps,{generatedToken:T,generatingToken:V,onGenerateToken:aj,registered:X,daemonOnline:Z})})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Your company needs a connected computer to run tasks."}),(0,d.jsx)("div",{className:"rounded-xl bg-muted/40 p-5",children:(0,d.jsx)(r.ConnectMachineSteps,{generatedToken:T,generatingToken:V,onGenerateToken:aj,registered:X,daemonOnline:Z})})]})]}),(0,d.jsx)(g.Button,{onClick:ak,disabled:!am||R,className:"w-full",size:"lg",children:R?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.Loader2,{className:"size-4 animate-spin mr-2"}),"Launching..."]}):z&&J.trim()&&!0!==L?"Check company name first":"Launch company"})]})]})]}):(0,d.jsxs)("div",{className:"relative flex min-h-dvh flex-col items-center justify-center px-6 pt-14 pb-6 sm:p-6",children:[(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",className:"absolute top-4 left-4 text-xs text-muted-foreground",onClick:()=>y.push("/workspaces"),children:[(0,d.jsx)(n.LayoutGrid,{className:"size-3 mr-1.5"}),"Workspaces"]}),(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",className:"absolute top-4 right-4 text-xs text-muted-foreground",onClick:async()=>{await (0,q.clearAllCache)(),(0,p.signOut)({fetchOptions:{onSuccess:()=>y.push("/sign-in")}})},children:[(0,d.jsx)(l.LogOut,{className:"size-3 mr-1.5"}),"Sign out"]}),(0,d.jsxs)("div",{className:"w-full max-w-3xl space-y-8",children:[(0,d.jsxs)("div",{className:"text-center space-y-2",children:[(0,d.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",style:{fontFamily:"var(--font-news)"},children:"What will your company do?"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"Pick a focus area. You can always add more agents later."})]}),(0,d.jsx)(s.ScenarioPicker,{selected:H,onSelect:ag,onBrowseTemplates:()=>y.push(A?`/templates?workspace_id=${A}`:"/templates")}),A&&(0,d.jsx)("div",{className:"flex justify-center pt-2",children:(0,d.jsx)("button",{type:"button",onClick:()=>{document.cookie=`skip_init=${A};path=/;max-age=86400`,y.push(`/w/${b}/home`)},className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Skip for now"})})]})]})}]),c()}catch(a){c(a)}},!1)];
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=_0sby7nn._.js.map
|