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(t,n,r=Math.random){let i=POOLS[t];if(i.length<=1){let e=i[0]??``;return n===void 0?e:e.replaceAll(`{detail}`,n)}let a=lastPick.get(t),o=a===void 0?i.length:i.length-1,s=Math.min(o-1,Math.floor(r()*o));a!==void 0&&s>=a&&(s+=1),lastPick.set(t,s);let c=i[s]??i[0]??``;return n===void 0?c:c.replaceAll(`{detail}`,n)}const WHIMSY_POOLS=POOLS;export{WHIMSY_POOLS,whimsyFor};