@a5c-ai/babysitter-observer-dashboard 6.0.1 → 6.0.2

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 (58) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/fallback-build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/required-server-files.json +1 -1
  6. package/.next/server/app/_global-error.html +1 -1
  7. package/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/_not-found.html +1 -1
  15. package/.next/server/app/_not-found.rsc +11 -11
  16. package/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
  17. package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  18. package/.next/server/app/_not-found.segments/_index.segment.rsc +6 -6
  19. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  20. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  21. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  22. package/.next/server/app/index.html +1 -1
  23. package/.next/server/app/index.rsc +13 -13
  24. package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  25. package/.next/server/app/index.segments/_full.segment.rsc +13 -13
  26. package/.next/server/app/index.segments/_head.segment.rsc +4 -4
  27. package/.next/server/app/index.segments/_index.segment.rsc +6 -6
  28. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  29. package/.next/server/app/page/server-reference-manifest.json +1 -1
  30. package/.next/server/app/page_client-reference-manifest.js +1 -1
  31. package/.next/server/app/runs/[runId]/page/react-loadable-manifest.json +1 -1
  32. package/.next/server/app/runs/[runId]/page/server-reference-manifest.json +1 -1
  33. package/.next/server/app/runs/[runId]/page_client-reference-manifest.js +1 -1
  34. package/.next/server/chunks/[root-of-the-server]__0kdfw4x._.js +1 -1
  35. package/.next/server/chunks/ssr/[root-of-the-server]__006f7~t._.js +1 -1
  36. package/.next/server/chunks/ssr/[root-of-the-server]__0cpy61n._.js +1 -1
  37. package/.next/server/chunks/ssr/[root-of-the-server]__0cpy61n._.js.map +1 -1
  38. package/.next/server/chunks/ssr/[root-of-the-server]__0cwa32j._.js +1 -1
  39. package/.next/server/chunks/ssr/[root-of-the-server]__0cwa32j._.js.map +1 -1
  40. package/.next/server/chunks/ssr/_0wrbwro._.js +1 -1
  41. package/.next/server/chunks/ssr/_0wrbwro._.js.map +1 -1
  42. package/.next/server/chunks/ssr/packages_observer-dashboard_src_components_providers_tsx_03_vrrn._.js +1 -1
  43. package/.next/server/middleware-build-manifest.js +3 -3
  44. package/.next/server/pages/404.html +1 -1
  45. package/.next/server/pages/500.html +1 -1
  46. package/.next/server/server-reference-manifest.js +1 -1
  47. package/.next/server/server-reference-manifest.json +2 -2
  48. package/.next/static/chunks/{0j~l1s4qdwdc4.js → 02b3hntwwtkcc.js} +1 -1
  49. package/.next/static/chunks/{15lw8f5okp.vg.js → 02xtzt1xc_qnf.js} +1 -1
  50. package/.next/static/chunks/{0wv.anze5hz09.js → 0mttx2.x19myo.js} +1 -1
  51. package/.next/static/chunks/{0oknt341jrzu3.js → 0vxpk3.shoodp.js} +1 -1
  52. package/.next/static/chunks/{0ydywrcrbq0i0.js → 0wb~.houk6pn~.js} +1 -1
  53. package/.next/static/chunks/{0sw20c9zzv5di.js → 0y4t6mv7uzyvt.js} +1 -1
  54. package/dist/cli.js +1 -1
  55. package/package.json +1 -1
  56. /package/.next/static/{33ZiK9k92GBOyjrvkVYYf → P_MJwoqj8gQV2JcFwfJLH}/_buildManifest.js +0 -0
  57. /package/.next/static/{33ZiK9k92GBOyjrvkVYYf → P_MJwoqj8gQV2JcFwfJLH}/_clientMiddlewareManifest.js +0 -0
  58. /package/.next/static/{33ZiK9k92GBOyjrvkVYYf → P_MJwoqj8gQV2JcFwfJLH}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,586318,e=>{"use strict";var t=e.i(271645);e.i(843476);var r=t.createContext(void 0);e.s(["useDirection",0,function(e){let n=t.useContext(r);return e||n||"ltr"}])},806790,e=>{"use strict";let t=(0,e.i(621255).default)("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v0",key:"aigmz7"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v2",key:"1n6bmn"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v8",key:"a9iiix"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);e.s(["Hand",0,t],806790)},75830,e=>{"use strict";var t=e.i(271645),r=e.i(30030),n=e.i(820783),s=e.i(843476);function i(e){var r;let i,a=(r=e,(i=t.forwardRef((e,r)=>{let{children:s,...i}=e;if(t.isValidElement(s)){var a;let e,l,o=(a=s,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...e)=>{let t=i(...e);return s(...e),t}:s&&(r[n]=s):"style"===n?r[n]={...s,...i}:"className"===n&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}(i,s.props);return s.type!==t.Fragment&&(u.ref=r?(0,n.composeRefs)(r,o):o),t.cloneElement(s,u)}return t.Children.count(s)>1?t.Children.only(null):null})).displayName=`${r}.SlotClone`,i),o=t.forwardRef((e,r)=>{let{children:n,...i}=e,o=t.Children.toArray(n),u=o.find(l);if(u){let e=u.props.children,n=o.map(r=>r!==u?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,s.jsx)(a,{...i,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,s.jsx)(a,{...i,ref:r,children:n})});return o.displayName=`${e}.Slot`,o}var a=Symbol("radix.slottable");function l(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}var o=new WeakMap;function u(e,t){var r,n;let s,i,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,n=t,s=r.length,(a=(i=d(n))>=0?i:s+i)<0||a>=s?-1:a);return -1===l?void 0:e[l]}function d(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],o.set(this,!0)}set(e,t){return o.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,s=this.has(t),i=this.#e.length,a=d(e),l=a>=0?a:i+a,o=l<0||l>=i?-1:l;if(o===this.size||s&&o===this.size-1||-1===o)return this.set(t,r),this;let u=this.size+ +!s;a<0&&l++;let c=[...this.#e],f=!1;for(let e=l;e<u;e++)if(l===e){let i=c[e];c[e]===t&&(i=c[e+1]),s&&this.delete(t),n=this.get(i),this.set(t,r)}else{f||c[e-1]!==t||(f=!0);let r=c[f?e:e-1],s=n;n=this.get(r),this.delete(r),this.set(r,s)}return this}with(t,r,n){let s=new e(this);return s.insert(t,r,n),s}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=u(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=u(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return u(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],s=0;for(let e of this)Reflect.apply(t,r,[e,s,this])&&n.push(e),s++;return new e(n)}map(t,r){let n=[],s=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,s,this])]),s++;return new e(n)}reduce(...e){let[t,r]=e,n=0,s=r??this.at(0);for(let r of this)s=0===n&&1===e.length?r:Reflect.apply(t,this,[s,r,n,this]),n++;return s}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let s=this.at(r);n=r===this.size-1&&1===e.length?s:Reflect.apply(t,this,[n,s,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,s=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(s=r-1);for(let e=t;e<=s;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,function(e){let a=e+"CollectionProvider",[l,o]=(0,r.createContextScope)(a),[u,d]=l(a,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:r,children:n}=e,i=t.default.useRef(null),a=t.default.useRef(new Map).current;return(0,s.jsx)(u,{scope:r,itemMap:a,collectionRef:i,children:n})};c.displayName=a;let f=e+"CollectionSlot",h=i(f),p=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,a=d(f,r),l=(0,n.useComposedRefs)(t,a.collectionRef);return(0,s.jsx)(h,{ref:l,children:i})});p.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",y=i(m),x=t.default.forwardRef((e,r)=>{let{scope:i,children:a,...l}=e,o=t.default.useRef(null),u=(0,n.useComposedRefs)(r,o),c=d(m,i);return t.default.useEffect(()=>(c.itemMap.set(o,{ref:o,...l}),()=>void c.itemMap.delete(o))),(0,s.jsx)(y,{...{[v]:""},ref:u,children:a})});return x.displayName=m,[{Provider:c,Slot:p,ItemSlot:x},function(r){let n=d(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},o]}],75830)},363909,e=>{"use strict";var t=e.i(843476),r=e.i(770703),n=e.i(271645),s=e.i(981140),i=e.i(30030),a=e.i(75830),l=e.i(820783),o=e.i(610772),u=e.i(248425),d=e.i(30207),c=e.i(369340),f=e.i(586318),h="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[v,y,x]=(0,a.createCollection)(m),[g,b]=(0,i.createContextScope)(m,[x]),[j,k]=g(m),w=n.forwardRef((e,r)=>(0,t.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(R,{...e,ref:r})})}));w.displayName=m;var R=n.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:i,orientation:a,loop:o=!1,dir:v,currentTabStopId:x,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:b,onEntryFocus:k,preventScrollOnEntryFocus:w=!1,...R}=e,A=n.useRef(null),C=(0,l.useComposedRefs)(r,A),N=(0,f.useDirection)(v),[P,I]=(0,c.useControllableState)({prop:x,defaultProp:g??null,onChange:b,caller:m}),[D,T]=n.useState(!1),S=(0,d.useCallbackRef)(k),F=y(i),M=n.useRef(!1),[O,z]=n.useState(0);return n.useEffect(()=>{let e=A.current;if(e)return e.addEventListener(h,S),()=>e.removeEventListener(h,S)},[S]),(0,t.jsx)(j,{scope:i,orientation:a,dir:N,loop:o,currentTabStopId:P,onItemFocus:n.useCallback(e=>I(e),[I]),onItemShiftTab:n.useCallback(()=>T(!0),[]),onFocusableItemAdd:n.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>z(e=>e-1),[]),children:(0,t.jsx)(u.Primitive.div,{tabIndex:D||0===O?-1:0,"data-orientation":a,...R,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,s.composeEventHandlers)(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(h,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=F().filter(e=>e.focusable);E([e.find(e=>e.active),e.find(e=>e.id===P),...e].filter(Boolean).map(e=>e.ref.current),w)}}M.current=!1}),onBlur:(0,s.composeEventHandlers)(e.onBlur,()=>T(!1))})})}),A="RovingFocusGroupItem",C=n.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:i,focusable:a=!0,active:l=!1,tabStopId:d,children:c,...f}=e,h=(0,o.useId)(),p=d||h,m=k(A,i),x=m.currentTabStopId===p,g=y(i),{onFocusableItemAdd:b,onFocusableItemRemove:j,currentTabStopId:w}=m;return n.useEffect(()=>{if(a)return b(),()=>j()},[a,b,j]),(0,t.jsx)(v.ItemSlot,{scope:i,id:p,focusable:a,active:l,children:(0,t.jsx)(u.Primitive.span,{tabIndex:x?0:-1,"data-orientation":m.orientation,...f,ref:r,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{a?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let s=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)))return N[s]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let s=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)s.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&s.reverse();let i=s.indexOf(e.currentTarget);s=m.loop?(r=s,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):s.slice(i+1)}setTimeout(()=>E(s))}}),children:"function"==typeof c?c({isCurrentTabStop:x,hasTabStop:null!=w}):c})})});C.displayName=A;var N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var P=e.i(296626),I="Tabs",[D,T]=(0,i.createContextScope)(I,[b]),S=b(),[F,M]=D(I),O=n.forwardRef((e,r)=>{let{__scopeTabs:n,value:s,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:d,activationMode:h="automatic",...p}=e,m=(0,f.useDirection)(d),[v,y]=(0,c.useControllableState)({prop:s,onChange:i,defaultProp:a??"",caller:I});return(0,t.jsx)(F,{scope:n,baseId:(0,o.useId)(),value:v,onValueChange:y,orientation:l,dir:m,activationMode:h,children:(0,t.jsx)(u.Primitive.div,{dir:m,"data-orientation":l,...p,ref:r})})});O.displayName=I;var z="TabsList",K=n.forwardRef((e,r)=>{let{__scopeTabs:n,loop:s=!0,...i}=e,a=M(z,n),l=S(n);return(0,t.jsx)(w,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:s,children:(0,t.jsx)(u.Primitive.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:r})})});K.displayName=z;var V="TabsTrigger",H=n.forwardRef((e,r)=>{let{__scopeTabs:n,value:i,disabled:a=!1,...l}=e,o=M(V,n),d=S(n),c=G(o.baseId,i),f=B(o.baseId,i),h=i===o.value;return(0,t.jsx)(C,{asChild:!0,...d,focusable:!a,active:h,children:(0,t.jsx)(u.Primitive.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":f,"data-state":h?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...l,ref:r,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(i)}),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(i)}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==o.activationMode;h||a||!e||o.onValueChange(i)})})})});H.displayName=V;var L="TabsContent",_=n.forwardRef((e,r)=>{let{__scopeTabs:s,value:i,forceMount:a,children:l,...o}=e,d=M(L,s),c=G(d.baseId,i),f=B(d.baseId,i),h=i===d.value,p=n.useRef(h);return n.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(P.Presence,{present:a||h,children:({present:n})=>(0,t.jsx)(u.Primitive.div,{"data-state":h?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:f,tabIndex:0,...o,ref:r,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&l})})});function G(e,t){return`${e}-trigger-${t}`}function B(e,t){return`${e}-content-${t}`}_.displayName=L;var $=e.i(273172);function U({className:e,children:r,"data-testid":n,...s}){return(0,t.jsx)(O,{className:e,"data-testid":n,...s,children:r})}function W({className:e,children:r}){return(0,t.jsx)(K,{className:(0,$.cn)("inline-flex h-9 items-center gap-1 rounded-lg bg-background-secondary p-1",e),children:r})}function q({className:e,children:r,value:n}){return(0,t.jsx)(H,{value:n,className:(0,$.cn)("relative inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium text-foreground-muted transition-all duration-200","hover:text-foreground-secondary hover:bg-muted/50","data-[state=active]:bg-background-tertiary data-[state=active]:text-foreground data-[state=active]:shadow-sm","after:absolute after:bottom-0 after:left-1/2 after:-translate-x-1/2 after:h-0.5 after:w-0 after:rounded-full after:bg-primary after:transition-all after:duration-200","data-[state=active]:after:w-2/3",e),children:r})}function J({className:e,children:r,value:n}){return(0,t.jsx)(_,{value:n,className:(0,$.cn)("mt-2 focus-visible:outline-none",e),children:r})}var Z=e.i(311183),Q=e.i(23406),X=e.i(806790),Y=e.i(497035);function ee(){return(0,t.jsxs)("div",{className:"p-4 space-y-3 animate-pulse",children:[(0,t.jsx)("div",{className:"h-4 w-48 rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-3 w-full rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-3 w-3/4 rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-3 w-1/2 rounded bg-foreground-muted/10"})]})}let et=(0,r.default)(()=>e.A(649312).then(e=>({default:e.AgentPanel})),{loadableGenerated:{modules:[897644]},ssr:!1,loading:ee}),er=(0,r.default)(()=>e.A(758764).then(e=>({default:e.TimingPanel})),{loadableGenerated:{modules:[541145]},ssr:!1,loading:ee}),en=(0,r.default)(()=>e.A(341977).then(e=>({default:e.LogViewer})),{loadableGenerated:{modules:[350014]},ssr:!1,loading:ee}),es=(0,r.default)(()=>e.A(657398).then(e=>({default:e.JsonTree})),{loadableGenerated:{modules:[661914]},ssr:!1,loading:ee}),ei=(0,r.default)(()=>e.A(770127).then(e=>({default:e.BreakpointPanel})),{loadableGenerated:{modules:[155042]},ssr:!1,loading:ee});e.s(["TaskDetailPanel",0,function({runId:e,effectId:r,activeTab:n,onTabChange:s,runDuration:i,allTasks:a}){let{task:l,loading:o}=(0,Z.useTaskDetail)(e,r);if(!r)return(0,t.jsx)("div",{className:"flex items-center justify-center h-full text-sm text-foreground-muted",children:"Click a task to view details"});if(o&&!l)return(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)(Q.Loader2,{className:"h-5 w-5 animate-spin text-foreground-muted"})});let u=l?.kind==="breakpoint",d=u?"breakpoint":"agent";return(0,t.jsxs)(U,{"data-testid":"task-detail-tabs",value:n,onValueChange:s,defaultValue:d,className:"h-full flex flex-col",children:[(0,t.jsxs)(W,{className:"shrink-0 mx-4 mt-3",children:[u&&(0,t.jsxs)(q,{value:"breakpoint",className:"gap-1.5",children:[(0,t.jsx)(X.Hand,{className:"h-3 w-3"}),"Approval",(0,t.jsx)(Y.Kbd,{className:"ml-0.5 opacity-50",children:"5"})]}),(0,t.jsxs)(q,{value:"agent",className:"gap-1.5",children:["Agent ",(0,t.jsx)(Y.Kbd,{className:"ml-0.5 opacity-50",children:"1"})]}),(0,t.jsxs)(q,{value:"timing",className:"gap-1.5",children:["Timing ",(0,t.jsx)(Y.Kbd,{className:"ml-0.5 opacity-50",children:"2"})]}),(0,t.jsxs)(q,{value:"logs",className:"gap-1.5",children:["Logs ",(0,t.jsx)(Y.Kbd,{className:"ml-0.5 opacity-50",children:"3"})]}),(0,t.jsxs)(q,{value:"data",className:"gap-1.5",children:["Data ",(0,t.jsx)(Y.Kbd,{className:"ml-0.5 opacity-50",children:"4"})]})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[u&&l&&(0,t.jsx)(J,{value:"breakpoint",children:(0,t.jsx)(ei,{task:l,runId:e})}),(0,t.jsx)(J,{value:"agent",children:(0,t.jsx)(et,{task:l})}),(0,t.jsx)(J,{value:"timing",children:(0,t.jsx)(er,{task:l,runDuration:i,allTasks:a})}),(0,t.jsx)(J,{value:"logs",children:(0,t.jsx)(en,{task:l})}),(0,t.jsx)(J,{value:"data",children:(0,t.jsx)(es,{task:l})})]})]})}],363909)},471601,e=>{e.n(e.i(363909))},649312,e=>{e.v(t=>Promise.all(["static/chunks/0zk856yxa-i5f.js","static/chunks/04yay90ruer_3.js"].map(t=>e.l(t))).then(()=>t(897644)))},758764,e=>{e.v(t=>Promise.all(["static/chunks/0dqxmh9cvrgou.js"].map(t=>e.l(t))).then(()=>t(541145)))},341977,e=>{e.v(t=>Promise.all(["static/chunks/0l7ykfzdo~h3y.js"].map(t=>e.l(t))).then(()=>t(350014)))},657398,e=>{e.v(t=>Promise.all(["static/chunks/0ut~vcg~0._am.js"].map(t=>e.l(t))).then(()=>t(661914)))},770127,e=>{e.v(t=>Promise.all(["static/chunks/0ydywrcrbq0i0.js","static/chunks/04yay90ruer_3.js"].map(t=>e.l(t))).then(()=>t(155042)))}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,586318,e=>{"use strict";var t=e.i(271645);e.i(843476);var r=t.createContext(void 0);e.s(["useDirection",0,function(e){let n=t.useContext(r);return e||n||"ltr"}])},806790,e=>{"use strict";let t=(0,e.i(621255).default)("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v0",key:"aigmz7"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v2",key:"1n6bmn"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v8",key:"a9iiix"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);e.s(["Hand",0,t],806790)},75830,e=>{"use strict";var t=e.i(271645),r=e.i(30030),n=e.i(820783),s=e.i(843476);function i(e){var r;let i,a=(r=e,(i=t.forwardRef((e,r)=>{let{children:s,...i}=e;if(t.isValidElement(s)){var a;let e,l,o=(a=s,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...e)=>{let t=i(...e);return s(...e),t}:s&&(r[n]=s):"style"===n?r[n]={...s,...i}:"className"===n&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}(i,s.props);return s.type!==t.Fragment&&(u.ref=r?(0,n.composeRefs)(r,o):o),t.cloneElement(s,u)}return t.Children.count(s)>1?t.Children.only(null):null})).displayName=`${r}.SlotClone`,i),o=t.forwardRef((e,r)=>{let{children:n,...i}=e,o=t.Children.toArray(n),u=o.find(l);if(u){let e=u.props.children,n=o.map(r=>r!==u?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,s.jsx)(a,{...i,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,s.jsx)(a,{...i,ref:r,children:n})});return o.displayName=`${e}.Slot`,o}var a=Symbol("radix.slottable");function l(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}var o=new WeakMap;function u(e,t){var r,n;let s,i,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,n=t,s=r.length,(a=(i=d(n))>=0?i:s+i)<0||a>=s?-1:a);return -1===l?void 0:e[l]}function d(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],o.set(this,!0)}set(e,t){return o.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,s=this.has(t),i=this.#e.length,a=d(e),l=a>=0?a:i+a,o=l<0||l>=i?-1:l;if(o===this.size||s&&o===this.size-1||-1===o)return this.set(t,r),this;let u=this.size+ +!s;a<0&&l++;let c=[...this.#e],f=!1;for(let e=l;e<u;e++)if(l===e){let i=c[e];c[e]===t&&(i=c[e+1]),s&&this.delete(t),n=this.get(i),this.set(t,r)}else{f||c[e-1]!==t||(f=!0);let r=c[f?e:e-1],s=n;n=this.get(r),this.delete(r),this.set(r,s)}return this}with(t,r,n){let s=new e(this);return s.insert(t,r,n),s}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=u(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=u(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return u(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],s=0;for(let e of this)Reflect.apply(t,r,[e,s,this])&&n.push(e),s++;return new e(n)}map(t,r){let n=[],s=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,s,this])]),s++;return new e(n)}reduce(...e){let[t,r]=e,n=0,s=r??this.at(0);for(let r of this)s=0===n&&1===e.length?r:Reflect.apply(t,this,[s,r,n,this]),n++;return s}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let s=this.at(r);n=r===this.size-1&&1===e.length?s:Reflect.apply(t,this,[n,s,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,s=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(s=r-1);for(let e=t;e<=s;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,function(e){let a=e+"CollectionProvider",[l,o]=(0,r.createContextScope)(a),[u,d]=l(a,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:r,children:n}=e,i=t.default.useRef(null),a=t.default.useRef(new Map).current;return(0,s.jsx)(u,{scope:r,itemMap:a,collectionRef:i,children:n})};c.displayName=a;let f=e+"CollectionSlot",h=i(f),p=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,a=d(f,r),l=(0,n.useComposedRefs)(t,a.collectionRef);return(0,s.jsx)(h,{ref:l,children:i})});p.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",y=i(m),x=t.default.forwardRef((e,r)=>{let{scope:i,children:a,...l}=e,o=t.default.useRef(null),u=(0,n.useComposedRefs)(r,o),c=d(m,i);return t.default.useEffect(()=>(c.itemMap.set(o,{ref:o,...l}),()=>void c.itemMap.delete(o))),(0,s.jsx)(y,{...{[v]:""},ref:u,children:a})});return x.displayName=m,[{Provider:c,Slot:p,ItemSlot:x},function(r){let n=d(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},o]}],75830)},363909,e=>{"use strict";var t=e.i(843476),r=e.i(770703),n=e.i(271645),s=e.i(981140),i=e.i(30030),a=e.i(75830),l=e.i(820783),o=e.i(610772),u=e.i(248425),d=e.i(30207),c=e.i(369340),f=e.i(586318),h="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[v,y,x]=(0,a.createCollection)(m),[g,b]=(0,i.createContextScope)(m,[x]),[j,k]=g(m),w=n.forwardRef((e,r)=>(0,t.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(R,{...e,ref:r})})}));w.displayName=m;var R=n.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:i,orientation:a,loop:o=!1,dir:v,currentTabStopId:x,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:b,onEntryFocus:k,preventScrollOnEntryFocus:w=!1,...R}=e,A=n.useRef(null),C=(0,l.useComposedRefs)(r,A),N=(0,f.useDirection)(v),[P,I]=(0,c.useControllableState)({prop:x,defaultProp:g??null,onChange:b,caller:m}),[D,T]=n.useState(!1),S=(0,d.useCallbackRef)(k),F=y(i),M=n.useRef(!1),[O,z]=n.useState(0);return n.useEffect(()=>{let e=A.current;if(e)return e.addEventListener(h,S),()=>e.removeEventListener(h,S)},[S]),(0,t.jsx)(j,{scope:i,orientation:a,dir:N,loop:o,currentTabStopId:P,onItemFocus:n.useCallback(e=>I(e),[I]),onItemShiftTab:n.useCallback(()=>T(!0),[]),onFocusableItemAdd:n.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>z(e=>e-1),[]),children:(0,t.jsx)(u.Primitive.div,{tabIndex:D||0===O?-1:0,"data-orientation":a,...R,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,s.composeEventHandlers)(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(h,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=F().filter(e=>e.focusable);E([e.find(e=>e.active),e.find(e=>e.id===P),...e].filter(Boolean).map(e=>e.ref.current),w)}}M.current=!1}),onBlur:(0,s.composeEventHandlers)(e.onBlur,()=>T(!1))})})}),A="RovingFocusGroupItem",C=n.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:i,focusable:a=!0,active:l=!1,tabStopId:d,children:c,...f}=e,h=(0,o.useId)(),p=d||h,m=k(A,i),x=m.currentTabStopId===p,g=y(i),{onFocusableItemAdd:b,onFocusableItemRemove:j,currentTabStopId:w}=m;return n.useEffect(()=>{if(a)return b(),()=>j()},[a,b,j]),(0,t.jsx)(v.ItemSlot,{scope:i,id:p,focusable:a,active:l,children:(0,t.jsx)(u.Primitive.span,{tabIndex:x?0:-1,"data-orientation":m.orientation,...f,ref:r,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{a?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let s=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)))return N[s]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let s=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)s.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&s.reverse();let i=s.indexOf(e.currentTarget);s=m.loop?(r=s,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):s.slice(i+1)}setTimeout(()=>E(s))}}),children:"function"==typeof c?c({isCurrentTabStop:x,hasTabStop:null!=w}):c})})});C.displayName=A;var N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var P=e.i(296626),I="Tabs",[D,T]=(0,i.createContextScope)(I,[b]),S=b(),[F,M]=D(I),O=n.forwardRef((e,r)=>{let{__scopeTabs:n,value:s,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:d,activationMode:h="automatic",...p}=e,m=(0,f.useDirection)(d),[v,y]=(0,c.useControllableState)({prop:s,onChange:i,defaultProp:a??"",caller:I});return(0,t.jsx)(F,{scope:n,baseId:(0,o.useId)(),value:v,onValueChange:y,orientation:l,dir:m,activationMode:h,children:(0,t.jsx)(u.Primitive.div,{dir:m,"data-orientation":l,...p,ref:r})})});O.displayName=I;var z="TabsList",K=n.forwardRef((e,r)=>{let{__scopeTabs:n,loop:s=!0,...i}=e,a=M(z,n),l=S(n);return(0,t.jsx)(w,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:s,children:(0,t.jsx)(u.Primitive.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:r})})});K.displayName=z;var V="TabsTrigger",H=n.forwardRef((e,r)=>{let{__scopeTabs:n,value:i,disabled:a=!1,...l}=e,o=M(V,n),d=S(n),c=G(o.baseId,i),f=B(o.baseId,i),h=i===o.value;return(0,t.jsx)(C,{asChild:!0,...d,focusable:!a,active:h,children:(0,t.jsx)(u.Primitive.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":f,"data-state":h?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...l,ref:r,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(i)}),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(i)}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==o.activationMode;h||a||!e||o.onValueChange(i)})})})});H.displayName=V;var L="TabsContent",_=n.forwardRef((e,r)=>{let{__scopeTabs:s,value:i,forceMount:a,children:l,...o}=e,d=M(L,s),c=G(d.baseId,i),f=B(d.baseId,i),h=i===d.value,p=n.useRef(h);return n.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(P.Presence,{present:a||h,children:({present:n})=>(0,t.jsx)(u.Primitive.div,{"data-state":h?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:f,tabIndex:0,...o,ref:r,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&l})})});function G(e,t){return`${e}-trigger-${t}`}function B(e,t){return`${e}-content-${t}`}_.displayName=L;var $=e.i(273172);function U({className:e,children:r,"data-testid":n,...s}){return(0,t.jsx)(O,{className:e,"data-testid":n,...s,children:r})}function W({className:e,children:r}){return(0,t.jsx)(K,{className:(0,$.cn)("inline-flex h-9 items-center gap-1 rounded-lg bg-background-secondary p-1",e),children:r})}function q({className:e,children:r,value:n}){return(0,t.jsx)(H,{value:n,className:(0,$.cn)("relative inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium text-foreground-muted transition-all duration-200","hover:text-foreground-secondary hover:bg-muted/50","data-[state=active]:bg-background-tertiary data-[state=active]:text-foreground data-[state=active]:shadow-sm","after:absolute after:bottom-0 after:left-1/2 after:-translate-x-1/2 after:h-0.5 after:w-0 after:rounded-full after:bg-primary after:transition-all after:duration-200","data-[state=active]:after:w-2/3",e),children:r})}function J({className:e,children:r,value:n}){return(0,t.jsx)(_,{value:n,className:(0,$.cn)("mt-2 focus-visible:outline-none",e),children:r})}var Z=e.i(311183),Q=e.i(23406),X=e.i(806790),Y=e.i(497035);function ee(){return(0,t.jsxs)("div",{className:"p-4 space-y-3 animate-pulse",children:[(0,t.jsx)("div",{className:"h-4 w-48 rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-3 w-full rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-3 w-3/4 rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-3 w-1/2 rounded bg-foreground-muted/10"})]})}let et=(0,r.default)(()=>e.A(649312).then(e=>({default:e.AgentPanel})),{loadableGenerated:{modules:[897644]},ssr:!1,loading:ee}),er=(0,r.default)(()=>e.A(758764).then(e=>({default:e.TimingPanel})),{loadableGenerated:{modules:[541145]},ssr:!1,loading:ee}),en=(0,r.default)(()=>e.A(341977).then(e=>({default:e.LogViewer})),{loadableGenerated:{modules:[350014]},ssr:!1,loading:ee}),es=(0,r.default)(()=>e.A(657398).then(e=>({default:e.JsonTree})),{loadableGenerated:{modules:[661914]},ssr:!1,loading:ee}),ei=(0,r.default)(()=>e.A(770127).then(e=>({default:e.BreakpointPanel})),{loadableGenerated:{modules:[155042]},ssr:!1,loading:ee});e.s(["TaskDetailPanel",0,function({runId:e,effectId:r,activeTab:n,onTabChange:s,runDuration:i,allTasks:a}){let{task:l,loading:o}=(0,Z.useTaskDetail)(e,r);if(!r)return(0,t.jsx)("div",{className:"flex items-center justify-center h-full text-sm text-foreground-muted",children:"Click a task to view details"});if(o&&!l)return(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)(Q.Loader2,{className:"h-5 w-5 animate-spin text-foreground-muted"})});let u=l?.kind==="breakpoint",d=u?"breakpoint":"agent";return(0,t.jsxs)(U,{"data-testid":"task-detail-tabs",value:n,onValueChange:s,defaultValue:d,className:"h-full flex flex-col",children:[(0,t.jsxs)(W,{className:"shrink-0 mx-4 mt-3",children:[u&&(0,t.jsxs)(q,{value:"breakpoint",className:"gap-1.5",children:[(0,t.jsx)(X.Hand,{className:"h-3 w-3"}),"Approval",(0,t.jsx)(Y.Kbd,{className:"ml-0.5 opacity-50",children:"5"})]}),(0,t.jsxs)(q,{value:"agent",className:"gap-1.5",children:["Agent ",(0,t.jsx)(Y.Kbd,{className:"ml-0.5 opacity-50",children:"1"})]}),(0,t.jsxs)(q,{value:"timing",className:"gap-1.5",children:["Timing ",(0,t.jsx)(Y.Kbd,{className:"ml-0.5 opacity-50",children:"2"})]}),(0,t.jsxs)(q,{value:"logs",className:"gap-1.5",children:["Logs ",(0,t.jsx)(Y.Kbd,{className:"ml-0.5 opacity-50",children:"3"})]}),(0,t.jsxs)(q,{value:"data",className:"gap-1.5",children:["Data ",(0,t.jsx)(Y.Kbd,{className:"ml-0.5 opacity-50",children:"4"})]})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[u&&l&&(0,t.jsx)(J,{value:"breakpoint",children:(0,t.jsx)(ei,{task:l,runId:e})}),(0,t.jsx)(J,{value:"agent",children:(0,t.jsx)(et,{task:l})}),(0,t.jsx)(J,{value:"timing",children:(0,t.jsx)(er,{task:l,runDuration:i,allTasks:a})}),(0,t.jsx)(J,{value:"logs",children:(0,t.jsx)(en,{task:l})}),(0,t.jsx)(J,{value:"data",children:(0,t.jsx)(es,{task:l})})]})]})}],363909)},471601,e=>{e.n(e.i(363909))},649312,e=>{e.v(t=>Promise.all(["static/chunks/0zk856yxa-i5f.js","static/chunks/04yay90ruer_3.js"].map(t=>e.l(t))).then(()=>t(897644)))},758764,e=>{e.v(t=>Promise.all(["static/chunks/0dqxmh9cvrgou.js"].map(t=>e.l(t))).then(()=>t(541145)))},341977,e=>{e.v(t=>Promise.all(["static/chunks/0l7ykfzdo~h3y.js"].map(t=>e.l(t))).then(()=>t(350014)))},657398,e=>{e.v(t=>Promise.all(["static/chunks/0ut~vcg~0._am.js"].map(t=>e.l(t))).then(()=>t(661914)))},770127,e=>{e.v(t=>Promise.all(["static/chunks/0wb~.houk6pn~.js","static/chunks/04yay90ruer_3.js"].map(t=>e.l(t))).then(()=>t(155042)))}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,334214,e=>{"use strict";var r=e.i(843476),t=e.i(271645),n=e.i(248425),o=e.i(296626),a=e.i(30030),l=e.i(820783),i=e.i(30207),s=e.i(586318),d=e.i(934620),c=e.i(981140),u="ScrollArea",[p,f]=(0,a.createContextScope)(u),[h,m]=p(u),v=t.forwardRef((e,o)=>{let{__scopeScrollArea:a,type:i="hover",dir:d,scrollHideDelay:c=600,...u}=e,[p,f]=t.useState(null),[m,v]=t.useState(null),[x,b]=t.useState(null),[g,w]=t.useState(null),[y,j]=t.useState(null),[C,S]=t.useState(0),[N,R]=t.useState(0),[k,_]=t.useState(!1),[E,A]=t.useState(!1),P=(0,l.useComposedRefs)(o,e=>f(e)),T=(0,s.useDirection)(d);return(0,r.jsx)(h,{scope:a,type:i,dir:T,scrollHideDelay:c,scrollArea:p,viewport:m,onViewportChange:v,content:x,onContentChange:b,scrollbarX:g,onScrollbarXChange:w,scrollbarXEnabled:k,onScrollbarXEnabledChange:_,scrollbarY:y,onScrollbarYChange:j,scrollbarYEnabled:E,onScrollbarYEnabledChange:A,onCornerWidthChange:S,onCornerHeightChange:R,children:(0,r.jsx)(n.Primitive.div,{dir:T,...u,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});v.displayName=u;var x="ScrollAreaViewport",b=t.forwardRef((e,o)=>{let{__scopeScrollArea:a,children:i,nonce:s,...d}=e,c=m(x,a),u=t.useRef(null),p=(0,l.useComposedRefs)(o,u,c.onViewportChange);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),(0,r.jsx)(n.Primitive.div,{"data-radix-scroll-area-viewport":"",...d,ref:p,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,r.jsx)("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});b.displayName=x;var g="ScrollAreaScrollbar",w=t.forwardRef((e,n)=>{let{forceMount:o,...a}=e,l=m(g,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=l,d="horizontal"===e.orientation;return t.useEffect(()=>(d?i(!0):s(!0),()=>{d?i(!1):s(!1)}),[d,i,s]),"hover"===l.type?(0,r.jsx)(y,{...a,ref:n,forceMount:o}):"scroll"===l.type?(0,r.jsx)(j,{...a,ref:n,forceMount:o}):"auto"===l.type?(0,r.jsx)(C,{...a,ref:n,forceMount:o}):"always"===l.type?(0,r.jsx)(S,{...a,ref:n}):null});w.displayName=g;var y=t.forwardRef((e,n)=>{let{forceMount:a,...l}=e,i=m(g,e.__scopeScrollArea),[s,d]=t.useState(!1);return t.useEffect(()=>{let e=i.scrollArea,r=0;if(e){let t=()=>{window.clearTimeout(r),d(!0)},n=()=>{r=window.setTimeout(()=>d(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",t),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(r),e.removeEventListener("pointerenter",t),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,r.jsx)(o.Presence,{present:a||s,children:(0,r.jsx)(C,{"data-state":s?"visible":"hidden",...l,ref:n})})}),j=t.forwardRef((e,n)=>{var a;let{forceMount:l,...i}=e,s=m(g,e.__scopeScrollArea),d="horizontal"===e.orientation,u=W(()=>f("SCROLL_END"),100),[p,f]=(a={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},t.useReducer((e,r)=>a[e][r]??e,"hidden"));return t.useEffect(()=>{if("idle"===p){let e=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[p,s.scrollHideDelay,f]),t.useEffect(()=>{let e=s.viewport,r=d?"scrollLeft":"scrollTop";if(e){let t=e[r],n=()=>{let n=e[r];t!==n&&(f("SCROLL"),u()),t=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[s.viewport,d,f,u]),(0,r.jsx)(o.Presence,{present:l||"hidden"!==p,children:(0,r.jsx)(S,{"data-state":"hidden"===p?"hidden":"visible",...i,ref:n,onPointerEnter:(0,c.composeEventHandlers)(e.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:(0,c.composeEventHandlers)(e.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),C=t.forwardRef((e,n)=>{let a=m(g,e.__scopeScrollArea),{forceMount:l,...i}=e,[s,d]=t.useState(!1),c="horizontal"===e.orientation,u=W(()=>{if(a.viewport){let e=a.viewport.offsetWidth<a.viewport.scrollWidth,r=a.viewport.offsetHeight<a.viewport.scrollHeight;d(c?e:r)}},10);return F(a.viewport,u),F(a.content,u),(0,r.jsx)(o.Presence,{present:l||s,children:(0,r.jsx)(S,{"data-state":s?"visible":"hidden",...i,ref:n})})}),S=t.forwardRef((e,n)=>{let{orientation:o="vertical",...a}=e,l=m(g,e.__scopeScrollArea),i=t.useRef(null),s=t.useRef(0),[d,c]=t.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=H(d.viewport,d.content),p={...a,sizes:d,onSizesChange:c,hasThumb:!!(u>0&&u<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function f(e,r){return function(e,r,t,n="ltr"){let o=O(t),a=r||o/2,l=t.scrollbar.paddingStart+a,i=t.scrollbar.size-t.scrollbar.paddingEnd-(o-a),s=t.content-t.viewport;return B([l,i],"ltr"===n?[0,s]:[-1*s,0])(e)}(e,s.current,d,r)}return"horizontal"===o?(0,r.jsx)(N,{...p,ref:n,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=z(l.viewport.scrollLeft,d,l.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=f(e,l.dir))}}):"vertical"===o?(0,r.jsx)(R,{...p,ref:n,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=z(l.viewport.scrollTop,d);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=f(e))}}):null}),N=t.forwardRef((e,n)=>{let{sizes:o,onSizesChange:a,...i}=e,s=m(g,e.__scopeScrollArea),[d,c]=t.useState(),u=t.useRef(null),p=(0,l.useComposedRefs)(n,u,s.onScrollbarXChange);return t.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,r.jsx)(E,{"data-orientation":"horizontal",...i,ref:p,sizes:o,style:{bottom:0,left:"rtl"===s.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===s.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":O(o)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.x),onDragScroll:r=>e.onDragScroll(r.x),onWheelScroll:(r,t)=>{if(s.viewport){var n,o;let a=s.viewport.scrollLeft+r.deltaX;e.onWheelScroll(a),n=a,o=t,n>0&&n<o&&r.preventDefault()}},onResize:()=>{u.current&&s.viewport&&d&&a({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:I(d.paddingLeft),paddingEnd:I(d.paddingRight)}})}})}),R=t.forwardRef((e,n)=>{let{sizes:o,onSizesChange:a,...i}=e,s=m(g,e.__scopeScrollArea),[d,c]=t.useState(),u=t.useRef(null),p=(0,l.useComposedRefs)(n,u,s.onScrollbarYChange);return t.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,r.jsx)(E,{"data-orientation":"vertical",...i,ref:p,sizes:o,style:{top:0,right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":O(o)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.y),onDragScroll:r=>e.onDragScroll(r.y),onWheelScroll:(r,t)=>{if(s.viewport){var n,o;let a=s.viewport.scrollTop+r.deltaY;e.onWheelScroll(a),n=a,o=t,n>0&&n<o&&r.preventDefault()}},onResize:()=>{u.current&&s.viewport&&d&&a({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:I(d.paddingTop),paddingEnd:I(d.paddingBottom)}})}})}),[k,_]=p(g),E=t.forwardRef((e,o)=>{let{__scopeScrollArea:a,sizes:s,hasThumb:d,onThumbChange:u,onThumbPointerUp:p,onThumbPointerDown:f,onThumbPositionChange:h,onDragScroll:v,onWheelScroll:x,onResize:b,...w}=e,y=m(g,a),[j,C]=t.useState(null),S=(0,l.useComposedRefs)(o,e=>C(e)),N=t.useRef(null),R=t.useRef(""),_=y.viewport,E=s.content-s.viewport,A=(0,i.useCallbackRef)(x),P=(0,i.useCallbackRef)(h),T=W(b,10);function L(e){N.current&&v({x:e.clientX-N.current.left,y:e.clientY-N.current.top})}return t.useEffect(()=>{let e=e=>{let r=e.target;j?.contains(r)&&A(e,E)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[_,j,E,A]),t.useEffect(P,[s,P]),F(j,T),F(y.content,T),(0,r.jsx)(k,{scope:a,scrollbar:j,hasThumb:d,onThumbChange:(0,i.useCallbackRef)(u),onThumbPointerUp:(0,i.useCallbackRef)(p),onThumbPositionChange:P,onThumbPointerDown:(0,i.useCallbackRef)(f),children:(0,r.jsx)(n.Primitive.div,{...w,ref:S,style:{position:"absolute",...w.style},onPointerDown:(0,c.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),N.current=j.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),L(e))}),onPointerMove:(0,c.composeEventHandlers)(e.onPointerMove,L),onPointerUp:(0,c.composeEventHandlers)(e.onPointerUp,e=>{let r=e.target;r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=R.current,y.viewport&&(y.viewport.style.scrollBehavior=""),N.current=null})})})}),A="ScrollAreaThumb",P=t.forwardRef((e,t)=>{let{forceMount:n,...a}=e,l=_(A,e.__scopeScrollArea);return(0,r.jsx)(o.Presence,{present:n||l.hasThumb,children:(0,r.jsx)(T,{ref:t,...a})})}),T=t.forwardRef((e,o)=>{let{__scopeScrollArea:a,style:i,...s}=e,d=m(A,a),u=_(A,a),{onThumbPositionChange:p}=u,f=(0,l.useComposedRefs)(o,e=>u.onThumbChange(e)),h=t.useRef(void 0),v=W(()=>{h.current&&(h.current(),h.current=void 0)},100);return t.useEffect(()=>{let e=d.viewport;if(e){let r=()=>{v(),h.current||(h.current=M(e,p),p())};return p(),e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[d.viewport,v,p]),(0,r.jsx)(n.Primitive.div,{"data-state":u.hasThumb?"visible":"hidden",...s,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:(0,c.composeEventHandlers)(e.onPointerDownCapture,e=>{let r=e.target.getBoundingClientRect(),t=e.clientX-r.left,n=e.clientY-r.top;u.onThumbPointerDown({x:t,y:n})}),onPointerUp:(0,c.composeEventHandlers)(e.onPointerUp,u.onThumbPointerUp)})});P.displayName=A;var L="ScrollAreaCorner";t.forwardRef((e,t)=>{let n=m(L,e.__scopeScrollArea),o=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&o?(0,r.jsx)(D,{...e,ref:t}):null}).displayName=L;var D=t.forwardRef((e,o)=>{let{__scopeScrollArea:a,...l}=e,i=m(L,a),[s,d]=t.useState(0),[c,u]=t.useState(0),p=!!(s&&c);return F(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),u(e)}),F(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),d(e)}),p?(0,r.jsx)(n.Primitive.div,{...l,ref:o,style:{width:s,height:c,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function I(e){return e?parseInt(e,10):0}function H(e,r){let t=e/r;return isNaN(t)?0:t}function O(e){let r=H(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-t)*r,18)}function z(e,r,t="ltr"){let n=O(r),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,a=r.scrollbar.size-o,l=r.content-r.viewport,i=function(e,[r,t]){return Math.min(t,Math.max(r,e))}(e,"ltr"===t?[0,l]:[-1*l,0]);return B([0,l],[0,a-n])(i)}function B(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];let n=(r[1]-r[0])/(e[1]-e[0]);return r[0]+n*(t-e[0])}}var M=(e,r=()=>{})=>{let t={left:e.scrollLeft,top:e.scrollTop},n=0;return!function o(){let a={left:e.scrollLeft,top:e.scrollTop},l=t.left!==a.left,i=t.top!==a.top;(l||i)&&r(),t=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function W(e,r){let n=(0,i.useCallbackRef)(e),o=t.useRef(0);return t.useEffect(()=>()=>window.clearTimeout(o.current),[]),t.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(n,r)},[n,r])}function F(e,r){let t=(0,i.useCallbackRef)(r);(0,d.useLayoutEffect)(()=>{let r=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return n.observe(e),()=>{window.cancelAnimationFrame(r),n.unobserve(e)}}},[e,t])}var U=e.i(273172);let q=t.forwardRef(function({className:e,children:t,...n},o){return(0,r.jsxs)(v,{ref:o,className:(0,U.cn)("relative overflow-hidden",e),...n,children:[(0,r.jsx)(b,{className:"h-full w-full rounded-[inherit]",children:t}),(0,r.jsx)(w,{orientation:"vertical",className:"flex touch-none select-none p-0.5 transition-colors data-[orientation=vertical]:w-2",children:(0,r.jsx)(P,{className:"relative flex-1 rounded-full bg-primary/20 hover:bg-primary/35 transition-colors duration-200"})})]})});e.s(["ScrollArea",0,q],334214)},908080,e=>{"use strict";let r=(0,e.i(621255).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,r],908080)},411670,e=>{"use strict";let r=(0,e.i(621255).default)("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,r],411670)},95187,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let a=e.r(132120),l=e.r(92245),i=e.r(235326)},689517,e=>{"use strict";var r=e.i(95187);let t=(0,r.createServerReference)("70d1c9cbf1f111e66dc763f21e4a0bd259f7edb59d",r.callServer,void 0,r.findSourceMapURL,"approveBreakpoint");e.s(["approveBreakpoint",0,t])},348971,e=>{"use strict";let r,t,n;var o=e.i(843476),a=e.i(273172),l=e.i(877051),i=e.i(271645),s=e.i(595833),d=e.i(30030),c=e.i(75830),u=e.i(820783),p=e.i(981140),f=e.i(369340),h=e.i(248425),m=e.i(934620),v=e.i(296626),x=e.i(610772),b="Collapsible",[g,w]=(0,d.createContextScope)(b),[y,j]=g(b),C=i.forwardRef((e,r)=>{let{__scopeCollapsible:t,open:n,defaultOpen:a,disabled:l,onOpenChange:s,...d}=e,[c,u]=(0,f.useControllableState)({prop:n,defaultProp:a??!1,onChange:s,caller:b});return(0,o.jsx)(y,{scope:t,disabled:l,contentId:(0,x.useId)(),open:c,onOpenToggle:i.useCallback(()=>u(e=>!e),[u]),children:(0,o.jsx)(h.Primitive.div,{"data-state":E(c),"data-disabled":l?"":void 0,...d,ref:r})})});C.displayName=b;var S="CollapsibleTrigger",N=i.forwardRef((e,r)=>{let{__scopeCollapsible:t,...n}=e,a=j(S,t);return(0,o.jsx)(h.Primitive.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":E(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:r,onClick:(0,p.composeEventHandlers)(e.onClick,a.onOpenToggle)})});N.displayName=S;var R="CollapsibleContent",k=i.forwardRef((e,r)=>{let{forceMount:t,...n}=e,a=j(R,e.__scopeCollapsible);return(0,o.jsx)(v.Presence,{present:t||a.open,children:({present:e})=>(0,o.jsx)(_,{...n,ref:r,present:e})})});k.displayName=R;var _=i.forwardRef((e,r)=>{let{__scopeCollapsible:t,present:n,children:a,...l}=e,s=j(R,t),[d,c]=i.useState(n),p=i.useRef(null),f=(0,u.useComposedRefs)(r,p),v=i.useRef(0),x=v.current,b=i.useRef(0),g=b.current,w=s.open||d,y=i.useRef(w),C=i.useRef(void 0);return i.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,m.useLayoutEffect)(()=>{let e=p.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let r=e.getBoundingClientRect();v.current=r.height,b.current=r.width,y.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),c(n)}},[s.open,n]),(0,o.jsx)(h.Primitive.div,{"data-state":E(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!w,...l,ref:f,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:w&&a})});function E(e){return e?"open":"closed"}var A=e.i(586318),P="Accordion",T=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[L,D,I]=(0,c.createCollection)(P),[H,O]=(0,d.createContextScope)(P,[I,w]),z=w(),B=i.default.forwardRef((e,r)=>{let{type:t,...n}=e;return(0,o.jsx)(L.Provider,{scope:e.__scopeAccordion,children:"multiple"===t?(0,o.jsx)(V,{...n,ref:r}):(0,o.jsx)(q,{...n,ref:r})})});B.displayName=P;var[M,W]=H(P),[F,U]=H(P,{collapsible:!1}),q=i.default.forwardRef((e,r)=>{let{value:t,defaultValue:n,onValueChange:a=()=>{},collapsible:l=!1,...s}=e,[d,c]=(0,f.useControllableState)({prop:t,defaultProp:n??"",onChange:a,caller:P});return(0,o.jsx)(M,{scope:e.__scopeAccordion,value:i.default.useMemo(()=>d?[d]:[],[d]),onItemOpen:c,onItemClose:i.default.useCallback(()=>l&&c(""),[l,c]),children:(0,o.jsx)(F,{scope:e.__scopeAccordion,collapsible:l,children:(0,o.jsx)(Y,{...s,ref:r})})})}),V=i.default.forwardRef((e,r)=>{let{value:t,defaultValue:n,onValueChange:a=()=>{},...l}=e,[s,d]=(0,f.useControllableState)({prop:t,defaultProp:n??[],onChange:a,caller:P}),c=i.default.useCallback(e=>d((r=[])=>[...r,e]),[d]),u=i.default.useCallback(e=>d((r=[])=>r.filter(r=>r!==e)),[d]);return(0,o.jsx)(M,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:u,children:(0,o.jsx)(F,{scope:e.__scopeAccordion,collapsible:!0,children:(0,o.jsx)(Y,{...l,ref:r})})})}),[$,X]=H(P),Y=i.default.forwardRef((e,r)=>{let{__scopeAccordion:t,disabled:n,dir:a,orientation:l="vertical",...s}=e,d=i.default.useRef(null),c=(0,u.useComposedRefs)(d,r),f=D(t),m="ltr"===(0,A.useDirection)(a),v=(0,p.composeEventHandlers)(e.onKeyDown,e=>{if(!T.includes(e.key))return;let r=e.target,t=f().filter(e=>!e.ref.current?.disabled),n=t.findIndex(e=>e.ref.current===r),o=t.length;if(-1===n)return;e.preventDefault();let a=n,i=o-1,s=()=>{(a=n+1)>i&&(a=0)},d=()=>{(a=n-1)<0&&(a=i)};switch(e.key){case"Home":a=0;break;case"End":a=i;break;case"ArrowRight":"horizontal"===l&&(m?s():d());break;case"ArrowDown":"vertical"===l&&s();break;case"ArrowLeft":"horizontal"===l&&(m?d():s());break;case"ArrowUp":"vertical"===l&&d()}let c=a%o;t[c].ref.current?.focus()});return(0,o.jsx)($,{scope:t,disabled:n,direction:a,orientation:l,children:(0,o.jsx)(L.Slot,{scope:t,children:(0,o.jsx)(h.Primitive.div,{...s,"data-orientation":l,ref:c,onKeyDown:n?void 0:v})})})}),K="AccordionItem",[J,Z]=H(K),Q=i.default.forwardRef((e,r)=>{let{__scopeAccordion:t,value:n,...a}=e,l=X(K,t),i=W(K,t),s=z(t),d=(0,x.useId)(),c=n&&i.value.includes(n)||!1,u=l.disabled||e.disabled;return(0,o.jsx)(J,{scope:t,open:c,disabled:u,triggerId:d,children:(0,o.jsx)(C,{"data-orientation":l.orientation,"data-state":ea(c),...s,...a,ref:r,disabled:u,open:c,onOpenChange:e=>{e?i.onItemOpen(n):i.onItemClose(n)}})})});Q.displayName=K;var G="AccordionHeader",ee=i.default.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,a=X(P,t),l=Z(G,t);return(0,o.jsx)(h.Primitive.h3,{"data-orientation":a.orientation,"data-state":ea(l.open),"data-disabled":l.disabled?"":void 0,...n,ref:r})});ee.displayName=G;var er="AccordionTrigger",et=i.default.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,a=X(P,t),l=Z(er,t),i=U(er,t),s=z(t);return(0,o.jsx)(L.ItemSlot,{scope:t,children:(0,o.jsx)(N,{"aria-disabled":l.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:l.triggerId,...s,...n,ref:r})})});et.displayName=er;var en="AccordionContent",eo=i.default.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,a=X(P,t),l=Z(en,t),i=z(t);return(0,o.jsx)(k,{role:"region","aria-labelledby":l.triggerId,"data-orientation":a.orientation,...i,...n,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function ea(e){return e?"open":"closed"}eo.displayName=en;var el=e.i(908080);function ei({children:e,className:r,...t}){return(0,o.jsx)(B,{className:r,...t,children:e})}function es({className:e,children:r,value:t}){return(0,o.jsx)(Q,{value:t,className:e,children:r})}function ed({className:e,children:r}){return(0,o.jsx)(ee,{className:"flex",children:(0,o.jsxs)(et,{className:(0,a.cn)("flex flex-1 items-center gap-2 py-3 text-sm font-medium transition-all duration-200 hover:text-primary [&[data-state=open]>svg]:rotate-90 [&[data-state=open]]:text-foreground",e),children:[(0,o.jsx)(el.ChevronRight,{className:"h-4 w-4 shrink-0 text-foreground-muted transition-transform duration-300 ease-in-out"}),r]})})}function ec({className:e,children:r}){return(0,o.jsx)(eo,{className:"overflow-hidden text-sm data-[state=open]:animate-[fadeIn_200ms_ease-out] data-[state=closed]:animate-[fadeIn_200ms_ease-out_reverse]",children:(0,o.jsx)("div",{className:(0,a.cn)("pb-4 pt-0",e),children:r})})}var eu=e.i(621255);let ep=(0,eu.default)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),ef=(0,eu.default)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]),eh=(0,eu.default)("FileJson",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);var em=e.i(23406);let ev={markdown:(0,o.jsx)(ep,{className:"h-3.5 w-3.5 text-info"}),json:(0,o.jsx)(eh,{className:"h-3.5 w-3.5 text-warning"}),code:(0,o.jsx)(ef,{className:"h-3.5 w-3.5 text-success"})};function ex({content:e,format:r}){let t=(0,i.useMemo)(()=>{if("json"===r)try{return JSON.stringify(JSON.parse(e),null,2)}catch{;}return e},[e,r]);if("markdown"===r)return(0,o.jsx)("div",{className:(0,a.cn)("rounded-md bg-background border border-border/50 p-4","text-sm text-foreground-secondary leading-relaxed","overflow-x-auto max-h-80 overflow-y-auto","prose-sm prose-invert","[&_h1]:text-base [&_h1]:font-bold [&_h1]:mb-2 [&_h1]:text-foreground","[&_h2]:text-sm [&_h2]:font-semibold [&_h2]:mb-1.5 [&_h2]:text-foreground","[&_h3]:text-xs [&_h3]:font-medium [&_h3]:mb-1 [&_h3]:text-foreground","[&_code]:bg-background-secondary [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs [&_code]:font-mono","[&_pre]:bg-background-secondary [&_pre]:p-2 [&_pre]:rounded [&_pre]:text-xs [&_pre]:font-mono [&_pre]:overflow-x-auto","[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4","[&_li]:mb-0.5","[&_strong]:font-semibold [&_strong]:text-foreground","[&_a]:text-primary [&_a]:underline"),children:(0,o.jsx)("pre",{className:"whitespace-pre-wrap break-words font-sans",children:e})});let n=t.split("\n"),l=String(n.length).length;return(0,o.jsx)("div",{className:(0,a.cn)("rounded-md bg-background border border-border/50","text-xs font-mono overflow-x-auto max-h-80 overflow-y-auto"),children:(0,o.jsx)("table",{className:"w-full border-collapse",children:(0,o.jsx)("tbody",{children:n.map((e,r)=>(0,o.jsxs)("tr",{className:"hover:bg-background-secondary/50",children:[(0,o.jsx)("td",{className:"select-none text-right pr-3 pl-2 text-foreground-muted/40 border-r border-border/30 align-top font-mono",style:{width:`${l+2}ch`},children:r+1}),(0,o.jsx)("td",{className:"pl-3 pr-3 text-foreground-secondary whitespace-pre-wrap break-words",children:e||" "})]},r))})})})}function eb({files:e,runId:r,effectId:t}){let[n,a]=(0,i.useState)({}),[d,c]=(0,i.useState)({}),u=(0,i.useRef)({});async function p(e){if(n[e]||d[e])return;c(r=>({...r,[e]:!0})),u.current[e]?.abort(),u.current[e]=new AbortController;let o=await (0,s.resilientFetch)(`/api/runs/${r}/tasks/${t}?file=${encodeURIComponent(e)}`,{signal:u.current[e].signal});if(o.ok)a(r=>({...r,[e]:o.data.content||"// No content available"}));else{if(o.error.isAborted)return;a(r=>({...r,[e]:"// Failed to load file content"}))}c(r=>({...r,[e]:!1}))}return((0,i.useEffect)(()=>{let e=u.current;return()=>{for(let r of Object.values(e))r.abort()}},[]),e.length)?(0,o.jsxs)("div",{"data-testid":"file-preview",className:"space-y-1",children:[(0,o.jsx)("h4",{className:"text-xs font-medium text-foreground-muted uppercase tracking-wider mb-2 pl-2 border-l-2 border-primary",children:"Attached Files"}),(0,o.jsx)(ei,{type:"single",collapsible:!0,onValueChange:r=>{let t="string"==typeof r?r:r[0];if(t){let r=e.find(e=>e.path===t);r&&p(r.path)}},children:e.map(e=>(0,o.jsxs)(es,{value:e.path,className:"border-border/50",children:[(0,o.jsx)(ed,{className:"py-2 text-xs",children:(0,o.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[ev[e.format]||(0,o.jsx)(ep,{className:"h-3.5 w-3.5 text-foreground-muted"}),(0,o.jsx)("span",{className:"font-mono text-foreground-secondary truncate",children:e.path}),(0,o.jsx)(l.Badge,{variant:function(e){switch(e){case"markdown":return"info";case"json":return"warning";case"code":return"success";default:return"pending"}}(e.format),className:"text-xs leading-tight px-1.5 py-0",children:e.format}),e.language&&(0,o.jsx)(l.Badge,{variant:"pending",className:"text-xs leading-tight px-1.5 py-0",children:e.language})]})}),(0,o.jsx)(ec,{className:"px-1",children:d[e.path]?(0,o.jsx)("div",{className:"flex items-center justify-center py-6",children:(0,o.jsx)(em.Loader2,{className:"h-4 w-4 animate-spin text-foreground-muted"})}):n[e.path]?(0,o.jsx)(ex,{content:n[e.path],format:e.format}):(0,o.jsx)("div",{className:"py-4 text-xs text-foreground-muted text-center",children:"Expand to load content"})})]},e.path))})]}):null}var eg=e.i(225913),ew=Symbol.for("react.lazy"),ey=i[" use ".trim().toString()];function ej(e){var r;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===ew&&"_payload"in e&&"object"==typeof(r=e._payload)&&null!==r&&"then"in r}var eC=((n=i.forwardRef((e,r)=>{let{children:t,...n}=e;if(ej(t)&&"function"==typeof ey&&(t=ey(t._payload)),i.isValidElement(t)){var o;let e,a,l=(o=t,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),s=function(e,r){let t={...r};for(let n in r){let o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?t[n]=(...e)=>{let r=a(...e);return o(...e),r}:o&&(t[n]=o):"style"===n?t[n]={...o,...a}:"className"===n&&(t[n]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}(n,t.props);return t.type!==i.Fragment&&(s.ref=r?(0,u.composeRefs)(r,l):l),i.cloneElement(t,s)}return i.Children.count(t)>1?i.Children.only(null):null})).displayName="Slot.SlotClone",r=n,(t=i.forwardRef((e,t)=>{let{children:n,...a}=e;ej(n)&&"function"==typeof ey&&(n=ey(n._payload));let l=i.Children.toArray(n),s=l.find(eN);if(s){let e=s.props.children,n=l.map(r=>r!==s?r:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,o.jsx)(r,{...a,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,o.jsx)(r,{...a,ref:t,children:n})})).displayName="Slot.Slot",t),eS=Symbol("radix.slottable");function eN(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eS}let eR=(0,eg.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md border text-sm font-medium italic tracking-[0.04em] transition-all duration-200 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 font-serif",{variants:{variant:{default:"border-primary/60 bg-primary text-primary-foreground shadow-sm hover:bg-[var(--primary-hover)] hover:shadow-md",neon:"border-primary/40 bg-primary-muted text-primary hover:border-primary/60 hover:bg-primary-muted/80 hover:shadow-glow-primary",outline:"border-border-hover bg-transparent text-foreground hover:bg-card hover:border-primary/30 hover:shadow-sm",ghost:"border-transparent bg-transparent text-foreground-secondary hover:bg-muted hover:text-foreground",destructive:"border-destructive/60 bg-destructive text-destructive-foreground hover:bg-destructive/90 hover:shadow-glow-error"},size:{default:"h-9 px-4 py-2",sm:"h-11 px-3 text-xs",lg:"h-10 px-6",icon:"h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}});function ek({className:e,variant:r,size:t,asChild:n=!1,...l}){let i=(0,a.cn)(eR({variant:r,size:t}),e);return n?(0,o.jsx)(eC,{className:i,...l}):(0,o.jsx)("button",{className:i,...l})}var e_=e.i(368842),eE=e.i(411670),eA=e.i(689517);function eP({task:e,runId:r}){let[t,n]=(0,i.useState)(""),[l,s]=(0,i.useTransition)(),[d,c]=(0,i.useState)(null),u=e.breakpoint?.options||[];if("requested"!==e.status)return null;function p(t){t.trim()&&(c(null),s(async()=>{c(await (0,eA.approveBreakpoint)(r,e.effectId,t))}))}return(0,o.jsxs)("div",{"data-testid":"breakpoint-approval",className:"space-y-4",children:[u.length>0&&(0,o.jsxs)("div",{"data-testid":"breakpoint-options",className:"space-y-2",children:[(0,o.jsx)("label",{className:"text-xs font-medium text-foreground-muted uppercase tracking-wider",children:"Choose an option"}),(0,o.jsx)("div",{className:"flex flex-wrap gap-2",children:u.map(e=>(0,o.jsx)(ek,{variant:"neon",size:"sm",disabled:l,onClick:()=>p(e),"data-testid":`option-btn-${e}`,children:e},e))})]}),(0,o.jsxs)("form",{onSubmit:function(e){e.preventDefault(),p(t)},className:"space-y-2",children:[(0,o.jsx)("label",{htmlFor:"custom-answer",className:"text-xs font-medium text-foreground-muted uppercase tracking-wider",children:u.length>0?"Or provide a custom answer":"Provide an answer"}),(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)("input",{id:"custom-answer","data-testid":"custom-answer-input",type:"text",value:t,onChange:e=>n(e.target.value),placeholder:"Type your answer...",disabled:l,className:(0,a.cn)("flex-1 rounded-md border border-border bg-background px-3 py-2 text-sm","placeholder:text-foreground-muted/50","focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary/50","disabled:opacity-50 disabled:cursor-not-allowed")}),(0,o.jsx)(ek,{type:"submit",variant:"default",size:"sm",disabled:l||!t.trim(),"data-testid":"approve-btn",children:l?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(em.Loader2,{className:"h-3 w-3 animate-spin"}),"Approving..."]}):"Approve"})]})]}),d&&(0,o.jsx)("div",{"data-testid":"approval-result",className:(0,a.cn)("rounded-lg border p-3 flex items-center gap-2 text-sm",d.success?"border-success/30 bg-success-muted text-success":"border-error/30 bg-error-muted text-error"),children:d.success?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e_.CheckCircle2,{className:"h-4 w-4 shrink-0"}),(0,o.jsx)("span",{children:"Breakpoint approved successfully. The dashboard will update automatically."})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eE.AlertCircle,{className:"h-4 w-4 shrink-0"}),(0,o.jsx)("span",{children:d.error||"An unknown error occurred"})]})})]})}var eT=e.i(334214),eL=e.i(806790),eD=e.i(246519);e.s(["BreakpointPanel",0,function({task:e,runId:r}){let t=e.breakpoint,n=t?.question||e.breakpointQuestion||"Approval required",i=t?.title||e.title||"Breakpoint",s=t?.context?.files||[],d="requested"===e.status;return(0,o.jsx)(eT.ScrollArea,{className:"h-full",children:(0,o.jsxs)("div",{"data-testid":"breakpoint-panel",className:"space-y-5 p-4",children:[(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(eL.Hand,{className:(0,a.cn)("h-4 w-4 text-warning",d&&"animate-pulse-dot")}),(0,o.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:i})]}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(l.Badge,{variant:"warning",children:"Breakpoint"}),"resolved"===e.status&&(0,o.jsx)(l.Badge,{variant:"success",children:"Already Resolved"})]}),(0,o.jsx)(eD.TruncatedId,{id:e.effectId,chars:4,className:"text-foreground-muted"})]}),(0,o.jsx)("div",{className:(0,a.cn)("rounded-lg border-2 p-5","bg-warning-muted border-warning/40",d&&"animate-breakpoint-glow"),style:d?{boxShadow:"var(--breakpoint-glow)"}:void 0,children:(0,o.jsxs)("div",{className:"flex items-start gap-3",children:[(0,o.jsx)(eL.Hand,{className:"h-6 w-6 text-warning shrink-0 mt-0.5 animate-pulse-dot"}),(0,o.jsxs)("div",{className:"min-w-0",children:[(0,o.jsx)("h4",{className:(0,a.cn)("text-xs leading-tight font-medium uppercase tracking-widest mb-2",d?"text-warning":"text-success"),children:d?"Awaiting decision":"Decision made"}),(0,o.jsx)("p",{"data-testid":"breakpoint-question",className:"text-base text-foreground font-medium leading-relaxed whitespace-pre-wrap break-words",children:n})]})]})}),d&&(0,o.jsx)(eP,{task:e,runId:r}),s.length>0&&(0,o.jsx)(eb,{files:s,runId:r,effectId:e.effectId}),"resolved"===e.status&&(0,o.jsxs)("div",{className:"rounded-lg bg-success-muted border border-success/30 p-4 flex items-center gap-3 shadow-glow-success",children:[(0,o.jsx)("div",{className:"flex items-center justify-center h-8 w-8 rounded-full bg-success/15",children:(0,o.jsx)(e_.CheckCircle2,{className:"h-5 w-5 text-success"})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"text-sm text-success font-semibold block",children:"Approved"}),(0,o.jsx)("span",{className:"text-xs leading-tight text-foreground-muted",children:"Breakpoint has been resolved"})]})]})]})})}],348971)},155042,e=>{e.n(e.i(348971))}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,334214,e=>{"use strict";var r=e.i(843476),t=e.i(271645),n=e.i(248425),o=e.i(296626),a=e.i(30030),l=e.i(820783),i=e.i(30207),s=e.i(586318),d=e.i(934620),c=e.i(981140),u="ScrollArea",[p,f]=(0,a.createContextScope)(u),[h,m]=p(u),v=t.forwardRef((e,o)=>{let{__scopeScrollArea:a,type:i="hover",dir:d,scrollHideDelay:c=600,...u}=e,[p,f]=t.useState(null),[m,v]=t.useState(null),[x,b]=t.useState(null),[g,w]=t.useState(null),[y,j]=t.useState(null),[C,S]=t.useState(0),[N,R]=t.useState(0),[k,_]=t.useState(!1),[E,A]=t.useState(!1),P=(0,l.useComposedRefs)(o,e=>f(e)),T=(0,s.useDirection)(d);return(0,r.jsx)(h,{scope:a,type:i,dir:T,scrollHideDelay:c,scrollArea:p,viewport:m,onViewportChange:v,content:x,onContentChange:b,scrollbarX:g,onScrollbarXChange:w,scrollbarXEnabled:k,onScrollbarXEnabledChange:_,scrollbarY:y,onScrollbarYChange:j,scrollbarYEnabled:E,onScrollbarYEnabledChange:A,onCornerWidthChange:S,onCornerHeightChange:R,children:(0,r.jsx)(n.Primitive.div,{dir:T,...u,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});v.displayName=u;var x="ScrollAreaViewport",b=t.forwardRef((e,o)=>{let{__scopeScrollArea:a,children:i,nonce:s,...d}=e,c=m(x,a),u=t.useRef(null),p=(0,l.useComposedRefs)(o,u,c.onViewportChange);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),(0,r.jsx)(n.Primitive.div,{"data-radix-scroll-area-viewport":"",...d,ref:p,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,r.jsx)("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});b.displayName=x;var g="ScrollAreaScrollbar",w=t.forwardRef((e,n)=>{let{forceMount:o,...a}=e,l=m(g,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=l,d="horizontal"===e.orientation;return t.useEffect(()=>(d?i(!0):s(!0),()=>{d?i(!1):s(!1)}),[d,i,s]),"hover"===l.type?(0,r.jsx)(y,{...a,ref:n,forceMount:o}):"scroll"===l.type?(0,r.jsx)(j,{...a,ref:n,forceMount:o}):"auto"===l.type?(0,r.jsx)(C,{...a,ref:n,forceMount:o}):"always"===l.type?(0,r.jsx)(S,{...a,ref:n}):null});w.displayName=g;var y=t.forwardRef((e,n)=>{let{forceMount:a,...l}=e,i=m(g,e.__scopeScrollArea),[s,d]=t.useState(!1);return t.useEffect(()=>{let e=i.scrollArea,r=0;if(e){let t=()=>{window.clearTimeout(r),d(!0)},n=()=>{r=window.setTimeout(()=>d(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",t),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(r),e.removeEventListener("pointerenter",t),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,r.jsx)(o.Presence,{present:a||s,children:(0,r.jsx)(C,{"data-state":s?"visible":"hidden",...l,ref:n})})}),j=t.forwardRef((e,n)=>{var a;let{forceMount:l,...i}=e,s=m(g,e.__scopeScrollArea),d="horizontal"===e.orientation,u=W(()=>f("SCROLL_END"),100),[p,f]=(a={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},t.useReducer((e,r)=>a[e][r]??e,"hidden"));return t.useEffect(()=>{if("idle"===p){let e=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[p,s.scrollHideDelay,f]),t.useEffect(()=>{let e=s.viewport,r=d?"scrollLeft":"scrollTop";if(e){let t=e[r],n=()=>{let n=e[r];t!==n&&(f("SCROLL"),u()),t=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[s.viewport,d,f,u]),(0,r.jsx)(o.Presence,{present:l||"hidden"!==p,children:(0,r.jsx)(S,{"data-state":"hidden"===p?"hidden":"visible",...i,ref:n,onPointerEnter:(0,c.composeEventHandlers)(e.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:(0,c.composeEventHandlers)(e.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),C=t.forwardRef((e,n)=>{let a=m(g,e.__scopeScrollArea),{forceMount:l,...i}=e,[s,d]=t.useState(!1),c="horizontal"===e.orientation,u=W(()=>{if(a.viewport){let e=a.viewport.offsetWidth<a.viewport.scrollWidth,r=a.viewport.offsetHeight<a.viewport.scrollHeight;d(c?e:r)}},10);return F(a.viewport,u),F(a.content,u),(0,r.jsx)(o.Presence,{present:l||s,children:(0,r.jsx)(S,{"data-state":s?"visible":"hidden",...i,ref:n})})}),S=t.forwardRef((e,n)=>{let{orientation:o="vertical",...a}=e,l=m(g,e.__scopeScrollArea),i=t.useRef(null),s=t.useRef(0),[d,c]=t.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=H(d.viewport,d.content),p={...a,sizes:d,onSizesChange:c,hasThumb:!!(u>0&&u<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function f(e,r){return function(e,r,t,n="ltr"){let o=O(t),a=r||o/2,l=t.scrollbar.paddingStart+a,i=t.scrollbar.size-t.scrollbar.paddingEnd-(o-a),s=t.content-t.viewport;return B([l,i],"ltr"===n?[0,s]:[-1*s,0])(e)}(e,s.current,d,r)}return"horizontal"===o?(0,r.jsx)(N,{...p,ref:n,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=z(l.viewport.scrollLeft,d,l.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=f(e,l.dir))}}):"vertical"===o?(0,r.jsx)(R,{...p,ref:n,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=z(l.viewport.scrollTop,d);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=f(e))}}):null}),N=t.forwardRef((e,n)=>{let{sizes:o,onSizesChange:a,...i}=e,s=m(g,e.__scopeScrollArea),[d,c]=t.useState(),u=t.useRef(null),p=(0,l.useComposedRefs)(n,u,s.onScrollbarXChange);return t.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,r.jsx)(E,{"data-orientation":"horizontal",...i,ref:p,sizes:o,style:{bottom:0,left:"rtl"===s.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===s.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":O(o)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.x),onDragScroll:r=>e.onDragScroll(r.x),onWheelScroll:(r,t)=>{if(s.viewport){var n,o;let a=s.viewport.scrollLeft+r.deltaX;e.onWheelScroll(a),n=a,o=t,n>0&&n<o&&r.preventDefault()}},onResize:()=>{u.current&&s.viewport&&d&&a({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:I(d.paddingLeft),paddingEnd:I(d.paddingRight)}})}})}),R=t.forwardRef((e,n)=>{let{sizes:o,onSizesChange:a,...i}=e,s=m(g,e.__scopeScrollArea),[d,c]=t.useState(),u=t.useRef(null),p=(0,l.useComposedRefs)(n,u,s.onScrollbarYChange);return t.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,r.jsx)(E,{"data-orientation":"vertical",...i,ref:p,sizes:o,style:{top:0,right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":O(o)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.y),onDragScroll:r=>e.onDragScroll(r.y),onWheelScroll:(r,t)=>{if(s.viewport){var n,o;let a=s.viewport.scrollTop+r.deltaY;e.onWheelScroll(a),n=a,o=t,n>0&&n<o&&r.preventDefault()}},onResize:()=>{u.current&&s.viewport&&d&&a({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:I(d.paddingTop),paddingEnd:I(d.paddingBottom)}})}})}),[k,_]=p(g),E=t.forwardRef((e,o)=>{let{__scopeScrollArea:a,sizes:s,hasThumb:d,onThumbChange:u,onThumbPointerUp:p,onThumbPointerDown:f,onThumbPositionChange:h,onDragScroll:v,onWheelScroll:x,onResize:b,...w}=e,y=m(g,a),[j,C]=t.useState(null),S=(0,l.useComposedRefs)(o,e=>C(e)),N=t.useRef(null),R=t.useRef(""),_=y.viewport,E=s.content-s.viewport,A=(0,i.useCallbackRef)(x),P=(0,i.useCallbackRef)(h),T=W(b,10);function L(e){N.current&&v({x:e.clientX-N.current.left,y:e.clientY-N.current.top})}return t.useEffect(()=>{let e=e=>{let r=e.target;j?.contains(r)&&A(e,E)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[_,j,E,A]),t.useEffect(P,[s,P]),F(j,T),F(y.content,T),(0,r.jsx)(k,{scope:a,scrollbar:j,hasThumb:d,onThumbChange:(0,i.useCallbackRef)(u),onThumbPointerUp:(0,i.useCallbackRef)(p),onThumbPositionChange:P,onThumbPointerDown:(0,i.useCallbackRef)(f),children:(0,r.jsx)(n.Primitive.div,{...w,ref:S,style:{position:"absolute",...w.style},onPointerDown:(0,c.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),N.current=j.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),L(e))}),onPointerMove:(0,c.composeEventHandlers)(e.onPointerMove,L),onPointerUp:(0,c.composeEventHandlers)(e.onPointerUp,e=>{let r=e.target;r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=R.current,y.viewport&&(y.viewport.style.scrollBehavior=""),N.current=null})})})}),A="ScrollAreaThumb",P=t.forwardRef((e,t)=>{let{forceMount:n,...a}=e,l=_(A,e.__scopeScrollArea);return(0,r.jsx)(o.Presence,{present:n||l.hasThumb,children:(0,r.jsx)(T,{ref:t,...a})})}),T=t.forwardRef((e,o)=>{let{__scopeScrollArea:a,style:i,...s}=e,d=m(A,a),u=_(A,a),{onThumbPositionChange:p}=u,f=(0,l.useComposedRefs)(o,e=>u.onThumbChange(e)),h=t.useRef(void 0),v=W(()=>{h.current&&(h.current(),h.current=void 0)},100);return t.useEffect(()=>{let e=d.viewport;if(e){let r=()=>{v(),h.current||(h.current=M(e,p),p())};return p(),e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[d.viewport,v,p]),(0,r.jsx)(n.Primitive.div,{"data-state":u.hasThumb?"visible":"hidden",...s,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:(0,c.composeEventHandlers)(e.onPointerDownCapture,e=>{let r=e.target.getBoundingClientRect(),t=e.clientX-r.left,n=e.clientY-r.top;u.onThumbPointerDown({x:t,y:n})}),onPointerUp:(0,c.composeEventHandlers)(e.onPointerUp,u.onThumbPointerUp)})});P.displayName=A;var L="ScrollAreaCorner";t.forwardRef((e,t)=>{let n=m(L,e.__scopeScrollArea),o=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&o?(0,r.jsx)(D,{...e,ref:t}):null}).displayName=L;var D=t.forwardRef((e,o)=>{let{__scopeScrollArea:a,...l}=e,i=m(L,a),[s,d]=t.useState(0),[c,u]=t.useState(0),p=!!(s&&c);return F(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),u(e)}),F(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),d(e)}),p?(0,r.jsx)(n.Primitive.div,{...l,ref:o,style:{width:s,height:c,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function I(e){return e?parseInt(e,10):0}function H(e,r){let t=e/r;return isNaN(t)?0:t}function O(e){let r=H(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-t)*r,18)}function z(e,r,t="ltr"){let n=O(r),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,a=r.scrollbar.size-o,l=r.content-r.viewport,i=function(e,[r,t]){return Math.min(t,Math.max(r,e))}(e,"ltr"===t?[0,l]:[-1*l,0]);return B([0,l],[0,a-n])(i)}function B(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];let n=(r[1]-r[0])/(e[1]-e[0]);return r[0]+n*(t-e[0])}}var M=(e,r=()=>{})=>{let t={left:e.scrollLeft,top:e.scrollTop},n=0;return!function o(){let a={left:e.scrollLeft,top:e.scrollTop},l=t.left!==a.left,i=t.top!==a.top;(l||i)&&r(),t=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function W(e,r){let n=(0,i.useCallbackRef)(e),o=t.useRef(0);return t.useEffect(()=>()=>window.clearTimeout(o.current),[]),t.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(n,r)},[n,r])}function F(e,r){let t=(0,i.useCallbackRef)(r);(0,d.useLayoutEffect)(()=>{let r=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return n.observe(e),()=>{window.cancelAnimationFrame(r),n.unobserve(e)}}},[e,t])}var U=e.i(273172);let q=t.forwardRef(function({className:e,children:t,...n},o){return(0,r.jsxs)(v,{ref:o,className:(0,U.cn)("relative overflow-hidden",e),...n,children:[(0,r.jsx)(b,{className:"h-full w-full rounded-[inherit]",children:t}),(0,r.jsx)(w,{orientation:"vertical",className:"flex touch-none select-none p-0.5 transition-colors data-[orientation=vertical]:w-2",children:(0,r.jsx)(P,{className:"relative flex-1 rounded-full bg-primary/20 hover:bg-primary/35 transition-colors duration-200"})})]})});e.s(["ScrollArea",0,q],334214)},908080,e=>{"use strict";let r=(0,e.i(621255).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,r],908080)},411670,e=>{"use strict";let r=(0,e.i(621255).default)("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,r],411670)},95187,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let a=e.r(132120),l=e.r(92245),i=e.r(235326)},809395,e=>{"use strict";var r=e.i(95187);let t=(0,r.createServerReference)("70eb86084b98f05f243b7a1d06f21b5dc9465dfca4",r.callServer,void 0,r.findSourceMapURL,"approveBreakpoint");e.s(["approveBreakpoint",0,t])},348971,e=>{"use strict";let r,t,n;var o=e.i(843476),a=e.i(273172),l=e.i(877051),i=e.i(271645),s=e.i(595833),d=e.i(30030),c=e.i(75830),u=e.i(820783),p=e.i(981140),f=e.i(369340),h=e.i(248425),m=e.i(934620),v=e.i(296626),x=e.i(610772),b="Collapsible",[g,w]=(0,d.createContextScope)(b),[y,j]=g(b),C=i.forwardRef((e,r)=>{let{__scopeCollapsible:t,open:n,defaultOpen:a,disabled:l,onOpenChange:s,...d}=e,[c,u]=(0,f.useControllableState)({prop:n,defaultProp:a??!1,onChange:s,caller:b});return(0,o.jsx)(y,{scope:t,disabled:l,contentId:(0,x.useId)(),open:c,onOpenToggle:i.useCallback(()=>u(e=>!e),[u]),children:(0,o.jsx)(h.Primitive.div,{"data-state":E(c),"data-disabled":l?"":void 0,...d,ref:r})})});C.displayName=b;var S="CollapsibleTrigger",N=i.forwardRef((e,r)=>{let{__scopeCollapsible:t,...n}=e,a=j(S,t);return(0,o.jsx)(h.Primitive.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":E(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:r,onClick:(0,p.composeEventHandlers)(e.onClick,a.onOpenToggle)})});N.displayName=S;var R="CollapsibleContent",k=i.forwardRef((e,r)=>{let{forceMount:t,...n}=e,a=j(R,e.__scopeCollapsible);return(0,o.jsx)(v.Presence,{present:t||a.open,children:({present:e})=>(0,o.jsx)(_,{...n,ref:r,present:e})})});k.displayName=R;var _=i.forwardRef((e,r)=>{let{__scopeCollapsible:t,present:n,children:a,...l}=e,s=j(R,t),[d,c]=i.useState(n),p=i.useRef(null),f=(0,u.useComposedRefs)(r,p),v=i.useRef(0),x=v.current,b=i.useRef(0),g=b.current,w=s.open||d,y=i.useRef(w),C=i.useRef(void 0);return i.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,m.useLayoutEffect)(()=>{let e=p.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let r=e.getBoundingClientRect();v.current=r.height,b.current=r.width,y.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),c(n)}},[s.open,n]),(0,o.jsx)(h.Primitive.div,{"data-state":E(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!w,...l,ref:f,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:w&&a})});function E(e){return e?"open":"closed"}var A=e.i(586318),P="Accordion",T=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[L,D,I]=(0,c.createCollection)(P),[H,O]=(0,d.createContextScope)(P,[I,w]),z=w(),B=i.default.forwardRef((e,r)=>{let{type:t,...n}=e;return(0,o.jsx)(L.Provider,{scope:e.__scopeAccordion,children:"multiple"===t?(0,o.jsx)(V,{...n,ref:r}):(0,o.jsx)(q,{...n,ref:r})})});B.displayName=P;var[M,W]=H(P),[F,U]=H(P,{collapsible:!1}),q=i.default.forwardRef((e,r)=>{let{value:t,defaultValue:n,onValueChange:a=()=>{},collapsible:l=!1,...s}=e,[d,c]=(0,f.useControllableState)({prop:t,defaultProp:n??"",onChange:a,caller:P});return(0,o.jsx)(M,{scope:e.__scopeAccordion,value:i.default.useMemo(()=>d?[d]:[],[d]),onItemOpen:c,onItemClose:i.default.useCallback(()=>l&&c(""),[l,c]),children:(0,o.jsx)(F,{scope:e.__scopeAccordion,collapsible:l,children:(0,o.jsx)(Y,{...s,ref:r})})})}),V=i.default.forwardRef((e,r)=>{let{value:t,defaultValue:n,onValueChange:a=()=>{},...l}=e,[s,d]=(0,f.useControllableState)({prop:t,defaultProp:n??[],onChange:a,caller:P}),c=i.default.useCallback(e=>d((r=[])=>[...r,e]),[d]),u=i.default.useCallback(e=>d((r=[])=>r.filter(r=>r!==e)),[d]);return(0,o.jsx)(M,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:u,children:(0,o.jsx)(F,{scope:e.__scopeAccordion,collapsible:!0,children:(0,o.jsx)(Y,{...l,ref:r})})})}),[$,X]=H(P),Y=i.default.forwardRef((e,r)=>{let{__scopeAccordion:t,disabled:n,dir:a,orientation:l="vertical",...s}=e,d=i.default.useRef(null),c=(0,u.useComposedRefs)(d,r),f=D(t),m="ltr"===(0,A.useDirection)(a),v=(0,p.composeEventHandlers)(e.onKeyDown,e=>{if(!T.includes(e.key))return;let r=e.target,t=f().filter(e=>!e.ref.current?.disabled),n=t.findIndex(e=>e.ref.current===r),o=t.length;if(-1===n)return;e.preventDefault();let a=n,i=o-1,s=()=>{(a=n+1)>i&&(a=0)},d=()=>{(a=n-1)<0&&(a=i)};switch(e.key){case"Home":a=0;break;case"End":a=i;break;case"ArrowRight":"horizontal"===l&&(m?s():d());break;case"ArrowDown":"vertical"===l&&s();break;case"ArrowLeft":"horizontal"===l&&(m?d():s());break;case"ArrowUp":"vertical"===l&&d()}let c=a%o;t[c].ref.current?.focus()});return(0,o.jsx)($,{scope:t,disabled:n,direction:a,orientation:l,children:(0,o.jsx)(L.Slot,{scope:t,children:(0,o.jsx)(h.Primitive.div,{...s,"data-orientation":l,ref:c,onKeyDown:n?void 0:v})})})}),K="AccordionItem",[J,Z]=H(K),Q=i.default.forwardRef((e,r)=>{let{__scopeAccordion:t,value:n,...a}=e,l=X(K,t),i=W(K,t),s=z(t),d=(0,x.useId)(),c=n&&i.value.includes(n)||!1,u=l.disabled||e.disabled;return(0,o.jsx)(J,{scope:t,open:c,disabled:u,triggerId:d,children:(0,o.jsx)(C,{"data-orientation":l.orientation,"data-state":ea(c),...s,...a,ref:r,disabled:u,open:c,onOpenChange:e=>{e?i.onItemOpen(n):i.onItemClose(n)}})})});Q.displayName=K;var G="AccordionHeader",ee=i.default.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,a=X(P,t),l=Z(G,t);return(0,o.jsx)(h.Primitive.h3,{"data-orientation":a.orientation,"data-state":ea(l.open),"data-disabled":l.disabled?"":void 0,...n,ref:r})});ee.displayName=G;var er="AccordionTrigger",et=i.default.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,a=X(P,t),l=Z(er,t),i=U(er,t),s=z(t);return(0,o.jsx)(L.ItemSlot,{scope:t,children:(0,o.jsx)(N,{"aria-disabled":l.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:l.triggerId,...s,...n,ref:r})})});et.displayName=er;var en="AccordionContent",eo=i.default.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,a=X(P,t),l=Z(en,t),i=z(t);return(0,o.jsx)(k,{role:"region","aria-labelledby":l.triggerId,"data-orientation":a.orientation,...i,...n,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function ea(e){return e?"open":"closed"}eo.displayName=en;var el=e.i(908080);function ei({children:e,className:r,...t}){return(0,o.jsx)(B,{className:r,...t,children:e})}function es({className:e,children:r,value:t}){return(0,o.jsx)(Q,{value:t,className:e,children:r})}function ed({className:e,children:r}){return(0,o.jsx)(ee,{className:"flex",children:(0,o.jsxs)(et,{className:(0,a.cn)("flex flex-1 items-center gap-2 py-3 text-sm font-medium transition-all duration-200 hover:text-primary [&[data-state=open]>svg]:rotate-90 [&[data-state=open]]:text-foreground",e),children:[(0,o.jsx)(el.ChevronRight,{className:"h-4 w-4 shrink-0 text-foreground-muted transition-transform duration-300 ease-in-out"}),r]})})}function ec({className:e,children:r}){return(0,o.jsx)(eo,{className:"overflow-hidden text-sm data-[state=open]:animate-[fadeIn_200ms_ease-out] data-[state=closed]:animate-[fadeIn_200ms_ease-out_reverse]",children:(0,o.jsx)("div",{className:(0,a.cn)("pb-4 pt-0",e),children:r})})}var eu=e.i(621255);let ep=(0,eu.default)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),ef=(0,eu.default)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]),eh=(0,eu.default)("FileJson",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);var em=e.i(23406);let ev={markdown:(0,o.jsx)(ep,{className:"h-3.5 w-3.5 text-info"}),json:(0,o.jsx)(eh,{className:"h-3.5 w-3.5 text-warning"}),code:(0,o.jsx)(ef,{className:"h-3.5 w-3.5 text-success"})};function ex({content:e,format:r}){let t=(0,i.useMemo)(()=>{if("json"===r)try{return JSON.stringify(JSON.parse(e),null,2)}catch{;}return e},[e,r]);if("markdown"===r)return(0,o.jsx)("div",{className:(0,a.cn)("rounded-md bg-background border border-border/50 p-4","text-sm text-foreground-secondary leading-relaxed","overflow-x-auto max-h-80 overflow-y-auto","prose-sm prose-invert","[&_h1]:text-base [&_h1]:font-bold [&_h1]:mb-2 [&_h1]:text-foreground","[&_h2]:text-sm [&_h2]:font-semibold [&_h2]:mb-1.5 [&_h2]:text-foreground","[&_h3]:text-xs [&_h3]:font-medium [&_h3]:mb-1 [&_h3]:text-foreground","[&_code]:bg-background-secondary [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs [&_code]:font-mono","[&_pre]:bg-background-secondary [&_pre]:p-2 [&_pre]:rounded [&_pre]:text-xs [&_pre]:font-mono [&_pre]:overflow-x-auto","[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4","[&_li]:mb-0.5","[&_strong]:font-semibold [&_strong]:text-foreground","[&_a]:text-primary [&_a]:underline"),children:(0,o.jsx)("pre",{className:"whitespace-pre-wrap break-words font-sans",children:e})});let n=t.split("\n"),l=String(n.length).length;return(0,o.jsx)("div",{className:(0,a.cn)("rounded-md bg-background border border-border/50","text-xs font-mono overflow-x-auto max-h-80 overflow-y-auto"),children:(0,o.jsx)("table",{className:"w-full border-collapse",children:(0,o.jsx)("tbody",{children:n.map((e,r)=>(0,o.jsxs)("tr",{className:"hover:bg-background-secondary/50",children:[(0,o.jsx)("td",{className:"select-none text-right pr-3 pl-2 text-foreground-muted/40 border-r border-border/30 align-top font-mono",style:{width:`${l+2}ch`},children:r+1}),(0,o.jsx)("td",{className:"pl-3 pr-3 text-foreground-secondary whitespace-pre-wrap break-words",children:e||" "})]},r))})})})}function eb({files:e,runId:r,effectId:t}){let[n,a]=(0,i.useState)({}),[d,c]=(0,i.useState)({}),u=(0,i.useRef)({});async function p(e){if(n[e]||d[e])return;c(r=>({...r,[e]:!0})),u.current[e]?.abort(),u.current[e]=new AbortController;let o=await (0,s.resilientFetch)(`/api/runs/${r}/tasks/${t}?file=${encodeURIComponent(e)}`,{signal:u.current[e].signal});if(o.ok)a(r=>({...r,[e]:o.data.content||"// No content available"}));else{if(o.error.isAborted)return;a(r=>({...r,[e]:"// Failed to load file content"}))}c(r=>({...r,[e]:!1}))}return((0,i.useEffect)(()=>{let e=u.current;return()=>{for(let r of Object.values(e))r.abort()}},[]),e.length)?(0,o.jsxs)("div",{"data-testid":"file-preview",className:"space-y-1",children:[(0,o.jsx)("h4",{className:"text-xs font-medium text-foreground-muted uppercase tracking-wider mb-2 pl-2 border-l-2 border-primary",children:"Attached Files"}),(0,o.jsx)(ei,{type:"single",collapsible:!0,onValueChange:r=>{let t="string"==typeof r?r:r[0];if(t){let r=e.find(e=>e.path===t);r&&p(r.path)}},children:e.map(e=>(0,o.jsxs)(es,{value:e.path,className:"border-border/50",children:[(0,o.jsx)(ed,{className:"py-2 text-xs",children:(0,o.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[ev[e.format]||(0,o.jsx)(ep,{className:"h-3.5 w-3.5 text-foreground-muted"}),(0,o.jsx)("span",{className:"font-mono text-foreground-secondary truncate",children:e.path}),(0,o.jsx)(l.Badge,{variant:function(e){switch(e){case"markdown":return"info";case"json":return"warning";case"code":return"success";default:return"pending"}}(e.format),className:"text-xs leading-tight px-1.5 py-0",children:e.format}),e.language&&(0,o.jsx)(l.Badge,{variant:"pending",className:"text-xs leading-tight px-1.5 py-0",children:e.language})]})}),(0,o.jsx)(ec,{className:"px-1",children:d[e.path]?(0,o.jsx)("div",{className:"flex items-center justify-center py-6",children:(0,o.jsx)(em.Loader2,{className:"h-4 w-4 animate-spin text-foreground-muted"})}):n[e.path]?(0,o.jsx)(ex,{content:n[e.path],format:e.format}):(0,o.jsx)("div",{className:"py-4 text-xs text-foreground-muted text-center",children:"Expand to load content"})})]},e.path))})]}):null}var eg=e.i(225913),ew=Symbol.for("react.lazy"),ey=i[" use ".trim().toString()];function ej(e){var r;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===ew&&"_payload"in e&&"object"==typeof(r=e._payload)&&null!==r&&"then"in r}var eC=((n=i.forwardRef((e,r)=>{let{children:t,...n}=e;if(ej(t)&&"function"==typeof ey&&(t=ey(t._payload)),i.isValidElement(t)){var o;let e,a,l=(o=t,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),s=function(e,r){let t={...r};for(let n in r){let o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?t[n]=(...e)=>{let r=a(...e);return o(...e),r}:o&&(t[n]=o):"style"===n?t[n]={...o,...a}:"className"===n&&(t[n]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}(n,t.props);return t.type!==i.Fragment&&(s.ref=r?(0,u.composeRefs)(r,l):l),i.cloneElement(t,s)}return i.Children.count(t)>1?i.Children.only(null):null})).displayName="Slot.SlotClone",r=n,(t=i.forwardRef((e,t)=>{let{children:n,...a}=e;ej(n)&&"function"==typeof ey&&(n=ey(n._payload));let l=i.Children.toArray(n),s=l.find(eN);if(s){let e=s.props.children,n=l.map(r=>r!==s?r:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,o.jsx)(r,{...a,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,o.jsx)(r,{...a,ref:t,children:n})})).displayName="Slot.Slot",t),eS=Symbol("radix.slottable");function eN(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eS}let eR=(0,eg.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md border text-sm font-medium italic tracking-[0.04em] transition-all duration-200 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 font-serif",{variants:{variant:{default:"border-primary/60 bg-primary text-primary-foreground shadow-sm hover:bg-[var(--primary-hover)] hover:shadow-md",neon:"border-primary/40 bg-primary-muted text-primary hover:border-primary/60 hover:bg-primary-muted/80 hover:shadow-glow-primary",outline:"border-border-hover bg-transparent text-foreground hover:bg-card hover:border-primary/30 hover:shadow-sm",ghost:"border-transparent bg-transparent text-foreground-secondary hover:bg-muted hover:text-foreground",destructive:"border-destructive/60 bg-destructive text-destructive-foreground hover:bg-destructive/90 hover:shadow-glow-error"},size:{default:"h-9 px-4 py-2",sm:"h-11 px-3 text-xs",lg:"h-10 px-6",icon:"h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}});function ek({className:e,variant:r,size:t,asChild:n=!1,...l}){let i=(0,a.cn)(eR({variant:r,size:t}),e);return n?(0,o.jsx)(eC,{className:i,...l}):(0,o.jsx)("button",{className:i,...l})}var e_=e.i(368842),eE=e.i(411670),eA=e.i(809395);function eP({task:e,runId:r}){let[t,n]=(0,i.useState)(""),[l,s]=(0,i.useTransition)(),[d,c]=(0,i.useState)(null),u=e.breakpoint?.options||[];if("requested"!==e.status)return null;function p(t){t.trim()&&(c(null),s(async()=>{c(await (0,eA.approveBreakpoint)(r,e.effectId,t))}))}return(0,o.jsxs)("div",{"data-testid":"breakpoint-approval",className:"space-y-4",children:[u.length>0&&(0,o.jsxs)("div",{"data-testid":"breakpoint-options",className:"space-y-2",children:[(0,o.jsx)("label",{className:"text-xs font-medium text-foreground-muted uppercase tracking-wider",children:"Choose an option"}),(0,o.jsx)("div",{className:"flex flex-wrap gap-2",children:u.map(e=>(0,o.jsx)(ek,{variant:"neon",size:"sm",disabled:l,onClick:()=>p(e),"data-testid":`option-btn-${e}`,children:e},e))})]}),(0,o.jsxs)("form",{onSubmit:function(e){e.preventDefault(),p(t)},className:"space-y-2",children:[(0,o.jsx)("label",{htmlFor:"custom-answer",className:"text-xs font-medium text-foreground-muted uppercase tracking-wider",children:u.length>0?"Or provide a custom answer":"Provide an answer"}),(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)("input",{id:"custom-answer","data-testid":"custom-answer-input",type:"text",value:t,onChange:e=>n(e.target.value),placeholder:"Type your answer...",disabled:l,className:(0,a.cn)("flex-1 rounded-md border border-border bg-background px-3 py-2 text-sm","placeholder:text-foreground-muted/50","focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary/50","disabled:opacity-50 disabled:cursor-not-allowed")}),(0,o.jsx)(ek,{type:"submit",variant:"default",size:"sm",disabled:l||!t.trim(),"data-testid":"approve-btn",children:l?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(em.Loader2,{className:"h-3 w-3 animate-spin"}),"Approving..."]}):"Approve"})]})]}),d&&(0,o.jsx)("div",{"data-testid":"approval-result",className:(0,a.cn)("rounded-lg border p-3 flex items-center gap-2 text-sm",d.success?"border-success/30 bg-success-muted text-success":"border-error/30 bg-error-muted text-error"),children:d.success?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e_.CheckCircle2,{className:"h-4 w-4 shrink-0"}),(0,o.jsx)("span",{children:"Breakpoint approved successfully. The dashboard will update automatically."})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eE.AlertCircle,{className:"h-4 w-4 shrink-0"}),(0,o.jsx)("span",{children:d.error||"An unknown error occurred"})]})})]})}var eT=e.i(334214),eL=e.i(806790),eD=e.i(246519);e.s(["BreakpointPanel",0,function({task:e,runId:r}){let t=e.breakpoint,n=t?.question||e.breakpointQuestion||"Approval required",i=t?.title||e.title||"Breakpoint",s=t?.context?.files||[],d="requested"===e.status;return(0,o.jsx)(eT.ScrollArea,{className:"h-full",children:(0,o.jsxs)("div",{"data-testid":"breakpoint-panel",className:"space-y-5 p-4",children:[(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(eL.Hand,{className:(0,a.cn)("h-4 w-4 text-warning",d&&"animate-pulse-dot")}),(0,o.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:i})]}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(l.Badge,{variant:"warning",children:"Breakpoint"}),"resolved"===e.status&&(0,o.jsx)(l.Badge,{variant:"success",children:"Already Resolved"})]}),(0,o.jsx)(eD.TruncatedId,{id:e.effectId,chars:4,className:"text-foreground-muted"})]}),(0,o.jsx)("div",{className:(0,a.cn)("rounded-lg border-2 p-5","bg-warning-muted border-warning/40",d&&"animate-breakpoint-glow"),style:d?{boxShadow:"var(--breakpoint-glow)"}:void 0,children:(0,o.jsxs)("div",{className:"flex items-start gap-3",children:[(0,o.jsx)(eL.Hand,{className:"h-6 w-6 text-warning shrink-0 mt-0.5 animate-pulse-dot"}),(0,o.jsxs)("div",{className:"min-w-0",children:[(0,o.jsx)("h4",{className:(0,a.cn)("text-xs leading-tight font-medium uppercase tracking-widest mb-2",d?"text-warning":"text-success"),children:d?"Awaiting decision":"Decision made"}),(0,o.jsx)("p",{"data-testid":"breakpoint-question",className:"text-base text-foreground font-medium leading-relaxed whitespace-pre-wrap break-words",children:n})]})]})}),d&&(0,o.jsx)(eP,{task:e,runId:r}),s.length>0&&(0,o.jsx)(eb,{files:s,runId:r,effectId:e.effectId}),"resolved"===e.status&&(0,o.jsxs)("div",{className:"rounded-lg bg-success-muted border border-success/30 p-4 flex items-center gap-3 shadow-glow-success",children:[(0,o.jsx)("div",{className:"flex items-center justify-center h-8 w-8 rounded-full bg-success/15",children:(0,o.jsx)(e_.CheckCircle2,{className:"h-5 w-5 text-success"})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"text-sm text-success font-semibold block",children:"Approved"}),(0,o.jsx)("span",{className:"text-xs leading-tight text-foreground-muted",children:"Breakpoint has been resolved"})]})]})]})})}],348971)},155042,e=>{e.n(e.i(348971))}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,327214,e=>{"use strict";let t=(0,e.i(621255).default)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);e.s(["Clock",0,t],327214)},126650,e=>{"use strict";var t=e.i(271645),r=e.i(645483),s=e.i(595833);e.s(["useSmartPolling",0,function(e,n={}){let{interval:a=5e3,sseFilter:l,enabled:i=!0,suppressSseRefetch:o=!1}=n,[d,u]=(0,t.useState)(null),[c,f]=(0,t.useState)(i&&!!e),[m,x]=(0,t.useState)(null),p=(0,t.useRef)(!0),h=(0,t.useRef)(l);h.current=l;let b=(0,t.useRef)(!1),g=(0,t.useRef)(null),j=(0,t.useRef)(null),v=(0,t.useRef)(null),y=(0,t.useRef)(o);y.current=o;let k=(0,t.useCallback)(async()=>{if(!e||!i)return;j.current?.abort(),j.current=new AbortController;let r=await (0,s.resilientFetch)(e,{signal:j.current.signal});if(!r.ok){if(r.error.isAborted)return;p.current&&(x(r.error.message),f(!1));return}p.current&&(304!==r.status&&(0,t.startTransition)(()=>{u(r.data)}),x(null),f(!1))},[e,i]);return(0,t.useEffect)(()=>(p.current=!0,i&&e)?(f(!0),k(),g.current&&clearInterval(g.current),g.current=setInterval(k,b.current?Math.max(3*a,15e3):a),()=>{p.current=!1,j.current?.abort(),g.current&&(clearInterval(g.current),g.current=null)}):void f(!1),[k,a,i,e]),(0,t.useEffect)(()=>{if(!i||!h.current)return;let e=(0,r.subscribe)(e=>{if("connected"===e.type){b.current||(b.current=!0,g.current&&clearInterval(g.current),g.current=setInterval(k,Math.max(3*a,15e3)));return}if("disconnect"===e.type||"error"===e.type){b.current&&(b.current=!1,g.current&&clearInterval(g.current),g.current=setInterval(k,a));return}if(h.current?.(e)){if(y.current)return;v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{v.current=null,k()},1500)}});return()=>{e(),b.current=!1,v.current&&(clearTimeout(v.current),v.current=null)}},[i,k,a]),{data:d,loading:c,error:m,refresh:k}}])},622537,770354,e=>{"use strict";var t=e.i(621255);let r=(0,t.default)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,r],622537);let s=(0,t.default)("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]);e.s(["Pause",0,s],770354)},667585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let s=e.r(132061);function n({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new s.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},309885,(e,t,r)=>{"use strict";function s(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return s}})},652157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return o}});let s=e.r(843476),n=e.r(174080),a=e.r(563599),l=e.r(309885),i=e.r(543369);function o({moduleIds:e}){if("u">typeof window)return null;let t=a.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let s=t.reactLoadableManifest;for(let t of e){if(!s[t])continue;let e=s[t].files;r.push(...e)}}if(0===r.length)return null;let d=(0,i.getAssetTokenQuery)();return(0,s.jsx)(s.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${d}`;return e.endsWith(".css")?(0,s.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,n.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},869093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return d}});let s=e.r(843476),n=e.r(271645),a=e.r(667585),l=e.r(652157);function i(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},d=function(e){let t={...o,...e},r=(0,n.lazy)(()=>t.loader().then(i)),d=t.loading;function u(e){let i=d?(0,s.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,u=o?n.Suspense:n.Fragment,c=t.ssr?(0,s.jsxs)(s.Fragment,{children:["u"<typeof window?(0,s.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,s.jsx)(r,{...e})]}):(0,s.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(r,{...e})});return(0,s.jsx)(u,{...o?{fallback:i}:{},children:c})}return u.displayName="LoadableComponent",u}},770703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}});let s=e.r(563141)._(e.r(869093));function n(e,t){let r={};"function"==typeof e&&(r.loader=e);let n={...r,...t};return(0,s.default)({...n,modules:n.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},311183,e=>{"use strict";var t=e.i(271645),r=e.i(126650);e.s(["useRunDetail",0,function(e,s){var n;let a=(0,t.useRef)(void 0),l=s??((n=a.current)&&("completed"===n||"failed"===n)?3e4:3e3),{data:i,loading:o,error:d,refresh:u}=(0,r.useSmartPolling)(`/api/runs/${e}?maxEvents=50`,{interval:l,sseFilter:t=>t.runId===e||(t.runIds?.includes(e)??!1)}),c=i?.run||null;c&&c.status!==a.current&&(a.current=c.status);let f=(0,t.useMemo)(()=>!!c&&c.tasks.some(e=>"breakpoint"===e.kind&&"requested"===e.status),[c]);return{run:c,loading:o,error:d,refresh:u,hasBreakpointWaiting:f}},"useTaskDetail",0,function(e,t){let{data:s,loading:n,error:a}=(0,r.useSmartPolling)(t?`/api/runs/${e}/tasks/${t}`:"",{enabled:!!t,interval:5e3,sseFilter:t=>t.runId===e||(t.runIds?.includes(e)??!1)});return{task:s?.task||null,loading:n,error:a}}])},162602,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(618566),n=e.i(770703),a=e.i(311183),l=e.i(348890),i=e.i(368842),o=e.i(949201),d=e.i(743041);function u({run:e}){if("completed"===e.status)return(0,t.jsx)("div",{"data-testid":"outcome-banner","data-status":"completed",className:"bg-success-muted border-b-2 border-success/30 px-5 py-4 shadow-glow-success",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 text-success",children:[(0,t.jsx)(i.CheckCircle2,{className:"h-5 w-5 shrink-0 drop-shadow-[var(--drop-glow-success)]"}),(0,t.jsxs)("span",{className:"text-base font-medium",children:["Completed in ",(0,d.formatDuration)(e.duration)]})]})});if("failed"===e.status){let r=e.tasks.find(e=>"error"===e.status),s=r?.label||e.failedStep||(e.failureMessage?"process error":"unknown step"),n=r?.error?.message||e.failureMessage||"An error occurred",a=n;if(n.startsWith("{")||n.startsWith("["))try{let e=JSON.parse(n);a=e.message||e.error||e.reason||n}catch{}return(0,t.jsx)("div",{"data-testid":"outcome-banner","data-status":"failed",className:"bg-error-muted border-b-2 border-error/30 px-5 py-4 shadow-glow-error",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 text-error",children:[(0,t.jsx)(o.XCircle,{className:"h-5 w-5 shrink-0 drop-shadow-[var(--drop-glow-error)]"}),(0,t.jsxs)("span",{className:"text-base font-medium",children:["Failed at step: ",s," — ",a]})]})})}return null}var c=e.i(327214),f=e.i(621255);let m=(0,f.default)("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);var x=e.i(622537),p=e.i(23406),h=e.i(770354),b=e.i(273172);function g({icon:e,label:r,value:s,valueColor:n,testId:a}){return(0,t.jsxs)("div",{"data-testid":a,className:"bg-background-secondary/60 rounded-lg px-4 py-2.5 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"text-foreground-muted",children:e}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"text-xs leading-tight text-foreground-muted uppercase tracking-wider font-medium",children:r}),(0,t.jsx)("span",{className:(0,b.cn)("text-lg font-semibold tabular-nums",n||"text-foreground"),children:s})]})]})}function j({run:e}){let r="completed"===e.status||"failed"===e.status,s="pending"===e.status,n="waiting"===e.status,a=e.totalTasks>0?Math.round(e.completedTasks/e.totalTasks*100):0,l=new Set(e.tasks.map(e=>e.invocationKey)).size,o=r?(0,d.formatDuration)(e.duration):(0,d.formatDuration)(e.duration)||"...",u=s?(0,t.jsx)(p.Loader2,{className:"h-4 w-4 animate-spin-smooth text-info drop-shadow-[var(--drop-glow-cyan)]"}):n?(0,t.jsx)(h.Pause,{className:"h-4 w-4 text-warning"}):(0,t.jsx)(c.Clock,{className:"h-4 w-4"});return(0,t.jsxs)("div",{"data-testid":"metrics-row",className:(0,b.cn)("flex items-center divide-x divide-primary/10 px-4 py-3 border-b border-border bg-background",(s||n)&&"opacity-90"),children:[(0,t.jsx)("div",{className:"flex items-center pr-3",children:(0,t.jsx)(g,{icon:u,label:"Total Duration",value:o,valueColor:s?"text-info":n?"text-warning":void 0,testId:"metric-total-duration"})}),(0,t.jsx)("div",{className:"flex items-center px-3",children:(0,t.jsx)(g,{icon:(0,t.jsx)(i.CheckCircle2,{className:"h-4 w-4"}),label:"Tasks",value:`${e.completedTasks}/${e.totalTasks}`,valueColor:"text-success",testId:"metric-tasks"})}),(0,t.jsx)("div",{className:"flex items-center px-3",children:(0,t.jsx)(g,{icon:(0,t.jsx)(m,{className:"h-4 w-4"}),label:"Success Rate",value:`${a}%`,valueColor:100===a?"text-success":a>=80?"text-foreground":a>=50?"text-warning":"text-error",testId:"metric-success-rate"})}),(0,t.jsx)("div",{className:"flex items-center pl-3",children:(0,t.jsx)(g,{icon:(0,t.jsx)(x.RefreshCw,{className:"h-4 w-4"}),label:"Iterations",value:String(l),testId:"metric-iterations"})})]})}var v=e.i(734356),y=e.i(853897);let k=(0,f.default)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),w=(0,n.default)(()=>e.A(632625).then(e=>({default:e.PipelineView})),{loadableGenerated:{modules:[331872]},ssr:!1,loading:function(){return(0,t.jsxs)("div",{className:"flex flex-col h-full animate-pulse p-4 space-y-3",children:[(0,t.jsx)("div",{className:"h-5 w-40 rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-2 w-full rounded-full bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"space-y-2 mt-4",children:[1,2,3,4].map(e=>(0,t.jsx)("div",{className:"h-16 rounded-lg bg-foreground-muted/10"},e))})]})}}),N=(0,n.default)(()=>e.A(987095).then(e=>({default:e.EventStream})),{loadableGenerated:{modules:[329610]},ssr:!1,loading:function(){return(0,t.jsxs)("div",{className:"flex flex-col h-full animate-pulse p-3 space-y-2",children:[(0,t.jsx)("div",{className:"h-4 w-24 rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-8 w-full rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"space-y-1.5 mt-2",children:[1,2,3,4,5].map(e=>(0,t.jsx)("div",{className:"h-10 rounded bg-foreground-muted/10"},e))})]})}}),C=(0,n.default)(()=>e.A(293153).then(e=>({default:e.TaskDetailPanel})),{loadableGenerated:{modules:[471601]},ssr:!1,loading:function(){return(0,t.jsxs)("div",{className:"flex flex-col h-full animate-pulse p-4 space-y-3",children:[(0,t.jsx)("div",{className:"h-8 w-full rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-4 w-3/4 rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-4 w-1/2 rounded bg-foreground-muted/10"})]})}});e.s(["default",0,function({params:e}){let{runId:n}=e,i=(0,s.useRouter)(),{run:o,loading:d,error:c,hasBreakpointWaiting:f}=(0,a.useRunDetail)(n),{notifications:m,dismiss:x,notify:h}=(0,v.useNotificationContext)(),[g,I]=(0,r.useState)(null),[P,T]=(0,r.useState)(!1),[R,S]=(0,r.useState)(!0),[M,_]=(0,r.useState)("agent"),O=(0,r.useCallback)(e=>{I(e),T(!0);let t=o?.tasks.find(t=>t.effectId===e);t?.kind==="breakpoint"&&_("breakpoint")},[o?.tasks]),D=(0,r.useCallback)(e=>{let t=e.payload;t?.effectId&&O(t.effectId)},[O]),E=(0,r.useMemo)(()=>o?.tasks||[],[o?.tasks]),A=(0,r.useMemo)(()=>g&&E.find(e=>e.effectId===g)||null,[E,g]),L=(0,r.useCallback)(()=>{if(!E.length)return;let e=Math.min((g?E.findIndex(e=>e.effectId===g):-1)+1,E.length-1);O(E[e].effectId)},[E,g,O]),$=(0,r.useCallback)(()=>{if(!E.length)return;let e=Math.max((g?E.findIndex(e=>e.effectId===g):E.length)-1,0);O(E[e].effectId)},[E,g,O]),F=(0,r.useCallback)(()=>{P?(T(!1),I(null)):i.push("/")},[P,i]),B=(0,r.useCallback)(()=>{S(e=>!e)},[]),z=(0,r.useCallback)(()=>{g&&!P?T(!0):!g&&E.length>0&&O(E[0].effectId)},[g,P,E,O]),G=(0,r.useCallback)(e=>{if(!P)return;let t={1:"agent",2:"timing",3:"logs",4:"data",5:"breakpoint"}[e];if(t){if("breakpoint"===t&&A?.kind!=="breakpoint")return;_(t)}},[A,P]);return((0,l.useKeyboard)([{key:"j",action:L,description:"Next item"},{key:"k",action:$,description:"Previous item"},{key:"Enter",action:z,description:"Open selected"},{key:"Escape",action:F,description:"Go back / Close"},{key:"e",action:B,description:"Toggle event stream"},{key:"1",action:()=>G("1"),description:"Agent tab"},{key:"2",action:()=>G("2"),description:"Timing tab"},{key:"3",action:()=>G("3"),description:"Logs tab"},{key:"4",action:()=>G("4"),description:"Data tab"},{key:"5",action:()=>G("5"),description:"Approval tab"}]),d&&!o)?(0,t.jsx)("div",{className:"flex items-center justify-center flex-1",children:(0,t.jsx)(p.Loader2,{className:"h-6 w-6 animate-spin text-foreground-muted"})}):c||!o?(0,t.jsx)("div",{className:"flex items-center justify-center flex-1",children:(0,t.jsx)("div",{"data-testid":"run-error-message",className:"rounded-lg border border-error/20 bg-error-muted p-4 text-sm text-error",children:c||"Run not found"})}):(0,t.jsxs)("div",{className:"flex flex-col flex-1 bg-background",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2 border-b border-border bg-background-secondary/40",children:[(0,t.jsxs)("button",{onClick:()=>i.push("/"),className:"inline-flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1 min-h-[44px] text-xs font-medium text-foreground-muted hover:text-foreground hover:border-primary/50 hover:shadow-neon-glow-primary-ring transition-all duration-200",children:[(0,t.jsx)(k,{className:"h-3.5 w-3.5"}),"Dashboard"]}),(0,t.jsx)("span",{className:"text-xs text-foreground-muted",children:"/"}),(0,t.jsxs)("span",{className:"text-xs font-mono text-foreground-secondary",children:[o.runId.slice(0,8),"..."]}),o.processId&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-xs text-foreground-muted",children:"/"}),(0,t.jsx)("span",{className:"text-xs text-foreground-secondary",children:o.processId})]})]}),(0,t.jsx)(u,{run:o}),(0,t.jsx)(j,{run:o}),(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row flex-1 overflow-hidden",children:[(0,t.jsx)("div",{className:(0,b.cn)("border-b lg:border-b-0 lg:border-r border-border transition-panel bg-card/50 backdrop-blur-sm",P?"lg:w-[35%]":R?"lg:w-[60%]":"w-full"),children:(0,t.jsx)(w,{run:o,selectedEffectId:g,onSelectEffect:O,runStatus:o.status})}),P&&(0,t.jsxs)("div",{className:(0,b.cn)("border-b lg:border-b-0 lg:border-r border-border transition-panel bg-card/50 backdrop-blur-sm overflow-hidden flex flex-col",R?"lg:w-[30%]":"lg:w-[65%]"),children:[(0,t.jsxs)("div",{"data-testid":"task-detail-header",className:"flex items-center justify-between p-3 border-b border-border bg-background-secondary/40",children:[(0,t.jsx)("h3",{className:"text-xs font-medium text-foreground-muted uppercase tracking-wider",children:"Task Detail"}),(0,t.jsxs)("button",{"data-testid":"close-detail-btn",onClick:()=>{T(!1),I(null)},className:"inline-flex items-center gap-1.5 rounded-md border border-primary/20 px-2.5 py-1 min-h-[44px] text-xs font-medium text-foreground-muted hover:text-primary hover:border-primary/50 hover:shadow-neon-glow-primary-ring transition-all duration-200",children:[(0,t.jsx)(y.X,{className:"h-3.5 w-3.5"}),"Close"]})]}),(0,t.jsx)(C,{runId:n,effectId:g,activeTab:M,onTabChange:_,runDuration:o.duration,allTasks:o.tasks})]}),R&&(0,t.jsx)("div",{className:(0,b.cn)("transition-panel bg-card/50 backdrop-blur-sm",P?"lg:w-[35%]":"lg:w-[40%]"),children:(0,t.jsx)(N,{events:o.events,onEventClick:D})})]})]})}],162602)},632625,e=>{e.v(t=>Promise.all(["static/chunks/0juh~euxtwjb0.js","static/chunks/04yay90ruer_3.js"].map(t=>e.l(t))).then(()=>t(331872)))},987095,e=>{e.v(t=>Promise.all(["static/chunks/0fm~01n0-3buj.js","static/chunks/04yay90ruer_3.js"].map(t=>e.l(t))).then(()=>t(329610)))},293153,e=>{e.v(t=>Promise.all(["static/chunks/0oknt341jrzu3.js"].map(t=>e.l(t))).then(()=>t(471601)))}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,327214,e=>{"use strict";let t=(0,e.i(621255).default)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);e.s(["Clock",0,t],327214)},126650,e=>{"use strict";var t=e.i(271645),r=e.i(645483),s=e.i(595833);e.s(["useSmartPolling",0,function(e,n={}){let{interval:a=5e3,sseFilter:l,enabled:i=!0,suppressSseRefetch:o=!1}=n,[d,u]=(0,t.useState)(null),[c,f]=(0,t.useState)(i&&!!e),[m,x]=(0,t.useState)(null),p=(0,t.useRef)(!0),h=(0,t.useRef)(l);h.current=l;let b=(0,t.useRef)(!1),g=(0,t.useRef)(null),v=(0,t.useRef)(null),j=(0,t.useRef)(null),y=(0,t.useRef)(o);y.current=o;let k=(0,t.useCallback)(async()=>{if(!e||!i)return;v.current?.abort(),v.current=new AbortController;let r=await (0,s.resilientFetch)(e,{signal:v.current.signal});if(!r.ok){if(r.error.isAborted)return;p.current&&(x(r.error.message),f(!1));return}p.current&&(304!==r.status&&(0,t.startTransition)(()=>{u(r.data)}),x(null),f(!1))},[e,i]);return(0,t.useEffect)(()=>(p.current=!0,i&&e)?(f(!0),k(),g.current&&clearInterval(g.current),g.current=setInterval(k,b.current?Math.max(3*a,15e3):a),()=>{p.current=!1,v.current?.abort(),g.current&&(clearInterval(g.current),g.current=null)}):void f(!1),[k,a,i,e]),(0,t.useEffect)(()=>{if(!i||!h.current)return;let e=(0,r.subscribe)(e=>{if("connected"===e.type){b.current||(b.current=!0,g.current&&clearInterval(g.current),g.current=setInterval(k,Math.max(3*a,15e3)));return}if("disconnect"===e.type||"error"===e.type){b.current&&(b.current=!1,g.current&&clearInterval(g.current),g.current=setInterval(k,a));return}if(h.current?.(e)){if(y.current)return;j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{j.current=null,k()},1500)}});return()=>{e(),b.current=!1,j.current&&(clearTimeout(j.current),j.current=null)}},[i,k,a]),{data:d,loading:c,error:m,refresh:k}}])},622537,770354,e=>{"use strict";var t=e.i(621255);let r=(0,t.default)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,r],622537);let s=(0,t.default)("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]);e.s(["Pause",0,s],770354)},667585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let s=e.r(132061);function n({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new s.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},309885,(e,t,r)=>{"use strict";function s(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return s}})},652157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return o}});let s=e.r(843476),n=e.r(174080),a=e.r(563599),l=e.r(309885),i=e.r(543369);function o({moduleIds:e}){if("u">typeof window)return null;let t=a.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let s=t.reactLoadableManifest;for(let t of e){if(!s[t])continue;let e=s[t].files;r.push(...e)}}if(0===r.length)return null;let d=(0,i.getAssetTokenQuery)();return(0,s.jsx)(s.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${d}`;return e.endsWith(".css")?(0,s.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,n.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},869093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return d}});let s=e.r(843476),n=e.r(271645),a=e.r(667585),l=e.r(652157);function i(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},d=function(e){let t={...o,...e},r=(0,n.lazy)(()=>t.loader().then(i)),d=t.loading;function u(e){let i=d?(0,s.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,u=o?n.Suspense:n.Fragment,c=t.ssr?(0,s.jsxs)(s.Fragment,{children:["u"<typeof window?(0,s.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,s.jsx)(r,{...e})]}):(0,s.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(r,{...e})});return(0,s.jsx)(u,{...o?{fallback:i}:{},children:c})}return u.displayName="LoadableComponent",u}},770703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}});let s=e.r(563141)._(e.r(869093));function n(e,t){let r={};"function"==typeof e&&(r.loader=e);let n={...r,...t};return(0,s.default)({...n,modules:n.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},311183,e=>{"use strict";var t=e.i(271645),r=e.i(126650);e.s(["useRunDetail",0,function(e,s){var n;let a=(0,t.useRef)(void 0),l=s??((n=a.current)&&("completed"===n||"failed"===n)?3e4:3e3),{data:i,loading:o,error:d,refresh:u}=(0,r.useSmartPolling)(`/api/runs/${e}?maxEvents=50`,{interval:l,sseFilter:t=>t.runId===e||(t.runIds?.includes(e)??!1)}),c=i?.run||null;c&&c.status!==a.current&&(a.current=c.status);let f=(0,t.useMemo)(()=>!!c&&c.tasks.some(e=>"breakpoint"===e.kind&&"requested"===e.status),[c]);return{run:c,loading:o,error:d,refresh:u,hasBreakpointWaiting:f}},"useTaskDetail",0,function(e,t){let{data:s,loading:n,error:a}=(0,r.useSmartPolling)(t?`/api/runs/${e}/tasks/${t}`:"",{enabled:!!t,interval:5e3,sseFilter:t=>t.runId===e||(t.runIds?.includes(e)??!1)});return{task:s?.task||null,loading:n,error:a}}])},162602,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(618566),n=e.i(770703),a=e.i(311183),l=e.i(348890),i=e.i(368842),o=e.i(949201),d=e.i(743041);function u({run:e}){if("completed"===e.status)return(0,t.jsx)("div",{"data-testid":"outcome-banner","data-status":"completed",className:"bg-success-muted border-b-2 border-success/30 px-5 py-4 shadow-glow-success",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 text-success",children:[(0,t.jsx)(i.CheckCircle2,{className:"h-5 w-5 shrink-0 drop-shadow-[var(--drop-glow-success)]"}),(0,t.jsxs)("span",{className:"text-base font-medium",children:["Completed in ",(0,d.formatDuration)(e.duration)]})]})});if("failed"===e.status){let r=e.tasks.find(e=>"error"===e.status),s=r?.label||e.failedStep||(e.failureMessage?"process error":"unknown step"),n=r?.error?.message||e.failureMessage||"An error occurred",a=n;if(n.startsWith("{")||n.startsWith("["))try{let e=JSON.parse(n);a=e.message||e.error||e.reason||n}catch{}return(0,t.jsx)("div",{"data-testid":"outcome-banner","data-status":"failed",className:"bg-error-muted border-b-2 border-error/30 px-5 py-4 shadow-glow-error",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 text-error",children:[(0,t.jsx)(o.XCircle,{className:"h-5 w-5 shrink-0 drop-shadow-[var(--drop-glow-error)]"}),(0,t.jsxs)("span",{className:"text-base font-medium",children:["Failed at step: ",s," — ",a]})]})})}return null}var c=e.i(327214),f=e.i(621255);let m=(0,f.default)("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);var x=e.i(622537),p=e.i(23406),h=e.i(770354),b=e.i(273172);function g({icon:e,label:r,value:s,valueColor:n,testId:a}){return(0,t.jsxs)("div",{"data-testid":a,className:"bg-background-secondary/60 rounded-lg px-4 py-2.5 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"text-foreground-muted",children:e}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"text-xs leading-tight text-foreground-muted uppercase tracking-wider font-medium",children:r}),(0,t.jsx)("span",{className:(0,b.cn)("text-lg font-semibold tabular-nums",n||"text-foreground"),children:s})]})]})}function v({run:e}){let r="completed"===e.status||"failed"===e.status,s="pending"===e.status,n="waiting"===e.status,a=e.totalTasks>0?Math.round(e.completedTasks/e.totalTasks*100):0,l=new Set(e.tasks.map(e=>e.invocationKey)).size,o=r?(0,d.formatDuration)(e.duration):(0,d.formatDuration)(e.duration)||"...",u=s?(0,t.jsx)(p.Loader2,{className:"h-4 w-4 animate-spin-smooth text-info drop-shadow-[var(--drop-glow-cyan)]"}):n?(0,t.jsx)(h.Pause,{className:"h-4 w-4 text-warning"}):(0,t.jsx)(c.Clock,{className:"h-4 w-4"});return(0,t.jsxs)("div",{"data-testid":"metrics-row",className:(0,b.cn)("flex items-center divide-x divide-primary/10 px-4 py-3 border-b border-border bg-background",(s||n)&&"opacity-90"),children:[(0,t.jsx)("div",{className:"flex items-center pr-3",children:(0,t.jsx)(g,{icon:u,label:"Total Duration",value:o,valueColor:s?"text-info":n?"text-warning":void 0,testId:"metric-total-duration"})}),(0,t.jsx)("div",{className:"flex items-center px-3",children:(0,t.jsx)(g,{icon:(0,t.jsx)(i.CheckCircle2,{className:"h-4 w-4"}),label:"Tasks",value:`${e.completedTasks}/${e.totalTasks}`,valueColor:"text-success",testId:"metric-tasks"})}),(0,t.jsx)("div",{className:"flex items-center px-3",children:(0,t.jsx)(g,{icon:(0,t.jsx)(m,{className:"h-4 w-4"}),label:"Success Rate",value:`${a}%`,valueColor:100===a?"text-success":a>=80?"text-foreground":a>=50?"text-warning":"text-error",testId:"metric-success-rate"})}),(0,t.jsx)("div",{className:"flex items-center pl-3",children:(0,t.jsx)(g,{icon:(0,t.jsx)(x.RefreshCw,{className:"h-4 w-4"}),label:"Iterations",value:String(l),testId:"metric-iterations"})})]})}var j=e.i(734356),y=e.i(853897);let k=(0,f.default)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),w=(0,n.default)(()=>e.A(632625).then(e=>({default:e.PipelineView})),{loadableGenerated:{modules:[331872]},ssr:!1,loading:function(){return(0,t.jsxs)("div",{className:"flex flex-col h-full animate-pulse p-4 space-y-3",children:[(0,t.jsx)("div",{className:"h-5 w-40 rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-2 w-full rounded-full bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"space-y-2 mt-4",children:[1,2,3,4].map(e=>(0,t.jsx)("div",{className:"h-16 rounded-lg bg-foreground-muted/10"},e))})]})}}),N=(0,n.default)(()=>e.A(987095).then(e=>({default:e.EventStream})),{loadableGenerated:{modules:[329610]},ssr:!1,loading:function(){return(0,t.jsxs)("div",{className:"flex flex-col h-full animate-pulse p-3 space-y-2",children:[(0,t.jsx)("div",{className:"h-4 w-24 rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-8 w-full rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"space-y-1.5 mt-2",children:[1,2,3,4,5].map(e=>(0,t.jsx)("div",{className:"h-10 rounded bg-foreground-muted/10"},e))})]})}}),C=(0,n.default)(()=>e.A(293153).then(e=>({default:e.TaskDetailPanel})),{loadableGenerated:{modules:[471601]},ssr:!1,loading:function(){return(0,t.jsxs)("div",{className:"flex flex-col h-full animate-pulse p-4 space-y-3",children:[(0,t.jsx)("div",{className:"h-8 w-full rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-4 w-3/4 rounded bg-foreground-muted/10"}),(0,t.jsx)("div",{className:"h-4 w-1/2 rounded bg-foreground-muted/10"})]})}});e.s(["default",0,function({params:e}){let{runId:n}=e,i=(0,s.useRouter)(),{run:o,loading:d,error:c,hasBreakpointWaiting:f}=(0,a.useRunDetail)(n),{notifications:m,dismiss:x,notify:h}=(0,j.useNotificationContext)(),[g,I]=(0,r.useState)(null),[P,T]=(0,r.useState)(!1),[R,S]=(0,r.useState)(!0),[M,_]=(0,r.useState)("agent"),O=(0,r.useCallback)(e=>{I(e),T(!0);let t=o?.tasks.find(t=>t.effectId===e);t?.kind==="breakpoint"&&_("breakpoint")},[o?.tasks]),D=(0,r.useCallback)(e=>{let t=e.payload;t?.effectId&&O(t.effectId)},[O]),E=(0,r.useMemo)(()=>o?.tasks||[],[o?.tasks]),A=(0,r.useMemo)(()=>g&&E.find(e=>e.effectId===g)||null,[E,g]),L=(0,r.useCallback)(()=>{if(!E.length)return;let e=Math.min((g?E.findIndex(e=>e.effectId===g):-1)+1,E.length-1);O(E[e].effectId)},[E,g,O]),$=(0,r.useCallback)(()=>{if(!E.length)return;let e=Math.max((g?E.findIndex(e=>e.effectId===g):E.length)-1,0);O(E[e].effectId)},[E,g,O]),F=(0,r.useCallback)(()=>{P?(T(!1),I(null)):i.push("/")},[P,i]),B=(0,r.useCallback)(()=>{S(e=>!e)},[]),G=(0,r.useCallback)(()=>{g&&!P?T(!0):!g&&E.length>0&&O(E[0].effectId)},[g,P,E,O]),U=(0,r.useCallback)(e=>{if(!P)return;let t={1:"agent",2:"timing",3:"logs",4:"data",5:"breakpoint"}[e];if(t){if("breakpoint"===t&&A?.kind!=="breakpoint")return;_(t)}},[A,P]);return((0,l.useKeyboard)([{key:"j",action:L,description:"Next item"},{key:"k",action:$,description:"Previous item"},{key:"Enter",action:G,description:"Open selected"},{key:"Escape",action:F,description:"Go back / Close"},{key:"e",action:B,description:"Toggle event stream"},{key:"1",action:()=>U("1"),description:"Agent tab"},{key:"2",action:()=>U("2"),description:"Timing tab"},{key:"3",action:()=>U("3"),description:"Logs tab"},{key:"4",action:()=>U("4"),description:"Data tab"},{key:"5",action:()=>U("5"),description:"Approval tab"}]),d&&!o)?(0,t.jsx)("div",{className:"flex items-center justify-center flex-1",children:(0,t.jsx)(p.Loader2,{className:"h-6 w-6 animate-spin text-foreground-muted"})}):c||!o?(0,t.jsx)("div",{className:"flex items-center justify-center flex-1",children:(0,t.jsx)("div",{"data-testid":"run-error-message",className:"rounded-lg border border-error/20 bg-error-muted p-4 text-sm text-error",children:c||"Run not found"})}):(0,t.jsxs)("div",{className:"flex flex-col flex-1 bg-background",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2 border-b border-border bg-background-secondary/40",children:[(0,t.jsxs)("button",{onClick:()=>i.push("/"),className:"inline-flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1 min-h-[44px] text-xs font-medium text-foreground-muted hover:text-foreground hover:border-primary/50 hover:shadow-neon-glow-primary-ring transition-all duration-200",children:[(0,t.jsx)(k,{className:"h-3.5 w-3.5"}),"Dashboard"]}),(0,t.jsx)("span",{className:"text-xs text-foreground-muted",children:"/"}),(0,t.jsxs)("span",{className:"text-xs font-mono text-foreground-secondary",children:[o.runId.slice(0,8),"..."]}),o.processId&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-xs text-foreground-muted",children:"/"}),(0,t.jsx)("span",{className:"text-xs text-foreground-secondary",children:o.processId})]})]}),(0,t.jsx)(u,{run:o}),(0,t.jsx)(v,{run:o}),(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row flex-1 overflow-hidden",children:[(0,t.jsx)("div",{className:(0,b.cn)("border-b lg:border-b-0 lg:border-r border-border transition-panel bg-card/50 backdrop-blur-sm",P?"lg:w-[35%]":R?"lg:w-[60%]":"w-full"),children:(0,t.jsx)(w,{run:o,selectedEffectId:g,onSelectEffect:O,runStatus:o.status})}),P&&(0,t.jsxs)("div",{className:(0,b.cn)("border-b lg:border-b-0 lg:border-r border-border transition-panel bg-card/50 backdrop-blur-sm overflow-hidden flex flex-col",R?"lg:w-[30%]":"lg:w-[65%]"),children:[(0,t.jsxs)("div",{"data-testid":"task-detail-header",className:"flex items-center justify-between p-3 border-b border-border bg-background-secondary/40",children:[(0,t.jsx)("h3",{className:"text-xs font-medium text-foreground-muted uppercase tracking-wider",children:"Task Detail"}),(0,t.jsxs)("button",{"data-testid":"close-detail-btn",onClick:()=>{T(!1),I(null)},className:"inline-flex items-center gap-1.5 rounded-md border border-primary/20 px-2.5 py-1 min-h-[44px] text-xs font-medium text-foreground-muted hover:text-primary hover:border-primary/50 hover:shadow-neon-glow-primary-ring transition-all duration-200",children:[(0,t.jsx)(y.X,{className:"h-3.5 w-3.5"}),"Close"]})]}),(0,t.jsx)(C,{runId:n,effectId:g,activeTab:M,onTabChange:_,runDuration:o.duration,allTasks:o.tasks})]}),R&&(0,t.jsx)("div",{className:(0,b.cn)("transition-panel bg-card/50 backdrop-blur-sm",P?"lg:w-[35%]":"lg:w-[40%]"),children:(0,t.jsx)(N,{events:o.events,onEventClick:D})})]})]})}],162602)},632625,e=>{e.v(t=>Promise.all(["static/chunks/0juh~euxtwjb0.js","static/chunks/04yay90ruer_3.js"].map(t=>e.l(t))).then(()=>t(331872)))},987095,e=>{e.v(t=>Promise.all(["static/chunks/0fm~01n0-3buj.js","static/chunks/04yay90ruer_3.js"].map(t=>e.l(t))).then(()=>t(329610)))},293153,e=>{e.v(t=>Promise.all(["static/chunks/0vxpk3.shoodp.js"].map(t=>e.l(t))).then(()=>t(471601)))}]);
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ var import_fs = require("fs");
7
7
  var import_path = require("path");
8
8
  function getVersion() {
9
9
  if (true) {
10
- return "6.0.1";
10
+ return "6.0.2";
11
11
  }
12
12
  try {
13
13
  const pkgPath = (0, import_path.resolve)(__dirname, "..", "package.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a5c-ai/babysitter-observer-dashboard",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "description": "Real-time observability dashboard for babysitter orchestration runs",
5
5
  "private": false,
6
6
  "publishConfig": {