@tonyclaw/agent-inspector 3.0.26 → 3.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/.output/cli.js +80 -11
  2. package/.output/nitro.json +1 -1
  3. package/.output/public/assets/{CompareDrawer-SZRUDQc9.js → CompareDrawer-BVCAAbbu.js} +1 -1
  4. package/.output/public/assets/{ProxyViewerContainer-BJvwOrSi.js → ProxyViewerContainer-CYOXB81n.js} +200 -200
  5. package/.output/public/assets/{ReplayDialog-DgfmqiM3.js → ReplayDialog-DMX23O5G.js} +1 -1
  6. package/.output/public/assets/{RequestAnatomy-CS6c7Qfn.js → RequestAnatomy-S17pYDRc.js} +1 -1
  7. package/.output/public/assets/{ResponseView-C0Ri_5gm.js → ResponseView-Cf1XrawD.js} +2 -2
  8. package/.output/public/assets/{StreamingChunkSequence-7dYcHWyZ.js → StreamingChunkSequence-BdOrVlCi.js} +1 -1
  9. package/.output/public/assets/{_sessionId-D-V84cgw.js → _sessionId-BnKGmJrR.js} +1 -1
  10. package/.output/public/assets/{index-DgFWCxOs.js → index-9fMLCU4d.js} +1 -1
  11. package/.output/public/assets/{index-CSIL7-MK.js → index-B1atk19i.js} +2 -2
  12. package/.output/public/assets/{index-DrVJsks2.js → index-gY3I-7-D.js} +1 -1
  13. package/.output/public/assets/{json-viewer-C9Ji3gYN.js → json-viewer-CpyYpPjx.js} +1 -1
  14. package/.output/server/_libs/lucide-react.mjs +6 -6
  15. package/.output/server/{_sessionId-BQ6YQOO1.mjs → _sessionId-eA_h2_s6.mjs} +4 -2
  16. package/.output/server/_ssr/{CompareDrawer-CqNzIeMR.mjs → CompareDrawer-K2k9G7r1.mjs} +5 -3
  17. package/.output/server/_ssr/{ProxyViewerContainer-CMC7Vsbw.mjs → ProxyViewerContainer-CbyBpCAj.mjs} +27 -60
  18. package/.output/server/_ssr/{ReplayDialog-D9p_LaTr.mjs → ReplayDialog-DacI2Iv0.mjs} +5 -3
  19. package/.output/server/_ssr/{RequestAnatomy-B4ge3qNZ.mjs → RequestAnatomy-gh-pAdkO.mjs} +4 -2
  20. package/.output/server/_ssr/{ResponseView-BCqMKApI.mjs → ResponseView-BRJKN50-.mjs} +5 -3
  21. package/.output/server/_ssr/{StreamingChunkSequence-BA4zTLE4.mjs → StreamingChunkSequence-BQLVEuWY.mjs} +4 -2
  22. package/.output/server/_ssr/{index-CzxhDjlq.mjs → index-DuSWrjbH.mjs} +4 -2
  23. package/.output/server/_ssr/index.mjs +2 -2
  24. package/.output/server/_ssr/{json-viewer-B3qV6iEJ.mjs → json-viewer-DNs1ZjKI.mjs} +4 -2
  25. package/.output/server/_ssr/{router-CZe_R31M.mjs → router-Dgx6-ot3.mjs} +712 -217
  26. package/.output/server/{_tanstack-start-manifest_v-B50VTLrH.mjs → _tanstack-start-manifest_v-CoGjnkQD.mjs} +1 -1
  27. package/.output/server/index.mjs +64 -64
  28. package/README.md +8 -0
  29. package/package.json +4 -5
  30. package/src/cli.ts +43 -9
  31. package/src/components/providers/ProviderCard.tsx +3 -36
  32. package/src/components/providers/ProviderForm.tsx +13 -12
  33. package/src/components/providers/ProvidersPanel.tsx +2 -2
  34. package/src/components/providers/SettingsDialog.tsx +3 -3
  35. package/src/components/proxy-viewer/ProviderLogoStack.tsx +0 -3
  36. package/src/contracts/anthropic.ts +0 -5
  37. package/src/contracts/index.ts +0 -4
  38. package/src/contracts/log.ts +0 -1
  39. package/src/contracts/openai.ts +0 -3
  40. package/src/knowledge/openclawClient.ts +22 -9
  41. package/src/knowledge/openclawGatewayClient.ts +20 -13
  42. package/src/lib/alertContract.ts +0 -3
  43. package/src/lib/ecosystemContract.ts +0 -3
  44. package/src/lib/export-logs.ts +1 -4
  45. package/src/lib/safeFetch.ts +100 -0
  46. package/src/lib/ssrfGuard.ts +133 -0
  47. package/src/lib/stopReason.ts +1 -4
  48. package/src/lib/unknown.ts +27 -0
  49. package/src/lib/useProviders.ts +1 -1
  50. package/src/mcp/mode.ts +3 -9
  51. package/src/mcp/server.ts +5 -14
  52. package/src/mcp/toolHandlers.ts +45 -54
  53. package/src/proxy/constants.ts +17 -0
  54. package/src/proxy/formats/anthropic/handler.ts +5 -1
  55. package/src/proxy/formats/anthropic/schemas.ts +1 -7
  56. package/src/proxy/formats/index.ts +1 -1
  57. package/src/proxy/formats/openai/schemas.ts +0 -3
  58. package/src/proxy/formats/registry.ts +0 -3
  59. package/src/proxy/handler.ts +91 -12
  60. package/src/proxy/identityProxy.ts +74 -1
  61. package/src/proxy/logImporter.ts +82 -12
  62. package/src/proxy/logIndex.ts +1 -4
  63. package/src/proxy/providerSecretStore.ts +181 -0
  64. package/src/proxy/providers.ts +84 -11
  65. package/src/proxy/schemas.ts +1 -8
  66. package/src/proxy/sqliteLogIndex.ts +0 -16
  67. package/src/proxy/store.ts +1 -5
  68. package/src/proxy/toolSchemaWarnings.ts +1 -9
  69. package/src/routes/api/logs.$id.replay.ts +17 -5
  70. package/src/routes/api/providers.$providerId.model-metadata.ts +11 -1
  71. package/src/routes/api/providers.$providerId.ts +18 -5
  72. package/src/routes/api/providers.ts +18 -7
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DrVJsks2.js","assets/ProxyViewerContainer-BJvwOrSi.js","assets/_sessionId-D-V84cgw.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-gY3I-7-D.js","assets/ProxyViewerContainer-CYOXB81n.js","assets/_sessionId-BnKGmJrR.js"])))=>i.map(i=>d[i]);
2
2
  function _S(a,i){for(var u=0;u<i.length;u++){const r=i[u];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in a)){const f=Object.getOwnPropertyDescriptor(r,c);f&&Object.defineProperty(a,c,f.get?f:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var lT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ES(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var cc={exports:{}},Yi={};var my;function RS(){if(my)return Yi;my=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(r,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:a,type:r,key:h,ref:c!==void 0?c:null,props:f}}return Yi.Fragment=i,Yi.jsx=u,Yi.jsxs=u,Yi}var yy;function TS(){return yy||(yy=1,cc.exports=RS()),cc.exports}var I=TS(),fc={exports:{}},ct={};var py;function AS(){if(py)return ct;py=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),b=Symbol.iterator;function E(M){return M===null||typeof M!="object"?null:(M=b&&M[b]||M["@@iterator"],typeof M=="function"?M:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,R={};function C(M,Y,F){this.props=M,this.context=Y,this.refs=R,this.updater=F||x}C.prototype.isReactComponent={},C.prototype.setState=function(M,Y){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,Y,"setState")},C.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function O(){}O.prototype=C.prototype;function X(M,Y,F){this.props=M,this.context=Y,this.refs=R,this.updater=F||x}var Q=X.prototype=new O;Q.constructor=X,U(Q,C.prototype),Q.isPureReactComponent=!0;var Z=Array.isArray;function J(){}var H={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function k(M,Y,F){var $=F.ref;return{$$typeof:a,type:M,key:Y,ref:$!==void 0?$:null,props:F}}function st(M,Y){return k(M.type,Y,M.props)}function et(M){return typeof M=="object"&&M!==null&&M.$$typeof===a}function lt(M){var Y={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(F){return Y[F]})}var Xt=/\/+/g;function gt(M,Y){return typeof M=="object"&&M!==null&&M.key!=null?lt(""+M.key):Y.toString(36)}function Nt(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(J,J):(M.status="pending",M.then(function(Y){M.status==="pending"&&(M.status="fulfilled",M.value=Y)},function(Y){M.status==="pending"&&(M.status="rejected",M.reason=Y)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function B(M,Y,F,$,nt){var ot=typeof M;(ot==="undefined"||ot==="boolean")&&(M=null);var dt=!1;if(M===null)dt=!0;else switch(ot){case"bigint":case"string":case"number":dt=!0;break;case"object":switch(M.$$typeof){case a:case i:dt=!0;break;case S:return dt=M._init,B(dt(M._payload),Y,F,$,nt)}}if(dt)return nt=nt(M),dt=$===""?"."+gt(M,0):$,Z(nt)?(F="",dt!=null&&(F=dt.replace(Xt,"$&/")+"/"),B(nt,Y,F,"",function(Qe){return Qe})):nt!=null&&(et(nt)&&(nt=st(nt,F+(nt.key==null||M&&M.key===nt.key?"":(""+nt.key).replace(Xt,"$&/")+"/")+dt)),Y.push(nt)),1;dt=0;var Yt=$===""?".":$+":";if(Z(M))for(var zt=0;zt<M.length;zt++)$=M[zt],ot=Yt+gt($,zt),dt+=B($,Y,F,ot,nt);else if(zt=E(M),typeof zt=="function")for(M=zt.call(M),zt=0;!($=M.next()).done;)$=$.value,ot=Yt+gt($,zt++),dt+=B($,Y,F,ot,nt);else if(ot==="object"){if(typeof M.then=="function")return B(Nt(M),Y,F,$,nt);throw Y=String(M),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return dt}function P(M,Y,F){if(M==null)return M;var $=[],nt=0;return B(M,$,"","",function(ot){return Y.call(F,ot,nt++)}),$}function it(M){if(M._status===-1){var Y=M._result;Y=Y(),Y.then(function(F){(M._status===0||M._status===-1)&&(M._status=1,M._result=F)},function(F){(M._status===0||M._status===-1)&&(M._status=2,M._result=F)}),M._status===-1&&(M._status=0,M._result=Y)}if(M._status===1)return M._result.default;throw M._result}var Et=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},mt={map:P,forEach:function(M,Y,F){P(M,function(){Y.apply(this,arguments)},F)},count:function(M){var Y=0;return P(M,function(){Y++}),Y},toArray:function(M){return P(M,function(Y){return Y})||[]},only:function(M){if(!et(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return ct.Activity=m,ct.Children=mt,ct.Component=C,ct.Fragment=u,ct.Profiler=c,ct.PureComponent=X,ct.StrictMode=r,ct.Suspense=p,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,ct.__COMPILER_RUNTIME={__proto__:null,c:function(M){return H.H.useMemoCache(M)}},ct.cache=function(M){return function(){return M.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(M,Y,F){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var $=U({},M.props),nt=M.key;if(Y!=null)for(ot in Y.key!==void 0&&(nt=""+Y.key),Y)!K.call(Y,ot)||ot==="key"||ot==="__self"||ot==="__source"||ot==="ref"&&Y.ref===void 0||($[ot]=Y[ot]);var ot=arguments.length-2;if(ot===1)$.children=F;else if(1<ot){for(var dt=Array(ot),Yt=0;Yt<ot;Yt++)dt[Yt]=arguments[Yt+2];$.children=dt}return k(M.type,nt,$)},ct.createContext=function(M){return M={$$typeof:h,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:f,_context:M},M},ct.createElement=function(M,Y,F){var $,nt={},ot=null;if(Y!=null)for($ in Y.key!==void 0&&(ot=""+Y.key),Y)K.call(Y,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(nt[$]=Y[$]);var dt=arguments.length-2;if(dt===1)nt.children=F;else if(1<dt){for(var Yt=Array(dt),zt=0;zt<dt;zt++)Yt[zt]=arguments[zt+2];nt.children=Yt}if(M&&M.defaultProps)for($ in dt=M.defaultProps,dt)nt[$]===void 0&&(nt[$]=dt[$]);return k(M,ot,nt)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(M){return{$$typeof:g,render:M}},ct.isValidElement=et,ct.lazy=function(M){return{$$typeof:S,_payload:{_status:-1,_result:M},_init:it}},ct.memo=function(M,Y){return{$$typeof:y,type:M,compare:Y===void 0?null:Y}},ct.startTransition=function(M){var Y=H.T,F={};H.T=F;try{var $=M(),nt=H.S;nt!==null&&nt(F,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(J,Et)}catch(ot){Et(ot)}finally{Y!==null&&F.types!==null&&(Y.types=F.types),H.T=Y}},ct.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},ct.use=function(M){return H.H.use(M)},ct.useActionState=function(M,Y,F){return H.H.useActionState(M,Y,F)},ct.useCallback=function(M,Y){return H.H.useCallback(M,Y)},ct.useContext=function(M){return H.H.useContext(M)},ct.useDebugValue=function(){},ct.useDeferredValue=function(M,Y){return H.H.useDeferredValue(M,Y)},ct.useEffect=function(M,Y){return H.H.useEffect(M,Y)},ct.useEffectEvent=function(M){return H.H.useEffectEvent(M)},ct.useId=function(){return H.H.useId()},ct.useImperativeHandle=function(M,Y,F){return H.H.useImperativeHandle(M,Y,F)},ct.useInsertionEffect=function(M,Y){return H.H.useInsertionEffect(M,Y)},ct.useLayoutEffect=function(M,Y){return H.H.useLayoutEffect(M,Y)},ct.useMemo=function(M,Y){return H.H.useMemo(M,Y)},ct.useOptimistic=function(M,Y){return H.H.useOptimistic(M,Y)},ct.useReducer=function(M,Y,F){return H.H.useReducer(M,Y,F)},ct.useRef=function(M){return H.H.useRef(M)},ct.useState=function(M){return H.H.useState(M)},ct.useSyncExternalStore=function(M,Y,F){return H.H.useSyncExternalStore(M,Y,F)},ct.useTransition=function(){return H.H.useTransition()},ct.version="19.2.7",ct}var gy;function $i(){return gy||(gy=1,fc.exports=AS()),fc.exports}var W=$i();const qn=ES(W),iT=_S({__proto__:null,default:qn},[W]);var dc={exports:{}},Vi={},hc={exports:{}},mc={};var vy;function xS(){return vy||(vy=1,(function(a){function i(B,P){var it=B.length;B.push(P);t:for(;0<it;){var Et=it-1>>>1,mt=B[Et];if(0<c(mt,P))B[Et]=P,B[it]=mt,it=Et;else break t}}function u(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var P=B[0],it=B.pop();if(it!==P){B[0]=it;t:for(var Et=0,mt=B.length,M=mt>>>1;Et<M;){var Y=2*(Et+1)-1,F=B[Y],$=Y+1,nt=B[$];if(0>c(F,it))$<mt&&0>c(nt,F)?(B[Et]=nt,B[$]=it,Et=$):(B[Et]=F,B[Y]=it,Et=Y);else if($<mt&&0>c(nt,it))B[Et]=nt,B[$]=it,Et=$;else break t}}return P}function c(B,P){var it=B.sortIndex-P.sortIndex;return it!==0?it:B.id-P.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();a.unstable_now=function(){return h.now()-g}}var p=[],y=[],S=1,m=null,b=3,E=!1,x=!1,U=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function Q(B){for(var P=u(y);P!==null;){if(P.callback===null)r(y);else if(P.startTime<=B)r(y),P.sortIndex=P.expirationTime,i(p,P);else break;P=u(y)}}function Z(B){if(U=!1,Q(B),!x)if(u(p)!==null)x=!0,J||(J=!0,lt());else{var P=u(y);P!==null&&Nt(Z,P.startTime-B)}}var J=!1,H=-1,K=5,k=-1;function st(){return R?!0:!(a.unstable_now()-k<K)}function et(){if(R=!1,J){var B=a.unstable_now();k=B;var P=!0;try{t:{x=!1,U&&(U=!1,O(H),H=-1),E=!0;var it=b;try{e:{for(Q(B),m=u(p);m!==null&&!(m.expirationTime>B&&st());){var Et=m.callback;if(typeof Et=="function"){m.callback=null,b=m.priorityLevel;var mt=Et(m.expirationTime<=B);if(B=a.unstable_now(),typeof mt=="function"){m.callback=mt,Q(B),P=!0;break e}m===u(p)&&r(p),Q(B)}else r(p);m=u(p)}if(m!==null)P=!0;else{var M=u(y);M!==null&&Nt(Z,M.startTime-B),P=!1}}break t}finally{m=null,b=it,E=!1}P=void 0}}finally{P?lt():J=!1}}}var lt;if(typeof X=="function")lt=function(){X(et)};else if(typeof MessageChannel<"u"){var Xt=new MessageChannel,gt=Xt.port2;Xt.port1.onmessage=et,lt=function(){gt.postMessage(null)}}else lt=function(){C(et,0)};function Nt(B,P){H=C(function(){B(a.unstable_now())},P)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(B){B.callback=null},a.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<B?Math.floor(1e3/B):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(B){switch(b){case 1:case 2:case 3:var P=3;break;default:P=b}var it=b;b=P;try{return B()}finally{b=it}},a.unstable_requestPaint=function(){R=!0},a.unstable_runWithPriority=function(B,P){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var it=b;b=B;try{return P()}finally{b=it}},a.unstable_scheduleCallback=function(B,P,it){var Et=a.unstable_now();switch(typeof it=="object"&&it!==null?(it=it.delay,it=typeof it=="number"&&0<it?Et+it:Et):it=Et,B){case 1:var mt=-1;break;case 2:mt=250;break;case 5:mt=1073741823;break;case 4:mt=1e4;break;default:mt=5e3}return mt=it+mt,B={id:S++,callback:P,priorityLevel:B,startTime:it,expirationTime:mt,sortIndex:-1},it>Et?(B.sortIndex=it,i(y,B),u(p)===null&&B===u(y)&&(U?(O(H),H=-1):U=!0,Nt(Z,it-Et))):(B.sortIndex=mt,i(p,B),x||E||(x=!0,J||(J=!0,lt()))),B},a.unstable_shouldYield=st,a.unstable_wrapCallback=function(B){var P=b;return function(){var it=b;b=P;try{return B.apply(this,arguments)}finally{b=it}}}})(mc)),mc}var Sy;function MS(){return Sy||(Sy=1,hc.exports=xS()),hc.exports}var yc={exports:{}},be={};var by;function wS(){if(by)return be;by=1;var a=$i();function i(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)y+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,y,S){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:m==null?null:""+m,children:p,containerInfo:y,implementation:S}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return be.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,be.createPortal=function(p,y){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return f(p,y,null,S)},be.flushSync=function(p){var y=h.T,S=r.p;try{if(h.T=null,r.p=2,p)return p()}finally{h.T=y,r.p=S,r.d.f()}},be.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(p,y))},be.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},be.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var S=y.as,m=g(S,y.crossOrigin),b=typeof y.integrity=="string"?y.integrity:void 0,E=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;S==="style"?r.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:m,integrity:b,fetchPriority:E}):S==="script"&&r.d.X(p,{crossOrigin:m,integrity:b,fetchPriority:E,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},be.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var S=g(y.as,y.crossOrigin);r.d.M(p,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(p)},be.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var S=y.as,m=g(S,y.crossOrigin);r.d.L(p,S,{crossOrigin:m,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},be.preloadModule=function(p,y){if(typeof p=="string")if(y){var S=g(y.as,y.crossOrigin);r.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(p)},be.requestFormReset=function(p){r.d.r(p)},be.unstable_batchedUpdates=function(p,y){return p(y)},be.useFormState=function(p,y,S){return h.H.useFormState(p,y,S)},be.useFormStatus=function(){return h.H.useHostTransitionStatus()},be.version="19.2.7",be}var _y;function _p(){if(_y)return yc.exports;_y=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),yc.exports=wS(),yc.exports}var Ey;function CS(){if(Ey)return Vi;Ey=1;var a=MS(),i=$i(),u=_p();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(f(t)!==t)throw Error(r(188))}function y(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,l=e;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return p(s),t;if(o===l)return p(s),e;o=o.sibling}throw Error(r(188))}if(n.return!==l.return)n=s,l=o;else{for(var d=!1,v=s.child;v;){if(v===n){d=!0,n=s,l=o;break}if(v===l){d=!0,l=s,n=o;break}v=v.sibling}if(!d){for(v=o.child;v;){if(v===n){d=!0,n=o,l=s;break}if(v===l){d=!0,l=o,n=s;break}v=v.sibling}if(!d)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var m=Object.assign,b=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),X=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),st=Symbol.for("react.memo_cache_sentinel"),et=Symbol.iterator;function lt(t){return t===null||typeof t!="object"?null:(t=et&&t[et]||t["@@iterator"],typeof t=="function"?t:null)}var Xt=Symbol.for("react.client.reference");function gt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Xt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case U:return"Fragment";case C:return"Profiler";case R:return"StrictMode";case Z:return"Suspense";case J:return"SuspenseList";case k:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case x:return"Portal";case X:return t.displayName||"Context";case O:return(t._context.displayName||"Context")+".Consumer";case Q:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return e=t.displayName||null,e!==null?e:gt(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return gt(t(e))}catch{}}return null}var Nt=Array.isArray,B=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},Et=[],mt=-1;function M(t){return{current:t}}function Y(t){0>mt||(t.current=Et[mt],Et[mt]=null,mt--)}function F(t,e){mt++,Et[mt]=t.current,t.current=e}var $=M(null),nt=M(null),ot=M(null),dt=M(null);function Yt(t,e){switch(F(ot,e),F(nt,t),F($,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Bm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Bm(e),t=Hm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y($),F($,t)}function zt(){Y($),Y(nt),Y(ot)}function Qe(t){t.memoizedState!==null&&F(dt,t);var e=$.current,n=Hm(e,t.type);e!==n&&(F(nt,t),F($,n))}function Ze(t){nt.current===t&&(Y($),Y(nt)),dt.current===t&&(Y(dt),ji._currentValue=it)}var rn,Aa;function ve(t){if(rn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);rn=e&&e[1]||"",Aa=-1<n.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+rn+t+Aa}var Zn=!1;function xa(t,e){if(!t||Zn)return"";Zn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(j){var N=j}Reflect.construct(t,[],G)}else{try{G.call()}catch(j){N=j}t.call(G.prototype)}}else{try{throw Error()}catch(j){N=j}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(j){if(j&&N&&typeof j.stack=="string")return[j.stack,N.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),d=o[0],v=o[1];if(d&&v){var A=d.split(`
@@ -73,4 +73,4 @@ Error generating stack: `+l.message+`
73
73
  document.documentElement.dataset.uiScaleResolved = "100";
74
74
  }
75
75
  })();
76
- `,gf=ME({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Agent Inspector"}],links:[{rel:"stylesheet",href:AR},{rel:"icon",type:"image/svg+xml",href:TR}]}),component:jR,notFoundComponent:BR});function jR(){return W.useEffect(()=>CR(),[]),I.jsx(nv,{children:I.jsx(Vg,{})})}function BR(){return I.jsx(nv,{children:I.jsx("main",{className:"min-h-screen bg-background text-foreground",children:I.jsx("div",{className:"mx-auto flex min-h-screen w-full max-w-3xl flex-col justify-center px-6 py-16",children:I.jsxs("div",{className:"border-border/70 bg-card/60 rounded-lg border p-8 shadow-sm",children:[I.jsx("div",{className:"text-muted-foreground font-mono text-xs uppercase tracking-wider",children:"404"}),I.jsx("h1",{className:"mt-3 text-2xl font-semibold",children:"Page not found"}),I.jsx("p",{className:"text-muted-foreground mt-3 max-w-xl text-sm leading-6",children:"This route is not part of the Agent Inspector UI or API surface."}),I.jsx("a",{href:"/",className:"bg-primary text-primary-foreground hover:bg-primary/90 mt-6 inline-flex h-9 items-center justify-center rounded-md px-4 text-sm font-medium transition-colors",children:"Open Agent Inspector"})]})})})})}function nv({children:a}){return I.jsxs("html",{lang:"en",className:"dark","data-theme":"dark",suppressHydrationWarning:!0,children:[I.jsxs("head",{children:[I.jsx("script",{dangerouslySetInnerHTML:{__html:UR}}),I.jsx("script",{dangerouslySetInnerHTML:{__html:NR}}),I.jsx(JE,{})]}),I.jsxs("body",{suppressHydrationWarning:!0,children:[I.jsx(RR,{value:{revalidateOnFocus:!1,revalidateIfStale:!1},children:a}),I.jsx(kE,{})]})]})}const HR="modulepreload",qR=function(a){return"/"+a},bp={},av=function(i,u,r){let c=Promise.resolve();if(u&&u.length>0){let p=function(y){return Promise.all(y.map(S=>Promise.resolve(S).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),g=h?.nonce||h?.getAttribute("nonce");c=p(u.map(y=>{if(y=qR(y),y in bp)return;bp[y]=!0;const S=y.endsWith(".css"),m=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${m}`))return;const b=document.createElement("link");if(b.rel=S?"stylesheet":HR,S||(b.as="script"),b.crossOrigin="",b.href=y,g&&b.setAttribute("nonce",g),document.head.appendChild(b),S)return new Promise((E,x)=>{b.addEventListener("load",E),b.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(h){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=h,window.dispatchEvent(g),!g.defaultPrevented)throw h}return c.then(h=>{for(const g of h||[])g.status==="rejected"&&f(g.reason);return i().catch(f)})},YR=()=>av(()=>import("./index-DrVJsks2.js"),__vite__mapDeps([0,1])),VR=Bg("/")({component:Hg(YR,"component")}),GR=/^[A-Za-z0-9_-]+$/;function XR(a){let i="";for(const u of a)i+=String.fromCharCode(u);return i}function QR(a){const i=new Uint8Array(a.length);for(let u=0;u<a.length;u++)i[u]=a.charCodeAt(u);return i}function lv(a){const i=new TextEncoder().encode(a);return btoa(XR(i)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function ZR(a){if(a.startsWith("%"))return decodeURIComponent(a);if(!GR.test(a))return a;try{const u=a.padEnd(Math.ceil(a.length/4)*4,"=").replace(/-/g,"+").replace(/_/g,"/"),r=atob(u);return new TextDecoder().decode(QR(r))}catch{return a}}function yT(a){return`/session/${lv(a)}`}const KR=()=>av(()=>import("./_sessionId-D-V84cgw.js"),__vite__mapDeps([2,1])),JR=Bg("/session/$sessionId")({component:Hg(KR,"component"),parseParams:a=>({sessionId:ZR(a.sessionId)}),stringifyParams:a=>({sessionId:lv(a.sessionId)})}),kR=VR.update({id:"/",path:"/",getParentRoute:()=>gf}),PR=JR.update({id:"/session/$sessionId",path:"/session/$sessionId",getParentRoute:()=>gf}),FR={IndexRoute:kR,SessionSessionIdRoute:PR},IR=gf._addFileChildren(FR);function WR(){const a=VE({routeTree:IR,scrollRestoration:!1});return $R(a),a}function $R(a){Object.getOwnPropertyDescriptor(a,"state")===void 0||Object.getOwnPropertyDescriptor(a,"stores")!==void 0||Object.defineProperty(a,"stores",{configurable:!0,value:{matches:{get:()=>a.state.matches}}})}async function tT(){const a=await WR();let i;return i=[],window.__TSS_START_OPTIONS__={serializationAdapters:i},i.push(Z2),a.options.serializationAdapters&&i.push(...a.options.serializationAdapters),a.update({basepath:"",serializationAdapters:i}),a.stores.matchesId.get().length||await J2(a),a}var eT=tT;async function nT(){const a=await eT();return window.$_TSR?.h(),a}var jc;function aT(){return jc||(jc=nT()),I.jsx(I2,{promise:jc,children:a=>I.jsx(QE,{router:a})})}W.startTransition(()=>{zS.hydrateRoot(document,I.jsx(W.StrictMode,{children:I.jsx(aT,{})}))});export{JR as R,yf as T,pf as U,av as _,pR as a,oT as b,lT as c,rT as d,hT as e,mT as f,ES as g,dT as h,zR as i,I as j,iT as k,mE as l,qn as m,OR as n,yT as o,cT as p,fT as q,W as r,sT as u};
76
+ `,gf=ME({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Agent Inspector"}],links:[{rel:"stylesheet",href:AR},{rel:"icon",type:"image/svg+xml",href:TR}]}),component:jR,notFoundComponent:BR});function jR(){return W.useEffect(()=>CR(),[]),I.jsx(nv,{children:I.jsx(Vg,{})})}function BR(){return I.jsx(nv,{children:I.jsx("main",{className:"min-h-screen bg-background text-foreground",children:I.jsx("div",{className:"mx-auto flex min-h-screen w-full max-w-3xl flex-col justify-center px-6 py-16",children:I.jsxs("div",{className:"border-border/70 bg-card/60 rounded-lg border p-8 shadow-sm",children:[I.jsx("div",{className:"text-muted-foreground font-mono text-xs uppercase tracking-wider",children:"404"}),I.jsx("h1",{className:"mt-3 text-2xl font-semibold",children:"Page not found"}),I.jsx("p",{className:"text-muted-foreground mt-3 max-w-xl text-sm leading-6",children:"This route is not part of the Agent Inspector UI or API surface."}),I.jsx("a",{href:"/",className:"bg-primary text-primary-foreground hover:bg-primary/90 mt-6 inline-flex h-9 items-center justify-center rounded-md px-4 text-sm font-medium transition-colors",children:"Open Agent Inspector"})]})})})})}function nv({children:a}){return I.jsxs("html",{lang:"en",className:"dark","data-theme":"dark",suppressHydrationWarning:!0,children:[I.jsxs("head",{children:[I.jsx("script",{dangerouslySetInnerHTML:{__html:UR}}),I.jsx("script",{dangerouslySetInnerHTML:{__html:NR}}),I.jsx(JE,{})]}),I.jsxs("body",{suppressHydrationWarning:!0,children:[I.jsx(RR,{value:{revalidateOnFocus:!1,revalidateIfStale:!1},children:a}),I.jsx(kE,{})]})]})}const HR="modulepreload",qR=function(a){return"/"+a},bp={},av=function(i,u,r){let c=Promise.resolve();if(u&&u.length>0){let p=function(y){return Promise.all(y.map(S=>Promise.resolve(S).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),g=h?.nonce||h?.getAttribute("nonce");c=p(u.map(y=>{if(y=qR(y),y in bp)return;bp[y]=!0;const S=y.endsWith(".css"),m=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${m}`))return;const b=document.createElement("link");if(b.rel=S?"stylesheet":HR,S||(b.as="script"),b.crossOrigin="",b.href=y,g&&b.setAttribute("nonce",g),document.head.appendChild(b),S)return new Promise((E,x)=>{b.addEventListener("load",E),b.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(h){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=h,window.dispatchEvent(g),!g.defaultPrevented)throw h}return c.then(h=>{for(const g of h||[])g.status==="rejected"&&f(g.reason);return i().catch(f)})},YR=()=>av(()=>import("./index-gY3I-7-D.js"),__vite__mapDeps([0,1])),VR=Bg("/")({component:Hg(YR,"component")}),GR=/^[A-Za-z0-9_-]+$/;function XR(a){let i="";for(const u of a)i+=String.fromCharCode(u);return i}function QR(a){const i=new Uint8Array(a.length);for(let u=0;u<a.length;u++)i[u]=a.charCodeAt(u);return i}function lv(a){const i=new TextEncoder().encode(a);return btoa(XR(i)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function ZR(a){if(a.startsWith("%"))return decodeURIComponent(a);if(!GR.test(a))return a;try{const u=a.padEnd(Math.ceil(a.length/4)*4,"=").replace(/-/g,"+").replace(/_/g,"/"),r=atob(u);return new TextDecoder().decode(QR(r))}catch{return a}}function yT(a){return`/session/${lv(a)}`}const KR=()=>av(()=>import("./_sessionId-BnKGmJrR.js"),__vite__mapDeps([2,1])),JR=Bg("/session/$sessionId")({component:Hg(KR,"component"),parseParams:a=>({sessionId:ZR(a.sessionId)}),stringifyParams:a=>({sessionId:lv(a.sessionId)})}),kR=VR.update({id:"/",path:"/",getParentRoute:()=>gf}),PR=JR.update({id:"/session/$sessionId",path:"/session/$sessionId",getParentRoute:()=>gf}),FR={IndexRoute:kR,SessionSessionIdRoute:PR},IR=gf._addFileChildren(FR);function WR(){const a=VE({routeTree:IR,scrollRestoration:!1});return $R(a),a}function $R(a){Object.getOwnPropertyDescriptor(a,"state")===void 0||Object.getOwnPropertyDescriptor(a,"stores")!==void 0||Object.defineProperty(a,"stores",{configurable:!0,value:{matches:{get:()=>a.state.matches}}})}async function tT(){const a=await WR();let i;return i=[],window.__TSS_START_OPTIONS__={serializationAdapters:i},i.push(Z2),a.options.serializationAdapters&&i.push(...a.options.serializationAdapters),a.update({basepath:"",serializationAdapters:i}),a.stores.matchesId.get().length||await J2(a),a}var eT=tT;async function nT(){const a=await eT();return window.$_TSR?.h(),a}var jc;function aT(){return jc||(jc=nT()),I.jsx(I2,{promise:jc,children:a=>I.jsx(QE,{router:a})})}W.startTransition(()=>{zS.hydrateRoot(document,I.jsx(W.StrictMode,{children:I.jsx(aT,{})}))});export{JR as R,yf as T,pf as U,av as _,pR as a,oT as b,lT as c,rT as d,hT as e,mT as f,ES as g,dT as h,zR as i,I as j,iT as k,mE as l,qn as m,OR as n,yT as o,cT as p,fT as q,W as r,sT as u};
@@ -1 +1 @@
1
- import{r,j as e}from"./index-CSIL7-MK.js";import{P as o}from"./ProxyViewerContainer-BJvwOrSi.js";function x(){const[t,n]=r.useState(!1);return r.useEffect(()=>{n(!0)},[]),t?e.jsx(o,{}):e.jsx("main",{className:"min-h-screen bg-background text-foreground",children:e.jsx("div",{className:"mx-auto flex min-h-screen w-full max-w-2xl flex-col justify-center px-6 py-16 text-center",children:e.jsx("div",{className:"rounded-[8px] border border-border bg-card px-4 py-8 shadow-sm",children:e.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Loading Inspector..."})})})})}export{x as component};
1
+ import{r,j as e}from"./index-B1atk19i.js";import{P as o}from"./ProxyViewerContainer-CYOXB81n.js";function x(){const[t,n]=r.useState(!1);return r.useEffect(()=>{n(!0)},[]),t?e.jsx(o,{}):e.jsx("main",{className:"min-h-screen bg-background text-foreground",children:e.jsx("div",{className:"mx-auto flex min-h-screen w-full max-w-2xl flex-col justify-center px-6 py-16 text-center",children:e.jsx("div",{className:"rounded-[8px] border border-border bg-card px-4 py-8 shadow-sm",children:e.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Loading Inspector..."})})})})}export{x as component};
@@ -1 +1 @@
1
- import{r as i,j as e}from"./index-CSIL7-MK.js";import{w as D,b as m,ac as G,i as R,j as V,Y as U,h as W,x as q,y as H,z as Q,k as z,ad as X}from"./ProxyViewerContainer-BJvwOrSi.js";function M(s){if(s===null)return"null";if(Array.isArray(s))return"array";switch(typeof s){case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"object":return"object";case"bigint":case"symbol":case"undefined":case"function":return"object"}}function g(s){return s!==null&&(Array.isArray(s)||typeof s=="object")}function $(s){return Array.isArray(s)?s.map((t,n)=>[String(n),t]):typeof s=="object"&&s!==null?Object.entries(s):[]}const J=120;function O({text:s}){return e.jsx("span",{className:"whitespace-pre-wrap break-words",children:s})}function Z({text:s}){const[t,n]=i.useState(!1);return s.length>J?e.jsxs("span",{className:"text-emerald-400 break-all",children:['"',t?e.jsx("span",{className:"cursor-pointer",onClick:r=>{r.stopPropagation(),n(!1)},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.stopPropagation(),n(!1))},role:"button",tabIndex:0,children:e.jsx(O,{text:s})}):e.jsxs(q,{delayDuration:300,children:[e.jsxs(H,{onClick:r=>{r.stopPropagation(),n(!0)},className:"text-left cursor-pointer",children:[e.jsx("span",{children:s.slice(0,J)}),e.jsx("span",{className:"text-emerald-400/50",children:"..."})]}),e.jsxs(Q,{side:"bottom",className:"max-w-md text-xs p-2 break-words whitespace-pre-wrap",children:[s.slice(0,500),s.length>500?"...":""]})]}),'"']}):e.jsxs("span",{className:"text-emerald-400 break-all",children:['"',e.jsx(O,{text:s}),'"']})}function B({value:s}){if(s===null)return e.jsx("span",{className:"text-rose-400 italic",children:"null"});switch(typeof s){case"string":return e.jsx(Z,{text:s});case"number":return e.jsx("span",{className:"text-amber-400",children:s});case"boolean":return e.jsx("span",{className:"text-blue-400",children:s?"true":"false"});case"object":case"bigint":case"symbol":case"undefined":case"function":return e.jsx("span",{className:"text-muted-foreground",children:JSON.stringify(s)})}}function A({value:s}){const[t,n]=i.useState(!1);function a(r){r.stopPropagation(),z(JSON.stringify(s,null,2)).then(d=>{d&&(n(!0),setTimeout(()=>{n(!1)},2e3))})}return e.jsx("button",{type:"button",onClick:a,className:"inline-flex items-center gap-1 text-[10px] text-muted-foreground hover:text-foreground transition-colors","aria-label":t?"Copied JSON":"Copy JSON",title:"Copy JSON",children:t?e.jsx(R,{className:"size-3 text-green-500"}):e.jsx(V,{className:"size-3"})})}function ee({value:s}){const[t,n]=i.useState(!1);function a(r){r.stopPropagation(),z(JSON.stringify(s,null,2)).then(d=>{d&&(n(!0),setTimeout(()=>{n(!1)},2e3))})}return e.jsx("button",{type:"button",onClick:a,className:"opacity-0 group-hover/row:opacity-100 hover:bg-muted p-0.5 rounded transition-opacity shrink-0","aria-label":t?"Copied JSON value":"Copy JSON value",title:"Copy to clipboard",children:t?e.jsx(R,{className:"size-3 text-green-500"}):e.jsx(V,{className:"size-3 text-muted-foreground"})})}function se({onClick:s}){return e.jsx("button",{type:"button",onClick:s,className:"opacity-0 group-hover/row:opacity-100 hover:bg-muted p-0.5 rounded transition-opacity shrink-0",title:"Expand all descendants",children:e.jsx(X,{className:"size-3.5 text-muted-foreground"})})}const ne=i.memo(function s({name:t,value:n,level:a,defaultExpandDepth:r,isArrayItem:d,path:l,expandTargetPath:u,anatomyPaths:f}){const h=i.useMemo(()=>u===null?!1:l===""?u.length>0:u===l||u.startsWith(`${l}/`),[u,l]),C=a<r||h&&g(n),[p,j]=i.useState(C);i.useEffect(()=>{h&&g(n)&&!p&&j(!0)},[u]);const[y,x]=i.useState(0),[N,w]=i.useState(null),c=g(n),v=N===Number.POSITIVE_INFINITY,b=i.useMemo(()=>$(n),[n]),S=i.useMemo(()=>b.some(([,o])=>g(o)),[b]),k=M(n),F=k==="array"?"[":"{",T=k==="array"?"]":"}",K=f!==null&&f.has(l);function E(){j(!0),w(Number.POSITIVE_INFINITY),x(o=>o+1)}function P(){j(!1),w(0),x(o=>o+1)}function I(){v?P():j(!p)}function _(o){o.stopPropagation(),E()}const L=N??r;return e.jsxs("div",{className:m(a>0&&"border-l border-border/50 ml-2"),children:[e.jsxs("div",{className:m("flex items-start gap-1 py-0.5 px-1 -ml-1 rounded-sm group/row",c&&"cursor-pointer hover:bg-muted/50"),"data-anatomy-path":K?l:void 0,onClick:c?I:void 0,onKeyDown:c?o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),I())}:void 0,onDoubleClick:c&&S?()=>E():void 0,role:c?"button":void 0,tabIndex:c?0:void 0,children:[c?e.jsx("span",{className:"w-4 h-5 flex items-center justify-center shrink-0",children:p?e.jsx(U,{className:"size-3 text-muted-foreground"}):e.jsx(W,{className:"size-3 text-muted-foreground"})}):e.jsx("span",{className:"w-4 shrink-0"}),e.jsx("span",{className:m("shrink-0",d?"text-muted-foreground":"text-cyan-400"),children:d?t:`"${t}"`}),e.jsx("span",{className:"text-muted-foreground shrink-0",children:c?"":":"}),c?e.jsxs("span",{className:"text-muted-foreground",children:[F,e.jsxs("span",{className:"text-muted-foreground/60 text-xs",children:[" ",b.length," ",b.length===1?"item":"items"," ",T]})]}):e.jsx("span",{className:"min-w-0",children:e.jsx(B,{value:n})}),c&&S&&!v&&e.jsx(se,{onClick:_}),e.jsx(ee,{value:n})]}),c&&p&&e.jsxs("div",{className:"pl-4",children:[b.map(([o,Y])=>e.jsx(s,{name:o,value:Y,level:a+1,defaultExpandDepth:L,isArrayItem:k==="array",path:l===""?`/${o}`:`${l}/${o}`,expandTargetPath:u,anatomyPaths:f},o)),e.jsx("div",{className:"text-muted-foreground py-0.5 px-1",children:T})]},y)]})});function te({data:s,defaultExpandDepth:t=0,className:n,showCopy:a=!1,bulkDepth:r,bulkRevision:d,anatomyPaths:l=null,expandToPath:u=null}){const f=g(s),h=i.useMemo(()=>$(s),[s]),C=r??t,p=d??0;if(!f)return e.jsx(D,{children:e.jsx("div",{className:m("font-mono text-xs leading-relaxed",n),children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(B,{value:s}),a&&e.jsx(A,{value:s})]})})});const y=M(s)==="array";return e.jsx(D,{children:e.jsxs("div",{className:m("font-mono text-xs leading-relaxed",n),children:[a&&e.jsx("div",{className:"mb-2 flex items-center justify-end gap-2",children:e.jsx(A,{value:s})}),h.length===0&&e.jsxs("div",{className:"rounded-md border border-white/10 bg-black/20 px-3 py-2 text-muted-foreground",children:[e.jsx("span",{className:"text-cyan-300",children:y?"[]":"{}"}),e.jsx("span",{className:"ml-2 text-[10px] uppercase",children:"0 items"})]}),e.jsx("div",{children:h.map(([x,N])=>e.jsx(ne,{name:x,value:N,level:0,defaultExpandDepth:C,isArrayItem:y,path:`/${x}`,expandTargetPath:u,anatomyPaths:l},x))},p)]})})}const ae=i.memo(function({text:t,defaultExpandDepth:n=0,className:a,bulkDepth:r,bulkRevision:d}){const l=i.useMemo(()=>G(t),[t]);return l.kind==="json"?e.jsx(te,{data:l.data,defaultExpandDepth:n,className:a,bulkDepth:r,bulkRevision:d}):e.jsx("pre",{className:m("font-mono text-xs whitespace-pre-wrap break-words",a),children:t})});export{te as JsonViewer,ae as JsonViewerFromString};
1
+ import{r as i,j as e}from"./index-B1atk19i.js";import{w as D,b as m,ac as G,i as R,j as V,Y as U,h as W,x as q,y as H,z as Q,k as z,ad as X}from"./ProxyViewerContainer-CYOXB81n.js";function M(s){if(s===null)return"null";if(Array.isArray(s))return"array";switch(typeof s){case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"object":return"object";case"bigint":case"symbol":case"undefined":case"function":return"object"}}function g(s){return s!==null&&(Array.isArray(s)||typeof s=="object")}function $(s){return Array.isArray(s)?s.map((t,n)=>[String(n),t]):typeof s=="object"&&s!==null?Object.entries(s):[]}const J=120;function O({text:s}){return e.jsx("span",{className:"whitespace-pre-wrap break-words",children:s})}function Z({text:s}){const[t,n]=i.useState(!1);return s.length>J?e.jsxs("span",{className:"text-emerald-400 break-all",children:['"',t?e.jsx("span",{className:"cursor-pointer",onClick:r=>{r.stopPropagation(),n(!1)},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.stopPropagation(),n(!1))},role:"button",tabIndex:0,children:e.jsx(O,{text:s})}):e.jsxs(q,{delayDuration:300,children:[e.jsxs(H,{onClick:r=>{r.stopPropagation(),n(!0)},className:"text-left cursor-pointer",children:[e.jsx("span",{children:s.slice(0,J)}),e.jsx("span",{className:"text-emerald-400/50",children:"..."})]}),e.jsxs(Q,{side:"bottom",className:"max-w-md text-xs p-2 break-words whitespace-pre-wrap",children:[s.slice(0,500),s.length>500?"...":""]})]}),'"']}):e.jsxs("span",{className:"text-emerald-400 break-all",children:['"',e.jsx(O,{text:s}),'"']})}function B({value:s}){if(s===null)return e.jsx("span",{className:"text-rose-400 italic",children:"null"});switch(typeof s){case"string":return e.jsx(Z,{text:s});case"number":return e.jsx("span",{className:"text-amber-400",children:s});case"boolean":return e.jsx("span",{className:"text-blue-400",children:s?"true":"false"});case"object":case"bigint":case"symbol":case"undefined":case"function":return e.jsx("span",{className:"text-muted-foreground",children:JSON.stringify(s)})}}function A({value:s}){const[t,n]=i.useState(!1);function a(r){r.stopPropagation(),z(JSON.stringify(s,null,2)).then(d=>{d&&(n(!0),setTimeout(()=>{n(!1)},2e3))})}return e.jsx("button",{type:"button",onClick:a,className:"inline-flex items-center gap-1 text-[10px] text-muted-foreground hover:text-foreground transition-colors","aria-label":t?"Copied JSON":"Copy JSON",title:"Copy JSON",children:t?e.jsx(R,{className:"size-3 text-green-500"}):e.jsx(V,{className:"size-3"})})}function ee({value:s}){const[t,n]=i.useState(!1);function a(r){r.stopPropagation(),z(JSON.stringify(s,null,2)).then(d=>{d&&(n(!0),setTimeout(()=>{n(!1)},2e3))})}return e.jsx("button",{type:"button",onClick:a,className:"opacity-0 group-hover/row:opacity-100 hover:bg-muted p-0.5 rounded transition-opacity shrink-0","aria-label":t?"Copied JSON value":"Copy JSON value",title:"Copy to clipboard",children:t?e.jsx(R,{className:"size-3 text-green-500"}):e.jsx(V,{className:"size-3 text-muted-foreground"})})}function se({onClick:s}){return e.jsx("button",{type:"button",onClick:s,className:"opacity-0 group-hover/row:opacity-100 hover:bg-muted p-0.5 rounded transition-opacity shrink-0",title:"Expand all descendants",children:e.jsx(X,{className:"size-3.5 text-muted-foreground"})})}const ne=i.memo(function s({name:t,value:n,level:a,defaultExpandDepth:r,isArrayItem:d,path:l,expandTargetPath:u,anatomyPaths:f}){const h=i.useMemo(()=>u===null?!1:l===""?u.length>0:u===l||u.startsWith(`${l}/`),[u,l]),C=a<r||h&&g(n),[p,j]=i.useState(C);i.useEffect(()=>{h&&g(n)&&!p&&j(!0)},[u]);const[y,x]=i.useState(0),[N,w]=i.useState(null),c=g(n),v=N===Number.POSITIVE_INFINITY,b=i.useMemo(()=>$(n),[n]),S=i.useMemo(()=>b.some(([,o])=>g(o)),[b]),k=M(n),F=k==="array"?"[":"{",T=k==="array"?"]":"}",K=f!==null&&f.has(l);function E(){j(!0),w(Number.POSITIVE_INFINITY),x(o=>o+1)}function P(){j(!1),w(0),x(o=>o+1)}function I(){v?P():j(!p)}function _(o){o.stopPropagation(),E()}const L=N??r;return e.jsxs("div",{className:m(a>0&&"border-l border-border/50 ml-2"),children:[e.jsxs("div",{className:m("flex items-start gap-1 py-0.5 px-1 -ml-1 rounded-sm group/row",c&&"cursor-pointer hover:bg-muted/50"),"data-anatomy-path":K?l:void 0,onClick:c?I:void 0,onKeyDown:c?o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),I())}:void 0,onDoubleClick:c&&S?()=>E():void 0,role:c?"button":void 0,tabIndex:c?0:void 0,children:[c?e.jsx("span",{className:"w-4 h-5 flex items-center justify-center shrink-0",children:p?e.jsx(U,{className:"size-3 text-muted-foreground"}):e.jsx(W,{className:"size-3 text-muted-foreground"})}):e.jsx("span",{className:"w-4 shrink-0"}),e.jsx("span",{className:m("shrink-0",d?"text-muted-foreground":"text-cyan-400"),children:d?t:`"${t}"`}),e.jsx("span",{className:"text-muted-foreground shrink-0",children:c?"":":"}),c?e.jsxs("span",{className:"text-muted-foreground",children:[F,e.jsxs("span",{className:"text-muted-foreground/60 text-xs",children:[" ",b.length," ",b.length===1?"item":"items"," ",T]})]}):e.jsx("span",{className:"min-w-0",children:e.jsx(B,{value:n})}),c&&S&&!v&&e.jsx(se,{onClick:_}),e.jsx(ee,{value:n})]}),c&&p&&e.jsxs("div",{className:"pl-4",children:[b.map(([o,Y])=>e.jsx(s,{name:o,value:Y,level:a+1,defaultExpandDepth:L,isArrayItem:k==="array",path:l===""?`/${o}`:`${l}/${o}`,expandTargetPath:u,anatomyPaths:f},o)),e.jsx("div",{className:"text-muted-foreground py-0.5 px-1",children:T})]},y)]})});function te({data:s,defaultExpandDepth:t=0,className:n,showCopy:a=!1,bulkDepth:r,bulkRevision:d,anatomyPaths:l=null,expandToPath:u=null}){const f=g(s),h=i.useMemo(()=>$(s),[s]),C=r??t,p=d??0;if(!f)return e.jsx(D,{children:e.jsx("div",{className:m("font-mono text-xs leading-relaxed",n),children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(B,{value:s}),a&&e.jsx(A,{value:s})]})})});const y=M(s)==="array";return e.jsx(D,{children:e.jsxs("div",{className:m("font-mono text-xs leading-relaxed",n),children:[a&&e.jsx("div",{className:"mb-2 flex items-center justify-end gap-2",children:e.jsx(A,{value:s})}),h.length===0&&e.jsxs("div",{className:"rounded-md border border-white/10 bg-black/20 px-3 py-2 text-muted-foreground",children:[e.jsx("span",{className:"text-cyan-300",children:y?"[]":"{}"}),e.jsx("span",{className:"ml-2 text-[10px] uppercase",children:"0 items"})]}),e.jsx("div",{children:h.map(([x,N])=>e.jsx(ne,{name:x,value:N,level:0,defaultExpandDepth:C,isArrayItem:y,path:`/${x}`,expandTargetPath:u,anatomyPaths:l},x))},p)]})})}const ae=i.memo(function({text:t,defaultExpandDepth:n=0,className:a,bulkDepth:r,bulkRevision:d}){const l=i.useMemo(()=>G(t),[t]);return l.kind==="json"?e.jsx(te,{data:l.data,defaultExpandDepth:n,className:a,bulkDepth:r,bulkRevision:d}):e.jsx("pre",{className:m("font-mono text-xs whitespace-pre-wrap break-words",a),children:t})});export{te as JsonViewer,ae as JsonViewerFromString};
@@ -952,8 +952,8 @@ export {
952
952
  ExternalLink as a5,
953
953
  Clock as a6,
954
954
  RotateCw as a7,
955
- Pencil as a8,
956
- MessageSquare as a9,
955
+ CircleCheckBig as a8,
956
+ Pencil as a9,
957
957
  Ellipsis as aA,
958
958
  CodeXml as aB,
959
959
  Blocks as aC,
@@ -965,10 +965,10 @@ export {
965
965
  Braces as aI,
966
966
  Minimize2 as aJ,
967
967
  CircleStop as aK,
968
- Zap as aa,
969
- Wrench as ab,
970
- Brain as ac,
971
- CircleCheckBig as ad,
968
+ MessageSquare as aa,
969
+ Zap as ab,
970
+ Wrench as ac,
971
+ Brain as ad,
972
972
  Minus as ae,
973
973
  CircleX as af,
974
974
  ShieldCheck as ag,
@@ -1,6 +1,6 @@
1
1
  import { j as jsxRuntimeExports, r as reactExports } from "./_libs/react.mjs";
2
- import { P as ProxyViewerContainer } from "./_ssr/ProxyViewerContainer-CMC7Vsbw.mjs";
3
- import { R as Route$K } from "./_ssr/router-CZe_R31M.mjs";
2
+ import { P as ProxyViewerContainer } from "./_ssr/ProxyViewerContainer-CbyBpCAj.mjs";
3
+ import { R as Route$K } from "./_ssr/router-Dgx6-ot3.mjs";
4
4
  import "./_libs/jszip.mjs";
5
5
  import "./_libs/react-dom.mjs";
6
6
  import "node:fs";
@@ -11,6 +11,7 @@ import "node:child_process";
11
11
  import "node:url";
12
12
  import "crypto";
13
13
  import "node:util";
14
+ import "node:net";
14
15
  import "./_libs/modelcontextprotocol__server.mjs";
15
16
  import "node:os";
16
17
  import "./_libs/swr.mjs";
@@ -97,6 +98,7 @@ import "./_libs/debounce-fn.mjs";
97
98
  import "./_libs/mimic-function.mjs";
98
99
  import "./_libs/semver.mjs";
99
100
  import "./_libs/uint8array-extras.mjs";
101
+ import "node:dns/promises";
100
102
  import "node:worker_threads";
101
103
  import "util";
102
104
  import "async_hooks";
@@ -1,6 +1,6 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
2
- import { g as getLogFormatAdapter, r as resolveLogFormat, a as getConversationId, c as cn, B as Badge, f as formatTokens, b as copyTextToClipboard, L as LazyJsonViewerFromString } from "./ProxyViewerContainer-CMC7Vsbw.mjs";
3
- import "./router-CZe_R31M.mjs";
2
+ import { g as getLogFormatAdapter, r as resolveLogFormat, a as getConversationId, c as cn, B as Badge, f as formatTokens, b as copyTextToClipboard, L as LazyJsonViewerFromString } from "./ProxyViewerContainer-CbyBpCAj.mjs";
3
+ import "./router-Dgx6-ot3.mjs";
4
4
  import "node:fs";
5
5
  import "node:buffer";
6
6
  import "node:path";
@@ -9,11 +9,12 @@ import "node:child_process";
9
9
  import "node:url";
10
10
  import "crypto";
11
11
  import "node:util";
12
+ import "node:net";
12
13
  import "../_libs/modelcontextprotocol__server.mjs";
13
14
  import "../_libs/jszip.mjs";
14
15
  import "node:os";
15
16
  import "../_libs/react-dom.mjs";
16
- import { X, aF as Rows3, aG as Columns2, ae as Minus, g as Plus, a8 as Pencil, m as ChevronRight, aH as Equal, b as Check, j as Copy } from "../_libs/lucide-react.mjs";
17
+ import { X, aF as Rows3, aG as Columns2, ae as Minus, g as Plus, a9 as Pencil, m as ChevronRight, aH as Equal, b as Check, j as Copy } from "../_libs/lucide-react.mjs";
17
18
  import "../_libs/swr.mjs";
18
19
  import "../_libs/use-sync-external-store.mjs";
19
20
  import "../_libs/dequal.mjs";
@@ -97,6 +98,7 @@ import "../_libs/debounce-fn.mjs";
97
98
  import "../_libs/mimic-function.mjs";
98
99
  import "../_libs/semver.mjs";
99
100
  import "../_libs/uint8array-extras.mjs";
101
+ import "node:dns/promises";
100
102
  import "node:worker_threads";
101
103
  import "util";
102
104
  import "async_hooks";
@@ -1,5 +1,5 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports, R as React } from "../_libs/react.mjs";
2
- import { C as CapturedLogSchema, z as DeleteInspectorGroupsResponseSchema, D as DEFAULT_CAPTURE_MODE, a as DEFAULT_SLOW_RESPONSE_THRESHOLD_SECONDS, b as DEFAULT_PROVIDER_TEST_TIMEOUT_SECONDS, c as DEFAULT_TIME_DISPLAY_FORMAT, d as RuntimeConfigSchema, g as readStoredUiScalePreference, h as persistUiScalePreference, i as applyUiScalePreference, w as extractStopReason, p as packageJson, P as ProviderConfigSchema, U as UI_SCALE_STORAGE_KEY, j as normalizeUiScalePreference, q as apiFormatForPath, B as GroupEvidenceExportResultSchema, E as DeleteInspectorGroupResponseSchema, $ as PiAgentResponseSchema, v as isTurnBoundary, r as readStoredThemeMode, e as applyThemeMode, f as persistThemeMode, a2 as formatUiScale, x as AlertSummarySchema, y as AlertListResponseSchema, I as InspectorGroupsListResponseSchema, G as GroupEvidenceReadResponseSchema, V as createPendingProviderTestResults, W as ProviderTestResultsSchema, X as createFailedProviderTestResults, Y as MAX_SLOW_RESPONSE_THRESHOLD_SECONDS, Z as MAX_PROVIDER_TEST_TIMEOUT_SECONDS, _ as TimeDisplayFormatSchema, T as THEME_MODE_STORAGE_KEY, n as normalizeThemeMode, M as PATH_V1_MESSAGES, N as PATH_V1_CHAT_COMPLETIONS, Q as PATH_V1_RESPONSES, H as maskApiKey, F as providerHasContextMetadata, l as parseOpenAIResponse, m as parseOpenAIResponsesResponse, O as OpenAIRequestSchema, o as OpenAIResponsesRequestSchema, A as AnthropicResponseSchema$1, k as AnthropicRequestSchema, s as safeGetOwnProperty, a0 as resolveProviderContextWindow, t as getSessionPath, J as findProviderModelMetadata, S as previewUpstreamUrl, K as KnowledgeCandidateSchema, a1 as isPlainRecord, u as stripClaudeCodeBillingHeader, L as LogBodyChunkSchema } from "./router-CZe_R31M.mjs";
2
+ import { C as CapturedLogSchema, B as DeleteInspectorGroupsResponseSchema, D as DEFAULT_CAPTURE_MODE, a as DEFAULT_SLOW_RESPONSE_THRESHOLD_SECONDS, b as DEFAULT_PROVIDER_TEST_TIMEOUT_SECONDS, c as DEFAULT_TIME_DISPLAY_FORMAT, d as RuntimeConfigSchema, g as readStoredUiScalePreference, h as persistUiScalePreference, j as applyUiScalePreference, x as extractStopReason, p as packageJson, P as ProviderConfigSchema, U as UI_SCALE_STORAGE_KEY, k as normalizeUiScalePreference, t as apiFormatForPath, E as GroupEvidenceExportResultSchema, F as DeleteInspectorGroupResponseSchema, $ as PiAgentResponseSchema, w as isTurnBoundary, r as readStoredThemeMode, e as applyThemeMode, f as persistThemeMode, a2 as formatUiScale, y as AlertSummarySchema, z as AlertListResponseSchema, I as InspectorGroupsListResponseSchema, G as GroupEvidenceReadResponseSchema, V as createPendingProviderTestResults, W as ProviderTestResultsSchema, X as createFailedProviderTestResults, Y as MAX_SLOW_RESPONSE_THRESHOLD_SECONDS, Z as MAX_PROVIDER_TEST_TIMEOUT_SECONDS, _ as TimeDisplayFormatSchema, i as isRecord, T as THEME_MODE_STORAGE_KEY, n as normalizeThemeMode, M as PATH_V1_MESSAGES, N as PATH_V1_CHAT_COMPLETIONS, Q as PATH_V1_RESPONSES, H as providerHasContextMetadata, m as parseOpenAIResponse, o as parseOpenAIResponsesResponse, O as OpenAIRequestSchema, q as OpenAIResponsesRequestSchema, A as AnthropicResponseSchema$1, l as AnthropicRequestSchema, s as safeGetOwnProperty, a0 as resolveProviderContextWindow, u as getSessionPath, J as findProviderModelMetadata, S as previewUpstreamUrl, K as KnowledgeCandidateSchema, a1 as isPlainRecord, v as stripClaudeCodeBillingHeader, L as LogBodyChunkSchema } from "./router-Dgx6-ot3.mjs";
3
3
  import { u as useSWR, a as useSWRConfig } from "../_libs/swr.mjs";
4
4
  import { J as JSZip } from "../_libs/jszip.mjs";
5
5
  import { c as clsx } from "../_libs/clsx.mjs";
@@ -9,7 +9,7 @@ import { u as useWindowVirtualizer, a as useVirtualizer } from "../_libs/tanstac
9
9
  import { d as diffJson, a as diffLines } from "../_libs/diff.mjs";
10
10
  import { r as reactDomExports } from "../_libs/react-dom.mjs";
11
11
  import { W as WebGLRenderer, S as SRGBColorSpace, A as ACESFilmicToneMapping, a as Scene, O as OrthographicCamera, M as MeshPhysicalMaterial, C as Color, G as Group, b as Mesh, c as CircleGeometry, d as MeshBasicMaterial, e as SphereGeometry, f as AmbientLight, H as HemisphereLight, D as DirectionalLight, P as PointLight, V as Vector3, g as CylinderGeometry } from "../_libs/three.mjs";
12
- import { T as TriangleAlert, C as CircleCheck, X, I as Info, a as ChevronDown, b as Check, P as PanelRightOpen, c as PanelRightClose, S as Search, U as Upload, D as Download, F as FileBraces, R as RefreshCw, d as Trash2, H as Heart, e as Pause, f as Play, g as Plus, B as BrainCircuit, L as LoaderCircle, h as Send, A as ArrowLeft, i as ChevronUp, j as Copy, k as ChevronsLeft, l as ChevronLeft, m as ChevronRight, n as ChevronsRight, o as Clapperboard, p as Flag, q as Siren, r as Timer, G as Gauge, s as Sun, E as Eye, M as Moon, t as ALargeSmall, u as Layers, v as FlaskConical, w as Sparkles, x as Activity, y as Beaker, N as Network, z as Terminal, J as Settings, K as Monitor, O as Rocket, Q as PackageCheck, V as History, W as Scan, Y as CircleAlert, Z as ArrowUpRight, _ as ArrowDownRight, $ as Cpu, a0 as FolderOpen, a1 as Bell, a2 as Clock3, a3 as ShieldAlert, a4 as EyeOff, a5 as ExternalLink, a6 as Clock, a7 as RotateCw, a8 as Pencil, a9 as MessageSquare, aa as Zap, ab as Wrench, ac as Brain, ad as CircleCheckBig, ae as Minus, af as CircleX, ag as ShieldCheck, ah as Save, ai as FileSearch, aj as CloudUpload, ak as CircleQuestionMark, al as Server, am as Lock, an as Wifi, ao as WifiOff, ap as OctagonAlert, aq as Radio, ar as Globe, as as FileTerminal, at as ChevronsUp, au as ChevronsDown, av as FileDiff, aw as RotateCcw, ax as GitCompareArrows, ay as ArrowUp, az as ArrowDown, aA as Ellipsis, aB as CodeXml, aC as Blocks, aD as MousePointerClick, aE as FileText, aF as Rows3, aG as Columns2 } from "../_libs/lucide-react.mjs";
12
+ import { T as TriangleAlert, C as CircleCheck, X, I as Info, a as ChevronDown, b as Check, P as PanelRightOpen, c as PanelRightClose, S as Search, U as Upload, D as Download, F as FileBraces, R as RefreshCw, d as Trash2, H as Heart, e as Pause, f as Play, g as Plus, B as BrainCircuit, L as LoaderCircle, h as Send, A as ArrowLeft, i as ChevronUp, j as Copy, k as ChevronsLeft, l as ChevronLeft, m as ChevronRight, n as ChevronsRight, o as Clapperboard, p as Flag, q as Siren, r as Timer, G as Gauge, s as Sun, E as Eye, M as Moon, t as ALargeSmall, u as Layers, v as FlaskConical, w as Sparkles, x as Activity, y as Beaker, N as Network, z as Terminal, J as Settings, K as Monitor, O as Rocket, Q as PackageCheck, V as History, W as Scan, Y as CircleAlert, Z as ArrowUpRight, _ as ArrowDownRight, $ as Cpu, a0 as FolderOpen, a1 as Bell, a2 as Clock3, a3 as ShieldAlert, a4 as EyeOff, a5 as ExternalLink, a6 as Clock, a7 as RotateCw, a8 as CircleCheckBig, a9 as Pencil, aa as MessageSquare, ab as Zap, ac as Wrench, ad as Brain, ae as Minus, af as CircleX, ag as ShieldCheck, ah as Save, ai as FileSearch, aj as CloudUpload, ak as CircleQuestionMark, al as Server, am as Lock, an as Wifi, ao as WifiOff, ap as OctagonAlert, aq as Radio, ar as Globe, as as FileTerminal, at as ChevronsUp, au as ChevronsDown, av as FileDiff, aw as RotateCcw, ax as GitCompareArrows, ay as ArrowUp, az as ArrowDown, aA as Ellipsis, aB as CodeXml, aC as Blocks, aD as MousePointerClick, aE as FileText, aF as Rows3, aG as Columns2 } from "../_libs/lucide-react.mjs";
13
13
  import { u as union, o as object, e as array, l as literal, n as number, d as boolean, b as string, _ as _enum } from "../_libs/zod.mjs";
14
14
  import { S as Select$1, a as SelectTrigger$1, b as SelectIcon, c as SelectValue$1, d as SelectPortal, e as SelectContent$1, f as SelectViewport, g as SelectItem$1, h as SelectItemIndicator, i as SelectItemText, j as SelectScrollUpButton$1, k as SelectScrollDownButton$1 } from "../_libs/radix-ui__react-select.mjs";
15
15
  import { D as Dialog$1, a as DialogContent$1, b as DialogClose, c as DialogTitle$1, d as DialogDescription$1, e as DialogPortal$1, f as DialogOverlay$1, g as DialogTrigger$1 } from "../_libs/radix-ui__react-dialog.mjs";
@@ -391,9 +391,6 @@ async function fetchStreamingChunks(logId, signal) {
391
391
  return null;
392
392
  }
393
393
  }
394
- function isRecord(value) {
395
- return typeof value === "object" && value !== null && !Array.isArray(value);
396
- }
397
394
  function redactValue(value) {
398
395
  if (Array.isArray(value)) return value.map((item) => redactValue(item));
399
396
  if (!isRecord(value)) return value;
@@ -690,7 +687,7 @@ async function fetcher(url) {
690
687
  }
691
688
  function useProviders() {
692
689
  const response = useSWR(
693
- "/api/providers?includeSecrets=1",
690
+ "/api/providers",
694
691
  fetcher,
695
692
  {
696
693
  revalidateOnFocus: false,
@@ -2527,27 +2524,27 @@ function useCopyFeedback(text) {
2527
2524
  return { copied, copy };
2528
2525
  }
2529
2526
  const LazyCompareDrawer = reactExports.lazy(
2530
- () => import("./CompareDrawer-CqNzIeMR.mjs").then((m) => ({ default: m.CompareDrawer }))
2527
+ () => import("./CompareDrawer-K2k9G7r1.mjs").then((m) => ({ default: m.CompareDrawer }))
2531
2528
  );
2532
2529
  const LazyReplayDialog = reactExports.lazy(
2533
- () => import("./ReplayDialog-D9p_LaTr.mjs").then((m) => ({ default: m.ReplayDialog }))
2530
+ () => import("./ReplayDialog-DacI2Iv0.mjs").then((m) => ({ default: m.ReplayDialog }))
2534
2531
  );
2535
2532
  const LazyRequestAnatomy = reactExports.lazy(
2536
- () => import("./RequestAnatomy-B4ge3qNZ.mjs").then((m) => ({ default: m.RequestAnatomy }))
2533
+ () => import("./RequestAnatomy-gh-pAdkO.mjs").then((m) => ({ default: m.RequestAnatomy }))
2537
2534
  );
2538
2535
  const LazyResponseView = reactExports.lazy(
2539
- () => import("./ResponseView-BCqMKApI.mjs").then((m) => ({ default: m.ResponseView }))
2536
+ () => import("./ResponseView-BRJKN50-.mjs").then((m) => ({ default: m.ResponseView }))
2540
2537
  );
2541
2538
  const LazyStreamingChunkSequence = reactExports.lazy(
2542
- () => import("./StreamingChunkSequence-BA4zTLE4.mjs").then((m) => ({
2539
+ () => import("./StreamingChunkSequence-BQLVEuWY.mjs").then((m) => ({
2543
2540
  default: m.StreamingChunkSequence
2544
2541
  }))
2545
2542
  );
2546
2543
  const LazyJsonViewer = reactExports.lazy(
2547
- () => import("./json-viewer-B3qV6iEJ.mjs").then((m) => ({ default: m.JsonViewer }))
2544
+ () => import("./json-viewer-DNs1ZjKI.mjs").then((m) => ({ default: m.JsonViewer }))
2548
2545
  );
2549
2546
  const LazyJsonViewerFromString = reactExports.lazy(
2550
- () => import("./json-viewer-B3qV6iEJ.mjs").then((m) => ({ default: m.JsonViewerFromString }))
2547
+ () => import("./json-viewer-DNs1ZjKI.mjs").then((m) => ({ default: m.JsonViewerFromString }))
2551
2548
  );
2552
2549
  const HIGHLIGHT_DURATION_MS = 1200;
2553
2550
  const MAX_HIGHLIGHT_ATTEMPTS = 12;
@@ -9067,16 +9064,7 @@ function ProviderCard({
9067
9064
  onRefreshMetadata,
9068
9065
  isRefreshingMetadata = false
9069
9066
  }) {
9070
- const [showApiKey, setShowApiKey] = reactExports.useState(false);
9071
- const [copied, setCopied] = reactExports.useState(false);
9072
9067
  const [showDetails, setShowDetails] = reactExports.useState(false);
9073
- function handleCopy() {
9074
- void copyTextToClipboard(provider.apiKey).then((success) => {
9075
- if (!success) return;
9076
- setCopied(true);
9077
- setTimeout(() => setCopied(false), 2e3);
9078
- });
9079
- }
9080
9068
  const docsUrl = provider.apiDocsUrl ?? Object.entries(KNOWN_PROVIDER_DOCS).find(
9081
9069
  ([keyword]) => provider.name.toLowerCase().includes(keyword)
9082
9070
  )?.[1];
@@ -9163,28 +9151,9 @@ function ProviderCard({
9163
9151
  ] })
9164
9152
  ] }),
9165
9153
  showDetails && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-3 border-t border-border/60 pt-3", children: [
9166
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
9167
- /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: "flex-1 truncate rounded bg-muted px-2 py-1 text-xs text-muted-foreground", children: showApiKey ? provider.apiKey : maskApiKey(provider.apiKey) }),
9168
- /* @__PURE__ */ jsxRuntimeExports.jsx(
9169
- "button",
9170
- {
9171
- type: "button",
9172
- onClick: () => setShowApiKey((s) => !s),
9173
- className: "p-1 text-muted-foreground transition-colors hover:text-foreground",
9174
- "aria-label": showApiKey ? "Hide API key" : "Show API key",
9175
- children: showApiKey ? /* @__PURE__ */ jsxRuntimeExports.jsx(EyeOff, { className: "size-4" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Eye, { className: "size-4" })
9176
- }
9177
- ),
9178
- /* @__PURE__ */ jsxRuntimeExports.jsx(
9179
- "button",
9180
- {
9181
- type: "button",
9182
- onClick: handleCopy,
9183
- className: "p-1 text-muted-foreground transition-colors hover:text-foreground",
9184
- "aria-label": "Copy API key",
9185
- children: copied ? /* @__PURE__ */ jsxRuntimeExports.jsx(Check, { className: "size-4 text-cyan-300" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Copy, { className: "size-4" })
9186
- }
9187
- )
9154
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground", children: [
9155
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CircleCheckBig, { className: "size-3.5 text-emerald-500" }),
9156
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "API key configured" })
9188
9157
  ] }),
9189
9158
  provider.models !== void 0 && provider.models.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-wrap gap-1", children: provider.models.map((model) => /* @__PURE__ */ jsxRuntimeExports.jsx(ModelChip, { provider, model }, model)) }),
9190
9159
  /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { className: "space-y-2", children: [
@@ -9500,7 +9469,7 @@ function EndpointUrlPreview({
9500
9469
  function ProviderForm({ provider, onSubmit, onCancel }) {
9501
9470
  const initialCapabilities = deriveProviderCapabilities(provider);
9502
9471
  const [name, setName] = reactExports.useState(provider?.name ?? "");
9503
- const [apiKey, setApiKey] = reactExports.useState(provider?.apiKey ?? "");
9472
+ const [apiKey, setApiKey] = reactExports.useState("");
9504
9473
  const [showApiKey, setShowApiKey] = reactExports.useState(false);
9505
9474
  const [copied, setCopied] = reactExports.useState(false);
9506
9475
  const initialModels = provider?.models;
@@ -9568,7 +9537,8 @@ function ProviderForm({ provider, onSubmit, onCancel }) {
9568
9537
  reactExports.useEffect(() => {
9569
9538
  if (provider) {
9570
9539
  setName(provider.name);
9571
- setApiKey(provider.apiKey);
9540
+ setApiKey("");
9541
+ setShowApiKey(false);
9572
9542
  const nextModels = (provider.models?.length ?? 0) > 0 ? provider.models : [""];
9573
9543
  setModels(nextModels);
9574
9544
  setModelMetadataDrafts(createMetadataDrafts(provider, nextModels));
@@ -9628,7 +9598,7 @@ function ProviderForm({ provider, onSubmit, onCancel }) {
9628
9598
  if (!name.trim()) {
9629
9599
  newErrors.name = "Name is required";
9630
9600
  }
9631
- if (!apiKey.trim()) {
9601
+ if (provider === void 0 && !apiKey.trim()) {
9632
9602
  newErrors.apiKey = "API key is required";
9633
9603
  }
9634
9604
  if (models.length === 0 || models.every((m) => !m.trim())) {
@@ -10072,21 +10042,17 @@ function ProviderForm({ provider, onSubmit, onCancel }) {
10072
10042
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
10073
10043
  /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { htmlFor: "provider-apikey", className: "text-sm font-medium", children: [
10074
10044
  "API Key ",
10075
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-destructive", children: "*" })
10045
+ provider === void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-destructive", children: "*" })
10076
10046
  ] }),
10077
10047
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
10078
10048
  /* @__PURE__ */ jsxRuntimeExports.jsx(
10079
10049
  "input",
10080
10050
  {
10081
10051
  id: "provider-apikey",
10082
- type: "text",
10083
- value: showApiKey || apiKey.length === 0 ? apiKey : maskApiKey(apiKey),
10052
+ type: showApiKey ? "text" : "password",
10053
+ value: apiKey,
10084
10054
  onChange: (e) => setApiKey(e.target.value),
10085
- onFocus: () => {
10086
- if (!showApiKey && apiKey.length > 0) setShowApiKey(true);
10087
- },
10088
- placeholder: "sk-ant-...",
10089
- readOnly: !showApiKey && apiKey.length > 0,
10055
+ placeholder: provider === void 0 ? "sk-ant-..." : "Leave blank to keep current key",
10090
10056
  className: "flex-1 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:border-ring focus-visible:outline-ring focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50"
10091
10057
  }
10092
10058
  ),
@@ -10111,6 +10077,7 @@ function ProviderForm({ provider, onSubmit, onCancel }) {
10111
10077
  }
10112
10078
  )
10113
10079
  ] }),
10080
+ provider !== void 0 && apiKey.trim() === "" && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-xs text-muted-foreground", children: "A key is configured. Enter a new value only to rotate it." }),
10114
10081
  errors.apiKey !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-xs text-destructive", children: errors.apiKey })
10115
10082
  ] }),
10116
10083
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
@@ -10336,7 +10303,7 @@ function endpointPayloadValue(value, preserveEmptyEndpoints) {
10336
10303
  function createProviderPayload(data, preserveEmptyEndpoints = false) {
10337
10304
  return {
10338
10305
  name: data.name,
10339
- apiKey: data.apiKey,
10306
+ ...data.apiKey.trim() === "" ? {} : { apiKey: data.apiKey },
10340
10307
  models: data.models,
10341
10308
  anthropicBaseUrl: endpointPayloadValue(data.anthropicBaseUrl, preserveEmptyEndpoints),
10342
10309
  openaiBaseUrl: endpointPayloadValue(data.openaiBaseUrl, preserveEmptyEndpoints),
@@ -10636,7 +10603,7 @@ function ProvidersPanel({
10636
10603
  await refreshProviderMetadata(updated.id, data.modelMetadataUrl, false);
10637
10604
  }
10638
10605
  refreshProviders();
10639
- const criticalFieldsChanged = (data.apiKey ?? "") !== (editingProvider.apiKey ?? "") || JSON.stringify(data.models) !== JSON.stringify(editingProvider.models) || (data.anthropicBaseUrl ?? "") !== (editingProvider.anthropicBaseUrl ?? "") || (data.openaiBaseUrl ?? "") !== (editingProvider.openaiBaseUrl ?? "") || (data.openaiResponsesBaseUrl ?? "") !== (editingProvider.openaiResponsesBaseUrl ?? "");
10606
+ const criticalFieldsChanged = data.apiKey.trim() !== "" || JSON.stringify(data.models) !== JSON.stringify(editingProvider.models) || (data.anthropicBaseUrl ?? "") !== (editingProvider.anthropicBaseUrl ?? "") || (data.openaiBaseUrl ?? "") !== (editingProvider.openaiBaseUrl ?? "") || (data.openaiResponsesBaseUrl ?? "") !== (editingProvider.openaiResponsesBaseUrl ?? "");
10640
10607
  if (criticalFieldsChanged) {
10641
10608
  await runTest(updated.id);
10642
10609
  }
@@ -11283,9 +11250,9 @@ function McpSettingsTab() {
11283
11250
  value: `agent-inspector-mcp doctor --url ${endpoint}`
11284
11251
  },
11285
11252
  {
11286
- id: "readonly",
11287
- label: "Readonly mode",
11288
- value: "AGENT_INSPECTOR_MCP_READONLY=1 agent-inspector"
11253
+ id: "writes",
11254
+ label: "Enable write tools",
11255
+ value: "AGENT_INSPECTOR_MCP_WRITES=1 agent-inspector"
11289
11256
  },
11290
11257
  {
11291
11258
  id: "capabilities",
@@ -1,7 +1,7 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
2
- import { u as useProviders, d as fetchJsonWithTimeout, D as Dialog, e as DialogContent, h as DialogHeader, i as DialogTitle, T as Tabs, j as TabsList, k as TabsTrigger, l as TabsContent, m as Button, n as TooltipProvider, o as Tooltip, p as TooltipTrigger, q as TooltipContent, s as dispatchLogFocusRequest, A as ApiTimeoutError } from "./ProxyViewerContainer-CMC7Vsbw.mjs";
3
- import { ResponseView } from "./ResponseView-BCqMKApI.mjs";
4
- import { C as CapturedLogSchema } from "./router-CZe_R31M.mjs";
2
+ import { u as useProviders, d as fetchJsonWithTimeout, D as Dialog, e as DialogContent, h as DialogHeader, i as DialogTitle, T as Tabs, j as TabsList, k as TabsTrigger, l as TabsContent, m as Button, n as TooltipProvider, o as Tooltip, p as TooltipTrigger, q as TooltipContent, s as dispatchLogFocusRequest, A as ApiTimeoutError } from "./ProxyViewerContainer-CbyBpCAj.mjs";
3
+ import { ResponseView } from "./ResponseView-BRJKN50-.mjs";
4
+ import { C as CapturedLogSchema } from "./router-Dgx6-ot3.mjs";
5
5
  import "../_libs/jszip.mjs";
6
6
  import "../_libs/react-dom.mjs";
7
7
  import "node:fs";
@@ -12,6 +12,7 @@ import "node:child_process";
12
12
  import "node:url";
13
13
  import "crypto";
14
14
  import "node:util";
15
+ import "node:net";
15
16
  import "../_libs/modelcontextprotocol__server.mjs";
16
17
  import "node:os";
17
18
  import { aw as RotateCcw, aI as Braces, aJ as Minimize2 } from "../_libs/lucide-react.mjs";
@@ -99,6 +100,7 @@ import "../_libs/debounce-fn.mjs";
99
100
  import "../_libs/mimic-function.mjs";
100
101
  import "../_libs/semver.mjs";
101
102
  import "../_libs/uint8array-extras.mjs";
103
+ import "node:dns/promises";
102
104
  import "node:worker_threads";
103
105
  import "util";
104
106
  import "async_hooks";
@@ -1,6 +1,6 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
2
- import { u as useProviders, t as analyzeContextIntelligence, f as formatTokens, n as TooltipProvider, c as cn, o as Tooltip, p as TooltipTrigger, q as TooltipContent, S as SegmentBar, R as ROLE_COLOR_CLASSES, v as ANATOMY_ROLE_LABELS, w as formatContextWindowTokens, C as CONTEXT_USAGE_THRESHOLDS } from "./ProxyViewerContainer-CMC7Vsbw.mjs";
3
- import "./router-CZe_R31M.mjs";
2
+ import { u as useProviders, t as analyzeContextIntelligence, f as formatTokens, n as TooltipProvider, c as cn, o as Tooltip, p as TooltipTrigger, q as TooltipContent, S as SegmentBar, R as ROLE_COLOR_CLASSES, v as ANATOMY_ROLE_LABELS, w as formatContextWindowTokens, C as CONTEXT_USAGE_THRESHOLDS } from "./ProxyViewerContainer-CbyBpCAj.mjs";
3
+ import "./router-Dgx6-ot3.mjs";
4
4
  import "node:fs";
5
5
  import "node:buffer";
6
6
  import "node:path";
@@ -9,6 +9,7 @@ import "node:child_process";
9
9
  import "node:url";
10
10
  import "crypto";
11
11
  import "node:util";
12
+ import "node:net";
12
13
  import "../_libs/modelcontextprotocol__server.mjs";
13
14
  import "../_libs/jszip.mjs";
14
15
  import "node:os";
@@ -97,6 +98,7 @@ import "../_libs/debounce-fn.mjs";
97
98
  import "../_libs/mimic-function.mjs";
98
99
  import "../_libs/semver.mjs";
99
100
  import "../_libs/uint8array-extras.mjs";
101
+ import "node:dns/promises";
100
102
  import "node:worker_threads";
101
103
  import "util";
102
104
  import "async_hooks";
@@ -1,6 +1,6 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
2
- import { g as getLogFormatAdapter, f as formatTokens, c as cn, x as getStatusCategory, B as Badge, y as Collapsible, z as CollapsibleTrigger, E as CollapsibleContent, F as ScrollArea, G as LazyJsonViewer, H as safeJsonValue } from "./ProxyViewerContainer-CMC7Vsbw.mjs";
3
- import { s as safeGetOwnProperty } from "./router-CZe_R31M.mjs";
2
+ import { g as getLogFormatAdapter, f as formatTokens, c as cn, x as getStatusCategory, B as Badge, y as Collapsible, z as CollapsibleTrigger, E as CollapsibleContent, F as ScrollArea, G as LazyJsonViewer, H as safeJsonValue } from "./ProxyViewerContainer-CbyBpCAj.mjs";
3
+ import { s as safeGetOwnProperty } from "./router-Dgx6-ot3.mjs";
4
4
  import "../_libs/jszip.mjs";
5
5
  import "../_libs/react-dom.mjs";
6
6
  import "node:fs";
@@ -11,9 +11,10 @@ import "node:child_process";
11
11
  import "node:url";
12
12
  import "crypto";
13
13
  import "node:util";
14
+ import "node:net";
14
15
  import "../_libs/modelcontextprotocol__server.mjs";
15
16
  import "node:os";
16
- import { aa as Zap, T as TriangleAlert, aK as CircleStop, ac as Brain, a as ChevronDown, m as ChevronRight, z as Terminal } from "../_libs/lucide-react.mjs";
17
+ import { ab as Zap, T as TriangleAlert, aK as CircleStop, ad as Brain, a as ChevronDown, m as ChevronRight, z as Terminal } from "../_libs/lucide-react.mjs";
17
18
  import { R as Root } from "../_libs/radix-ui__react-separator.mjs";
18
19
  import "../_libs/swr.mjs";
19
20
  import "../_libs/use-sync-external-store.mjs";
@@ -98,6 +99,7 @@ import "../_libs/debounce-fn.mjs";
98
99
  import "../_libs/mimic-function.mjs";
99
100
  import "../_libs/semver.mjs";
100
101
  import "../_libs/uint8array-extras.mjs";
102
+ import "node:dns/promises";
101
103
  import "node:worker_threads";
102
104
  import "util";
103
105
  import "async_hooks";
@@ -1,6 +1,6 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
2
- import { d as fetchJsonWithTimeout, n as TooltipProvider, o as Tooltip, p as TooltipTrigger, B as Badge, q as TooltipContent, G as LazyJsonViewer } from "./ProxyViewerContainer-CMC7Vsbw.mjs";
3
- import { a3 as StreamingChunkSchema$1 } from "./router-CZe_R31M.mjs";
2
+ import { d as fetchJsonWithTimeout, n as TooltipProvider, o as Tooltip, p as TooltipTrigger, B as Badge, q as TooltipContent, G as LazyJsonViewer } from "./ProxyViewerContainer-CbyBpCAj.mjs";
3
+ import { a3 as StreamingChunkSchema$1 } from "./router-Dgx6-ot3.mjs";
4
4
  import "../_libs/jszip.mjs";
5
5
  import "../_libs/react-dom.mjs";
6
6
  import "node:fs";
@@ -11,6 +11,7 @@ import "node:child_process";
11
11
  import "node:url";
12
12
  import "crypto";
13
13
  import "node:util";
14
+ import "node:net";
14
15
  import "../_libs/modelcontextprotocol__server.mjs";
15
16
  import "node:os";
16
17
  import { a as ChevronDown, m as ChevronRight, L as LoaderCircle } from "../_libs/lucide-react.mjs";
@@ -97,6 +98,7 @@ import "../_libs/debounce-fn.mjs";
97
98
  import "../_libs/mimic-function.mjs";
98
99
  import "../_libs/semver.mjs";
99
100
  import "../_libs/uint8array-extras.mjs";
101
+ import "node:dns/promises";
100
102
  import "node:worker_threads";
101
103
  import "util";
102
104
  import "async_hooks";
@@ -1,6 +1,6 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
2
- import { P as ProxyViewerContainer } from "./ProxyViewerContainer-CMC7Vsbw.mjs";
3
- import "./router-CZe_R31M.mjs";
2
+ import { P as ProxyViewerContainer } from "./ProxyViewerContainer-CbyBpCAj.mjs";
3
+ import "./router-Dgx6-ot3.mjs";
4
4
  import "../_libs/jszip.mjs";
5
5
  import "../_libs/react-dom.mjs";
6
6
  import "node:fs";
@@ -11,6 +11,7 @@ import "node:child_process";
11
11
  import "node:url";
12
12
  import "crypto";
13
13
  import "node:util";
14
+ import "node:net";
14
15
  import "../_libs/modelcontextprotocol__server.mjs";
15
16
  import "node:os";
16
17
  import "../_libs/swr.mjs";
@@ -97,6 +98,7 @@ import "../_libs/debounce-fn.mjs";
97
98
  import "../_libs/mimic-function.mjs";
98
99
  import "../_libs/semver.mjs";
99
100
  import "../_libs/uint8array-extras.mjs";
101
+ import "node:dns/promises";
100
102
  import "node:worker_threads";
101
103
  import "util";
102
104
  import "async_hooks";
@@ -85,7 +85,7 @@ function getResponse() {
85
85
  }
86
86
  var HEADERS = { TSS_SHELL: "X-TSS_SHELL" };
87
87
  async function getStartManifest(matchedRoutes) {
88
- const { tsrStartManifest } = await import("../_tanstack-start-manifest_v-B50VTLrH.mjs");
88
+ const { tsrStartManifest } = await import("../_tanstack-start-manifest_v-CoGjnkQD.mjs");
89
89
  const startManifest = tsrStartManifest();
90
90
  let routes = startManifest.routes;
91
91
  routes[rootRouteId];
@@ -1162,7 +1162,7 @@ var getBaseManifest = getProdBaseManifest;
1162
1162
  var createEarlyHintsForRequest = createEarlyHintsCollector;
1163
1163
  async function loadEntries() {
1164
1164
  const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
1165
- import("./router-CZe_R31M.mjs").then((n) => n.a4),
1165
+ import("./router-Dgx6-ot3.mjs").then((n) => n.a4),
1166
1166
  import("./start-HYkvq4Ni.mjs"),
1167
1167
  import("./empty-plugin-adapters-BFgPZ6_d.mjs")
1168
1168
  ]);