bit-office 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web/404.html +2 -2
- package/dist/web/_next/static/chunks/337.98f156e48f146063.js +1 -0
- package/dist/web/_next/static/chunks/853.0c23af6158d43fda.js +1 -0
- package/dist/web/_next/static/chunks/app/office/{page-7e64f4657627f13b.js → page-21b29ce2f5b4492f.js} +1 -1
- package/dist/web/_next/static/chunks/{webpack-ecac0d5245a37138.js → webpack-dcd361e024700880.js} +1 -1
- package/dist/web/_next/static/css/c62e12508f039ceb.css +3 -0
- package/dist/web/index.html +2 -2
- package/dist/web/index.txt +2 -2
- package/dist/web/join.html +2 -2
- package/dist/web/join.txt +2 -2
- package/dist/web/office.html +3 -3
- package/dist/web/office.txt +3 -3
- package/dist/web/pair.html +2 -2
- package/dist/web/pair.txt +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/web/_next/static/chunks/337.d02d761d8479a26b.js +0 -1
- package/dist/web/_next/static/chunks/853.1223037341c73df9.js +0 -1
- package/dist/web/_next/static/css/7a1e811bf3f4909f.css +0 -3
- /package/dist/web/_next/static/{30c0_3N7JM7PsUvSPrOdD → a77xldHdc_0TOGcqwFr4L}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{30c0_3N7JM7PsUvSPrOdD → a77xldHdc_0TOGcqwFr4L}/_ssgManifest.js +0 -0
package/dist/web/404.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--a77xldHdc_0TOGcqwFr4L--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/c62e12508f039ceb.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-dcd361e024700880.js"/><script src="/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js" async=""></script><script src="/_next/static/chunks/388-5a04e93e2531cfb7.js" async=""></script><script src="/_next/static/chunks/main-app-baad86574bd560af.js" async=""></script><script src="/_next/static/chunks/767-52fa35b605461336.js" async=""></script><script src="/_next/static/chunks/276-7203e26618727a54.js" async=""></script><script src="/_next/static/chunks/app/layout-a57e585fdbd6e50f.js" async=""></script><meta name="theme-color" content="#1a1530"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><meta name="robots" content="noindex"/><title>Open Office</title><meta name="description" content="Control your AI agents from anywhere"/><link rel="manifest" href="/manifest.json"/><link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400&family=Press+Start+2P&display=swap" rel="stylesheet"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body style="margin:0;background-color:#16122a;color:#eddcb8;font-family:system-ui, sans-serif"><div hidden=""><!--$--><!--/$--></div><div style="display:flex;align-items:center;justify-content:center;min-height:100vh"><h1 style="font-family:JetBrains Mono, monospace;font-size:1.2rem">404 — Not Found</h1></div><!--$--><!--/$--><script>
|
|
2
2
|
document.addEventListener('visibilitychange', function() {
|
|
3
3
|
document.body.classList.toggle('term-paused', document.hidden);
|
|
4
4
|
});
|
|
@@ -62,4 +62,4 @@
|
|
|
62
62
|
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', scan);
|
|
63
63
|
else scan();
|
|
64
64
|
})();
|
|
65
|
-
</script><script src="/_next/static/chunks/webpack-
|
|
65
|
+
</script><script src="/_next/static/chunks/webpack-dcd361e024700880.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[8163,[\"767\",\"static/chunks/767-52fa35b605461336.js\",\"276\",\"static/chunks/276-7203e26618727a54.js\",\"177\",\"static/chunks/app/layout-a57e585fdbd6e50f.js\"],\"TooltipProvider\"]\n3:I[9653,[],\"\"]\n4:I[1329,[],\"\"]\n9:I[5719,[],\"\"]\n:HL[\"/_next/static/css/c62e12508f039ceb.css\",\"style\"]\n5:Tb25,"])</script><script>self.__next_f.push([1,"\n (function() {\n var attached = new WeakSet();\n var timers = new WeakMap();\n function addScrollbar(el) {\n if (attached.has(el)) return;\n var cs = getComputedStyle(el);\n var ov = cs.overflowY;\n if (ov !== 'auto' \u0026\u0026 ov !== 'scroll') return;\n if (cs.position === 'static') el.style.position = 'relative';\n var track = document.createElement('div');\n track.className = 'custom-scrollbar';\n var thumb = document.createElement('div');\n thumb.className = 'custom-scrollbar-thumb';\n track.appendChild(thumb);\n el.appendChild(track);\n attached.add(el);\n function update() {\n var sh = el.scrollHeight, ch = el.clientHeight;\n if (sh \u003c= ch) { track.classList.remove('visible'); return; }\n var ratio = ch / sh;\n var thumbH = Math.max(20, ratio * ch);\n var scrollRatio = el.scrollTop / (sh - ch);\n var thumbTop = scrollRatio * (ch - thumbH);\n thumb.style.height = thumbH + 'px';\n thumb.style.top = (el.scrollTop + thumbTop) + 'px';\n track.classList.add('visible');\n clearTimeout(timers.get(el));\n timers.set(el, setTimeout(function() { track.classList.remove('visible'); }, 1200));\n }\n el.addEventListener('scroll', update, { passive: true });\n new ResizeObserver(update).observe(el);\n // Observe subtree content changes (e.g. streaming chat messages)\n var contentTimer = 0;\n new MutationObserver(function() {\n if (contentTimer) return;\n contentTimer = setTimeout(function() { contentTimer = 0; update(); }, 150);\n }).observe(el, { childList: true, subtree: true, characterData: true });\n update();\n }\n function scan() {\n document.querySelectorAll('[data-scrollbar]').forEach(function(el) {\n addScrollbar(el);\n });\n }\n var scanTimer = 0;\n var mo = new MutationObserver(function() {\n if (scanTimer) return;\n scanTimer = setTimeout(function() { scanTimer = 0; scan(); }, 300);\n });\n mo.observe(document.body, { childList: true, subtree: true });\n if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', scan);\n else scan();\n })();\n "])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"a77xldHdc_0TOGcqwFr4L\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/c62e12508f039ceb.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#1a1530\"}],[\"$\",\"meta\",null,{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"}],[\"$\",\"link\",null,{\"rel\":\"preconnect\",\"href\":\"https://fonts.googleapis.com\"}],[\"$\",\"link\",null,{\"rel\":\"preconnect\",\"href\":\"https://fonts.gstatic.com\",\"crossOrigin\":\"anonymous\"}],[\"$\",\"link\",null,{\"href\":\"https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400\u0026family=Press+Start+2P\u0026display=swap\",\"rel\":\"stylesheet\"}]]}],[\"$\",\"body\",null,{\"style\":{\"margin\":0,\"backgroundColor\":\"#16122a\",\"color\":\"#eddcb8\",\"fontFamily\":\"system-ui, sans-serif\"},\"children\":[[\"$\",\"$L2\",null,{\"delayDuration\":300,\"skipDelayDuration\":100,\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"div\",null,{\"style\":{\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"minHeight\":\"100vh\"},\"children\":[\"$\",\"h1\",null,{\"style\":{\"fontFamily\":\"JetBrains Mono, monospace\",\"fontSize\":\"1.2rem\"},\"children\":\"404 — Not Found\"}]}],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n document.addEventListener('visibilitychange', function() {\\n document.body.classList.toggle('term-paused', document.hidden);\\n });\\n \"}}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n if ('serviceWorker' in navigator \u0026\u0026 location.hostname === 'localhost') {\\n navigator.serviceWorker.getRegistrations().then(function(regs) {\\n for (var r of regs) r.unregister();\\n });\\n }\\n \"}}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$5\"}}]]}]]}]]}],{\"children\":[\"/_not-found\",\"$L6\",{\"children\":[\"__PAGE__\",\"$L7\",{},null,false]},null,false]},null,false],\"$L8\",false]],\"m\":\"$undefined\",\"G\":[\"$9\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:I[9096,[],\"OutletBoundary\"]\nc:I[913,[],\"AsyncMetadataOutlet\"]\ne:I[9096,[],\"ViewportBoundary\"]\n10:I[9096,[],\"MetadataBoundary\"]\n11:\"$Sreact.suspense\"\n6:[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]\n7:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"div\",null,{\"style\":{\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"minHeight\":\"100vh\"},\"children\":[\"$\",\"h1\",null,{\"style\":{\"fontFamily\":\"JetBrains Mono, monospace\",\"fontSize\":\"1.2rem\"},\"children\":\"404 — Not Found\"}]}],null,[\"$\",\"$La\",null,{\"children\":[\"$Lb\",[\"$\",\"$Lc\",null,{\"promise\":\"$@d\"}]]}]]}]\n8:[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Le\",null,{\"children\":\"$Lf\"}],null],[\"$\",\"$L10\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$11\",null,{\"fallback\":null,\"children\":\"$L12\"}]}]}]]}]\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nb:null\n"])</script><script>self.__next_f.push([1,"d:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Open Office\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Control your AI agents from anywhere\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"$undefined\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"12:\"$d:metadata\"\n"])</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[337],{3337:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var r=n(206),a=n(1406),o=n(5282),l=n(4932),s=n(9385);let i=(0,o.default)(()=>Promise.all([n.e(767),n.e(853)]).then(n.bind(n,6853)),{loadableGenerated:{webpack:()=>[6853]},ssr:!1}),c=(0,o.default)(()=>n.e(73).then(n.bind(n,73)),{loadableGenerated:{webpack:()=>[73]},ssr:!1}),u=(0,a.memo)(function(e){let{agentId:t,data:n,meta:o,assetsReady:l,panePrompts:s,onPanePromptChange:u,isOwner:d,isCollaborator:m,isSpectator:g,panePendingImages:p,onPanePendingImagesChange:v,suggestions:h,suggestText:x,onSuggestTextChange:b,onSubmit:f,onCancel:M,onFire:k,onApproval:C,onApprovePlan:w,onQuickApprove:y,onEndProject:A,onSuggest:E,onPreview:T,onReview:j,detectedBackends:N,onLoadMore:P,onPasteImage:L,onPasteText:R,onDropImage:I,reviewerOverlay:S,onReviewerLoadMore:D,onApplyReviewFixes:X,onDismissReview:_,autoMerge:F,pendingMerge:H,lastMergeCommit:U,lastMergeMessage:W,undoCount:z,onMerge:Y,onRevert:O,onUndoMerge:B,scrollFrozen:G}=e,Q=(0,a.useRef)(t);Q.current=t;let K=(0,a.useCallback)(e=>u(Q.current,e),[u]),q=(0,a.useCallback)(e=>v(Q.current,e),[v]),J=(0,a.useCallback)(()=>f(Q.current),[f]),V=(0,a.useCallback)(()=>M(Q.current),[M]),Z=(0,a.useCallback)(()=>w(Q.current),[w]),$=(0,a.useCallback)(()=>y(Q.current),[y]),ee=(0,a.useCallback)(()=>A(Q.current),[A]),et=(0,a.useCallback)(()=>P(Q.current),[P]),en=(0,a.useCallback)(e=>L(Q.current,e),[L]),er=(0,a.useCallback)(e=>R(Q.current,e),[R]),ea=(0,a.useCallback)(e=>I(Q.current,e),[I]),eo=(0,a.useCallback)(j?(e,t)=>j(Q.current,e,t):void 0,[j]);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i,{agentId:t,name:n.name,role:n.role,backend:n.backend,status:n.status,cwd:n.cwd,workDir:n.workDir,messages:n.messages,visibleMessages:n.visibleMessages,hasMoreMessages:n.hasMoreMessages,tokenUsage:n.tokenUsage,isTeamLead:n.isTeamLead,isTeamMember:n.isTeamMember,isExternal:n.isExternal,teamId:n.teamId,teamPhase:n.teamPhase,pendingApproval:n.pendingApproval,awaitingApproval:n.awaitingApproval,lastLogLine:n.lastLogLine,busy:n.busy,pid:n.pid,isOwner:d,isCollaborator:m,isSpectator:g,prompt:s.get(t)||"",onPromptChange:K,pendingImages:p.get(t)||[],onPendingImagesChange:q,suggestions:h,suggestText:x,onSuggestTextChange:b,onSubmit:J,onCancel:V,onFire:k,onApproval:C,onApprovePlan:Z,onQuickApprove:$,onEndProject:ee,onSuggest:E,onPreview:T,onReview:eo,detectedBackends:N,onLoadMore:et,onPasteImage:en,onPasteText:er,onDropImage:ea,reviewerOverlay:S,onReviewerLoadMore:D,onApplyReviewFixes:X,onDismissReview:_,autoMerge:n.autoMerge,pendingMerge:n.pendingMerge,lastMergeCommit:n.lastMergeCommit,lastMergeMessage:n.lastMergeMessage,undoCount:n.undoCount,onMerge:Y?()=>Y(t):void 0,onRevert:O?()=>O(t):void 0,onUndoMerge:B?()=>B(t):void 0,scrollFrozen:G,hideInfoRole:!!o,inlineAvatar:o?{name:o.name,palette:o.palette,isTeamLead:o.isTeamLead,assetsReady:null!=l&&l,AvatarComponent:c}:null})})}),d=(0,a.memo)(function(e){var t,n,o;let{openPanes:i,getAgentData:c,paneOffset:d,onPaneOffsetChange:m,panePrompts:g,onPanePromptChange:p,isOwner:v,isCollaborator:h,isSpectator:x,panePendingImages:b,onPanePendingImagesChange:f,suggestions:M,suggestText:k,onSuggestTextChange:C,onSubmit:w,onCancel:y,onFire:A,onApproval:E,onApprovePlan:T,onQuickApprove:j,onEndProject:N,onSuggest:P,onPreview:L,onReview:R,onLoadMore:I,onPasteImage:S,onPasteText:D,onDropImage:X,reviewOverlay:_,getReviewerData:F,onReviewerLoadMore:H,onApplyReviewFixes:U,onDismissReview:W,detectedBackends:z,scrollFrozen:Y,agentMeta:O,assetsReady:B,showHireButton:G,hireLabel:Q="hire",onHire:K,showTeamControls:q,teamBusy:J,onMerge:V,onRevert:Z,onUndoMerge:$,onStopTeam:ee,onFireTeam:et}=e,[en,er]=(0,a.useState)(0),[ea,eo]=(0,a.useState)(null),el=(0,a.useRef)(null),[es,ei]=(0,a.useState)([]),ec=(0,a.useRef)(null),eu=Math.ceil(i.length/3),ed=[];for(let e=0;e<i.length;e+=3)ed.push(i.slice(e,e+3));let em=Math.max(0,Math.min(en,eu-1));em!==en&&(er(em),m(3*em)),(0,a.useEffect)(()=>{let e=setTimeout(()=>{document.activeElement instanceof HTMLElement&&("INPUT"===document.activeElement.tagName||"TEXTAREA"===document.activeElement.tagName)&&document.activeElement.blur()},50);return()=>clearTimeout(e)},[en]);let eg=(0,a.useCallback)(e=>{let t=Math.max(0,Math.min(e,eu-1));er(e=>e===t?e:(eo(t>e?"left":"right"),t)),m(3*t)},[eu,m]);(0,a.useEffect)(()=>{let e=e=>{var t;let n=null==(t=e.target)?void 0:t.tagName;"INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n&&(eu<=1||("ArrowLeft"===e.key?(e.preventDefault(),eg(en-1)):"ArrowRight"===e.key&&(e.preventDefault(),eg(en+1))))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[en,eu,eg]);let ep=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=el.current;if(!e||eu<=1)return;let t=t=>{let n=t.target;for(;n&&n!==e;){if("TEXTAREA"===n.tagName||"INPUT"===n.tagName)return;let{overflowY:e}=getComputedStyle(n);if(("auto"===e||"scroll"===e)&&n.scrollHeight>n.clientHeight)return;n=n.parentElement}let r=Math.abs(t.deltaX)>Math.abs(t.deltaY)?t.deltaX:t.deltaY;!(30>Math.abs(r))&&(ep.current||(ep.current=!0,setTimeout(()=>{ep.current=!1},400),r>0?eg(en+1):eg(en-1)))};return e.addEventListener("wheel",t,{passive:!0}),()=>e.removeEventListener("wheel",t)},[en,eu,eg]);let ev=(0,a.useRef)(null),eh=(0,a.useCallback)(e=>{ev.current={startX:e.touches[0].clientX,startY:e.touches[0].clientY}},[]),ex=(0,a.useCallback)(e=>{if(!ev.current||eu<=1)return;let t=e.changedTouches[0].clientX-ev.current.startX,n=e.changedTouches[0].clientY-ev.current.startY;ev.current=null,50>Math.abs(t)||Math.abs(t)<Math.abs(n)||(t<0?eg(en+1):eg(en-1))},[en,eu,eg]),eb=(0,a.useCallback)((e,t)=>{var n,r;t.preventDefault();let a=el.current;if(!a)return;let o=a.getBoundingClientRect().width,l=Math.min(null!=(r=null==(n=ed[en])?void 0:n.length)?r:0,3),s=es.length===l?[...es]:Array(l).fill(1/l);ec.current={index:e,startX:t.clientX,startWidths:s,containerW:o};let i=e=>{let t=ec.current;if(!t)return;let n=(e.clientX-t.startX)/t.containerW,r=[...t.startWidths],a=t.startWidths[t.index]+n,o=t.startWidths[t.index+1]-n;a>=.15&&o>=.15&&(r[t.index]=a,r[t.index+1]=o,ei(r))},c=()=>{ec.current=null,document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),document.body.style.cursor="",document.body.style.userSelect=""};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",i),document.addEventListener("mouseup",c)},[en,ed,es]),ef=(0,a.useRef)(0),eM=null!=(n=null==(t=ed[en])?void 0:t.length)?n:0;eM!==ef.current&&(ef.current=eM,es.length!==eM&&ei(Array(eM).fill(1/Math.max(1,eM))));let ek=en>=eu-1&&q;if(0===i.length)return(0,r.jsx)("div",{className:"flex flex-1 items-center justify-center font-mono text-term text-muted-foreground min-h-0",children:G&&K?(0,r.jsxs)("button",{onClick:K,title:"Hire",className:"flex items-center justify-center gap-2 px-6 py-4 h-[60px] cursor-pointer text-sm font-mono font-medium tracking-wide rounded-lg transition-all duration-200 hover:bg-accent/[0.15] hover:border-accent/[0.56] hover:text-accent",style:{border:"1px solid ".concat(l.DM,"50"),backgroundColor:"".concat(l.DM,"12"),color:"".concat(l.DM,"cc")},children:[(0,r.jsx)("span",{className:"text-[15px] leading-none",children:"+"})," ",Q]}):"No agents active"});let eC=es.length===eM?es:Array(eM).fill(1/Math.max(1,eM)),ew=null!=(o=ed[en])?o:[];return(0,r.jsxs)("div",{className:"flex flex-col flex-1 min-h-0",children:[(0,r.jsxs)("div",{ref:el,onTouchStart:eh,onTouchEnd:ex,className:(0,s.cn)("flex flex-1 min-h-0","left"===ea?"mpv-slide-left":"right"===ea?"mpv-slide-right":"mpv-page-fade"),children:[ew.map((e,t)=>{var n;let a=c(e);if(!a)return null;let o=null==O?void 0:O.find(t=>t.agentId===e),s=null!=eC[t]?"".concat(eC[t]," 1 0%"):"1 1 0%";return(0,r.jsxs)("div",{className:"contents",children:[t>0&&(0,r.jsx)("div",{className:"pane-resize".concat((null==(n=ec.current)?void 0:n.index)===t-1?" pane-resize-active":""),onMouseDown:e=>eb(t-1,e)}),(0,r.jsxs)("div",{style:{flex:s,minWidth:0,display:"flex",flexDirection:"column",position:"relative",...0===t?{borderLeft:"1px solid ".concat(l.KD),boxShadow:"-1px 0 0 rgba(0,0,0,0.4), inset 1px 0 0 rgba(255,255,255,0.03)"}:{}},children:[G&&K&&en===ed.length-1&&t===ew.length-1&&(0,r.jsxs)("button",{onClick:K,title:"Hire","aria-label":"Hire",className:"mpv-hire-float",children:[(0,r.jsx)("span",{style:{fontSize:13,lineHeight:"1"},children:"+"})," ",Q]}),(0,r.jsx)(u,{agentId:e,data:a,meta:o,assetsReady:B,panePrompts:g,onPanePromptChange:p,isOwner:v,isCollaborator:h,isSpectator:x,panePendingImages:b,onPanePendingImagesChange:f,suggestions:M,suggestText:k,onSuggestTextChange:C,onSubmit:w,onCancel:y,onFire:A,onApproval:E,onApprovePlan:T,onQuickApprove:j,onEndProject:N,onSuggest:P,onPreview:L,onReview:R,detectedBackends:z,onLoadMore:I,onPasteImage:S,onPasteText:D,onDropImage:X,reviewerOverlay:(null==_?void 0:_.sourceAgentId)===e&&F?F(_.reviewerAgentId):null,onReviewerLoadMore:(null==_?void 0:_.sourceAgentId)===e&&H?()=>H(_.reviewerAgentId):void 0,onApplyReviewFixes:(null==_?void 0:_.sourceAgentId)===e?U:void 0,onDismissReview:(null==_?void 0:_.sourceAgentId)===e?W:void 0,autoMerge:a.autoMerge,pendingMerge:a.pendingMerge,lastMergeCommit:a.lastMergeCommit,lastMergeMessage:a.lastMergeMessage,onMerge:V?()=>V(e):void 0,onRevert:Z?()=>Z(e):void 0,onUndoMerge:$?()=>$(e):void 0,scrollFrozen:Y})]})]},e)}),ek&&(0,r.jsxs)("div",{className:(0,s.cn)("flex flex-col items-center justify-center gap-2 px-4 min-w-[60px] shrink-0",ew.length>0&&"border-l border-term-border-dim"),children:[q&&J&&ee&&(0,r.jsx)("button",{onClick:ee,title:"Stop Team Work",className:"px-3 py-1.5 border border-muted-foreground cursor-pointer bg-transparent text-sem-yellow font-mono text-term",children:"stop"}),q&&et&&(0,r.jsx)("button",{onClick:et,title:"Fire Team",className:"px-3 py-1.5 border border-muted-foreground cursor-pointer bg-transparent text-muted-foreground font-mono text-term transition-colors duration-150 hover:text-sem-red",children:"fire"})]})]},en),(0,r.jsx)("div",{className:"term-info-bar flex justify-center items-center px-3 py-1.5 font-mono text-[11px] text-muted-foreground bg-term-panel shrink-0 relative gap-2 border-t border-term-border-dim shadow-[0_-3px_8px_-2px_rgba(0,0,0,0.5),inset_0_1px_0_rgba(255,255,255,0.04)]",children:eu>1&&(0,r.jsx)("div",{className:"mpv-dots",children:Array.from({length:eu},(e,t)=>(0,r.jsx)("button",{className:"mpv-dot".concat(en===t?" mpv-dot-active":""),onClick:()=>eg(t),"aria-label":"Page ".concat(t+1)},t))})})]})})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[853],{6853:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var r=n(206),o=n(1406);function l(e){let{msgCount:t,frozen:n=!1,key:r="",forcePin:l=!1}=e,s=(0,o.useRef)(null),a=(0,o.useRef)(!0),i=(0,o.useRef)(!1),d=(0,o.useRef)(0),c=()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.parentElement)?t:null},p=()=>{let e=s.current;e&&(e.scrollIntoView({block:"end",behavior:"instant"}),a.current=!0)},x=()=>{!n&&a.current&&(d.current||(d.current=requestAnimationFrame(()=>{d.current=0,a.current&&!n&&p()})))},u=(0,o.useRef)(l);(0,o.useLayoutEffect)(()=>{l&&!u.current&&(a.current=!0),u.current=l},[l]),(0,o.useLayoutEffect)(()=>{!n&&a.current&&p()},[r,t,n]),(0,o.useEffect)(()=>{let e=c();if(!e)return;let t=0,r=()=>{i.current||n||(cancelAnimationFrame(t),t=requestAnimationFrame(()=>{a.current=e.scrollHeight-e.scrollTop-e.clientHeight<=80}))};return e.addEventListener("scroll",r,{passive:!0}),()=>{e.removeEventListener("scroll",r),cancelAnimationFrame(t)}},[r,n]),(0,o.useEffect)(()=>{let e=c();if(!e)return;let t=new ResizeObserver(()=>{n||(i.current=!0,x(),requestAnimationFrame(()=>{i.current=!1}))});return t.observe(e),()=>{t.disconnect(),i.current=!1}},[r,n]),(0,o.useEffect)(()=>{let e=c();if(!e)return;let t=new MutationObserver(()=>{n||x()});return t.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>t.disconnect()},[r,n]),(0,o.useEffect)(()=>{let e=()=>{!n&&a.current&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.current&&!n&&p()})})},t=()=>{"visible"===document.visibilityState&&e()};return document.addEventListener("visibilitychange",t),window.addEventListener("focus",e),()=>{document.removeEventListener("visibilitychange",t),window.removeEventListener("focus",e)}},[r,n]);let m=(0,o.useRef)(n);return(0,o.useEffect)(()=>{let e=m.current;m.current=n,e&&!n&&(a.current=!0,requestAnimationFrame(()=>p()))},[n]),(0,o.useEffect)(()=>()=>{d.current&&(cancelAnimationFrame(d.current),d.current=0)},[]),s}var s=n(7821),a=n(4932),i=n(7877),d=n(7580),c=n(370),p=n(9362);function x(e){let{message:t,hint:n,className:o}=e,l=["te",o].filter(Boolean).join(" ");return(0,r.jsxs)("div",{className:l,children:[(0,r.jsx)("span",{className:"te-msg",children:t}),n&&(0,r.jsx)("span",{className:"te-hint",children:n})]})}n(1310),(0,n(8688).F)("inline-flex items-center gap-1 px-1.5 py-px font-mono text-[10px] font-medium tracking-wide whitespace-nowrap leading-snug border",{variants:{variant:{green:"text-sem-green bg-sem-green/8 border-sem-green/25",yellow:"text-sem-yellow bg-sem-yellow/8 border-sem-yellow/25",red:"text-sem-red bg-sem-red/8 border-sem-red/25",blue:"text-sem-blue bg-sem-blue/8 border-sem-blue/25",purple:"text-sem-purple bg-sem-purple/8 border-sem-purple/25",dim:"text-term-green-dim bg-term-green-dim/8 border-term-green-dim/20"}},defaultVariants:{variant:"dim"}});var u=n(8163),m=n(9385);let g=(0,n(5282).default)(()=>Promise.resolve().then(n.bind(n,7580)),{loadableGenerated:{webpack:()=>[7580]},ssr:!1});function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return;let n=getComputedStyle(e),r=parseInt(n.lineHeight)||20,o=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),l=parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),s=r*t;e.style.height="0";let a=e.scrollHeight,i="border-box"===n.boxSizing,d=i?a+l:a-o,c=Math.max(i?r+o+l:r,Math.min(d,s+(i?o+l:0)));e.style.height=c+"px",e.style.overflowY=(i?d-o-l:d)>s?"auto":"hidden"}function h(e){let{onLoadMore:t}=e,n=(0,o.useRef)(null),l=(0,o.useRef)(t);return l.current=t,(0,o.useEffect)(()=>{var e;let t=n.current;if(!t)return;let r=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&l.current()},{threshold:0,root:null!=(e=t.closest("[data-scrollbar]"))?e:t.parentElement,rootMargin:"100px 0px 0px 0px"});return r.observe(t),()=>r.disconnect()},[]),(0,r.jsx)("div",{ref:n,style:{height:1,flexShrink:0}})}let b=(0,o.memo)(function(e){var t;let{visibleMessages:n,hasMoreMessages:o,messages:l,name:s,agentId:i,onPreview:d,onReview:c,isTeamLead:p,isTeamMember:u,teamPhase:m,detectedBackends:f,onLoadMore:b,busy:y,pendingApproval:v,lastLogLine:j,chatEndRef:w,isOwner:k,onApproval:S}=e;return(0,r.jsxs)(r.Fragment,{children:[p&&(()=>{if(!m)return null;let e={create:{color:a.KE,icon:"\uD83D\uDCAC",hint:"Chat with your team lead to define the project"},design:{color:a.O2,icon:"\uD83D\uDCCB",hint:"Review the plan — approve it or give feedback"},execute:{color:a.O2,icon:"⚡",hint:"Team is building your project"},complete:{color:a.$C,icon:"✓",hint:"Review results — give feedback or end project"}}[m];return e?(0,r.jsxs)("div",{style:{padding:"6px 10px",marginBottom:8,borderLeft:"2px solid ".concat(a.Y0),display:"flex",alignItems:"center",gap:6,fontSize:a.Z8,fontFamily:a.Rw},children:[(0,r.jsx)("span",{style:{color:a.Y0,textTransform:"uppercase",letterSpacing:"0.05em"},children:m}),(0,r.jsx)("span",{style:{color:a.Y0},children:e.hint})]}):null})(),0===l.length&&(0,r.jsx)(x,{message:u?"managed by Team Lead":"no messages yet",hint:u?void 0:"send a message to get started"}),o&&(0,r.jsx)(h,{onLoadMore:b}),n.map(e=>(0,r.jsx)(g,{msg:e,agentName:s,onPreview:d,onReview:c,isTeamLead:p,isTeamMember:u,teamPhase:p?m:null,detectedBackends:f},e.id)),v&&(0,r.jsxs)("div",{style:{marginBottom:8,padding:12,borderLeft:"2px solid ".concat(a.O2),fontSize:a.Z8,fontFamily:a.Rw},children:[(0,r.jsx)("div",{style:{color:a.O2,marginBottom:6},children:v.title}),(0,r.jsx)("div",{style:{color:a.lR,marginBottom:10,lineHeight:1.65},children:v.summary}),k&&(0,r.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,r.jsx)("button",{className:"term-btn",onClick:()=>S(v.approvalId,"yes"),style:{flex:1,padding:"6px",border:"1px solid ".concat(a.Y0),backgroundColor:"transparent",color:a.$C,cursor:"pointer",fontSize:a.Z8,fontFamily:a.Rw},children:"approve"}),(0,r.jsx)("button",{className:"term-btn",onClick:()=>S(v.approvalId,"no"),style:{flex:1,padding:"6px",border:"1px solid ".concat(a.Y0),backgroundColor:"transparent",color:a.v_,cursor:"pointer",fontSize:a.Z8,fontFamily:a.Rw},children:"reject"})]})]}),y&&!v&&l.length>0&&(null==(t=l[l.length-1])?void 0:t.text)&&(()=>{var e,t,n;let o=j||(null==(n=l[l.length-1])||null==(t=n.text)||null==(e=t.split("\n").filter(Boolean).pop())?void 0:e.slice(0,60))||null;return(0,r.jsxs)("div",{style:{padding:"4px 0",display:"flex",alignItems:"center",gap:6},children:[(0,r.jsx)("span",{style:{color:a.Y0},className:"working-dots",children:(0,r.jsx)("span",{className:"working-dots-mid"})}),o&&(0,r.jsx)("span",{style:{color:a.Y0,fontSize:a.Z8,fontFamily:a.Rw},children:o.slice(0,60)})]})})(),(0,r.jsx)("div",{ref:w})]})});function y(e){let{onApplyReviewFixes:t,onDismissReview:n}=e,[l,s]=(0,o.useState)(""),a=(0,o.useRef)(null);return(0,o.useEffect)(()=>{setTimeout(()=>{var e;return null==(e=a.current)?void 0:e.focus()},100)},[]),(0,r.jsxs)("div",{className:"px-3 py-2 bg-term-panel font-mono shrink-0 shadow-[0_-3px_6px_-2px_rgba(0,0,0,0.35),inset_0_1px_0_rgba(255,255,255,0.03)]",children:[(0,r.jsx)("div",{className:"flex gap-2 items-center mb-2",children:(0,r.jsx)(p.A,{ref:a,type:"text",value:l,onChange:e=>s(e.target.value),onKeyDown:e=>{"Enter"===e.key&&!e.shiftKey&&t&&(e.preventDefault(),t(l||void 0))},placeholder:"Add feedback for the fix...",style:{flex:1}})}),(0,r.jsxs)("div",{className:"flex gap-2 justify-center",children:[t&&(0,r.jsx)(c.A,{variant:"success",onClick:()=>t(l||void 0),style:{padding:"6px 18px"},children:"apply fixes"}),n&&(0,r.jsx)(c.A,{variant:"dim",onClick:n,style:{padding:"6px 18px"},children:"dismiss"})]})]})}let v=(0,o.memo)(function(e){var t,n,c,p,v,j,w;let{agentId:k,name:S,role:R,backend:C,status:N,cwd:F,workDir:z,messages:T,visibleMessages:D,hasMoreMessages:M,tokenUsage:_,isTeamLead:Z,isTeamMember:E,isExternal:L,teamId:I,teamPhase:O,pendingApproval:H,awaitingApproval:Y,lastLogLine:A,busy:B,pid:$,isOwner:P,isCollaborator:U,isSpectator:W,prompt:K,onPromptChange:q,pendingImages:V,onPendingImagesChange:G,suggestions:J,suggestText:X,onSuggestTextChange:Q,onSubmit:ee,onCancel:et,onFire:en,onApproval:er,onApprovePlan:eo,onEndProject:el,onSuggest:es,onPreview:ea,onLoadMore:ei,onPasteImage:ed,onPasteText:ec,onDropImage:ep,onQuickApprove:ex,onReview:eu,detectedBackends:em,autoMerge:eg,pendingMerge:ef,lastMergeCommit:eh,lastMergeMessage:eb,undoCount:ey,onMerge:ev,onRevert:ej,onUndoMerge:ew,reviewerOverlay:ek,onReviewerLoadMore:eS,onApplyReviewFixes:eR,onDismissReview:eC,scrollFrozen:eN,hideInfoRole:eF,inlineAvatar:ez}=e,eT=(0,s.DY)(),eD=null!=(v=eT[N])?v:eT.idle;(ef||(null!=ey?ey:0)>0||eg)&&console.log("[Undo] ".concat(k,": busy=").concat(B," isOwner=").concat(P," teamId=").concat(I," isTeamMember=").concat(E," pendingMerge=").concat(ef," undoCount=").concat(ey," awaitingApproval=").concat(Y," onUndoMerge=").concat(!!ew));let eM=(0,o.useRef)(K),e_=""!==eM.current&&""===K;eM.current=K;let eZ=l({msgCount:T.length,frozen:eN,key:k,forcePin:e_}),eE=(0,o.useRef)(null);(0,o.useEffect)(()=>{!K&&eE.current&&(eE.current.style.height="auto")},[K]);let[eL,eI]=(0,o.useState)(!1),eO=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=eO.current;if(!e)return;let t=0,n=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{eI(e.scrollHeight-e.scrollTop-e.clientHeight>120)})};return e.addEventListener("scroll",n,{passive:!0}),()=>{e.removeEventListener("scroll",n),cancelAnimationFrame(t)}},[k]);let eH=(0,o.useCallback)(()=>{var e;null==(e=eZ.current)||e.scrollIntoView({block:"end",behavior:"smooth"}),eI(!1)},[eZ]),eY=l({msgCount:null!=(j=null==ek?void 0:ek.messages.length)?j:0,frozen:!1,key:null!=(w=null==ek?void 0:ek.agentId)?w:""});return(0,r.jsxs)("div",{className:"flex flex-col flex-1 min-h-0 relative",children:[(0,r.jsxs)("div",{className:(0,m.cn)("term-info-bar flex items-center gap-2 px-3 py-2 bg-term-panel font-mono text-term shrink-0","working"===N?"ap-status-working":"waiting_approval"===N?"ap-status-waiting":"done"===N?"ap-status-done":"error"===N?"ap-status-error":"ap-status-idle"),style:{borderBottom:"1px solid ".concat(a.JH),boxShadow:"0 2px 6px -1px rgba(0,0,0,0.45), inset 0 -1px 0 rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03)"},children:[ez&&(()=>{var e,t,n;let o=ez.AvatarComponent,l=C?null!=(n=null==(e=s.GN.find(e=>e.id===C))?void 0:e.name)?n:C:null,i=null==R||null==(t=R.split("—")[0])?void 0:t.trim();return(0,r.jsxs)(r.Fragment,{children:[o&&(0,r.jsx)("div",{className:"relative w-[24px] h-[28px] overflow-hidden rounded-sm shrink-0",style:{border:"1px solid ".concat(a.JH)},children:(0,r.jsx)("div",{className:"-mt-px",children:(0,r.jsx)(o,{palette:ez.palette,zoom:1.5,ready:ez.assetsReady})})}),(0,r.jsx)("span",{className:"text-[13px] text-term-text-bright font-medium tracking-tight shrink-0",children:ez.name}),ez.isTeamLead&&(0,r.jsx)("span",{className:"text-[9px] font-mono font-bold text-sem-yellow px-[3px] leading-[15px] rounded-sm shrink-0",style:{border:"1px solid ".concat(a.O2,"40")},children:"LEAD"}),l&&(0,r.jsx)("span",{className:"text-[11px] text-term-text opacity-60 shrink-0 tracking-wide",children:l}),i&&(0,r.jsx)("span",{className:"text-[11px] text-term-text opacity-45 shrink-0 tracking-wide hidden sm:inline",children:i})]})})(),!eF&&!ez&&(0,r.jsx)("span",{className:"text-term-text-bright shrink-0 tracking-tight",children:null==R||null==(t=R.split("—")[0])?void 0:t.trim()}),(F||z)&&(()=>{var e;let t=null!=(e=null!=F?F:z)?e:"",n=t.replace(/^\/Users\/[^/]+/,"~");return(0,r.jsxs)(u.m_,{children:[(0,r.jsx)(u.k$,{asChild:!0,children:(0,r.jsx)("span",{className:"term-path-scroll",style:{color:a.lR,flexShrink:1,minWidth:0,opacity:.5,overflow:"hidden",whiteSpace:"nowrap",direction:"rtl",textAlign:"left",fontSize:a.Z8-1},children:(0,r.jsx)("bdi",{children:n})})}),(0,r.jsx)(u.ZI,{side:"bottom",className:"max-w-xs break-all",children:t})]})})(),(0,r.jsx)("span",{className:"flex-1"}),(0,r.jsxs)(u.m_,{children:[(0,r.jsx)(u.k$,{asChild:!0,children:(0,r.jsx)("span",{className:"shrink-0 w-[7px] h-[7px] rounded-full",style:{backgroundColor:eD.color,boxShadow:B?"0 0 6px ".concat(eD.color,"60"):"none",animation:B?"px-pulse-gold 1.5s ease infinite":"none"}})}),(0,r.jsx)(u.ZI,{side:"bottom",children:eD.label})]}),_.inputTokens>0&&(0,r.jsx)(d.TokenBadge,{inputTokens:_.inputTokens,outputTokens:_.outputTokens}),!I&&P&&(0,r.jsxs)(u.m_,{children:[(0,r.jsx)(u.k$,{asChild:!0,children:(0,r.jsx)("button",{className:"tdx",onClick:e=>{e.stopPropagation(),en(k)},"aria-label":"Fire agent",children:"✕"})}),(0,r.jsx)(u.ZI,{side:"bottom",children:"Fire agent"})]})]}),L&&(0,r.jsxs)("div",{className:"flex-1 flex flex-col bg-background min-h-0 overflow-hidden",children:[(0,r.jsxs)("div",{className:"px-3 py-2 bg-term-panel shrink-0 shadow-[0_3px_6px_-2px_rgba(0,0,0,0.45),inset_0_-1px_0_rgba(0,0,0,0.5),inset_0_1px_0_rgba(255,255,255,0.03)]",children:[(0,r.jsx)("div",{className:"font-mono text-term text-muted-foreground mb-1 tracking-wide",children:"EXTERNAL PROCESS"}),(0,r.jsxs)("div",{className:"flex gap-3 font-mono text-term text-muted-foreground flex-wrap",children:[(0,r.jsx)("span",{children:null!=C?C:"unknown"}),(0,r.jsxs)("span",{children:["PID ",null!=$?$:"—"]}),(0,r.jsx)("span",{className:"term-path-scroll max-w-[300px]",title:null!=F?F:void 0,children:null!=F?F:"—"})]})]}),(0,r.jsxs)("div",{"data-scrollbar":!0,className:"crt-screen flex-1 overflow-y-auto px-2.5 py-2 flex flex-col min-h-0",children:[0===T.length&&(0,r.jsx)(x,{message:"waiting for output"}),M&&(0,r.jsx)(h,{onLoadMore:ei}),D.map(e=>(0,r.jsx)(g,{msg:e,agentName:S},e.id)),(0,r.jsx)("div",{ref:eZ})]}),(0,r.jsx)("div",{className:"px-3 py-1.5 bg-muted font-mono text-term text-muted-foreground text-center shrink-0",children:"Read-only — this process is running externally"})]}),ek&&ek.busy&&(0,r.jsxs)("div",{style:{position:"absolute",bottom:0,left:0,right:0,zIndex:20,minHeight:80,maxHeight:"40%",display:"flex",flexDirection:"column",background:"color-mix(in srgb, ".concat(a.cO," 6%, ").concat(a.gc,")"),borderTop:"1.5px solid ".concat(a.cO,"30"),boxShadow:"0 -4px 12px -2px rgba(0,0,0,0.5), inset 0 1px 0 ".concat(a.cO,"12"),fontFamily:a.Rw,fontSize:a.Z8,animation:"review-overlay-in 0.3s ease-out"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 12px",boxShadow:"0 2px 4px -1px rgba(0,0,0,0.3), inset 0 -1px 0 ".concat(a.cO,"18"),flexShrink:0},children:[(0,r.jsx)("span",{style:{color:a.cO,fontSize:9,fontWeight:600,padding:"1px 6px",borderRadius:3,background:"".concat(a.cO,"18"),letterSpacing:"0.04em",textTransform:"uppercase"},children:"REVIEW"}),(0,r.jsx)("span",{style:{color:a.oj},children:(null==(c=ek.role)||null==(n=c.split("—")[0])?void 0:n.trim())||ek.name}),(0,r.jsx)("span",{className:"working-dots",style:{color:a.cO},children:(0,r.jsx)("span",{className:"working-dots-mid"})}),(0,r.jsx)("span",{style:{flex:1}}),ek.tokenUsage.inputTokens>0&&(0,r.jsx)(d.TokenBadge,{inputTokens:ek.tokenUsage.inputTokens,outputTokens:ek.tokenUsage.outputTokens}),eC&&(0,r.jsx)("button",{onClick:eC,style:{padding:"2px 8px",border:"1px solid ".concat(a.KD),backgroundColor:"transparent",color:a.Y0,fontSize:a.Z8,fontFamily:a.Rw,cursor:"pointer",flexShrink:0,lineHeight:1},onMouseEnter:e=>{e.currentTarget.style.color=a.lR},onMouseLeave:e=>{e.currentTarget.style.color=a.Y0},children:"\xd7"})]}),ek.visibleMessages.length>0&&(0,r.jsxs)("div",{"data-scrollbar":!0,style:{flex:1,overflowY:"auto",padding:"8px 12px",minHeight:0,maxHeight:120,backgroundColor:"color-mix(in srgb, ".concat(a.cO," 3%, ").concat(a.lr,")")},children:[ek.visibleMessages.filter(e=>"user"!==e.role&&e.text).map(e=>(0,r.jsx)("div",{style:{fontSize:a.Z8,color:a.Y0,lineHeight:1.65,fontFamily:a.Rw,marginBottom:4,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.text.length>300?e.text.slice(-300):e.text},e.id)),(0,r.jsx)("div",{ref:eY})]}),0===ek.visibleMessages.length&&(0,r.jsx)("div",{style:{padding:"8px 12px",color:a.Y0,fontSize:a.Z8,fontFamily:a.Rw},children:(null==(p=ek.lastLogLine)?void 0:p.slice(0,80))||"Reviewing code changes..."})]}),ek&&!ek.busy&&(0,r.jsxs)("div",{style:{position:"absolute",bottom:0,left:0,right:0,zIndex:20,height:"65%",minHeight:200,display:"flex",flexDirection:"column",backgroundColor:"color-mix(in srgb, ".concat(a.cO," 3%, ").concat(a.lr,")"),borderTop:"1.5px solid ".concat(a.cO,"30"),boxShadow:"0 -4px 12px -2px rgba(0,0,0,0.5), inset 0 1px 0 ".concat(a.cO,"12"),animation:"review-slide-up 0.25s ease-out"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 14px",background:"color-mix(in srgb, ".concat(a.cO," 6%, ").concat(a.gc,")"),boxShadow:"0 3px 6px -2px rgba(0,0,0,0.4), inset 0 -1px 0 ".concat(a.cO,"18, inset 0 1px 0 rgba(255,255,255,0.03)"),fontSize:a.Z8,fontFamily:a.Rw,flexShrink:0},children:[(0,r.jsx)("span",{style:{color:a.cO,fontSize:9,fontWeight:600,padding:"1px 6px",borderRadius:3,background:"".concat(a.cO,"18"),letterSpacing:"0.04em",textTransform:"uppercase"},children:"REVIEW"}),(0,r.jsx)("span",{style:{color:"error"===ek.status?a.v_:a.$C},children:"error"===ek.status?"error":"done"}),(0,r.jsx)("span",{style:{color:a.oj},children:ek.name}),(0,r.jsx)("span",{style:{flex:1}}),ek.tokenUsage.inputTokens>0&&(0,r.jsx)(d.TokenBadge,{inputTokens:ek.tokenUsage.inputTokens,outputTokens:ek.tokenUsage.outputTokens})]}),(0,r.jsxs)("div",{"data-scrollbar":!0,className:"term-dotgrid term-chat-area",style:{flex:1,overflowY:"auto",padding:"10px 14px",display:"flex",flexDirection:"column",minHeight:0,backgroundColor:"color-mix(in srgb, ".concat(a.cO," 3%, ").concat(a.lr,")")},children:[(()=>{let e=ek.visibleMessages.filter(e=>"user"!==e.role&&e.text);return e.length>0?e.map(e=>(0,r.jsx)(g,{msg:e,agentName:ek.name},e.id)):ek.reviewResultText?(0,r.jsx)("div",{style:{color:"error"===ek.status?a.v_:a.lR,fontSize:a.Z8,fontFamily:a.Rw,padding:"10px 0",whiteSpace:"pre-wrap",wordBreak:"break-word",lineHeight:1.7},children:ek.reviewResultText}):(0,r.jsx)("div",{style:{color:a.Y0,fontSize:a.Z8,fontFamily:a.Rw,padding:"10px 0"},children:"(No review content)"})})(),(0,r.jsx)("div",{ref:eY})]}),(0,r.jsx)(y,{onApplyReviewFixes:eR,onDismissReview:eC})]}),!L&&(0,r.jsxs)("div",{onPaste:ed,onDragOver:e=>{var t,n;(null==(n=e.dataTransfer)||null==(t=n.types)?void 0:t.includes("Files"))&&(e.preventDefault(),e.currentTarget.style.outline="2px solid ".concat(a.O2,"60"))},onDragLeave:e=>{e.currentTarget.style.outline="none"},onDrop:e=>{e.currentTarget.style.outline="none",ep(e)},className:"crt-screen flex-1 flex flex-col bg-background min-h-0 overflow-hidden",children:[(0,r.jsxs)("div",{className:"relative flex-1 min-h-0 flex flex-col",children:[(0,r.jsx)("div",{ref:eO,"data-scrollbar":!0,className:"term-dotgrid term-chat-area flex-1 overflow-y-auto px-3.5 pt-3.5 pb-2.5 flex flex-col min-h-0",children:(0,r.jsx)(b,{visibleMessages:D,hasMoreMessages:M,messages:T,name:S,agentId:k,onPreview:ea,onReview:ek||eC?void 0:eu,isTeamLead:Z,isTeamMember:E,teamPhase:O,detectedBackends:em,onLoadMore:ei,busy:B,pendingApproval:H,lastLogLine:A,chatEndRef:eZ,isOwner:P,onApproval:er})}),(0,r.jsxs)("div",{className:"scroll-pill".concat(eL?" visible":""),onClick:eH,role:"button","aria-label":"Scroll to bottom",children:[(0,r.jsx)("span",{className:"scroll-pill-arrow",children:"↓"}),"new messages"]}),!B&&P&&!I&&!E&&!ef&&(null!=ey?ey:0)>0&&ew&&(0,r.jsxs)("button",{className:"term-btn",onClick:ew,style:{position:"absolute",bottom:8,right:14,display:"inline-flex",alignItems:"center",gap:5,padding:"4px 12px",border:"1px solid ".concat(a.v_,"40"),backgroundColor:a.lr,color:a.v_,fontSize:a.Z8,cursor:"pointer",fontFamily:a.Rw,zIndex:2,borderRadius:3,opacity:.85},children:[(0,r.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M2 6l4-4 4 4"}),(0,r.jsx)("path",{d:"M6 2v8a4 4 0 0 0 4 4h2"})]}),"Undo (",ey,")"]})]}),!W&&J.length>0&&(0,r.jsxs)("div",{"data-scrollbar":!0,style:{padding:"6px 10px",backgroundColor:a.lr,maxHeight:120,overflowY:"auto",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.03), 0 -2px 4px rgba(0,0,0,0.2)"},children:[(0,r.jsx)("div",{style:{fontSize:a.Z8,color:a.Y0,fontFamily:a.Rw,marginBottom:4,letterSpacing:"0.05em"},children:"SUGGESTIONS"}),J.slice(-10).map((e,t)=>(0,r.jsxs)("div",{style:{fontSize:a.Z8,color:a.lR,marginBottom:2,lineHeight:1.65,fontFamily:a.Rw},children:[(0,r.jsxs)("span",{style:{color:a.Y0},children:[e.author,":"]})," ",e.text]},t))]}),V.length>0&&(0,r.jsxs)("div",{style:{padding:"6px 10px",backgroundColor:a.lr,display:"flex",gap:6,flexWrap:"wrap",alignItems:"center",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.03), 0 -2px 4px rgba(0,0,0,0.2)"},children:[V.map((e,t)=>(0,r.jsxs)("div",{style:{position:"relative",display:"inline-block"},children:[(0,r.jsx)("img",{src:e.dataUrl,alt:e.name,style:{height:48,borderRadius:4,border:"1px solid ".concat(a.JH)}}),(0,r.jsx)("button",{onClick:()=>G(V.filter((e,n)=>n!==t)),style:{position:"absolute",top:-4,right:-4,width:16,height:16,borderRadius:"50%",border:"none",backgroundColor:a.v_,color:"#fff",fontSize:10,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",padding:0,lineHeight:1},children:"\xd7"})]},t)),(0,r.jsxs)("span",{style:{fontSize:a.Z8,color:a.Y0,fontFamily:a.Rw},children:[V.length," image",V.length>1?"s":""," attached"]})]}),(()=>{let e=Z?O:null;return W?(0,r.jsx)("div",{className:"px-2.5 py-2 bg-muted shrink-0 font-mono text-term text-muted-foreground text-center shadow-[0_-3px_6px_-2px_rgba(0,0,0,0.35),inset_0_1px_0_rgba(255,255,255,0.03)]",children:"Watching — read-only mode"}):U?(0,r.jsx)("div",{style:{padding:"8px 10px",background:a.gc,flexShrink:0,boxShadow:"0 -3px 6px -2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.03)"},children:(0,r.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,r.jsx)("textarea",{rows:1,value:X,onChange:e=>{Q(e.target.value),f(e.currentTarget)},onKeyDown:e=>(0,i.$$)(e)&&(e.preventDefault(),es()),placeholder:"Share an idea...",maxLength:500,style:{flex:1,padding:"6px 10px",border:"1px solid ".concat(a.KD),backgroundColor:a.lr,color:a.lR,fontSize:a.Z8,outline:"none",resize:"none",lineHeight:"20px",fontFamily:a.Rw}}),(0,r.jsx)("button",{onClick:es,disabled:!X.trim(),style:{padding:"6px 14px",border:"1px solid ".concat(a.Y0),backgroundColor:"transparent",color:X.trim()?a.lR:a.Y0,fontSize:a.Z8,cursor:X.trim()?"pointer":"default",fontFamily:a.Rw},children:"suggest"})]})}):(0,r.jsx)("div",{className:"term-input-area px-3 py-2 bg-term-panel shrink-0",children:E?(0,r.jsx)("div",{className:"text-center text-muted-foreground font-mono text-term py-2",children:"Tasks are assigned by the Team Lead"}):"execute"===e?(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:0},children:[(0,r.jsxs)("div",{className:"term-input-well",children:[(0,r.jsx)("span",{style:{color:B?a.Y0:a.DM,fontSize:a.Z8,fontFamily:a.Rw,padding:"6px 0 6px 8px",flexShrink:0,textShadow:"none"},children:">"}),(0,r.jsx)("textarea",{ref:eE,rows:1,className:"term-input",value:K,onPaste:ec,onChange:e=>{q(e.target.value),f(e.currentTarget)},onKeyDown:e=>{if("Escape"===e.key&&B)return void et();(0,i.$$)(e)&&(e.preventDefault(),ee())},placeholder:B?"esc stop \xb7 type to continue":"",style:{flex:1,padding:"6px 5px",border:"none",backgroundColor:"transparent",color:a.oj,fontSize:a.Z8,outline:"none",fontFamily:a.Rw,fontWeight:400,caretColor:a.DM,resize:"none",lineHeight:"20px"}})]}),!B&&(0,r.jsx)("span",{onClick:el,style:{padding:"2px 8px 4px",color:a.Y0,fontSize:12,cursor:"pointer",fontFamily:a.Rw},children:"close project"})]}):"design"!==e||B?"complete"!==e||B?B||!P||I||E||!ef?Y&&!B?(0,r.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",padding:"4px 0"},children:[(0,r.jsx)("button",{className:"term-btn",onClick:ex,style:{padding:"5px 14px",border:"1px solid ".concat(a.DM,"60"),backgroundColor:"transparent",color:a.DM,fontSize:a.Z8,cursor:"pointer",fontFamily:a.Rw,flexShrink:0},children:"approve"}),(0,r.jsxs)("div",{className:"term-input-well",style:{flex:1},children:[(0,r.jsx)("span",{style:{color:a.Y0,fontSize:a.Z8,fontFamily:a.Rw,padding:"0 0 0 6px"},children:">"}),(0,r.jsx)("textarea",{ref:eE,rows:1,className:"term-input",value:K,onPaste:ec,onChange:e=>{q(e.target.value),f(e.currentTarget)},onKeyDown:e=>{(0,i.$$)(e)&&(e.preventDefault(),ee())},placeholder:"or give feedback...",style:{flex:1,padding:"5px 6px",border:"none",backgroundColor:"transparent",color:a.oj,fontSize:a.Z8,outline:"none",fontFamily:a.Rw,caretColor:a.DM,resize:"none",lineHeight:"20px"}})]})]}):(0,r.jsxs)("div",{className:"term-input-well",children:[(0,r.jsx)("span",{style:{color:B?a.Y0:a.DM,fontSize:a.Z8,fontFamily:a.Rw,padding:"6px 0 6px 8px",flexShrink:0,textShadow:"none"},children:">"}),(0,r.jsx)("textarea",{ref:eE,rows:1,className:"term-input",value:K,onPaste:ec,onChange:e=>{q(e.target.value),f(e.currentTarget)},onKeyDown:e=>{if("Escape"===e.key&&B)return void et();(0,i.$$)(e)&&(e.preventDefault(),ee())},placeholder:B?"esc stop \xb7 type to continue":"",style:{flex:1,padding:"6px 5px",border:"none",backgroundColor:"transparent",color:a.oj,fontSize:a.Z8,outline:"none",fontFamily:a.Rw,fontWeight:400,caretColor:a.DM,resize:"none",lineHeight:"20px"},autoFocus:!0})]}):(0,r.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",padding:"4px 0"},children:[!eg&&ev&&(0,r.jsxs)("button",{className:"term-btn",onClick:ev,style:{display:"inline-flex",alignItems:"center",gap:5,padding:"5px 14px",border:"1px solid ".concat(a.DM,"60"),backgroundColor:"transparent",color:a.DM,fontSize:a.Z8,cursor:"pointer",fontFamily:a.Rw,flexShrink:0},children:[(0,r.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M12 3v6M4 3v10M4 13l4-4 4 0"})}),"Merge"]}),!eg&&ej&&(0,r.jsxs)("button",{className:"term-btn",onClick:ej,style:{display:"inline-flex",alignItems:"center",gap:5,padding:"5px 14px",border:"1px solid ".concat(a.O2,"40"),backgroundColor:"transparent",color:a.O2,fontSize:a.Z8,cursor:"pointer",fontFamily:a.Rw,flexShrink:0},children:[(0,r.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M2 6l4-4 4 4"}),(0,r.jsx)("path",{d:"M6 2v8a4 4 0 0 0 4 4h2"})]}),"Revert"]}),(0,r.jsxs)("div",{className:"term-input-well",style:{flex:1,display:"flex",alignItems:"center"},children:[(0,r.jsx)("span",{style:{color:a.Y0,fontSize:a.Z8,fontFamily:a.Rw,padding:"0 0 0 8px",flexShrink:0},children:">"}),(0,r.jsx)("textarea",{ref:eE,rows:1,className:"term-input",value:K,onPaste:ec,onChange:e=>{q(e.target.value),f(e.currentTarget)},onKeyDown:e=>{(0,i.$$)(e)&&(e.preventDefault(),ee())},placeholder:"send a new task...",style:{flex:1,padding:"5px 6px",border:"none",backgroundColor:"transparent",color:a.oj,fontSize:a.Z8,outline:"none",fontFamily:a.Rw,caretColor:a.DM,resize:"none",lineHeight:"20px"}})]})]}):(0,r.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",padding:"4px 0"},children:[(0,r.jsxs)("div",{className:"term-input-well",style:{flex:1},children:[(0,r.jsx)("span",{style:{color:a.Y0,fontSize:a.Z8,fontFamily:a.Rw,padding:"0 0 0 6px"},children:">"}),(0,r.jsx)("textarea",{ref:eE,rows:1,className:"term-input",value:K,onPaste:ec,onChange:e=>{q(e.target.value),f(e.currentTarget)},onKeyDown:e=>{(0,i.$$)(e)&&(e.preventDefault(),ee())},placeholder:"request changes...",style:{flex:1,padding:"5px 6px",border:"none",backgroundColor:"transparent",color:a.oj,fontSize:a.Z8,outline:"none",fontFamily:a.Rw,caretColor:a.DM,resize:"none",lineHeight:"20px"}})]}),(0,r.jsx)("button",{onClick:el,style:{padding:"5px 14px",border:"1px solid ".concat(a.O2,"40"),backgroundColor:"transparent",color:a.O2,fontSize:a.Z8,cursor:"pointer",fontFamily:a.Rw,flexShrink:0},children:"Close Project"})]}):(0,r.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",padding:"4px 0"},children:[(0,r.jsx)("button",{className:"term-btn",onClick:eo,style:{padding:"5px 14px",border:"1px solid ".concat(a.DM,"60"),backgroundColor:"transparent",color:a.DM,fontSize:a.Z8,cursor:"pointer",fontFamily:a.Rw,flexShrink:0},children:"approve"}),(0,r.jsxs)("div",{className:"term-input-well",style:{flex:1},children:[(0,r.jsx)("span",{style:{color:a.Y0,fontSize:a.Z8,fontFamily:a.Rw,padding:"0 0 0 6px"},children:">"}),(0,r.jsx)("textarea",{ref:eE,rows:1,className:"term-input",value:K,onPaste:ec,onChange:e=>{q(e.target.value),f(e.currentTarget)},onKeyDown:e=>{(0,i.$$)(e)&&(e.preventDefault(),ee())},placeholder:"or give feedback...",style:{flex:1,padding:"5px 6px",border:"none",backgroundColor:"transparent",color:a.oj,fontSize:a.Z8,outline:"none",fontFamily:a.Rw,caretColor:a.DM,resize:"none",lineHeight:"20px"}})]})]})})})()]})]})})},8163:(e,t,n)=>{n.d(t,{TooltipProvider:()=>a,ZI:()=>c,k$:()=>d,m_:()=>i});var r=n(206),o=n(1406),l=n(3767),s=n(9385);let a=l.Kq,i=l.bL,d=l.l9,c=o.forwardRef((e,t)=>{let{className:n,sideOffset:o=4,...a}=e;return(0,r.jsx)(l.ZL,{children:(0,r.jsx)(l.UC,{ref:t,sideOffset:o,className:(0,s.cn)("z-[50000] overflow-hidden","px-2.5 py-1.5","bg-term-panel border border-border shadow-lg","font-mono text-[11px] text-foreground","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2",n),...a})})});c.displayName=l.UC.displayName},9362:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(206),o=n(1406),l=n(9385);let s=o.forwardRef((e,t)=>{let{className:n,type:o,...s}=e;return(0,r.jsx)("input",{type:o,className:(0,l.cn)("flex w-full px-2.5 py-1.5","border border-border bg-background text-foreground","font-mono text-term leading-5","outline-none transition-colors duration-fast","placeholder:text-term-green-dim placeholder:opacity-50","focus:border-term-green-dim","disabled:cursor-not-allowed disabled:opacity-50",n),ref:t,...s})});s.displayName="Input",o.forwardRef((e,t)=>{let{className:n,...o}=e;return(0,r.jsx)("textarea",{className:(0,l.cn)("flex w-full px-2.5 py-1.5 resize-none","border border-border bg-background text-foreground","font-mono text-term leading-5","outline-none transition-colors duration-fast","placeholder:text-term-green-dim placeholder:opacity-50","focus:border-term-green-dim","disabled:cursor-not-allowed disabled:opacity-50",n),ref:t,...o})}).displayName="Textarea";let a=(0,o.forwardRef)(function(e,t){let{inline:n,className:o,...a}=e;return(0,r.jsx)(s,{ref:t,className:(0,l.cn)(n&&"border-none bg-transparent text-term-text-bright caret-accent px-1.5 py-1.5 focus:border-none focus:shadow-none",o),...a})})}}]);
|