agent-recall-mcp 3.5.2 → 3.5.4
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/README.md +254 -143
- package/dist/build-server.d.ts +28 -0
- package/dist/build-server.d.ts.map +1 -0
- package/dist/build-server.js +55 -0
- package/dist/build-server.js.map +1 -0
- package/dist/http/activity.d.ts +60 -0
- package/dist/http/activity.d.ts.map +1 -0
- package/dist/http/activity.js +254 -0
- package/dist/http/activity.js.map +1 -0
- package/dist/http/alerts.d.ts +84 -0
- package/dist/http/alerts.d.ts.map +1 -0
- package/dist/http/alerts.js +213 -0
- package/dist/http/alerts.js.map +1 -0
- package/dist/http/cli.d.ts +3 -0
- package/dist/http/cli.d.ts.map +1 -0
- package/dist/http/cli.js +515 -0
- package/dist/http/cli.js.map +1 -0
- package/dist/http/export-tar.d.ts +23 -0
- package/dist/http/export-tar.d.ts.map +1 -0
- package/dist/http/export-tar.js +264 -0
- package/dist/http/export-tar.js.map +1 -0
- package/dist/http/federation.d.ts +45 -0
- package/dist/http/federation.d.ts.map +1 -0
- package/dist/http/federation.js +185 -0
- package/dist/http/federation.js.map +1 -0
- package/dist/http/film/film.css +80 -0
- package/dist/http/film/film.js +446 -0
- package/dist/http/film/human.jpg +0 -0
- package/dist/http/film/m0.jpg +0 -0
- package/dist/http/film/m2.jpg +0 -0
- package/dist/http/film/m3.jpg +0 -0
- package/dist/http/film/wrong.jpg +0 -0
- package/dist/http/film.d.ts +16 -0
- package/dist/http/film.d.ts.map +1 -0
- package/dist/http/film.js +119 -0
- package/dist/http/film.js.map +1 -0
- package/dist/http/home/cabinet.svg +1 -0
- package/dist/http/home/drawer-project.svg +1 -0
- package/dist/http/home/drawer-rules.svg +1 -0
- package/dist/http/home/drawer-you.svg +1 -0
- package/dist/http/home/fig1.svg +242 -0
- package/dist/http/home/fig2-1.svg +61 -0
- package/dist/http/home/fig2-2.svg +92 -0
- package/dist/http/home/fig3.svg +1 -0
- package/dist/http/home/home.css +509 -0
- package/dist/http/home/home.html +517 -0
- package/dist/http/home/icons.svg +15 -0
- package/dist/http/home.d.ts +23 -0
- package/dist/http/home.d.ts.map +1 -0
- package/dist/http/home.js +295 -0
- package/dist/http/home.js.map +1 -0
- package/dist/http/identities.d.ts +29 -0
- package/dist/http/identities.d.ts.map +1 -0
- package/dist/http/identities.js +91 -0
- package/dist/http/identities.js.map +1 -0
- package/dist/http/import-memory.d.ts +161 -0
- package/dist/http/import-memory.d.ts.map +1 -0
- package/dist/http/import-memory.js +718 -0
- package/dist/http/import-memory.js.map +1 -0
- package/dist/http/jsonfile.d.ts +6 -0
- package/dist/http/jsonfile.d.ts.map +1 -0
- package/dist/http/jsonfile.js +60 -0
- package/dist/http/jsonfile.js.map +1 -0
- package/dist/http/legal/PRIVACY.md +70 -0
- package/dist/http/legal.d.ts +10 -0
- package/dist/http/legal.d.ts.map +1 -0
- package/dist/http/legal.js +35 -0
- package/dist/http/legal.js.map +1 -0
- package/dist/http/limits.d.ts +59 -0
- package/dist/http/limits.d.ts.map +1 -0
- package/dist/http/limits.js +163 -0
- package/dist/http/limits.js.map +1 -0
- package/dist/http/markdown-lite.d.ts +2 -0
- package/dist/http/markdown-lite.d.ts.map +1 -0
- package/dist/http/markdown-lite.js +86 -0
- package/dist/http/markdown-lite.js.map +1 -0
- package/dist/http/multipart.d.ts +43 -0
- package/dist/http/multipart.d.ts.map +1 -0
- package/dist/http/multipart.js +152 -0
- package/dist/http/multipart.js.map +1 -0
- package/dist/http/oauth-app.d.ts +75 -0
- package/dist/http/oauth-app.d.ts.map +1 -0
- package/dist/http/oauth-app.js +259 -0
- package/dist/http/oauth-app.js.map +1 -0
- package/dist/http/oauth-config.d.ts +46 -0
- package/dist/http/oauth-config.d.ts.map +1 -0
- package/dist/http/oauth-config.js +122 -0
- package/dist/http/oauth-config.js.map +1 -0
- package/dist/http/oauth-pages.d.ts +40 -0
- package/dist/http/oauth-pages.d.ts.map +1 -0
- package/dist/http/oauth-pages.js +97 -0
- package/dist/http/oauth-pages.js.map +1 -0
- package/dist/http/oauth-provider.d.ts +124 -0
- package/dist/http/oauth-provider.d.ts.map +1 -0
- package/dist/http/oauth-provider.js +486 -0
- package/dist/http/oauth-provider.js.map +1 -0
- package/dist/http/oauth-store.d.ts +128 -0
- package/dist/http/oauth-store.d.ts.map +1 -0
- package/dist/http/oauth-store.js +317 -0
- package/dist/http/oauth-store.js.map +1 -0
- package/dist/http/redirect-policy.d.ts +16 -0
- package/dist/http/redirect-policy.d.ts.map +1 -0
- package/dist/http/redirect-policy.js +83 -0
- package/dist/http/redirect-policy.js.map +1 -0
- package/dist/http/review-pages.d.ts +39 -0
- package/dist/http/review-pages.d.ts.map +1 -0
- package/dist/http/review-pages.js +78 -0
- package/dist/http/review-pages.js.map +1 -0
- package/dist/http/review.d.ts +36 -0
- package/dist/http/review.d.ts.map +1 -0
- package/dist/http/review.js +220 -0
- package/dist/http/review.js.map +1 -0
- package/dist/http/serve.d.ts +58 -0
- package/dist/http/serve.d.ts.map +1 -0
- package/dist/http/serve.js +324 -0
- package/dist/http/serve.js.map +1 -0
- package/dist/http/site-pages.d.ts +110 -0
- package/dist/http/site-pages.d.ts.map +1 -0
- package/dist/http/site-pages.js +630 -0
- package/dist/http/site-pages.js.map +1 -0
- package/dist/http/site-theme.d.ts +13 -0
- package/dist/http/site-theme.d.ts.map +1 -0
- package/dist/http/site-theme.js +22 -0
- package/dist/http/site-theme.js.map +1 -0
- package/dist/http/site.d.ts +52 -0
- package/dist/http/site.d.ts.map +1 -0
- package/dist/http/site.js +353 -0
- package/dist/http/site.js.map +1 -0
- package/dist/http/stats.d.ts +139 -0
- package/dist/http/stats.d.ts.map +1 -0
- package/dist/http/stats.js +599 -0
- package/dist/http/stats.js.map +1 -0
- package/dist/http/tar-import.d.ts +69 -0
- package/dist/http/tar-import.d.ts.map +1 -0
- package/dist/http/tar-import.js +234 -0
- package/dist/http/tar-import.js.map +1 -0
- package/dist/http/tenant-paths.d.ts +14 -0
- package/dist/http/tenant-paths.d.ts.map +1 -0
- package/dist/http/tenant-paths.js +42 -0
- package/dist/http/tenant-paths.js.map +1 -0
- package/dist/http/tokens.d.ts +32 -0
- package/dist/http/tokens.d.ts.map +1 -0
- package/dist/http/tokens.js +137 -0
- package/dist/http/tokens.js.map +1 -0
- package/dist/http/trial.d.ts +55 -0
- package/dist/http/trial.d.ts.map +1 -0
- package/dist/http/trial.js +218 -0
- package/dist/http/trial.js.map +1 -0
- package/dist/http/web-session.d.ts +108 -0
- package/dist/http/web-session.d.ts.map +1 -0
- package/dist/http/web-session.js +267 -0
- package/dist/http/web-session.js.map +1 -0
- package/dist/index.js +12 -65
- package/dist/index.js.map +1 -1
- package/dist/lib/ambient-capture.d.ts.map +1 -1
- package/dist/lib/ambient-capture.js +4 -1
- package/dist/lib/ambient-capture.js.map +1 -1
- package/dist/lib/bookkeeping.d.ts +26 -0
- package/dist/lib/bookkeeping.d.ts.map +1 -0
- package/dist/lib/bookkeeping.js +31 -0
- package/dist/lib/bookkeeping.js.map +1 -0
- package/dist/lib/hosted-redact.d.ts +17 -0
- package/dist/lib/hosted-redact.d.ts.map +1 -0
- package/dist/lib/hosted-redact.js +57 -0
- package/dist/lib/hosted-redact.js.map +1 -0
- package/dist/lib/lifecycle-exit.d.ts +5 -13
- package/dist/lib/lifecycle-exit.d.ts.map +1 -1
- package/dist/lib/lifecycle-exit.js +38 -16
- package/dist/lib/lifecycle-exit.js.map +1 -1
- package/dist/server.d.ts +3 -2
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +6 -3
- package/dist/server.js.map +1 -1
- package/dist/tools/annotations.d.ts +65 -0
- package/dist/tools/annotations.d.ts.map +1 -0
- package/dist/tools/annotations.js +4 -0
- package/dist/tools/annotations.js.map +1 -0
- package/dist/tools/check-action.d.ts.map +1 -1
- package/dist/tools/check-action.js +2 -0
- package/dist/tools/check-action.js.map +1 -1
- package/dist/tools/check.d.ts.map +1 -1
- package/dist/tools/check.js +6 -2
- package/dist/tools/check.js.map +1 -1
- package/dist/tools/digest.d.ts.map +1 -1
- package/dist/tools/digest.js +2 -0
- package/dist/tools/digest.js.map +1 -1
- package/dist/tools/pipeline-close.d.ts.map +1 -1
- package/dist/tools/pipeline-close.js +2 -0
- package/dist/tools/pipeline-close.js.map +1 -1
- package/dist/tools/pipeline-current.d.ts.map +1 -1
- package/dist/tools/pipeline-current.js +2 -0
- package/dist/tools/pipeline-current.js.map +1 -1
- package/dist/tools/pipeline-list.d.ts.map +1 -1
- package/dist/tools/pipeline-list.js +2 -0
- package/dist/tools/pipeline-list.js.map +1 -1
- package/dist/tools/pipeline-open.d.ts.map +1 -1
- package/dist/tools/pipeline-open.js +2 -0
- package/dist/tools/pipeline-open.js.map +1 -1
- package/dist/tools/pipeline-show.d.ts.map +1 -1
- package/dist/tools/pipeline-show.js +2 -0
- package/dist/tools/pipeline-show.js.map +1 -1
- package/dist/tools/recall.d.ts.map +1 -1
- package/dist/tools/recall.js +4 -1
- package/dist/tools/recall.js.map +1 -1
- package/dist/tools/register-rule.d.ts.map +1 -1
- package/dist/tools/register-rule.js +2 -0
- package/dist/tools/register-rule.js.map +1 -1
- package/dist/tools/remember.d.ts.map +1 -1
- package/dist/tools/remember.js +10 -1
- package/dist/tools/remember.js.map +1 -1
- package/dist/tools/session-end.d.ts +15 -0
- package/dist/tools/session-end.d.ts.map +1 -1
- package/dist/tools/session-end.js +13 -1
- package/dist/tools/session-end.js.map +1 -1
- package/dist/tools/session-start.d.ts +6 -1
- package/dist/tools/session-start.d.ts.map +1 -1
- package/dist/tools/session-start.js +24 -212
- package/dist/tools/session-start.js.map +1 -1
- package/package.json +11 -8
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
// Home page film: "Intelligent Distance" in five beats. Raw WebGL2, no libraries.
|
|
3
|
+
// Served inline (CSP hash) by film.ts; the five plates come from /film/*.jpg.
|
|
4
|
+
// Without this script the page is a plain stacked document (see film.css).
|
|
5
|
+
// The scroll position is the only clock: p in [0,1] drives the worlds, the jumps and the copy.
|
|
6
|
+
// Two worlds sit on either side of a gap. The human tree never changes. The machine
|
|
7
|
+
// structure is rebuilt by each correction, and the gap narrows but never closes.
|
|
8
|
+
const canvas = document.getElementById("stage");
|
|
9
|
+
const beats = [...document.querySelectorAll(".beat")];
|
|
10
|
+
const sessionEl = document.getElementById("session");
|
|
11
|
+
const distEl = document.getElementById("dist");
|
|
12
|
+
const hintEl = document.querySelector(".hint");
|
|
13
|
+
const track = document.getElementById("track");
|
|
14
|
+
const root = document.documentElement;
|
|
15
|
+
const reduced = matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
16
|
+
const MESH_U = 420, MESH_W = 64; // 27k vertices: fine enough that the interpolated normal shows no facets across the band
|
|
17
|
+
const PLATES = ["human", "m0", "wrong", "m2", "m3"];
|
|
18
|
+
const clamp01 = (x) => Math.min(1, Math.max(0, x));
|
|
19
|
+
const smooth = (a, b, x) => { const t = clamp01((x - a) / (b - a)); return t * t * (3 - 2 * t); };
|
|
20
|
+
/** Half the gap between the two worlds, in screen heights. Mirrors sep() in the shader. */
|
|
21
|
+
const sepAt = (p) => 0.50 - 0.13 * smooth(0.33, 0.42, p) - 0.10 * smooth(0.58, 0.67, p) - 0.05 * smooth(0.80, 0.95, p);
|
|
22
|
+
|
|
23
|
+
const VERT = `#version 300 es
|
|
24
|
+
in vec2 a; out vec2 v;
|
|
25
|
+
void main(){ v = a * 0.5 + 0.5; gl_Position = vec4(a, 0.0, 1.0); }`;
|
|
26
|
+
|
|
27
|
+
const FRAG = `#version 300 es
|
|
28
|
+
precision highp float;
|
|
29
|
+
in vec2 v; out vec4 o;
|
|
30
|
+
uniform sampler2D H, M0, MW, M2, M3;
|
|
31
|
+
uniform vec2 res, mouse;
|
|
32
|
+
uniform float p, time, calm;
|
|
33
|
+
|
|
34
|
+
float hash(vec2 x){ return fract(sin(dot(x, vec2(12.9898, 78.233))) * 43758.5453); }
|
|
35
|
+
float bump(float c, float w, float x){ return exp(-pow((x - c) / w, 2.0)); }
|
|
36
|
+
float sep(float q){
|
|
37
|
+
return 0.50 - 0.13 * smoothstep(0.33, 0.42, q) - 0.10 * smoothstep(0.58, 0.67, q) - 0.05 * smoothstep(0.80, 0.95, q);
|
|
38
|
+
}
|
|
39
|
+
// a square plate centred at ctr with height s; edges fade so the square never shows
|
|
40
|
+
const vec3 GOLD = vec3(0.961, 0.769, 0.318);
|
|
41
|
+
// the human plate is graded toward gold; luminance is kept, so detail is not washed out
|
|
42
|
+
vec3 gold(vec3 c){ float l = dot(c, vec3(0.299, 0.587, 0.114)); return mix(c, GOLD * l * 1.55, 0.6); }
|
|
43
|
+
vec3 plate(sampler2D t, vec2 c, vec2 ctr, float s){
|
|
44
|
+
vec2 q = (c - ctr) / s + 0.5;
|
|
45
|
+
if (q.x < 0.0 || q.x > 1.0 || q.y < 0.0 || q.y > 1.0) return vec3(0.0);
|
|
46
|
+
// round falloff: the plate's own dark background must never read as a square
|
|
47
|
+
float e = smoothstep(0.50, 0.24, length((q - 0.5) * vec2(1.0, 0.92)));
|
|
48
|
+
vec3 col = texture(t, q).rgb;
|
|
49
|
+
return max(col - 0.05, 0.0) * 1.08 * e;
|
|
50
|
+
}
|
|
51
|
+
// the whole scene at centred coords c (x scaled by aspect, y in -0.5..0.5, up positive)
|
|
52
|
+
vec3 scene(vec2 c, float a){
|
|
53
|
+
float fit = min(1.0, a / 1.75); // narrow screens: smaller plates, tighter gap
|
|
54
|
+
float s = 0.80 * fit;
|
|
55
|
+
float sp = sep(p) * fit;
|
|
56
|
+
vec2 hc = vec2(-sp, 0.07) + mouse * vec2(-0.012, 0.008);
|
|
57
|
+
vec2 mc = vec2( sp, 0.07) + mouse * vec2( 0.012, 0.008);
|
|
58
|
+
vec3 col = gold(plate(H, c, hc, s));
|
|
59
|
+
|
|
60
|
+
// machine: monolith -> wrong growth -> lattice -> tree. Each change is a rebuild, not a fade.
|
|
61
|
+
float toWrong = smoothstep(0.14, 0.22, p);
|
|
62
|
+
float toM2 = smoothstep(0.355, 0.40, p);
|
|
63
|
+
float toM3 = smoothstep(0.605, 0.65, p);
|
|
64
|
+
float tear = bump(0.18, 0.035, p) * 0.9 + bump(0.375, 0.02, p) + bump(0.625, 0.02, p);
|
|
65
|
+
vec2 cm = c;
|
|
66
|
+
cm.x += (hash(vec2(floor(c.y * 90.0), floor(time * 24.0))) - 0.5) * 0.06 * tear;
|
|
67
|
+
vec3 m = plate(M0, cm, mc, s);
|
|
68
|
+
m = mix(m, plate(MW, cm, mc, s), toWrong);
|
|
69
|
+
m = mix(m, plate(M2, cm, mc, s), toM2);
|
|
70
|
+
m = mix(m, plate(M3, cm, mc, s), toM3);
|
|
71
|
+
col = max(col, m);
|
|
72
|
+
|
|
73
|
+
// the correction: light leaves the human crown and lands on the machine
|
|
74
|
+
vec2 pa = hc + vec2(0.02, 0.20) * s, pb = mc + vec2(-0.02, 0.20) * s;
|
|
75
|
+
vec2 ab = pb - pa;
|
|
76
|
+
float h = clamp(dot(c - pa, ab) / dot(ab, ab), 0.0, 1.0);
|
|
77
|
+
float arc = sin(h * 3.14159) * 0.05 * fit;
|
|
78
|
+
float d = length(c - (pa + ab * h + vec2(0.0, arc)));
|
|
79
|
+
float grow = smoothstep(0.27, 0.36, p); // the first crossing draws itself
|
|
80
|
+
float live = smoothstep(grow, grow - 0.06, h) * step(0.001, grow) * (bump(0.345, 0.05, p) + 0.22 * smoothstep(0.40, 0.48, p));
|
|
81
|
+
float pulse = pow(0.5 + 0.5 * sin((h - time * 0.35) * 28.0), 6.0) * smoothstep(0.42, 0.50, p);
|
|
82
|
+
vec3 beamCol = mix(GOLD, vec3(0.45, 0.95, 1.0), h);
|
|
83
|
+
col += beamCol * live * (0.0022 / (d * d + 0.00002) * 0.012 + 0.012 / (d + 0.012));
|
|
84
|
+
col += mix(beamCol, vec3(1.0), 0.6) * pulse * 0.010 / (d + 0.004) * 0.35;
|
|
85
|
+
|
|
86
|
+
// the gap that stays: a hairline of light between the two worlds at the end
|
|
87
|
+
float endAmt = smoothstep(0.84, 0.97, p);
|
|
88
|
+
col += vec3(0.85, 0.95, 1.0) * endAmt * 0.0016 / (abs(c.x) + 0.0016) * smoothstep(0.34, 0.0, abs(c.y - 0.07));
|
|
89
|
+
return col;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// ---- the galaxy behind the worlds ----
|
|
93
|
+
const vec3 CYAN = vec3(0.45, 0.95, 1.0);
|
|
94
|
+
float noise(vec2 x){
|
|
95
|
+
vec2 i = floor(x), f = fract(x); f = f * f * (3.0 - 2.0 * f);
|
|
96
|
+
return mix(mix(hash(i), hash(i + vec2(1.0, 0.0)), f.x), mix(hash(i + vec2(0.0, 1.0)), hash(i + 1.0), f.x), f.y);
|
|
97
|
+
}
|
|
98
|
+
float fbm(vec2 x){
|
|
99
|
+
float s = 0.0, a = 0.5;
|
|
100
|
+
for (int i = 0; i < 4; i++){ s += a * noise(x); x = x * 2.03 + 11.7; a *= 0.5; }
|
|
101
|
+
return s;
|
|
102
|
+
}
|
|
103
|
+
// one depth layer of stars: nearer layers are larger, sparser, and fly outward faster as p grows
|
|
104
|
+
vec3 starLayer(vec2 c, float fi){
|
|
105
|
+
vec2 q = c * (1.0 + p * (0.10 + 0.45 * fi)) + mouse * (0.01 + 0.03 * fi) + vec2(0.0, -0.02 * p * fi);
|
|
106
|
+
float sc = 46.0 - 14.0 * fi;
|
|
107
|
+
vec2 g = q * sc + fi * 17.3;
|
|
108
|
+
vec2 id = floor(g);
|
|
109
|
+
float h = hash(id);
|
|
110
|
+
vec2 jit = (vec2(hash(id + 3.1), hash(id + 7.7)) - 0.5) * 0.6;
|
|
111
|
+
float r = length(fract(g) - 0.5 - jit);
|
|
112
|
+
float st = step(0.90 + 0.04 * fi, h) * smoothstep(0.30 + 0.06 * fi, 0.0, r);
|
|
113
|
+
float tw = 0.7 + 0.3 * sin(time * (0.5 + h * 2.0) + h * 40.0);
|
|
114
|
+
vec3 tint = mix(vec3(0.72, 0.88, 1.0), vec3(1.0, 0.86, 0.60), fract(h * 9.0));
|
|
115
|
+
return tint * st * st * tw * (0.45 + 0.35 * fi);
|
|
116
|
+
}
|
|
117
|
+
// a bright technological star: crisp core and a small four-point flare
|
|
118
|
+
vec3 flare(vec2 c, vec2 at, float size, vec3 tint){
|
|
119
|
+
vec2 d = c - at;
|
|
120
|
+
float r = length(d);
|
|
121
|
+
float cross = 0.0012 / (abs(d.x) + 0.0016) * smoothstep(size, 0.0, abs(d.y)) + 0.0012 / (abs(d.y) + 0.0016) * smoothstep(size, 0.0, abs(d.x));
|
|
122
|
+
return tint * (0.0016 / (r * r + 0.00006) * 0.025 + cross * 0.55);
|
|
123
|
+
}
|
|
124
|
+
float link(vec2 c, vec2 a, vec2 b){
|
|
125
|
+
vec2 ab = b - a;
|
|
126
|
+
float h = clamp(dot(c - a, ab) / dot(ab, ab), 0.0, 1.0);
|
|
127
|
+
return 0.00035 / (length(c - a - ab * h) + 0.0007);
|
|
128
|
+
}
|
|
129
|
+
vec3 galaxy(vec2 c, float fit){
|
|
130
|
+
vec3 o = starLayer(c, 0.0) + starLayer(c, 1.0) + starLayer(c, 2.0);
|
|
131
|
+
// the galactic band: dust with lanes, gold toward the human side, cyan toward the machine
|
|
132
|
+
float th = 0.42 + 0.02 * sin(time * 0.05);
|
|
133
|
+
vec2 bq = vec2(c.x * cos(th) + c.y * sin(th), c.y * cos(th) - c.x * sin(th));
|
|
134
|
+
float lane = exp(-pow((bq.y - 0.04 + 0.05 * sin(bq.x * 2.3)) / 0.20, 2.0));
|
|
135
|
+
float cloud = fbm(bq * 3.2 + vec2(0.0, p * 0.6) + mouse * 0.2);
|
|
136
|
+
float dust = lane * smoothstep(0.30, 0.85, cloud) * (0.4 + 0.6 * fbm(bq * 7.0 - time * 0.01));
|
|
137
|
+
o += mix(GOLD * 0.9, CYAN, smoothstep(-0.45, 0.45, c.x)) * dust * 0.65;
|
|
138
|
+
vec2 pr = mouse * 0.02 + vec2(0.0, -0.03) * p;
|
|
139
|
+
vec2 fx = vec2(fit, 1.0); // narrow screens: the network contracts toward the middle
|
|
140
|
+
vec2 s0 = vec2(-0.62, 0.26) * fx + pr, s1 = vec2(-0.21, 0.29) * fx + pr * 1.4, s2 = vec2(0.26, 0.27) * fx + pr * 1.2, s3 = vec2(0.66, 0.20) * fx + pr, s4 = vec2(0.02, -0.10) * fx + pr * 0.6;
|
|
141
|
+
o += flare(c, s0, 0.07, vec3(1.0, 0.88, 0.62)) + flare(c, s1, 0.05, vec3(1.0)) + flare(c, s2, 0.09, vec3(0.7, 0.95, 1.0))
|
|
142
|
+
+ flare(c, s3, 0.06, vec3(0.7, 0.95, 1.0)) + flare(c, s4, 0.04, vec3(1.0, 0.9, 0.75));
|
|
143
|
+
o += vec3(0.8, 0.9, 1.0) * (link(c, s0, s1) + link(c, s1, s2) + link(c, s2, s3)) * 0.5;
|
|
144
|
+
return o;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
void main(){
|
|
148
|
+
float a = res.x / res.y;
|
|
149
|
+
vec2 c = vec2((v.x - 0.5) * a, v.y - 0.5);
|
|
150
|
+
float j1 = bump(0.375, 0.030, p), j2 = bump(0.625, 0.030, p);
|
|
151
|
+
float rush = clamp(j1 + j2, 0.0, 1.0) * (1.0 - calm); // calm = prefers-reduced-motion
|
|
152
|
+
|
|
153
|
+
// the jump: the camera is thrown at the gap, the frame smears, the world lands rebuilt
|
|
154
|
+
float push = 1.0 + 0.05 * p + rush * 0.9;
|
|
155
|
+
vec2 cz = c / push;
|
|
156
|
+
vec3 col = vec3(0.0);
|
|
157
|
+
int n = rush > 0.01 ? 14 : 1;
|
|
158
|
+
float w = 0.0;
|
|
159
|
+
for (int i = 0; i < 14; i++){
|
|
160
|
+
if (i >= n) break;
|
|
161
|
+
float f = float(i) / 13.0;
|
|
162
|
+
float wt = 1.0 - f * 0.7;
|
|
163
|
+
col += scene(cz * (1.0 - rush * 0.55 * f), a) * wt; w += wt;
|
|
164
|
+
}
|
|
165
|
+
col /= w;
|
|
166
|
+
|
|
167
|
+
float r = length(c);
|
|
168
|
+
float ang = atan(c.y, c.x);
|
|
169
|
+
float rays = pow(abs(sin(ang * 36.0 + hash(vec2(floor(ang * 36.0), 3.0)) * 6.28 + time * 1.5)), 16.0);
|
|
170
|
+
vec3 warm = vec3(1.0, 0.82, 0.62), cold = vec3(0.62, 0.92, 1.0);
|
|
171
|
+
col += mix(warm, cold, smoothstep(-0.3, 0.3, c.x)) * rays * rush * rush * smoothstep(0.08, 0.8, r) * 0.55;
|
|
172
|
+
col = mix(col, vec3(1.0, 0.98, 0.95), 0.7 * pow(rush, 5.0) * (1.0 - 0.55 * smoothstep(0.0, 0.9, r)));
|
|
173
|
+
|
|
174
|
+
// behind the worlds: the strip (already drawn) and the galaxy show only where the plates and the beam are dark
|
|
175
|
+
float open = 1.0 - clamp(dot(col, vec3(0.33)) * 4.0, 0.0, 1.0);
|
|
176
|
+
// nothing bright behind the header or the caption block
|
|
177
|
+
vec3 b = galaxy(cz, min(1.0, a / 1.75)) * smoothstep(0.40, 0.28, c.y) * smoothstep(-0.15, 0.0, c.y);
|
|
178
|
+
col += b * open;
|
|
179
|
+
|
|
180
|
+
// air: drifting motes, a cool floor of mist, vignette, grain
|
|
181
|
+
vec2 g = c * 34.0 + vec2(time * 0.05, time * 0.11);
|
|
182
|
+
float mote = step(0.992, hash(floor(g))) * smoothstep(0.35, 0.0, length(fract(g) - 0.5));
|
|
183
|
+
col += vec3(0.7, 0.8, 0.9) * mote * 0.35;
|
|
184
|
+
col += vec3(0.02, 0.05, 0.07) * smoothstep(0.0, -0.5, c.y);
|
|
185
|
+
col *= 1.0 - 0.5 * smoothstep(0.45, 1.05, r);
|
|
186
|
+
col += (hash(v * res + time * 60.0) - 0.5) * 0.03;
|
|
187
|
+
col *= 1.0 - 0.55 * smoothstep(-0.12, -0.5, c.y) * (1.0 - pow(rush, 5.0)); // scrim under the copy
|
|
188
|
+
o = vec4(pow(max(col, 0.0), vec3(0.94)), open); // blended over the strip: dst * open + this
|
|
189
|
+
}`;
|
|
190
|
+
|
|
191
|
+
const MESH_VERT = `#version 300 es
|
|
192
|
+
// The Mobius strip as a triangle mesh in screen-height units (y up, x scaled by aspect).
|
|
193
|
+
in vec2 uv; // u: around the loop 0..2pi, w: across the band -1..1
|
|
194
|
+
uniform vec2 res, mouse;
|
|
195
|
+
uniform float p, time, spread;
|
|
196
|
+
out vec3 pos; out vec3 nrm; out vec2 st; out float presence; out float grade; out float screenY;
|
|
197
|
+
const float TILT = 0.62, DEPTH = 1.7, TWISTS = 0.5;
|
|
198
|
+
float sep(float q){
|
|
199
|
+
return 0.50 - 0.13 * smoothstep(0.33, 0.42, q) - 0.10 * smoothstep(0.58, 0.67, q) - 0.05 * smoothstep(0.80, 0.95, q);
|
|
200
|
+
}
|
|
201
|
+
float bump(float c, float w, float x){ return exp(-pow((x - c) / w, 2.0)); }
|
|
202
|
+
vec3 strip(float u, float w, vec2 axes, float halfWidth, float sway){
|
|
203
|
+
vec2 rim = vec2(cos(u), sin(u));
|
|
204
|
+
vec2 outward = normalize(vec2(rim.x / axes.x, rim.y / axes.y));
|
|
205
|
+
float t = u * TWISTS;
|
|
206
|
+
vec3 q = vec3(rim * axes, 0.0) + w * halfWidth * vec3(outward * cos(t), sin(t));
|
|
207
|
+
float cs = cos(TILT), sn = sin(TILT);
|
|
208
|
+
q = vec3(q.x, q.y * cs - q.z * sn, q.y * sn + q.z * cs); // lean the loop back: the top comes toward us
|
|
209
|
+
float cy = cos(sway), sy = sin(sway);
|
|
210
|
+
return vec3(q.x * cy + q.z * sy, q.y, q.z * cy - q.x * sy); // slow turn about the vertical axis
|
|
211
|
+
}
|
|
212
|
+
void main(){
|
|
213
|
+
float a = res.x / res.y;
|
|
214
|
+
float fit = min(1.0, a / 1.75);
|
|
215
|
+
float size = fit * (1.0 + 0.5 * (1.0 - fit)); // narrow screens: a tighter gap, but not a tiny loop
|
|
216
|
+
vec2 axes = vec2(sep(p) * fit + 0.09 * size, 0.26 * size); // the loop's ends sit behind the two plates
|
|
217
|
+
float halfWidth = 0.16 * size * spread;
|
|
218
|
+
float sway = 0.30 * sin(time * 0.17) + mouse.x * 0.25;
|
|
219
|
+
float e = 0.004;
|
|
220
|
+
vec3 q = strip(uv.x, uv.y, axes, halfWidth, sway);
|
|
221
|
+
nrm = normalize(cross(strip(uv.x + e, uv.y, axes, halfWidth, sway) - strip(uv.x - e, uv.y, axes, halfWidth, sway),
|
|
222
|
+
strip(uv.x, uv.y + e, axes, halfWidth, sway) - strip(uv.x, uv.y - e, axes, halfWidth, sway)));
|
|
223
|
+
pos = q; st = uv;
|
|
224
|
+
float rush = clamp(bump(0.375, 0.030, p) + bump(0.625, 0.030, p), 0.0, 1.0);
|
|
225
|
+
float beam = 0.85 * (smoothstep(0.22, 0.30, p) - smoothstep(0.50, 0.58, p)); // the strip yields to the correction beam
|
|
226
|
+
float hairline = 0.35 * smoothstep(0.84, 0.97, p); // and to the hairline at the end
|
|
227
|
+
presence = (1.0 - rush) * (1.0 - beam) * (1.0 - hairline);
|
|
228
|
+
float push = 1.0 + 0.05 * p + rush * 0.9;
|
|
229
|
+
vec2 c = (q.xy * DEPTH / (DEPTH - q.z) + vec2(0.0, 0.10) + mouse * vec2(0.01, 0.006)) * push;
|
|
230
|
+
screenY = c.y;
|
|
231
|
+
grade = 1.0 - 0.5 * smoothstep(0.45, 1.05, length(c)); // the same vignette as the film grade
|
|
232
|
+
gl_Position = vec4(c.x * 2.0 / a, c.y * 2.0, 0.0, 1.0);
|
|
233
|
+
}`;
|
|
234
|
+
|
|
235
|
+
const MESH_FRAG = `#version 300 es
|
|
236
|
+
precision highp float;
|
|
237
|
+
in vec3 pos; in vec3 nrm; in vec2 st; in float presence; in float grade; in float screenY;
|
|
238
|
+
uniform float time, spread;
|
|
239
|
+
out vec4 o;
|
|
240
|
+
const vec3 GOLD = vec3(0.961, 0.769, 0.318), CYAN = vec3(0.45, 0.95, 1.0);
|
|
241
|
+
float threadAt(float f, float fw){
|
|
242
|
+
float dist = abs(f - floor(f + 0.5)); // distance to the nearest thread centre
|
|
243
|
+
float hw = 0.17;
|
|
244
|
+
float line = 1.0 - smoothstep(hw - 0.75 * fw, hw + 0.75 * fw, dist);
|
|
245
|
+
return mix(line, 2.0 * hw, smoothstep(0.30, 0.60, fw)); // sub-pixel threads fade to their mean: no moire
|
|
246
|
+
}
|
|
247
|
+
void main(){
|
|
248
|
+
vec3 V = vec3(0.0, 0.0, 1.0);
|
|
249
|
+
vec3 N = normalize(nrm);
|
|
250
|
+
if (dot(N, V) < 0.0) N = -N; // light both faces of the one surface
|
|
251
|
+
vec3 L = normalize(vec3(-0.55, 0.65, 0.55));
|
|
252
|
+
float lit = max(dot(N, L), 0.0);
|
|
253
|
+
float spec = pow(max(dot(N, normalize(L + V)), 0.0), 32.0);
|
|
254
|
+
float rim = pow(1.0 - abs(dot(N, V)), 3.0);
|
|
255
|
+
float across = abs(st.y);
|
|
256
|
+
vec3 tone = mix(GOLD, CYAN * 1.35, smoothstep(-0.30, 0.30, pos.x)); // cyan carries gold's weight
|
|
257
|
+
float depth = mix(0.28, 1.0, smoothstep(-0.2, 0.2, pos.z)); // the far half sits behind and dimmer
|
|
258
|
+
vec3 col;
|
|
259
|
+
if (spread > 1.0) {
|
|
260
|
+
col = tone * 0.035 * (1.0 - across) * (0.4 + lit); // a soft halo around the strip
|
|
261
|
+
} else {
|
|
262
|
+
// Seam-consistent by construction: one trip round maps w to -w, so every pattern is even in w
|
|
263
|
+
// (the wave bends the thread spacing through w * g(u), g 2pi-periodic) and the pulses depend on u alone at integer frequency.
|
|
264
|
+
float flow = st.y * (9.0 + 1.0 * sin(st.x * 3.0 + time * 0.4)); // one shared thread function of w, same on both halves
|
|
265
|
+
float fw = fwidth(flow); // thread spacing in pixels, from the local footprint
|
|
266
|
+
// Integer octaves of the same thread (9, 18, 36, 72 per half-turn): pick the octave whose threads are ~3.5 px apart
|
|
267
|
+
// and cross-fade to the next, so a wide near face and a narrow far face show the same fine thread, never broad stripes.
|
|
268
|
+
float lvl = clamp(log2(0.28 / max(fw, 1e-4)), 0.0, 3.0);
|
|
269
|
+
float l0 = floor(lvl);
|
|
270
|
+
float thread = mix(threadAt(flow * exp2(l0), fw * exp2(l0)), threadAt(flow * exp2(l0 + 1.0), fw * exp2(l0 + 1.0)), smoothstep(0.0, 1.0, lvl - l0));
|
|
271
|
+
float pulse = pow(0.5 + 0.5 * sin(st.x * 4.0 - time * 0.9), 3.0); // broad soft pulses riding the threads
|
|
272
|
+
float edge = smoothstep(0.80, 1.0, across);
|
|
273
|
+
col = tone * (0.03 + 1.25 * lit * lit) * (0.40 + 0.60 * thread) * (0.8 + 0.5 * pulse)
|
|
274
|
+
+ tone * pulse * thread * 0.35
|
|
275
|
+
+ mix(tone, vec3(1.0), 0.65) * spec * (0.9 + 1.6 * edge)
|
|
276
|
+
+ tone * rim * (0.5 + 1.4 * edge)
|
|
277
|
+
+ mix(tone, vec3(1.0), 0.5) * edge * 0.18 * (0.4 + lit);
|
|
278
|
+
}
|
|
279
|
+
float keep = smoothstep(0.34, 0.24, screenY) * smoothstep(-0.15, 0.0, screenY); // clear of the header and the caption scrim, judged on screen
|
|
280
|
+
float cov = clamp((1.0 - across) / max(1.5 * fwidth(across), 1e-4), 0.0, 1.0); // silhouette falloff over ~1.5 px
|
|
281
|
+
o = vec4(col * depth * keep * presence * grade * 1.25 * cov, 1.0);
|
|
282
|
+
}`;
|
|
283
|
+
|
|
284
|
+
function loadImage(src) {
|
|
285
|
+
return new Promise((ok, err) => { const i = new Image(); i.onload = () => ok(i); i.onerror = err; i.src = src; });
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function updateCopy(p) {
|
|
289
|
+
for (const b of beats) {
|
|
290
|
+
const on = p >= +b.dataset.from && p < +b.dataset.to;
|
|
291
|
+
b.classList.toggle("on", on);
|
|
292
|
+
// An off-screen caption is still read by a screen reader, but its links must not take focus unseen.
|
|
293
|
+
for (const a of b.querySelectorAll("a")) a.tabIndex = on ? 0 : -1;
|
|
294
|
+
}
|
|
295
|
+
// Matches the captions: session 2 until that beat ends, 50 by the time "Session 50" appears.
|
|
296
|
+
const session = p < 0.36 ? 1 : p < 0.58 ? 2 : Math.round(2 + 48 * smooth(0.58, 0.66, p));
|
|
297
|
+
sessionEl.textContent = "SESSION " + String(session).padStart(2, "0");
|
|
298
|
+
distEl.textContent = "DISTANCE " + (sepAt(p) / sepAt(0)).toFixed(2);
|
|
299
|
+
hintEl.classList.toggle("off", p >= 0.02);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
async function start() {
|
|
303
|
+
root.classList.add("film");
|
|
304
|
+
let target = 0;
|
|
305
|
+
const readScroll = () => {
|
|
306
|
+
const max = track.offsetHeight - innerHeight;
|
|
307
|
+
target = max > 0 ? clamp01(scrollY / max) : 0;
|
|
308
|
+
};
|
|
309
|
+
let running = false;
|
|
310
|
+
addEventListener("scroll", () => { readScroll(); if (!running) updateCopy(target); }, { passive: true });
|
|
311
|
+
readScroll();
|
|
312
|
+
updateCopy(target); // the first beat must be readable before the first frame
|
|
313
|
+
|
|
314
|
+
const gl = canvas.getContext("webgl2", { antialias: true });
|
|
315
|
+
if (!gl) {
|
|
316
|
+
// No WebGL: the copy still tells the story over the CSS background.
|
|
317
|
+
root.classList.add("nogl");
|
|
318
|
+
addEventListener("scroll", () => updateCopy(target), { passive: true });
|
|
319
|
+
updateCopy(target);
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
const sh = (type, src) => {
|
|
323
|
+
const s = gl.createShader(type); gl.shaderSource(s, src); gl.compileShader(s);
|
|
324
|
+
if (!gl.getShaderParameter(s, gl.COMPILE_STATUS)) throw new Error(gl.getShaderInfoLog(s));
|
|
325
|
+
return s;
|
|
326
|
+
};
|
|
327
|
+
const link = (vert, frag) => {
|
|
328
|
+
const program = gl.createProgram();
|
|
329
|
+
gl.attachShader(program, sh(gl.VERTEX_SHADER, vert));
|
|
330
|
+
gl.attachShader(program, sh(gl.FRAGMENT_SHADER, frag));
|
|
331
|
+
gl.linkProgram(program);
|
|
332
|
+
if (!gl.getProgramParameter(program, gl.LINK_STATUS)) throw new Error(gl.getProgramInfoLog(program));
|
|
333
|
+
return program;
|
|
334
|
+
};
|
|
335
|
+
const prog = link(VERT, FRAG);
|
|
336
|
+
const meshProg = link(MESH_VERT, MESH_FRAG);
|
|
337
|
+
const u = (n) => gl.getUniformLocation(prog, n);
|
|
338
|
+
const um = (n) => gl.getUniformLocation(meshProg, n);
|
|
339
|
+
gl.useProgram(prog); // the plate samplers below belong to the main program
|
|
340
|
+
|
|
341
|
+
const quadVao = gl.createVertexArray();
|
|
342
|
+
gl.bindVertexArray(quadVao);
|
|
343
|
+
gl.bindBuffer(gl.ARRAY_BUFFER, gl.createBuffer());
|
|
344
|
+
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 1, -1, -1, 1, 1, 1]), gl.STATIC_DRAW);
|
|
345
|
+
gl.enableVertexAttribArray(gl.getAttribLocation(prog, "a"));
|
|
346
|
+
gl.vertexAttribPointer(gl.getAttribLocation(prog, "a"), 2, gl.FLOAT, false, 0, 0);
|
|
347
|
+
|
|
348
|
+
// The Mobius strip: a (u, w) grid, u around the loop, w across the band.
|
|
349
|
+
const meshVao = gl.createVertexArray();
|
|
350
|
+
gl.bindVertexArray(meshVao);
|
|
351
|
+
const grid = [], tris = [];
|
|
352
|
+
for (let i = 0; i <= MESH_U; i++) for (let j = 0; j <= MESH_W; j++) grid.push((i / MESH_U) * 2 * Math.PI, (j / MESH_W) * 2 - 1);
|
|
353
|
+
for (let i = 0; i < MESH_U; i++) for (let j = 0; j < MESH_W; j++) {
|
|
354
|
+
const k = i * (MESH_W + 1) + j, m = k + MESH_W + 1;
|
|
355
|
+
tris.push(k, m, k + 1, k + 1, m, m + 1);
|
|
356
|
+
}
|
|
357
|
+
gl.bindBuffer(gl.ARRAY_BUFFER, gl.createBuffer());
|
|
358
|
+
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(grid), gl.STATIC_DRAW);
|
|
359
|
+
gl.enableVertexAttribArray(gl.getAttribLocation(meshProg, "uv"));
|
|
360
|
+
gl.vertexAttribPointer(gl.getAttribLocation(meshProg, "uv"), 2, gl.FLOAT, false, 0, 0);
|
|
361
|
+
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, gl.createBuffer());
|
|
362
|
+
gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, new Uint16Array(tris), gl.STATIC_DRAW);
|
|
363
|
+
|
|
364
|
+
const images = await Promise.all(PLATES.map((n) => loadImage("/film/" + n + ".jpg")));
|
|
365
|
+
["H", "M0", "MW", "M2", "M3"].forEach((name, unit) => {
|
|
366
|
+
gl.activeTexture(gl.TEXTURE0 + unit);
|
|
367
|
+
gl.bindTexture(gl.TEXTURE_2D, gl.createTexture());
|
|
368
|
+
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true);
|
|
369
|
+
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, images[unit]);
|
|
370
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
|
|
371
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
|
|
372
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
|
|
373
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
|
|
374
|
+
gl.uniform1i(u(name), unit);
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
gl.clearColor(0, 0, 0, 1);
|
|
378
|
+
readScroll();
|
|
379
|
+
let p = target, mx = 0, my = 0, tmx = 0, tmy = 0, dirty = true, snapped = false;
|
|
380
|
+
// The browser may restore the scroll position after this point: jump there once, do not play through.
|
|
381
|
+
addEventListener("scroll", () => { if (!snapped && performance.now() < 1500) p = target; snapped = true; }, { passive: true, once: true });
|
|
382
|
+
addEventListener("pointermove", (e) => { tmx = e.clientX / innerWidth - 0.5; tmy = 0.5 - e.clientY / innerHeight; }, { passive: true });
|
|
383
|
+
const resize = () => {
|
|
384
|
+
const dpr = Math.min(devicePixelRatio || 1, innerWidth < 700 ? 1 : 1.5);
|
|
385
|
+
canvas.width = Math.round(innerWidth * dpr); canvas.height = Math.round(innerHeight * dpr);
|
|
386
|
+
gl.viewport(0, 0, canvas.width, canvas.height);
|
|
387
|
+
readScroll();
|
|
388
|
+
dirty = true;
|
|
389
|
+
};
|
|
390
|
+
addEventListener("resize", resize);
|
|
391
|
+
resize();
|
|
392
|
+
|
|
393
|
+
const frame = (t) => {
|
|
394
|
+
const np = reduced ? target : p + (target - p) * 0.08; // eased: the film has weight
|
|
395
|
+
const nmx = mx + (tmx - mx) * 0.05, nmy = my + (tmy - my) * 0.05;
|
|
396
|
+
const moved = Math.abs(np - p) > 0.00005 || Math.abs(nmx - mx) > 0.0002 || Math.abs(nmy - my) > 0.0002;
|
|
397
|
+
p = np; mx = nmx; my = nmy;
|
|
398
|
+
// Motes, pulses and grain move on their own, so keep drawing while the page is visible.
|
|
399
|
+
const covered = scrollY > track.offsetHeight; // the page below the film has scrolled over it
|
|
400
|
+
const clock = reduced ? 0 : t / 1000;
|
|
401
|
+
if ((moved || dirty || !reduced) && !document.hidden && !covered) {
|
|
402
|
+
// the strip goes down first, on black; the film frame is then laid over it and lets it through only where it is dark
|
|
403
|
+
gl.clear(gl.COLOR_BUFFER_BIT);
|
|
404
|
+
gl.useProgram(meshProg);
|
|
405
|
+
gl.bindVertexArray(meshVao);
|
|
406
|
+
gl.uniform2f(um("res"), canvas.width, canvas.height);
|
|
407
|
+
gl.uniform2f(um("mouse"), mx, my);
|
|
408
|
+
gl.uniform1f(um("p"), p);
|
|
409
|
+
gl.uniform1f(um("time"), clock);
|
|
410
|
+
gl.enable(gl.BLEND);
|
|
411
|
+
gl.blendFunc(gl.ONE_MINUS_DST_COLOR, gl.ONE);
|
|
412
|
+
for (const spread of [2.6, 1]) {
|
|
413
|
+
gl.uniform1f(um("spread"), spread);
|
|
414
|
+
gl.drawElements(gl.TRIANGLES, MESH_U * MESH_W * 6, gl.UNSIGNED_SHORT, 0);
|
|
415
|
+
}
|
|
416
|
+
gl.blendFuncSeparate(gl.ONE, gl.SRC_ALPHA, gl.ZERO, gl.ONE);
|
|
417
|
+
gl.useProgram(prog);
|
|
418
|
+
gl.bindVertexArray(quadVao);
|
|
419
|
+
gl.uniform2f(u("res"), canvas.width, canvas.height);
|
|
420
|
+
gl.uniform2f(u("mouse"), mx, my);
|
|
421
|
+
gl.uniform1f(u("p"), p);
|
|
422
|
+
gl.uniform1f(u("calm"), reduced ? 1 : 0);
|
|
423
|
+
gl.uniform1f(u("time"), clock);
|
|
424
|
+
gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
|
|
425
|
+
gl.disable(gl.BLEND);
|
|
426
|
+
updateCopy(p);
|
|
427
|
+
dirty = false;
|
|
428
|
+
}
|
|
429
|
+
requestAnimationFrame(frame);
|
|
430
|
+
};
|
|
431
|
+
canvas.addEventListener("webglcontextlost", () => root.classList.add("nogl"));
|
|
432
|
+
running = true;
|
|
433
|
+
requestAnimationFrame(frame);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// Any failure (shader, image, lost context) falls back to the gradient; the captions still follow the scroll.
|
|
437
|
+
start().catch(() => {
|
|
438
|
+
root.classList.add("nogl");
|
|
439
|
+
const follow = () => {
|
|
440
|
+
const max = track.offsetHeight - innerHeight;
|
|
441
|
+
updateCopy(max > 0 ? clamp01(scrollY / max) : 0);
|
|
442
|
+
};
|
|
443
|
+
addEventListener("scroll", follow, { passive: true });
|
|
444
|
+
follow();
|
|
445
|
+
});
|
|
446
|
+
})();
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type SiteCtx } from "./site-pages.js";
|
|
2
|
+
/** The plates the film script loads, in the order the shader binds them. */
|
|
3
|
+
export declare const FILM_PLATES: readonly ["human", "m0", "wrong", "m2", "m3"];
|
|
4
|
+
export interface Film {
|
|
5
|
+
css: string;
|
|
6
|
+
script: string;
|
|
7
|
+
styleHash: string;
|
|
8
|
+
scriptHash: string;
|
|
9
|
+
plates: ReadonlyMap<string, Buffer>;
|
|
10
|
+
}
|
|
11
|
+
export declare function loadFilm(dir: string): Film | null;
|
|
12
|
+
export declare const FILM: Film | null;
|
|
13
|
+
/** Headers for one plate. The bytes never depend on the request, so a shared cache may keep them. */
|
|
14
|
+
export declare function plateHeaders(length: number): Record<string, string>;
|
|
15
|
+
export declare function filmPage(film: Film, ctx: SiteCtx): string;
|
|
16
|
+
//# sourceMappingURL=film.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"film.d.ts","sourceRoot":"","sources":["../../src/http/film.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAuB,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEpE,4EAA4E;AAC5E,eAAO,MAAM,WAAW,+CAAgD,CAAC;AAIzE,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAID,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAkBjD;AAED,eAAO,MAAM,IAAI,EAAE,IAAI,GAAG,IAAkE,CAAC;AAO7F,qGAAqG;AACrG,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAUnE;AAgBD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,CA2CzD"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* film.ts — the film: "Intelligent Distance" in five scroll-driven beats, served at /film
|
|
3
|
+
* (the home page at / links to it; see home.ts).
|
|
4
|
+
*
|
|
5
|
+
* The page keeps the site's CSP shape: one inline style and one inline script, each
|
|
6
|
+
* allowed by its sha256 hash, and nothing from another origin. The only extra
|
|
7
|
+
* requests are five same-origin JPEG plates under /film/ (img-src 'self').
|
|
8
|
+
*
|
|
9
|
+
* The assets live beside this file in ./film/ (copied into dist by the build). If
|
|
10
|
+
* they are missing or unreadable, FILM is null and /film is a 404; the home page
|
|
11
|
+
* does not depend on it.
|
|
12
|
+
*
|
|
13
|
+
* Without script the page is a plain stacked document with the same copy and the
|
|
14
|
+
* same links, so agents, crawlers and no-script browsers read the whole story.
|
|
15
|
+
*/
|
|
16
|
+
import { createHash } from "node:crypto";
|
|
17
|
+
import * as fs from "node:fs";
|
|
18
|
+
import { fileURLToPath } from "node:url";
|
|
19
|
+
import { REPO_URL, footerNav } from "./site-pages.js";
|
|
20
|
+
/** The plates the film script loads, in the order the shader binds them. */
|
|
21
|
+
export const FILM_PLATES = ["human", "m0", "wrong", "m2", "m3"];
|
|
22
|
+
/** Largest plate accepted at load; a bigger file means the wrong asset was shipped. */
|
|
23
|
+
const MAX_PLATE_BYTES = 400 * 1024;
|
|
24
|
+
const sha = (s) => `'sha256-${createHash("sha256").update(s, "utf8").digest("base64")}'`;
|
|
25
|
+
export function loadFilm(dir) {
|
|
26
|
+
try {
|
|
27
|
+
// The HTML parser turns CRLF into LF before a CSP hash is checked (Windows checkouts), so hash the LF form.
|
|
28
|
+
const css = fs.readFileSync(`${dir}/film.css`, "utf8").replace(/\r?\n/g, "\n");
|
|
29
|
+
const script = fs.readFileSync(`${dir}/film.js`, "utf8").replace(/\r?\n/g, "\n");
|
|
30
|
+
// Both are inlined: neither may be able to close its own element.
|
|
31
|
+
if (/<\/style/i.test(css) || /<\/script/i.test(script))
|
|
32
|
+
return null;
|
|
33
|
+
const plates = new Map();
|
|
34
|
+
for (const name of FILM_PLATES) {
|
|
35
|
+
const buf = fs.readFileSync(`${dir}/${name}.jpg`);
|
|
36
|
+
const isJpeg = buf.length > 3 && buf[0] === 0xff && buf[1] === 0xd8 && buf[2] === 0xff;
|
|
37
|
+
if (!isJpeg || buf.length > MAX_PLATE_BYTES)
|
|
38
|
+
return null;
|
|
39
|
+
plates.set(`/film/${name}.jpg`, buf);
|
|
40
|
+
}
|
|
41
|
+
return { css, script, styleHash: sha(css), scriptHash: sha(script), plates };
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export const FILM = loadFilm(fileURLToPath(new URL("./film", import.meta.url)));
|
|
48
|
+
// A build without the assets still serves every other page, but the operator must be able to see why /film is gone.
|
|
49
|
+
if (!FILM)
|
|
50
|
+
process.stderr.write("[site] film assets missing or invalid in dist/http/film; /film will return 404\n");
|
|
51
|
+
const esc = (s) => s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
52
|
+
/** Headers for one plate. The bytes never depend on the request, so a shared cache may keep them. */
|
|
53
|
+
export function plateHeaders(length) {
|
|
54
|
+
return {
|
|
55
|
+
"content-type": "image/jpeg",
|
|
56
|
+
"content-length": String(length),
|
|
57
|
+
"x-content-type-options": "nosniff",
|
|
58
|
+
"referrer-policy": "no-referrer",
|
|
59
|
+
"cache-control": "public, max-age=86400",
|
|
60
|
+
"content-security-policy": "default-src 'none'; frame-ancestors 'none'",
|
|
61
|
+
"cross-origin-resource-policy": "same-origin",
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
const BEATS = [
|
|
65
|
+
{ from: "-1", to: "0.13", kicker: "Session 1", h: "Two kinds of intelligence.", first: true,
|
|
66
|
+
p: "You think in intuition and fragments. Your agent thinks in tokens and logic. Intelligent Distance is the gap between what you mean and what it builds." },
|
|
67
|
+
{ from: "0.15", to: "0.27", kicker: "A misunderstanding", h: "It built it well. It was not what you meant.",
|
|
68
|
+
p: "The gap is not a fault in either side. A correction made in one chat is gone by the next session, or the next agent." },
|
|
69
|
+
{ from: "0.29", to: "0.355", kicker: "You correct it", h: "One correction crosses the gap.",
|
|
70
|
+
p: "A correction you approve becomes a rule, with its reason and where it applies." },
|
|
71
|
+
{ from: "0.40", to: "0.58", kicker: "Session 2", h: "It is remembered. By every connected agent.",
|
|
72
|
+
p: "Claude Code, Codex, Cursor, claude.ai: each one starts from what you taught the last one." },
|
|
73
|
+
{ from: "0.66", to: "0.80", kicker: "Session 50", h: "Each time it matters, it is measured.",
|
|
74
|
+
p: "Heeded, or repeated. A rule that keeps failing gets rewritten. Each outcome narrows the distance." },
|
|
75
|
+
];
|
|
76
|
+
export function filmPage(film, ctx) {
|
|
77
|
+
const beats = BEATS.map((b) => `<section class="beat" data-from="${b.from}" data-to="${b.to}">` +
|
|
78
|
+
(b.kicker ? `<p class="kicker">${esc(b.kicker)}</p>` : "") +
|
|
79
|
+
`<${b.first ? "h1" : "h2"}>${esc(b.h)}</${b.first ? "h1" : "h2"}>` +
|
|
80
|
+
(b.p ? `<p>${esc(b.p)}</p>` : "") +
|
|
81
|
+
`</section>`).join("");
|
|
82
|
+
const description = "The film: Intelligent Distance in five scenes. AgentRecall narrows the distance between you and your AI agents: every correction you make is remembered by Claude Code, Codex, Cursor and any MCP client, and measured each time it matters. Hosted or fully local.";
|
|
83
|
+
return `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">` +
|
|
84
|
+
`<title>The film: Intelligent Distance in five scenes | AgentRecall</title>` +
|
|
85
|
+
`<meta name="description" content="${esc(description)}">` +
|
|
86
|
+
`<meta name="color-scheme" content="dark"><meta name="robots" content="index,follow">` +
|
|
87
|
+
`<link rel="icon" href="/favicon.svg" type="image/svg+xml">` +
|
|
88
|
+
`<link rel="alternate" type="text/markdown" href="/connect.md" title="Connect an agent (for agents)">` +
|
|
89
|
+
`<link rel="alternate" type="text/markdown" href="/local.md" title="Run locally (for agents)">` +
|
|
90
|
+
`<style>${film.css}</style></head><body>` +
|
|
91
|
+
`<a class="skip" href="#doors">Skip to content</a>` +
|
|
92
|
+
`<canvas id="stage" aria-hidden="true"></canvas>` +
|
|
93
|
+
`<header class="top"><a class="brand" href="/" aria-label="AgentRecall home"><span class="mark"></span>AgentRecall</a>` +
|
|
94
|
+
`<nav aria-label="Main"><a class="btn sm" href="/connect">Connect an agent</a><a class="btn sm alt" href="/local">Run it locally</a><a href="${REPO_URL}" rel="noopener">GitHub</a></nav></header>` +
|
|
95
|
+
`<div class="meter" aria-hidden="true"><span id="session">SESSION 01</span><span id="dist">DISTANCE 1.00</span></div>` +
|
|
96
|
+
`<div class="hint" aria-hidden="true">Scroll</div><a class="skipfilm" href="#doors">Skip the film</a>` +
|
|
97
|
+
`<main id="track">${beats}` +
|
|
98
|
+
`<section class="beat end" data-from="0.86" data-to="2">` +
|
|
99
|
+
`<h2>The distance never closes.<br>It gets measured, and it gets shorter.</h2>` +
|
|
100
|
+
`<p class="cta"><a class="btn" href="/connect">Connect an agent</a><a class="btn alt" href="/local">Run it locally</a></p>` +
|
|
101
|
+
`<p class="agentnote">Are you an AI agent? Read <a href="/connect.md">/connect.md</a> or <a href="/local.md">/local.md</a>.</p>` +
|
|
102
|
+
`</section></main>` +
|
|
103
|
+
`<div class="after"><div class="inner">` +
|
|
104
|
+
`<section class="doors" id="doors" aria-label="Choose how to use AgentRecall">` +
|
|
105
|
+
`<article class="door human"><h2>Connect an agent</h2><p>We host the memory. Sign in with GitHub, get your ID, add one URL to your agent.</p>` +
|
|
106
|
+
`<ul><li>Ready in about a minute</li><li>Free, stored in Frankfurt (EU)</li><li>One memory across devices and agents</li></ul>` +
|
|
107
|
+
`<a class="btn" href="/connect">Connect an agent</a></article>` +
|
|
108
|
+
`<article class="door machine"><h2>Run it locally</h2><p>Everything stays on your machine, as plain markdown files you can read.</p>` +
|
|
109
|
+
`<ul><li>Works fully offline</li><li>One npx command, or let your agent install it</li><li>Optional hooks run the loop for you</li></ul>` +
|
|
110
|
+
`<a class="btn alt" href="/local">Install locally</a></article></section>` +
|
|
111
|
+
`<section class="how"><h2>How the distance gets shorter</h2><ol class="steps">` +
|
|
112
|
+
`<li><strong>You correct an agent</strong><span>The correction becomes a rule with its reason and where it applies. On the hosted server you approve it first.</span></li>` +
|
|
113
|
+
`<li><strong>Every agent loads it</strong><span>At the start of each session your agents receive the same rules and the state of your project.</span></li>` +
|
|
114
|
+
`<li><strong>Each outcome is recorded</strong><span>When the situation comes back, the rule is marked heeded or repeated. Rules that keep failing get rewritten.</span></li></ol></section>` +
|
|
115
|
+
`<footer class="foot"><span>AgentRecall is open source (MIT). Memory you host here is private to your account.</span>` +
|
|
116
|
+
footerNav() + `</footer>` +
|
|
117
|
+
`</div></div><script>${film.script}</script></body></html>`;
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=film.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"film.js","sourceRoot":"","sources":["../../src/http/film.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAgB,MAAM,iBAAiB,CAAC;AAEpE,4EAA4E;AAC5E,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AACzE,uFAAuF;AACvF,MAAM,eAAe,GAAG,GAAG,GAAG,IAAI,CAAC;AAUnC,MAAM,GAAG,GAAG,CAAC,CAAS,EAAU,EAAE,CAAC,WAAW,UAAU,CAAC,QAAQ,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