ai-wrapped 1.17.0 → 1.18.0
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/dist/assets/Aurora-gPgXaQaG.js +145 -0
- package/dist/assets/{BotAvatar-BrXtxBrV.js → BotAvatar-Bur2fckZ.js} +1 -1
- package/dist/assets/{CrystalizedBall-BzXk9myo.js → CrystalizedBall-KWGPAJYI.js} +1 -1
- package/dist/assets/DarkVeil-BgGKjyIE.js +164 -0
- package/dist/assets/{EchoText-BtJ6HW6O.js → EchoText-BrB32uyp.js} +1 -1
- package/dist/assets/FaultyTerminal-DDw4c9b4.js +391 -0
- package/dist/assets/Galaxy-Dgc9RDEH.js +197 -0
- package/dist/assets/{GlowCursor-BSWGMbnk.js → GlowCursor-BZCHElFf.js} +1 -1
- package/dist/assets/{Heatwave-CIypoA8F.js → Heatwave-CJzverw9.js} +1 -1
- package/dist/assets/Iridescence-BvMXvo4z.js +103 -0
- package/dist/assets/LetterGlitch-BfoWmQyO.js +94 -0
- package/dist/assets/{LightTunnel-C1cXuS0H.js → LightTunnel-Dig-ybUd.js} +1 -1
- package/dist/assets/{LineSpiral-D69IH5lt.js → LineSpiral-BORPdW5M.js} +1 -1
- package/dist/assets/Plasma-CHJExTBw.js +113 -0
- package/dist/assets/Prism-19JE2gzg.js +78 -0
- package/dist/assets/{SideRays-CHH7EHLs.js → SideRays-DcOr-gOm.js} +1 -1
- package/dist/assets/{SlicedWaves-C6uIGivH.js → SlicedWaves-BUD_9aqV.js} +1 -1
- package/dist/assets/{SplitFlapText-Dg3GITuu.js → SplitFlapText-D5KE4_3P.js} +1 -1
- package/dist/assets/{Strands-jPhJ4suW.js → Strands-CtNx3Esy.js} +1 -1
- package/dist/assets/{TechText-B_xiUFyT.js → TechText-BtSyI_Dm.js} +1 -1
- package/dist/assets/Threads-H6WESD1W.js +124 -0
- package/dist/assets/index-BstFwFxc.js +161 -0
- package/dist/assets/index-yPH2MNv-.css +1 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/skills/ai-wrapped/SKILL.md +3 -1
- package/src/bun/aggregator.ts +7 -9
- package/src/bun/discovery/claude.ts +29 -7
- package/src/bun/headless.ts +2 -0
- package/src/bun/normalizer.ts +12 -0
- package/src/bun/parsers/additional.ts +26 -2
- package/src/bun/parsers/claude.ts +57 -0
- package/src/bun/parsers/codex.ts +28 -17
- package/src/bun/parsers/promptCounts.test.ts +53 -0
- package/src/bun/promptWords.test.ts +17 -0
- package/src/bun/promptWords.ts +39 -0
- package/src/bun/queries.ts +4 -0
- package/src/bun/scan.test.ts +64 -0
- package/src/bun/scan.ts +101 -38
- package/src/bun/store.ts +49 -2
- package/src/shared/buildPayload.ts +1 -0
- package/src/shared/schema.ts +2 -0
- package/src/shared/session-types.ts +4 -0
- package/src/shared/shareData.ts +22 -2
- package/dist/assets/index-C2mWEzOU.js +0 -161
- package/dist/assets/index-Dh3d1sc7.css +0 -1
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import{r as R,m as de,j as J}from"./index-BstFwFxc.js";const N=5,ee=3,pe=2.4,ve=`#version 300 es
|
|
2
|
+
in vec2 aPosition;
|
|
3
|
+
void main() {
|
|
4
|
+
gl_Position = vec4(aPosition, 0.0, 1.0);
|
|
5
|
+
}`,xe=`#version 300 es
|
|
6
|
+
precision highp float;
|
|
7
|
+
precision highp int;
|
|
8
|
+
uniform vec2 uResolution;
|
|
9
|
+
uniform float uTime;
|
|
10
|
+
uniform vec3 uStops[${N}];
|
|
11
|
+
uniform int uStopCount;
|
|
12
|
+
uniform float uAmplitude;
|
|
13
|
+
uniform float uBlend;
|
|
14
|
+
uniform float uHeight;
|
|
15
|
+
uniform float uScale;
|
|
16
|
+
uniform float uGlow;
|
|
17
|
+
uniform float uBrightness;
|
|
18
|
+
uniform int uLayers;
|
|
19
|
+
uniform float uFlip;
|
|
20
|
+
uniform vec3 uPointer;
|
|
21
|
+
uniform float uReveal;
|
|
22
|
+
uniform float uOpacity;
|
|
23
|
+
uniform float uLightMode;
|
|
24
|
+
out vec4 outColor;
|
|
25
|
+
|
|
26
|
+
vec3 permute(vec3 x) {
|
|
27
|
+
return mod(((x * 34.0) + 1.0) * x, 289.0);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
float snoise(vec2 v) {
|
|
31
|
+
const vec4 C = vec4(0.211324865405187, 0.366025403784439, -0.577350269189626, 0.024390243902439);
|
|
32
|
+
vec2 i = floor(v + dot(v, C.yy));
|
|
33
|
+
vec2 x0 = v - i + dot(i, C.xx);
|
|
34
|
+
vec2 i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);
|
|
35
|
+
vec4 x12 = x0.xyxy + C.xxzz;
|
|
36
|
+
x12.xy -= i1;
|
|
37
|
+
i = mod(i, 289.0);
|
|
38
|
+
vec3 p = permute(permute(i.y + vec3(0.0, i1.y, 1.0)) + i.x + vec3(0.0, i1.x, 1.0));
|
|
39
|
+
vec3 m = max(0.5 - vec3(dot(x0, x0), dot(x12.xy, x12.xy), dot(x12.zw, x12.zw)), 0.0);
|
|
40
|
+
m = m * m;
|
|
41
|
+
m = m * m;
|
|
42
|
+
vec3 x = 2.0 * fract(p * C.www) - 1.0;
|
|
43
|
+
vec3 h = abs(x) - 0.5;
|
|
44
|
+
vec3 ox = floor(x + 0.5);
|
|
45
|
+
vec3 a0 = x - ox;
|
|
46
|
+
m *= 1.79284291400159 - 0.85373472095314 * (a0 * a0 + h * h);
|
|
47
|
+
vec3 g;
|
|
48
|
+
g.x = a0.x * x0.x + h.x * x0.y;
|
|
49
|
+
g.yz = a0.yz * x12.xz + h.yz * x12.yw;
|
|
50
|
+
return 130.0 * dot(m, g);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
float smootherstep(float edge0, float edge1, float x) {
|
|
54
|
+
float t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
|
|
55
|
+
return t * t * t * (t * (t * 6.0 - 15.0) + 10.0);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
vec3 oklabToLinear(vec3 c) {
|
|
59
|
+
float l = c.x + 0.3963377774 * c.y + 0.2158037573 * c.z;
|
|
60
|
+
float m = c.x - 0.1055613458 * c.y - 0.0638541728 * c.z;
|
|
61
|
+
float s = c.x - 0.0894841775 * c.y - 1.2914855480 * c.z;
|
|
62
|
+
l = l * l * l;
|
|
63
|
+
m = m * m * m;
|
|
64
|
+
s = s * s * s;
|
|
65
|
+
return vec3(
|
|
66
|
+
4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,
|
|
67
|
+
-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s,
|
|
68
|
+
-0.0041960863 * l - 0.7034186147 * m + 1.7076147010 * s
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
vec3 toSrgb(vec3 c) {
|
|
73
|
+
c = clamp(c, 0.0, 1.0);
|
|
74
|
+
return mix(c * 12.92, 1.055 * pow(c, vec3(1.0 / 2.4)) - 0.055, step(0.0031308, c));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
vec3 ramp(float t) {
|
|
78
|
+
float x = clamp(t, 0.0, 1.0) * float(uStopCount - 1);
|
|
79
|
+
int i = int(min(floor(x), float(uStopCount - 2)));
|
|
80
|
+
float f = x - float(i);
|
|
81
|
+
f = f * f * (3.0 - 2.0 * f);
|
|
82
|
+
vec3 lch = mix(uStops[i], uStops[i + 1], f);
|
|
83
|
+
lch.x = mix(lch.x, min(lch.x, 0.7), uLightMode);
|
|
84
|
+
return toSrgb(oklabToLinear(vec3(lch.x, lch.y * cos(lch.z), lch.y * sin(lch.z))));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
float hash(vec2 p) {
|
|
88
|
+
p = fract(p * vec2(123.34, 456.21));
|
|
89
|
+
p += dot(p, p + 45.32);
|
|
90
|
+
return fract(p.x * p.y);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
void main() {
|
|
94
|
+
vec2 frag = gl_FragCoord.xy;
|
|
95
|
+
float y = 1.0 - frag.y / uResolution.y;
|
|
96
|
+
y = mix(y, 1.0 - y, uFlip);
|
|
97
|
+
float u = frag.x / uResolution.x;
|
|
98
|
+
float X = (frag.x - uResolution.x * 0.5) / uResolution.y;
|
|
99
|
+
float t = uTime;
|
|
100
|
+
float reach = uPointer.z * exp(-pow((X - uPointer.x) / 0.38, 2.0));
|
|
101
|
+
|
|
102
|
+
vec3 glow = vec3(0.0);
|
|
103
|
+
float cover = 0.0;
|
|
104
|
+
for (int k = 0; k < ${ee}; k++) {
|
|
105
|
+
if (k >= uLayers) break;
|
|
106
|
+
float layer = float(k);
|
|
107
|
+
float seed = layer * 13.7;
|
|
108
|
+
float pace = t * (1.0 - layer * 0.18);
|
|
109
|
+
float warp = snoise(vec2(X * 0.45 * uScale + pace * 0.02 + seed, pace * 0.05 + seed));
|
|
110
|
+
float wave = snoise(vec2(X * 0.75 * uScale + warp * 0.35 - pace * 0.03 + seed, pace * 0.07 - seed)) * 0.72
|
|
111
|
+
+ snoise(vec2(X * 1.6 * uScale + warp * 0.5 + pace * 0.04 - seed, pace * 0.1 + seed * 0.5)) * 0.28;
|
|
112
|
+
float hem = uHeight + layer * 0.07 + wave * 0.15 * uAmplitude;
|
|
113
|
+
hem += reach * 0.08 * (layer < 0.5 ? 1.0 : 0.4);
|
|
114
|
+
hem = mix(-0.25, hem, uReveal);
|
|
115
|
+
|
|
116
|
+
float soft = (0.04 + uBlend * 0.16) * (1.0 + layer * 0.9);
|
|
117
|
+
float rise = hem - y;
|
|
118
|
+
float low = -soft - uGlow * 0.14;
|
|
119
|
+
float high = 0.26 + soft * 0.6;
|
|
120
|
+
float body = pow(smootherstep(low, high, rise), 1.5 + uGlow * 0.6);
|
|
121
|
+
float lobes = 0.86 + 0.14 * snoise(vec2(X * 0.9 * uScale - pace * 0.025 + seed, y * 0.3 + pace * 0.04));
|
|
122
|
+
float alpha = body * lobes * (layer < 0.5 ? 1.0 : 0.32 / layer);
|
|
123
|
+
alpha = clamp(alpha * (1.0 + reach * 0.25 * smootherstep(0.9, 0.0, abs(y - hem))), 0.0, 1.0);
|
|
124
|
+
|
|
125
|
+
vec3 tint = ramp(u + 0.05 * sin(pace * 0.08 + layer * 2.3) + layer * 0.1 + max(rise, 0.0) * 0.05);
|
|
126
|
+
glow = 1.0 - (1.0 - glow) * (1.0 - tint * alpha);
|
|
127
|
+
cover = 1.0 - (1.0 - cover) * (1.0 - alpha);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
float fade = smootherstep(0.0, 0.7, uReveal) * uOpacity;
|
|
131
|
+
float strength = clamp(uBrightness, 0.0, 2.0);
|
|
132
|
+
glow *= fade * min(strength, 1.0);
|
|
133
|
+
cover *= fade * min(strength, 1.0);
|
|
134
|
+
glow = 1.0 - pow(1.0 - glow, vec3(max(strength, 1.0)));
|
|
135
|
+
float dither = (hash(frag) - 0.5) / 255.0;
|
|
136
|
+
|
|
137
|
+
if (uLightMode > 0.5) {
|
|
138
|
+
vec3 tint = cover > 0.0001 ? glow / cover : vec3(0.0);
|
|
139
|
+
cover *= smootherstep(0.0, 0.25, cover);
|
|
140
|
+
float alpha = cover * 0.7;
|
|
141
|
+
outColor = vec4(tint * alpha + dither, clamp(alpha + dither, 0.0, 1.0));
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
outColor = vec4(glow + dither, clamp(cover + dither, 0.0, 1.0));
|
|
145
|
+
}`,P=(t,s,f)=>Math.min(f,Math.max(s,t)),ye=t=>{const[s,f,r]=t.map(S=>S<=.04045?S/12.92:Math.pow((S+.055)/1.055,2.4)),u=Math.cbrt(.4122214708*s+.5363325363*f+.0514459929*r),h=Math.cbrt(.2119034982*s+.6806995451*f+.1073969566*r),p=Math.cbrt(.0883024619*s+.2817188376*f+.6299787005*r),m=[.2104542553*u+.793617785*h-.0040720468*p,1.9779984951*u-2.428592205*h+.4505937099*p,.0259040371*u+.7827717662*h-.808675766*p];return[m[0],Math.hypot(m[1],m[2]),Math.atan2(m[2],m[1])]},ge=t=>{const s=t.findIndex(u=>u[1]>.02);let r=s===-1?0:t[s][2];return t.map(u=>{let h=u[1]>.02?u[2]:r;for(;h-r>Math.PI;)h-=Math.PI*2;for(;h-r<-Math.PI;)h+=Math.PI*2;return r=h,[u[0],u[1],h]})},Z=(t,s,f)=>{const r=t.createShader(s);return r?(t.shaderSource(r,f),t.compileShader(r),t.getShaderParameter(r,t.COMPILE_STATUS)?r:(t.deleteShader(r),null)):null},we=t=>{const s=Z(t,t.VERTEX_SHADER,ve),f=Z(t,t.FRAGMENT_SHADER,xe),r=t.createProgram();if(!s||!f||!r)return null;if(t.attachShader(r,s),t.attachShader(r,f),t.bindAttribLocation(r,0,"aPosition"),t.linkProgram(r),t.deleteShader(s),t.deleteShader(f),!t.getProgramParameter(r,t.LINK_STATUS))return t.deleteProgram(r),null;const u={},h=t.getProgramParameter(r,t.ACTIVE_UNIFORMS);for(let p=0;p<h;p++){const m=t.getActiveUniform(r,p);m&&(u[m.name.replace("[0]","")]=t.getUniformLocation(r,m.name))}return{program:r,uniforms:u}},Me=({colorStops:t=["#5227FF","#7cff67","#5227FF"],amplitude:s=1,blend:f=.5,speed:r=1,time:u,height:h=.45,scale:p=1,glow:m=.6,brightness:S=1,layers:te=1,direction:oe="top",mouseInteraction:re=!0,intro:ne=!0,opacity:ae=1,lightMode:ie=!1,paused:ce=!1,dpr:se,className:le="",style:ue})=>{const V=R.useRef(null),G=R.useRef(null),_=R.useRef(null),A=(Array.isArray(t)?t:[]).filter(Boolean).map(String).slice(0,N),U={stops:A.length>=2?A:A.length===1?[A[0],A[0]]:["#5227FF","#7cff67"],amplitude:Math.max(0,s),blend:P(f,0,1),speed:r,time:u,height:P(h,0,1),scale:Math.max(.1,p),glow:Math.max(0,m),brightness:Math.max(0,S),layers:P(Math.round(te),1,ee),flip:oe==="bottom"?1:0,mouseInteraction:re,intro:ne,opacity:P(ae,0,1),lightMode:ie,paused:ce,dpr:se},v=R.useRef(U);return v.current=U,R.useEffect(()=>{const y=V.current,x=G.current,e=x?.getContext("webgl2",{alpha:!0,premultipliedAlpha:!0,antialias:!1,depth:!1,stencil:!1});if(!y||!x||!e)return;const F=we(e);if(!F)return;const l=F.uniforms,D=e.createBuffer(),O=e.createVertexArray();e.bindVertexArray(O),e.bindBuffer(e.ARRAY_BUFFER,D),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),e.STATIC_DRAW),e.enableVertexAttribArray(0),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0);const g=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}),C=de().matches,H=new Map,fe=o=>{const n=H.get(o);if(n)return n;let c=[1,1,1];if(g){g.clearRect(0,0,1,1),g.fillStyle="#ffffff",g.fillStyle=o,g.fillRect(0,0,1,1);const[d,L,B]=g.getImageData(0,0,1,1).data;c=[d/255,L/255,B/255]}return H.set(o,c),c},j=new Float32Array(N*3),w={width:1,height:1},i={x:0,y:0,inside:!1},a={clock:0,px:0,py:.5,reach:0,reveal:v.current.intro&&!C?0:1};let b=0,M=0,T=!0;const k=()=>{const o=v.current;ge(o.stops.map(c=>ye(fe(c)))).forEach((c,d)=>j.set(c,d*3));const n=a.reveal;e.viewport(0,0,x.width,x.height),e.useProgram(F.program),e.bindVertexArray(O),e.uniform2f(l.uResolution,x.width,x.height),e.uniform1f(l.uTime,o.time!==void 0?o.time*o.speed*.1:a.clock),e.uniform3fv(l.uStops,j),e.uniform1i(l.uStopCount,o.stops.length),e.uniform1f(l.uAmplitude,o.amplitude),e.uniform1f(l.uBlend,o.blend),e.uniform1f(l.uHeight,o.height),e.uniform1f(l.uScale,o.scale),e.uniform1f(l.uGlow,o.glow),e.uniform1f(l.uBrightness,o.brightness),e.uniform1i(l.uLayers,o.layers),e.uniform1f(l.uFlip,o.flip),e.uniform3f(l.uPointer,a.px,a.py,a.reach),e.uniform1f(l.uReveal,1-Math.pow(1-n,3)),e.uniform1f(l.uOpacity,o.opacity),e.uniform1f(l.uLightMode,o.lightMode?1:0),e.drawArrays(e.TRIANGLES,0,3)},Y=o=>{if(b=0,!T||document.hidden)return;const n=v.current,c=M?P((o-M)/1e3,5e-4,.05):1/60;if(M=o,n.paused){a.reveal=1,k(),M=0;return}const d=C?0:1;a.clock+=c*n.speed*d;const L=n.mouseInteraction&&i.inside&&!C,B=1-Math.exp(-c/.6);if(L){const he=(i.x-w.width/2)/w.height,me=n.flip?1-i.y/w.height:i.y/w.height;a.px+=(he-a.px)*B,a.py+=(me-a.py)*B}a.reach+=((L?1:0)-a.reach)*(1-Math.exp(-c/(L?.9:1.4))),!n.intro||C?a.reveal=1:a.reveal<1&&(a.reveal=Math.min(1,a.reveal+c/pe)),k(),b=requestAnimationFrame(Y)},E=()=>{!b&&T&&!document.hidden&&(b=requestAnimationFrame(Y))},X=()=>{const o=v.current,n=Math.max(1,y.clientWidth),c=Math.max(1,y.clientHeight),d=Math.min(o.dpr||window.devicePixelRatio||1,2);w.width=n,w.height=c,x.width=Math.max(1,Math.round(n*d)),x.height=Math.max(1,Math.round(c*d)),k(),E()},z=o=>{const n=y.getBoundingClientRect();i.x=o.clientX-n.left,i.y=o.clientY-n.top;const c=i.inside;if(i.inside=i.x>=0&&i.y>=0&&i.x<=n.width&&i.y<=n.height,i.inside&&!c){const d=v.current;a.px=(i.x-n.width/2)/Math.max(1,n.height),a.py=d.flip?1-i.y/Math.max(1,n.height):i.y/Math.max(1,n.height)}v.current.paused||E()},I=o=>{o.pointerType!=="mouse"&&(i.inside=!1)},q=()=>{i.inside=!1},W=()=>{M=0,E()},$=new ResizeObserver(X);$.observe(y);const K=new IntersectionObserver(o=>{T=o.some(n=>n.isIntersecting),T&&(M=0,E())});K.observe(y),window.addEventListener("pointermove",z,{passive:!0}),window.addEventListener("pointerdown",z,{passive:!0}),window.addEventListener("pointerup",I,{passive:!0}),window.addEventListener("pointercancel",I,{passive:!0}),document.documentElement.addEventListener("pointerleave",q),document.addEventListener("visibilitychange",W),X();let Q=v.current.dpr;return _.current=()=>{const o=v.current;if(o.dpr!==Q){Q=o.dpr,X();return}b||k(),E()},()=>{cancelAnimationFrame(b),_.current=null,$.disconnect(),K.disconnect(),window.removeEventListener("pointermove",z),window.removeEventListener("pointerdown",z),window.removeEventListener("pointerup",I),window.removeEventListener("pointercancel",I),document.documentElement.removeEventListener("pointerleave",q),document.removeEventListener("visibilitychange",W),e.deleteProgram(F.program),e.deleteBuffer(D),e.deleteVertexArray(O),x.isConnected||e.getExtension("WEBGL_lose_context")?.loseContext()}},[]),R.useEffect(()=>{_.current?.()}),J.jsx("div",{ref:V,className:["relative h-full w-full overflow-hidden",le].filter(Boolean).join(" "),style:ue,children:J.jsx("canvas",{ref:G,className:"absolute inset-0 block h-full w-full","aria-hidden":"true"})})};export{Me as default};
|