visual-remote 0.1.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/README.md +277 -0
- package/apps/cli/dist/index.js +5280 -0
- package/package.json +61 -0
- package/packages/overlay/dist/client.js +775 -0
- package/packages/overlay/dist/viewer.js +1086 -0
|
@@ -0,0 +1,1086 @@
|
|
|
1
|
+
var xe,v,rt,tn,V,Ze,it,ot,Ae,he,ne,at,Fe,Ce,Pe,nn,me={},ve=[],rn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ye=Array.isArray;function H(e,t){for(var n in t)e[n]=t[n];return e}function qe(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function on(e,t,n){var r,s,o,c={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:c[o]=t[o];if(arguments.length>2&&(c.children=arguments.length>3?xe.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)c[o]===void 0&&(c[o]=e.defaultProps[o]);return ge(e,c,r,s,null)}function ge(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++rt,__i:-1,__u:0};return s==null&&v.vnode!=null&&v.vnode(o),o}function W(e){return e.children}function _e(e,t){this.props=e,this.context=t}function Z(e,t){if(t==null)return e.__?Z(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Z(e):null}function an(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],s=[],o=H({},t);o.__v=t.__v+1,v.vnode&&v.vnode(o),je(e.__P,o,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??Z(t),!!(32&t.__u),s),o.__v=t.__v,o.__.__k[o.__i]=o,ut(r,o,s),t.__e=t.__=null,o.__e!=n&&st(o)}}function st(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),st(e)}function et(e){(!e.__d&&(e.__d=!0)&&V.push(e)&&!be.__r++||Ze!=v.debounceRendering)&&((Ze=v.debounceRendering)||it)(be)}function be(){try{for(var e,t=1;V.length;)V.length>t&&V.sort(ot),e=V.shift(),t=V.length,an(e)}finally{V.length=be.__r=0}}function lt(e,t,n,r,s,o,c,d,f,l,h){var b,a,p,x,w,k,y,g=r&&r.__k||ve,C=t.length;for(f=sn(n,t,g,f,C),b=0;b<C;b++)(p=n.__k[b])!=null&&(a=p.__i!=-1&&g[p.__i]||me,p.__i=b,k=je(e,p,a,s,o,c,d,f,l,h),x=p.__e,p.ref&&a.ref!=p.ref&&(a.ref&&Me(a.ref,null,p),h.push(p.ref,p.__c||x,p)),w==null&&x!=null&&(w=x),(y=!!(4&p.__u))||a.__k===p.__k?(f=ct(p,f,e,y),y&&a.__e&&(a.__e=null)):typeof p.type=="function"&&k!==void 0?f=k:x&&(f=x.nextSibling),p.__u&=-7);return n.__e=w,f}function sn(e,t,n,r,s){var o,c,d,f,l,h=n.length,b=h,a=0;for(e.__k=new Array(s),o=0;o<s;o++)(c=t[o])!=null&&typeof c!="boolean"&&typeof c!="function"?(typeof c=="string"||typeof c=="number"||typeof c=="bigint"||c.constructor==String?c=e.__k[o]=ge(null,c,null,null,null):ye(c)?c=e.__k[o]=ge(W,{children:c},null,null,null):c.constructor===void 0&&c.__b>0?c=e.__k[o]=ge(c.type,c.props,c.key,c.ref?c.ref:null,c.__v):e.__k[o]=c,f=o+a,c.__=e,c.__b=e.__b+1,d=null,(l=c.__i=ln(c,n,f,b))!=-1&&(b--,(d=n[l])&&(d.__u|=2)),d==null||d.__v==null?(l==-1&&(s>h?a--:s<h&&a++),typeof c.type!="function"&&(c.__u|=4)):l!=f&&(l==f-1?a--:l==f+1?a++:(l>f?a--:a++,c.__u|=4))):e.__k[o]=null;if(b)for(o=0;o<h;o++)(d=n[o])!=null&&(2&d.__u)==0&&(d.__e==r&&(r=Z(d)),ft(d,d));return r}function ct(e,t,n,r){var s,o;if(typeof e.type=="function"){for(s=e.__k,o=0;s&&o<s.length;o++)s[o]&&(s[o].__=e,t=ct(s[o],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Z(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ln(e,t,n,r){var s,o,c,d=e.key,f=e.type,l=t[n],h=l!=null&&(2&l.__u)==0;if(l===null&&d==null||h&&d==l.key&&f==l.type)return n;if(r>(h?1:0)){for(s=n-1,o=n+1;s>=0||o<t.length;)if((l=t[c=s>=0?s--:o++])!=null&&(2&l.__u)==0&&d==l.key&&f==l.type)return c}return-1}function tt(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||rn.test(t)?n:n+"px"}function fe(e,t,n,r,s){var o,c;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||tt(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||tt(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(at,"$1")),c=t.toLowerCase(),t=c in e||t=="onFocusOut"||t=="onFocusIn"?c.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n[ne]=r[ne]:(n[ne]=Fe,e.addEventListener(t,o?Pe:Ce,o)):e.removeEventListener(t,o?Pe:Ce,o);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function nt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[he]==null)t[he]=Fe++;else if(t[he]<n[ne])return;return n(v.event?v.event(t):t)}}}function je(e,t,n,r,s,o,c,d,f,l){var h,b,a,p,x,w,k,y,g,C,K,L,D,B,G,N,j=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(f=!!(32&n.__u),o=[d=t.__e=n.__e]),(h=v.__b)&&h(t);e:if(typeof j=="function"){b=c.length;try{if(g=t.props,C=j.prototype&&j.prototype.render,K=(h=j.contextType)&&r[h.__c],L=h?K?K.props.value:h.__:r,n.__c?y=(a=t.__c=n.__c).__=a.__E:(C?t.__c=a=new j(g,L):(t.__c=a=new _e(g,L),a.constructor=j,a.render=dn),K&&K.sub(a),a.state||(a.state={}),a.__n=r,p=a.__d=!0,a.__h=[],a._sb=[]),C&&a.__s==null&&(a.__s=a.state),C&&j.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=H({},a.__s)),H(a.__s,j.getDerivedStateFromProps(g,a.__s))),x=a.props,w=a.state,a.__v=t,p)C&&j.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),C&&a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(C&&j.getDerivedStateFromProps==null&&g!==x&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(g,L),t.__v==n.__v||!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(g,a.__s,L)===!1){t.__v!=n.__v&&(a.props=g,a.state=a.__s,a.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(O){O&&(O.__=t)}),ve.push.apply(a.__h,a._sb),a._sb=[],a.__h.length&&c.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(g,a.__s,L),C&&a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(x,w,k)})}if(a.context=L,a.props=g,a.__P=e,a.__e=!1,D=v.__r,B=0,C)a.state=a.__s,a.__d=!1,D&&D(t),h=a.render(a.props,a.state,a.context),ve.push.apply(a.__h,a._sb),a._sb=[];else do a.__d=!1,D&&D(t),h=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++B<25);a.state=a.__s,a.getChildContext!=null&&(r=H(H({},r),a.getChildContext())),C&&!p&&a.getSnapshotBeforeUpdate!=null&&(k=a.getSnapshotBeforeUpdate(x,w)),G=h!=null&&h.type===W&&h.key==null?pt(h.props.children):h,d=lt(e,ye(G)?G:[G],t,n,r,s,o,c,d,f,l),a.base=t.__e,t.__u&=-161,a.__h.length&&c.push(a),y&&(a.__E=a.__=null)}catch(O){if(c.length=b,t.__v=null,f||o!=null){if(O.then){for(t.__u|=f?160:128;d&&d.nodeType==8&&d.nextSibling;)d=d.nextSibling;o!=null&&(o[o.indexOf(d)]=null),t.__e=d}else if(o!=null)for(N=o.length;N--;)qe(o[N])}else t.__e=n.__e;t.__k==null&&(t.__k=n.__k||[]),O.then||dt(t),v.__e(O,t,n)}}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):d=t.__e=cn(n.__e,t,n,r,s,o,c,f,l);return(h=v.diffed)&&h(t),128&t.__u?void 0:d}function dt(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(dt))}function ut(e,t,n){for(var r=0;r<n.length;r++)Me(n[r],n[++r],n[++r]);v.__c&&v.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){v.__e(o,s.__v)}})}function pt(e){return typeof e!="object"||e==null||e.__b>0?e:ye(e)?e.map(pt):e.constructor!==void 0?null:H({},e)}function cn(e,t,n,r,s,o,c,d,f){var l,h,b,a,p,x,w,k=n.props||me,y=t.props,g=t.type;if(g=="svg"?s="http://www.w3.org/2000/svg":g=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((p=o[l])&&"setAttribute"in p==!!g&&(g?p.localName==g:p.nodeType==3)){e=p,o[l]=null;break}}if(e==null){if(g==null)return document.createTextNode(y);e=document.createElementNS(s,g,y.is&&y),d&&(v.__m&&v.__m(t,o),d=!1),o=null}if(g==null)k===y||d&&e.data==y||(e.data=y);else{if(o=g=="textarea"&&y.defaultValue!=null?null:o&&xe.call(e.childNodes),!d&&o!=null)for(k={},l=0;l<e.attributes.length;l++)k[(p=e.attributes[l]).name]=p.value;for(l in k)p=k[l],l=="dangerouslySetInnerHTML"?b=p:l=="children"||l in y||l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y||fe(e,l,null,p,s);for(l in y)p=y[l],l=="children"?a=p:l=="dangerouslySetInnerHTML"?h=p:l=="value"?x=p:l=="checked"?w=p:d&&typeof p!="function"||k[l]===p||fe(e,l,p,k[l],s);if(h)d||b&&(h.__html==b.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(b&&(e.innerHTML=""),lt(t.type=="template"?e.content:e,ye(a)?a:[a],t,n,r,g=="foreignObject"?"http://www.w3.org/1999/xhtml":s,o,c,o?o[0]:n.__k&&Z(n,0),d,f),o!=null)for(l=o.length;l--;)qe(o[l]);d&&g!="textarea"||(l="value",g=="progress"&&x==null?e.removeAttribute("value"):x!=null&&(x!==e[l]||g=="progress"&&!x||g=="option"&&x!=k[l])&&fe(e,l,x,k[l],s),l="checked",w!=null&&w!=e[l]&&fe(e,l,w,k[l],s))}return e}function Me(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(s){v.__e(s,n)}}function ft(e,t,n){var r,s;if(v.unmount&&v.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Me(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){v.__e(o,t)}r.base=r.__P=r.__n=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&ft(r[s],t,n||typeof e.type!="function");n||qe(e.__e),e.__c=e.__=e.__e=void 0}function dn(e,t,n){return this.constructor(e,n)}function ht(e,t,n){var r,s,o,c;t==document&&(t=document.documentElement),v.__&&v.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],c=[],je(t,e=(!r&&n||t).__k=on(W,null,[e]),s||me,me,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?xe.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r,c),ut(o,e,c),e.props.children=null}xe=ve.slice,v={__e:function(e,t,n,r){for(var s,o,c;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),c=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),c=s.__d),c)return s.__E=s}catch(d){e=d}throw e}},rt=0,tn=function(e){return e!=null&&e.constructor===void 0},_e.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=H({},this.state),typeof e=="function"&&(e=e(H({},n),this.props)),e&&H(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),et(this))},_e.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),et(this))},_e.prototype.render=W,V=[],it=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ot=function(e,t){return e.__v.__b-t.__v.__b},be.__r=0,Ae=Math.random().toString(8),he="__d"+Ae,ne="__a"+Ae,at=/(PointerCapture)$|Capture$/i,Fe=0,Ce=nt(!1),Pe=nt(!0),nn=0;var re,T,ze,gt,ie=0,wt=[],I=v,_t=I.__b,mt=I.__r,vt=I.diffed,bt=I.__c,xt=I.unmount,yt=I.__;function Le(e,t){I.__h&&I.__h(T,e,ie||t),ie=0;var n=T.__H||(T.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function F(e){return ie=1,un(Tt,e)}function un(e,t,n){var r=Le(re++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Tt(void 0,t),function(d){var f=r.__N?r.__N[0]:r.__[0],l=r.t(f,d);f!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=T,!T.__f)){var s=function(d,f,l){if(!r.__c.__H)return!0;var h=!1,b=r.__c.props!==d;if(r.__c.__H.__.some(function(p){if(p.__N){h=!0;var x=p.__[0];p.__=p.__N,p.__N=void 0,x!==p.__[0]&&(b=!0)}}),o){var a=o.call(this,d,f,l);return h?a||b:a}return!h||b};T.__f=!0;var o=T.shouldComponentUpdate,c=T.componentWillUpdate;T.componentWillUpdate=function(d,f,l){if(this.__e){var h=o;o=void 0,s(d,f,l),o=h}c&&c.call(this,d,f,l)},T.shouldComponentUpdate=s}return r.__N||r.__}function oe(e,t){var n=Le(re++,3);!I.__s&&St(n.__H,t)&&(n.__=e,n.u=t,T.__H.__h.push(n))}function U(e){return ie=5,J(function(){return{current:e}},[])}function J(e,t){var n=Le(re++,7);return St(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ee(e,t){return ie=8,J(function(){return e},t)}function pn(){for(var e;e=wt.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(ke),t.__h.some(De),t.__h=[]}catch(n){t.__h=[],I.__e(n,e.__v)}}}I.__b=function(e){T=null,_t&&_t(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),yt&&yt(e,t)},I.__r=function(e){mt&&mt(e),re=0;var t=(T=e.__c).__H;t&&(ze===T?(t.__h=[],T.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(ke),t.__h.some(De),t.__h=[],re=0)),ze=T},I.diffed=function(e){vt&&vt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(wt.push(t)!==1&>===I.requestAnimationFrame||((gt=I.requestAnimationFrame)||fn)(pn)),t.__H.__.some(function(n){n.u&&(n.__H=n.u,n.u=void 0)})),ze=T=null},I.__c=function(e,t){t.some(function(n){try{n.__h.some(ke),n.__h=n.__h.filter(function(r){return!r.__||De(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],I.__e(r,n.__v)}}),bt&&bt(e,t)},I.unmount=function(e){xt&&xt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{ke(r)}catch(s){t=s}}),n.__H=void 0,t&&I.__e(t,n.__v))};var kt=typeof requestAnimationFrame=="function";function fn(e){var t,n=function(){clearTimeout(r),kt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);kt&&(t=requestAnimationFrame(n))}function ke(e){var t=T,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),T=t}function De(e){var t=T;e.__c=e.__(),T=t}function St(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Tt(e,t){return typeof t=="function"?t(e):t}function hn(e,t){let n=e.startsWith("#")?e.slice(1):e;if(!n.includes(`${t}=`))return{token:null,remainingHash:e};let r=new URLSearchParams(n),s=r.get(t);r.delete(t);let o=r.toString();return{token:s?.trim()||null,remainingHash:o?`#${o}`:""}}function Et(e){return hn(e,"visual-view")}function z(e,t){let n=e.replace(/\s+/g," ").trim();return n.length<=t?n:`${n.slice(0,Math.max(0,t-1)).trimEnd()}\u2026`}var Ue="visual-bridge:viewer-token";var gn="visual-bridge:last-sequence",Rt="visual-bridge:viewer-last-sequence",_n=new Set(["queued","preparing","snapshotting_before","resolving_context","running_agent","snapshotting_after","diffing","waiting_hmr","verifying","review","accepted","reverted","failed","canceled","unsafe"]);function $e(e){try{return sessionStorage.getItem(e)}catch{return null}}function At(e,t){try{sessionStorage.setItem(e,t)}catch{}}function mn(e){try{sessionStorage.removeItem(e)}catch{}}function Ct(e){try{return JSON.parse(e)}catch{return e}}function q(e){return typeof e=="object"&&e!==null?e:null}function Pt(){let e=Et(location.hash);if(e.token){$e(Ue)!==e.token&&mn(Rt),At(Ue,e.token);let t=`${location.pathname}${location.search}${e.remainingHash}`;return history.replaceState(history.state,"",t),e.token}return $e(Ue)}function vn(e){let t=$e(e);if(t===null)return null;let n=Number.parseInt(t,10);return Number.isFinite(n)&&n>=0?n:null}function bn(){let e=new URL("/_visual/ws",location.href);return e.protocol=location.protocol==="https:"?"wss:":"ws:",e.href}var we=class{browserSessionId;token;mode;getPageState;sequenceStorageKey;onSnapshot;onEvent;onSequenceGap;socket=null;heartbeatTimer;reconnectTimer;reconnectAttempt=0;manuallyClosed=!1;state="connecting";projectId;lastSequence;hasReplaySequence;constructor(t){this.token=t.token,this.browserSessionId=t.browserSessionId,this.mode=t.mode??"control",this.getPageState=t.getPageState??(()=>({})),this.sequenceStorageKey=this.mode==="viewer"?Rt:gn;let n=vn(this.sequenceStorageKey);this.lastSequence=n??0,this.hasReplaySequence=n!==null||this.mode==="control",this.onSnapshot=t.onSnapshot,this.onEvent=t.onEvent,this.onSequenceGap=t.onSequenceGap??(()=>{})}connect(){this.manuallyClosed=!1,this.openSocket()}close(){this.manuallyClosed=!0,this.clearTimers(),this.socket?.close(),this.socket=null}send(t,n){if(this.socket?.readyState!==WebSocket.OPEN)return!1;let r={id:crypto.randomUUID(),type:t,browserSessionId:this.browserSessionId,payload:n};return this.socket.send(JSON.stringify(r)),!0}emitSnapshot(){this.onSnapshot({state:this.state,...this.projectId?{projectId:this.projectId}:{},lastSequence:this.lastSequence})}openSocket(){this.clearTimers(),this.state=this.reconnectAttempt>0?"reconnecting":"connecting",this.emitSnapshot();let t;try{t=new WebSocket(bn())}catch{this.scheduleReconnect();return}this.socket=t,t.addEventListener("open",()=>{this.reconnectAttempt=0,this.send("auth",{token:this.token})}),t.addEventListener("message",n=>{this.handleMessage(String(n.data))}),t.addEventListener("close",n=>{if(this.socket=null,n.code===4001||n.code===4401){this.state="unauthorized",this.emitSnapshot();return}this.manuallyClosed||this.scheduleReconnect()}),t.addEventListener("error",()=>{this.state==="connecting"&&(this.state="offline",this.emitSnapshot())})}handleMessage(t){let n=q(Ct(t));if(!(!n||typeof n.type!="string")){if(n.type==="auth.ok"){this.projectId=typeof n.projectId=="string"?n.projectId:this.projectId,this.state="connected",this.emitSnapshot(),this.send("browser.hello",{...this.hasReplaySequence?{lastSeq:this.lastSequence}:{},...this.mode==="control"?this.getPageState():{}}),this.mode==="control"&&(this.heartbeatTimer=window.setInterval(()=>{this.send("browser.heartbeat",{lastSeq:this.lastSequence,...this.getPageState()})},15e3));return}if(n.type==="auth.error"||n.type==="error.unauthorized"){this.state="unauthorized",this.emitSnapshot(),this.socket?.close(4401,"Pairing rejected");return}if(typeof n.seq=="number"){if(n.seq<=this.lastSequence&&this.hasReplaySequence)return;this.hasReplaySequence&&n.seq>this.lastSequence+1&&this.onSequenceGap({expectedSequence:this.lastSequence+1,receivedSequence:n.seq}),this.lastSequence=n.seq,this.hasReplaySequence=!0,At(this.sequenceStorageKey,String(this.lastSequence)),this.emitSnapshot()}typeof n.projectId=="string"&&(this.projectId=n.projectId),this.onEvent(n)}}scheduleReconnect(){if(this.clearTimers(),this.manuallyClosed)return;this.reconnectAttempt+=1,this.state="reconnecting",this.emitSnapshot();let t=Math.min(1e4,500*2**(this.reconnectAttempt-1));this.reconnectTimer=window.setTimeout(()=>this.openSocket(),t)}clearTimers(){this.heartbeatTimer!==void 0&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0),this.reconnectTimer!==void 0&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0)}};async function ae(e,t,n){let r=new Headers(n?.headers);e&&r.set("Authorization",`Bearer ${e}`),n?.body&&!r.has("Content-Type")&&r.set("Content-Type","application/json");let s=await fetch(t,{...n,headers:r});if(!s.ok){let o=z(await s.text(),180);throw new Error(o||`Bridge request failed (${s.status} ${s.statusText})`)}return s}async function se(e){let t=await e.text();return t?Ct(t):null}async function Ft(e){let t=await se(await ae(e,"/_visual/api/project")),n=q(t),r=q(n?.project);return typeof n?.id=="string"?n.id:typeof n?.projectId=="string"?n.projectId:typeof r?.id=="string"?r.id:void 0}async function He(e,t={}){let n=new URLSearchParams;t.limit!==void 0&&n.set("limit",String(t.limit)),t.cursor!==void 0&&(n.set("before",t.cursor.createdAt),n.set("beforeId",t.cursor.id));let r=n.toString(),s=r?`?${r}`:"",o=await se(await ae(e,`/_visual/api/tasks${s}`)),c=q(o);return(Array.isArray(o)?o:Array.isArray(c?.tasks)?c.tasks:[]).filter(f=>{let l=q(f);return typeof l?.id=="string"&&typeof l.projectId=="string"&&typeof l.status=="string"&&_n.has(l.status)&&typeof l.requestText=="string"&&(l.scope==="instance"||l.scope==="component"||l.scope==="page"||l.scope==="project")&&typeof l.originBrowserSessionId=="string"&&Array.isArray(l.changedFiles)&&l.changedFiles.every(h=>typeof h=="string")&&typeof l.createdAt=="string"})}function It(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function qt(e){let t=It(e);if(t.length>0||Array.isArray(e))return t;let n=q(e);return It(n?.files??n?.changedFiles??n?.data)}function xn(e){if(typeof e=="string")return e;let t=q(e),n=t?.diff??t?.content??t?.data;return typeof n=="string"?n:""}function jt(e){if(typeof e=="string")return z(e,500);let t=q(e);if(!t)return null;let n=q(t.event)??t,r=typeof n.type=="string"?n.type:void 0;if(r==="tool_start"&&typeof n.name=="string")return z(`\uB3C4\uAD6C \uC2DC\uC791 \xB7 ${n.name}${typeof n.summary=="string"?` \xB7 ${n.summary}`:""}`,500);if(r==="tool_end"&&typeof n.name=="string")return z(`\uB3C4\uAD6C ${n.ok===!1?"\uC2E4\uD328":"\uC644\uB8CC"} \xB7 ${n.name}`,500);if(r==="phase"&&typeof n.name=="string")return z(`\uB2E8\uACC4 \xB7 ${n.name}`,500);if(r==="file_hint"&&typeof n.path=="string")return z(`\uD30C\uC77C \xB7 ${n.path}`,500);let s=n.message??n.text??n.summary??n.command??n.error??t.message;return typeof s=="string"?z(s,500):null}async function Mt(e,t,n){let r=`/_visual/api/tasks/${encodeURIComponent(t)}`,s=n===void 0?void 0:{signal:n},[o,c,d]=await Promise.allSettled([ae(e,`${r}/files`,s).then(se),ae(e,`${r}/diff`,s).then(se),ae(e,`${r}/logs`,s).then(se)]),f=[o,c,d].find(k=>k.status==="rejected"&&k.reason instanceof DOMException&&k.reason.name==="AbortError");if(f!==void 0)throw f.reason;let l=o.status==="fulfilled"?qt(o.value):[],h=c.status==="fulfilled"?xn(c.value):"",b=d.status==="fulfilled"?d.value:[],a=q(b),p=Array.isArray(b)?b:Array.isArray(a?.logs)?a.logs:[],x=Array.isArray(p)?p.map(jt).filter(k=>!!k).slice(-40):[],w=[];return o.status==="rejected"&&w.push("files"),c.status==="rejected"&&w.push("diff"),d.status==="rejected"&&w.push("logs"),{changedFiles:l,diff:h,logs:x,unavailable:w}}function zt(e){let t=q(e.payload),r=q(t?.task)??t;return r&&typeof r.id=="string"?r:void 0}function Dt(e){let t=q(e.payload);return jt(t?.event??t)}function Lt(e){let t=q(e.payload);return qt(t?.changedFiles??t?.files??[])}var Ut=String.raw`
|
|
2
|
+
--graphite: #20211f;
|
|
3
|
+
--graphite-2: #30312e;
|
|
4
|
+
--strip: #f4efe3;
|
|
5
|
+
--strip-strong: #fffaf0;
|
|
6
|
+
--ink: #1b1c1a;
|
|
7
|
+
--muted: #64635b;
|
|
8
|
+
--rule: #b7b0a1;
|
|
9
|
+
--dispatch: #cf450f;
|
|
10
|
+
--dispatch-dark: #9f3108;
|
|
11
|
+
--verified: #087f8c;
|
|
12
|
+
--danger: #a72920;
|
|
13
|
+
`;var $t=String.raw`
|
|
14
|
+
:root {
|
|
15
|
+
color-scheme: light;
|
|
16
|
+
${Ut}
|
|
17
|
+
--canvas: #ded8cc;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
* {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
html {
|
|
25
|
+
min-width: 320px;
|
|
26
|
+
min-height: 100%;
|
|
27
|
+
background: var(--canvas);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
body {
|
|
31
|
+
min-width: 320px;
|
|
32
|
+
min-height: 100vh;
|
|
33
|
+
margin: 0;
|
|
34
|
+
background: var(--canvas);
|
|
35
|
+
color: var(--ink);
|
|
36
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
37
|
+
font-size: 13px;
|
|
38
|
+
line-height: 1.4;
|
|
39
|
+
text-rendering: optimizeLegibility;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
button {
|
|
43
|
+
margin: 0;
|
|
44
|
+
font: inherit;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
button:focus-visible,
|
|
48
|
+
a:focus-visible {
|
|
49
|
+
outline: 3px solid var(--strip-strong);
|
|
50
|
+
outline-offset: 2px;
|
|
51
|
+
box-shadow: 0 0 0 5px var(--dispatch-dark);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.detail-scroll:focus-visible,
|
|
55
|
+
.logs-block ol:focus-visible,
|
|
56
|
+
.diff-block pre:focus-visible {
|
|
57
|
+
outline: 3px solid var(--dispatch);
|
|
58
|
+
outline-offset: -3px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.visually-hidden {
|
|
62
|
+
position: absolute;
|
|
63
|
+
width: 1px;
|
|
64
|
+
height: 1px;
|
|
65
|
+
padding: 0;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
clip: rect(0 0 0 0);
|
|
68
|
+
clip-path: inset(50%);
|
|
69
|
+
border: 0;
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.machine {
|
|
74
|
+
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
75
|
+
font-variant-numeric: tabular-nums;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.viewer-app {
|
|
79
|
+
min-height: 100vh;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.viewer-header {
|
|
83
|
+
position: sticky;
|
|
84
|
+
z-index: 10;
|
|
85
|
+
top: 0;
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: stretch;
|
|
88
|
+
justify-content: space-between;
|
|
89
|
+
min-height: 58px;
|
|
90
|
+
padding: 0 max(22px, calc((100vw - 1440px) / 2));
|
|
91
|
+
border-bottom: 1px solid #080907;
|
|
92
|
+
background: var(--graphite);
|
|
93
|
+
color: var(--strip-strong);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.viewer-app[data-loading="true"] .viewer-header::after {
|
|
97
|
+
position: absolute;
|
|
98
|
+
right: 0;
|
|
99
|
+
bottom: -1px;
|
|
100
|
+
left: 0;
|
|
101
|
+
height: 3px;
|
|
102
|
+
content: "";
|
|
103
|
+
background: var(--dispatch);
|
|
104
|
+
transform-origin: left;
|
|
105
|
+
animation: viewer-load 1.2s cubic-bezier(.16, 1, .3, 1) infinite;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.viewer-brand {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
gap: 10px;
|
|
112
|
+
min-width: 190px;
|
|
113
|
+
padding: 0 18px 0 2px;
|
|
114
|
+
border-right: 1px solid #4a4b46;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.brand-signal {
|
|
118
|
+
width: 10px;
|
|
119
|
+
height: 10px;
|
|
120
|
+
border: 1px solid #ffb58e;
|
|
121
|
+
background: var(--dispatch);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.viewer-brand > span:last-child {
|
|
125
|
+
display: grid;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.viewer-brand strong {
|
|
129
|
+
letter-spacing: -0.01em;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.viewer-brand small {
|
|
133
|
+
color: #bdb9b0;
|
|
134
|
+
font-size: 10px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.header-instruments {
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: stretch;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.project-readout,
|
|
143
|
+
.connection-readout,
|
|
144
|
+
.refresh-readout {
|
|
145
|
+
display: grid;
|
|
146
|
+
align-content: center;
|
|
147
|
+
min-width: 152px;
|
|
148
|
+
padding: 8px 16px;
|
|
149
|
+
border-left: 1px solid #4a4b46;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.project-readout small,
|
|
153
|
+
.connection-readout small,
|
|
154
|
+
.refresh-readout small {
|
|
155
|
+
color: #aaa69e;
|
|
156
|
+
font: 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.project-readout strong,
|
|
160
|
+
.connection-readout strong,
|
|
161
|
+
.refresh-readout strong {
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
color: #f6f0e5;
|
|
164
|
+
font: 650 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
165
|
+
text-overflow: ellipsis;
|
|
166
|
+
white-space: nowrap;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.connection-readout {
|
|
170
|
+
min-width: 116px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.connection-readout strong {
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
gap: 6px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.connection-readout strong > span {
|
|
180
|
+
width: 8px;
|
|
181
|
+
height: 8px;
|
|
182
|
+
border: 1px solid #77786f;
|
|
183
|
+
background: #77786f;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.connection-readout[data-state="connected"] strong > span {
|
|
187
|
+
border-color: #4fc4d0;
|
|
188
|
+
background: var(--verified);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.connection-readout[data-state="connecting"] strong > span,
|
|
192
|
+
.connection-readout[data-state="reconnecting"] strong > span {
|
|
193
|
+
border-color: #f18755;
|
|
194
|
+
background: var(--dispatch);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.connection-readout[data-state="offline"] strong > span,
|
|
198
|
+
.connection-readout[data-state="unauthorized"] strong > span {
|
|
199
|
+
border-color: #e17e75;
|
|
200
|
+
background: var(--danger);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.refresh-button {
|
|
204
|
+
align-self: center;
|
|
205
|
+
min-height: 38px;
|
|
206
|
+
margin-left: 10px;
|
|
207
|
+
padding: 6px 12px;
|
|
208
|
+
border: 1px solid #5d5e58;
|
|
209
|
+
border-radius: 3px;
|
|
210
|
+
background: var(--graphite-2);
|
|
211
|
+
color: var(--strip-strong);
|
|
212
|
+
cursor: pointer;
|
|
213
|
+
font-weight: 650;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.refresh-button:hover {
|
|
217
|
+
background: #464741;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.refresh-button:disabled {
|
|
221
|
+
cursor: wait;
|
|
222
|
+
opacity: 0.6;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.viewer-main {
|
|
226
|
+
width: min(1440px, calc(100% - 44px));
|
|
227
|
+
margin: 0 auto;
|
|
228
|
+
padding: 24px 0 32px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.viewer-intro {
|
|
232
|
+
display: flex;
|
|
233
|
+
align-items: end;
|
|
234
|
+
justify-content: space-between;
|
|
235
|
+
gap: 24px;
|
|
236
|
+
margin-bottom: 17px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.viewer-intro h1 {
|
|
240
|
+
margin: 0 0 4px;
|
|
241
|
+
font-size: clamp(24px, 3vw, 38px);
|
|
242
|
+
line-height: 1.08;
|
|
243
|
+
letter-spacing: -0.03em;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.viewer-intro p {
|
|
247
|
+
max-width: 68ch;
|
|
248
|
+
margin: 0;
|
|
249
|
+
color: #53534d;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.read-only-mark {
|
|
253
|
+
flex: none;
|
|
254
|
+
padding: 5px 7px;
|
|
255
|
+
border: 1px solid #777268;
|
|
256
|
+
color: #53534d;
|
|
257
|
+
font: 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.status-rail {
|
|
261
|
+
display: grid;
|
|
262
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
263
|
+
margin-bottom: 12px;
|
|
264
|
+
border: 1px solid #272821;
|
|
265
|
+
border-radius: 4px 4px 9px 4px;
|
|
266
|
+
background: var(--graphite);
|
|
267
|
+
overflow: hidden;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.status-rail button {
|
|
271
|
+
display: flex;
|
|
272
|
+
align-items: center;
|
|
273
|
+
justify-content: space-between;
|
|
274
|
+
min-height: 46px;
|
|
275
|
+
padding: 8px 12px;
|
|
276
|
+
border: 0;
|
|
277
|
+
border-right: 1px solid #4a4b46;
|
|
278
|
+
background: transparent;
|
|
279
|
+
color: #d7d2c8;
|
|
280
|
+
cursor: pointer;
|
|
281
|
+
text-align: left;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.status-rail button > span {
|
|
285
|
+
white-space: nowrap;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.status-rail button:last-child {
|
|
289
|
+
border-right: 0;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.status-rail button:hover {
|
|
293
|
+
background: #393a36;
|
|
294
|
+
color: var(--strip-strong);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.status-rail button[aria-pressed="true"] {
|
|
298
|
+
background: var(--dispatch);
|
|
299
|
+
color: #fff;
|
|
300
|
+
font-weight: 700;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.status-rail button strong {
|
|
304
|
+
font-size: 16px;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.viewer-error,
|
|
308
|
+
.detail-error {
|
|
309
|
+
display: flex;
|
|
310
|
+
align-items: center;
|
|
311
|
+
justify-content: space-between;
|
|
312
|
+
gap: 12px;
|
|
313
|
+
padding: 9px 10px;
|
|
314
|
+
border: 1px solid var(--danger);
|
|
315
|
+
background: #f7dfdb;
|
|
316
|
+
color: #741a13;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.viewer-error {
|
|
320
|
+
margin-bottom: 12px;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.viewer-error button,
|
|
324
|
+
.detail-error button {
|
|
325
|
+
flex: none;
|
|
326
|
+
min-height: 38px;
|
|
327
|
+
padding: 4px 9px;
|
|
328
|
+
border: 1px solid var(--danger);
|
|
329
|
+
border-radius: 3px;
|
|
330
|
+
background: var(--strip-strong);
|
|
331
|
+
color: var(--danger);
|
|
332
|
+
cursor: pointer;
|
|
333
|
+
font-weight: 650;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.operations-board {
|
|
337
|
+
display: grid;
|
|
338
|
+
grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
|
|
339
|
+
height: clamp(520px, calc(100vh - 214px), 820px);
|
|
340
|
+
min-height: 0;
|
|
341
|
+
overflow: hidden;
|
|
342
|
+
border: 1px solid #272821;
|
|
343
|
+
border-radius: 4px 4px 11px 4px;
|
|
344
|
+
background: var(--strip);
|
|
345
|
+
box-shadow: 0 8px 26px rgb(0 0 0 / 24%);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.task-ledger {
|
|
349
|
+
display: flex;
|
|
350
|
+
min-width: 0;
|
|
351
|
+
min-height: 0;
|
|
352
|
+
flex-direction: column;
|
|
353
|
+
border-right: 1px solid #272821;
|
|
354
|
+
background: var(--strip);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.board-head {
|
|
358
|
+
display: flex;
|
|
359
|
+
align-items: center;
|
|
360
|
+
justify-content: space-between;
|
|
361
|
+
min-height: 62px;
|
|
362
|
+
padding: 10px 12px;
|
|
363
|
+
border-bottom: 1px solid var(--rule);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.board-head h2,
|
|
367
|
+
.board-head p {
|
|
368
|
+
margin: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.board-head h2 {
|
|
372
|
+
font-size: 14px;
|
|
373
|
+
letter-spacing: -0.01em;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.board-head p,
|
|
377
|
+
.board-head-tools > span {
|
|
378
|
+
color: var(--muted);
|
|
379
|
+
font-size: 10px;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.board-head-tools {
|
|
383
|
+
display: grid;
|
|
384
|
+
flex: none;
|
|
385
|
+
justify-items: end;
|
|
386
|
+
gap: 2px;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.detail-jump {
|
|
390
|
+
color: var(--dispatch-dark);
|
|
391
|
+
font-size: 10px;
|
|
392
|
+
font-weight: 650;
|
|
393
|
+
text-underline-offset: 2px;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.ledger-search {
|
|
397
|
+
display: grid;
|
|
398
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
399
|
+
align-items: center;
|
|
400
|
+
gap: 8px;
|
|
401
|
+
padding: 8px 10px;
|
|
402
|
+
border-bottom: 1px solid var(--rule);
|
|
403
|
+
background: #e8e2d6;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.ledger-search label {
|
|
407
|
+
min-width: 0;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.ledger-search input {
|
|
411
|
+
width: 100%;
|
|
412
|
+
min-height: 36px;
|
|
413
|
+
padding: 7px 9px;
|
|
414
|
+
border: 1px solid #8e897e;
|
|
415
|
+
border-radius: 3px;
|
|
416
|
+
background: var(--strip-strong);
|
|
417
|
+
color: var(--ink);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.ledger-search input::placeholder {
|
|
421
|
+
color: #69675f;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.ledger-search input:focus-visible {
|
|
425
|
+
outline: 3px solid var(--strip-strong);
|
|
426
|
+
outline-offset: 2px;
|
|
427
|
+
box-shadow: 0 0 0 5px var(--dispatch-dark);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.ledger-search > span {
|
|
431
|
+
color: var(--muted);
|
|
432
|
+
font-size: 9px;
|
|
433
|
+
white-space: nowrap;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.task-list {
|
|
437
|
+
flex: 1;
|
|
438
|
+
min-height: 0;
|
|
439
|
+
margin: 0;
|
|
440
|
+
padding: 0;
|
|
441
|
+
overflow: auto;
|
|
442
|
+
list-style: none;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.ledger-footer {
|
|
446
|
+
flex: none;
|
|
447
|
+
padding: 8px 10px;
|
|
448
|
+
border-top: 1px solid var(--rule);
|
|
449
|
+
background: #e8e2d6;
|
|
450
|
+
text-align: center;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.ledger-footer button {
|
|
454
|
+
width: 100%;
|
|
455
|
+
min-height: 38px;
|
|
456
|
+
border: 1px solid #777268;
|
|
457
|
+
border-radius: 3px;
|
|
458
|
+
background: var(--strip-strong);
|
|
459
|
+
color: var(--ink);
|
|
460
|
+
cursor: pointer;
|
|
461
|
+
font-weight: 650;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.ledger-footer button:hover {
|
|
465
|
+
border-color: var(--dispatch-dark);
|
|
466
|
+
color: var(--dispatch-dark);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.ledger-footer button:disabled {
|
|
470
|
+
cursor: wait;
|
|
471
|
+
opacity: .65;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.ledger-end {
|
|
475
|
+
color: var(--muted);
|
|
476
|
+
font-size: 10px;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.detail-alerts {
|
|
480
|
+
display: grid;
|
|
481
|
+
gap: 7px;
|
|
482
|
+
margin-bottom: 10px;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.detail-alerts .detail-error {
|
|
486
|
+
margin: 0;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.task-row {
|
|
490
|
+
position: relative;
|
|
491
|
+
display: grid;
|
|
492
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
493
|
+
align-items: center;
|
|
494
|
+
gap: 9px;
|
|
495
|
+
width: 100%;
|
|
496
|
+
min-height: 66px;
|
|
497
|
+
padding: 9px 11px;
|
|
498
|
+
border: 0;
|
|
499
|
+
border-bottom: 1px solid var(--rule);
|
|
500
|
+
background: transparent;
|
|
501
|
+
color: var(--ink);
|
|
502
|
+
cursor: pointer;
|
|
503
|
+
text-align: left;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.task-row:hover {
|
|
507
|
+
background: #ebe5d9;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.task-row[aria-current="true"] {
|
|
511
|
+
background: var(--strip-strong);
|
|
512
|
+
box-shadow: inset 3px 0 0 var(--dispatch);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.task-state {
|
|
516
|
+
width: 10px;
|
|
517
|
+
height: 10px;
|
|
518
|
+
border: 1px solid #075e68;
|
|
519
|
+
background: var(--verified);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.task-row[data-tone="active"] .task-state,
|
|
523
|
+
.detail-status[data-tone="active"] > span {
|
|
524
|
+
border-color: var(--dispatch-dark);
|
|
525
|
+
background: var(--dispatch);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.task-row[data-tone="review"] .task-state,
|
|
529
|
+
.detail-status[data-tone="review"] > span {
|
|
530
|
+
border-color: #8a5b14;
|
|
531
|
+
background: #c8861d;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.task-row[data-tone="issue"] .task-state,
|
|
535
|
+
.detail-status[data-tone="issue"] > span {
|
|
536
|
+
border-color: #711912;
|
|
537
|
+
background: var(--danger);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.task-copy {
|
|
541
|
+
display: grid;
|
|
542
|
+
min-width: 0;
|
|
543
|
+
gap: 2px;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.task-copy strong,
|
|
547
|
+
.task-copy > span {
|
|
548
|
+
overflow: hidden;
|
|
549
|
+
text-overflow: ellipsis;
|
|
550
|
+
white-space: nowrap;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.task-copy strong {
|
|
554
|
+
font-weight: 650;
|
|
555
|
+
letter-spacing: -0.01em;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.task-copy > span {
|
|
559
|
+
color: var(--muted);
|
|
560
|
+
font-size: 10px;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.task-meta {
|
|
564
|
+
display: grid;
|
|
565
|
+
justify-items: end;
|
|
566
|
+
gap: 2px;
|
|
567
|
+
color: var(--muted);
|
|
568
|
+
font-size: 9px;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.ledger-state,
|
|
572
|
+
.detail-empty {
|
|
573
|
+
display: grid;
|
|
574
|
+
place-content: center;
|
|
575
|
+
justify-items: center;
|
|
576
|
+
min-height: 220px;
|
|
577
|
+
padding: 28px;
|
|
578
|
+
text-align: center;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.ledger-state {
|
|
582
|
+
flex: 1;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.ledger-state strong,
|
|
586
|
+
.detail-empty strong {
|
|
587
|
+
margin-bottom: 4px;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.ledger-state span,
|
|
591
|
+
.detail-empty p {
|
|
592
|
+
max-width: 48ch;
|
|
593
|
+
margin: 0;
|
|
594
|
+
color: var(--muted);
|
|
595
|
+
font-size: 11px;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.task-detail {
|
|
599
|
+
display: flex;
|
|
600
|
+
min-width: 0;
|
|
601
|
+
min-height: 0;
|
|
602
|
+
flex-direction: column;
|
|
603
|
+
background: var(--strip-strong);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.task-detail:focus {
|
|
607
|
+
outline: 3px solid var(--dispatch);
|
|
608
|
+
outline-offset: -3px;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.detail-empty {
|
|
612
|
+
flex: 1;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.empty-reticle {
|
|
616
|
+
position: relative;
|
|
617
|
+
width: 34px;
|
|
618
|
+
height: 34px;
|
|
619
|
+
margin-bottom: 12px;
|
|
620
|
+
border: 2px solid var(--dispatch);
|
|
621
|
+
outline: 1px solid var(--graphite);
|
|
622
|
+
outline-offset: 3px;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.empty-reticle::before,
|
|
626
|
+
.empty-reticle::after {
|
|
627
|
+
position: absolute;
|
|
628
|
+
width: 8px;
|
|
629
|
+
height: 8px;
|
|
630
|
+
content: "";
|
|
631
|
+
border-color: var(--graphite);
|
|
632
|
+
border-style: solid;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.empty-reticle::before {
|
|
636
|
+
top: -5px;
|
|
637
|
+
left: -5px;
|
|
638
|
+
border-width: 2px 0 0 2px;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.empty-reticle::after {
|
|
642
|
+
right: -5px;
|
|
643
|
+
bottom: -5px;
|
|
644
|
+
border-width: 0 2px 2px 0;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.detail-head {
|
|
648
|
+
display: flex;
|
|
649
|
+
align-items: start;
|
|
650
|
+
justify-content: space-between;
|
|
651
|
+
gap: 24px;
|
|
652
|
+
min-height: 92px;
|
|
653
|
+
padding: 15px 17px 13px;
|
|
654
|
+
border-bottom: 1px solid var(--rule);
|
|
655
|
+
background: var(--graphite);
|
|
656
|
+
color: var(--strip-strong);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.detail-kicker {
|
|
660
|
+
color: #bdb9b0;
|
|
661
|
+
font-size: 9px;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.detail-head h2 {
|
|
665
|
+
max-width: 70ch;
|
|
666
|
+
margin: 4px 0 0;
|
|
667
|
+
font-size: clamp(16px, 1.7vw, 22px);
|
|
668
|
+
line-height: 1.3;
|
|
669
|
+
letter-spacing: -0.02em;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.detail-status {
|
|
673
|
+
display: flex;
|
|
674
|
+
flex: none;
|
|
675
|
+
align-items: center;
|
|
676
|
+
gap: 7px;
|
|
677
|
+
padding-top: 2px;
|
|
678
|
+
color: #ded9cf;
|
|
679
|
+
font-size: 11px;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.detail-status > span {
|
|
683
|
+
width: 9px;
|
|
684
|
+
height: 9px;
|
|
685
|
+
border: 1px solid #075e68;
|
|
686
|
+
background: var(--verified);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.fact-strip {
|
|
690
|
+
display: grid;
|
|
691
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
692
|
+
margin: 0;
|
|
693
|
+
border-bottom: 1px solid var(--rule);
|
|
694
|
+
background: var(--strip);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.fact-strip > div {
|
|
698
|
+
min-width: 0;
|
|
699
|
+
padding: 9px 12px;
|
|
700
|
+
border-right: 1px solid var(--rule);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.fact-strip > div:last-child {
|
|
704
|
+
border-right: 0;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.fact-strip dt {
|
|
708
|
+
color: var(--muted);
|
|
709
|
+
font-size: 9px;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.fact-strip dd {
|
|
713
|
+
margin: 2px 0 0;
|
|
714
|
+
overflow: hidden;
|
|
715
|
+
font-weight: 650;
|
|
716
|
+
text-overflow: ellipsis;
|
|
717
|
+
white-space: nowrap;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.detail-scroll {
|
|
721
|
+
min-height: 0;
|
|
722
|
+
padding: 14px;
|
|
723
|
+
overflow: auto;
|
|
724
|
+
scrollbar-gutter: stable;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.detail-error {
|
|
728
|
+
margin-bottom: 12px;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.detail-error > span:first-child,
|
|
732
|
+
.detail-error > strong + span {
|
|
733
|
+
min-width: 0;
|
|
734
|
+
overflow-wrap: anywhere;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.files-block,
|
|
738
|
+
.logs-block,
|
|
739
|
+
.diff-block {
|
|
740
|
+
border: 1px solid var(--rule);
|
|
741
|
+
background: var(--strip);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.files-block > header,
|
|
745
|
+
.logs-block > header,
|
|
746
|
+
.diff-block > header {
|
|
747
|
+
display: flex;
|
|
748
|
+
align-items: center;
|
|
749
|
+
justify-content: space-between;
|
|
750
|
+
min-height: 36px;
|
|
751
|
+
padding: 7px 9px;
|
|
752
|
+
border-bottom: 1px solid var(--rule);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.files-block h3,
|
|
756
|
+
.logs-block h3,
|
|
757
|
+
.diff-block h3 {
|
|
758
|
+
margin: 0;
|
|
759
|
+
font-size: 12px;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.files-block header span,
|
|
763
|
+
.logs-block header span,
|
|
764
|
+
.diff-block header span {
|
|
765
|
+
color: var(--muted);
|
|
766
|
+
font-size: 9px;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.files-block ul {
|
|
770
|
+
display: grid;
|
|
771
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
772
|
+
gap: 0 16px;
|
|
773
|
+
margin: 0;
|
|
774
|
+
padding: 7px 9px 9px;
|
|
775
|
+
list-style: none;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.files-block li {
|
|
779
|
+
display: grid;
|
|
780
|
+
grid-template-columns: 14px minmax(0, 1fr);
|
|
781
|
+
padding: 3px 0;
|
|
782
|
+
overflow-wrap: anywhere;
|
|
783
|
+
font: 10px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.files-block li span {
|
|
787
|
+
color: var(--dispatch-dark);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.files-block > p,
|
|
791
|
+
.block-state {
|
|
792
|
+
margin: 0;
|
|
793
|
+
padding: 14px;
|
|
794
|
+
color: var(--muted);
|
|
795
|
+
font-size: 11px;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.evidence-grid {
|
|
799
|
+
display: grid;
|
|
800
|
+
grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
|
|
801
|
+
gap: 12px;
|
|
802
|
+
margin-top: 12px;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.logs-block ol {
|
|
806
|
+
max-height: 280px;
|
|
807
|
+
margin: 0;
|
|
808
|
+
padding: 7px 9px 10px;
|
|
809
|
+
overflow: auto;
|
|
810
|
+
list-style: none;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.logs-block li {
|
|
814
|
+
display: grid;
|
|
815
|
+
grid-template-columns: 22px minmax(0, 1fr);
|
|
816
|
+
gap: 6px;
|
|
817
|
+
padding: 4px 0;
|
|
818
|
+
color: #454640;
|
|
819
|
+
font-size: 11px;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.logs-block li span {
|
|
823
|
+
color: var(--dispatch-dark);
|
|
824
|
+
font-size: 9px;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
.diff-block {
|
|
828
|
+
min-width: 0;
|
|
829
|
+
background: var(--graphite);
|
|
830
|
+
border-color: #4b4b45;
|
|
831
|
+
color: var(--strip-strong);
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.diff-block > header {
|
|
835
|
+
border-bottom-color: #4b4b45;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
.diff-block header span {
|
|
839
|
+
color: #bdb9b0;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.diff-head-tools {
|
|
843
|
+
display: flex;
|
|
844
|
+
align-items: center;
|
|
845
|
+
gap: 8px;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.diff-toggle {
|
|
849
|
+
min-height: 30px;
|
|
850
|
+
padding: 4px 8px;
|
|
851
|
+
border: 1px solid #77786f;
|
|
852
|
+
border-radius: 3px;
|
|
853
|
+
background: var(--graphite-2);
|
|
854
|
+
color: var(--strip-strong);
|
|
855
|
+
cursor: pointer;
|
|
856
|
+
font-size: 10px;
|
|
857
|
+
font-weight: 650;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.diff-toggle:hover {
|
|
861
|
+
border-color: #f18755;
|
|
862
|
+
color: #fff;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.diff-block pre {
|
|
866
|
+
max-height: 280px;
|
|
867
|
+
margin: 0;
|
|
868
|
+
padding: 10px;
|
|
869
|
+
overflow: auto;
|
|
870
|
+
color: #f2eee4;
|
|
871
|
+
font: 10px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
872
|
+
tab-size: 2;
|
|
873
|
+
white-space: pre;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
@keyframes viewer-load {
|
|
877
|
+
0% { transform: scaleX(.08); }
|
|
878
|
+
55% { transform: scaleX(.72); }
|
|
879
|
+
100% { transform: scaleX(1); }
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
@media (max-width: 900px) {
|
|
883
|
+
.viewer-header {
|
|
884
|
+
padding: 0 12px;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.refresh-readout {
|
|
888
|
+
display: none;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
.viewer-main {
|
|
892
|
+
width: min(100% - 24px, 760px);
|
|
893
|
+
padding-top: 18px;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.operations-board {
|
|
897
|
+
grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.fact-strip {
|
|
901
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.fact-strip > div:nth-child(2) {
|
|
905
|
+
border-right: 0;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.fact-strip > div:nth-child(-n + 2) {
|
|
909
|
+
border-bottom: 1px solid var(--rule);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.evidence-grid {
|
|
913
|
+
grid-template-columns: 1fr;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
@media (max-width: 680px) {
|
|
918
|
+
body {
|
|
919
|
+
font-size: 14px;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
.viewer-header {
|
|
923
|
+
position: static;
|
|
924
|
+
min-height: 54px;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.viewer-brand {
|
|
928
|
+
min-width: 0;
|
|
929
|
+
border-right: 0;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.project-readout {
|
|
933
|
+
display: none;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.refresh-button {
|
|
937
|
+
min-height: 44px;
|
|
938
|
+
margin-left: 0;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.viewer-main {
|
|
942
|
+
width: calc(100% - 16px);
|
|
943
|
+
padding: 15px 0 18px;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
.viewer-intro {
|
|
947
|
+
align-items: start;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
.viewer-intro h1 {
|
|
951
|
+
font-size: 25px;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.viewer-intro p {
|
|
955
|
+
font-size: 14px;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.read-only-mark {
|
|
959
|
+
margin-top: 3px;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.status-rail {
|
|
963
|
+
grid-template-columns: repeat(4, minmax(82px, 1fr));
|
|
964
|
+
overflow-x: auto;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.status-rail button {
|
|
968
|
+
min-height: 44px;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.viewer-error button,
|
|
972
|
+
.detail-error button,
|
|
973
|
+
.detail-jump,
|
|
974
|
+
.ledger-search input,
|
|
975
|
+
.ledger-footer button {
|
|
976
|
+
min-height: 44px;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
.diff-toggle {
|
|
980
|
+
min-height: 44px;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.detail-jump {
|
|
984
|
+
display: inline-flex;
|
|
985
|
+
align-items: center;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
.operations-board {
|
|
989
|
+
display: block;
|
|
990
|
+
height: auto;
|
|
991
|
+
min-height: 0;
|
|
992
|
+
overflow: visible;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.task-ledger {
|
|
996
|
+
max-height: 390px;
|
|
997
|
+
border-right: 0;
|
|
998
|
+
border-bottom: 1px solid #272821;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
.task-list {
|
|
1002
|
+
max-height: 320px;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.task-detail {
|
|
1006
|
+
min-height: 460px;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.detail-head {
|
|
1010
|
+
min-height: 0;
|
|
1011
|
+
padding: 13px;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.detail-head h2 {
|
|
1015
|
+
font-size: 16px;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.detail-status {
|
|
1019
|
+
max-width: 84px;
|
|
1020
|
+
text-align: right;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.detail-scroll {
|
|
1024
|
+
padding: 10px;
|
|
1025
|
+
overflow: visible;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
.files-block ul {
|
|
1029
|
+
grid-template-columns: 1fr;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
.logs-block ol,
|
|
1033
|
+
.diff-block pre {
|
|
1034
|
+
max-height: 240px;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
@media (max-width: 420px) {
|
|
1039
|
+
.viewer-header {
|
|
1040
|
+
padding: 0 8px;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
.viewer-brand {
|
|
1044
|
+
gap: 6px;
|
|
1045
|
+
padding-right: 6px;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
.viewer-brand small {
|
|
1049
|
+
display: none;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.connection-readout {
|
|
1053
|
+
min-width: 88px;
|
|
1054
|
+
padding-right: 8px;
|
|
1055
|
+
padding-left: 8px;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.refresh-button {
|
|
1059
|
+
padding-right: 8px;
|
|
1060
|
+
padding-left: 8px;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
@media (max-width: 360px) {
|
|
1065
|
+
.status-rail {
|
|
1066
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1067
|
+
overflow: hidden;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
.status-rail button:nth-child(2) {
|
|
1071
|
+
border-right: 0;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
.status-rail button:nth-child(-n + 2) {
|
|
1075
|
+
border-bottom: 1px solid #4a4b46;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1080
|
+
.viewer-app[data-loading="true"] .viewer-header::after {
|
|
1081
|
+
animation: none;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
`;var yn=0;function i(e,t,n,r,s,o){t||(t={});var c,d,f=t;if("ref"in f)for(d in f={},t)d=="ref"?c=t[d]:f[d]=t[d];var l={type:e,props:f,key:n,ref:c,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--yn,__i:-1,__u:0,__source:s,__self:o};if(typeof e=="function"&&(c=e.defaultProps))for(d in c)f[d]===void 0&&(f[d]=c[d]);return v.vnode&&v.vnode(l),l}var le=100,Ht=le+1,Bt=6e4,Nt={queued:"\uB300\uAE30 \uC911",preparing:"\uC791\uC5C5 \uC900\uBE44",snapshotting_before:"\uBCC0\uACBD \uC804 \uC2A4\uB0C5\uC0F7",resolving_context:"\uC18C\uC2A4 \uD655\uC778",running_agent:"\uC5D0\uC774\uC804\uD2B8 \uC218\uC815 \uC911",snapshotting_after:"\uBCC0\uACBD \uD6C4 \uC2A4\uB0C5\uC0F7",diffing:"\uBCC0\uACBD \uBC94\uC704 \uACC4\uC0B0",waiting_hmr:"\uD654\uBA74 \uBC18\uC601 \uB300\uAE30",verifying:"\uAC80\uC99D \uC911",review:"\uAC80\uD1A0 \uB300\uAE30",accepted:"\uBCC0\uACBD \uC720\uC9C0",reverted:"\uB418\uB3CC\uB9AC\uAE30 \uC644\uB8CC",failed:"\uC791\uC5C5 \uC2E4\uD328",canceled:"\uC791\uC5C5 \uCDE8\uC18C",unsafe:"\uC548\uC804 \uD655\uC778 \uD544\uC694"},We=new Set(["queued","preparing","snapshotting_before","resolving_context","running_agent","snapshotting_after","diffing","waiting_hmr","verifying"]),Ke=new Set(["review","unsafe"]),kn=new Set(["failed","canceled","unsafe"]),Ot={unpaired:"\uC5F0\uACB0 \uD544\uC694",connecting:"\uC5F0\uACB0 \uC911",connected:"\uC2E4\uC2DC\uAC04",reconnecting:"\uC7AC\uC5F0\uACB0 \uC911",offline:"\uC624\uD504\uB77C\uC778",unauthorized:"\uC778\uC99D \uB9CC\uB8CC"};function Ge(e){return kn.has(e.status)||e.verificationStatus==="failed"}function Vt(e){switch(e){case"instance":return"\uC120\uD0DD\uD55C \uC778\uC2A4\uD134\uC2A4";case"component":return"\uACF5\uC6A9 \uCEF4\uD3EC\uB10C\uD2B8";case"page":return"\uD604\uC7AC \uD398\uC774\uC9C0";case"project":return"\uD504\uB85C\uC81D\uD2B8 \uC804\uCCB4"}}function wn(e){switch(e){case"passed":return"\uAC80\uC99D \uD1B5\uACFC";case"partial":return"\uBD80\uBD84 \uAC80\uC99D";case"failed":return"\uAC80\uC99D \uC2E4\uD328";default:return"\uBBF8\uAC80\uC99D"}}function Wt(e){let t=e.completedAt??e.startedAt??e.createdAt,n=new Date(t);return Number.isNaN(n.getTime())?"\uC2DC\uAC04 \uBBF8\uC0C1":new Intl.DateTimeFormat("ko-KR",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(n)}function Sn(e){return e?new Intl.DateTimeFormat("ko-KR",{hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(e):"\uC544\uC9C1 \uAC31\uC2E0\uB418\uC9C0 \uC54A\uC74C"}function Be(e,t){return t==="active"?We.has(e.status):t==="review"?Ke.has(e.status):t==="issue"?Ge(e):!0}function Kt(e){return Ge(e)?"issue":We.has(e.status)?"active":Ke.has(e.status)?"review":"done"}function Tn(e){let t=e instanceof Error?e.message:String(e);return z(t,180)}function Ne(e,t){let n=Tn(e);return n.includes("unauthorized")||n.includes("401")||n.includes("Invalid viewer token")?"\uC77D\uAE30 \uC804\uC6A9 \uC138\uC158\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. Overlay\uC758 \u2018\uC791\uC5C5 \uBCF4\uB4DC\u2019 \uBC84\uD2BC\uC5D0\uC11C \uB2E4\uC2DC \uC5F4\uC5B4\uC8FC\uC138\uC694.":`${t} (${n})`}function En(e){return e==="files"?"\uBCC0\uACBD \uD30C\uC77C":e==="logs"?"\uC791\uC5C5 \uB85C\uADF8":"diff"}function Se(e){return[...e].sort((t,n)=>n.createdAt.localeCompare(t.createdAt)||n.id.localeCompare(t.id))}function In(e,t){let n=e.findIndex(s=>s.id===t.id);if(n<0)return Se([t,...e]);let r=[...e];return r[n]=t,Se(r)}function Oe(e,t){let n=t.trim().toLocaleLowerCase("ko-KR");return n?[e.id,e.requestText,...e.changedFiles].some(r=>r.toLocaleLowerCase("ko-KR").includes(n)):!0}function Rn(e){return e instanceof Error&&e.name==="AbortError"}function An(){let e=J(Pt,[]),t=J(()=>crypto.randomUUID(),[]),n=U(null),r=U([]),s=U("all"),o=U(""),c=U(null),d=U(0),f=U(!1),l=U([]),h=U(e?"connecting":"unpaired"),[b,a]=F("current"),[p,x]=F([]),[w,k]=F("all"),[y,g]=F(""),[C,K]=F(null),[L,D]=F(null),[B,G]=F(!!e),[N,j]=F(!1),[O,Ye]=F(!1),[Je,Q]=F(null),[Yt,Te]=F(null),[Jt,Qt]=F(null),[Ee,Xt]=F({state:e?"connecting":"unpaired",lastSequence:0});r.current=p,s.current=w,o.current=y;let $=ee(async(u,_=!1)=>{let R=u?.id??null;if(n.current=R,K(R),c.current?.abort(),c.current=null,!u||!e){D(null);return}let P=new AbortController;c.current=P,D(A=>_&&A?.taskId===u.id?(()=>{let m={...A};return delete m.error,m})():{taskId:u.id,loading:!0,changedFiles:u.changedFiles,diff:"",logs:[],unavailable:[]});try{let A=await Mt(e,u.id,P.signal);D(m=>m?.taskId===u.id&&!P.signal.aborted?{taskId:u.id,loading:!1,...A}:m)}catch(A){if(Rn(A))return;D(m=>m?.taskId===u.id?{...m,loading:!1,error:Ne(A,"\uC0C1\uC138 \uB0B4\uC5ED\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")}:m)}finally{c.current===P&&(c.current=null)}},[e]),ce=ee(u=>{Te(new Date);let _=zt(u);_&&x(m=>{let M=In(m,_);return r.current=M,M});let R=u.taskId??_?.id;if(!R||n.current!==R)return;let P=Dt(u),A=Lt(u);if((P||A.length>0)&&D(m=>m?.taskId===R?{...m,changedFiles:A.length>0?A:m.changedFiles,logs:P?[...m.logs,P].slice(-40):m.logs}:m),["task.diff_ready","task.completed","task.failed","task.canceled","task.reverted","task.verification_result"].includes(u.type)){let m=_??r.current.find(M=>M.id===R);m&&$(m,!0)}},[$]),Qe=ee(u=>{if(!f.current){l.current.push(u);return}ce(u)},[ce]),Y=ee(async()=>{if(!e){Q("Overlay\uC758 \u2018\uC791\uC5C5 \uBCF4\uB4DC\u2019 \uBC84\uD2BC\uC5D0\uC11C \uB2E4\uC2DC \uC5F4\uC5B4\uC8FC\uC138\uC694.");return}let u=++d.current;f.current=!1,G(!0),Q(null);try{let[_,R]=await Promise.all([He(e,{limit:Ht}),Ft(e)]);if(u!==d.current)return;let P=_.slice(0,le),A=Se(P);r.current=A,x(A),Ye(_.length>le),R&&a(R);let m=n.current?A.find(pe=>pe.id===n.current):void 0,M=m&&Be(m,s.current)&&Oe(m,o.current)?m:A.find(pe=>Be(pe,s.current)&&Oe(pe,o.current))??null;await $(M),Te(new Date)}catch(_){if(u!==d.current)return;Q(Ne(_,"\uC791\uC5C5 \uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. Bridge \uC5F0\uACB0\uC744 \uD655\uC778\uD574 \uC8FC\uC138\uC694."))}finally{if(u===d.current){f.current=!0;let _=l.current.splice(0).sort((R,P)=>R.seq-P.seq);for(let R of _)ce(R);G(!1)}}},[ce,$,e]),Zt=ee(async()=>{if(!e||N)return;let u=r.current.at(-1);if(u){j(!0),Q(null);try{let _=await He(e,{limit:Ht,cursor:{id:u.id,createdAt:u.createdAt}}),R=_.slice(0,le);x(P=>{let A=new Map(P.map(M=>[M.id,M]));for(let M of R)A.set(M.id,M);let m=Se([...A.values()]);return r.current=m,m}),Ye(_.length>le),Te(new Date)}catch(_){Q(Ne(_,"\uC774\uC804 \uC791\uC5C5 \uAE30\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}finally{j(!1)}}},[N,e]);oe(()=>{Y()},[Y]);let X=J(()=>p.filter(u=>Be(u,w)&&Oe(u,y)),[w,y,p]);oe(()=>{let u=n.current;u&&X.some(_=>_.id===u)||$(X[0]??null)},[X,$]),oe(()=>{if(!e)return;let u=new we({token:e,mode:"viewer",browserSessionId:t,onSequenceGap:()=>{Y()},onSnapshot:_=>{let R=h.current;h.current=_.state,Xt(_),_.projectId&&a(_.projectId),_.state==="unauthorized"?Q("\uC77D\uAE30 \uC804\uC6A9 \uC138\uC158\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. Overlay\uC758 \u2018\uC791\uC5C5 \uBCF4\uB4DC\u2019 \uBC84\uD2BC\uC5D0\uC11C \uB2E4\uC2DC \uC5F4\uC5B4\uC8FC\uC138\uC694."):_.state==="connected"&&(R==="offline"||R==="reconnecting")&&Y()},onEvent:Qe});return u.connect(),()=>u.close()},[Qe,Y,e,t]),oe(()=>()=>{c.current?.abort()},[]);let E=p.find(u=>u.id===C)??null,S=E&&L?.taskId===E.id?L:null,de=S&&S.changedFiles.length>0?S.changedFiles:E?.changedFiles??[],Ie=S?.diff??"",Re=Ie.length>Bt,te=E?.id===Jt,en=Re&&!te?`${Ie.slice(0,Bt)}
|
|
1085
|
+
|
|
1086
|
+
\u2026 \uC131\uB2A5\uC744 \uC704\uD574 \uB098\uBA38\uC9C0 diff\uB97C \uC811\uC5C8\uC2B5\uB2C8\uB2E4.`:Ie,ue=J(()=>({all:p.length,active:p.filter(u=>We.has(u.status)).length,review:p.filter(u=>Ke.has(u.status)).length,issue:p.filter(Ge).length}),[p]),Xe=[{value:"all",label:"\uC804\uCCB4",count:ue.all},{value:"active",label:"\uC9C4\uD589 \uC911",count:ue.active},{value:"review",label:"\uAC80\uD1A0 \uD544\uC694",count:ue.review},{value:"issue",label:"\uBB38\uC81C",count:ue.issue}];return i("div",{class:"viewer-app","data-loading":B?"true":"false",children:[i("header",{class:"viewer-header",children:[i("div",{class:"viewer-brand",children:[i("span",{class:"brand-signal","aria-hidden":"true"}),i("span",{children:[i("strong",{children:"Visual Bridge"}),i("small",{children:"\uC791\uC5C5 \uBDF0\uC5B4"})]})]}),i("div",{class:"header-instruments",children:[i("span",{class:"project-readout",children:[i("small",{children:"PROJECT"}),i("strong",{children:b})]}),i("span",{class:"connection-readout","data-state":Ee.state,children:[i("small",{children:"STREAM"}),i("strong",{children:[i("span",{"aria-hidden":"true"}),Ot[Ee.state]]})]}),i("span",{class:"refresh-readout",children:[i("small",{children:"LAST SYNC"}),i("strong",{children:Sn(Yt)})]}),i("button",{type:"button",class:"refresh-button",disabled:B,onClick:()=>{Y()},children:B?"\uAC31\uC2E0 \uC911":"\uC0C8\uB85C\uACE0\uCE68"})]})]}),i("main",{class:"viewer-main",children:[i("section",{class:"viewer-intro","aria-labelledby":"viewer-title",children:[i("div",{children:[i("h1",{id:"viewer-title",children:"\uD504\uB85C\uC81D\uD2B8 \uC791\uC5C5 \uD750\uB984"}),i("p",{children:"\uC694\uCCAD\uBD80\uD130 \uAC80\uC99D \uACB0\uACFC\uAE4C\uC9C0, Bridge\uAC00 \uAE30\uB85D\uD55C task\uB97C \uD55C \uD654\uBA74\uC5D0\uC11C \uAC80\uD1A0\uD569\uB2C8\uB2E4."})]}),i("span",{class:"read-only-mark",children:"READ ONLY"})]}),i("nav",{class:"status-rail","aria-label":"\uC791\uC5C5 \uC0C1\uD0DC \uD544\uD130",children:Xe.map(u=>i("button",{type:"button","aria-pressed":w===u.value?"true":"false",onClick:()=>k(u.value),children:[i("span",{children:u.label}),i("strong",{class:"machine",children:u.count})]},u.value))}),Je?i("div",{class:"viewer-error",role:"alert",children:[i("span",{children:Je}),i("button",{type:"button",onClick:()=>{Y()},children:"\uB2E4\uC2DC \uC2DC\uB3C4"})]}):null,i("span",{class:"visually-hidden",role:"status","aria-live":"polite",children:B&&p.length===0?"\uC791\uC5C5 \uAE30\uB85D \uBD88\uB7EC\uC624\uB294 \uC911":E?`${z(E.requestText,80)} \uC791\uC5C5 \uC0C1\uC138 ${S?.loading?"\uBD88\uB7EC\uC624\uB294 \uC911":"\uC120\uD0DD\uB428"}, ${Ot[Ee.state]}`:"\uC120\uD0DD\uD55C \uC791\uC5C5 \uC5C6\uC74C"}),i("section",{class:"operations-board","aria-label":"\uC791\uC5C5 \uB300\uC2DC\uBCF4\uB4DC",children:[i("aside",{class:"task-ledger",children:[i("header",{class:"board-head",children:[i("div",{children:[i("h2",{children:"\uC791\uC5C5 \uBAA9\uB85D"}),i("p",{children:w==="all"?"\uD504\uB85C\uC81D\uD2B8 \uC804\uCCB4":Xe.find(u=>u.value===w)?.label})]}),i("div",{class:"board-head-tools",children:[i("span",{class:"machine",children:[X.length," / ",p.length]}),i("a",{class:"detail-jump",href:"#task-detail",children:"\uC0C1\uC138\uB85C \uC774\uB3D9"})]})]}),i("div",{class:"ledger-search",children:[i("label",{children:[i("span",{class:"visually-hidden",children:"\uC791\uC5C5 \uAC80\uC0C9"}),i("input",{type:"search",value:y,placeholder:"\uC694\uCCAD\xB7\uD30C\uC77C\xB7Task ID \uAC80\uC0C9",onInput:u=>g(u.currentTarget.value)})]}),i("span",{class:"machine",children:["\uBD88\uB7EC\uC628 ",p.length,"\uAC1C \uB0B4 \uAC80\uC0C9"]})]}),B&&p.length===0?i("div",{class:"ledger-state",role:"status",children:[i("strong",{children:"\uC791\uC5C5 \uAE30\uB85D\uC744 \uBD88\uB7EC\uC624\uB294 \uC911\uC785\uB2C8\uB2E4."}),i("span",{children:"Bridge task store\uB97C \uD655\uC778\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4."})]}):X.length===0?i("div",{class:"ledger-state",children:[i("strong",{children:p.length===0?"\uC544\uC9C1 \uC791\uC5C5 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.":y.trim()?"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.":"\uC774 \uC0C1\uD0DC\uC758 \uC791\uC5C5\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}),i("span",{children:p.length===0?"Overlay\uC5D0\uC11C \uBCC0\uACBD\uC744 \uC694\uCCAD\uD558\uBA74 \uC5EC\uAE30\uC5D0 \uAE30\uB85D\uB429\uB2C8\uB2E4.":y.trim()?"\uB2E4\uB978 \uAC80\uC0C9\uC5B4\uB97C \uC785\uB825\uD558\uAC70\uB098 \uAC80\uC0C9\uC744 \uC9C0\uC6CC\uBCF4\uC138\uC694.":"\uB2E4\uB978 \uC0C1\uD0DC \uD544\uD130\uB97C \uC120\uD0DD\uD574 \uBCF4\uC138\uC694."})]}):i("ol",{class:"task-list",children:X.map(u=>i("li",{children:i("button",{type:"button",class:"task-row","data-tone":Kt(u),"aria-current":u.id===C?"true":void 0,"aria-controls":"task-detail",onClick:()=>{$(u)},children:[i("span",{class:"task-state","aria-hidden":"true"}),i("span",{class:"task-copy",children:[i("strong",{children:z(u.requestText,110)}),i("span",{children:[Nt[u.status]," \xB7 ",Vt(u.scope)]})]}),i("span",{class:"task-meta machine",children:[i("span",{children:Wt(u)}),i("span",{children:[u.changedFiles.length," files"]})]})]})},u.id))}),O?i("div",{class:"ledger-footer",children:i("button",{type:"button",disabled:N,onClick:()=>{Zt()},children:N?"\uC774\uC804 \uAE30\uB85D \uBD88\uB7EC\uC624\uB294 \uC911":"\uC774\uC804 \uC791\uC5C5 \uB354 \uBCF4\uAE30"})}):p.length>0?i("div",{class:"ledger-footer ledger-end",children:i("span",{children:"\uBD88\uB7EC\uC628 \uC791\uC5C5 \uAE30\uB85D\uC758 \uB05D\uC785\uB2C8\uB2E4."})}):null]}),i("section",{id:"task-detail",class:"task-detail","aria-label":"\uC120\uD0DD\uD55C \uC791\uC5C5 \uC0C1\uC138",tabIndex:-1,children:E?i(W,{children:[i("header",{class:"detail-head",children:[i("div",{children:[i("span",{class:"detail-kicker machine",children:["TASK ",E.id.slice(0,12)]}),i("h2",{children:E.requestText})]}),i("span",{class:"detail-status","data-tone":Kt(E),children:[i("span",{"aria-hidden":"true"}),Nt[E.status]]})]}),i("dl",{class:"fact-strip",children:[i("div",{children:[i("dt",{children:"\uC801\uC6A9 \uBC94\uC704"}),i("dd",{children:Vt(E.scope)})]}),i("div",{children:[i("dt",{children:"\uAC80\uC99D"}),i("dd",{children:wn(E.verificationStatus)})]}),i("div",{children:[i("dt",{children:"\uCD5C\uADFC \uC2DC\uAC01"}),i("dd",{class:"machine",children:Wt(E)})]}),i("div",{children:[i("dt",{children:"\uBCC0\uACBD \uD30C\uC77C"}),i("dd",{class:"machine",children:de.length})]})]}),i("div",{class:"detail-scroll",role:"region","aria-label":"\uC120\uD0DD\uD55C \uC791\uC5C5\uC758 \uBCC0\uACBD \uB0B4\uC5ED",tabIndex:0,children:[E.error?.message||S?.error||S&&S.unavailable.length>0?i("div",{class:"detail-alerts",role:"alert",children:[E.error?.message?i("div",{class:"detail-error",children:[i("strong",{children:"\uC791\uC5C5 \uC624\uB958"}),i("span",{children:E.error.message})]}):null,S?.error?i("div",{class:"detail-error",children:[i("span",{children:S.error}),i("button",{type:"button",onClick:()=>{$(E)},children:"\uB2E4\uC2DC \uC2DC\uB3C4"})]}):null,S&&S.unavailable.length>0?i("div",{class:"detail-error",children:[i("span",{children:["\uC77C\uBD80 \uB0B4\uC5ED\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4: ",S.unavailable.map(En).join(", ")]}),i("button",{type:"button",onClick:()=>{$(E)},children:"\uB2E4\uC2DC \uC2DC\uB3C4"})]}):null]}):null,i("section",{class:"files-block","aria-labelledby":"files-title",children:[i("header",{children:[i("h3",{id:"files-title",children:"\uBCC0\uACBD \uD30C\uC77C"}),i("span",{class:"machine",children:de.length})]}),de.length>0?i("ul",{children:de.map(u=>i("li",{title:u,children:[i("span",{children:"\u0394"}),u]},u))}):i("p",{children:"\uBCF4\uACE0\uB41C \uBCC0\uACBD \uD30C\uC77C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."})]}),i("div",{class:"evidence-grid",children:[i("section",{class:"logs-block","aria-labelledby":"logs-title",children:[i("header",{children:[i("h3",{id:"logs-title",children:"\uC791\uC5C5 \uB85C\uADF8"}),i("span",{class:"machine",children:S?.logs.length??0})]}),S?.loading?i("p",{class:"block-state",children:"\uC0C1\uC138 \uB0B4\uC5ED\uC744 \uBD88\uB7EC\uC624\uB294 \uC911\uC785\uB2C8\uB2E4."}):S&&S.logs.length>0?i("ol",{tabIndex:0,"aria-label":"\uC791\uC5C5 \uB85C\uADF8 \uBAA9\uB85D",children:S.logs.map((u,_)=>i("li",{children:[i("span",{class:"machine",children:String(_+1).padStart(2,"0")}),u]},`${_}-${u}`))}):S?.unavailable.includes("logs")?null:i("p",{class:"block-state",children:"\uC800\uC7A5\uB41C \uC791\uC5C5 \uB85C\uADF8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."})]}),i("section",{class:"diff-block","aria-labelledby":"diff-title",children:[i("header",{children:[i("h3",{id:"diff-title",children:"Unified diff"}),i("div",{class:"diff-head-tools",children:[i("span",{class:"machine",children:Re&&!te?"PREVIEW":"DIFF"}),Re?i("button",{type:"button",class:"diff-toggle","aria-expanded":te?"true":"false",onClick:()=>Qt(te?null:E.id),children:te?"\uBBF8\uB9AC\uBCF4\uAE30\uB85C \uC811\uAE30":"\uC804\uCCB4 diff \uD3BC\uCE58\uAE30"}):null]})]}),S?.loading?i("p",{class:"block-state",children:"Diff\uB97C \uBD88\uB7EC\uC624\uB294 \uC911\uC785\uB2C8\uB2E4."}):S?.unavailable.includes("diff")?null:i("pre",{tabIndex:0,"aria-label":"Unified diff \uB0B4\uC6A9",children:en||"\uC800\uC7A5\uB41C diff\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."})]})]})]})]}):i("div",{class:"detail-empty",children:[i("span",{class:"empty-reticle","aria-hidden":"true"}),i("strong",{children:"\uAC80\uD1A0\uD560 \uC791\uC5C5\uC744 \uC120\uD0DD\uD558\uC138\uC694."}),i("p",{children:"\uC67C\uCABD \uC791\uC5C5 \uBAA9\uB85D\uC5D0\uC11C task\uB97C \uC120\uD0DD\uD558\uBA74 \uC694\uCCAD, \uBCC0\uACBD \uD30C\uC77C, \uB85C\uADF8\uC640 diff\uAC00 \uD45C\uC2DC\uB429\uB2C8\uB2E4."})]})})]})]})]})}var Gt=document.createElement("style");Gt.textContent=$t;document.head.append(Gt);var Ve=document.getElementById("visual-viewer-root");Ve&&(Ve.replaceChildren(),ht(i(An,{}),Ve));
|