PageSourceSearch

https://www.recon.style/_assets/mcpSignupProvisioning-a184815258c0e42a.js

js recon.style collected 2026-10-07 15:16:48 UTC 14,162 bytes, 1 lines download raw bytes

1"use strict";(globalThis.rspackChunknotion_next=globalThis.rspackChunknotion_next||[]).push([[1564],{3299(e,t,a){function i(e){return"existingUser"===e.type}function r(e){return"newUser"===e.type}function n(e){return"newUser"===e.type||"existingUser"===e.type}function l(){return a(546605).Store.createValue({modalOpen:!1,tokenQuery:"",inviteTargets:[],inviteRole:"owner",table:"space",flowId:void 0,inputFocus:"invitee",emailMessage:""})}function o(){return a(546605).Store.createValue({modalOpen:!1,tokenQuery:"",inviteTargets:[],inviteRole:"editor",table:"block",flowId:void 0,inputFocus:"invitee",emailMessage:""})}function s(){return a(546605).Store.createValue({modalOpen:!1,tokenQuery:"",inviteTargets:[],inviteRole:"owner",table:a(832375).y75,flowId:void 0,inputFocus:"invitee",emailMessage:""})}let d=l();function c(e){return"space"===e.state.table}a.d(t,{Gz:()=>r,N2:()=>c,_P:()=>o,eL:()=>n,ju:()=>i,nc:()=>l,on:()=>s},{V0:d})},734563(e,t,a){a.d(t,{provisionMcpSignupWorkspace:()=>n}),a(533958),a(730330),a(139583);let i=(0,a(208318).t)(),r=new(a(412951)).RecordValueMap;async function n(e){let t=e.onboardingData.oauthAuthorizationParams;if(!t||"new-user"!==e.args.type)return!1;let i=(0,a(141280).Ud)(t),o=e.onboardingData.userStore.pointer,s=r.get(o);if(s)return s.authorizationUrl===i?s.promise:(await s.promise,n(e));let d=l(e);r.set(o,{authorizationUrl:i,promise:d});try{return await d}finally{r.delete(o)}}async function l(e){var t,r,n;let l,{environment:c,onboardingData:p,args:u}=e,f=p.oauthAuthorizationParams;if(u.disableRedirectUrl||c.mobileNative||"workspace_invite"===u.source||p.onboardingCompleted||p.inviteCode||p.redirectPageId||!f||!(0,a(938977).YH)(f.integrationId)||!(0,a(674248).fV)(f.state?(0,a(171784).nX)(f.state):void 0))return!1;let g=function(e){var t;if(e.onboardingCompleted)return;let i=null==(t=e.userSettingsStore.getSettings())||null==(t=t.mcp_signup_workspace)?void 0:t.space_id;if(!i)return;let r=e.userRootStore.getSpaceViewStores().find(e=>e.getSpaceId()===i),n=null==r?void 0:r.getSpaceStore(),l=null==n?void 0:n.getRole();if(n&&r&&l&&(0,a(642157).Km)(l))return{spaceStore:n,spaceViewStore:r}}(p),h=void 0!==g;if(!a(11661).ZO(p.userStore.id,f)||!g&&!p.canUserCreateSpace)return!1;let m=g?void 0:p.firstSpaceView,S=null==m?void 0:m.getSpaceStore(),v=null==S?void 0:S.getRole();if(m&&(!v||!(0,a(642157).Km)(v)))return!1;let w=f.state;if(!w)return!1;let x=await c.api.callApi({eventName:"verifyChatGptMcpSignup",environment:c,data:{state:w}});if("failed"===x.type||!x.data.eligible)return!1;let b=!0===x.data.internalTestUser;if(b){let{timeout:e}=await (0,a(326904).nQ)(1e3,a(218744).default.waitUntilStatsigReadyAsync());if(e||!a(218744).default.isStatsigReady())return!1}else if(!a(218744).default.isStatsigReady())return!1;if(!a(218744).default.checkGate({gateName:"survey_data_writes"}))return!1;a(11661).gk(p.userStore.id,f),b?a(11661).Kr(p.userStore.id,f):a(11661).IZ();let y=b?"chat":a(218744).default.getEligibleGroup({experimentId:"mcp_chatgpt_setup_prompt",defaultGroup:"control"});if("chat"!==y&&"database"!==y&&"chat_with_preview"!==y)return!1;if(null!=(t=p.userSettingsStore.getSettings())&&t.mcp_signup_workspace&&!g)throw Error("MCP signup workspace is not available yet");g||(S&&m?g={spaceStore:S,spaceViewStore:m}:(l=await d(p.userStore.getEmail(),p.userSettingsStore),g=await o({environment:c,onboardingData:p,source:u.source,planSelection:l})));let{spaceStore:_}=g,M=_.id,j=h||!(null!=(r=_.getSettings().space_survey_data)&&r.intent),A=null==(n=p.userSettingsStore.getSettings())?void 0:n.mcp_signup_workspace,{serverCommitResult:C}=(0,a(323517).createAndCommit)({environment:c,userAction:"provisionMcpSignupWorkspace",cellTarget:"main",canUndo:!1,perform:e=>{(0,a(862759).m)({userSettingsStore:p.userSettingsStore,data:{mcp_signup_workspace:(null==A?void 0:A.space_id)===M?A:{space_id:M}},transaction:e})}});await C,j&&(l??=await d(p.userStore.getEmail(),p.userSettingsStore),await s({environment:c,spaceStore:_,planSelection:l}));try{let e=await c.api.callCellCompatibleApi({environment:c,eventName:"ensureMcpSignupSidebar",cellNavigation:{cellId:void 0,recordId:M,spaceId:M},data:{spaceId:M,workspaceSetup:!0}});if("failed"===e.type)throw Error("Could not request MCP signup workspace setup",{cause:e.error});await e.handleRecordMapForResponsePromise}catch(e){i.error({from:"provisionMcpSignupWorkspace",type:"workspaceSetupRequestFailed",error:e})}let k=!p.userStore.getOnboardingCompleted();return await (0,a(567941).completeCurrentUserOnboarding)({environment:c,completion:"standard"}),k&&(0,a(6139).PU)(c),(0,a(141280).tZ)({environment:c,...f,userId:p.userStore.id,spaceId:M}),!0}async function o(e){let{environment:t,onboardingData:i,source:r,planSelection:n}=e,l=a(962299).A.getIntl(),o=i.userStore.getFullName(l),{spaceStore:s,spaceVie
1wStore:d}=await (0,a(727028).b)({environment:t,name:(0,a(56073).VR)(o?(0,a(56073).JR)(o,l):"",l),analyticsFrom:"onboarding",planType:"team"===n?"team":"personal",planSelection:n,mcpSignupGeneralTeamspace:"team"===n||void 0,userPersona:"unfilled",source:r});return{spaceStore:s,spaceViewStore:d}}async function s(e){let{environment:t,spaceStore:i,planSelection:r}=e,n=(0,a(88917).So)({maybeIntent:r,guessedIntentVersion:1,collectedFrom:"onboarding",collectedAt:Date.now()});if(!n)throw Error("Could not infer MCP signup survey intent");let{serverCommitResult:l}=(0,a(323517).createAndCommit)({environment:t,userAction:"provisionMcpSignupWorkspace",cellTarget:{spaceWithId:i.id},canUndo:!1,perform:e=>{(0,a(818116).R)(i,e,{space_survey_data:{...i.getSettings().space_survey_data,intent:n}})}});await l}async function d(e,t){var i,r;let n=e?null==(i=(0,a(801109).zN)(e))?void 0:i.toLowerCase():void 0;if(null!=n&&n.endsWith(".edu"))return"school";if(!n||(0,a(801109).Ff)(n))return"personal";await (0,a(326904).nQ)(2500,t.waitUntil(()=>{var e;return(null==(e=t.getSettings())?void 0:e.domain_type)!==void 0}));let l=null==(r=t.getSettings())?void 0:r.domain_type;return void 0===l||"personal"===l?"personal":"team"}},727028(e,t,a){a(533958);let i=(0,a(327219).YK)({goOnlineCreateSpace:{id:"spaceActions.createSpace.goOnlineCreateSpace",defaultMessage:"Please go online to create your workspace."},createSpaceError:{id:"spaceActions.createSpace.createSpaceError",defaultMessage:"Sorry! We could not create your workspace. Please try again."},loginToCreateSpace:{id:"spaceActions.createSpace.loginToCreateSpace",defaultMessage:"Please log in to create a workspace."}});async function r(e){let{environment:t,name:r,domain:n,emailDomains:l,analyticsFrom:o,icon:s,planType:d,planSelection:c,userPersona:p,shouldCreateUserPersonaTeam:u,shouldMakeUserPersonaTeamDefault:f,collaborativeIntent:g,source:h,mcpSignupGeneralTeamspace:m,aimnMobileOnboarding:S}=e,{id:v}=t.currentUser;if(v){let e=await t.api.callApi({eventName:"createSpace",environment:t,data:{name:r,domain:n,emailDomains:l,icon:s,planType:d,planSelection:c,initialPersona:p,shouldCreateUserPersonaTeam:u,shouldMakeUserPersonaTeamDefault:f,domainType:(0,a(904434).FX)(),collaborativeIntent:g,deviceId:await (0,a(128190).getExperimentDeviceId)(t),deviceType:t.device.deviceType,desktopTargetPlatform:t.device.desktopTargetPlatform,source:h,mcpSignupGeneralTeamspace:m,aimnMobileOnboarding:S,createSpaceVie
1w:!0}});if("failed"===e.type){if(e.offline)throw Error(a(962299).A.formatMessage(i.goOnlineCreateSpace),{cause:e.error});throw Error(a(962299).A.formatMessage(i.createSpaceError),{cause:e.error})}let{spaceId:v,teamId:w,inviteLinkCode:x,spaceViewPointer:b}=e.data,y=new(a(695906)).SpaceStore(t,{table:"space",id:v}),_=w?a(681735).h.createChildStore(y,{table:"team",id:w}):void 0;if(!b)throw Error(a(962299).A.formatMessage(i.createSpaceError));let M=new(a(994797)).SpaceViewStore(t,b);return t.device.isMobileNative&&a(773352).log({level:"info",from:"spaceActions",type:"SpaceSwitchingDebug",data:{message:"spaceActions.createSpace setting space"}}),a(192314).default.setState({...a(192314).default.state,sidebarSpaceStore:y,sidebarSpaceViewStore:M}),a(610340).qF(t,{from:o,planType:d,isProfessionalTeamUser:(0,a(904434).YD)(),domain_type:(0,a(904434).FX)()}),await a(803229).fD(t),{spaceViewStore:M,spaceStore:y,inviteLinkCode:x,teamStore:_}}throw Error(a(962299).A.formatMessage(i.loginToCreateSpace))}a.d(t,{b:()=>r})},85071(e,t,a){a.r(t),a(635790);let i={viewBox:"0 0 20 20",fittedViewBox:"2.12 3.02 15.83 14.41",svg:(0,a(440302).jsx)("path",{d:"M7.663 5.794a2.77 2.77 0 1 1-5.539 0 2.77 2.77 0 0 1 5.539 0m-1.25 0a1.52 1.52 0 1 0-3.039 0 1.52 1.52 0 0 0 3.039 0m2.497-.55a.55.55 0 1 0 0 1.1h.098a.55.55 0 0 0 0-1.1zm2.054 0a.55.55 0 1 0 0 1.1h.098a.55.55 0 0 0 0-1.1zm2.602 4.329a.55.55 0 0 0-.952-.552l-.049.085a.55.55 0 0 0 .952.55zm-6.208-.552a.55.55 0 0 0-.952.552l.049.084a.55.55 0 0 0 .952-.551zm5.182 2.324a.55.55 0 0 0-.952-.552l-.05.085a.55.55 0 1 0 .953.551zm-4.156-.551a.55.55 0 0 0-.951.55l.048.085a.55.55 0 1 0 .952-.551zm6.722-2.231a2.77 2.77 0 1 0 0-5.538 2.77 2.77 0 0 0 0 5.538m0-1.25a1.52 1.52 0 1 1 0-3.038 1.52 1.52 0 0 1 0 3.038m-2.336 7.343a2.77 2.77 0 1 1-5.54 0 2.77 2.77 0 0 1 5.54 0m-1.25 0a1.52 1.52 0 1 0-3.04 0 1.52 1.52 0 0 0 3.04 0"})},r=(0,a(104509).wt)("integration",i,"default");a.d(t,{},{iconDefinition:i,integrationIcon:r})},986306(e,t,a){let i=(0,a(104509).xh)("canva",{default:{loader:()=>a.e(63035).then(a.bind(a,53360))}});a.d(t,{},{E:i})},449685(e,t,a){let i=(0,a(104509).xh)("claude",{default:{loader:()=>Promise.resolve().then(a.bind(a,756367))}});a.d(t,{},{j:i})},239698(e,t,a){let i=(0,a(104509).xh)("composio",{default:{loader:()=>a.e(31983).then(a.bind(a,374464))}});a.d(t,{},{g:i})},897799(e,t,a){a.r(t),a(635790);var i=a(440302);let r={viewBox:"0 0 20 20",fittedViewBox:"3.12 2.13 13.75 15.73",svg:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("g",{className:"logo-light-mode",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_16020_205)",children:[(0,i.jsx)("path",{fill:"#757575",d:"m9.996 9.99 6.806 3.93a.5.5 0 0 1-.177.177l-6.362 3.673a.53.53 0 0 1-.534 0l-6.361-3.673a.5.5 0 0 1-.178-.178z"}),(0,i.jsx)("path",{fill:"#525252",d:"M9.996 2.139V9.99L3.19 13.92a.5.5 0 0 1-.065-.243V6.303c0-.173.092-.333.243-.42l6.36-3.673a.53.53 0 0 1 .268-.071"}),(0,i.jsx)("path",{fill:"#404040",d:"M16.802 6.06a.5.5 0 0 0-.178-.177L10.263 2.21a.53.53 0 0 0-.267-.071V9.99l6.806 3.93a.5.5 0 0 0 .065-.243V6.303a.5.5 0 0 0-.065-.242"}),(0,i.jsx)("path",{fill:"#D9D9D9",d:"M16.326 6.336a.23.23 0 0 1 0 .227l-6.178 10.7c-.042.073-.152.043-.152-.04v-7.051a.3.3 0 0 0-.043-.158z"}),(0,i.jsx)("path",{fill:"#fff",d:"m16.326 6.335-6.372 3.68a.3.3 0 0 0-.116-.116L3.732 6.373c-.072-.041-.043-.152.04-.152H16.13c.087 0 .159.048.197.114"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_16020_205",children:(0,i.jsx)("path",{fill:"#fff",d:"M3.125 2.139h13.75v15.723H3.125z"})})})]}),(0,i.jsxs)("g",{className:"logo-dark-mode",children:[(0,i.jsx)("g",{clipPath:"url(#clip0_16020_213)",children:(0,i.jsxs)("g",{clipPath:"url(#clip1_16020_213)",children:[(0,i.jsx)("path",{fill:"#6E6E6E",d:"m9.996 9.99 6.806 3.93a.5.5 0 0 1-.177.177l-6.362 3.673a.53.53 0 0 1-.534 0l-6.361-3.673a.5.5 0 0 1-.178-.178z"}),(0,i.jsx)("path",{fill:"#4A4A4A",d:"M9.996 2.139V9.99L3.19 13.92a.5.5 0 0 1-.065-.243V6.303c0-.173.092-.333.243-.42l6.36-3.673a.53.53 0 0 1 .268-.071"}),(0,i.jsx)("path",{fill:"#383838",d:"M16.802 6.06a.5.5 0 0 0-.178-.177L10.263 2.21a.53.53 0 0 0-.267-.071V9.99l6.806 3.93a.5.5 0 0 0 .065-.243V6.303a.5.5 0 0 0-.065-.242"}),(0,i.jsx)("path",{fill:"#C9C9C9",d:"M16.326 6.336a.23.23 0 0 1 0 .227l-6.178 10.7c-.042.073-.152.043-.152-.04v-7.051a.3.3 0 0 0-.043-.158z"}),(0,i.jsx)("path",{fill:"#fff",d:"m16.326 6.335-6.372 3.68a.3.3 0 0 0-.116-.116L3.732 6.373c-.072-.041-.043-.152.04-.152H16.13c.087 0 .159.048.197.114"})]})}),(0,i.jsxs)("defs",{children:[(0,i.jsx)("clipPath",{id:"clip0_16020_213",children:(0,i.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})}),(0,i.jsx)("clipPath",{id:"clip1_16020_213",children:(0,i.jsx)("path",{fill:"#fff",d:"M3.125 2.139h13.75v15.723H3.125z"})})]})]})]})},n=(0,a(104509).wt)("cursor",r,"default");a.d(t,{},{cursorIcon:n,iconDefinition:r})},545875(e,t,a){let i=(0,a(104509).xh)("devinAi",{default:{loader:()=>a.e(3250).then(a.bind(a,667597))}});a.d(t,{},{h:i})},92915(e,t,a){a.r(t),a(635790);var i=a(440302);let r={viewBox:"0 0 20 20",fittedViewBox:"4.91 2.37 10.17 15.25",svg:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_16020_305)",children:[(0,i.jsx)("path",{fill:"#1ABCFE",d:"M10 10a2.516 2.516 0 1 1 5.032 0A2.516 2.516 0 0 1 10 10"}),(0,i.jsx)("path",{fill:"#0ACF83",d:"M4.968 15.032a2.516 2.516 0 0 1 2.516-2.516H10v2.515a2.516 2.516 0 1 1-5.032 0"}),(0,i.jsx)("path",{fill:"#FF7262",d:"M10 2.453v5.031h2.516a2.516 2.516 0 1 0 0-5.031z"}),(0,i.jsx)("path",{fill:"#F24E1E",d:"M4.968 4.968a2.516 2.516 0 0 0 2.516 2.516H10V2.453H7.484a2.516 2.516 0 0 0-2.516 2.515"}),(0,i.jsx)("path",{fill:"#A259FF",d:"M4.968 10a2.516 2.516 0 0 0 2.516 2.516H10V7.484H7.484A2.516 2.516 0 0 0 4.968 10"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_16020_305",children:(0,i.jsx)("path",{fill:"#fff",d:"M4.917 2.375h10.167v15.25H4.917z"})})})]})},n=(0,a(104509).wt)("figma",r,"default");a.d(t,{},{figmaIcon:n,iconDefinition:r})},628009(e,t,a){let i=(0,a(104509).xh)("figma",{default:{loader:()=>
1a.e(45320).then(a.bind(a,92915))},tintable:{loader:()=>a.e(45320).then(a.bind(a,706667))}});a.d(t,{},{j:i})},261112(e,t,a){let i=(0,a(104509).xh)("grok",{default:{loader:()=>a.e(42009).then(a.bind(a,593142))}});a.d(t,{},{o:i})},208302(e,t,a){let i=(0,a(104509).xh)("hubSpot",{default:{loader:()=>a.e(25063).then(a.bind(a,488924))}});a.d(t,{},{Q:i})},832189(e,t,a){let i=(0,a(104509).xh)("make",{default:{loader:()=>a.e(10900).then(a.bind(a,805159))}});a.d(t,{},{L:i})},10951(e,t,a){let i=(0,a(104509).xh)("mistralAi",{default:{loader:()=>a.e(98086).then(a.bind(a,408529))},tintable:{loader:()=>a.e(98086).then(a.bind(a,358777))}});a.d(t,{},{f:i})},392241(e,t,a){let i=(0,a(104509).xh)("openAi",{default:{loader:()=>a.e(67252).then(a.bind(a,776523))}});a.d(t,{},{P:i})},488942(e,t,a){let i=(0,a(104509).xh)("zapier",{default:{loader:()=>a.e(61063).then(a.bind(a,716572))}});a.d(t,{},{M:i})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.