Alexander Whitestone
+AI infrastructure & Lightning-native agents.
+ enter +diff --git a/artifacts/api-server/src/app.ts b/artifacts/api-server/src/app.ts index c0761f4..bb41038 100644 --- a/artifacts/api-server/src/app.ts +++ b/artifacts/api-server/src/app.ts @@ -58,7 +58,117 @@ const towerDist = path.join(__dirname, "..", "..", "..", "the-matrix", "dist"); app.use("/tower", express.static(towerDist)); app.get("/tower/*splat", (_req, res) => res.sendFile(path.join(towerDist, "index.html"))); -app.get("/", (_req, res) => res.redirect("/tower")); +app.get("/", (_req, res) => { + res.setHeader("Content-Type", "text/html"); + res.send(` + +
+ + +AI infrastructure & Lightning-native agents.
+ enter +0){const s=e[n[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,a=s.length;r(t.far-t.near)**2))&&(Rl.copy(r).invert(),ei.copy(t.ray).applyMatrix4(Rl),!(n.boundingBox!==null&&ei.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(t,e,ei)))}_computeIntersections(t,e,n){let s;const r=this.geometry,a=this.material,o=r.index,l=r.attributes.position,c=r.attributes.uv,h=r.attributes.uv1,d=r.attributes.normal,f=r.groups,p=r.drawRange;if(o!==null)if(Array.isArray(a))for(let _=0,v=f.length;_0?t.max.x:t.min.x,ir.y=s.normal.y>0?t.max.y:t.min.y,ir.z=s.normal.z>0?t.max.z:t.min.z,s.distanceToPoint(ir)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}class dh extends $n{constructor(t){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new Dt(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this.fog=t.fog,this}}const Rr=new A,Cr=new A,Nl=new ne,ms=new Us,sr=new Is,_a=new A,Fl=new A;class ld extends pe{constructor(t=new Se,e=new dh){super(),this.isLine=!0,this.type="Line",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t,e){return super.copy(t,e),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}computeLineDistances(){const t=this.geometry;if(t.index===null){const e=t.attributes.position,n=[0];for(let s=1,r=e.count;s0||S!==0)&&(h.push(x,P,O),w+=3),(e>0||S!==r-1)&&(h.push(P,k,O),w+=3)}c.addGroup(u,w,0),u+=w}function E(y){const D=_,w=new rt,R=new A;let C=0;const S=y===!0?t:e,x=y===!0?1:-1;for(let k=1;k<=s;k++)d.push(0,m*x,0),f.push(0,x,0),p.push(.5,.5),_++;const P=_;for(let k=0;k<=s;k++){const X=k/s*l+o,j=Math.cos(X),G=Math.sin(X);R.x=S*G,R.y=m*x,R.z=S*j,d.push(R.x,R.y,R.z),f.push(0,x,0),w.x=j*.5+.5,w.y=G*.5*x+.5,p.push(w.x,w.y),_++}for(let k=0;k.9&&R<.1&&(E<.2&&(a[T+0]+=1),y<.2&&(a[T+2]+=1),D<.2&&(a[T+4]+=1))}}function f(T){r.push(T.x,T.y,T.z)}function p(T,E){const y=T*3;E.x=t[y+0],E.y=t[y+1],E.z=t[y+2]}function _(){const T=new A,E=new A,y=new A,D=new A,w=new rt,R=new rt,C=new rt;for(let S=0,x=0;S