eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
1 lines • 1.66 kB
JavaScript
const POOLS={auth:[`Knocking on Vercel's door...`,`Checking your Vercel login...`,`Making sure Vercel remembers you...`,`Flashing your Vercel badge...`,`Whispering the secret Vercel handshake...`,`Confirming you are who Vercel thinks you are...`],teams:[`Rounding up your Vercel teams...`,`Summoning your Vercel teams...`,`Asking Vercel which teams you run with...`,`Counting heads across your Vercel teams...`,`Taking attendance of your Vercel teams...`,`Mapping out your Vercel teams...`],projects:[`Leafing through the projects in {detail}...`,`Fetching the projects in {detail}...`,`Seeing what {detail} has been building...`,`Dusting off the projects in {detail}...`,`Taking inventory of {detail}'s projects...`,`Peeking into {detail}'s project shelf...`],"project-name":[`Checking that name against {detail}...`,`Making sure {detail} has room for that name...`,`Seeing if that project name is taken in {detail}...`,`Calling dibs on that name in {detail}...`,`Scanning {detail} for name collisions...`],"project-detect":[`Checking the current Vercel project...`,`Seeing which Vercel project lives here...`,`Sniffing out the Vercel project in this directory...`,`Reading this directory's Vercel papers...`,`Looking up who deploys this directory...`]},lastPick=new Map;function whimsyFor(e,t,n=Math.random){let r=POOLS[e];if(r.length<=1){let e=r[0]??``;return t===void 0?e:e.replaceAll(`{detail}`,t)}let i=lastPick.get(e),a=i===void 0?r.length:r.length-1,o=Math.min(a-1,Math.floor(n()*a));i!==void 0&&o>=i&&(o+=1),lastPick.set(e,o);let s=r[o]??r[0]??``;return t===void 0?s:s.replaceAll(`{detail}`,t)}const WHIMSY_POOLS=POOLS;export{WHIMSY_POOLS,whimsyFor};