>>=1,l&&(n=-2147483648|-n),t+n}function h0(e,t){return e.pos>=t?!1:e.peek()!==BA}class jA{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:n,pos:i}=this,s=n.indexOf(t,i);return s===-1?n.length:s}}function qA(e){const{length:t}=e,n=new jA(e),i=[];let s=0,l=0,u=0,f=0,h=0;do{const p=n.indexOf(";"),g=[];let v=!0,y=0;for(s=0;n.posi&&(i=u)}tx(n,i);const s=n.query+n.hash;switch(i){case Ut.Hash:case Ut.Query:return s;case Ut.RelativePath:{const l=n.path.slice(1);return l?p0(t||e)&&!p0(l)?"./"+l+s:l+s:s||"."}case Ut.AbsolutePath:return n.path+s;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+s}}function m0(e,t){return t&&!t.endsWith("/")&&(t+="/"),nL(e,t)}function rL(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const po=0,iL=1,oL=2,sL=3,lL=4;function aL(e,t){const n=v0(e,0);if(n===e.length)return e;t||(e=e.slice());for(let i=n;i>1),l=e[s][po]-t;if(l===0)return Tu=!0,s;l<0?n=s+1:i=s-1}return Tu=!1,n-1}function hL(e,t,n){for(let i=n+1;i=0&&e[i][po]===t;n=i--);return n}function gL(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function mL(e,t,n,i){const{lastKey:s,lastNeedle:l,lastIndex:u}=n;let f=0,h=e.length-1;if(i===s){if(t===l)return Tu=u!==-1&&e[u][po]===t,u;t>=l?f=u===-1?0:u:h=u}return n.lastKey=i,n.lastNeedle=t,n.lastIndex=dL(e,t,f,h)}const vL="`line` must be greater than 0 (lines start at line 1)",yL="`column` must be greater than or equal to 0 (columns start at column 0)",y0=-1,bL=1;class wL{constructor(t,n){const i=typeof t=="string";if(!i&&t._decodedMemo)return t;const s=i?JSON.parse(t):t,{version:l,file:u,names:f,sourceRoot:h,sources:p,sourcesContent:g}=s;this.version=l,this.file=u,this.names=f||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=g,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const v=m0(h||"",rL(n));this.resolvedSources=p.map(w=>m0(w||"",v));const{mappings:y}=s;typeof y=="string"?(this._encoded=y,this._decoded=void 0):(this._encoded=void 0,this._decoded=aL(y,i)),this._decodedMemo=gL(),this._bySources=void 0,this._bySourceMemos=void 0}}function xL(e){var t;return(t=e)._decoded||(t._decoded=qA(e._encoded))}function SL(e,t){let{line:n,column:i,bias:s}=t;if(n--,n<0)throw new Error(vL);if(i<0)throw new Error(yL);const l=xL(e);if(n>=l.length)return zc(null,null,null,null);const u=l[n],f=_L(u,e._decodedMemo,n,i,s||bL);if(f===-1)return zc(null,null,null,null);const h=u[f];if(h.length===1)return zc(null,null,null,null);const{names:p,resolvedSources:g}=e;return zc(g[h[iL]],h[oL]+1,h[sL],h.length===5?p[h[lL]]:null)}function zc(e,t,n,i){return{source:e,line:t,column:n,name:i}}function _L(e,t,n,i,s){let l=mL(e,i,t,n);return Tu?l=(s===y0?hL:pL)(e,i,l):s===y0&&l++,l===-1||l===e.length?-1:l}const kL=/^[A-Za-z]:\//;function TL(e=""){return e&&e.replace(/\\/g,"/").replace(kL,t=>t.toUpperCase())}const CL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function EL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const AL=function(...e){e=e.map(i=>TL(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const s=i>=0?e[i]:EL();!s||s.length===0||(t=`${s}/${t}`,n=b0(s))}return t=LL(t,!n),n&&!b0(t)?`/${t}`:t.length>0?t:"."};function LL(e,t){let n="",i=0,s=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),s=f,l=0;continue}else if(n.length>0){n="",i=0,s=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(s+1,f)}`:n=e.slice(s+1,f),i=f-s-1;s=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const b0=function(e){return CL.test(e)},_p=/^\s*at .*(?:\S:\d+|\(native\))/m,$L=/^(?:eval@)?(?:\[native code\])?$/,ML=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function nx(e){if(!e.includes(":"))return[e];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return[e];let i=n[1];if(i.startsWith("async ")&&(i=i.slice(6)),i.startsWith("http:")||i.startsWith("https:")){const s=new URL(i);s.searchParams.delete("import"),s.searchParams.delete("browserv"),i=s.pathname+s.hash+s.search}if(i.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(i);i=i.slice(s?5:4)}return[i,n[2]||void 0,n[3]||void 0]}function rx(e){let t=e.trim();if($L.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,i=t.match(n),s=i&&i[1]?i[1]:void 0,[l,u,f]=nx(t.replace(n,""));return!l||!u||!f?null:{file:l,method:s||"",line:Number.parseInt(u),column:Number.parseInt(f)}}function ix(e){const t=e.trim();return _p.test(t)?ox(t):rx(t)}function ox(e){let t=e.trim();if(!_p.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const i=n.match(/ (\(.+\)$)/);n=i?n.replace(i[0],""):n;const[s,l,u]=nx(i?i[1]:n);let f=i&&n||"",h=s&&["eval",""].includes(s)?void 0:s;return!h||!l||!u?null:(f.startsWith("async ")&&(f=f.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:AL(h),f&&(f=f.replace(/__vite_ssr_import_\d+__\./g,"")),{method:f,file:h,line:Number.parseInt(l),column:Number.parseInt(u)})}function NL(e,t={}){const{ignoreStackEntries:n=ML}=t;return(_p.test(e)?PL(e):IL(e)).map(s=>{var l;t.getUrlId&&(s.file=t.getUrlId(s.file));const u=(l=t.getSourceMap)===null||l===void 0?void 0:l.call(t,s.file);if(!u||typeof u!="object"||!u.version)return w0(n,s.file)?null:s;const f=new wL(u),{line:h,column:p,source:g,name:v}=SL(f,s);let y=s.file;if(g){const w=s.file.startsWith("file://")?s.file:`file://${s.file}`,L=u.sourceRoot?new URL(u.sourceRoot,w):w;y=new URL(g,L).pathname,y.match(/\/\w:\//)&&(y=y.slice(1))}return w0(n,y)?null:h!=null&&p!=null?{line:h,column:p,file:y,method:v||s.method}:s}).filter(s=>s!=null)}function w0(e,t){return e.some(n=>t.match(n))}function IL(e){return e.split(`
+`).map(t=>rx(t)).filter(Xw)}function PL(e){return e.split(`
+`).map(t=>ox(t)).filter(Xw)}function kp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nd,x0;function OL(){if(x0)return Nd;x0=1;var e,t,n,i,s,l,u,f,h,p,g,v,y,w,L,$,A,E,M,O;return w=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,y=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,$=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,v=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,A=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,O=/[\t\v\f\ufeff\p{Zs}]+/yu,h=/\r?\n|[\r\u2028\u2029]/y,p=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,L=/\/\/.*/y,e=/^#!.*/,i=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,l=/[^<>{}]+/y,M=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,E=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,u=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,f=/^(?:return|throw|yield)$/,g=RegExp(h.source),Nd=function*(k,{jsx:z=!1}={}){var D,te,ee,W,q,K,C,P,I,S,R,B,oe,ue;for({length:K}=k,W=0,q="",ue=[{tag:"JS"}],D=[],R=0,B=!1,(C=e.exec(k))&&(yield{type:"HashbangComment",value:C[0]},W=C[0].length);W":ue.pop(),q==="/"||P.tag==="JSXTagEnd"?(S="?JSX",B=!0):ue.push({tag:"JSXChildren"});break;case"{":ue.push({tag:"InterpolationInJSX",nesting:D.length}),S="?InterpolationInJSX",B=!1;break;case"/":q==="<"&&(ue.pop(),ue[ue.length-1].tag==="JSXChildren"&&ue.pop(),ue.push({tag:"JSXTagEnd"}))}q=S,yield{type:"JSXPunctuator",value:C[0]};continue}if(n.lastIndex=W,C=n.exec(k)){W=n.lastIndex,q=C[0],yield{type:"JSXIdentifier",value:C[0]};continue}if(s.lastIndex=W,C=s.exec(k)){W=s.lastIndex,q=C[0],yield{type:"JSXString",value:C[0],closed:C[2]!==void 0};continue}break;case"JSXChildren":if(l.lastIndex=W,C=l.exec(k)){W=l.lastIndex,q=C[0],yield{type:"JSXText",value:C[0]};continue}switch(k[W]){case"<":ue.push({tag:"JSXTag"}),W++,q="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":ue.push({tag:"InterpolationInJSX",nesting:D.length}),W++,q="?InterpolationInJSX",B=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(O.lastIndex=W,C=O.exec(k)){W=O.lastIndex,yield{type:"WhiteSpace",value:C[0]};continue}if(h.lastIndex=W,C=h.exec(k)){W=h.lastIndex,B=!1,f.test(q)&&(q="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:C[0]};continue}if(p.lastIndex=W,C=p.exec(k)){W=p.lastIndex,g.test(C[0])&&(B=!1,f.test(q)&&(q="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:C[0],closed:C[1]!==void 0};continue}if(L.lastIndex=W,C=L.exec(k)){W=L.lastIndex,B=!1,yield{type:"SingleLineComment",value:C[0]};continue}te=String.fromCodePoint(k.codePointAt(W)),W+=te.length,q=te,B=!1,yield{type:P.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:te}}},Nd}var RL=OL();const zL=kp(RL);function DL(e,t){const n=" ",i=" ";let s="";const l=[];for(const u of zL(e,{jsx:!1})){if(l.push(u),u.type==="SingleLineComment"){s+=i.repeat(u.value.length);continue}if(u.type==="MultiLineComment"){s+=u.value.replace(/[^\n]/g,i);continue}if(u.type==="StringLiteral"){if(!u.closed){s+=u.value;continue}const f=u.value.slice(1,-1);{s+=u.value[0]+n.repeat(f.length)+u.value[u.value.length-1];continue}}if(u.type==="NoSubstitutionTemplate"){const f=u.value.slice(1,-1);{s+=`\`${f.replace(/[^\n]/g,n)}\``;continue}}if(u.type==="RegularExpressionLiteral"){const f=u.value;{s+=f.replace(/\/(.*)\/(\w?)$/g,(h,p,g)=>`/${n.repeat(p.length)}/${g}`);continue}}if(u.type==="TemplateHead"){const f=u.value.slice(1,-2);{s+=`\`${f.replace(/[^\n]/g,n)}\${`;continue}}if(u.type==="TemplateTail"){const f=u.value.slice(0,-2);{s+=`}${f.replace(/[^\n]/g,n)}\``;continue}}if(u.type==="TemplateMiddle"){const f=u.value.slice(1,-2);{s+=`}${f.replace(/[^\n]/g,n)}\${`;continue}}s+=u.value}return{result:s,tokens:l}}function FL(e,t){return HL(e).result}function HL(e,t){return DL(e)}const BL=/^[A-Za-z]:\//;function WL(e=""){return e&&e.replace(/\\/g,"/").replace(BL,t=>t.toUpperCase())}const jL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,S0=/^\/([A-Za-z]:)?$/;function qL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const _0=function(...e){e=e.map(i=>WL(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const s=i>=0?e[i]:qL();!s||s.length===0||(t=`${s}/${t}`,n=k0(s))}return t=UL(t,!n),n&&!k0(t)?`/${t}`:t.length>0?t:"."};function UL(e,t){let n="",i=0,s=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),s=f,l=0;continue}else if(n.length>0){n="",i=0,s=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(s+1,f)}`:n=e.slice(s+1,f),i=f-s-1;s=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const k0=function(e){return jL.test(e)},sx=function(e,t){const n=_0(e).replace(S0,"$1").split("/"),i=_0(t).replace(S0,"$1").split("/");if(i[0][1]===":"&&n[0][1]===":"&&n[0]!==i[0])return i.join("/");const s=[...n];for(const l of s){if(i[0]!==l)break;n.shift(),i.shift()}return[...n.map(()=>".."),...i].join("/")};class VL extends Error{constructor(n,i,s){super(n);ji(this,"code","VITEST_PENDING");ji(this,"taskId");this.message=n,this.note=s,this.taskId=i.id}}const GL=new WeakMap,lx=new WeakMap,ax=new WeakMap;function XL(e,t){GL.set(e,t)}function KL(e,t){lx.set(e,t)}function JL(e){return lx.get(e)}function YL(e,t){ax.set(e,t)}function ZL(e){return ax.get(e)}function QL(e,t){const n=t.reduce((l,u)=>(l[u.prop]=u,l),{}),i={};e.forEach(l=>{const u=n[l.prop]||{...l};i[u.prop]=u});for(const l in i){var s;const u=i[l];u.deps=(s=u.deps)===null||s===void 0?void 0:s.map(f=>i[f.prop])}return Object.values(i)}function cx(e,t,n){const i=["auto","injected","scope"],s=Object.entries(e).map(([l,u])=>{const f={value:u};if(Array.isArray(u)&&u.length>=2&&Kw(u[1])&&Object.keys(u[1]).some(p=>i.includes(p))){var h;Object.assign(f,u[1]);const p=u[0];f.value=f.injected?((h=n.injectValue)===null||h===void 0?void 0:h.call(n,l))??p:p}return f.scope=f.scope||"test",f.scope==="worker"&&!n.getWorkerContext&&(f.scope="file"),f.prop=l,f.isFn=typeof f.value=="function",f});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(s):t.fixtures=s,s.forEach(l=>{if(l.isFn){const f=fx(l.value);if(f.length&&(l.deps=t.fixtures.filter(({prop:h})=>h!==l.prop&&f.includes(h))),l.scope!=="test"){var u;(u=l.deps)===null||u===void 0||u.forEach(h=>{if(h.isFn&&!(l.scope==="worker"&&h.scope==="worker")&&!(l.scope==="file"&&h.scope!=="test"))throw new SyntaxError(`cannot use the ${h.scope} fixture "${h.prop}" inside the ${l.scope} fixture "${l.prop}"`)})}}}),t}const Id=new Map,Ws=new Map;function e$(e,t,n){return i=>{const s=i||n;if(!s)return t({});const l=JL(s);if(!(l!=null&&l.length))return t(s);const u=fx(t),f=l.some(({auto:w})=>w);if(!u.length&&!f)return t(s);Id.get(s)||Id.set(s,new Map);const h=Id.get(s);Ws.has(s)||Ws.set(s,[]);const p=Ws.get(s),g=l.filter(({prop:w,auto:L})=>L||u.includes(w)),v=ux(g);if(!v.length)return t(s);async function y(){for(const w of v){if(h.has(w))continue;const L=await t$(e,w,s,p);s[w.prop]=L,h.set(w,L),w.scope==="test"&&p.unshift(()=>{h.delete(w)})}}return y().then(()=>t(s))}}const Dc=new WeakMap;function t$(e,t,n,i){var s;const l=S$(n.task.file),u=(s=e.getWorkerContext)===null||s===void 0?void 0:s.call(e);if(!t.isFn){var f;if(l[f=t.prop]??(l[f]=t.value),u){var h;u[h=t.prop]??(u[h]=t.value)}return t.value}if(t.scope==="test")return T0(t.value,n,i);if(Dc.has(t))return Dc.get(t);let p;if(t.scope==="worker"){if(!u)throw new TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");p=u}else p=l;if(t.prop in p)return p[t.prop];Ws.has(p)||Ws.set(p,[]);const g=Ws.get(p),v=T0(t.value,p,g).then(y=>(p[t.prop]=y,Dc.delete(t),y));return Dc.set(t,v),v}async function T0(e,t,n){const i=c0();let s=!1;const l=e(t,async u=>{s=!0,i.resolve(u);const f=c0();n.push(async()=>{f.resolve(),await l}),await f}).catch(u=>{if(!s){i.reject(u);return}throw u});return i}function ux(e,t=new Set,n=[]){return e.forEach(i=>{if(!n.includes(i)){if(!i.isFn||!i.deps){n.push(i);return}if(t.has(i))throw new Error(`Circular fixture dependency detected: ${i.prop} <- ${[...t].reverse().map(s=>s.prop).join(" <- ")}`);t.add(i),ux(i.deps,t,n),n.push(i),t.clear()}}),n}function fx(e){let t=FL(e.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);const n=t.match(/[^(]*\(([^)]*)/);if(!n)return[];const i=C0(n[1]);if(!i.length)return[];let s=i[0];if("__VITEST_FIXTURE_INDEX__"in e&&(s=i[e.__VITEST_FIXTURE_INDEX__],!s))return[];if(!(s.startsWith("{")&&s.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${s}".`);const l=s.slice(1,-1).replace(/\s/g,""),u=C0(l).map(h=>h.replace(/:.*|=.*/g,"")),f=u.at(-1);if(f&&f.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${f}".`);return u}function C0(e){const t=[],n=[];let i=0;for(let l=0;ll.bind(s),l.setContext=(u,f)=>{s[u]=f},l.mergeContext=u=>{Object.assign(s,u)};for(const u of e)Object.defineProperty(l,u,{get(){return n({...s,[u]:!0})}});return l}const i=n({});return i.fn=t,i}const jl=a$();Tp(function(e,t,n){wh().test.fn.call(this,lo(e),t,n)});let Xr,hx,n$;function px(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function r$(){return n$}function i$(){return px(Xr,"the runner"),Xr}function wh(){const e=ao.currentSuite||hx;return px(e,"the current suite"),e}function o$(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function Uo(e,t){let n={},i=()=>{};if(typeof t=="object"){if(typeof e=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");console.warn("Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration"),n=t}else typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e);if(typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");i=e}else typeof t=="function"&&(i=t);return{options:n,handler:i}}function s$(e,t=()=>{},n,i,s,l){const u=[];let f;w();const h=function(A="",E={}){var M;const O=(E==null?void 0:E.timeout)??Xr.config.testTimeout,k={id:"",name:A,suite:(M=ao.currentSuite)===null||M===void 0?void 0:M.suite,each:E.each,fails:E.fails,context:void 0,type:"test",file:void 0,timeout:O,retry:E.retry??Xr.config.retry,repeats:E.repeats,mode:E.only?"only":E.skip?"skip":E.todo?"todo":"run",meta:E.meta??Object.create(null),annotations:[]},z=E.handler;(E.concurrent||!E.sequential&&Xr.config.sequence.concurrent)&&(k.concurrent=!0),k.shuffle=s==null?void 0:s.shuffle;const D=w$(k,Xr);Object.defineProperty(k,"context",{value:D,enumerable:!1}),KL(D,E.fixtures);const te=Error.stackTraceLimit;Error.stackTraceLimit=15;const ee=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=te,z&&XL(k,xh(l$(e$(Xr,z,D),k),O,!1,ee,(W,q)=>y$([D],q))),Xr.config.includeTaskLocation){const W=ee.stack,q=u$(W);q&&(k.location=q)}return u.push(k),k},p=Tp(function(A,E,M){let{options:O,handler:k}=Uo(E,M);typeof s=="object"&&(O=Object.assign({},s,O)),O.concurrent=this.concurrent||!this.sequential&&(O==null?void 0:O.concurrent),O.sequential=this.sequential||!this.concurrent&&(O==null?void 0:O.sequential);const z=h(lo(A),{...this,...O,handler:k});z.type="test"});let g=l;const v={type:"collector",name:e,mode:n,suite:f,options:s,test:p,tasks:u,collect:$,task:h,clear:L,on:y,fixtures(){return g},scoped(A){const E=cx(A,{fixtures:g},Xr);E.fixtures&&(g=E.fixtures)}};function y(A,...E){ZL(f)[A].push(...E)}function w(A){var E;typeof s=="number"&&(s={timeout:s}),f={id:"",type:"suite",name:e,suite:(E=ao.currentSuite)===null||E===void 0?void 0:E.suite,mode:n,each:i,file:void 0,shuffle:s==null?void 0:s.shuffle,tasks:[],meta:Object.create(null),concurrent:s==null?void 0:s.concurrent},YL(f,o$())}function L(){u.length=0,w()}async function $(A){if(!A)throw new TypeError("File is required to collect tasks.");t&&await v$(v,()=>t(p));const E=[];for(const M of u)E.push(M.type==="collector"?await M.collect(A):M);return f.file=A,f.tasks=E,E.forEach(M=>{M.file=A}),f}return m$(v),v}function l$(e,t){return async(...n)=>{const i=await e(...n);if(t.promises){const l=(await Promise.allSettled(t.promises)).map(u=>u.status==="rejected"?u.reason:void 0).filter(Boolean);if(l.length)throw l}return i}}function a$(){function e(t,n,i){var s;const l=this.only?"only":this.skip?"skip":this.todo?"todo":"run",u=ao.currentSuite||hx;let{options:f,handler:h}=Uo(n,i);const p=f.concurrent||this.concurrent||f.sequential===!1,g=f.sequential||this.sequential||f.concurrent===!1;f={...u==null?void 0:u.options,...f,shuffle:this.shuffle??f.shuffle??(u==null||(s=u.options)===null||s===void 0?void 0:s.shuffle)??void 0};const v=p||f.concurrent&&!g,y=g||f.sequential&&!p;return f.concurrent=v&&!y,f.sequential=y&&!v,s$(lo(t),h,l,this.each,f,u==null?void 0:u.fixtures())}return e.each=function(t,...n){const i=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&n.length&&(t=Cu(t,n)),(s,l,u)=>{const f=lo(s),h=t.every(Array.isArray),{options:p,handler:g}=Uo(l,u),v=typeof l=="function"&&typeof u=="object";t.forEach((y,w)=>{const L=Array.isArray(y)?y:[y];v?h?i(Jr(f,L,w),()=>g(...L),p):i(Jr(f,L,w),()=>g(y),p):h?i(Jr(f,L,w),p,()=>g(...L)):i(Jr(f,L,w),p,()=>g(y))}),this.setContext("each",void 0)}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=Cu(t,n)),(i,s,l)=>{const u=lo(i),{options:f,handler:h}=Uo(s,l);t.forEach((p,g)=>{jl(Jr(u,ja(p),g),f,()=>h(p))})}},e.skipIf=t=>t?jl.skip:jl,e.runIf=t=>t?jl:jl.skip,dx(["concurrent","sequential","shuffle","skip","only","todo"],e)}function c$(e,t){const n=e;n.each=function(s,...l){const u=this.withContext();return this.setContext("each",!0),Array.isArray(s)&&l.length&&(s=Cu(s,l)),(f,h,p)=>{const g=lo(f),v=s.every(Array.isArray),{options:y,handler:w}=Uo(h,p),L=typeof h=="function"&&typeof p=="object";s.forEach(($,A)=>{const E=Array.isArray($)?$:[$];L?v?u(Jr(g,E,A),()=>w(...E),y):u(Jr(g,E,A),()=>w($),y):v?u(Jr(g,E,A),y,()=>w(...E)):u(Jr(g,E,A),y,()=>w($))}),this.setContext("each",void 0)}},n.for=function(s,...l){const u=this.withContext();return Array.isArray(s)&&l.length&&(s=Cu(s,l)),(f,h,p)=>{const g=lo(f),{options:v,handler:y}=Uo(h,p);s.forEach((w,L)=>{const $=A=>y(w,A);$.__VITEST_FIXTURE_INDEX__=1,$.toString=()=>y.toString(),u(Jr(g,ja(w),L),v,$)})}},n.skipIf=function(s){return s?this.skip:this},n.runIf=function(s){return s?this:this.skip},n.scoped=function(s){wh().scoped(s)},n.extend=function(s){const l=cx(s,t||{},Xr),u=e;return Tp(function(f,h,p){const v=wh().fixtures(),y={...this};v&&(y.fixtures=QL(y.fixtures||[],v));const{handler:w,options:L}=Uo(h,p),$=L.timeout??void 0;u.call(y,lo(f),w,$)},l)};const i=dx(["concurrent","sequential","skip","only","todo","fails"],n);return t&&i.mergeContext(t),i}function Tp(e,t){return c$(e,t)}function lo(e){return typeof e=="string"?e:typeof e=="function"?e.name||"":String(e)}function Jr(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));const i=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((f,h)=>{if(FA(t[h])||Object.is(t[h],-0)){let p=0;e=e.replace(/%f/g,g=>(p++,p===h+1?"-%f":g))}});let s=zA(e,...t.slice(0,i));const l=Kw(t[0]);return s=s.replace(/\$([$\w.]+)/g,(u,f)=>{const h=/^\d+$/.test(f);if(!l&&!h)return`$${f}`;const p=h?a0(t,f):void 0,g=l?a0(t[0],f,p):p;return DA(g,{truncate:void 0})}),s}function Cu(e,t){const n=e.join("").trim().replace(/ /g,"").split(`
+`).map(s=>s.split("|"))[0],i=[];for(let s=0;sTa(t)?[t]:[t,...Cp(t.tasks)])}function h$(e){const t=[e.name];let n=e;for(;n!=null&&n.suite;)n=n.suite,n!=null&&n.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;Yw();const Pd=new Map,E0=[],tu=[];function p$(e){if(Pd.size){var t;const n=Array.from(Pd).map(([s,l])=>[s,l[0],l[1]]),i=(t=e.onTaskUpdate)===null||t===void 0?void 0:t.call(e,n,E0);i&&(tu.push(i),i.then(()=>tu.splice(tu.indexOf(i),1),()=>{})),E0.length=0,Pd.clear()}}async function g$(e){p$(e),await Promise.all(tu)}const A0=Date.now,ao={currentSuite:null};function m$(e){var t;(t=ao.currentSuite)===null||t===void 0||t.tasks.push(e)}async function v$(e,t){const n=ao.currentSuite;ao.currentSuite=e,await t(),ao.currentSuite=n}function xh(e,t,n=!1,i,s){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:l,clearTimeout:u}=Yw();return function(...h){const p=A0(),g=i$();return g._currentTaskStartTime=p,g._currentTaskTimeout=t,new Promise((v,y)=>{var w;const L=l(()=>{u(L),$()},t);(w=L.unref)===null||w===void 0||w.call(L);function $(){const M=x$(n,t,i);s==null||s(h,M),y(M)}function A(M){if(g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(L),A0()-p>=t){$();return}v(M)}function E(M){g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(L),y(M)}try{const M=e(...h);typeof M=="object"&&M!=null&&typeof M.then=="function"?M.then(A,E):A(M)}catch(M){E(M)}})}}const Sh=new WeakMap;function y$([e],t){e&&b$(e,t)}function b$(e,t){const n=Sh.get(e);n==null||n.abort(t)}function w$(e,t){var n;const i=function(){throw new Error("done() callback is deprecated, use promise instead")};let s=Sh.get(i);s||(s=new AbortController,Sh.set(i,s)),i.signal=s.signal,i.task=e,i.skip=(u,f)=>{if(u!==!1)throw e.result??(e.result={state:"skip"}),e.result.pending=!0,new VL("test is skipped; abort execution",e,typeof u=="string"?u:f)};async function l(u,f,h,p){const g={message:u,type:h||"notice"};if(p){if(!p.body&&!p.path)throw new TypeError("Test attachment requires body or path to be set. Both are missing.");if(p.body&&p.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');g.attachment=p,p.body instanceof Uint8Array&&(p.body=k$(p.body))}if(f&&(g.location=f),!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await g$(t);const v=await t.onTestAnnotate(e,g);return e.annotations.push(v),v}return i.annotate=(u,f,h)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let p;const g=new Error("STACK_TRACE").stack,v=g.includes("STACK_TRACE")?2:1,y=g.split(`
+`)[v],w=ix(y);return w&&(p={file:w.file,line:w.line,column:w.column}),typeof f=="object"?L0(e,l(u,p,void 0,f)):L0(e,l(u,p,f,h))},i.onTestFailed=(u,f)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(xh(u,f??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(h,p)=>s.abort(p)))},i.onTestFinished=(u,f)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(xh(u,f??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(h,p)=>s.abort(p)))},((n=t.extendTaskContext)===null||n===void 0?void 0:n.call(t,i))||i}function x$(e,t,n){const i=`${e?"Hook":"Test"} timed out in ${t}ms.
+If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,s=new Error(i);return n!=null&&n.stack&&(s.stack=n.stack.replace(s.message,n.message)),s}const yx=new WeakMap;function S$(e){const t=yx.get(e);if(!t)throw new Error(`Cannot find file context for ${e.name}`);return t}function _$(e,t){yx.set(e,t)}const ur=[];for(let e=65;e<91;e++)ur.push(String.fromCharCode(e));for(let e=97;e<123;e++)ur.push(String.fromCharCode(e));for(let e=0;e<10;e++)ur.push(e.toString(10));function k$(e){let t="";const n=e.byteLength;for(let i=0;i>2,l=(e[i]&3)<<4;t+=ur[s],t+=ur[l],t+="=="}else if(n===i+2){const s=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2;t+=ur[s],t+=ur[l],t+=ur[u],t+="="}else{const s=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2|(e[i+2]&192)>>6,f=e[i+2]&63;t+=ur[s],t+=ur[l],t+=ur[u],t+=ur[f]}return t}function L0(e,t){return t=t.finally(()=>{if(!e.promises)return;const n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||(e.promises=[]),e.promises.push(t),t}const $0="q",M0="s",T$=6e4;function bx(e){return e}const C$=bx,{clearTimeout:E$,setTimeout:A$}=globalThis,L$=Math.random.bind(Math);function $$(e,t){const{post:n,on:i,off:s=()=>{},eventNames:l=[],serialize:u=bx,deserialize:f=C$,resolver:h,bind:p="rpc",timeout:g=T$}=t,v=new Map;let y,w=!1;const L=new Proxy({},{get(E,M){if(M==="$functions")return e;if(M==="$close")return $;if(M==="$closed")return w;if(M==="then"&&!l.includes("then")&&!("then"in e))return;const O=(...z)=>{n(u({m:M,a:z,t:$0}))};if(l.includes(M))return O.asEvent=O,O;const k=async(...z)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${M}"`);if(y)try{await y}finally{y=void 0}return new Promise((D,te)=>{var q;const ee=N$();let W;g>=0&&(W=A$(()=>{var K;try{if(((K=t.onTimeoutError)==null?void 0:K.call(t,M,z))!==!0)throw new Error(`[birpc] timeout on calling "${M}"`)}catch(C){te(C)}v.delete(ee)},g),typeof W=="object"&&(W=(q=W.unref)==null?void 0:q.call(W))),v.set(ee,{resolve:D,reject:te,timeoutId:W,method:M}),n(u({m:M,a:z,i:ee,t:"q"}))})};return k.asEvent=O,k}});function $(E){w=!0,v.forEach(({reject:M,method:O})=>{M(E||new Error(`[birpc] rpc is closed, cannot call "${O}"`))}),v.clear(),s(A)}async function A(E,...M){var k,z,D;let O;try{O=f(E)}catch(te){if(((k=t.onGeneralError)==null?void 0:k.call(t,te))!==!0)throw te;return}if(O.t===$0){const{m:te,a:ee}=O;let W,q;const K=h?h(te,e[te]):e[te];if(!K)q=new Error(`[birpc] function "${te}" not found`);else try{W=await K.apply(p==="rpc"?L:e,ee)}catch(C){q=C}if(O.i){if(q&&t.onError&&t.onError(q,te,ee),q&&t.onFunctionError&&t.onFunctionError(q,te,ee)===!0)return;if(!q)try{n(u({t:M0,i:O.i,r:W}),...M);return}catch(C){if(q=C,((z=t.onGeneralError)==null?void 0:z.call(t,C,te,ee))!==!0)throw C}try{n(u({t:M0,i:O.i,e:q}),...M)}catch(C){if(((D=t.onGeneralError)==null?void 0:D.call(t,C,te,ee))!==!0)throw C}}}else{const{i:te,r:ee,e:W}=O,q=v.get(te);q&&(E$(q.timeoutId),W?q.reject(W):q.resolve(ee)),v.delete(te)}}return y=i(A),L}const M$="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function N$(e=21){let t="",n=e;for(;n--;)t+=M$[L$()*64|0];return t}const{parse:wx,stringify:I$}=JSON,{keys:P$}=Object,Ca=String,xx="string",N0={},Eu="object",Sx=(e,t)=>t,O$=e=>e instanceof Ca?Ca(e):e,R$=(e,t)=>typeof t===xx?new Ca(t):t,_x=(e,t,n,i)=>{const s=[];for(let l=P$(n),{length:u}=l,f=0;f{const i=Ca(t.push(n)-1);return e.set(n,i),i},_h=(e,t)=>{const n=wx(e,R$).map(O$),i=n[0],s=t||Sx,l=typeof i===Eu&&i?_x(n,new Set,i,s):i;return s.call({"":l},"",l)},kx=(e,t,n)=>{const i=t&&typeof t===Eu?(g,v)=>g===""||-1wx(kx(e));class Tx{constructor(){ji(this,"filesMap",new Map);ji(this,"pathsSet",new Set);ji(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(n=>this.filesMap.get(n)).flat().filter(n=>n&&!n.local):Array.from(this.filesMap.values()).flat().filter(n=>!n.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(n=>{this.pathsSet.add(n)})}collectFiles(t=[]){t.forEach(n=>{const i=this.filesMap.get(n.filepath)||[],s=i.filter(u=>u.projectName!==n.projectName||u.meta.typecheck!==n.meta.typecheck),l=i.find(u=>u.projectName===n.projectName);l&&(n.logs=l.logs),s.push(n),this.filesMap.set(n.filepath,s),this.updateId(n)})}clearFiles(t,n=[]){const i=t;n.forEach(s=>{const l=this.filesMap.get(s),u=gx(s,i.config.root,i.config.name||"");if(u.local=!0,this.idMap.set(u.id,u),!l){this.filesMap.set(s,[u]);return}const f=l.filter(h=>h.projectName!==i.config.name);f.length?this.filesMap.set(s,[...f,u]):this.filesMap.set(s,[u])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(n=>{this.updateId(n)}))}updateTasks(t){for(const[n,i,s]of t){const l=this.idMap.get(n);l&&(l.result=i,l.meta=s,(i==null?void 0:i.state)==="skip"&&(l.mode="skip"))}}updateUserLog(t){const n=t.taskId&&this.idMap.get(t.taskId);n&&(n.logs||(n.logs=[]),n.logs.push(t))}}function D$(e,t={}){const{handlers:n={},autoReconnect:i=!0,reconnectInterval:s=2e3,reconnectTries:l=10,connectTimeout:u=6e4,reactive:f=M=>M,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=l;const g=f({ws:new h(e),state:new Tx,waitForConnection:E,reconnect:$},"state");g.state.filesMap=f(g.state.filesMap,"filesMap"),g.state.idMap=f(g.state.idMap,"idMap");let v;const y={onTestAnnotate(M,O){var k;(k=n.onTestAnnotate)==null||k.call(n,M,O)},onSpecsCollected(M){var O;M==null||M.forEach(([k,z])=>{g.state.clearFiles({config:k},[z])}),(O=n.onSpecsCollected)==null||O.call(n,M)},onPathsCollected(M){var O;g.state.collectPaths(M),(O=n.onPathsCollected)==null||O.call(n,M)},onCollected(M){var O;g.state.collectFiles(M),(O=n.onCollected)==null||O.call(n,M)},onTaskUpdate(M,O){var k;g.state.updateTasks(M),(k=n.onTaskUpdate)==null||k.call(n,M,O)},onUserConsoleLog(M){var O;g.state.updateUserLog(M),(O=n.onUserConsoleLog)==null||O.call(n,M)},onFinished(M,O){var k;(k=n.onFinished)==null||k.call(n,M,O)},onFinishedReportCoverage(){var M;(M=n.onFinishedReportCoverage)==null||M.call(n)}},w={post:M=>g.ws.send(M),on:M=>v=M,serialize:M=>kx(M,(O,k)=>k instanceof Error?{name:k.name,message:k.message,stack:k.stack}:k),deserialize:_h,onTimeoutError(M){throw new Error(`[vitest-ws-client]: Timeout calling "${M}"`)}};g.rpc=$$(y,w);let L;function $(M=!1){M&&(p=l),g.ws=new h(e),A()}function A(){L=new Promise((M,O)=>{var z,D;const k=(D=(z=setTimeout(()=>{O(new Error(`Cannot connect to the server in ${u/1e3} seconds`))},u))==null?void 0:z.unref)==null?void 0:D.call(z);g.ws.OPEN===g.ws.readyState&&M(),g.ws.addEventListener("open",()=>{p=l,M(),clearTimeout(k)})}),g.ws.addEventListener("message",M=>{v(M.data)}),g.ws.addEventListener("close",()=>{p-=1,i&&p>0&&setTimeout($,s)})}A();function E(){return L}return g}function Ep(e){return cb()?(Dk(e),!0):!1}const Od=new WeakMap,F$=(...e)=>{var t;const n=e[0],i=(t=Ko())==null?void 0:t.proxy;if(i==null&&!Kb())throw new Error("injectLocal must be called in setup");return i&&Od.has(i)&&n in Od.get(i)?Od.get(i)[n]:wn(...e)},H$=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const B$=Object.prototype.toString,W$=e=>B$.call(e)==="[object Object]",Au=()=>{};function Cx(e,t){function n(...i){return new Promise((s,l)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(s).catch(l)})}return n}const Ex=e=>e();function Ax(e,t={}){let n,i,s=Au;const l=h=>{clearTimeout(h),s(),s=Au};let u;return h=>{const p=Gt(e),g=Gt(t.maxWait);return n&&l(n),p<=0||g!==void 0&&g<=0?(i&&(l(i),i=null),Promise.resolve(h())):new Promise((v,y)=>{s=t.rejectOnCancel?y:v,u=h,g&&!i&&(i=setTimeout(()=>{n&&l(n),i=null,v(u())},g)),n=setTimeout(()=>{i&&l(i),i=null,v(h())},p)})}}function j$(e=Ex,t={}){const{initialState:n="active"}=t,i=Lx(n==="active");function s(){i.value=!1}function l(){i.value=!0}const u=(...f)=>{i.value&&e(...f)};return{isActive:Ra(i),pause:s,resume:l,eventFilter:u}}function P0(e,t=!1,n="Timeout"){return new Promise((i,s)=>{setTimeout(t?()=>s(n):i,e)})}function O0(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function q$(e){return Ko()}function Rd(e){return Array.isArray(e)?e:[e]}function Lx(...e){if(e.length!==1)return ol(...e);const t=e[0];return typeof t=="function"?Ra(Cb(()=>({get:t,set:Au}))):Ue(t)}function Fc(e,t=200,n={}){return Cx(Ax(t,n),e)}function $x(e,t,n={}){const{eventFilter:i=Ex,...s}=n;return St(e,Cx(i,t),s)}function Mx(e,t,n={}){const{eventFilter:i,initialState:s="active",...l}=n,{eventFilter:u,pause:f,resume:h,isActive:p}=j$(i,{initialState:s});return{stop:$x(e,t,{...l,eventFilter:u}),pause:f,resume:h,isActive:p}}function Ap(e,t=!0,n){q$()?bo(e,n):t?e():Et(e)}function kh(e,t=!1){function n(v,{flush:y="sync",deep:w=!1,timeout:L,throwOnTimeout:$}={}){let A=null;const M=[new Promise(O=>{A=St(e,k=>{v(k)!==t&&(A?A():Et(()=>A==null?void 0:A()),O(k))},{flush:y,deep:w,immediate:!0})})];return L!=null&&M.push(P0(L,$).then(()=>Gt(e)).finally(()=>A==null?void 0:A())),Promise.race(M)}function i(v,y){if(!kt(v))return n(k=>k===v,y);const{flush:w="sync",deep:L=!1,timeout:$,throwOnTimeout:A}=y??{};let E=null;const O=[new Promise(k=>{E=St([e,v],([z,D])=>{t!==(z===D)&&(E?E():Et(()=>E==null?void 0:E()),k(z))},{flush:w,deep:L,immediate:!0})})];return $!=null&&O.push(P0($,A).then(()=>Gt(e)).finally(()=>(E==null||E(),Gt(e)))),Promise.race(O)}function s(v){return n(y=>!!y,v)}function l(v){return i(null,v)}function u(v){return i(void 0,v)}function f(v){return n(Number.isNaN,v)}function h(v,y){return n(w=>{const L=Array.from(w);return L.includes(v)||L.includes(Gt(v))},y)}function p(v){return g(1,v)}function g(v=1,y){let w=-1;return n(()=>(w+=1,w>=v),y)}return Array.isArray(Gt(e))?{toMatch:n,toContains:h,changed:p,changedTimes:g,get not(){return kh(e,!t)}}:{toMatch:n,toBe:i,toBeTruthy:s,toBeNull:l,toBeNaN:f,toBeUndefined:u,changed:p,changedTimes:g,get not(){return kh(e,!t)}}}function R0(e){return kh(e)}function U$(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,s=kt(e),l=rn(e);function u(f){if(arguments.length)return l.value=f,l.value;{const h=Gt(n);return l.value=l.value===h?Gt(i):h,l.value}}return s?u:[l,u]}function Lp(e,t,n={}){const{debounce:i=0,maxWait:s=void 0,...l}=n;return $x(e,t,{...l,eventFilter:Ax(i,{maxWait:s})})}function V$(e,t,n){return St(e,t,{...n,immediate:!0})}function G$(e,t,n){const i=St(e,(...s)=>(Et(()=>i()),t(...s)),n);return i}function X$(e,t,n){let i;kt(n)?i={evaluating:n}:i={};const{lazy:s=!1,evaluating:l=void 0,shallow:u=!0,onError:f=Au}=i,h=rn(!s),p=u?rn(t):Ue(t);let g=0;return hp(async v=>{if(!h.value)return;g++;const y=g;let w=!1;l&&Promise.resolve().then(()=>{l.value=!0});try{const L=await e($=>{v(()=>{l&&(l.value=!1),w||$()})});y===g&&(p.value=L)}catch(L){f(L)}finally{l&&y===g&&(l.value=!1),w=!0}}),s?_e(()=>(h.value=!0,p.value)):p}const Or=H$?window:void 0;function Lu(e){var t;const n=Gt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function go(...e){const t=[],n=()=>{t.forEach(f=>f()),t.length=0},i=(f,h,p,g)=>(f.addEventListener(h,p,g),()=>f.removeEventListener(h,p,g)),s=_e(()=>{const f=Rd(Gt(e[0])).filter(h=>h!=null);return f.every(h=>typeof h!="string")?f:void 0}),l=V$(()=>{var f,h;return[(h=(f=s.value)==null?void 0:f.map(p=>Lu(p)))!=null?h:[Or].filter(p=>p!=null),Rd(Gt(s.value?e[1]:e[0])),Rd(j(s.value?e[2]:e[1])),Gt(s.value?e[3]:e[2])]},([f,h,p,g])=>{if(n(),!(f!=null&&f.length)||!(h!=null&&h.length)||!(p!=null&&p.length))return;const v=W$(g)?{...g}:g;t.push(...f.flatMap(y=>h.flatMap(w=>p.map(L=>i(y,w,L,v)))))},{flush:"post"}),u=()=>{l(),n()};return Ep(n),u}function K$(){const e=rn(!1),t=Ko();return t&&bo(()=>{e.value=!0},t),e}function Nx(e){const t=K$();return _e(()=>(t.value,!!e()))}function J$(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Ix(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=Or,eventName:l="keydown",passive:u=!1,dedupe:f=!1}=i,h=J$(t);return go(s,l,g=>{g.repeat&&Gt(f)||h(g)&&n(g)},u)}function Y$(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:s=Or,once:l=!1}=t,u=rn(!1),f=_e(()=>i?1e3/Gt(i):null);let h=0,p=null;function g(w){if(!u.value||!s)return;h||(h=w);const L=w-h;if(f.value&&Ln&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=rn(typeof i=="number"),u=rn(),f=rn(!1),h=p=>{f.value=p.matches};return hp(()=>{if(l.value){l.value=!s.value;const p=Gt(e).split(",");f.value=p.some(g=>{const v=g.includes("not all"),y=g.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=g.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let L=!!(y||w);return y&&L&&(L=i>=O0(y[1])),w&&L&&(L=i<=O0(w[1])),v?!L:L});return}s.value&&(u.value=n.matchMedia(Gt(e)),f.value=u.value.matches)}),go(u,"change",h,{passive:!0}),_e(()=>f.value)}const Hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Bc="__vueuse_ssr_handlers__",eM=tM();function tM(){return Bc in Hc||(Hc[Bc]=Hc[Bc]||{}),Hc[Bc]}function Ox(e,t){return eM[e]||t}function nM(e){return Px("(prefers-color-scheme: dark)",e)}function rM(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const iM={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},z0="vueuse-storage";function Rx(e,t,n,i={}){var s;const{flush:l="pre",deep:u=!0,listenToStorageChanges:f=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=Or,eventFilter:y,onError:w=K=>{console.error(K)},initOnMounted:L}=i,$=(g?rn:Ue)(typeof t=="function"?t():t),A=_e(()=>Gt(e));if(!n)try{n=Ox("getDefaultStorage",()=>{var K;return(K=Or)==null?void 0:K.localStorage})()}catch(K){w(K)}if(!n)return $;const E=Gt(t),M=rM(E),O=(s=i.serializer)!=null?s:iM[M],{pause:k,resume:z}=Mx($,()=>te($.value),{flush:l,deep:u,eventFilter:y});St(A,()=>W(),{flush:l}),v&&f&&Ap(()=>{n instanceof Storage?go(v,"storage",W,{passive:!0}):go(v,z0,q),L&&W()}),L||W();function D(K,C){if(v){const P={key:A.value,oldValue:K,newValue:C,storageArea:n};v.dispatchEvent(n instanceof Storage?new StorageEvent("storage",P):new CustomEvent(z0,{detail:P}))}}function te(K){try{const C=n.getItem(A.value);if(K==null)D(C,null),n.removeItem(A.value);else{const P=O.write(K);C!==P&&(n.setItem(A.value,P),D(C,P))}}catch(C){w(C)}}function ee(K){const C=K?K.newValue:n.getItem(A.value);if(C==null)return h&&E!=null&&n.setItem(A.value,O.write(E)),E;if(!K&&p){const P=O.read(C);return typeof p=="function"?p(P,E):M==="object"&&!Array.isArray(P)?{...E,...P}:P}else return typeof C!="string"?C:O.read(C)}function W(K){if(!(K&&K.storageArea!==n)){if(K&&K.key==null){$.value=E;return}if(!(K&&K.key!==A.value)){k();try{(K==null?void 0:K.newValue)!==O.write($.value)&&($.value=ee(K))}catch(C){w(C)}finally{K?Et(z):z()}}}}function q(K){W(K.detail)}return $}const oM="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function sM(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:s=Or,storage:l,storageKey:u="vueuse-color-scheme",listenToStorageChanges:f=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},y=nM({window:s}),w=_e(()=>y.value?"dark":"light"),L=h||(u==null?Lx(i):Rx(u,i,l,{window:s,listenToStorageChanges:f})),$=_e(()=>L.value==="auto"?w.value:L.value),A=Ox("updateHTMLAttrs",(k,z,D)=>{const te=typeof k=="string"?s==null?void 0:s.document.querySelector(k):Lu(k);if(!te)return;const ee=new Set,W=new Set;let q=null;if(z==="class"){const C=D.split(/\s/g);Object.values(v).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{C.includes(P)?ee.add(P):W.add(P)})}else q={key:z,value:D};if(ee.size===0&&W.size===0&&q===null)return;let K;g&&(K=s.document.createElement("style"),K.appendChild(document.createTextNode(oM)),s.document.head.appendChild(K));for(const C of ee)te.classList.add(C);for(const C of W)te.classList.remove(C);q&&te.setAttribute(q.key,q.value),g&&(s.getComputedStyle(K).opacity,document.head.removeChild(K))});function E(k){var z;A(t,n,(z=v[k])!=null?z:k)}function M(k){e.onChanged?e.onChanged(k,E):E(k)}St($,M,{flush:"post",immediate:!0}),Ap(()=>M($.value));const O=_e({get(){return p?L.value:$.value},set(k){L.value=k}});return Object.assign(O,{store:L,system:w,state:$})}function lM(e={}){const{valueDark:t="dark",valueLight:n=""}=e,i=sM({...e,onChanged:(u,f)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,u==="dark",f,u):f(u)},modes:{dark:t,light:n}}),s=_e(()=>i.system.value);return _e({get(){return i.value==="dark"},set(u){const f=u?"dark":"light";s.value===f?i.value="auto":i.value=f}})}function zx(e,t,n={}){const{window:i=Or,...s}=n;let l;const u=Nx(()=>i&&"ResizeObserver"in i),f=()=>{l&&(l.disconnect(),l=void 0)},h=_e(()=>{const v=Gt(e);return Array.isArray(v)?v.map(y=>Lu(y)):[Lu(v)]}),p=St(h,v=>{if(f(),u.value&&i){l=new ResizeObserver(t);for(const y of v)y&&l.observe(y,s)}},{immediate:!0,flush:"post"}),g=()=>{f(),p()};return Ep(g),{isSupported:u,stop:g}}function uf(e,t,n={}){const{window:i=Or}=n;return Rx(e,t,i==null?void 0:i.localStorage,n)}function aM(e="history",t={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:s=!1,write:l=!0,writeMode:u="replace",w
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 2865292c74297d207d60297d636f6e7374206e303d6e65772052656745787028225b275c5c75303030302d5c5c75303031665c5c75303037662d5c5c75303039665c5c75303061645c5c75303630302d5c5c75303630345c5c75303730665c5c75313762
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (65536 bytes):
+[TLS-PRELOAD-5] WebSocket Ping frame (FIN: false)
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 696e646f773a663d4f727d3d743b69662821662972657475726e207272286e293b636f6e737420683d7272287b7d293b66756e6374696f6e207028297b696628653d3d3d22686973746f7279222972657475726e20662e6c6f636174696f6e2e73656172
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (205 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Content-Length: 76825
+[TLS-PRELOAD-7] Content-Type: text/css
+[TLS-PRELOAD-7] Last-Modified: Thu, 11 Dec 2025 18:40:02 GMT
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:47 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (65536 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 237465737465722d636f6e7461696e65725b646174612d762d39666432336536335d3a6e6f74285b646174612d72656164795d297b77696474683a313030253b6865696768743a313030253b646973706c61793a666c65783b616c69676e2d6974656d73
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (65536 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 76617220653d5472262654722e5f5f696d706f727444656661756c747c7c66756e6374696f6e2870297b72657475726e20702626702e5f5f65734d6f64756c653f703a7b64656661756c743a707d7d3b4f626a6563742e646566696e6550726f70657274
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (11289 bytes):
+[TLS-PRELOAD-7] WebSocket Binary frame (FIN: false)
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 72282d2d756e2d726f746174652d79292920726f7461746528766172282d2d756e2d726f746174652d7a292920736b657728766172282d2d756e2d736b65772d78292920736b65775928766172282d2d756e2d736b65772d792929207363616c65582876
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (65536 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 337d7d72657475726e20647d66756e6374696f6e2075672872297b766172206f3d722e6d61726b65645370616e733b6966286f297b666f722876617220633d303b633c6f2e6c656e6774683b2b2b63296f5b635d2e6d61726b65722e6465746163684c69
+[RESPONSE] GET /__vitest_browser__/orchestrator-Bo1OwGWc.js - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (624860 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Content-Type: text/javascript
+[TLS-PRELOAD-6] Cache-Control: no-cache
+[TLS-PRELOAD-6] Etag: W/"1ad60-OjbI5MEjfofVpKpCrgpf/kuy2GI"
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:47 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Content-Length: 624631
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (0 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars):
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (65536 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 6d2626676528612c642e686973746f7279293d3d2d31262628536d28642e686973746f72792c6f292c612e7075736828642e686973746f727929292c436c28642c6f2c6e756c6c2c5f6628642c6f29297d297d7d66756e6374696f6e20536328722c6f2c
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (65536 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 3b66756e6374696f6e206d2878297b666f7228766172205f3d782e7461726765743b5f3b5f3d5f2e706172656e744e6f6465297b6966285f3d3d642972657475726e21303b6966282f5c62436f64654d6972726f722d283f3a6c696e65293f7769646765
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (65536 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 742e637265617465456c656d656e742822696d6722293b75652e636c6173734c6973742e6164642822696e6c696e652d626c6f636b222c226d742d3322292c75652e7374796c652e6d617857696474683d2235307677223b636f6e73742050653d522e70
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (65536 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 7428242c4c284129292c74293a662e6765742824297d2c66696e643a66756e6374696f6e28242c412c45297b766172204d3d302c4f3d652e6c656e6774682c6b2c7a2c442c74652c65653b666f7228453d3d6e756c6c3f453d312f303a452a3d452c4d3d
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (41195 bytes):
+[TLS-PRELOAD-5] WebSocket Text frame (FIN: false)
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 61722053656172636820222c34322c476265292c6e652822627574746f6e222c7b747970653a22627574746f6e222c22666f6e742d6c69676874223a22222c22746578742d736d223a22222c626f726465723a227e20677261792d3430302f353020726f
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 491 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 491 bytes
+[2025-12-17T17:00:48.940Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "GET",
+ "url": "/node_modules/@vitest/browser/dist/client.js?v=f2e63b32",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] GET /node_modules/@vitest/browser/dist/client.js?v=f2e63b32 - Host: vite.bs-local.com:63315
+[RESPONSE] GET /node_modules/@vitest/browser/dist/client.js?v=f2e63b32 - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (66776 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Cache-Control: no-cache
+[TLS-PRELOAD-2] Content-Type: text/javascript
+[TLS-PRELOAD-2] Etag: W/"2d92-+DeZ1DJs57IR8ybRGRe1WwKM7IM"
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:48 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Content-Length: 66541
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (0 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars):
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 525 bytes (state: readingHeaders)
+[TLS-PRELOAD-3] ✅ Complete HTTP headers received (request #1)
+[TLS-PRELOAD-3] 📨 Forwarding 525 bytes to original handlers
+[2025-12-17T17:00:48.963Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "GET",
+ "url": "/node_modules/@vitest/browser/dist/client/__vitest_browser__/utils-Owv5OOOf.js?v=f2e63b32",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] GET /node_modules/@vitest/browser/dist/client/__vitest_browser__/utils-Owv5OOOf.js?v=f2e63b32 - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[TLS-PRELOAD-3] ✅ Switched to passingThrough state - will forward all subsequent data
+[RESPONSE] GET /node_modules/@vitest/browser/dist/client/__vitest_browser__/utils-Owv5OOOf.js?v=f2e63b32 - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (34581 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Cache-Control: no-cache
+[TLS-PRELOAD-3] Content-Type: text/javascript
+[TLS-PRELOAD-3] Etag: W/"172b-JQIPBkCz9aHGv4TebzrAtvAtEsk"
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:48 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Content-Length: 34346
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (0 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars):
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:49.049Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 95 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 95 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 95
+[CONSOLE ENDPOINT] Request ended, body length: 95
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[Console Capture] Initialized successfully","timestamp":1765990848871}
+
+================================================================================
+[BROWSER LOG] [Console Capture] Initialized successfully
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 510 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 510 bytes
+[2025-12-17T17:00:49.053Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 2097 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 2097 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 2097
+[CONSOLE ENDPOINT] Request ended, body length: 2097
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[Debug] window.__vitest_browser_runner__: object {\"moduleCache\":{},\"cleanups\":[],\"config\":{\"mode\":\"test\",\"isolate\":false,\"defines\":{},\"setupFiles\":[\"/Users/raju.ahmed/workspace/javascript-sdk/vitest.setup.ts\"],\"allowOnly\":true,\"testTimeout\":60000,\"hookTimeout\":60000,\"clearMocks\":false,\"mockReset\":false,\"restoreMocks\":false,\"unstubEnvs\":false,\"unstubGlobals\":false,\"maxConcurrency\":5,\"pool\":\"forks\",\"expect\":{},\"snapshotSerializers\":[],\"disableConsoleIntercept\":false,\"root\":\"/Users/raju.ahmed/workspace/javascript-sdk\",\"name\":\"safari\",\"globals\":false,\"coverage\":{\"reportsDirectory\":\"./coverage\",\"provider\":\"v8\",\"enabled\":false,\"htmlReporter\":{}},\"fakeTimers\":{\"loopLimit\":10000,\"shouldClearNativeTimers\":true},\"poolOptions\":{\"forks\":{\"singleFork\":false,\"isolate\":false},\"threads\":{\"singleThread\":false,\"isolate\":false},\"vmThreads\":{\"singleThread\":false},\"vmForks\":{\"singleFork\":false}},\"deps\":{\"web\":{\"transformAssets\":true,\"transformCss\":true,\"transformGlobPattern\":[]},\"optimizer\":{\"web\":{\"enabled\":true},\"ssr\":{\"enabled\":true}},\"moduleDirectories\":[\"/node_modules/\"]},\"snapshotOptions\":{\"updateSnapshot\":\"new\",\"snapshotFormat\":{},\"expand\":false},\"sequence\":{\"hooks\":\"stack\"},\"inspector\":{\"enabled\":false,\"waitForDebugger\":false},\"watch\":false,\"includeTaskLocation\":true,\"env\":{\"BASE_URL\":\"/\",\"MODE\":\"test\",\"DEV\":true,\"PROD\":false,\"VITEST_BROWSER_DEBUG\":\"\"},\"browser\":{\"name\":\"safari\",\"headless\":false,\"isolate\":true,\"fileParallelism\":true,\"ui\":true,\"viewport\":{\"width\":414,\"height\":896},\"screenshotFailures\":false,\"locators\":{\"testIdAttribute\":\"data-testid\"},\"providerOptions\":{}}},\"viteConfig\":{\"root\":\"/Users/raju.ahmed/workspace/javascript-sdk\"},\"type\":\"orchestrator\",\"sessionId\":\"78a16794-a053-4b00-a1ec-11167758f0cc\",\"testerId\":\"none\",\"provider\":\"webdriverio\",\"method\":\"orchestrate\",\"providedContext\":\"[{}]\"}","timestamp":1765990848875}
+
+================================================================================
+[BROWSER LOG] [Debug] window.__vitest_browser_runner__: object {"moduleCache":{},"cleanups":[],"config":{"mode":"test","isolate":false,"defines":{},"setupFiles":["/Users/raju.ahmed/workspace/javascript-sdk/vitest.setup.ts"],"allowOnly":true,"testTimeout":60000,"hookTimeout":60000,"clearMocks":false,"mockReset":false,"restoreMocks":false,"unstubEnvs":false,"unstubGlobals":false,"maxConcurrency":5,"pool":"forks","expect":{},"snapshotSerializers":[],"disableConsoleIntercept":false,"root":"/Users/raju.ahmed/workspace/javascript-sdk","name":"safari","globals":false,"coverage":{"reportsDirectory":"./coverage","provider":"v8","enabled":false,"htmlReporter":{}},"fakeTimers":{"loopLimit":10000,"shouldClearNativeTimers":true},"poolOptions":{"forks":{"singleFork":false,"isolate":false},"threads":{"singleThread":false,"isolate":false},"vmThreads":{"singleThread":false},"vmForks":{"singleFork":false}},"deps":{"web":{"transformAssets":true,"transformCss":true,"transformGlobPattern":[]},"optimizer":{"web":{"enabled":true},"ssr":{"enabled":true}},"moduleDirectories":["/node_modules/"]},"snapshotOptions":{"updateSnapshot":"new","snapshotFormat":{},"expand":false},"sequence":{"hooks":"stack"},"inspector":{"enabled":false,"waitForDebugger":false},"watch":false,"includeTaskLocation":true,"env":{"BASE_URL":"/","MODE":"test","DEV":true,"PROD":false,"VITEST_BROWSER_DEBUG":""},"browser":{"name":"safari","headless":false,"isolate":true,"fileParallelism":true,"ui":true,"viewport":{"width":414,"height":896},"screenshotFailures":false,"locators":{"testIdAttribute":"data-testid"},"providerOptions":{}}},"viteConfig":{"root":"/Users/raju.ahmed/workspace/javascript-sdk"},"type":"orchestrator","sessionId":"78a16794-a053-4b00-a1ec-11167758f0cc","testerId":"none","provider":"webdriverio","method":"orchestrate","providedContext":"[{}]"}
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 449 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 449 bytes
+[2025-12-17T17:00:49.081Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "GET",
+ "url": "/@vite/client",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] GET /@vite/client - Host: vite.bs-local.com:63315
+[RESPONSE] GET /@vite/client - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (179055 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Content-Type: text/javascript
+[TLS-PRELOAD-3] Cache-Control: no-cache
+[TLS-PRELOAD-3] Etag: W/"8474-daqGqHlDTJMwJKA3ET2q7+QjPpY"
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Content-Length: 178819
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (0 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars):
+[TLS-PRELOAD-8] 🔐 Secure connection established
+[TLS-PRELOAD-8] 📋 Found 1 'data' listeners
+[TLS-PRELOAD-8] 🎯 Wrapping existing 'data' listener(s)!
+[TLS-PRELOAD-8] ✅ Data event interceptor installed
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 494 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 494 bytes
+[2025-12-17T17:00:49.293Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "GET",
+ "url": "/node_modules/vitest/node_modules/vite/dist/client/env.mjs",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] GET /node_modules/vitest/node_modules/vite/dist/client/env.mjs - Host: vite.bs-local.com:63315
+[RESPONSE] GET /node_modules/vitest/node_modules/vite/dist/client/env.mjs - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (3711 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Content-Type: text/javascript
+[TLS-PRELOAD-2] Cache-Control: no-cache
+[TLS-PRELOAD-2] Etag: W/"25b-V2bmMiQli1AsiiEb1NEXbTMk57g"
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Content-Length: 3478
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (0 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars):
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.390Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 178 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 178 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 178
+[CONSOLE ENDPOINT] Request ended, body length: 178
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc","timestamp":1765990849214}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.392Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 134 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 134 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 134
+[CONSOLE ENDPOINT] Request ended, body length: 134
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv","timestamp":1765990849213}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.395Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 100 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 100 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 100
+[CONSOLE ENDPOINT] Request ended, body length: 100
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug ID: debug-1765990849214-c4854","timestamp":1765990849215}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug ID: debug-1765990849214-c4854
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:49.397Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.398Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 84 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 84 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 84
+[CONSOLE ENDPOINT] Request ended, body length: 84
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Protocols: vite-hmr","timestamp":1765990849214}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Protocols: vite-hmr
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 128 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 128 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 128
+[CONSOLE ENDPOINT] Request ended, body length: 128
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Original URL: wss://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv","timestamp":1765990849214}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Original URL: wss://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.452Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 161 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 161 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 161
+[CONSOLE ENDPOINT] Request ended, body length: 161
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug URL: wss://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849214-c4854","timestamp":1765990849215}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug URL: wss://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849214-c4854
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.457Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 145 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 145 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 145
+[CONSOLE ENDPOINT] Request ended, body length: 145
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State: CONNECTING ( 0 ) - URL: wss://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv","timestamp":1765990849216}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State: CONNECTING ( 0 ) - URL: wss://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.461Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 172 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 172 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 172
+[CONSOLE ENDPOINT] Request ended, body length: 172
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990849274}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:49.584Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 85 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 85 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 85
+[CONSOLE ENDPOINT] Request ended, body length: 85
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Protocols: undefined","timestamp":1765990849275}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Protocols: undefined
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.591Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 178 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 178 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 178
+[CONSOLE ENDPOINT] Request ended, body length: 178
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc","timestamp":1765990849275}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.595Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 165 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 165 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 165
+[CONSOLE ENDPOINT] Request ended, body length: 165
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990849276}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.597Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 135 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 135 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 135
+[CONSOLE ENDPOINT] Request ended, body length: 135
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] ==================== VITEST API WEBSOCKET ====================","timestamp":1765990849275}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] ==================== VITEST API WEBSOCKET ====================
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:49.598Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Protocols: undefined","timestamp":1765990849276}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Protocols: undefined
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.600Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 121 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 121 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 121
+[CONSOLE ENDPOINT] Request ended, body length: 121
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location origin: https://vite.bs-local.com:63315","timestamp":1765990849276}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location origin: https://vite.bs-local.com:63315
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-8] 📦 INTERCEPTED DATA! 625 bytes (state: readingHeaders)
+[TLS-PRELOAD-8] ✅ Complete HTTP headers received (request #1)
+
+================================================================================
+[TLS-PRELOAD-8] 🎯 INCOMING WEBSOCKET REQUEST HEADERS
+[TLS-PRELOAD-8] Request line: GET /__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df HTTP/1.1
+[TLS-PRELOAD-8] All request headers:
+[TLS-PRELOAD-8] Host: vite.bs-local.com:63315
+[TLS-PRELOAD-8] Origin: https://vite.bs-local.com:63315
+[TLS-PRELOAD-8] Pragma: no-cache
+[TLS-PRELOAD-8] Cache-Control: no-cache
+[TLS-PRELOAD-8] Sec-WebSocket-Key: Yoxa/dhUvsE4AYZ5Ir295w==
+[TLS-PRELOAD-8] Sec-WebSocket-Version: 13
+[TLS-PRELOAD-8] Sec-WebSocket-Extensions: x-webkit-deflate-frame
+[TLS-PRELOAD-8] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
+[TLS-PRELOAD-8] Via: 1.1 browsermobproxy
+[TLS-PRELOAD-8] Has Sec-WebSocket-Key: true
+[TLS-PRELOAD-8] Has Upgrade header: false
+[TLS-PRELOAD-8] Has Connection header: false
+================================================================================
+
+
+================================================================================
+[TLS-PRELOAD-8] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+================================================================================
+
+[TLS-PRELOAD-8] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+[TLS-PRELOAD-8] ✅ Injected: Upgrade: websocket
+[TLS-PRELOAD-8] ✅ Injected: Connection: Upgrade
+[TLS-PRELOAD-8] ✅ Headers injected! Forwarding modified headers
+[TLS-PRELOAD-8] 📨 Forwarding 666 bytes to original handlers
+[2025-12-17T17:00:49.602Z] [WEBSOCKET_UPGRADE_REQUEST] {
+ "socketId": 18,
+ "protocol": "https",
+ "url": "/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "upgradeHeader": "websocket",
+ "connectionHeader": "Upgrade",
+ "isWebSocket": true,
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53555,
+ "wsKey": "Yoxa/dhUvsE4AYZ5Ir295w==",
+ "wsVersion": "13",
+ "wsExtensions": "x-webkit-deflate-frame"
+}
+
+--------------------------------------------------------------------------------
+[WEBSOCKET UPGRADE]
+Socket ID: 18
+Protocol: https
+URL: /__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df
+Full URL: https://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df
+Origin: https://vite.bs-local.com:63315
+Upgrade: websocket
+Connection: Upgrade
+Is WebSocket: true
+Session ID: 78a16794-a053-4b00-a1ec-11167758f0cc
+Time: 2025-12-17T17:00:49.602Z
+--------------------------------------------------------------------------------
+
+[TLS-PRELOAD-8] 📤 OUTGOING DATA (129 bytes):
+[TLS-PRELOAD-8] 🎯 WEBSOCKET UPGRADE RESPONSE DETECTED!
+[TLS-PRELOAD-8] Response:
+HTTP/1.1 101 Switching Protocols
+Upgrade: websocket
+Connection: Upgrade
+Sec-WebSocket-Accept: 7TXeRB084pj/McRaXos2jJBDzRw=
+
+
+[TLS-PRELOAD-8] Status line: HTTP/1.1 101 Switching Protocols
+[TLS-PRELOAD-8] Response headers:
+[TLS-PRELOAD-8] Upgrade: websocket
+[TLS-PRELOAD-8] Connection: Upgrade
+[TLS-PRELOAD-8] Sec-WebSocket-Accept: 7TXeRB084pj/McRaXos2jJBDzRw=
+[TLS-PRELOAD-8] ✅ Switched to passingThrough state - will forward all subsequent data
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:49.653Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 98 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 98 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 98
+[CONSOLE ENDPOINT] Request ended, body length: 98
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location protocol: https:","timestamp":1765990849277}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location protocol: https:
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.667Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 111 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 111 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 111
+[CONSOLE ENDPOINT] Request ended, body length: 111
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location host: vite.bs-local.com:63315","timestamp":1765990849277}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location host: vite.bs-local.com:63315
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-9] 🔐 Secure connection established
+[TLS-PRELOAD-9] 📋 Found 1 'data' listeners
+[TLS-PRELOAD-9] 🎯 Wrapping existing 'data' listener(s)!
+[TLS-PRELOAD-9] ✅ Data event interceptor installed
+[TLS-PRELOAD-10] 🔐 Secure connection established
+[TLS-PRELOAD-10] 📋 Found 1 'data' listeners
+[TLS-PRELOAD-10] 🎯 Wrapping existing 'data' listener(s)!
+[TLS-PRELOAD-10] ✅ Data event interceptor installed
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.715Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.716Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 109 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 109 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 109
+[CONSOLE ENDPOINT] Request ended, body length: 109
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location hostname: vite.bs-local.com","timestamp":1765990849277}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location hostname: vite.bs-local.com
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:49.719Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location port: 63315","timestamp":1765990849278}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location port: 63315
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 183 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 183 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 183
+[CONSOLE ENDPOINT] Request ended, body length: 183
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location href: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc","timestamp":1765990849278}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location href: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.723Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 204 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 204 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 204
+[CONSOLE ENDPOINT] Request ended, body length: 204
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15","timestamp":1765990849278}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-8] 🔚 Socket.end() called - connection terminating
+[TLS-PRELOAD-8] Arguments passed to .end(): 0
+[TLS-PRELOAD-8] Call stack:
+Error
+ at tlsSocket.end (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:348:25)
+ at TLSSocket.socketOnEnd (/Users/raju.ahmed/workspace/javascript-sdk/node_modules/ws/lib/websocket.js:1370:8)
+ at TLSSocket.emit (node:events:536:35)
+ at TLSSocket.emit (node:domain:489:12)
+ at endReadableNT (node:internal/streams/readable:1698:12)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-8] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-8] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at finish (node:internal/streams/writable:968:14)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-8] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-8] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.730Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 138 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 138 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 138
+[CONSOLE ENDPOINT] Request ended, body length: 138
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] =================================================================","timestamp":1765990849279}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] =================================================================
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.732Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 166 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 166 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 166
+[CONSOLE ENDPOINT] Request ended, body length: 166
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Original URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990849279}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Original URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-9] 📦 INTERCEPTED DATA! 503 bytes (state: readingHeaders)
+[TLS-PRELOAD-9] ✅ Complete HTTP headers received (request #1)
+
+================================================================================
+[TLS-PRELOAD-9] 🎯 INCOMING WEBSOCKET REQUEST HEADERS
+[TLS-PRELOAD-9] Request line: GET /?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849214-c4854 HTTP/1.1
+[TLS-PRELOAD-9] All request headers:
+[TLS-PRELOAD-9] Host: vite.bs-local.com:63315
+[TLS-PRELOAD-9] Origin: https://vite.bs-local.com:63315
+[TLS-PRELOAD-9] Sec-WebSocket-Protocol: vite-hmr
+[TLS-PRELOAD-9] Pragma: no-cache
+[TLS-PRELOAD-9] Cache-Control: no-cache
+[TLS-PRELOAD-9] Sec-WebSocket-Key: p06I2IddcHTcoi6kmgtzkw==
+[TLS-PRELOAD-9] Sec-WebSocket-Version: 13
+[TLS-PRELOAD-9] Sec-WebSocket-Extensions: x-webkit-deflate-frame
+[TLS-PRELOAD-9] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
+[TLS-PRELOAD-9] Via: 1.1 browsermobproxy
+[TLS-PRELOAD-9] Has Sec-WebSocket-Key: true
+[TLS-PRELOAD-9] Has Upgrade header: false
+[TLS-PRELOAD-9] Has Connection header: false
+================================================================================
+
+
+================================================================================
+[TLS-PRELOAD-9] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+================================================================================
+
+[TLS-PRELOAD-9] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+[TLS-PRELOAD-9] ✅ Injected: Upgrade: websocket
+[TLS-PRELOAD-9] ✅ Injected: Connection: Upgrade
+[TLS-PRELOAD-9] ✅ Headers injected! Forwarding modified headers
+[TLS-PRELOAD-9] 📨 Forwarding 544 bytes to original handlers
+[2025-12-17T17:00:49.782Z] [WEBSOCKET_UPGRADE_REQUEST] {
+ "socketId": 20,
+ "protocol": "https",
+ "url": "/?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849214-c4854",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "upgradeHeader": "websocket",
+ "connectionHeader": "Upgrade",
+ "isWebSocket": true,
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53556,
+ "wsKey": "p06I2IddcHTcoi6kmgtzkw==",
+ "wsVersion": "13",
+ "wsExtensions": "x-webkit-deflate-frame"
+}
+
+--------------------------------------------------------------------------------
+[WEBSOCKET UPGRADE]
+Socket ID: 20
+Protocol: https
+URL: /?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849214-c4854
+Full URL: https://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849214-c4854
+Origin: https://vite.bs-local.com:63315
+Upgrade: websocket
+Connection: Upgrade
+Is WebSocket: true
+Time: 2025-12-17T17:00:49.782Z
+--------------------------------------------------------------------------------
+
+[TLS-PRELOAD-9] 🔚 Socket.end() called - connection terminating
+[TLS-PRELOAD-9] Arguments passed to .end(): 1
+[TLS-PRELOAD-9] Arg 0: string HTTP/1.1 400 Bad Request
+Connection: close
+Content-Type: text/html
+Content-Length: 11
+
+Bad Request
+[TLS-PRELOAD-9] Call stack:
+Error
+ at tlsSocket.end (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:348:25)
+ at abortHandshake (file:///Users/raju.ahmed/workspace/javascript-sdk/node_modules/vitest/node_modules/vite/dist/node/chunks/config.js:20222:10)
+ at WebSocketServer$1.handleUpgrade (file:///Users/raju.ahmed/workspace/javascript-sdk/node_modules/vitest/node_modules/vite/dist/node/chunks/config.js:20071:5)
+ at handleUpgrade (file:///Users/raju.ahmed/workspace/javascript-sdk/node_modules/vitest/node_modules/vite/dist/node/chunks/config.js:20392:7)
+ at Server.hmrServerWsListener (file:///Users/raju.ahmed/workspace/javascript-sdk/node_modules/vitest/node_modules/vite/dist/node/chunks/config.js:20409:88)
+ at Server.emit (node:events:536:35)
+ at httpServer.emit (file:///Users/raju.ahmed/workspace/javascript-sdk/node_modules/.vite-temp/vitest.browser.config.mts.timestamp-1765990835534-2ca03a957074f.mjs:361:33)
+ at onParserExecuteCommon (node:_http_server:938:14)
+ at socketOnData (node:_http_server:824:3)
+ at TLSSocket. (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:477:34)
+[TLS-PRELOAD-9] ✅ Switched to passingThrough state - will forward all subsequent data
+[TLS-PRELOAD-9] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-9] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Object.onceWrapper (node:events:638:28)
+ at TLSSocket.emit (node:events:524:28)
+ at TLSSocket.emit (node:domain:489:12)
+ at finish (node:internal/streams/writable:955:10)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-9] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-9] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-10] 📦 INTERCEPTED DATA! 507 bytes (state: readingHeaders)
+[TLS-PRELOAD-10] ✅ Complete HTTP headers received (request #1)
+
+================================================================================
+[TLS-PRELOAD-10] 🎯 INCOMING WEBSOCKET REQUEST HEADERS
+[TLS-PRELOAD-10] Request line: GET /__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990849279-9uer5 HTTP/1.1
+[TLS-PRELOAD-10] All request headers:
+[TLS-PRELOAD-10] Host: vite.bs-local.com:63315
+[TLS-PRELOAD-10] Origin: https://vite.bs-local.com:63315
+[TLS-PRELOAD-10] Pragma: no-cache
+[TLS-PRELOAD-10] Cache-Control: no-cache
+[TLS-PRELOAD-10] Sec-WebSocket-Key: Qg2QX+pMqACygV01iz0oKg==
+[TLS-PRELOAD-10] Sec-WebSocket-Version: 13
+[TLS-PRELOAD-10] Sec-WebSocket-Extensions: x-webkit-deflate-frame
+[TLS-PRELOAD-10] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
+[TLS-PRELOAD-10] Via: 1.1 browsermobproxy
+[TLS-PRELOAD-10] Has Sec-WebSocket-Key: true
+[TLS-PRELOAD-10] Has Upgrade header: false
+[TLS-PRELOAD-10] Has Connection header: false
+================================================================================
+
+
+================================================================================
+[TLS-PRELOAD-10] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+================================================================================
+
+[TLS-PRELOAD-10] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+[TLS-PRELOAD-10] ✅ Injected: Upgrade: websocket
+[TLS-PRELOAD-10] ✅ Injected: Connection: Upgrade
+[TLS-PRELOAD-10] ✅ Headers injected! Forwarding modified headers
+[TLS-PRELOAD-10] 📨 Forwarding 548 bytes to original handlers
+[2025-12-17T17:00:49.816Z] [WEBSOCKET_UPGRADE_REQUEST] {
+ "socketId": 21,
+ "protocol": "https",
+ "url": "/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990849279-9uer5",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "upgradeHeader": "websocket",
+ "connectionHeader": "Upgrade",
+ "isWebSocket": true,
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53557,
+ "wsKey": "Qg2QX+pMqACygV01iz0oKg==",
+ "wsVersion": "13",
+ "wsExtensions": "x-webkit-deflate-frame"
+}
+
+--------------------------------------------------------------------------------
+[WEBSOCKET UPGRADE]
+Socket ID: 21
+Protocol: https
+URL: /__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990849279-9uer5
+Full URL: https://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990849279-9uer5
+Origin: https://vite.bs-local.com:63315
+Upgrade: websocket
+Connection: Upgrade
+Is WebSocket: true
+Time: 2025-12-17T17:00:49.816Z
+--------------------------------------------------------------------------------
+
+[TLS-PRELOAD-10] 📤 OUTGOING DATA (129 bytes):
+[TLS-PRELOAD-10] 🎯 WEBSOCKET UPGRADE RESPONSE DETECTED!
+[TLS-PRELOAD-10] Response:
+HTTP/1.1 101 Switching Protocols
+Upgrade: websocket
+Connection: Upgrade
+Sec-WebSocket-Accept: aPgVPnuFPOew7r+hp2JyqLtZ7lI=
+
+
+[TLS-PRELOAD-10] Status line: HTTP/1.1 101 Switching Protocols
+[TLS-PRELOAD-10] Response headers:
+[TLS-PRELOAD-10] Upgrade: websocket
+[TLS-PRELOAD-10] Connection: Upgrade
+[TLS-PRELOAD-10] Sec-WebSocket-Accept: aPgVPnuFPOew7r+hp2JyqLtZ7lI=
+[TLS-PRELOAD-10] ✅ Switched to passingThrough state - will forward all subsequent data
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.817Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-11] 🔐 Secure connection established
+[TLS-PRELOAD-11] 📋 Found 1 'data' listeners
+[TLS-PRELOAD-11] 🎯 Wrapping existing 'data' listener(s)!
+[TLS-PRELOAD-11] ✅ Data event interceptor installed
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.818Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 199 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 199 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 199
+[CONSOLE ENDPOINT] Request ended, body length: 199
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990849279-9uer5","timestamp":1765990849279}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990849279-9uer5
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 100 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 100 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 100
+[CONSOLE ENDPOINT] Request ended, body length: 100
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug ID: debug-1765990849279-9uer5","timestamp":1765990849280}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug ID: debug-1765990849279-9uer5
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.827Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 183 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 183 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 183
+[CONSOLE ENDPOINT] Request ended, body length: 183
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State: CONNECTING ( 0 ) - URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990849280}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State: CONNECTING ( 0 ) - URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 487 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 487 bytes
+[2025-12-17T17:00:49.827Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "GET",
+ "url": "/__vitest__/favicon.svg",
+ "host": "vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] GET /__vitest__/favicon.svg - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[RESPONSE] GET /__vitest__/favicon.svg -> /favicon.svg - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (209 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Content-Length: 2381
+[TLS-PRELOAD-4] Content-Type: image/svg+xml
+[TLS-PRELOAD-4] Last-Modified: Thu, 11 Dec 2025 18:40:03 GMT
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2381 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 3c7376672077696474683d2231363522206865696768743d22313635222076696577426f783d223020302031363520313635222066696c6c3d226e6f6e652220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e0a
+[TLS-PRELOAD-11] 📦 INTERCEPTED DATA! 423 bytes (state: readingHeaders)
+[TLS-PRELOAD-11] ✅ Complete HTTP headers received (request #1)
+[TLS-PRELOAD-11] 📨 Forwarding 423 bytes to original handlers
+[2025-12-17T17:00:49.892Z] [HTTP_REQUEST] {
+ "socketId": 22,
+ "method": "GET",
+ "url": "/__vitest_test__/favicon.ico",
+ "host": "vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53558,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] GET /__vitest_test__/favicon.ico - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[RESPONSE] GET /__vitest_test__/favicon.ico -> /index.html - Status: 404
+[TLS-PRELOAD-11] 📤 OUTGOING DATA (138 bytes):
+[TLS-PRELOAD-11] HTTP Response: HTTP/1.1 404 Not Found
+[TLS-PRELOAD-11] Response headers:
+[TLS-PRELOAD-11] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-11] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-11] Connection: keep-alive
+[TLS-PRELOAD-11] Content-Length: 0
+[TLS-PRELOAD-11] ✅ Switched to passingThrough state - will forward all subsequent data
+[TLS-PRELOAD-10] 🔚 Socket.end() called - connection terminating
+[TLS-PRELOAD-10] Arguments passed to .end(): 0
+[TLS-PRELOAD-10] Call stack:
+Error
+ at tlsSocket.end (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:348:25)
+ at TLSSocket.socketOnEnd (file:///Users/raju.ahmed/workspace/javascript-sdk/node_modules/vitest/dist/chunks/cli-api.BkDphVBG.js:4187:9)
+ at TLSSocket.emit (node:events:536:35)
+ at TLSSocket.emit (node:domain:489:12)
+ at endReadableNT (node:internal/streams/readable:1698:12)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-10] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-10] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at finish (node:internal/streams/writable:968:14)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-10] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-10] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.907Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 142 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 142 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 142
+[CONSOLE ENDPOINT] Request ended, body length: 142
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] ERROR: wss://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv {\"isTrusted\":true}","timestamp":1765990849730}
+
+================================================================================
+[BROWSER LOG] [WebSocket] ERROR: wss://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv {"isTrusted":true}
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:49.908Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close code: 1006","timestamp":1765990849731}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close code: 1006
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:49.950Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 122 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 122 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 122
+[CONSOLE ENDPOINT] Request ended, body length: 122
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] CLOSED: wss://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv","timestamp":1765990849730}
+
+================================================================================
+[BROWSER LOG] [WebSocket] CLOSED: wss://vite.bs-local.com:63315/?token=aK1Fk7pWnxpv
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:49.951Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State at error: CLOSED ( 3 )","timestamp":1765990849730}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State at error: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:49.952Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Was clean: false","timestamp":1765990849732}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Was clean: false
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:49.953Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 85 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 85 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 85
+[CONSOLE ENDPOINT] Request ended, body length: 85
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close reason: (none)","timestamp":1765990849731}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close reason: (none)
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:49 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.080Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.081Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 90 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 90 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 90
+[CONSOLE ENDPOINT] Request ended, body length: 90
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Final state: CLOSED ( 3 )","timestamp":1765990849732}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Final state: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 129 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 129 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 129
+[CONSOLE ENDPOINT] Request ended, body length: 129
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Creating WebSocket: wss://bs-local.com:63315/?token=aK1Fk7pWnxpv","timestamp":1765990849733}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Creating WebSocket: wss://bs-local.com:63315/?token=aK1Fk7pWnxpv
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.088Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 180 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 180 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 180
+[CONSOLE ENDPOINT] Request ended, body length: 180
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/","timestamp":1765990849734}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.090Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 84 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 84 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 84
+[CONSOLE ENDPOINT] Request ended, body length: 84
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Protocols: vite-hmr","timestamp":1765990849733}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Protocols: vite-hmr
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.091Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 123 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 123 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 123
+[CONSOLE ENDPOINT] Request ended, body length: 123
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Original URL: wss://bs-local.com:63315/?token=aK1Fk7pWnxpv","timestamp":1765990849734}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Original URL: wss://bs-local.com:63315/?token=aK1Fk7pWnxpv
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.093Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 156 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 156 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 156
+[CONSOLE ENDPOINT] Request ended, body length: 156
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug URL: wss://bs-local.com:63315/?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849734-xx4o1","timestamp":1765990849734}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug URL: wss://bs-local.com:63315/?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849734-xx4o1
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-12] 🔐 Secure connection established
+[TLS-PRELOAD-12] 📋 Found 1 'data' listeners
+[TLS-PRELOAD-12] 🎯 Wrapping existing 'data' listener(s)!
+[TLS-PRELOAD-12] ✅ Data event interceptor installed
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.174Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.175Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 180 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 180 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 180
+[CONSOLE ENDPOINT] Request ended, body length: 180
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] ERROR: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df {\"isTrusted\":true}","timestamp":1765990849736}
+
+================================================================================
+[BROWSER LOG] [WebSocket] ERROR: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df {"isTrusted":true}
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 100 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 100 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 100
+[CONSOLE ENDPOINT] Request ended, body length: 100
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug ID: debug-1765990849734-xx4o1","timestamp":1765990849735}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug ID: debug-1765990849734-xx4o1
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.182Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 140 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 140 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 140
+[CONSOLE ENDPOINT] Request ended, body length: 140
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State: CONNECTING ( 0 ) - URL: wss://bs-local.com:63315/?token=aK1Fk7pWnxpv","timestamp":1765990849735}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State: CONNECTING ( 0 ) - URL: wss://bs-local.com:63315/?token=aK1Fk7pWnxpv
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.231Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 104 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 104 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 104
+[CONSOLE ENDPOINT] Request ended, body length: 104
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] __vitest_api__ connection ERROR","timestamp":1765990849736}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] __vitest_api__ connection ERROR
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-13] 🔐 Secure connection established
+[TLS-PRELOAD-13] 📋 Found 1 'data' listeners
+[TLS-PRELOAD-13] 🎯 Wrapping existing 'data' listener(s)!
+[TLS-PRELOAD-13] ✅ Data event interceptor installed
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.234Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State at error: CLOSED ( 3 )","timestamp":1765990849736}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State at error: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-12] 📦 INTERCEPTED DATA! 423 bytes (state: readingHeaders)
+[TLS-PRELOAD-12] ✅ Complete HTTP headers received (request #1)
+[TLS-PRELOAD-12] 📨 Forwarding 423 bytes to original handlers
+[2025-12-17T17:00:50.237Z] [HTTP_REQUEST] {
+ "socketId": 25,
+ "method": "GET",
+ "url": "/__vitest_test__/favicon.svg",
+ "host": "vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53559,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] GET /__vitest_test__/favicon.svg - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[RESPONSE] GET /__vitest_test__/favicon.svg -> /index.html - Status: 404
+[TLS-PRELOAD-12] 📤 OUTGOING DATA (138 bytes):
+[TLS-PRELOAD-12] HTTP Response: HTTP/1.1 404 Not Found
+[TLS-PRELOAD-12] Response headers:
+[TLS-PRELOAD-12] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-12] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-12] Connection: keep-alive
+[TLS-PRELOAD-12] Content-Length: 0
+[TLS-PRELOAD-12] ✅ Switched to passingThrough state - will forward all subsequent data
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.238Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 160 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 160 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 160
+[CONSOLE ENDPOINT] Request ended, body length: 160
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] CLOSED: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990849737}
+
+================================================================================
+[BROWSER LOG] [WebSocket] CLOSED: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.243Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.244Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 85 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 85 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 85
+[CONSOLE ENDPOINT] Request ended, body length: 85
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close reason: (none)","timestamp":1765990849737}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close reason: (none)
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close code: 1006","timestamp":1765990849737}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close code: 1006
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.362Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Was clean: false","timestamp":1765990849738}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Was clean: false
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.364Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 90 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 90 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 90
+[CONSOLE ENDPOINT] Request ended, body length: 90
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Final state: CLOSED ( 3 )","timestamp":1765990849738}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Final state: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.365Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.366Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 89 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 89 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 89
+[CONSOLE ENDPOINT] Request ended, body length: 89
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Close code: 1006","timestamp":1765990849739}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Close code: 1006
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-13] 📦 INTERCEPTED DATA! 498 bytes (state: readingHeaders)
+[TLS-PRELOAD-13] ✅ Complete HTTP headers received (request #1)
+
+================================================================================
+[TLS-PRELOAD-13] 🎯 INCOMING WEBSOCKET REQUEST HEADERS
+[TLS-PRELOAD-13] Request line: GET /?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849734-xx4o1 HTTP/1.1
+[TLS-PRELOAD-13] All request headers:
+[TLS-PRELOAD-13] Host: bs-local.com:63315
+[TLS-PRELOAD-13] Origin: https://vite.bs-local.com:63315
+[TLS-PRELOAD-13] Sec-WebSocket-Protocol: vite-hmr
+[TLS-PRELOAD-13] Pragma: no-cache
+[TLS-PRELOAD-13] Cache-Control: no-cache
+[TLS-PRELOAD-13] Sec-WebSocket-Key: Tq+vsy5x058q5UEL0WFJVg==
+[TLS-PRELOAD-13] Sec-WebSocket-Version: 13
+[TLS-PRELOAD-13] Sec-WebSocket-Extensions: x-webkit-deflate-frame
+[TLS-PRELOAD-13] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
+[TLS-PRELOAD-13] Via: 1.1 browsermobproxy
+[TLS-PRELOAD-13] Has Sec-WebSocket-Key: true
+[TLS-PRELOAD-13] Has Upgrade header: false
+[TLS-PRELOAD-13] Has Connection header: false
+================================================================================
+
+
+================================================================================
+[TLS-PRELOAD-13] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+================================================================================
+
+[TLS-PRELOAD-13] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+[TLS-PRELOAD-13] ✅ Injected: Upgrade: websocket
+[TLS-PRELOAD-13] ✅ Injected: Connection: Upgrade
+[TLS-PRELOAD-13] ✅ Headers injected! Forwarding modified headers
+[TLS-PRELOAD-13] 📨 Forwarding 539 bytes to original handlers
+[2025-12-17T17:00:50.368Z] [WEBSOCKET_UPGRADE_REQUEST] {
+ "socketId": 26,
+ "protocol": "https",
+ "url": "/?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849734-xx4o1",
+ "host": "bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "upgradeHeader": "websocket",
+ "connectionHeader": "Upgrade",
+ "isWebSocket": true,
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53560,
+ "wsKey": "Tq+vsy5x058q5UEL0WFJVg==",
+ "wsVersion": "13",
+ "wsExtensions": "x-webkit-deflate-frame"
+}
+
+--------------------------------------------------------------------------------
+[WEBSOCKET UPGRADE]
+Socket ID: 26
+Protocol: https
+URL: /?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849734-xx4o1
+Full URL: https://bs-local.com:63315/?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849734-xx4o1
+Origin: https://vite.bs-local.com:63315
+Upgrade: websocket
+Connection: Upgrade
+Is WebSocket: true
+Time: 2025-12-17T17:00:50.368Z
+--------------------------------------------------------------------------------
+
+[TLS-PRELOAD-13] 📤 OUTGOING DATA (163 bytes):
+[TLS-PRELOAD-13] 🎯 WEBSOCKET UPGRADE RESPONSE DETECTED!
+[TLS-PRELOAD-13] Response:
+HTTP/1.1 101 Switching Protocols
+Upgrade: websocket
+Connection: Upgrade
+Sec-WebSocket-Accept: uLTU05Ap3WviY3n+A1iQnwZ6GXk=
+Sec-WebSocket-Protocol: vite-hmr
+
+
+[TLS-PRELOAD-13] Status line: HTTP/1.1 101 Switching Protocols
+[TLS-PRELOAD-13] Response headers:
+[TLS-PRELOAD-13] Upgrade: websocket
+[TLS-PRELOAD-13] Connection: Upgrade
+[TLS-PRELOAD-13] Sec-WebSocket-Accept: uLTU05Ap3WviY3n+A1iQnwZ6GXk=
+[TLS-PRELOAD-13] Sec-WebSocket-Protocol: vite-hmr
+[TLS-PRELOAD-13] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-13] WebSocket Text frame (FIN: true)
+[TLS-PRELOAD-13] Binary data (first 100 bytes hex): 8114
+[TLS-PRELOAD-13] 📤 OUTGOING DATA (20 bytes):
+[TLS-PRELOAD-13] Data (first 100 chars): {"type":"connected"}
+[2025-12-17T17:00:50.371Z] [WEBSOCKET_CONNECTION_ESTABLISHED] {
+ "wsId": "ws-27",
+ "socketId": 26,
+ "url": "/?token=aK1Fk7pWnxpv&wsDebugId=debug-1765990849734-xx4o1",
+ "origin": "https://vite.bs-local.com:63315",
+ "upgradeProtocol": "vite-hmr"
+}
+[WEBSOCKET CONNECTED] wsId: ws-27, socketId: 26
+[TLS-PRELOAD-13] ✅ Switched to passingThrough state - will forward all subsequent data
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 105 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 105 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 105
+[CONSOLE ENDPOINT] Request ended, body length: 105
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] __vitest_api__ connection CLOSED","timestamp":1765990849738}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] __vitest_api__ connection CLOSED
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.431Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 89 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 89 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 89
+[CONSOLE ENDPOINT] Request ended, body length: 89
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Was clean: false","timestamp":1765990849739}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Was clean: false
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.432Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Close reason: (none)","timestamp":1765990849739}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Close reason: (none)
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-13] 🔚 Socket.end() called - connection terminating
+[TLS-PRELOAD-13] Arguments passed to .end(): 0
+[TLS-PRELOAD-13] Call stack:
+Error
+ at tlsSocket.end (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:348:25)
+ at TLSSocket.socketOnEnd (file:///Users/raju.ahmed/workspace/javascript-sdk/node_modules/vitest/node_modules/vite/dist/node/chunks/config.js:19699:8)
+ at TLSSocket.emit (node:events:536:35)
+ at TLSSocket.emit (node:domain:489:12)
+ at endReadableNT (node:internal/streams/readable:1698:12)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-13] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-13] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at finish (node:internal/streams/writable:968:14)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-13] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-13] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[2025-12-17T17:00:50.554Z] [WEBSOCKET_CONNECTION_CLOSED] {
+ "wsId": "ws-27",
+ "socketId": 26,
+ "code": 1006,
+ "reason": ""
+}
+[WEBSOCKET CLOSED] wsId: ws-27, socketId: 26, code: 1006
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.554Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 117 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 117 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 117
+[CONSOLE ENDPOINT] Request ended, body length: 117
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] CLOSED: wss://bs-local.com:63315/?token=aK1Fk7pWnxpv","timestamp":1765990850278}
+
+================================================================================
+[BROWSER LOG] [WebSocket] CLOSED: wss://bs-local.com:63315/?token=aK1Fk7pWnxpv
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.556Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 137 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 137 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 137
+[CONSOLE ENDPOINT] Request ended, body length: 137
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] ERROR: wss://bs-local.com:63315/?token=aK1Fk7pWnxpv {\"isTrusted\":true}","timestamp":1765990850276}
+
+================================================================================
+[BROWSER LOG] [WebSocket] ERROR: wss://bs-local.com:63315/?token=aK1Fk7pWnxpv {"isTrusted":true}
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.558Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State at error: CLOSED ( 3 )","timestamp":1765990850277}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State at error: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.559Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close code: 1006","timestamp":1765990850278}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close code: 1006
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.561Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 85 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 85 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 85
+[CONSOLE ENDPOINT] Request ended, body length: 85
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close reason: (none)","timestamp":1765990850279}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close reason: (none)
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.562Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Was clean: false","timestamp":1765990850279}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Was clean: false
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:50.618Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 90 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 90 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 90
+[CONSOLE ENDPOINT] Request ended, body length: 90
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Final state: CLOSED ( 3 )","timestamp":1765990850279}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Final state: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:50.750Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 395 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 395 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 395
+[CONSOLE ENDPOINT] Request ended, body length: 395
+[CONSOLE ENDPOINT] Raw body: {"type":"error","message":"[vite] failed to connect to websocket.\nyour current setup:\n (browser) vite.bs-local.com:63315/ <--[HTTP]--> bs-local.com:63315/ (server)\n (browser) vite.bs-local.com:63315/ <--[WebSocket (failing)]--> bs-local.com:63315/ (server)\nCheck out your Vite / network configuration and https://vite.dev/config/server-options.html#server-hmr .","timestamp":1765990850280}
+
+================================================================================
+[BROWSER ERROR] [vite] failed to connect to websocket.
+your current setup:
+ (browser) vite.bs-local.com:63315/ <--[HTTP]--> bs-local.com:63315/ (server)
+ (browser) vite.bs-local.com:63315/ <--[WebSocket (failing)]--> bs-local.com:63315/ (server)
+Check out your Vite / network configuration and https://vite.dev/config/server-options.html#server-hmr .
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:50 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:51.764Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:51.764Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 85 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 85 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 85
+[CONSOLE ENDPOINT] Request ended, body length: 85
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Protocols: undefined","timestamp":1765990851522}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Protocols: undefined
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:51.809Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:51.810Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:51.823Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:51.824Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 100 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 100 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 100
+[CONSOLE ENDPOINT] Request ended, body length: 100
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug ID: debug-1765990851523-8i3gn","timestamp":1765990851524}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug ID: debug-1765990851523-8i3gn
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 180 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 180 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 180
+[CONSOLE ENDPOINT] Request ended, body length: 180
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/","timestamp":1765990851523}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 320 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 320 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 320
+[CONSOLE ENDPOINT] Request ended, body length: 320
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Original URL: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990851523}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Original URL: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 326 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 326 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 326
+[CONSOLE ENDPOINT] Request ended, body length: 326
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990851522}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 353 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 353 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 353
+[CONSOLE ENDPOINT] Request ended, body length: 353
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug URL: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990851523-8i3gn","timestamp":1765990851523}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug URL: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990851523-8i3gn
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:51.871Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 337 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 337 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 337
+[CONSOLE ENDPOINT] Request ended, body length: 337
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State: CONNECTING ( 0 ) - URL: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990851524}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State: CONNECTING ( 0 ) - URL: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:51.928Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 85 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 85 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 85
+[CONSOLE ENDPOINT] Request ended, body length: 85
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Protocols: undefined","timestamp":1765990851741}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Protocols: undefined
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:51.935Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 172 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 172 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 172
+[CONSOLE ENDPOINT] Request ended, body length: 172
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990851740}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:51.936Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 135 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 135 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 135
+[CONSOLE ENDPOINT] Request ended, body length: 135
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] ==================== VITEST API WEBSOCKET ====================","timestamp":1765990851742}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] ==================== VITEST API WEBSOCKET ====================
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:51.970Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 180 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 180 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 180
+[CONSOLE ENDPOINT] Request ended, body length: 180
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/","timestamp":1765990851741}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:51.972Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 165 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 165 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 165
+[CONSOLE ENDPOINT] Request ended, body length: 165
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990851742}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:51.984Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Protocols: undefined","timestamp":1765990851742}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Protocols: undefined
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:51 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-14] 🔐 Secure connection established
+[TLS-PRELOAD-14] 📋 Found 1 'data' listeners
+[TLS-PRELOAD-14] 🎯 Wrapping existing 'data' listener(s)!
+[TLS-PRELOAD-14] ✅ Data event interceptor installed
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:51.992Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 121 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 121 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 121
+[CONSOLE ENDPOINT] Request ended, body length: 121
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location origin: https://vite.bs-local.com:63315","timestamp":1765990851743}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location origin: https://vite.bs-local.com:63315
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.028Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 98 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 98 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 98
+[CONSOLE ENDPOINT] Request ended, body length: 98
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location protocol: https:","timestamp":1765990851743}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location protocol: https:
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.040Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 111 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 111 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 111
+[CONSOLE ENDPOINT] Request ended, body length: 111
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location host: vite.bs-local.com:63315","timestamp":1765990851743}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location host: vite.bs-local.com:63315
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.041Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 109 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 109 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 109
+[CONSOLE ENDPOINT] Request ended, body length: 109
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location hostname: vite.bs-local.com","timestamp":1765990851744}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location hostname: vite.bs-local.com
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.048Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location port: 63315","timestamp":1765990851744}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location port: 63315
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.050Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 185 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 185 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 185
+[CONSOLE ENDPOINT] Request ended, body length: 185
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location href: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/","timestamp":1765990851744}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location href: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-14] 📦 INTERCEPTED DATA! 661 bytes (state: readingHeaders)
+[TLS-PRELOAD-14] ✅ Complete HTTP headers received (request #1)
+
+================================================================================
+[TLS-PRELOAD-14] 🎯 INCOMING WEBSOCKET REQUEST HEADERS
+[TLS-PRELOAD-14] Request line: GET /__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990851523-8i3gn HTTP/1.1
+[TLS-PRELOAD-14] All request headers:
+[TLS-PRELOAD-14] Host: vite.bs-local.com:63315
+[TLS-PRELOAD-14] Origin: https://vite.bs-local.com:63315
+[TLS-PRELOAD-14] Pragma: no-cache
+[TLS-PRELOAD-14] Cache-Control: no-cache
+[TLS-PRELOAD-14] Sec-WebSocket-Key: 1lBGMJU3N9fkqHUkZeopmQ==
+[TLS-PRELOAD-14] Sec-WebSocket-Version: 13
+[TLS-PRELOAD-14] Sec-WebSocket-Extensions: x-webkit-deflate-frame
+[TLS-PRELOAD-14] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
+[TLS-PRELOAD-14] Via: 1.1 browsermobproxy
+[TLS-PRELOAD-14] Has Sec-WebSocket-Key: true
+[TLS-PRELOAD-14] Has Upgrade header: false
+[TLS-PRELOAD-14] Has Connection header: false
+================================================================================
+
+
+================================================================================
+[TLS-PRELOAD-14] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+================================================================================
+
+[TLS-PRELOAD-14] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+[TLS-PRELOAD-14] ✅ Injected: Upgrade: websocket
+[TLS-PRELOAD-14] ✅ Injected: Connection: Upgrade
+[TLS-PRELOAD-14] ✅ Headers injected! Forwarding modified headers
+[TLS-PRELOAD-14] 📨 Forwarding 702 bytes to original handlers
+[2025-12-17T17:00:52.086Z] [WEBSOCKET_UPGRADE_REQUEST] {
+ "socketId": 30,
+ "protocol": "https",
+ "url": "/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990851523-8i3gn",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "upgradeHeader": "websocket",
+ "connectionHeader": "Upgrade",
+ "isWebSocket": true,
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53561,
+ "wsKey": "1lBGMJU3N9fkqHUkZeopmQ==",
+ "wsVersion": "13",
+ "wsExtensions": "x-webkit-deflate-frame"
+}
+
+--------------------------------------------------------------------------------
+[WEBSOCKET UPGRADE]
+Socket ID: 30
+Protocol: https
+URL: /__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990851523-8i3gn
+Full URL: https://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990851523-8i3gn
+Origin: https://vite.bs-local.com:63315
+Upgrade: websocket
+Connection: Upgrade
+Is WebSocket: true
+Session ID: 78a16794-a053-4b00-a1ec-11167758f0cc
+Time: 2025-12-17T17:00:52.086Z
+--------------------------------------------------------------------------------
+
+[TLS-PRELOAD-14] 📤 OUTGOING DATA (129 bytes):
+[TLS-PRELOAD-14] 🎯 WEBSOCKET UPGRADE RESPONSE DETECTED!
+[TLS-PRELOAD-14] Response:
+HTTP/1.1 101 Switching Protocols
+Upgrade: websocket
+Connection: Upgrade
+Sec-WebSocket-Accept: H0cJrVIG+Rl22nTqxirfu8uIUp0=
+
+
+[TLS-PRELOAD-14] Status line: HTTP/1.1 101 Switching Protocols
+[TLS-PRELOAD-14] Response headers:
+[TLS-PRELOAD-14] Upgrade: websocket
+[TLS-PRELOAD-14] Connection: Upgrade
+[TLS-PRELOAD-14] Sec-WebSocket-Accept: H0cJrVIG+Rl22nTqxirfu8uIUp0=
+[TLS-PRELOAD-14] ✅ Switched to passingThrough state - will forward all subsequent data
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.097Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 204 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 204 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 204
+[CONSOLE ENDPOINT] Request ended, body length: 204
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15","timestamp":1765990851745}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.099Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 138 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 138 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 138
+[CONSOLE ENDPOINT] Request ended, body length: 138
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] =================================================================","timestamp":1765990851745}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] =================================================================
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.110Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 166 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 166 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 166
+[CONSOLE ENDPOINT] Request ended, body length: 166
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Original URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990851745}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Original URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.112Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 199 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 199 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 199
+[CONSOLE ENDPOINT] Request ended, body length: 199
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990851745-8gco1","timestamp":1765990851746}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990851745-8gco1
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.142Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 100 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 100 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 100
+[CONSOLE ENDPOINT] Request ended, body length: 100
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug ID: debug-1765990851745-8gco1","timestamp":1765990851746}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug ID: debug-1765990851745-8gco1
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-15] 🔐 Secure connection established
+[TLS-PRELOAD-15] 📋 Found 1 'data' listeners
+[TLS-PRELOAD-15] 🎯 Wrapping existing 'data' listener(s)!
+[TLS-PRELOAD-15] ✅ Data event interceptor installed
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.156Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 183 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 183 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 183
+[CONSOLE ENDPOINT] Request ended, body length: 183
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State: CONNECTING ( 0 ) - URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990851746}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State: CONNECTING ( 0 ) - URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-14] 🔚 Socket.end() called - connection terminating
+[TLS-PRELOAD-14] Arguments passed to .end(): 0
+[TLS-PRELOAD-14] Call stack:
+Error
+ at tlsSocket.end (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:348:25)
+ at TLSSocket.socketOnEnd (/Users/raju.ahmed/workspace/javascript-sdk/node_modules/ws/lib/websocket.js:1370:8)
+ at TLSSocket.emit (node:events:536:35)
+ at TLSSocket.emit (node:domain:489:12)
+ at endReadableNT (node:internal/streams/readable:1698:12)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-14] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-14] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at finish (node:internal/streams/writable:968:14)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-14] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-14] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.165Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 334 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 334 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 334
+[CONSOLE ENDPOINT] Request ended, body length: 334
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] ERROR: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df {\"isTrusted\":true}","timestamp":1765990851984}
+
+================================================================================
+[BROWSER LOG] [WebSocket] ERROR: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df {"isTrusted":true}
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.173Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State at error: CLOSED ( 3 )","timestamp":1765990851984}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State at error: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.198Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 314 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 314 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 314
+[CONSOLE ENDPOINT] Request ended, body length: 314
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] CLOSED: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990851985}
+
+================================================================================
+[BROWSER LOG] [WebSocket] CLOSED: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.308Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 85 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 85 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 85
+[CONSOLE ENDPOINT] Request ended, body length: 85
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close reason: (none)","timestamp":1765990851987}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close reason: (none)
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.310Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.315Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close code: 1006","timestamp":1765990851986}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close code: 1006
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Was clean: false","timestamp":1765990851988}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Was clean: false
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.368Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 90 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 90 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 90
+[CONSOLE ENDPOINT] Request ended, body length: 90
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Final state: CLOSED ( 3 )","timestamp":1765990851988}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Final state: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-15] 📦 INTERCEPTED DATA! 507 bytes (state: readingHeaders)
+[TLS-PRELOAD-15] ✅ Complete HTTP headers received (request #1)
+
+================================================================================
+[TLS-PRELOAD-15] 🎯 INCOMING WEBSOCKET REQUEST HEADERS
+[TLS-PRELOAD-15] Request line: GET /__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990851745-8gco1 HTTP/1.1
+[TLS-PRELOAD-15] All request headers:
+[TLS-PRELOAD-15] Host: vite.bs-local.com:63315
+[TLS-PRELOAD-15] Origin: https://vite.bs-local.com:63315
+[TLS-PRELOAD-15] Pragma: no-cache
+[TLS-PRELOAD-15] Cache-Control: no-cache
+[TLS-PRELOAD-15] Sec-WebSocket-Key: Kdpj0z+SrnktcTLM/sn5jA==
+[TLS-PRELOAD-15] Sec-WebSocket-Version: 13
+[TLS-PRELOAD-15] Sec-WebSocket-Extensions: x-webkit-deflate-frame
+[TLS-PRELOAD-15] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
+[TLS-PRELOAD-15] Via: 1.1 browsermobproxy
+[TLS-PRELOAD-15] Has Sec-WebSocket-Key: true
+[TLS-PRELOAD-15] Has Upgrade header: false
+[TLS-PRELOAD-15] Has Connection header: false
+================================================================================
+
+
+================================================================================
+[TLS-PRELOAD-15] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+================================================================================
+
+[TLS-PRELOAD-15] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+[TLS-PRELOAD-15] ✅ Injected: Upgrade: websocket
+[TLS-PRELOAD-15] ✅ Injected: Connection: Upgrade
+[TLS-PRELOAD-15] ✅ Headers injected! Forwarding modified headers
+[TLS-PRELOAD-15] 📨 Forwarding 548 bytes to original handlers
+[2025-12-17T17:00:52.371Z] [WEBSOCKET_UPGRADE_REQUEST] {
+ "socketId": 31,
+ "protocol": "https",
+ "url": "/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990851745-8gco1",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "upgradeHeader": "websocket",
+ "connectionHeader": "Upgrade",
+ "isWebSocket": true,
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53562,
+ "wsKey": "Kdpj0z+SrnktcTLM/sn5jA==",
+ "wsVersion": "13",
+ "wsExtensions": "x-webkit-deflate-frame"
+}
+
+--------------------------------------------------------------------------------
+[WEBSOCKET UPGRADE]
+Socket ID: 31
+Protocol: https
+URL: /__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990851745-8gco1
+Full URL: https://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990851745-8gco1
+Origin: https://vite.bs-local.com:63315
+Upgrade: websocket
+Connection: Upgrade
+Is WebSocket: true
+Time: 2025-12-17T17:00:52.371Z
+--------------------------------------------------------------------------------
+
+[TLS-PRELOAD-15] 📤 OUTGOING DATA (129 bytes):
+[TLS-PRELOAD-15] 🎯 WEBSOCKET UPGRADE RESPONSE DETECTED!
+[TLS-PRELOAD-15] Response:
+HTTP/1.1 101 Switching Protocols
+Upgrade: websocket
+Connection: Upgrade
+Sec-WebSocket-Accept: zV3PfpRhnx9gbSBkLkxI3eUOVP8=
+
+
+[TLS-PRELOAD-15] Status line: HTTP/1.1 101 Switching Protocols
+[TLS-PRELOAD-15] Response headers:
+[TLS-PRELOAD-15] Upgrade: websocket
+[TLS-PRELOAD-15] Connection: Upgrade
+[TLS-PRELOAD-15] Sec-WebSocket-Accept: zV3PfpRhnx9gbSBkLkxI3eUOVP8=
+[TLS-PRELOAD-15] ✅ Switched to passingThrough state - will forward all subsequent data
+[TLS-PRELOAD-15] 🔚 Socket.end() called - connection terminating
+[TLS-PRELOAD-15] Arguments passed to .end(): 0
+[TLS-PRELOAD-15] Call stack:
+Error
+ at tlsSocket.end (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:348:25)
+ at TLSSocket.socketOnEnd (file:///Users/raju.ahmed/workspace/javascript-sdk/node_modules/vitest/dist/chunks/cli-api.BkDphVBG.js:4187:9)
+ at TLSSocket.emit (node:events:536:35)
+ at TLSSocket.emit (node:domain:489:12)
+ at endReadableNT (node:internal/streams/readable:1698:12)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-15] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-15] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at finish (node:internal/streams/writable:968:14)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-15] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-15] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.440Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.441Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 180 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 180 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 180
+[CONSOLE ENDPOINT] Request ended, body length: 180
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] ERROR: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df {\"isTrusted\":true}","timestamp":1765990852269}
+
+================================================================================
+[BROWSER LOG] [WebSocket] ERROR: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df {"isTrusted":true}
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.497Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State at error: CLOSED ( 3 )","timestamp":1765990852270}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State at error: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 104 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 104 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 104
+[CONSOLE ENDPOINT] Request ended, body length: 104
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] __vitest_api__ connection ERROR","timestamp":1765990852271}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] __vitest_api__ connection ERROR
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.503Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 160 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 160 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 160
+[CONSOLE ENDPOINT] Request ended, body length: 160
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] CLOSED: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990852275}
+
+================================================================================
+[BROWSER LOG] [WebSocket] CLOSED: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.505Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.505Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 85 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 85 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 85
+[CONSOLE ENDPOINT] Request ended, body length: 85
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close reason: (none)","timestamp":1765990852276}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close reason: (none)
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.506Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close code: 1006","timestamp":1765990852276}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close code: 1006
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Was clean: false","timestamp":1765990852277}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Was clean: false
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.574Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 90 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 90 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 90
+[CONSOLE ENDPOINT] Request ended, body length: 90
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Final state: CLOSED ( 3 )","timestamp":1765990852277}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Final state: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:52.581Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.581Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Close reason: (none)","timestamp":1765990852278}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Close reason: (none)
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 105 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 105 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 105
+[CONSOLE ENDPOINT] Request ended, body length: 105
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] __vitest_api__ connection CLOSED","timestamp":1765990852277}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] __vitest_api__ connection CLOSED
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.644Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 89 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 89 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 89
+[CONSOLE ENDPOINT] Request ended, body length: 89
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Close code: 1006","timestamp":1765990852278}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Close code: 1006
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:52.646Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 89 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 89 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 89
+[CONSOLE ENDPOINT] Request ended, body length: 89
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Was clean: false","timestamp":1765990852278}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Was clean: false
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:52 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.169Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 326 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 326 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 326
+[CONSOLE ENDPOINT] Request ended, body length: 326
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990853990}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.172Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.172Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.173Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 320 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 320 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 320
+[CONSOLE ENDPOINT] Request ended, body length: 320
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Original URL: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990853992}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Original URL: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 85 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 85 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 85
+[CONSOLE ENDPOINT] Request ended, body length: 85
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Protocols: undefined","timestamp":1765990853991}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Protocols: undefined
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.233Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 180 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 180 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 180
+[CONSOLE ENDPOINT] Request ended, body length: 180
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/","timestamp":1765990853991}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 353 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 353 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 353
+[CONSOLE ENDPOINT] Request ended, body length: 353
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug URL: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990853992-54ejz","timestamp":1765990853992}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug URL: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990853992-54ejz
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.236Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 100 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 100 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 100
+[CONSOLE ENDPOINT] Request ended, body length: 100
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug ID: debug-1765990853992-54ejz","timestamp":1765990853992}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug ID: debug-1765990853992-54ejz
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.245Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 337 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 337 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 337
+[CONSOLE ENDPOINT] Request ended, body length: 337
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State: CONNECTING ( 0 ) - URL: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990853993}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State: CONNECTING ( 0 ) - URL: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-16] 🔐 Secure connection established
+[TLS-PRELOAD-16] 📋 Found 1 'data' listeners
+[TLS-PRELOAD-16] 🎯 Wrapping existing 'data' listener(s)!
+[TLS-PRELOAD-16] ✅ Data event interceptor installed
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.452Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 85 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 85 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 85
+[CONSOLE ENDPOINT] Request ended, body length: 85
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Protocols: undefined","timestamp":1765990854280}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Protocols: undefined
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.454Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Protocols: undefined","timestamp":1765990854281}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Protocols: undefined
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.455Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 180 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 180 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 180
+[CONSOLE ENDPOINT] Request ended, body length: 180
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/","timestamp":1765990854280}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.456Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 135 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 135 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 135
+[CONSOLE ENDPOINT] Request ended, body length: 135
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] ==================== VITEST API WEBSOCKET ====================","timestamp":1765990854280}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] ==================== VITEST API WEBSOCKET ====================
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.516Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 172 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 172 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 172
+[CONSOLE ENDPOINT] Request ended, body length: 172
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990854279}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-16] 📦 INTERCEPTED DATA! 661 bytes (state: readingHeaders)
+[TLS-PRELOAD-16] ✅ Complete HTTP headers received (request #1)
+
+================================================================================
+[TLS-PRELOAD-16] 🎯 INCOMING WEBSOCKET REQUEST HEADERS
+[TLS-PRELOAD-16] Request line: GET /__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990853992-54ejz HTTP/1.1
+[TLS-PRELOAD-16] All request headers:
+[TLS-PRELOAD-16] Host: vite.bs-local.com:63315
+[TLS-PRELOAD-16] Origin: https://vite.bs-local.com:63315
+[TLS-PRELOAD-16] Pragma: no-cache
+[TLS-PRELOAD-16] Cache-Control: no-cache
+[TLS-PRELOAD-16] Sec-WebSocket-Key: ROavn7mh9et0RrJdN/fx5A==
+[TLS-PRELOAD-16] Sec-WebSocket-Version: 13
+[TLS-PRELOAD-16] Sec-WebSocket-Extensions: x-webkit-deflate-frame
+[TLS-PRELOAD-16] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
+[TLS-PRELOAD-16] Via: 1.1 browsermobproxy
+[TLS-PRELOAD-16] Has Sec-WebSocket-Key: true
+[TLS-PRELOAD-16] Has Upgrade header: false
+[TLS-PRELOAD-16] Has Connection header: false
+================================================================================
+
+
+================================================================================
+[TLS-PRELOAD-16] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+================================================================================
+
+[TLS-PRELOAD-16] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+[TLS-PRELOAD-16] ✅ Injected: Upgrade: websocket
+[TLS-PRELOAD-16] ✅ Injected: Connection: Upgrade
+[TLS-PRELOAD-16] ✅ Headers injected! Forwarding modified headers
+[TLS-PRELOAD-16] 📨 Forwarding 702 bytes to original handlers
+[2025-12-17T17:00:54.520Z] [WEBSOCKET_UPGRADE_REQUEST] {
+ "socketId": 33,
+ "protocol": "https",
+ "url": "/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990853992-54ejz",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "upgradeHeader": "websocket",
+ "connectionHeader": "Upgrade",
+ "isWebSocket": true,
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53564,
+ "wsKey": "ROavn7mh9et0RrJdN/fx5A==",
+ "wsVersion": "13",
+ "wsExtensions": "x-webkit-deflate-frame"
+}
+
+--------------------------------------------------------------------------------
+[WEBSOCKET UPGRADE]
+Socket ID: 33
+Protocol: https
+URL: /__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990853992-54ejz
+Full URL: https://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990853992-54ejz
+Origin: https://vite.bs-local.com:63315
+Upgrade: websocket
+Connection: Upgrade
+Is WebSocket: true
+Session ID: 78a16794-a053-4b00-a1ec-11167758f0cc
+Time: 2025-12-17T17:00:54.520Z
+--------------------------------------------------------------------------------
+
+[TLS-PRELOAD-16] 📤 OUTGOING DATA (129 bytes):
+[TLS-PRELOAD-16] 🎯 WEBSOCKET UPGRADE RESPONSE DETECTED!
+[TLS-PRELOAD-16] Response:
+HTTP/1.1 101 Switching Protocols
+Upgrade: websocket
+Connection: Upgrade
+Sec-WebSocket-Accept: Y8OhwqXmT/1U+ObidG6yyfyBZ6w=
+
+
+[TLS-PRELOAD-16] Status line: HTTP/1.1 101 Switching Protocols
+[TLS-PRELOAD-16] Response headers:
+[TLS-PRELOAD-16] Upgrade: websocket
+[TLS-PRELOAD-16] Connection: Upgrade
+[TLS-PRELOAD-16] Sec-WebSocket-Accept: Y8OhwqXmT/1U+ObidG6yyfyBZ6w=
+[TLS-PRELOAD-16] ✅ Switched to passingThrough state - will forward all subsequent data
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.521Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 165 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 165 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 165
+[CONSOLE ENDPOINT] Request ended, body length: 165
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990854281}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.522Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 121 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 121 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 121
+[CONSOLE ENDPOINT] Request ended, body length: 121
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location origin: https://vite.bs-local.com:63315","timestamp":1765990854281}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location origin: https://vite.bs-local.com:63315
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.523Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 98 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 98 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 98
+[CONSOLE ENDPOINT] Request ended, body length: 98
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location protocol: https:","timestamp":1765990854281}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location protocol: https:
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.573Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 111 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 111 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 111
+[CONSOLE ENDPOINT] Request ended, body length: 111
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location host: vite.bs-local.com:63315","timestamp":1765990854282}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location host: vite.bs-local.com:63315
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.577Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 109 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 109 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 109
+[CONSOLE ENDPOINT] Request ended, body length: 109
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location hostname: vite.bs-local.com","timestamp":1765990854282}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location hostname: vite.bs-local.com
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.586Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location port: 63315","timestamp":1765990854283}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location port: 63315
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-16] 🔚 Socket.end() called - connection terminating
+[TLS-PRELOAD-16] Arguments passed to .end(): 0
+[TLS-PRELOAD-16] Call stack:
+Error
+ at tlsSocket.end (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:348:25)
+ at TLSSocket.socketOnEnd (/Users/raju.ahmed/workspace/javascript-sdk/node_modules/ws/lib/websocket.js:1370:8)
+ at TLSSocket.emit (node:events:536:35)
+ at TLSSocket.emit (node:domain:489:12)
+ at endReadableNT (node:internal/streams/readable:1698:12)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-16] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-16] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at finish (node:internal/streams/writable:968:14)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-16] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-16] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.636Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.637Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 204 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 204 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 204
+[CONSOLE ENDPOINT] Request ended, body length: 204
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15","timestamp":1765990854283}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 185 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 185 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 185
+[CONSOLE ENDPOINT] Request ended, body length: 185
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Location href: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/","timestamp":1765990854283}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Location href: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc#/
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.639Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 138 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 138 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 138
+[CONSOLE ENDPOINT] Request ended, body length: 138
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] =================================================================","timestamp":1765990854284}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] =================================================================
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.643Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 166 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 166 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 166
+[CONSOLE ENDPOINT] Request ended, body length: 166
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Original URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990854284}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Original URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.663Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 199 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 199 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 199
+[CONSOLE ENDPOINT] Request ended, body length: 199
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990854284-upvd2","timestamp":1765990854284}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990854284-upvd2
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-17] 🔐 Secure connection established
+[TLS-PRELOAD-17] 📋 Found 1 'data' listeners
+[TLS-PRELOAD-17] 🎯 Wrapping existing 'data' listener(s)!
+[TLS-PRELOAD-17] ✅ Data event interceptor installed
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.700Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 100 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 100 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 100
+[CONSOLE ENDPOINT] Request ended, body length: 100
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Debug ID: debug-1765990854284-upvd2","timestamp":1765990854285}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Debug ID: debug-1765990854284-upvd2
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.729Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 183 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 183 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 183
+[CONSOLE ENDPOINT] Request ended, body length: 183
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State: CONNECTING ( 0 ) - URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990854285}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State: CONNECTING ( 0 ) - URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.731Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 334 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 334 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 334
+[CONSOLE ENDPOINT] Request ended, body length: 334
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] ERROR: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df {\"isTrusted\":true}","timestamp":1765990854417}
+
+================================================================================
+[BROWSER LOG] [WebSocket] ERROR: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df {"isTrusted":true}
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.759Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State at error: CLOSED ( 3 )","timestamp":1765990854418}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State at error: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.760Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 314 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 314 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 314
+[CONSOLE ENDPOINT] Request ended, body length: 314
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] CLOSED: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990854418}
+
+================================================================================
+[BROWSER LOG] [WebSocket] CLOSED: wss://vite.bs-local.com:63315/__vitest_browser_api__?type=orchestrator&rpcId=78a16794-a053-4b00-a1ec-11167758f0cc&sessionId=78a16794-a053-4b00-a1ec-11167758f0cc&projectName=safari&method=orchestrate&token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.762Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close code: 1006","timestamp":1765990854419}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close code: 1006
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.765Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 85 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 85 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 85
+[CONSOLE ENDPOINT] Request ended, body length: 85
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close reason: (none)","timestamp":1765990854419}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close reason: (none)
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-17] 📦 INTERCEPTED DATA! 507 bytes (state: readingHeaders)
+[TLS-PRELOAD-17] ✅ Complete HTTP headers received (request #1)
+
+================================================================================
+[TLS-PRELOAD-17] 🎯 INCOMING WEBSOCKET REQUEST HEADERS
+[TLS-PRELOAD-17] Request line: GET /__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990854284-upvd2 HTTP/1.1
+[TLS-PRELOAD-17] All request headers:
+[TLS-PRELOAD-17] Host: vite.bs-local.com:63315
+[TLS-PRELOAD-17] Origin: https://vite.bs-local.com:63315
+[TLS-PRELOAD-17] Pragma: no-cache
+[TLS-PRELOAD-17] Cache-Control: no-cache
+[TLS-PRELOAD-17] Sec-WebSocket-Key: DFQIFGMdCfaZ1IXxRjjzBA==
+[TLS-PRELOAD-17] Sec-WebSocket-Version: 13
+[TLS-PRELOAD-17] Sec-WebSocket-Extensions: x-webkit-deflate-frame
+[TLS-PRELOAD-17] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
+[TLS-PRELOAD-17] Via: 1.1 browsermobproxy
+[TLS-PRELOAD-17] Has Sec-WebSocket-Key: true
+[TLS-PRELOAD-17] Has Upgrade header: false
+[TLS-PRELOAD-17] Has Connection header: false
+================================================================================
+
+
+================================================================================
+[TLS-PRELOAD-17] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+================================================================================
+
+[TLS-PRELOAD-17] 🔧 INJECTING MISSING WEBSOCKET HEADERS!
+[TLS-PRELOAD-17] ✅ Injected: Upgrade: websocket
+[TLS-PRELOAD-17] ✅ Injected: Connection: Upgrade
+[TLS-PRELOAD-17] ✅ Headers injected! Forwarding modified headers
+[TLS-PRELOAD-17] 📨 Forwarding 548 bytes to original handlers
+[2025-12-17T17:00:54.787Z] [WEBSOCKET_UPGRADE_REQUEST] {
+ "socketId": 35,
+ "protocol": "https",
+ "url": "/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990854284-upvd2",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "upgradeHeader": "websocket",
+ "connectionHeader": "Upgrade",
+ "isWebSocket": true,
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53566,
+ "wsKey": "DFQIFGMdCfaZ1IXxRjjzBA==",
+ "wsVersion": "13",
+ "wsExtensions": "x-webkit-deflate-frame"
+}
+
+--------------------------------------------------------------------------------
+[WEBSOCKET UPGRADE]
+Socket ID: 35
+Protocol: https
+URL: /__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990854284-upvd2
+Full URL: https://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df&wsDebugId=debug-1765990854284-upvd2
+Origin: https://vite.bs-local.com:63315
+Upgrade: websocket
+Connection: Upgrade
+Is WebSocket: true
+Time: 2025-12-17T17:00:54.787Z
+--------------------------------------------------------------------------------
+
+[TLS-PRELOAD-17] 📤 OUTGOING DATA (129 bytes):
+[TLS-PRELOAD-17] 🎯 WEBSOCKET UPGRADE RESPONSE DETECTED!
+[TLS-PRELOAD-17] Response:
+HTTP/1.1 101 Switching Protocols
+Upgrade: websocket
+Connection: Upgrade
+Sec-WebSocket-Accept: dN5F32hzP5D89VjpJEZCPiAOCQw=
+
+
+[TLS-PRELOAD-17] Status line: HTTP/1.1 101 Switching Protocols
+[TLS-PRELOAD-17] Response headers:
+[TLS-PRELOAD-17] Upgrade: websocket
+[TLS-PRELOAD-17] Connection: Upgrade
+[TLS-PRELOAD-17] Sec-WebSocket-Accept: dN5F32hzP5D89VjpJEZCPiAOCQw=
+[TLS-PRELOAD-17] ✅ Switched to passingThrough state - will forward all subsequent data
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.827Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Was clean: false","timestamp":1765990854419}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Was clean: false
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.841Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 90 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 90 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 90
+[CONSOLE ENDPOINT] Request ended, body length: 90
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Final state: CLOSED ( 3 )","timestamp":1765990854420}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Final state: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-17] 🔚 Socket.end() called - connection terminating
+[TLS-PRELOAD-17] Arguments passed to .end(): 0
+[TLS-PRELOAD-17] Call stack:
+Error
+ at tlsSocket.end (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:348:25)
+ at TLSSocket.socketOnEnd (file:///Users/raju.ahmed/workspace/javascript-sdk/node_modules/vitest/dist/chunks/cli-api.BkDphVBG.js:4187:9)
+ at TLSSocket.emit (node:events:536:35)
+ at TLSSocket.emit (node:domain:489:12)
+ at endReadableNT (node:internal/streams/readable:1698:12)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-17] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-17] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at finish (node:internal/streams/writable:968:14)
+ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
+[TLS-PRELOAD-17] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-17] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.886Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.886Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 180 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 180 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 180
+[CONSOLE ENDPOINT] Request ended, body length: 180
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] ERROR: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df {\"isTrusted\":true}","timestamp":1765990854716}
+
+================================================================================
+[BROWSER LOG] [WebSocket] ERROR: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df {"isTrusted":true}
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.900Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.900Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 93 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 93 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 93
+[CONSOLE ENDPOINT] Request ended, body length: 93
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] State at error: CLOSED ( 3 )","timestamp":1765990854716}
+
+================================================================================
+[BROWSER LOG] [WebSocket] State at error: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 194 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 194 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 194
+[CONSOLE ENDPOINT] Request ended, body length: 194
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] STATE CHANGE: CONNECTING -> CLOSED - URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990854717}
+
+================================================================================
+[BROWSER LOG] [WebSocket] STATE CHANGE: CONNECTING -> CLOSED - URL: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 104 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 104 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 104
+[CONSOLE ENDPOINT] Request ended, body length: 104
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] __vitest_api__ connection ERROR","timestamp":1765990854717}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] __vitest_api__ connection ERROR
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.943Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 112 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 112 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 112
+[CONSOLE ENDPOINT] Request ended, body length: 112
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] __vitest_api__ state changed to: CLOSED","timestamp":1765990854717}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] __vitest_api__ state changed to: CLOSED
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:54.943Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 160 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 160 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 160
+[CONSOLE ENDPOINT] Request ended, body length: 160
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] CLOSED: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df","timestamp":1765990854718}
+
+================================================================================
+[BROWSER LOG] [WebSocket] CLOSED: wss://vite.bs-local.com:63315/__vitest_api__?token=75438bbf-312e-4962-9674-16cb7957b7df
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.952Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53543,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-2] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-2] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close code: 1006","timestamp":1765990854718}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close code: 1006
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-2] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-2] Response headers:
+[TLS-PRELOAD-2] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-2] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-2] Connection: keep-alive
+[TLS-PRELOAD-2] Transfer-Encoding: chunked
+[TLS-PRELOAD-2] Body preview: 2
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): OK
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-2] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-2] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-2] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:54.997Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53548,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-5] 📦 INTERCEPTED DATA! 85 bytes (state: passingThrough)
+[TLS-PRELOAD-5] 🔄 Passing through 85 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 85
+[CONSOLE ENDPOINT] Request ended, body length: 85
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Close reason: (none)","timestamp":1765990854719}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Close reason: (none)
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-5] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-5] Response headers:
+[TLS-PRELOAD-5] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-5] Date: Wed, 17 Dec 2025 17:00:54 GMT
+[TLS-PRELOAD-5] Connection: keep-alive
+[TLS-PRELOAD-5] Transfer-Encoding: chunked
+[TLS-PRELOAD-5] Body preview: 2
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): OK
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-5] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-5] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-5] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:55.005Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53551,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-7] 📦 INTERCEPTED DATA! 81 bytes (state: passingThrough)
+[TLS-PRELOAD-7] 🔄 Passing through 81 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 81
+[CONSOLE ENDPOINT] Request ended, body length: 81
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Was clean: false","timestamp":1765990854719}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Was clean: false
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-7] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-7] Response headers:
+[TLS-PRELOAD-7] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-7] Date: Wed, 17 Dec 2025 17:00:55 GMT
+[TLS-PRELOAD-7] Connection: keep-alive
+[TLS-PRELOAD-7] Transfer-Encoding: chunked
+[TLS-PRELOAD-7] Body preview: 2
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): OK
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-7] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-7] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-7] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:55.013Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53547,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 509 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 509 bytes
+[2025-12-17T17:00:55.013Z] [HTTP_REQUEST] {
+ "socketId": 13,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53550,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-6] 📦 INTERCEPTED DATA! 105 bytes (state: passingThrough)
+[TLS-PRELOAD-6] 🔄 Passing through 105 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 105
+[CONSOLE ENDPOINT] Request ended, body length: 105
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] __vitest_api__ connection CLOSED","timestamp":1765990854720}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] __vitest_api__ connection CLOSED
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-6] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-6] Response headers:
+[TLS-PRELOAD-6] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-6] Date: Wed, 17 Dec 2025 17:00:55 GMT
+[TLS-PRELOAD-6] Connection: keep-alive
+[TLS-PRELOAD-6] Transfer-Encoding: chunked
+[TLS-PRELOAD-6] Body preview: 2
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): OK
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-6] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-6] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-6] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 508 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 508 bytes
+[2025-12-17T17:00:55.015Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 53546,
+ "headers": {
+ "host": "vite.bs-local.com:63315",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=78a16794-a053-4b00-a1ec-11167758f0cc",
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: vite.bs-local.com:63315
+[MIDDLEWARE] Host header removed (was: vite.bs-local.com:63315)
+[CONSOLE ENDPOINT] Received POST request
+[TLS-PRELOAD-3] 📦 INTERCEPTED DATA! 89 bytes (state: passingThrough)
+[TLS-PRELOAD-3] 🔄 Passing through 89 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 89
+[CONSOLE ENDPOINT] Request ended, body length: 89
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket BROWSER] Close code: 1006","timestamp":1765990854720}
+
+================================================================================
+[BROWSER LOG] [WebSocket BROWSER] Close code: 1006
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-3] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-3] Response headers:
+[TLS-PRELOAD-3] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-3] Date: Wed, 17 Dec 2025 17:00:55 GMT
+[TLS-PRELOAD-3] Connection: keep-alive
+[TLS-PRELOAD-3] Transfer-Encoding: chunked
+[TLS-PRELOAD-3] Body preview: 2
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): OK
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-3] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-3] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-3] Data (first 100 chars): 0
+
+
+[TLS-PRELOAD-4] 📦 INTERCEPTED DATA! 90 bytes (state: passingThrough)
+[TLS-PRELOAD-4] 🔄 Passing through 90 bytes
+[CONSOLE ENDPOINT] Received chunk, total length: 90
+[CONSOLE ENDPOINT] Request ended, body length: 90
+[CONSOLE ENDPOINT] Raw body: {"type":"log","message":"[WebSocket] Final state: CLOSED ( 3 )","timestamp":1765990854719}
+
+================================================================================
+[BROWSER LOG] [WebSocket] Final state: CLOSED ( 3 )
+================================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (141 bytes):
+[TLS-PRELOAD-4] HTTP Response: HTTP/1.1 200 OK
+[TLS-PRELOAD-4] Response headers:
+[TLS-PRELOAD-4] Access-Control-Allow-Origin: *
+[TLS-PRELOAD-4] Date: Wed, 17 Dec 2025 17:00:55 GMT
+[TLS-PRELOAD-4] Connection: keep-alive
+[TLS-PRELOAD-4] Transfer-Encoding: chunked
+[TLS-PRELOAD-4] Body preview: 2
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): OK
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (2 bytes):
+[TLS-PRELOAD-4] Binary data (first 100 bytes hex): 0d0a
+[TLS-PRELOAD-4] 📤 OUTGOING DATA (5 bytes):
+[TLS-PRELOAD-4] Data (first 100 chars): 0
+
+
+
+ Test Files 2 passed (3)
+ Tests no tests
+Type Errors no errors
+ Errors 1 error
+ Start at 23:00:35
+ Duration 19.62s (transform 0ms, setup 0ms, collect 0ms, tests 0ms, environment 0ms, prepare 0ms, typecheck 1.32s)
+
+[TLS-PRELOAD-12] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-12] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-11] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-11] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-7] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-7] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-6] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-6] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-5] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-5] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-4] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-4] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-3] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-3] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+[TLS-PRELOAD-2] 💥 Socket.destroy() called - connection force closed
+[TLS-PRELOAD-2] Call stack:
+Error
+ at tlsSocket.destroy (/Users/raju.ahmed/workspace/javascript-sdk/tls-patch-preload.js:363:25)
+ at Socket. (node:_tls_wrap:714:33)
+ at Socket.emit (node:events:536:35)
+ at Socket.emit (node:domain:489:12)
+ at TCP. (node:net:343:12)
+
+================================================================================
+Browser test summary:
+================================================================================
+WebSocket header injection proxy stopped
+BrowserStack Local tunnel stopped
diff --git a/scripts/run-browser-tests-playwright.js b/scripts/run-browser-tests-playwright.js
new file mode 100644
index 000000000..606445bb5
--- /dev/null
+++ b/scripts/run-browser-tests-playwright.js
@@ -0,0 +1,237 @@
+#!/usr/bin/env node
+
+/**
+ * Copyright 2024-2025, Optimizely
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+// Load environment variables from .env file
+require('dotenv').config();
+
+const { execSync } = require('child_process');
+const browserstack = require('browserstack-local');
+
+// Define browser configurations for BrowserStack Playwright
+// BrowserStack supports any browser/OS combination via the CDP endpoint
+// You can use either Playwright browser names (chromium, firefox, webkit) or
+// actual BrowserStack browser names (chrome, edge, safari, etc.)
+const allBrowsers = [
+ {
+ name: 'chromium',
+ browserVersion: 'latest',
+ os: 'Windows',
+ osVersion: '11',
+ displayName: 'Chrome on Windows 11',
+ },
+ {
+ name: 'firefox',
+ browserVersion: 'latest',
+ os: 'Windows',
+ osVersion: '11',
+ displayName: 'Firefox on Windows 11',
+ },
+ {
+ name: 'webkit',
+ browserVersion: 'latest',
+ os: 'OS X',
+ osVersion: 'Sonoma',
+ displayName: 'Safari on macOS Sonoma',
+ },
+ // Additional BrowserStack browser/OS combinations (commented out):
+ //
+ // Microsoft Edge on Windows 11
+ // {
+ // name: 'edge',
+ // browserVersion: 'latest',
+ // os: 'Windows',
+ // osVersion: '11',
+ // displayName: 'Edge on Windows 11',
+ // },
+ //
+ // Chrome on Windows 10
+ // {
+ // name: 'chrome',
+ // browserVersion: '119.0',
+ // os: 'Windows',
+ // osVersion: '10',
+ // displayName: 'Chrome 119 on Windows 10',
+ // },
+ //
+ // Firefox on macOS Ventura
+ // {
+ // name: 'firefox',
+ // browserVersion: 'latest',
+ // os: 'OS X',
+ // osVersion: 'Ventura',
+ // displayName: 'Firefox on macOS Ventura',
+ // },
+ //
+ // Safari on macOS Monterey
+ // {
+ // name: 'safari',
+ // browserVersion: '15.6',
+ // os: 'OS X',
+ // osVersion: 'Monterey',
+ // displayName: 'Safari 15.6 on macOS Monterey',
+ // },
+ //
+ // Edge on Windows 10
+ // {
+ // name: 'edge',
+ // browserVersion: '118.0',
+ // os: 'Windows',
+ // osVersion: '10',
+ // displayName: 'Edge 118 on Windows 10',
+ // },
+ //
+ // Chrome on macOS Big Sur
+ // {
+ // name: 'chrome',
+ // browserVersion: 'latest',
+ // os: 'OS X',
+ // osVersion: 'Big Sur',
+ // displayName: 'Chrome on macOS Big Sur',
+ // },
+];
+
+// Allow filtering browsers via command line argument
+// Usage: node run-browser-tests-playwright.js chromium
+const browserFilter = process.argv[2];
+const browsers = browserFilter
+ ? allBrowsers.filter(b => b.name === browserFilter.toLowerCase())
+ : allBrowsers;
+
+if (browsers.length === 0) {
+ console.error(`Error: Unknown browser "${browserFilter}". Valid options: chromium, firefox, webkit`);
+ process.exit(1);
+}
+
+// Check for required environment variables (support both naming conventions)
+const username = process.env.BROWSERSTACK_USERNAME || process.env.BROWSER_STACK_USERNAME;
+const accessKey = process.env.BROWSERSTACK_ACCESS_KEY || process.env.BROWSER_STACK_ACCESS_KEY;
+
+if (!username || !accessKey) {
+ console.error('Error: BrowserStack credentials are required.');
+ console.error('Please set BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY in .env file or environment variables');
+ process.exit(1);
+}
+
+// BrowserStack Local is optional - only needed if tests require localhost access
+const useBrowserStackLocal = process.env.BROWSERSTACK_LOCAL === 'true';
+let bs_local = null;
+
+function startTunnel() {
+ if (!useBrowserStackLocal) {
+ console.log('BrowserStack Local tunnel disabled (tests run without local server access)');
+ return Promise.resolve();
+ }
+
+ console.log('Starting BrowserStack Local tunnel...');
+ bs_local = new browserstack.Local();
+ const bsLocalArgs = {
+ key: accessKey,
+ force: true,
+ forceLocal: true,
+ };
+
+ return new Promise((resolve, reject) => {
+ bs_local.start(bsLocalArgs, (error) => {
+ if (error) {
+ console.error('Error starting BrowserStack Local:', error);
+ reject(error);
+ } else {
+ console.log('BrowserStack Local tunnel started successfully');
+ console.log(`Local Identifier: ${bs_local.pid}`);
+ // Give the tunnel a moment to fully establish
+ setTimeout(resolve, 2000);
+ }
+ });
+ });
+}
+
+function stopTunnel() {
+ if (!bs_local) {
+ return Promise.resolve();
+ }
+
+ console.log('\nStopping BrowserStack Local tunnel...');
+ return new Promise((resolve) => {
+ bs_local.stop(() => {
+ console.log('BrowserStack Local tunnel stopped');
+ resolve();
+ });
+ });
+}
+
+let hasFailures = false;
+
+function runTests() {
+ // Run tests for each browser
+ browsers.forEach((browser) => {
+ console.log(`\n${'='.repeat(80)}`);
+ console.log(`Running tests on ${browser.displayName}...`);
+ console.log('='.repeat(80));
+
+ try {
+ // Set environment variables for this browser configuration
+ const env = {
+ ...process.env,
+ VITEST_BROWSER_NAME: browser.name,
+ VITEST_BROWSER_VERSION: browser.browserVersion,
+ VITEST_BROWSER_OS: browser.os,
+ VITEST_BROWSER_OS_VERSION: browser.osVersion,
+ VITEST_SESSION_NAME: browser.displayName,
+ };
+
+ // Run vitest with the playwright browser config
+ execSync('npm run test-vitest -- --config vitest.browser.playwright.config.mts', {
+ stdio: 'inherit',
+ env,
+ });
+
+ console.log(`✓ Tests passed on ${browser.displayName}`);
+ } catch (error) {
+ console.error(`✗ Tests failed on ${browser.displayName}`);
+ hasFailures = true;
+ }
+ });
+
+ console.log(`\n${'='.repeat(80)}`);
+ console.log('Browser test summary:');
+ console.log('='.repeat(80));
+
+ if (hasFailures) {
+ console.error('Some browser tests failed. See above for details.');
+ } else {
+ console.log('All browser tests passed!');
+ }
+
+ return hasFailures;
+}
+
+// Run the tests with BrowserStack Local tunnel
+async function main() {
+ try {
+ await startTunnel();
+ const hasFailures = runTests();
+ await stopTunnel();
+ process.exit(hasFailures ? 1 : 0);
+ } catch (error) {
+ console.error('Fatal error:', error);
+ await stopTunnel();
+ process.exit(1);
+ }
+}
+
+main();
diff --git a/scripts/run-browser-tests-webdriverio.js b/scripts/run-browser-tests-webdriverio.js
new file mode 100644
index 000000000..0760a8474
--- /dev/null
+++ b/scripts/run-browser-tests-webdriverio.js
@@ -0,0 +1,107 @@
+#!/usr/bin/env node
+
+/**
+ * Copyright 2024-2025, Optimizely
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+// Load environment variables from .env file
+require('dotenv').config();
+
+const { execSync } = require('child_process');
+
+// Define browser configurations for local WebDriverIO
+const allBrowsers = [
+ {
+ name: 'chrome',
+ browserName: 'chrome',
+ browserVersion: 'stable',
+ displayName: 'Chrome (stable)',
+ },
+ {
+ name: 'firefox',
+ browserName: 'firefox',
+ browserVersion: 'latest',
+ displayName: 'Firefox (latest)',
+ },
+ {
+ name: 'edge',
+ browserName: 'MicrosoftEdge',
+ browserVersion: 'stable',
+ displayName: 'Edge (stable)',
+ },
+];
+
+// Allow filtering browsers via command line argument
+// Usage: node run-browser-tests-webdriverio.js chrome
+const browserFilter = process.argv[2];
+const browsers = browserFilter
+ ? allBrowsers.filter(b => b.name === browserFilter.toLowerCase())
+ : allBrowsers;
+
+if (browsers.length === 0) {
+ console.error(`Error: Unknown browser "${browserFilter}". Valid options: chrome, firefox, edge`);
+ process.exit(1);
+}
+
+let hasFailures = false;
+
+function runTests() {
+ // Run tests for each browser
+ browsers.forEach((browser) => {
+ console.log(`\n${'='.repeat(80)}`);
+ console.log(`Running tests on ${browser.displayName}...`);
+ console.log('='.repeat(80));
+
+ try {
+ // Set environment variables for this browser configuration
+ const env = {
+ ...process.env,
+ VITEST_BROWSER_NAME: browser.browserName,
+ VITEST_BROWSER_VERSION: browser.browserVersion,
+ };
+
+ // Run vitest with the webdriverio config
+ execSync('npm run test-vitest -- --config vitest.browser.webdriverio.config.mts', {
+ stdio: 'inherit',
+ env,
+ });
+
+ console.log(`✓ Tests passed on ${browser.displayName}`);
+ } catch (error) {
+ console.error(`✗ Tests failed on ${browser.displayName}`);
+ hasFailures = true;
+ }
+ });
+
+ console.log(`\n${'='.repeat(80)}`);
+ console.log('Browser test summary:');
+ console.log('='.repeat(80));
+
+ if (hasFailures) {
+ console.error('Some browser tests failed. See above for details.');
+ } else {
+ console.log('All browser tests passed!');
+ }
+
+ process.exit(hasFailures ? 1 : 0);
+}
+
+// Run the tests
+try {
+ runTests();
+} catch (error) {
+ console.error('Fatal error:', error);
+ process.exit(1);
+}
diff --git a/scripts/run-browser-tests.js b/scripts/run-browser-tests.js
new file mode 100755
index 000000000..753dd8285
--- /dev/null
+++ b/scripts/run-browser-tests.js
@@ -0,0 +1,222 @@
+#!/usr/bin/env node
+
+/**
+ * Copyright 2024-2025, Optimizely
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+// Load environment variables from .env file
+require('dotenv').config();
+
+const { execSync, spawn } = require('child_process');
+const browserstack = require('browserstack-local');
+const path = require('path');
+
+
+// Note: Browser instances are now configured in vitest.browser.config.mts
+// The Vitest config will run all browsers (Chrome, Firefox, Edge, Safari, Opera) automatically
+
+// Determine if we should use local browser or BrowserStack
+// Priority: USE_LOCAL_BROWSER env var, then check for BrowserStack credentials
+let useLocalBrowser = process.env.USE_LOCAL_BROWSER === 'true';
+
+if (!useLocalBrowser) {
+ // Check for BrowserStack credentials
+ const username = process.env.BROWSERSTACK_USERNAME || process.env.BROWSER_STACK_USERNAME;
+ const accessKey = process.env.BROWSERSTACK_ACCESS_KEY || process.env.BROWSER_STACK_ACCESS_KEY;
+
+ if (!username || !accessKey) {
+ console.log('BrowserStack credentials not found - falling back to local browser mode');
+ useLocalBrowser = true;
+ }
+}
+
+// BrowserStack Local is optional - only needed if tests require localhost access
+const useBrowserStackLocal = process.env.BROWSERSTACK_LOCAL === 'true';
+let bs_local = null;
+let proxyProcess = null;
+
+// Start WebSocket header injection proxy for Safari
+function startProxy() {
+ return new Promise((resolve, reject) => {
+ console.log('Starting WebSocket header injection proxy...');
+
+ const proxyPath = path.join(__dirname, 'websocket-header-proxy.js');
+ const logPath = path.join(__dirname, '..', 'header-proxy.log');
+
+ // Open log file in append mode synchronously
+ const fs = require('fs');
+ const logFd = fs.openSync(logPath, 'a');
+
+ proxyProcess = spawn('node', [proxyPath], {
+ stdio: ['ignore', logFd, logFd], // stdin ignored, stdout/stderr to log file descriptor
+ detached: false,
+ });
+
+ proxyProcess.on('error', (error) => {
+ console.error('Error starting proxy:', error);
+ fs.closeSync(logFd);
+ reject(error);
+ });
+
+ proxyProcess.on('exit', () => {
+ fs.closeSync(logFd);
+ });
+
+ // Give proxy time to start
+ setTimeout(() => {
+ console.log('Proxy ready! (logs: header-proxy.log)');
+ resolve();
+ }, 2000);
+ });
+}
+
+function stopProxy() {
+ if (!proxyProcess) {
+ return Promise.resolve();
+ }
+
+ return new Promise((resolve) => {
+ proxyProcess.kill();
+ proxyProcess = null;
+ console.log('WebSocket header injection proxy stopped');
+ resolve();
+ });
+}
+
+function startTunnel() {
+ if (!useBrowserStackLocal) {
+ console.log('BrowserStack Local tunnel disabled (tests run without local server access)');
+ return Promise.resolve();
+ }
+
+ const username = process.env.BROWSERSTACK_USERNAME || process.env.BROWSER_STACK_USERNAME;
+ const accessKey = process.env.BROWSERSTACK_ACCESS_KEY || process.env.BROWSER_STACK_ACCESS_KEY;
+
+ console.log('Starting BrowserStack Local tunnel...');
+ bs_local = new browserstack.Local();
+ const bsLocalArgs = {
+ key: accessKey,
+ force: true,
+ forceLocal: true,
+ // 'onlyHosts': 'asdffasdf.com,63315,1,vite.asdffasdf.com.com,63315,1', // Allowlist hosts and ports
+ // Enable WebSocket support through the BrowserStack Local tunnel
+ // This preserves WebSocket upgrade headers (especially critical for Safari)
+ // wsLocalSupport: true,
+ };
+
+ return new Promise((resolve, reject) => {
+ bs_local.start(bsLocalArgs, (error) => {
+ if (error) {
+ console.error('Error starting BrowserStack Local:', error);
+ reject(error);
+ } else {
+ console.log('BrowserStack Local tunnel started successfully');
+ console.log(`Local Identifier: ${bs_local.pid}`);
+ // Wait longer for tunnel to fully establish and register with BrowserStack
+ console.log('Waiting for tunnel to establish...');
+ setTimeout(() => {
+ console.log('Tunnel ready!');
+ resolve();
+ }, 10000);
+ }
+ });
+ });
+}
+
+function stopTunnel() {
+ if (!bs_local) {
+ return Promise.resolve();
+ }
+
+ return new Promise((resolve) => {
+ bs_local.stop(() => {
+ console.log('BrowserStack Local tunnel stopped');
+ resolve();
+ });
+ });
+}
+
+let hasFailures = false;
+
+async function runTests() {
+ try {
+ // Start WebSocket header injection proxy (for Safari compatibility)
+ await startProxy();
+
+ // Only start tunnel if using BrowserStack
+ if (!useLocalBrowser) {
+ await startTunnel();
+ } else {
+ console.log('Using local browser mode - no BrowserStack connection needed');
+ }
+
+ console.log(`\n${'='.repeat(80)}`);
+ const browserList = process.env.VITEST_BROWSER || 'Chrome 102, Firefox 91, Edge 84, Safari 13.1, Opera 76';
+ console.log(`Running tests on ${useLocalBrowser ? 'local browsers' : 'BrowserStack'} (${browserList})...`);
+ console.log('='.repeat(80));
+
+ // Set environment variables
+ const env = {
+ ...process.env,
+ USE_LOCAL_BROWSER: useLocalBrowser ? 'true' : 'false',
+ };
+
+ try {
+ // Run vitest with TLS preload script to intercept WebSocket headers
+ // The preload script patches the TLS module BEFORE any other modules load
+ const preloadPath = path.resolve(__dirname, '..', 'tls-patch-preload.js');
+ const envWithPreload = {
+ ...env,
+ NODE_OPTIONS: `--require ${preloadPath}${env.NODE_OPTIONS ? ' ' + env.NODE_OPTIONS : ''}`
+ };
+
+ execSync('npm run test-vitest -- --config vitest.browser.config.mts', {
+ stdio: 'inherit',
+ env: envWithPreload,
+ });
+
+ console.log('\n✓ All browser tests passed!');
+ } catch (error) {
+ console.error('\n✗ Some browser tests failed');
+ hasFailures = true;
+ }
+
+ console.log(`\n${'='.repeat(80)}`);
+ console.log('Browser test summary:');
+ console.log('='.repeat(80));
+
+ if (hasFailures) {
+ console.error('Some browser tests failed. See above for details.');
+ } else {
+ console.log('All browser tests passed!');
+ }
+ } finally {
+ // Stop proxy and tunnel
+ await stopProxy();
+
+ // Only stop tunnel if using BrowserStack
+ if (!useLocalBrowser) {
+ await stopTunnel();
+ }
+ }
+
+ process.exit(hasFailures ? 1 : 0);
+}
+
+// Run the tests
+runTests().catch((error) => {
+ console.error('Fatal error:', error);
+ process.exit(1);
+});
diff --git a/scripts/websocket-header-proxy.js b/scripts/websocket-header-proxy.js
new file mode 100644
index 000000000..2c17bc431
--- /dev/null
+++ b/scripts/websocket-header-proxy.js
@@ -0,0 +1,218 @@
+#!/usr/bin/env node
+
+/**
+ * WebSocket Header Injection Proxy for Safari on BrowserStack
+ *
+ * Problem: BrowserStack tunnel strips Upgrade/Connection headers from Safari WebSocket requests
+ * Solution: TCP-level proxy that intercepts raw HTTP bytes and injects missing headers
+ *
+ * This proxy:
+ * 1. Listens on port 63315 (BrowserStack connects here)
+ * 2. Forwards to Vite on port 5173
+ * 3. Detects WebSocket upgrade requests by sec-websocket-key header
+ * 4. Injects Upgrade: websocket and Connection: Upgrade if missing
+ */
+
+const net = require('net');
+const tls = require('tls');
+const fs = require('fs');
+
+const PROXY_PORT = 7777; // Port where proxy listens (BrowserStack Local will use this as proxy)
+const VITEST_API_PORT = 63315; // Vitest API server port
+const VITEST_API_HOST = 'bs-local.com'; // Vitest API listens on bs-local.com
+const PROXY_HOST = '127.0.0.1'; // Proxy listens on localhost
+
+// Load TLS certificates
+const tlsOptions = {
+ key: fs.readFileSync('.cert/key.pem'),
+ cert: fs.readFileSync('.cert/cert.pem'),
+};
+
+let connectionCounter = 0;
+
+function log(message, ...args) {
+ console.log(`[WS-PROXY] ${message}`, ...args);
+}
+
+// Parse HTTP headers from raw buffer
+function parseHttpHeaders(buffer) {
+ const text = buffer.toString('utf8');
+ const lines = text.split('\r\n');
+ const requestLine = lines[0];
+ const headers = {};
+
+ for (let i = 1; i < lines.length; i++) {
+ const line = lines[i];
+ if (line === '') break; // End of headers
+
+ const colonIndex = line.indexOf(':');
+ if (colonIndex > 0) {
+ const key = line.substring(0, colonIndex).toLowerCase();
+ const value = line.substring(colonIndex + 1).trim();
+ headers[key] = value;
+ }
+ }
+
+ return { requestLine, headers, raw: text };
+}
+
+// Rebuild HTTP request with injected headers
+function injectHeaders(buffer, headersToInject) {
+ const text = buffer.toString('utf8');
+ const headerEndIndex = text.indexOf('\r\n\r\n');
+
+ if (headerEndIndex === -1) {
+ return buffer; // Incomplete request, don't modify
+ }
+
+ const lines = text.substring(0, headerEndIndex).split('\r\n');
+ const requestLine = lines[0];
+ const body = text.substring(headerEndIndex + 4);
+
+ // Parse existing headers
+ const existingHeaders = new Map();
+ for (let i = 1; i < lines.length; i++) {
+ const line = lines[i];
+ const colonIndex = line.indexOf(':');
+ if (colonIndex > 0) {
+ const key = line.substring(0, colonIndex).toLowerCase();
+ existingHeaders.set(key, line);
+ }
+ }
+
+ // Add missing headers
+ for (const [key, value] of Object.entries(headersToInject)) {
+ const lowerKey = key.toLowerCase();
+ if (!existingHeaders.has(lowerKey)) {
+ existingHeaders.set(lowerKey, `${key}: ${value}`);
+ log(` ✅ Injected ${key}: ${value}`);
+ }
+ }
+
+ // Rebuild request
+ const newLines = [requestLine];
+ for (const headerLine of existingHeaders.values()) {
+ newLines.push(headerLine);
+ }
+ newLines.push('');
+ newLines.push('');
+
+ const newHeaders = newLines.join('\r\n');
+ return Buffer.concat([
+ Buffer.from(newHeaders, 'utf8'),
+ Buffer.from(body, 'utf8')
+ ]);
+}
+
+// Create TLS proxy server
+const proxyServer = tls.createServer(tlsOptions, (clientSocket) => {
+ const connId = ++connectionCounter;
+ log(`[${connId}] New connection from ${clientSocket.remoteAddress}:${clientSocket.remotePort}`);
+
+ // Connect to Vitest API server via TLS (since Vitest uses HTTPS)
+ const serverSocket = tls.connect({
+ host: VITEST_API_HOST,
+ port: VITEST_API_PORT,
+ rejectUnauthorized: false, // Accept self-signed certificate
+ });
+
+ let isFirstChunk = true;
+ let headerBuffer = Buffer.alloc(0);
+ let headersProcessed = false;
+
+ // Client -> Server (intercept and inject headers)
+ clientSocket.on('data', (data) => {
+ if (!headersProcessed && isFirstChunk) {
+ // Accumulate data until we have complete headers
+ headerBuffer = Buffer.concat([headerBuffer, data]);
+
+ // Check if we have complete headers (ends with \r\n\r\n)
+ const headerEndIndex = headerBuffer.toString('utf8').indexOf('\r\n\r\n');
+
+ if (headerEndIndex !== -1) {
+ isFirstChunk = false;
+ headersProcessed = true;
+
+ // Parse headers
+ const { requestLine, headers } = parseHttpHeaders(headerBuffer);
+
+ // Check if this is a WebSocket upgrade request
+ const hasWebSocketKey = headers['sec-websocket-key'];
+ const hasUpgrade = headers['upgrade']?.toLowerCase() === 'websocket';
+ const hasConnection = headers['connection']?.toLowerCase().includes('upgrade');
+ const isVitestApi = requestLine.includes('__vitest_api');
+
+ if (isVitestApi && hasWebSocketKey && (!hasUpgrade || !hasConnection)) {
+ log(`[${connId}] 🔧 Detected Safari WebSocket upgrade with missing headers!`);
+ log(`[${connId}] Request: ${requestLine}`);
+ log(`[${connId}] Has sec-websocket-key: true`);
+ log(`[${connId}] Has Upgrade header: ${hasUpgrade}`);
+ log(`[${connId}] Has Connection header: ${hasConnection}`);
+
+ // Inject missing headers
+ const headersToInject = {};
+ if (!hasUpgrade) {
+ headersToInject['Upgrade'] = 'websocket';
+ }
+ if (!hasConnection) {
+ headersToInject['Connection'] = 'Upgrade';
+ }
+
+ const modifiedBuffer = injectHeaders(headerBuffer, headersToInject);
+ serverSocket.write(modifiedBuffer);
+ log(`[${connId}] ✅ Headers injected and forwarded to Vite`);
+ } else {
+ // Normal request, forward as-is
+ serverSocket.write(headerBuffer);
+ }
+
+ headerBuffer = Buffer.alloc(0); // Clear buffer
+ }
+ } else {
+ // Already processed headers or not first chunk, forward as-is
+ serverSocket.write(data);
+ }
+ });
+
+ // Server -> Client (pass through)
+ serverSocket.on('data', (data) => {
+ clientSocket.write(data);
+ });
+
+ // Handle errors and cleanup
+ clientSocket.on('error', (err) => {
+ log(`[${connId}] Client error:`, err.message);
+ serverSocket.destroy();
+ });
+
+ serverSocket.on('error', (err) => {
+ log(`[${connId}] Server error:`, err.message);
+ clientSocket.destroy();
+ });
+
+ clientSocket.on('close', () => {
+ log(`[${connId}] Client disconnected`);
+ serverSocket.destroy();
+ });
+
+ serverSocket.on('close', () => {
+ log(`[${connId}] Server disconnected`);
+ clientSocket.destroy();
+ });
+});
+
+proxyServer.listen(PROXY_PORT, PROXY_HOST, () => {
+ console.log('\n' + '='.repeat(80));
+ log(`WebSocket Header Injection TLS Proxy started`);
+ log(`Time: ${new Date().toISOString()}`);
+ log(`Listening on: ${PROXY_HOST}:${PROXY_PORT} (HTTPS)`);
+ log(`Forwarding to: ${VITEST_API_HOST}:${VITEST_API_PORT}`);
+ log(`Certificates: .cert/cert.pem, .cert/key.pem`);
+ log(`Ready to inject WebSocket headers for Safari!`);
+ console.log('='.repeat(80) + '\n');
+});
+
+proxyServer.on('error', (err) => {
+ console.error('[WS-PROXY] Fatal error:', err);
+ process.exit(1);
+});
diff --git a/test-browserstack-connection.js b/test-browserstack-connection.js
new file mode 100644
index 000000000..e7069aa09
--- /dev/null
+++ b/test-browserstack-connection.js
@@ -0,0 +1,70 @@
+#!/usr/bin/env node
+
+/**
+ * Simple test to verify BrowserStack Playwright WebSocket connection works
+ */
+
+require('dotenv').config();
+const { chromium } = require('playwright');
+
+const username = process.env.BROWSERSTACK_USERNAME || process.env.BROWSER_STACK_USERNAME;
+const accessKey = process.env.BROWSERSTACK_ACCESS_KEY || process.env.BROWSER_STACK_ACCESS_KEY;
+
+if (!username || !accessKey) {
+ console.error('Error: BrowserStack credentials not found in environment');
+ process.exit(1);
+}
+
+const caps = {
+ 'browserstack.username': username,
+ 'browserstack.accessKey': accessKey,
+ 'browser': 'chrome',
+ 'browser_version': 'latest',
+ 'os': 'Windows',
+ 'os_version': '11',
+ 'build': 'Test Connection',
+ 'name': 'Simple Connection Test',
+ 'browserstack.debug': 'true',
+ 'client.playwrightVersion': '1.57.0',
+};
+
+const capsJson = JSON.stringify(caps);
+const encodedCaps = encodeURIComponent(capsJson);
+const wsEndpoint = `wss://cdp.browserstack.com/playwright?caps=${encodedCaps}`;
+
+console.log('Testing BrowserStack connection...');
+console.log('WebSocket URL:', wsEndpoint);
+console.log('\nAttempting to connect...\n');
+
+async function testConnection() {
+ let browser;
+ try {
+ browser = await chromium.connect(wsEndpoint, {
+ timeout: 120000, // 2 minutes
+ });
+
+ console.log('✅ Successfully connected to BrowserStack!');
+
+ const context = await browser.newContext();
+ const page = await context.newPage();
+
+ await page.goto('https://www.example.com', { timeout: 30000 });
+ const title = await page.title();
+
+ console.log(`✅ Successfully loaded page: ${title}`);
+
+ await browser.close();
+ console.log('✅ Connection test completed successfully!');
+
+ } catch (error) {
+ console.error('❌ Connection failed:');
+ console.error(error.message);
+ if (error.stack) {
+ console.error('\nStack trace:');
+ console.error(error.stack);
+ }
+ process.exit(1);
+ }
+}
+
+testConnection();
diff --git a/test-output.log b/test-output.log
new file mode 100644
index 000000000..b620e1fa8
--- /dev/null
+++ b/test-output.log
@@ -0,0 +1,749 @@
+[dotenv@17.2.3] injecting env (4) from .env -- tip: ✅ audit secrets and track compliance: https://dotenvx.com/ops
+Starting WebSocket header injection proxy...
+Proxy ready! (logs: header-proxy.log)
+Starting BrowserStack Local tunnel...
+BrowserStack Local tunnel started successfully
+Local Identifier: 45118
+Waiting for tunnel to establish...
+Tunnel ready!
+
+================================================================================
+Running tests on BrowserStack (Chrome 102, Firefox 91, Edge 84, Safari 13.1, Opera 76)...
+================================================================================
+
+> @optimizely/optimizely-sdk@6.3.0 test-vitest
+> vitest run --config vitest.browser.config.mts
+
+[dotenv@17.2.3] injecting env (0) from .env -- tip: ⚙️ override existing env vars with { override: true }
+Testing types with tsc and vue-tsc is an experimental feature.
+Breaking changes might not follow SemVer, please pin Vitest's version when using it.
+
+ RUN v3.2.4 /Users/raju.ahmed/workspace/javascript-sdk
+
+onInit - Browser test session starting
+[dotenv@17.2.3] injecting env (0) from .env -- tip: 🔑 add access controls to secrets: https://dotenvx.com/ops
+ ✓ TS |chrome| lib/entrypoint.test-d.ts (0 test)
+ ✓ TS |chrome| lib/entrypoint.universal.test-d.ts (0 test)
+[TCP-1] 🔌 New TLS connection established from 127.0.0.1:56619
+[2025-12-15T23:15:51.862Z] [HTTP_REQUEST] {
+ "socketId": 3,
+ "method": "GET",
+ "url": "/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+
+================================================================================
+[VITEST TEST PAGE REQUEST]
+Session ID: 6bb1c56f-6aaa-4e56-9a68-7d8d25f25307
+Socket ID: 3
+Full URL: http://undefined/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307
+Time: 2025-12-15T23:15:51.862Z
+================================================================================
+
+[MIDDLEWARE] GET /__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307 - Host: undefined
+[RESPONSE] GET /__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307 - Status: 200
+[TCP-2] 🔌 New TLS connection established from 127.0.0.1:56618
+[2025-12-15T23:15:51.981Z] [HTTP_REQUEST] {
+ "socketId": 4,
+ "method": "GET",
+ "url": "/@fs/Users/raju.ahmed/workspace/javascript-sdk/node_modules/@vitest/browser/dist/client/error-catcher.js",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] GET /@fs/Users/raju.ahmed/workspace/javascript-sdk/node_modules/@vitest/browser/dist/client/error-catcher.js - Host: undefined
+[2025-12-15T23:15:51.984Z] [HTTP_REQUEST] {
+ "socketId": 5,
+ "method": "GET",
+ "url": "/@fs/Users/raju.ahmed/workspace/javascript-sdk/public/console-capture.js",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] GET /@fs/Users/raju.ahmed/workspace/javascript-sdk/public/console-capture.js - Host: undefined
+[RESPONSE] GET /@fs/Users/raju.ahmed/workspace/javascript-sdk/public/console-capture.js - Status: 200
+[RESPONSE] GET /@fs/Users/raju.ahmed/workspace/javascript-sdk/node_modules/@vitest/browser/dist/client/error-catcher.js - Status: 200
+[2025-12-15T23:15:52.034Z] [HTTP_REQUEST] {
+ "socketId": 6,
+ "method": "GET",
+ "url": "/__vitest_browser__/orchestrator-Bo1OwGWc.js",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] GET /__vitest_browser__/orchestrator-Bo1OwGWc.js - Host: undefined
+[2025-12-15T23:15:52.034Z] [HTTP_REQUEST] {
+ "socketId": 7,
+ "method": "GET",
+ "url": "/__vitest__/assets/index-D_ryMEPs.js",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] GET /__vitest__/assets/index-D_ryMEPs.js - Host: undefined
+[RESPONSE] GET /__vitest__/assets/index-D_ryMEPs.js -> /assets/index-D_ryMEPs.js - Status: 200
+[RESPONSE] GET /__vitest_browser__/orchestrator-Bo1OwGWc.js - Status: 200
+[2025-12-15T23:15:52.055Z] [HTTP_REQUEST] {
+ "socketId": 8,
+ "method": "GET",
+ "url": "/__vitest__/assets/index-X8b7Z_4p.css",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] GET /__vitest__/assets/index-X8b7Z_4p.css - Host: undefined
+[RESPONSE] GET /__vitest__/assets/index-X8b7Z_4p.css -> /assets/index-X8b7Z_4p.css - Status: 200
+[2025-12-15T23:15:52.814Z] [HTTP_REQUEST] {
+ "socketId": 9,
+ "method": "GET",
+ "url": "/node_modules/@vitest/browser/dist/client.js?v=8ffa65d0",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/@fs/Users/raju.ahmed/workspace/javascript-sdk/node_modules/@vitest/browser/dist/client/error-catcher.js",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/@fs/Users/raju.ahmed/workspace/javascript-sdk/node_modules/@vitest/browser/dist/client/error-catcher.js",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] GET /node_modules/@vitest/browser/dist/client.js?v=8ffa65d0 - Host: undefined
+[RESPONSE] GET /node_modules/@vitest/browser/dist/client.js?v=8ffa65d0 - Status: 200
+[2025-12-15T23:15:52.819Z] [HTTP_REQUEST] {
+ "socketId": 10,
+ "method": "GET",
+ "url": "/node_modules/@vitest/browser/dist/client/__vitest_browser__/utils-Owv5OOOf.js?v=8ffa65d0",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_browser__/orchestrator-Bo1OwGWc.js",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_browser__/orchestrator-Bo1OwGWc.js",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] GET /node_modules/@vitest/browser/dist/client/__vitest_browser__/utils-Owv5OOOf.js?v=8ffa65d0 - Host: undefined
+[RESPONSE] GET /node_modules/@vitest/browser/dist/client/__vitest_browser__/utils-Owv5OOOf.js?v=8ffa65d0 - Status: 200
+[2025-12-15T23:15:52.910Z] [HTTP_REQUEST] {
+ "socketId": 11,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [Console Capture] Initialized successfully
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:52.915Z] [HTTP_REQUEST] {
+ "socketId": 12,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [Debug] window.__vitest_browser_runner__: object {"moduleCache":{},"cleanups":[],"config":{"mode":"test","isolate":false,"defines":{},"setupFiles":["/Users/raju.ahmed/workspace/javascript-sdk/vitest.setup.ts"],"allowOnly":true,"testTimeout":60000,"hookTimeout":60000,"clearMocks":false,"mockReset":false,"restoreMocks":false,"unstubEnvs":false,"unstubGlobals":false,"maxConcurrency":5,"pool":"forks","expect":{},"snapshotSerializers":[],"disableConsoleIntercept":false,"root":"/Users/raju.ahmed/workspace/javascript-sdk","name":"chrome","globals":false,"coverage":{"reportsDirectory":"./coverage","provider":"v8","enabled":false,"htmlReporter":{}},"fakeTimers":{"loopLimit":10000,"shouldClearNativeTimers":true},"poolOptions":{"forks":{"singleFork":false,"isolate":false},"threads":{"singleThread":false,"isolate":false},"vmThreads":{"singleThread":false},"vmForks":{"singleFork":false}},"deps":{"web":{"transformAssets":true,"transformCss":true,"transformGlobPattern":[]},"optimizer":{"web":{"enabled":true},"ssr":{"enabled":true}},"moduleDirectories":["/node_modules/"]},"snapshotOptions":{"updateSnapshot":"new","snapshotFormat":{},"expand":false},"sequence":{"hooks":"stack"},"inspector":{"enabled":false,"waitForDebugger":false},"watch":false,"includeTaskLocation":true,"env":{"BASE_URL":"/","MODE":"test","DEV":true,"PROD":false,"VITEST_BROWSER_DEBUG":""},"browser":{"name":"chrome","headless":false,"isolate":true,"fileParallelism":true,"ui":true,"viewport":{"width":414,"height":896},"screenshotFailures":false,"locators":{"testIdAttribute":"data-testid"},"providerOptions":{}}},"viteConfig":{"root":"/Users/raju.ahmed/workspace/javascript-sdk"},"type":"orchestrator","sessionId":"6bb1c56f-6aaa-4e56-9a68-7d8d25f25307","testerId":"none","provider":"webdriverio","method":"orchestrate","providedContext":"[{}]"}
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:52.941Z] [HTTP_REQUEST] {
+ "socketId": 14,
+ "method": "GET",
+ "url": "/@vite/client",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/node_modules/@vitest/browser/dist/client/__vitest_browser__/utils-Owv5OOOf.js?v=8ffa65d0",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/node_modules/@vitest/browser/dist/client/__vitest_browser__/utils-Owv5OOOf.js?v=8ffa65d0",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] GET /@vite/client - Host: undefined
+[RESPONSE] GET /@vite/client - Status: 200
+[TCP-3] 🔌 New TLS connection established from 127.0.0.1:56622
+[2025-12-15T23:15:53.091Z] [HTTP_REQUEST] {
+ "socketId": 15,
+ "method": "GET",
+ "url": "/node_modules/vitest/node_modules/vite/dist/client/env.mjs",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/@vite/client",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/@vite/client",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] GET /node_modules/vitest/node_modules/vite/dist/client/env.mjs - Host: undefined
+[RESPONSE] GET /node_modules/vitest/node_modules/vite/dist/client/env.mjs - Status: 200
+[2025-12-15T23:15:53.158Z] [HTTP_REQUEST] {
+ "socketId": 16,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/?token=snIM5xZTa9O1
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.159Z] [HTTP_REQUEST] {
+ "socketId": 17,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket] Protocols: vite-hmr
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.180Z] [HTTP_REQUEST] {
+ "socketId": 18,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.186Z] [HTTP_REQUEST] {
+ "socketId": 19,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket] Original URL: wss://vite.bs-local.com:63315/?token=snIM5xZTa9O1
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.190Z] [HTTP_REQUEST] {
+ "socketId": 20,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket] Debug URL: wss://vite.bs-local.com:63315/?token=snIM5xZTa9O1&wsDebugId=debug-1765840553260-d5t89
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.196Z] [HTTP_REQUEST] {
+ "socketId": 21,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket] Debug ID: debug-1765840553260-d5t89
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TCP-4] 🔌 New TLS connection established from 127.0.0.1:56623
+[2025-12-15T23:15:53.417Z] [HTTP_REQUEST] {
+ "socketId": 23,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket] Creating WebSocket: wss://vite.bs-local.com:63315/__vitest_api__?token=6188c0af-c54a-4405-992c-876e3146a79f
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.430Z] [HTTP_REQUEST] {
+ "socketId": 24,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket] Protocols: undefined
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.437Z] [HTTP_REQUEST] {
+ "socketId": 25,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket] Current location: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.448Z] [HTTP_REQUEST] {
+ "socketId": 26,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket BROWSER] ==================== VITEST API WEBSOCKET ====================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.461Z] [HTTP_REQUEST] {
+ "socketId": 27,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket BROWSER] URL: wss://vite.bs-local.com:63315/__vitest_api__?token=6188c0af-c54a-4405-992c-876e3146a79f
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.467Z] [HTTP_REQUEST] {
+ "socketId": 28,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket BROWSER] Protocols: undefined
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.473Z] [HTTP_REQUEST] {
+ "socketId": 29,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket BROWSER] Location origin: https://vite.bs-local.com:63315
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.485Z] [HTTP_REQUEST] {
+ "socketId": 30,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket BROWSER] Location protocol: https:
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.496Z] [HTTP_REQUEST] {
+ "socketId": 31,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket BROWSER] Location host: vite.bs-local.com:63315
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.507Z] [HTTP_REQUEST] {
+ "socketId": 32,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket BROWSER] Location hostname: vite.bs-local.com
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.508Z] [HTTP_REQUEST] {
+ "socketId": 33,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket BROWSER] Location port: 63315
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.511Z] [HTTP_REQUEST] {
+ "socketId": 34,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket BROWSER] Location href: https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.520Z] [HTTP_REQUEST] {
+ "socketId": 35,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket BROWSER] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.529Z] [HTTP_REQUEST] {
+ "socketId": 36,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket BROWSER] =================================================================
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.541Z] [HTTP_REQUEST] {
+ "socketId": 37,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket] Original URL: wss://vite.bs-local.com:63315/__vitest_api__?token=6188c0af-c54a-4405-992c-876e3146a79f
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.550Z] [HTTP_REQUEST] {
+ "socketId": 38,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket] Debug URL: wss://vite.bs-local.com:63315/__vitest_api__?token=6188c0af-c54a-4405-992c-876e3146a79f&wsDebugId=debug-1765840553616-a13sh
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[2025-12-15T23:15:53.561Z] [HTTP_REQUEST] {
+ "socketId": 39,
+ "method": "POST",
+ "url": "/__vitest_console__",
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "origin": "https://vite.bs-local.com:63315",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] POST /__vitest_console__ - Host: undefined
+
+[BROWSER LOG] [WebSocket] Debug ID: debug-1765840553616-a13sh
+
+[RESPONSE] POST /__vitest_console__ - Status: 200
+[TCP-5] 🔌 New TLS connection established from 127.0.0.1:56624
+[2025-12-15T23:15:54.116Z] [HTTP_REQUEST] {
+ "socketId": 41,
+ "method": "GET",
+ "url": "/__vitest__/favicon.svg",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] GET /__vitest__/favicon.svg - Host: undefined
+[RESPONSE] GET /__vitest__/favicon.svg -> /favicon.svg - Status: 200
+[2025-12-15T23:15:54.865Z] [HTTP_REQUEST] {
+ "socketId": 42,
+ "method": "GET",
+ "url": "/__vitest_test__/favicon.ico",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] GET /__vitest_test__/favicon.ico - Host: undefined
+[RESPONSE] GET /__vitest_test__/favicon.ico -> /index.html - Status: 404
+[2025-12-15T23:15:54.942Z] [HTTP_REQUEST] {
+ "socketId": 43,
+ "method": "GET",
+ "url": "/__vitest_test__/favicon.svg",
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
+ "remoteAddress": "127.0.0.1",
+ "remotePort": 56619,
+ "headers": {
+ "referer": "https://vite.bs-local.com:63315/__vitest_test__/?sessionId=6bb1c56f-6aaa-4e56-9a68-7d8d25f25307",
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
+ }
+}
+[MIDDLEWARE] GET /__vitest_test__/favicon.svg - Host: undefined
+[RESPONSE] GET /__vitest_test__/favicon.svg -> /index.html - Status: 404
diff --git a/test-safari-ws.js b/test-safari-ws.js
new file mode 100644
index 000000000..db83c329d
--- /dev/null
+++ b/test-safari-ws.js
@@ -0,0 +1,98 @@
+#!/usr/bin/env node
+
+/**
+ * Simple test to verify Safari WebSocket connectivity through BrowserStack
+ * This helps isolate whether the issue is with Vitest or Safari automation in general
+ */
+
+const { remote } = require('webdriverio');
+require('dotenv').config();
+
+async function testSafariWebSocket() {
+ const capabilities = {
+ browserName: 'safari',
+ browserVersion: '14',
+ acceptInsecureCerts: true,
+ 'bstack:options': {
+ os: 'OS X',
+ osVersion: 'Big Sur',
+ local: true,
+ wsLocalSupport: true,
+ debug: true,
+ consoleLogs: 'verbose',
+ },
+ 'webkit:WebRTC': {
+ DisableICECandidateFiltering: true,
+ },
+ 'safari:automaticInspection': false,
+ 'safari:automaticProfiling': false,
+ webSocketUrl: true,
+ };
+
+ console.log('Connecting to BrowserStack Safari...');
+
+ const browser = await remote({
+ user: process.env.BROWSERSTACK_USERNAME,
+ key: process.env.BROWSERSTACK_ACCESS_KEY,
+ capabilities,
+ logLevel: 'trace',
+ });
+
+ try {
+ console.log('Navigating to simple WebSocket test page...');
+
+ // Navigate to a simple test page
+ await browser.url('http://bs-local.com:5173');
+
+ console.log('Page loaded, waiting 5 seconds...');
+ await new Promise(resolve => setTimeout(resolve, 5000));
+
+ console.log('Checking if WebSocket is available...');
+ const result = await browser.execute(() => {
+ return {
+ hasWebSocket: typeof WebSocket !== 'undefined',
+ userAgent: navigator.userAgent,
+ location: window.location.href,
+ };
+ });
+
+ console.log('WebSocket check result:', result);
+
+ console.log('Attempting to create WebSocket connection...');
+ const wsResult = await browser.execute(() => {
+ try {
+ const ws = new WebSocket('ws://bs-local.com:5173');
+
+ return new Promise((resolve) => {
+ const timeout = setTimeout(() => {
+ resolve({ status: 'timeout', readyState: ws.readyState });
+ }, 5000);
+
+ ws.onopen = () => {
+ clearTimeout(timeout);
+ resolve({ status: 'connected', readyState: ws.readyState });
+ ws.close();
+ };
+
+ ws.onerror = (error) => {
+ clearTimeout(timeout);
+ resolve({ status: 'error', readyState: ws.readyState, error: error.toString() });
+ };
+ });
+ } catch (error) {
+ return { status: 'exception', error: error.toString() };
+ }
+ });
+
+ console.log('WebSocket connection result:', wsResult);
+
+ } finally {
+ console.log('Closing browser session...');
+ await browser.deleteSession();
+ }
+}
+
+testSafariWebSocket().catch(error => {
+ console.error('Test failed:', error);
+ process.exit(1);
+});
diff --git a/tls-patch-preload.js b/tls-patch-preload.js
new file mode 100644
index 000000000..d9cc76e4c
--- /dev/null
+++ b/tls-patch-preload.js
@@ -0,0 +1,504 @@
+/**
+ * TLS Module Preload Patch
+ *
+ * This script MUST be loaded via Node's --require flag BEFORE any other modules load.
+ * It patches the TLS module to intercept WebSocket upgrade requests and inject missing headers.
+ *
+ * Usage: node --require ./tls-patch-preload.js
+ */
+
+const Module = require('module');
+
+let connectionCounter = 0;
+
+// Function to patch TLS module
+function patchTLSModule(module, source) {
+ if (!module.TLSSocket || module.TLSSocket.__tlsPatched) {
+ return false;
+ }
+
+ console.log(`[TLS-PRELOAD] 🎯 Patching TLSSocket from ${source}`);
+
+ const OriginalTLSSocket = module.TLSSocket;
+
+ // Replace TLSSocket constructor
+ module.TLSSocket = function (socket, options) {
+ const connId = ++connectionCounter;
+ console.log(`[TLS-PRELOAD-${connId}] 🔐 TLSSocket created`);
+
+ // Call original constructor
+ const instance = new OriginalTLSSocket(socket, options);
+
+ // Mark this instance as our patched socket
+ instance.__tlsPatched = true;
+ instance.__tlsPatchedConnId = connId;
+
+ let headerBuffer = Buffer.alloc(0);
+ let headersProcessed = false;
+
+ // Wait for TLS handshake to complete
+ instance.once('secure', () => {
+ console.log(`[TLS-PRELOAD-${connId}] 🔒 Secure connection established`);
+
+ if (!instance._handle || !instance._handle.onread) {
+ console.log(`[TLS-PRELOAD-${connId}] ⚠️ No _handle.onread available`);
+ return;
+ }
+
+ const originalOnread = instance._handle.onread;
+
+ // Intercept raw data BEFORE HTTP parser processes it
+ instance._handle.onread = function (nread, buffer) {
+ if (nread > 0 && buffer && !headersProcessed) {
+ console.log(`[TLS-PRELOAD-${connId}] 📦 Intercepted ${nread} bytes`);
+
+ const chunk = buffer.slice(0, nread);
+ headerBuffer = Buffer.concat([headerBuffer, chunk]);
+ const text = headerBuffer.toString('utf8');
+ const headerEndIndex = text.indexOf('\r\n\r\n');
+
+ if (headerEndIndex !== -1) {
+ headersProcessed = true;
+ console.log(`[TLS-PRELOAD-${connId}] ✅ Complete HTTP headers received`);
+
+ const hasWebSocketKey = text.toLowerCase().includes('sec-websocket-key');
+ const hasUpgrade = /upgrade:\s*websocket/i.test(text);
+ const hasConnection = /connection:.*upgrade/i.test(text);
+
+ // Inject missing headers for Safari WebSocket requests
+ // Universal detection: any request with sec-websocket-key but missing upgrade headers
+ if (hasWebSocketKey && (!hasUpgrade || !hasConnection)) {
+ console.log('\n' + '='.repeat(80));
+ console.log(`[TLS-PRELOAD-${connId}] 🎯 WEBSOCKET REQUEST DETECTED (missing headers)`);
+ console.log(`[TLS-PRELOAD-${connId}] Has Sec-WebSocket-Key: ${hasWebSocketKey}`);
+ console.log(`[TLS-PRELOAD-${connId}] Has Upgrade header: ${hasUpgrade}`);
+ console.log(`[TLS-PRELOAD-${connId}] Has Connection header: ${hasConnection}`);
+ console.log(`[TLS-PRELOAD-${connId}] Request line: ${text.split('\r\n')[0]}`);
+ console.log('='.repeat(80) + '\n');
+ console.log(`[TLS-PRELOAD-${connId}] 🔧 INJECTING MISSING WEBSOCKET HEADERS!`);
+
+ const lines = text.substring(0, headerEndIndex).split('\r\n');
+ const requestLine = lines[0];
+ const headers = new Map();
+
+ // Parse existing headers
+ for (let i = 1; i < lines.length; i++) {
+ const colonIdx = lines[i].indexOf(':');
+ if (colonIdx > 0) {
+ const key = lines[i].substring(0, colonIdx).toLowerCase();
+ headers.set(key, lines[i]);
+ }
+ }
+
+ // Inject missing headers
+ if (!hasUpgrade) {
+ headers.set('upgrade', 'Upgrade: websocket');
+ console.log(`[TLS-PRELOAD-${connId}] ✅ Injected: Upgrade: websocket`);
+ }
+ if (!hasConnection) {
+ headers.set('connection', 'Connection: Upgrade');
+ console.log(`[TLS-PRELOAD-${connId}] ✅ Injected: Connection: Upgrade`);
+ }
+
+ // Reconstruct HTTP request with injected headers
+ const newLines = [requestLine, ...Array.from(headers.values()), '', ''];
+ const body = text.substring(headerEndIndex + 4);
+ const modifiedRequest = Buffer.concat([
+ Buffer.from(newLines.join('\r\n'), 'utf8'),
+ Buffer.from(body, 'utf8')
+ ]);
+
+ // Replace buffer contents with modified request
+ modifiedRequest.copy(buffer);
+ console.log(`[TLS-PRELOAD-${connId}] ✅ Headers injected! Forwarding ${modifiedRequest.length} bytes`);
+ return originalOnread.call(this, modifiedRequest.length, buffer);
+ }
+ }
+ }
+
+ // Pass through unmodified
+ return originalOnread.call(this, nread, buffer);
+ };
+ });
+
+ return instance;
+ };
+
+ // Copy prototype and static properties to maintain compatibility
+ Object.setPrototypeOf(module.TLSSocket, OriginalTLSSocket);
+ Object.setPrototypeOf(module.TLSSocket.prototype, OriginalTLSSocket.prototype);
+ module.TLSSocket.__tlsPatched = true;
+
+ // ALSO patch the prototype to intercept _handle being set
+ // This catches TLSSockets created internally by C++ code
+ const originalHandleDescriptor = Object.getOwnPropertyDescriptor(OriginalTLSSocket.prototype, '_handle');
+
+ if (originalHandleDescriptor || true) { // Always try to patch
+ console.log(`[TLS-PRELOAD] 🎯 Patching TLSSocket.prototype._handle property`);
+
+ let _internalHandle = null;
+
+ Object.defineProperty(module.TLSSocket.prototype, '_handle', {
+ get() {
+ return _internalHandle;
+ },
+ set(newHandle) {
+ const connId = ++connectionCounter;
+ console.log(`[TLS-PRELOAD-${connId}] 🔌 _handle being SET on TLSSocket!`);
+
+ _internalHandle = newHandle;
+
+ if (newHandle && newHandle.onread && typeof newHandle.onread === 'function') {
+ console.log(`[TLS-PRELOAD-${connId}] ⚡ onread EXISTS in _handle setter! Wrapping it NOW...`);
+
+ const originalOnread = newHandle.onread;
+ let headerBuffer = Buffer.alloc(0);
+ let headersProcessed = false;
+
+ newHandle.onread = function (...args) {
+ const nread = args[0];
+ const buffer = args[1];
+ console.log(`[TLS-PRELOAD-${connId}] 🔔 PROTOTYPE-PATCHED onread! nread=${nread}, bufferLen=${buffer ? buffer.length : 'null'}`);
+
+ if (nread > 0 && buffer && !headersProcessed) {
+ console.log(`[TLS-PRELOAD-${connId}] 📊 GOT REAL DATA! ${nread} bytes`);
+ // TODO: Add header injection logic here
+ }
+
+ return originalOnread.apply(this, args);
+ };
+
+ console.log(`[TLS-PRELOAD-${connId}] ✅ onread wrapped in _handle setter`);
+ }
+ },
+ configurable: true,
+ enumerable: originalHandleDescriptor?.enumerable ?? false
+ });
+ }
+
+ console.log(`[TLS-PRELOAD] ✅ TLSSocket patched successfully`);
+ return true;
+}
+
+// Patch any already-cached tls modules
+try {
+ const tlsModule = require('tls');
+ if (patchTLSModule(tlsModule, 'require(tls)')) {
+ console.log('[TLS-PRELOAD] Patched already-loaded tls module');
+ }
+} catch (e) {
+ // tls not loaded yet
+}
+
+// Also hook Module.prototype.require to catch future loads
+const originalRequire = Module.prototype.require;
+Module.prototype.require = function (id) {
+ const module = originalRequire.apply(this, arguments);
+
+ // Log HTTPS/TLS module loads
+ if (id === 'https' || id === 'http2' || id === 'tls' || id === '_tls_wrap' || id === 'net') {
+ console.log(`[TLS-PRELOAD] Module loaded: ${id}`);
+ }
+
+ if (id === 'tls' || id === '_tls_wrap') {
+ patchTLSModule(module, `require(${id})`);
+ }
+
+ // Patch https module
+ if (id === 'https') {
+ // Patch https.createServer
+ if (module.createServer) {
+ const originalCreateServer = module.createServer;
+ module.createServer = function(...args) {
+ console.log('[TLS-PRELOAD] 🎯 https.createServer() called!');
+ const server = originalCreateServer.apply(this, args);
+ console.log('[TLS-PRELOAD] HTTPS server created');
+ return server;
+ };
+ console.log('[TLS-PRELOAD] Patched https.createServer');
+ }
+
+ // Patch https.Server constructor
+ if (module.Server) {
+ const OriginalServer = module.Server;
+ module.Server = function(...args) {
+ console.log('[TLS-PRELOAD] 🎯 new https.Server() called!');
+ const server = new OriginalServer(...args);
+ console.log('[TLS-PRELOAD] HTTPS Server instance created');
+ return server;
+ };
+ Object.setPrototypeOf(module.Server, OriginalServer);
+ Object.setPrototypeOf(module.Server.prototype, OriginalServer.prototype);
+ console.log('[TLS-PRELOAD] Patched https.Server constructor');
+ }
+ }
+
+ // Patch tls.createServer
+ if (id === 'tls' && module.createServer) {
+ const originalTLSCreateServer = module.createServer;
+ module.createServer = function(...args) {
+ console.log('[TLS-PRELOAD] 🎯 tls.createServer() called!');
+ const server = originalTLSCreateServer.apply(this, args);
+ console.log('[TLS-PRELOAD] TLS server created');
+ return server;
+ };
+ console.log('[TLS-PRELOAD] Patched tls.createServer');
+ }
+
+ // Patch tls.Server constructor
+ if (id === 'tls' && module.Server) {
+ const OriginalTLSServer = module.Server;
+ module.Server = function(...args) {
+ console.log('[TLS-PRELOAD] 🎯 new tls.Server() called!');
+ const server = new OriginalTLSServer(...args);
+ console.log('[TLS-PRELOAD] TLS Server instance created, hooking secureConnection event');
+
+ // Hook into secureConnection event to intercept TLS sockets
+ server.on('secureConnection', (tlsSocket) => {
+ const connId = ++connectionCounter;
+ console.log(`[TLS-PRELOAD-${connId}] 🔐 Secure connection established`);
+
+ // Intercept socket.write to log outgoing data (server responses)
+ const originalWrite = tlsSocket.write.bind(tlsSocket);
+ tlsSocket.write = function(data, ...args) {
+ const dataStr = data.toString('utf8', 0, Math.min(data.length, 500));
+ console.log(`[TLS-PRELOAD-${connId}] 📤 OUTGOING DATA (${data.length} bytes):`);
+
+ // Check if this looks like a WebSocket upgrade response
+ if (dataStr.includes('HTTP/1.1 101') || dataStr.includes('Upgrade: websocket')) {
+ console.log(`[TLS-PRELOAD-${connId}] 🎯 WEBSOCKET UPGRADE RESPONSE DETECTED!`);
+ console.log(`[TLS-PRELOAD-${connId}] Response:\n${dataStr}`);
+
+ // Parse response headers
+ const lines = dataStr.split('\r\n');
+ console.log(`[TLS-PRELOAD-${connId}] Status line: ${lines[0]}`);
+ console.log(`[TLS-PRELOAD-${connId}] Response headers:`);
+ for (let i = 1; i < lines.length && lines[i]; i++) {
+ console.log(`[TLS-PRELOAD-${connId}] ${lines[i]}`);
+ }
+ } else if (dataStr.includes('HTTP/')) {
+ // Regular HTTP response - log all responses with headers
+ const lines = dataStr.split('\r\n');
+ const firstLine = lines[0];
+ console.log(`[TLS-PRELOAD-${connId}] HTTP Response: ${firstLine}`);
+
+ // Log response headers
+ console.log(`[TLS-PRELOAD-${connId}] Response headers:`);
+ for (let i = 1; i < lines.length && lines[i]; i++) {
+ console.log(`[TLS-PRELOAD-${connId}] ${lines[i]}`);
+ }
+
+ // Log body preview if response is small
+ const headerEndIndex = dataStr.indexOf('\r\n\r\n');
+ if (headerEndIndex !== -1 && dataStr.length < 500) {
+ const body = dataStr.substring(headerEndIndex + 4);
+ if (body) {
+ console.log(`[TLS-PRELOAD-${connId}] Body preview: ${body.substring(0, 200)}`);
+ }
+ }
+ } else if (Buffer.isBuffer(data) && data.length >= 2) {
+ // WebSocket frame detection
+ const firstByte = data[0];
+ const isFin = (firstByte & 0x80) !== 0;
+ const opcode = firstByte & 0x0F;
+ const opcodes = {
+ 0x0: 'Continuation',
+ 0x1: 'Text',
+ 0x2: 'Binary',
+ 0x8: 'Close',
+ 0x9: 'Ping',
+ 0xA: 'Pong'
+ };
+
+ if (opcode === 0x8) {
+ // WebSocket close frame
+ console.log(`[TLS-PRELOAD-${connId}] 🔴 WEBSOCKET CLOSE FRAME SENT!`);
+ console.log(`[TLS-PRELOAD-${connId}] FIN: ${isFin}`);
+ if (data.length >= 4) {
+ const closeCode = data.readUInt16BE(2);
+ const reason = data.length > 4 ? data.toString('utf8', 4) : '';
+ console.log(`[TLS-PRELOAD-${connId}] Close Code: ${closeCode}`);
+ console.log(`[TLS-PRELOAD-${connId}] Close Reason: ${reason || '(none)'}`);
+ }
+ } else if (opcodes[opcode]) {
+ console.log(`[TLS-PRELOAD-${connId}] WebSocket ${opcodes[opcode]} frame (FIN: ${isFin})`);
+ }
+
+ // Binary data (WebSocket frames, etc.)
+ console.log(`[TLS-PRELOAD-${connId}] Binary data (first 100 bytes hex): ${data.toString('hex', 0, Math.min(100, data.length))}`);
+ } else {
+ console.log(`[TLS-PRELOAD-${connId}] Data (first 100 chars): ${dataStr.substring(0, 100)}`);
+ }
+
+ return originalWrite(data, ...args);
+ };
+
+ // Intercept socket.end to log connection termination
+ const originalEnd = tlsSocket.end.bind(tlsSocket);
+ tlsSocket.end = function(...args) {
+ console.log(`[TLS-PRELOAD-${connId}] 🔚 Socket.end() called - connection terminating`);
+ console.log(`[TLS-PRELOAD-${connId}] Arguments passed to .end():`, args.length);
+ if (args.length > 0) {
+ args.forEach((arg, i) => {
+ console.log(`[TLS-PRELOAD-${connId}] Arg ${i}:`, typeof arg, arg);
+ });
+ }
+
+ // Capture stack trace to see WHERE .end() was called from
+ const stack = new Error().stack;
+ console.log(`[TLS-PRELOAD-${connId}] Call stack:\n${stack}`);
+
+ return originalEnd(...args);
+ };
+
+ // Intercept socket.destroy to log forced termination
+ const originalDestroy = tlsSocket.destroy.bind(tlsSocket);
+ tlsSocket.destroy = function(error) {
+ console.log(`[TLS-PRELOAD-${connId}] 💥 Socket.destroy() called - connection force closed`);
+ if (error) {
+ console.log(`[TLS-PRELOAD-${connId}] Destroy error:`, error.message);
+ }
+
+ // Capture stack trace to see WHERE .destroy() was called from
+ const stack = new Error().stack;
+ console.log(`[TLS-PRELOAD-${connId}] Call stack:\n${stack}`);
+
+ return originalDestroy(error);
+ };
+
+ // Check what event listeners are already registered
+ const dataListeners = tlsSocket.listeners('data');
+ console.log(`[TLS-PRELOAD-${connId}] 📋 Found ${dataListeners.length} 'data' listeners`);
+
+ if (dataListeners.length > 0) {
+ console.log(`[TLS-PRELOAD-${connId}] 🎯 Wrapping existing 'data' listener(s)!`);
+
+ // State machine: "readingHeaders" -> "passingThrough"
+ let state = 'readingHeaders';
+ let headerBuffer = Buffer.alloc(0);
+ let requestCount = 0;
+
+ // Remove all existing 'data' listeners
+ tlsSocket.removeAllListeners('data');
+
+ // Add our interceptor
+ tlsSocket.on('data', (chunk) => {
+ console.log(`[TLS-PRELOAD-${connId}] 📦 INTERCEPTED DATA! ${chunk.length} bytes (state: ${state})`);
+
+ if (state === 'passingThrough') {
+ // Just forward all data directly to original handlers
+ console.log(`[TLS-PRELOAD-${connId}] 🔄 Passing through ${chunk.length} bytes`);
+ for (const originalListener of dataListeners) {
+ originalListener.call(tlsSocket, chunk);
+ }
+ return;
+ }
+
+ // State: readingHeaders - accumulate until we find header end marker
+ headerBuffer = Buffer.concat([headerBuffer, chunk]);
+ const text = headerBuffer.toString('utf8');
+ const headerEndIndex = text.indexOf('\r\n\r\n');
+
+ if (headerEndIndex !== -1) {
+ // Found end of headers!
+ requestCount++;
+ console.log(`[TLS-PRELOAD-${connId}] ✅ Complete HTTP headers received (request #${requestCount})`);
+
+ const hasWebSocketKey = text.toLowerCase().includes('sec-websocket-key');
+ const hasUpgrade = /upgrade:\s*websocket/i.test(text);
+ const hasConnection = /connection:.*upgrade/i.test(text);
+ const isWebSocketUpgrade = hasWebSocketKey || hasUpgrade;
+
+ // Log all headers for WebSocket requests
+ if (isWebSocketUpgrade) {
+ console.log('\n' + '='.repeat(80));
+ console.log(`[TLS-PRELOAD-${connId}] 🎯 INCOMING WEBSOCKET REQUEST HEADERS`);
+ console.log(`[TLS-PRELOAD-${connId}] Request line: ${text.split('\r\n')[0]}`);
+
+ const lines = text.substring(0, headerEndIndex).split('\r\n');
+ console.log(`[TLS-PRELOAD-${connId}] All request headers:`);
+ for (let i = 1; i < lines.length; i++) {
+ if (lines[i]) {
+ console.log(`[TLS-PRELOAD-${connId}] ${lines[i]}`);
+ }
+ }
+
+ console.log(`[TLS-PRELOAD-${connId}] Has Sec-WebSocket-Key: ${hasWebSocketKey}`);
+ console.log(`[TLS-PRELOAD-${connId}] Has Upgrade header: ${hasUpgrade}`);
+ console.log(`[TLS-PRELOAD-${connId}] Has Connection header: ${hasConnection}`);
+ console.log('='.repeat(80) + '\n');
+ }
+
+ // If request has Sec-WebSocket-Key but is missing Upgrade/Connection headers, inject them
+ if (hasWebSocketKey && (!hasUpgrade || !hasConnection)) {
+ console.log('\n' + '='.repeat(80));
+ console.log(`[TLS-PRELOAD-${connId}] 🔧 INJECTING MISSING WEBSOCKET HEADERS!`);
+ console.log('='.repeat(80) + '\n');
+
+ // Inject missing headers for Safari WebSocket requests
+ console.log(`[TLS-PRELOAD-${connId}] 🔧 INJECTING MISSING WEBSOCKET HEADERS!`);
+
+ const lines = text.substring(0, headerEndIndex).split('\r\n');
+ const requestLine = lines[0];
+ const headers = new Map();
+
+ // Parse existing headers (preserving order for non-duplicate keys)
+ for (let i = 1; i < lines.length; i++) {
+ const colonIdx = lines[i].indexOf(':');
+ if (colonIdx > 0) {
+ const key = lines[i].substring(0, colonIdx).toLowerCase();
+ headers.set(key, lines[i]);
+ }
+ }
+
+ // Inject missing headers
+ if (!hasUpgrade) {
+ headers.set('upgrade', 'Upgrade: websocket');
+ console.log(`[TLS-PRELOAD-${connId}] ✅ Injected: Upgrade: websocket`);
+ }
+ if (!hasConnection) {
+ headers.set('connection', 'Connection: Upgrade');
+ console.log(`[TLS-PRELOAD-${connId}] ✅ Injected: Connection: Upgrade`);
+ }
+
+ // Reconstruct HTTP request with injected headers
+ const newLines = [requestLine, ...Array.from(headers.values()), '', ''];
+ const modifiedRequest = newLines.join('\r\n');
+
+ console.log(`[TLS-PRELOAD-${connId}] ✅ Headers injected! Forwarding modified headers`);
+
+ // Replace header buffer with modified version (just the headers part)
+ headerBuffer = Buffer.from(modifiedRequest, 'utf8');
+ }
+
+ // Forward the accumulated header buffer (possibly modified) to original handlers
+ console.log(`[TLS-PRELOAD-${connId}] 📨 Forwarding ${headerBuffer.length} bytes to original handlers`);
+ for (const originalListener of dataListeners) {
+ originalListener.call(tlsSocket, headerBuffer);
+ }
+
+ // Switch to passingThrough state
+ state = 'passingThrough';
+ console.log(`[TLS-PRELOAD-${connId}] ✅ Switched to passingThrough state - will forward all subsequent data`);
+
+ // Reset header buffer for next request (Keep-Alive)
+ headerBuffer = Buffer.alloc(0);
+ }
+ // else: Still accumulating headers, keep buffering
+ });
+
+ console.log(`[TLS-PRELOAD-${connId}] ✅ Data event interceptor installed`);
+ }
+ });
+
+ return server;
+ };
+ Object.setPrototypeOf(module.Server, OriginalTLSServer);
+ Object.setPrototypeOf(module.Server.prototype, OriginalTLSServer.prototype);
+ console.log('[TLS-PRELOAD] Patched tls.Server constructor');
+ }
+
+ return module;
+};
+
+console.log('🎯 TLS preload script loaded - Module.require patched');
diff --git a/tsconfig.spec.json b/tsconfig.spec.json
index f61c713df..e31a4bf98 100644
--- a/tsconfig.spec.json
+++ b/tsconfig.spec.json
@@ -7,7 +7,6 @@
"typeRoots": [
"./node_modules/@types"
],
- "target": "ESNext"
},
"exclude": [
"./dist",
diff --git a/vitest.browser.config.mts b/vitest.browser.config.mts
new file mode 100644
index 000000000..e33adf4d2
--- /dev/null
+++ b/vitest.browser.config.mts
@@ -0,0 +1,703 @@
+/**
+ * Copyright 2024-2025, Optimizely
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+///
+// NOTE: TLS patching happens in tls-patch-preload.js (loaded via NODE_OPTIONS=--require)
+
+import path from 'path';
+import fs from 'fs';
+import { defineConfig } from 'vitest/config'
+import type { BrowserInstanceOption } from 'vitest/node'
+import { transform } from 'esbuild'
+import dotenv from 'dotenv';
+import tsconfigPaths from 'vite-tsconfig-paths'
+import { Duplex } from 'stream'
+import net from 'net'
+
+// Load environment variables from .env file
+dotenv.config();
+
+// Check if we should use local browser instead of BrowserStack
+const useLocalBrowser = process.env.USE_LOCAL_BROWSER === 'true';
+
+// Define browser configuration types
+interface BrowserConfig {
+ name: string;
+ browserName: string;
+ browserVersion: string;
+ os: string;
+ osVersion: string;
+}
+
+// Define browser configurations
+// Testing minimum supported versions: Edge 84+, Firefox 91+, Safari 15+, Chrome 102+, Opera 76+
+// Note: Safari 15+ required for proper ES6 module circular dependency handling
+const allBrowserConfigs: BrowserConfig[] = [
+ { name: 'chrome', browserName: 'chrome', browserVersion: '102', os: 'Windows', osVersion: '11' },
+ // { name: 'firefox', browserName: 'firefox', browserVersion: '91', os: 'Windows', osVersion: '11' },
+ // { name: 'edge', browserName: 'edge', browserVersion: '84', os: 'Windows', osVersion: '10' },
+ // { name: 'safari', browserName: 'safari', browserVersion: '15', os: 'OS X', osVersion: 'Monterey' },
+ // { name: 'chrome', browserName: 'chrome', browserVersion: '102', os: 'OS X', osVersion: 'Big Sur' },
+ // { name: 'opera', browserName: 'opera', browserVersion: '76', os: 'Windows', osVersion: '11' },
+];
+
+// Filter browsers based on VITEST_BROWSER environment variable
+const browserFilter = process.env.VITEST_BROWSER;
+const browserConfigs = browserFilter
+ ? allBrowserConfigs.filter(config => config.name === browserFilter.toLowerCase())
+ : allBrowserConfigs;
+
+// Local browser capabilities type
+interface LocalCapabilities {
+ browserName: string;
+ 'goog:chromeOptions'?: {
+ args: string[];
+ };
+ 'webkit:WebRTC'?: {
+ DisableICECandidateFiltering?: boolean;
+ };
+}
+
+// Build local browser capabilities
+function buildLocalCapabilities(browserName: string): LocalCapabilities {
+ const baseCapabilities: LocalCapabilities = {
+ browserName,
+ };
+
+ // Add browser-specific options
+ if (browserName === 'chrome' || browserName === 'edge') {
+ baseCapabilities['goog:chromeOptions'] = {
+ args: [
+ '--disable-blink-features=AutomationControlled',
+ '--disable-dev-shm-usage',
+ '--no-sandbox',
+ ],
+ };
+ } else if (browserName === 'safari') {
+ // Safari uses safaridriver and doesn't need special options for basic testing
+ // safaridriver is built into macOS and starts automatically
+ baseCapabilities['webkit:WebRTC'] = {
+ DisableICECandidateFiltering: true,
+ };
+ }
+
+ return baseCapabilities;
+}
+
+// Build BrowserStack capabilities
+function buildBrowserStackCapabilities(config: typeof allBrowserConfigs[0]) {
+ const capabilities: any = {
+ browserName: config.browserName,
+ // Global W3C capability to accept insecure certificates
+ acceptInsecureCerts: true,
+ 'bstack:options': {
+ os: config.os,
+ osVersion: config.osVersion,
+ browserVersion: config.browserVersion,
+ buildName: process.env.VITEST_BUILD_NAME || 'Vitest Browser Tests',
+ projectName: 'Optimizely JavaScript SDK',
+ sessionName: `${config.browserName} ${config.browserVersion} on ${config.os} ${config.osVersion}`,
+ local: process.env.BROWSERSTACK_LOCAL === 'true' ? true : false,
+ // Enable WebSocket support for BrowserStack Local tunnel
+ wsLocalSupport: true,
+ // disableCorsRestrictions: true,
+ debug: true,
+ idleTimeout: 300, // 5 minutes idle timeout
+ // acceptInsecureCerts: true,
+ networkLogs: true,
+ consoleLogs: 'verbose',
+ video: true,
+ // Enable all possible debug options
+ seleniumLogs: true,
+ appiumLogs: true,
+ seleniumVersion: '3.14.0',
+ },
+ };
+
+ // Add browser-specific options
+ if (config.browserName === 'chrome' || config.browserName === 'edge') {
+ capabilities['goog:chromeOptions'] = {
+ args: [
+ '--disable-blink-features=AutomationControlled',
+ '--disable-dev-shm-usage',
+ '--no-sandbox',
+ ],
+ };
+ } else if (config.browserName === 'safari') {
+ // Safari-specific W3C capabilities
+ capabilities['webkit:WebRTC'] = {
+ DisableICECandidateFiltering: true,
+ };
+
+ // Safari automation capabilities
+ capabilities['safari:automaticInspection'] = false;
+ capabilities['safari:automaticProfiling'] = false;
+
+ // Safari-specific options for debugging
+ capabilities['safari:diagnose'] = true;
+
+ // Enable WebDriver BiDi for better WebSocket support
+ capabilities['webSocketUrl'] = true;
+ }
+
+ return capabilities;
+}
+
+// Build browser instance configuration
+function buildBrowserInstances(): BrowserInstanceOption[] {
+ if (useLocalBrowser) {
+ // Local browser configurations - all browsers
+ return browserConfigs.map((config: BrowserConfig): BrowserInstanceOption => ({
+ browser: config.browserName,
+ capabilities: buildLocalCapabilities(config.browserName),
+ logLevel: 'error' as const,
+ }));
+ } else {
+ // BrowserStack remote configurations - all browsers
+ const username = process.env.BROWSERSTACK_USERNAME || process.env.BROWSER_STACK_USERNAME;
+ const key = process.env.BROWSERSTACK_ACCESS_KEY || process.env.BROWSER_STACK_ACCESS_KEY;
+
+ return browserConfigs.map((config: BrowserConfig): BrowserInstanceOption => ({
+ browser: config.browserName,
+ user: username,
+ key: key,
+ capabilities: buildBrowserStackCapabilities(config),
+ // WebDriverIO options to handle session cleanup and stability
+ connectionRetryTimeout: 60000, // 1 minute
+ connectionRetryCount: 3,
+ waitforTimeout: 60000, // 1 minute
+ logLevel: 'error' as const,
+ }));
+ }
+}
+
+export default defineConfig({
+ plugins: [
+ // forceTranspilePlugin(),
+ // tsconfigPaths({
+ // projects: ['./tsconfig.spec.json'],
+ // }),
+ // {
+ // name: 'patch-vitest-websocket',
+ // enforce: 'pre',
+ // transform(code: string, id: string) {
+ // // Target Vite client file specifically - this is where WebSocket is created
+ // if (id.includes('node_modules/vitest/node_modules/vite/dist/client/client.mjs')) {
+ // console.log(`[WS Patch] Patching Vite client file: ${id.replace(process.cwd(), '.')}`);
+ //
+ // // Simple regex replacement: replace 'localhost' with 'bs-local.com' in WebSocket URLs
+ // // This is safer than monkey-patching the constructor
+ // const patchedCode = code.replace(
+ // /new WebSocket\(`\$\{socketProtocol\}:\/\/\$\{socketHost\}/g,
+ // 'new WebSocket(`${socketProtocol}://${socketHost.replace(/localhost/g, "bs-local.com")}'
+ // );
+ //
+ // if (patchedCode !== code) {
+ // console.log('[WS Patch] Successfully patched WebSocket URL construction');
+ // return {
+ // code: patchedCode,
+ // map: null,
+ // };
+ // }
+ // }
+ // return null;
+ // },
+ // },
+ // TLS module patched at top of file - no plugin needed
+ {
+ name: 'vitest-api-host-fix',
+ enforce: 'pre', // Run before Vitest plugin in plugin order
+ configureServer(server) {
+ // Handle HTTP requests to /__vitest_api__ (Safari makes these before WebSocket upgrade)
+ // Return 204 No Content to prevent 404 errors
+ server.middlewares.use((req, res, next) => {
+ if (req.url?.startsWith('/__vitest_api__')) {
+ console.log('\n' + '='.repeat(100));
+ console.log(`[VITEST API SERVER] ${req.method} request to ${req.url}`);
+ console.log('='.repeat(100));
+
+ // Check for debug parameter
+ if (req.url.includes('wsDebugId=')) {
+ const match = req.url.match(/wsDebugId=([^&]+)/);
+ if (match) {
+ console.log(`[VITEST API SERVER] 🔍 DEBUG ID FOUND: ${match[1]} - Request reached server!`);
+ }
+ }
+
+ // Log ALL headers
+ console.log('[VITEST API SERVER] ALL HEADERS:');
+ console.log(JSON.stringify(req.headers, null, 2));
+
+ // Log specific important headers
+ console.log('\n[VITEST API SERVER] KEY HEADERS:');
+ console.log(` Host: "${req.headers.host}"`);
+ console.log(` Origin: "${req.headers.origin}"`);
+ console.log(` Referer: "${req.headers.referer}"`);
+ console.log(` User-Agent: "${req.headers['user-agent']}"`);
+ console.log(` Upgrade: "${req.headers.upgrade}"`);
+ console.log(` Connection: "${req.headers.connection}"`);
+ console.log(` Sec-WebSocket-Key: "${req.headers['sec-websocket-key']}"`);
+ console.log(` Sec-WebSocket-Version: "${req.headers['sec-websocket-version']}"`);
+ console.log(` Sec-WebSocket-Extensions: "${req.headers['sec-websocket-extensions']}"`);
+ console.log(` Sec-WebSocket-Protocol: "${req.headers['sec-websocket-protocol']}"`);
+
+ const hasUpgradeWebsocket = req.headers.upgrade?.toLowerCase() === 'websocket';
+ const hasConnectionUpgrade = req.headers.connection?.toLowerCase().includes('upgrade');
+
+ console.log('\n[VITEST API SERVER] VALIDATION:');
+ console.log(` Upgrade=websocket: ${hasUpgradeWebsocket}`);
+ console.log(` Connection includes 'upgrade': ${hasConnectionUpgrade}`);
+
+ const isWebSocketUpgrade = hasUpgradeWebsocket && hasConnectionUpgrade;
+ console.log(` Is valid WebSocket upgrade: ${isWebSocketUpgrade}`);
+
+ if (hasUpgradeWebsocket && !hasConnectionUpgrade) {
+ console.log(` ⚠️ WARNING: Upgrade header is correct but Connection header is wrong!`);
+ }
+ if (!hasUpgradeWebsocket && hasConnectionUpgrade) {
+ console.log(` ⚠️ WARNING: Connection header is correct but Upgrade header is wrong!`);
+ }
+
+ // Log socket information
+ console.log('\n[VITEST API SERVER] SOCKET INFO:');
+ console.log(` Remote Address: ${req.socket.remoteAddress}`);
+ console.log(` Remote Port: ${req.socket.remotePort}`);
+ console.log(` Local Address: ${req.socket.localAddress}`);
+ console.log(` Local Port: ${req.socket.localPort}`);
+ console.log(` Encrypted (TLS): ${(req.socket as any).encrypted || false}`);
+
+ // Only intercept non-upgrade GET requests
+ if (req.method === 'GET' && !isWebSocketUpgrade) {
+ console.log('\n[VITEST API SERVER] -> Returning 204 No Content (not a WebSocket upgrade)');
+ console.log('='.repeat(100) + '\n');
+ res.writeHead(204, { 'Content-Length': '0' });
+ res.end();
+ return;
+ }
+
+ console.log('\n[VITEST API SERVER] -> Passing through to Vitest (WebSocket upgrade or other method)');
+ console.log('='.repeat(100) + '\n');
+ }
+ next();
+ });
+
+ // Fix Vitest API 404 when accessed from vite.bs-local.com subdomain
+ // Use direct middleware.use to run in pre-mode (before internal middleware)
+ server.middlewares.use((req, res, next) => {
+ const originalHost = req.headers.host;
+ const originalUrl = req.url;
+
+ // Log all requests to see what's coming through
+ console.log(`[MIDDLEWARE] ${req.method} ${req.url} - Host: ${originalHost}`);
+
+ // Chrome doesn't send Host header (undefined) and works fine
+ // Safari sends vite.bs-local.com which causes Vite to misroute the request
+ // Solution: Remove the Host header and normalize URL to match Chrome's behavior
+ if (req.url?.includes('/__vitest')) {
+ if (req.headers.host) {
+ delete req.headers.host;
+ console.log(`[MIDDLEWARE] Host header removed (was: ${originalHost})`);
+ }
+ // Also ensure URL doesn't have any host-specific prefixes
+ // Though this is unlikely, normalize just in case
+ if (req.url.startsWith('http://') || req.url.startsWith('https://')) {
+ const urlObj = new URL(req.url);
+ req.url = urlObj.pathname + urlObj.search;
+ console.log(`[MIDDLEWARE] URL normalized to: ${req.url}`);
+ }
+ }
+
+ // Log responses
+ const originalWriteHead = res.writeHead.bind(res);
+ res.writeHead = function(statusCode: any, ...args: any[]) {
+ // Check if URL was modified by later middleware
+ if (req.url !== originalUrl) {
+ console.log(`[RESPONSE] ${req.method} ${originalUrl} -> ${req.url} - Status: ${statusCode}`);
+ } else {
+ console.log(`[RESPONSE] ${req.method} ${req.url} - Status: ${statusCode}`);
+ }
+ return originalWriteHead(statusCode, ...args);
+ } as any;
+
+ next();
+ });
+
+ // Add endpoint to receive browser console logs
+ server.middlewares.use((req, res, next) => {
+ if (req.url === '/__vitest_console__' && req.method === 'POST') {
+ console.log('[CONSOLE ENDPOINT] Received POST request');
+ let body = '';
+ req.on('data', chunk => {
+ body += chunk.toString();
+ console.log('[CONSOLE ENDPOINT] Received chunk, total length:', body.length);
+ });
+ req.on('end', () => {
+ console.log('[CONSOLE ENDPOINT] Request ended, body length:', body.length);
+ console.log('[CONSOLE ENDPOINT] Raw body:', body);
+ try {
+ const log = JSON.parse(body);
+ console.log('\n' + '='.repeat(80));
+ console.log(`[BROWSER ${log.type.toUpperCase()}] ${log.message}`);
+ console.log('='.repeat(80) + '\n');
+ res.writeHead(200);
+ res.end('OK');
+ } catch (e) {
+ const error = e instanceof Error ? e : new Error(String(e));
+ console.error('[CONSOLE ENDPOINT] Failed to parse JSON:', error.message);
+ console.error('[CONSOLE ENDPOINT] Body was:', body);
+ res.writeHead(400);
+ res.end('Bad Request');
+ }
+ });
+ return; // Don't call next()
+ } else {
+ next();
+ }
+ });
+ },
+ },
+ {
+ name: 'log-session-id',
+ enforce: 'pre', // Run before other plugins
+ configureServer(server) {
+ // Socket ID tracking - similar to debug server
+ let socketIdCounter = 0;
+ const socketMap = new WeakMap();
+
+ function getSocketId(socket: any) {
+ if (!socketMap.has(socket)) {
+ socketMap.set(socket, ++socketIdCounter);
+ }
+ return socketMap.get(socket);
+ }
+
+ function formatLog(type: string, data: any) {
+ const timestamp = new Date().toISOString();
+ console.log(`[${timestamp}] [${type}] ${JSON.stringify(data, null, 2)}`);
+ }
+
+ // Track socket lifecycle FIRST (before any requests)
+ server.httpServer?.on('connection', (socket) => {
+ getSocketId(socket); // Track socket ID for WebSocket correlation
+ // HTTP socket logs commented out for cleaner output
+ });
+
+ // Intercept at the HTTP server level to catch ALL requests
+ const originalEmit = server.httpServer?.emit;
+ if (server.httpServer && originalEmit) {
+ const httpServer: any = server.httpServer;
+ httpServer.emit = function(this: any, event: any, ...args: any[]): any {
+ if (event === 'request') {
+ const req = args[0];
+ const socketId = getSocketId(req.socket);
+ const url = req.url || '';
+
+ formatLog('HTTP_REQUEST', {
+ socketId,
+ method: req.method,
+ url,
+ host: req.headers.host,
+ origin: req.headers.origin,
+ referer: req.headers.referer,
+ userAgent: req.headers['user-agent'],
+ remoteAddress: req.socket.remoteAddress,
+ remotePort: req.socket.remotePort,
+ headers: {
+ host: req.headers.host,
+ origin: req.headers.origin,
+ referer: req.headers.referer,
+ connection: req.headers.connection,
+ upgrade: req.headers.upgrade,
+ 'user-agent': req.headers['user-agent'],
+ },
+ });
+
+ // Special logging for Vitest test page
+ if (url.includes('__vitest_test__') && url.includes('sessionId=')) {
+ const fullUrl = new URL(url, `http://${req.headers.host}`);
+ const sessionId = fullUrl.searchParams.get('sessionId');
+ console.log('\n' + '='.repeat(80));
+ console.log(`[VITEST TEST PAGE REQUEST]`);
+ console.log(`Session ID: ${sessionId}`);
+ console.log(`Socket ID: ${socketId}`);
+ console.log(`Full URL: http://${req.headers.host}${url}`);
+ console.log(`Time: ${new Date().toISOString()}`);
+ console.log('='.repeat(80) + '\n');
+ }
+ } else if (event === 'upgrade') {
+ const req = args[0];
+ const socketId = getSocketId(req.socket);
+ const url = req.url || '';
+ const isWebSocket = req.headers.upgrade?.toLowerCase() === 'websocket';
+ // Determine protocol - check if socket is encrypted (TLS)
+ const protocol = (req.socket as any).encrypted ? 'https' : 'http';
+
+ formatLog('WEBSOCKET_UPGRADE_REQUEST', {
+ socketId,
+ protocol,
+ url: req.url,
+ host: req.headers.host,
+ origin: req.headers.origin,
+ userAgent: req.headers['user-agent'],
+ upgradeHeader: req.headers.upgrade,
+ connectionHeader: req.headers.connection,
+ isWebSocket,
+ remoteAddress: req.socket.remoteAddress,
+ remotePort: req.socket.remotePort,
+ wsKey: req.headers['sec-websocket-key'],
+ wsVersion: req.headers['sec-websocket-version'],
+ wsExtensions: req.headers['sec-websocket-extensions'],
+ });
+
+ console.log('\n' + '-'.repeat(80));
+ console.log(`[WEBSOCKET UPGRADE]`);
+ console.log(`Socket ID: ${socketId}`);
+ console.log(`Protocol: ${protocol}`);
+ console.log(`URL: ${req.url}`);
+ console.log(`Full URL: ${protocol}://${req.headers.host}${url}`);
+ console.log(`Origin: ${req.headers.origin || 'none'}`);
+ console.log(`Upgrade: ${req.headers.upgrade}`);
+ console.log(`Connection: ${req.headers.connection}`);
+ console.log(`Is WebSocket: ${isWebSocket}`);
+
+ if (url.includes('sessionId=')) {
+ const fullUrl = new URL(url, `${protocol}://${req.headers.host}`);
+ const sessionId = fullUrl.searchParams.get('sessionId');
+ console.log(`Session ID: ${sessionId}`);
+ }
+ console.log(`Time: ${new Date().toISOString()}`);
+ console.log('-'.repeat(80) + '\n');
+ }
+ return originalEmit.apply(this, [event, ...args] as any);
+ };
+ }
+
+ // Server lifecycle logging - commented out for cleaner output
+ // server.httpServer?.on('listening', () => {
+ // const address = server.httpServer?.address();
+ // const port = typeof address === 'object' ? address?.port : 5173;
+ // console.log('\n' + '='.repeat(80));
+ // console.log(`[VITE SERVER READY]`);
+ // console.log(`Port: ${port}`);
+ // console.log(`Host: ${server.config.server.host || '0.0.0.0'}`);
+ // console.log(`Time: ${new Date().toISOString()}`);
+ // console.log('='.repeat(80) + '\n');
+ // });
+
+ // server.httpServer?.on('close', () => {
+ // console.log('\n' + '='.repeat(80));
+ // console.log(`[VITE SERVER CLOSED]`);
+ // console.log(`Time: ${new Date().toISOString()}`);
+ // console.log('='.repeat(80) + '\n');
+ // });
+
+ // Hook into Vite's WebSocket server to log WebSocket events
+ // Vite uses 'ws' library internally
+ if (server.ws) {
+ const wss = (server.ws as any).wss || (server.ws as any);
+
+ if (wss && wss.on) {
+ wss.on('connection', (ws: any, req: any) => {
+ const socketId = req.socket ? getSocketId(req.socket) : 'unknown';
+ const wsId = 'ws-' + (++socketIdCounter);
+
+ formatLog('WEBSOCKET_CONNECTION_ESTABLISHED', {
+ wsId,
+ socketId,
+ url: req.url,
+ origin: req.headers?.origin,
+ upgradeProtocol: req.headers?.['sec-websocket-protocol'],
+ });
+
+ console.log(`[WEBSOCKET CONNECTED] wsId: ${wsId}, socketId: ${socketId}`);
+
+ // Log messages
+ ws.on('message', (data: any) => {
+ const message = data.toString();
+ formatLog('WEBSOCKET_MESSAGE_RECEIVED', {
+ wsId,
+ socketId,
+ message: message.length > 200 ? message.substring(0, 200) + '...' : message,
+ length: message.length,
+ });
+ });
+
+ // Log pings
+ ws.on('ping', (data: any) => {
+ formatLog('WEBSOCKET_PING', {
+ wsId,
+ socketId,
+ data: data.toString(),
+ });
+ });
+
+ // Log pongs
+ ws.on('pong', (data: any) => {
+ formatLog('WEBSOCKET_PONG', {
+ wsId,
+ socketId,
+ data: data.toString(),
+ });
+ });
+
+ // Log close
+ ws.on('close', (code: number, reason: any) => {
+ formatLog('WEBSOCKET_CONNECTION_CLOSED', {
+ wsId,
+ socketId,
+ code,
+ reason: reason.toString(),
+ });
+
+ console.log(`[WEBSOCKET CLOSED] wsId: ${wsId}, socketId: ${socketId}, code: ${code}`);
+ });
+
+ // Log errors
+ ws.on('error', (error: any) => {
+ formatLog('WEBSOCKET_ERROR', {
+ wsId,
+ socketId,
+ error: error.message,
+ code: error.code,
+ });
+
+ console.error(`[WEBSOCKET ERROR] wsId: ${wsId}, socketId: ${socketId}, error: ${error.message}`);
+ });
+ });
+
+ // Log WebSocket server errors
+ wss.on('error', (error: any) => {
+ formatLog('WEBSOCKET_SERVER_ERROR', {
+ error: error.message,
+ code: error.code,
+ });
+ });
+ }
+ }
+ },
+ },
+ ],
+ base: '/',
+ resolve: {
+ alias: {
+ 'error_message': path.resolve(__dirname, './lib/message/error_message'),
+ 'log_message': path.resolve(__dirname, './lib/message/log_message'),
+ },
+ },
+ esbuild: {
+ target: 'es2015', // Match tsconfig.json target - transpile user code to ES6
+ format: 'esm', // Match tsconfig.json module: ESNext
+ },
+ build: {
+ target: 'es2015', // Ensure build output is ES6
+ },
+ // ssr: {
+ // // Not needed for Safari 15+ which handles circular deps properly
+ // noExternal: [/@vitest\/browser/],
+ // },
+ optimizeDeps: {
+ // Force chai to be pre-bundled with ES6 target to remove class static blocks
+ include: ['chai'],
+ esbuildOptions: {
+ target: 'es6',
+ },
+ },
+ server: {
+ host: 'bs-local.com',
+ cors: true,
+ https: {
+ key: fs.readFileSync(path.resolve(__dirname, '.cert/key.pem')),
+ cert: fs.readFileSync(path.resolve(__dirname, '.cert/cert.pem')),
+ },
+ // Try setting origin to force browser URL
+ // origin: 'http://bs-local.com',
+ strictPort: false,
+ fs: {
+ strict: false, // Allow serving files outside root to prevent favicon issues
+ },
+ // hmr: {
+ // // Force HMR to use the vite subdomain
+ // // Safari requires this to match the page's domain for WebSocket connections
+ // host: 'vite.bs-local.com',
+ // protocol: 'wss',
+ // // Don't specify clientPort - let Vite auto-detect from the page
+ // },
+ watch: {
+ // Disable file watching in browser tests
+ ignored: ['**/*'],
+ },
+ },
+ test: {
+ isolate: false,
+ fileParallelism: true,
+ browser: {
+ enabled: true,
+ provider: 'webdriverio',
+ headless: useLocalBrowser ? (process.env.CI === 'true' || process.env.HEADLESS === 'true') : false,
+ // Vitest 3 browser mode configuration
+ instances: buildBrowserInstances(),
+ // Browser connection timeout
+ connectTimeout: 60000, // 1 minute
+ // Add scripts to capture console output from the browser
+ orchestratorScripts: [
+ {
+ // Use absolute path from project root to avoid /@fs/ prefix
+ src: path.resolve(__dirname, 'public/console-capture.js'),
+ },
+ ] as any,
+ },
+ reporters: [
+ 'default',
+ {
+ onInit(ctx: any) {
+ console.log('onInit - Browser test session starting');
+ // Print all browser session IDs when they're created
+ setTimeout(() => {
+ const sessions = ctx.vitest?._browserSessions;
+ if (sessions && sessions.sessionIds) {
+ console.log('\n' + '='.repeat(80));
+ console.log(`[VITEST BROWSER SESSIONS]`);
+ console.log(`Total Sessions: ${sessions.sessionIds.size}`);
+ for (const sessionId of sessions.sessionIds) {
+ console.log(` Session ID: ${sessionId}`);
+ }
+ console.log(`Time: ${new Date().toISOString()}`);
+ console.log('='.repeat(80) + '\n');
+ }
+ }, 1000); // Wait 1 second for sessions to be created
+ },
+ } as any,
+ ],
+ onConsoleLog: (log, type) => {
+ console.log(`[${type}]`, log);
+ return true;
+ },
+ setupFiles: ['./vitest.setup.ts'],
+ testTimeout: 60000, // 1 minute timeout
+ hookTimeout: 60000,
+ // pool: 'forks', // Use forks pool to avoid threading issues with BrowserStack
+ // bail: 1, // Stop on first failure to avoid cascading errors
+ // Include all .spec.ts files in lib directory, but exclude react_native tests
+ include: ['lib/**/user_event.spec.ts'],
+ exclude: [
+ 'lib/**/*.react_native.spec.ts',
+ 'lib/**/*.node.spec.ts',
+ ],
+ typecheck: {
+ enabled: true,
+ tsconfig: 'tsconfig.spec.json',
+ },
+ },
+});
diff --git a/vitest.browser.playwright.config.mts b/vitest.browser.playwright.config.mts
new file mode 100644
index 000000000..eb2717217
--- /dev/null
+++ b/vitest.browser.playwright.config.mts
@@ -0,0 +1,154 @@
+/**
+ * Copyright 2024-2025, Optimizely
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import path from 'path';
+import { defineConfig } from 'vitest/config'
+import dotenv from 'dotenv';
+
+// Load environment variables from .env file
+dotenv.config();
+
+// Check if BrowserStack credentials are available
+function hasBrowserStackCredentials() {
+ const username = process.env.BROWSERSTACK_USERNAME || process.env.BROWSER_STACK_USERNAME;
+ const accessKey = process.env.BROWSERSTACK_ACCESS_KEY || process.env.BROWSER_STACK_ACCESS_KEY;
+ return !!(username && accessKey);
+}
+
+// Build BrowserStack CDP WebSocket URL with capabilities
+function buildBrowserStackCdpUrl() {
+ const username = process.env.BROWSERSTACK_USERNAME || process.env.BROWSER_STACK_USERNAME;
+ const accessKey = process.env.BROWSERSTACK_ACCESS_KEY || process.env.BROWSER_STACK_ACCESS_KEY;
+
+ // Get browser name from environment
+ const browserName = process.env.VITEST_BROWSER_NAME || 'chromium';
+
+ // Map Playwright browser names to BrowserStack browser names for local fallback
+ // When using BrowserStack, you can also pass actual BrowserStack browser names directly
+ const browserMapping: Record = {
+ 'chromium': 'chrome',
+ 'firefox': 'firefox',
+ 'webkit': 'safari',
+ // You can also use BrowserStack browser names directly:
+ // 'edge': 'edge',
+ // 'chrome': 'chrome',
+ // 'safari': 'safari',
+ };
+
+ const caps = {
+ 'browserstack.username': username,
+ 'browserstack.accessKey': accessKey,
+ 'browser': browserMapping[browserName] || browserName, // Support both mapped and direct browser names
+ 'browser_version': process.env.VITEST_BROWSER_VERSION || 'latest',
+ 'os': process.env.VITEST_BROWSER_OS || 'Windows',
+ 'os_version': process.env.VITEST_BROWSER_OS_VERSION || '11',
+ 'build': process.env.VITEST_BUILD_NAME || 'Vitest Browser Tests',
+ 'name': process.env.VITEST_SESSION_NAME || 'Playwright Browser Tests',
+ 'browserstack.local': process.env.BROWSERSTACK_LOCAL === 'true' ? 'true' : 'false',
+ 'browserstack.debug': 'true',
+ 'browserstack.networkLogs': 'true',
+ 'browserstack.console': 'info',
+ 'client.playwrightVersion': '1.57.0', // Match the installed Playwright version
+ };
+
+ const capsJson = JSON.stringify(caps);
+ const encodedCaps = encodeURIComponent(capsJson);
+
+ return `wss://cdp.browserstack.com/playwright?caps=${encodedCaps}`;
+}
+
+// Build provider options based on whether BrowserStack credentials are available
+function buildProviderOptions() {
+ if (hasBrowserStackCredentials()) {
+ console.log('Using BrowserStack for Playwright tests');
+ return {
+ connectOptions: {
+ wsEndpoint: buildBrowserStackCdpUrl(),
+ },
+ };
+ } else {
+ console.log('BrowserStack credentials not found, using local Playwright browsers');
+ return {
+ launch: {
+ args: ['--disable-blink-features=AutomationControlled'],
+ // Keep browser open after tests finish (useful for debugging)
+ // Set PLAYWRIGHT_CLOSE=true to override and close the browser
+ devtools: false,
+ },
+ context: {
+ // Additional context options can be added here
+ },
+ };
+ }
+}
+
+export default defineConfig({
+ resolve: {
+ alias: {
+ 'error_message': path.resolve(__dirname, './lib/message/error_message'),
+ 'log_message': path.resolve(__dirname, './lib/message/log_message'),
+ },
+ },
+ test: {
+ isolate: false,
+ fileParallelism: false, // Run test files sequentially to avoid multiple BrowserStack sessions
+ browser: {
+ enabled: true,
+ provider: 'playwright',
+ headless: hasBrowserStackCredentials()
+ ? false // BrowserStack controls headless mode
+ : (process.env.CI === 'true' || process.env.HEADLESS === 'true'),
+ // Vitest 3 browser mode - options go inside instances
+ // TypeScript errors are expected - local types are from Vitest 2.x, but runtime uses Vitest 3.x
+ instances: hasBrowserStackCredentials()
+ ? [
+ {
+ browser: process.env.VITEST_BROWSER_NAME || 'chromium',
+ connect: {
+ wsEndpoint: buildBrowserStackCdpUrl(),
+ timeout: 180000, // 3 minutes timeout for BrowserStack connection
+ },
+ } as any,
+ ]
+ : [
+ {
+ browser: process.env.VITEST_BROWSER_NAME || 'chromium',
+ launch: {
+ args: ['--disable-blink-features=AutomationControlled'],
+ devtools: false,
+ },
+ context: {},
+ } as any,
+ ],
+ initTimeout: 180000, // 3 minutes to initialize browser
+ slowHijackESM: false, // Disable ESM hijacking for better compatibility
+ } as any,
+ onConsoleLog: () => true,
+ testTimeout: 60000, // Increase test timeout for BrowserStack
+ hookTimeout: 60000,
+ pool: 'forks', // Use forks pool to avoid threading issues with BrowserStack
+ // Include all .spec.ts files in lib directory, but exclude react_native tests
+ include: ['lib/**/*.spec.ts'],
+ exclude: [
+ '**/node_modules/**',
+ '**/dist/**',
+ '**/*.react_native.spec.ts',
+ ],
+ typecheck: {
+ enabled: true,
+ tsconfig: 'tsconfig.spec.json',
+ },
+ },
+});
diff --git a/vitest.browser.webdriverio.config.mts b/vitest.browser.webdriverio.config.mts
new file mode 100644
index 000000000..97d65ab6c
--- /dev/null
+++ b/vitest.browser.webdriverio.config.mts
@@ -0,0 +1,83 @@
+/**
+ * Copyright 2024-2025, Optimizely
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import path from 'path';
+import { defineConfig } from 'vitest/config'
+import dotenv from 'dotenv';
+
+// Load environment variables from .env file
+dotenv.config();
+
+export default defineConfig({
+ resolve: {
+ alias: {
+ 'error_message': path.resolve(__dirname, './lib/message/error_message'),
+ 'log_message': path.resolve(__dirname, './lib/message/log_message'),
+ },
+ },
+ test: {
+ isolate: false,
+ browser: {
+ enabled: true,
+ provider: 'webdriverio',
+ name: process.env.VITEST_BROWSER_NAME || 'chrome',
+ // headless: process.env.CI === 'true' || process.env.HEADLESS === 'true',
+ providerOptions: {
+ capabilities: {
+ browserName: process.env.VITEST_BROWSER_NAME || 'chrome',
+ browserVersion: process.env.VITEST_BROWSER_VERSION || 'stable',
+ 'goog:chromeOptions': {
+ args: [
+ '--disable-blink-features=AutomationControlled',
+ '--disable-dev-shm-usage',
+ '--no-sandbox',
+ ],
+ binary: process.env.CHROME_BIN, // For CI environments that need custom Chrome path
+ },
+ 'moz:firefoxOptions': {
+ args: process.env.HEADLESS === 'true' || process.env.CI === 'true' ? ['-headless'] : [],
+ binary: process.env.FIREFOX_BIN, // For CI environments that need custom Firefox path
+ },
+ 'ms:edgeOptions': {
+ args: [
+ '--disable-blink-features=AutomationControlled',
+ '--disable-dev-shm-usage',
+ '--no-sandbox',
+ ],
+ binary: process.env.EDGE_BIN, // For CI environments that need custom Edge path
+ },
+ },
+ // WebDriverIO timeouts
+ connectionRetryTimeout: 120000,
+ connectionRetryCount: 3,
+ waitforTimeout: 30000,
+ }
+ },
+ onConsoleLog: () => true,
+ testTimeout: 30000,
+ hookTimeout: 30000,
+ // Include all .spec.ts files in lib directory, but exclude react_native tests
+ include: ['lib/**/*.spec.ts'],
+ exclude: [
+ '**/node_modules/**',
+ '**/dist/**',
+ '**/*.react_native.spec.ts',
+ ],
+ typecheck: {
+ enabled: true,
+ tsconfig: 'tsconfig.spec.json',
+ },
+ },
+});
diff --git a/vitest.config.mts b/vitest.config.mts
index 1bce36eb0..2a0b481db 100644
--- a/vitest.config.mts
+++ b/vitest.config.mts
@@ -13,15 +13,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import path from 'path';
import { defineConfig } from 'vitest/config'
+import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
- resolve: {
- alias: {
- 'error_message': path.resolve(__dirname, './lib/message/error_message'),
- 'log_message': path.resolve(__dirname, './lib/message/log_message'),
- },
+ plugins: [
+ tsconfigPaths({
+ projects: ['./tsconfig.spec.json'],
+ })
+ ],
+ esbuild: {
+ target: 'es6', // Match tsconfig.json target
+ format: 'esm', // Match tsconfig.json module: ESNext
},
test: {
onConsoleLog: () => true,
diff --git a/vitest.setup.ts b/vitest.setup.ts
new file mode 100644
index 000000000..923bd7626
--- /dev/null
+++ b/vitest.setup.ts
@@ -0,0 +1,36 @@
+/**
+ * Copyright 2024-2025, Optimizely
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { beforeAll } from 'vitest';
+
+// Declare global variable for TypeScript
+declare const __VITEST_SESSION_ID__: string | undefined;
+
+beforeAll(() => {
+ // Print session information at the start of tests
+ if (typeof window !== 'undefined') {
+ const sessionId = typeof __VITEST_SESSION_ID__ !== 'undefined' ? __VITEST_SESSION_ID__ : 'unknown';
+ const url = new URL(window.location.href);
+ const urlSessionId = url.searchParams.get('sessionId');
+
+ console.log('='.repeat(80));
+ console.log(`Vitest Browser Session ID (global): ${sessionId}`);
+ console.log(`Vitest Browser Session ID (URL): ${urlSessionId}`);
+ console.log(`User Agent: ${navigator.userAgent}`);
+ console.log(`Location: ${window.location.href}`);
+ console.log('='.repeat(80));
+ }
+});
diff --git a/vitest.shims.d.ts b/vitest.shims.d.ts
new file mode 100644
index 000000000..25d80877b
--- /dev/null
+++ b/vitest.shims.d.ts
@@ -0,0 +1 @@
+///