vestige/apps/dashboard/build/_app/immutable/chunks/DAau0uzT.js
Sam Valladares 844b91a804 feat(dashboard): every organ is a living WebGPU field (LivingFieldPass)
Turn all 17 sparse organs from text-on-black voids into full-bleed, moving,
bioluminescent WebGPU fields. Each cell maps to a real backend fact; verified
live on the real brain with a decoded fill% + motion + zero-error probe.

Foundation: one reusable LivingFieldPass (src/lib/observatory/field/) does
splat -> separable-blur (render passes) -> membrane base coat -> HDR cells with
orbital drift and a CPU pick-mirror. Each organ writes a ~20-line data->cells
mapper (cell-layout.ts: layoutGalaxy / layoutRings / FIELD_HUE).

Organs brought alive (fill% before -> after, all zero WebGPU errors):
stats 0.8->80.9, observatory 10.8->81.4, graph 12.3->82.4, memories ->78.4,
blackbox 18.2->83.3, contradictions 1.6->69.6, dreams 0.3->64.5,
settings 2.7->76.4, reasoning 2.7->39.2, patterns 7.1->45.6,
activation 10->64.9, feed ->89, explore ->83.3, intentions ->66.6,
importance ->73.7, memory-prs ->74.4, schedule ->37.1.

Backend surfaces: add api.memoryChangelog() + ChangelogResponse; surface
suppress/unsuppress on the memories field (shift/alt-click -> scar).

Tests: palace-launch-gate now asserts fillPct>30 + isAnimating (not just
non-black), with a longer settle for reasoning's deep_reference and a raised
timeout for the curated tour. all-routes-smoke treats settings as the WebGPU
field it now is. Gates green: check 0/0, build ok, palace-launch-gate 22/22 +
tour, all-routes-smoke 20/20.

Protected work untouched: MemoryCinema, graph/cinema, observatory scene
shaders, node-renderer, palace-map.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-12 06:20:35 +07:00

2 lines
9.6 KiB
JavaScript

var ze=Object.defineProperty;var be=t=>{throw TypeError(t)};var Ce=(t,e,s)=>e in t?ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var Q=(t,e,s)=>Ce(t,typeof e!="symbol"?e+"":e,s),ae=(t,e,s)=>e.has(t)||be("Cannot "+s);var r=(t,e,s)=>(ae(t,e,"read from private field"),s?s.call(t):e.get(t)),_=(t,e,s)=>e.has(t)?be("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),o=(t,e,s,n)=>(ae(t,e,"write to private field"),n?n.call(t,s):e.set(t,s),s),b=(t,e,s)=>(ae(t,e,"access private method"),s);import{aU as He,g as Re,z as Pe,y as G,aV as ye,aw as $,at as Ae,I as L,w as Y,a5 as C,aW as ve,i as Ve,ai as We,ak as je,aX as we,N as I,A as De,aY as oe,M as fe,O as $e,aZ as me,a_ as Je,a$ as Ee,b0 as Ge,b1 as Qe,b2 as te,b3 as se,b4 as Te,b5 as Ue,b6 as Ne,Q as H,an as Ze,L as ue,G as re,af as Ke,al as Xe,b7 as U,E as et,B as tt,b8 as st,b9 as rt,t as nt,ba as it,a0 as at,bb as ce,J as ot,C as Oe,aG as ft,D as ut,aK as le,F as Z,bc as ct,az as lt,bd as ht,aq as dt,p as _t,aL as pt,am as gt,aJ as bt,b as yt,Z as P,aQ as vt,S as wt,j as mt,a9 as Et,aR as Tt,be as St,x as Rt}from"./CGq8RnJq.js";function ke(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function At(t){let e=0,s=Ae(0),n;return()=>{He()&&(Re(s),Pe(()=>(e===0&&(n=G(()=>t(()=>ye(s)))),e+=1,()=>{$(()=>{e-=1,e===0&&(n==null||n(),n=void 0,ye(s))})})))}}var Dt=et|tt;function Nt(t,e,s,n){new Ot(t,e,s,n)}var w,J,R,q,y,A,m,T,O,x,M,V,W,j,k,ne,h,Me,Fe,Ie,he,X,ee,de;class Ot{constructor(e,s,n,f){_(this,h);Q(this,"parent");Q(this,"is_pending",!1);Q(this,"transform_error");_(this,w);_(this,J,Y?L:null);_(this,R);_(this,q);_(this,y);_(this,A,null);_(this,m,null);_(this,T,null);_(this,O,null);_(this,x,0);_(this,M,0);_(this,V,!1);_(this,W,new Set);_(this,j,new Set);_(this,k,null);_(this,ne,At(()=>(o(this,k,Ae(r(this,x))),()=>{o(this,k,null)})));var i;o(this,w,e),o(this,R,s),o(this,q,u=>{var l=C;l.b=this,l.f|=ve,n(u)}),this.parent=C.b,this.transform_error=f??((i=this.parent)==null?void 0:i.transform_error)??(u=>u),o(this,y,Ve(()=>{if(Y){const u=r(this,J);We();const l=u.data===je;if(u.data.startsWith(we)){const a=JSON.parse(u.data.slice(we.length));b(this,h,Fe).call(this,a)}else l?b(this,h,Ie).call(this):b(this,h,Me).call(this)}else b(this,h,he).call(this)},Dt)),Y&&o(this,w,L)}defer_effect(e){Qe(e,r(this,W),r(this,j))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!r(this,R).pending}update_pending_count(e){b(this,h,de).call(this,e),o(this,x,r(this,x)+e),!(!r(this,k)||r(this,V))&&(o(this,V,!0),$(()=>{o(this,V,!1),r(this,k)&&Ze(r(this,k),r(this,x))}))}get_effect_pending(){return r(this,ne).call(this),Re(r(this,k))}error(e){var s=r(this,R).onerror;let n=r(this,R).failed;if(!s&&!n)throw e;r(this,A)&&(ue(r(this,A)),o(this,A,null)),r(this,m)&&(ue(r(this,m)),o(this,m,null)),r(this,T)&&(ue(r(this,T)),o(this,T,null)),Y&&(re(r(this,J)),Ke(),re(Xe()));var f=!1,i=!1;const u=()=>{if(f){rt();return}f=!0,i&&st(),r(this,T)!==null&&fe(r(this,T),()=>{o(this,T,null)}),b(this,h,ee).call(this,()=>{oe.ensure(),b(this,h,he).call(this)})},l=c=>{try{i=!0,s==null||s(c,u),i=!1}catch(a){U(a,r(this,y)&&r(this,y).parent)}n&&o(this,T,b(this,h,ee).call(this,()=>{oe.ensure();try{return I(()=>{var a=C;a.b=this,a.f|=ve,n(r(this,w),()=>c,()=>u)})}catch(a){return U(a,r(this,y).parent),null}}))};$(()=>{var c;try{c=this.transform_error(e)}catch(a){U(a,r(this,y)&&r(this,y).parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(l,a=>U(a,r(this,y)&&r(this,y).parent)):l(c)})}}w=new WeakMap,J=new WeakMap,R=new WeakMap,q=new WeakMap,y=new WeakMap,A=new WeakMap,m=new WeakMap,T=new WeakMap,O=new WeakMap,x=new WeakMap,M=new WeakMap,V=new WeakMap,W=new WeakMap,j=new WeakMap,k=new WeakMap,ne=new WeakMap,h=new WeakSet,Me=function(){try{o(this,A,I(()=>r(this,q).call(this,r(this,w))))}catch(e){this.error(e)}},Fe=function(e){const s=r(this,R).failed;s&&o(this,T,I(()=>{s(r(this,w),()=>e,()=>()=>{})}))},Ie=function(){const e=r(this,R).pending;e&&(this.is_pending=!0,o(this,m,I(()=>e(r(this,w)))),$(()=>{var s=o(this,O,document.createDocumentFragment()),n=De();s.append(n),o(this,A,b(this,h,ee).call(this,()=>(oe.ensure(),I(()=>r(this,q).call(this,n))))),r(this,M)===0&&(r(this,w).before(s),o(this,O,null),fe(r(this,m),()=>{o(this,m,null)}),b(this,h,X).call(this))}))},he=function(){try{if(this.is_pending=this.has_pending_snippet(),o(this,M,0),o(this,x,0),o(this,A,I(()=>{r(this,q).call(this,r(this,w))})),r(this,M)>0){var e=o(this,O,document.createDocumentFragment());$e(r(this,A),e);const s=r(this,R).pending;o(this,m,I(()=>s(r(this,w))))}else b(this,h,X).call(this)}catch(s){this.error(s)}},X=function(){this.is_pending=!1;for(const e of r(this,W))me(e,Je),Ee(e);for(const e of r(this,j))me(e,Ge),Ee(e);r(this,W).clear(),r(this,j).clear()},ee=function(e){var s=C,n=Ne,f=H;te(r(this,y)),se(r(this,y)),Te(r(this,y).ctx);try{return e()}catch(i){return Ue(i),null}finally{te(s),se(n),Te(f)}},de=function(e){var s;if(!this.has_pending_snippet()){this.parent&&b(s=this.parent,h,de).call(s,e);return}o(this,M,r(this,M)+e),r(this,M)===0&&(b(this,h,X).call(this),r(this,m)&&fe(r(this,m),()=>{o(this,m,null)}),r(this,O)&&(r(this,w).before(r(this,O)),o(this,O,null)))};const kt=["touchstart","touchmove"];function Mt(t){return kt.includes(t)}const B=Symbol("events"),Le=new Set,_e=new Set;function Ft(t,e,s,n={}){function f(i){if(n.capture||pe.call(e,i),!i.cancelBubble)return it(()=>s==null?void 0:s.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?$(()=>{e.addEventListener(t,f,n)}):e.addEventListener(t,f,n),f}function Ht(t,e,s,n,f){var i={capture:n,passive:f},u=Ft(t,e,s,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&nt(()=>{e.removeEventListener(t,u,i)})}function Pt(t,e,s){(e[B]??(e[B]={}))[t]=s}function Vt(t){for(var e=0;e<t.length;e++)Le.add(t[e]);for(var s of _e)s(t)}let Se=null;function pe(t){var N,v;var e=this,s=e.ownerDocument,n=t.type,f=((N=t.composedPath)==null?void 0:N.call(t))||[],i=f[0]||t.target;Se=t;var u=0,l=Se===t&&t[B];if(l){var c=f.indexOf(l);if(c!==-1&&(e===document||e===window)){t[B]=e;return}var a=f.indexOf(e);if(a===-1)return;c<=a&&(u=c)}if(i=f[u]||t.target,i!==e){at(t,"currentTarget",{configurable:!0,get(){return i||s}});var S=Ne,D=C;se(null),te(null);try{for(var E,g=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var p=(v=i[B])==null?void 0:v[n];p!=null&&(!i.disabled||t.target===i)&&p.call(i,t)}catch(F){E?g.push(F):E=F}if(t.cancelBubble||d===e||d===null)break;i=d}if(E){for(let F of g)queueMicrotask(()=>{throw F});throw E}}finally{t[B]=e,delete t.currentTarget,se(S),te(D)}}}function Wt(t,e){var s=e==null?"":typeof e=="object"?e+"":e;s!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=s,t.nodeValue=s+"")}function Ye(t,e){return Be(t,e)}function It(t,e){ce(),e.intro=e.intro??!1;const s=e.target,n=Y,f=L;try{for(var i=ot(s);i&&(i.nodeType!==Oe||i.data!==ft);)i=ut(i);if(!i)throw le;Z(!0),re(i);const u=Be(t,{...e,anchor:i});return Z(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw u;return u!==le&&console.warn("Failed to hydrate: ",u),e.recover===!1&&ct(),ce(),lt(s),Z(!1),Ye(t,e)}finally{Z(n),re(f)}}const K=new Map;function Be(t,{target:e,anchor:s,props:n={},events:f,context:i,intro:u=!0,transformError:l}){ce();var c=void 0,a=ht(()=>{var S=s??e.appendChild(De());Nt(S,{pending:()=>{}},g=>{_t({});var d=H;if(i&&(d.c=i),f&&(n.$$events=f),Y&&pt(g,null),c=t(g,n)||{},Y&&(C.nodes.end=L,L===null||L.nodeType!==Oe||L.data!==gt))throw bt(),le;yt()},l);var D=new Set,E=g=>{for(var d=0;d<g.length;d++){var p=g[d];if(!D.has(p)){D.add(p);var N=Mt(p);for(const ie of[e,document]){var v=K.get(ie);v===void 0&&(v=new Map,K.set(ie,v));var F=v.get(p);F===void 0?(ie.addEventListener(p,pe,{passive:N}),v.set(p,1)):v.set(p,F+1)}}}};return E(dt(Le)),_e.add(E),()=>{var N;for(var g of D)for(const v of[e,document]){var d=K.get(v),p=d.get(g);--p==0?(v.removeEventListener(g,pe),d.delete(g),d.size===0&&K.delete(v)):d.set(g,p)}_e.delete(E),S!==s&&((N=S.parentNode)==null||N.removeChild(S))}});return ge.set(c,a),c}let ge=new WeakMap;function Lt(t,e){const s=ge.get(t);return s?(ge.delete(t),s(e)):Promise.resolve()}function qe(t,e,s){if(t==null)return e(void 0),s&&s(void 0),P;const n=G(()=>t.subscribe(e,s));return n.unsubscribe?()=>n.unsubscribe():n}const z=[];function Yt(t,e){return{subscribe:Bt(t,e).subscribe}}function Bt(t,e=P){let s=null;const n=new Set;function f(l){if(vt(t,l)&&(t=l,s)){const c=!z.length;for(const a of n)a[1](),z.push(a,t);if(c){for(let a=0;a<z.length;a+=2)z[a][0](z[a+1]);z.length=0}}}function i(l){f(l(t))}function u(l,c=P){const a=[l,c];return n.add(a),n.size===1&&(s=e(f,i)||P),l(t),()=>{n.delete(a),n.size===0&&s&&(s(),s=null)}}return{set:f,update:i,subscribe:u}}function jt(t,e,s){const n=!Array.isArray(t),f=n?[t]:t;if(!f.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=e.length<2;return Yt(s,(u,l)=>{let c=!1;const a=[];let S=0,D=P;const E=()=>{if(S)return;D();const d=e(n?a[0]:a,u,l);i?u(d):D=typeof d=="function"?d:P},g=f.map((d,p)=>qe(d,N=>{a[p]=N,S&=~(1<<p),c&&E()},()=>{S|=1<<p}));return c=!0,E(),function(){wt(g),D(),c=!1}})}function $t(t){let e;return qe(t,s=>e=s)(),e}function xe(t){H===null&&ke(),Et&&H.l!==null?xt(H).m.push(t):mt(()=>{const e=G(t);if(typeof e=="function")return e})}function qt(t){H===null&&ke(),xe(()=>()=>G(t))}function xt(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Jt=Object.freeze(Object.defineProperty({__proto__:null,flushSync:Tt,hydrate:It,mount:Ye,onDestroy:qt,onMount:xe,settled:St,tick:Rt,unmount:Lt,untrack:G},Symbol.toStringTag,{value:"Module"}));export{qt as a,Pt as b,jt as c,Vt as d,Ht as e,qe as f,$t as g,It as h,Jt as i,Ye as m,xe as o,Wt as s,Lt as u,Bt as w};