bit-office 1.2.1 → 1.2.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.
package/dist/web/404.html CHANGED
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><!--8cfKslBAKuXQUC3ILpBvL--><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="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-c82364bd627eb710.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><meta name="theme-color" content="#1a1530"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><title>404: This page could not be found.</title><meta name="robots" content="noindex"/><title>Bit 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=Press+Start+2P&amp;display=swap" rel="stylesheet"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body style="margin:0;background-color:#1a1530;color:#eddcb8;font-family:system-ui, sans-serif"><div hidden=""><!--$--><!--/$--></div><style>
1
+ <!DOCTYPE html><!--0Clbb0V7_cqhwpr3pjKk1--><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="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-1c3347ded5c6a52b.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><meta name="theme-color" content="#1a1530"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><title>404: This page could not be found.</title><meta name="robots" content="noindex"/><title>Bit 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=Press+Start+2P&amp;display=swap" rel="stylesheet"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body style="margin:0;background-color:#1a1530;color:#eddcb8;font-family:system-ui, sans-serif"><div hidden=""><!--$--><!--/$--></div><style>
2
2
  :root {
3
3
  --px-bg-deep: #16122a;
4
4
  --px-bg-panel: #1e1a30;
@@ -52,4 +52,4 @@
52
52
  for (var r of regs) r.unregister();
53
53
  });
54
54
  }
55
- </script><script src="/_next/static/chunks/webpack-c82364bd627eb710.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n3:I[9653,[],\"\"]\n4:I[1329,[],\"\"]\n9:I[5719,[],\"\"]\n2:T5c9,"])</script><script>self.__next_f.push([1,"\n :root {\n --px-bg-deep: #16122a;\n --px-bg-panel: #1e1a30;\n --px-bg-card: #231e38;\n --px-bg-chat: #1a1530;\n --px-border: #3d2e54;\n --px-border-warm: #5a3d14;\n --px-gold: #e8b040;\n --px-gold-dim: #a87820;\n --px-text: #eddcb8;\n --px-text-muted: #9a8a68;\n --px-text-dim: #6a5a48;\n --px-amber: #e0900a;\n --px-amber-bg: rgba(232, 176, 64, 0.14);\n }\n * {\n scrollbar-width: thin;\n scrollbar-color: #5a3d14 #1a1530;\n }\n *::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n }\n *::-webkit-scrollbar-track {\n background: transparent;\n }\n *::-webkit-scrollbar-thumb {\n background: #3d2d10;\n border-radius: 0;\n }\n *::-webkit-scrollbar-thumb:hover {\n background: #e8b040;\n }\n *::-webkit-scrollbar-corner {\n background: transparent;\n }\n .px-font {\n font-family: 'Press Start 2P', monospace;\n }\n @keyframes px-blink {\n 0%, 49% { opacity: 1; }\n 50%, 100% { opacity: 0; }\n }\n @keyframes px-pulse-gold {\n 0%, 100% { box-shadow: 0 0 0 0 rgba(200,155,48,0); }\n 50% { box-shadow: 0 0 8px 2px rgba(200,155,48,0.25); }\n }\n "])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"8cfKslBAKuXQUC3ILpBvL\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"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=Press+Start+2P\u0026display=swap\",\"rel\":\"stylesheet\"}]]}],[\"$\",\"body\",null,{\"style\":{\"margin\":0,\"backgroundColor\":\"#1a1530\",\"color\":\"#eddcb8\",\"fontFamily\":\"system-ui, sans-serif\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$2\"}}],[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"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 \"}}]]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$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\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],\"$L5\",\"$L6\"]}]}]],null,\"$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\"\n5:[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}]\n6:[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]\n7:[\"$\",\"$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\":\"Bit 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>
55
+ </script><script src="/_next/static/chunks/webpack-1c3347ded5c6a52b.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n3:I[9653,[],\"\"]\n4:I[1329,[],\"\"]\n9:I[5719,[],\"\"]\n2:T5c9,"])</script><script>self.__next_f.push([1,"\n :root {\n --px-bg-deep: #16122a;\n --px-bg-panel: #1e1a30;\n --px-bg-card: #231e38;\n --px-bg-chat: #1a1530;\n --px-border: #3d2e54;\n --px-border-warm: #5a3d14;\n --px-gold: #e8b040;\n --px-gold-dim: #a87820;\n --px-text: #eddcb8;\n --px-text-muted: #9a8a68;\n --px-text-dim: #6a5a48;\n --px-amber: #e0900a;\n --px-amber-bg: rgba(232, 176, 64, 0.14);\n }\n * {\n scrollbar-width: thin;\n scrollbar-color: #5a3d14 #1a1530;\n }\n *::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n }\n *::-webkit-scrollbar-track {\n background: transparent;\n }\n *::-webkit-scrollbar-thumb {\n background: #3d2d10;\n border-radius: 0;\n }\n *::-webkit-scrollbar-thumb:hover {\n background: #e8b040;\n }\n *::-webkit-scrollbar-corner {\n background: transparent;\n }\n .px-font {\n font-family: 'Press Start 2P', monospace;\n }\n @keyframes px-blink {\n 0%, 49% { opacity: 1; }\n 50%, 100% { opacity: 0; }\n }\n @keyframes px-pulse-gold {\n 0%, 100% { box-shadow: 0 0 0 0 rgba(200,155,48,0); }\n 50% { box-shadow: 0 0 8px 2px rgba(200,155,48,0.25); }\n }\n "])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"0Clbb0V7-cqhwpr3pjKk1\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"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=Press+Start+2P\u0026display=swap\",\"rel\":\"stylesheet\"}]]}],[\"$\",\"body\",null,{\"style\":{\"margin\":0,\"backgroundColor\":\"#1a1530\",\"color\":\"#eddcb8\",\"fontFamily\":\"system-ui, sans-serif\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$2\"}}],[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"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 \"}}]]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$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\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],\"$L5\",\"$L6\"]}]}]],null,\"$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\"\n5:[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}]\n6:[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]\n7:[\"$\",\"$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\":\"Bit 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([[336],{336:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var o=n(206),r=n(1406),a=n(138),l=n(5026);function i(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":String(e)}function s(e){return!!e&&!!(e.entryFile||e.previewCmd)}function c(e){let{events:t,name:n,preview:r,onBack:a,onPreview:l}=e,i=[];for(let e of t){var c,p,d,g;switch(e.type){case"TEAM_CHAT":i.push({id:"tc-".concat(e.timestamp,"-").concat(e.fromAgentId),agent:e.fromAgentId,text:e.message,timestamp:e.timestamp,type:e.messageType});break;case"TASK_DONE":(null==(c=e.result)?void 0:c.summary)&&i.push({id:"done-".concat(e.taskId),agent:e.agentId,text:e.result.summary,timestamp:null!=(p=e.timestamp)?p:0,type:"result"});break;case"TASK_DELEGATED":i.push({id:"del-".concat(e.taskId),agent:e.fromAgentId,text:"Delegated to ".concat(e.toAgentId,": ").concat(e.prompt.slice(0,200)),timestamp:null!=(d=e.timestamp)?d:0,type:"delegation"});break;case"TEAM_PHASE":i.push({id:"phase-".concat(e.teamId,"-").concat(e.phase),agent:e.leadAgentId,text:"Phase: ".concat(e.phase),timestamp:null!=(g=e.timestamp)?g:0,type:"phase"})}}let u={delegation:{bg:"rgba(90, 172, 255, 0.06)",border:"rgba(90, 172, 255, 0.12)",label:"DELEGATE",labelColor:"#5aacff"},result:{bg:"rgba(72, 204, 106, 0.06)",border:"rgba(72, 204, 106, 0.12)",label:"DONE",labelColor:"#48cc6a"},phase:{bg:"rgba(232, 176, 64, 0.06)",border:"rgba(232, 176, 64, 0.12)",label:"PHASE",labelColor:"#e8b040"},status:{bg:"rgba(255, 255, 255, 0.02)",border:"rgba(255, 255, 255, 0.06)",label:"STATUS",labelColor:"rgba(255,255,255,0.4)"}};return(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,o.jsxs)("div",{style:{padding:"14px 16px",borderBottom:"1px solid rgba(255, 255, 255, 0.08)",display:"flex",alignItems:"center",gap:10},children:[(0,o.jsx)("button",{onClick:a,style:{background:"none",border:"1px solid rgba(255, 255, 255, 0.15)",color:"rgba(255, 255, 255, 0.5)",padding:"5px 12px",cursor:"pointer",fontSize:11,letterSpacing:"0.03em"},children:"Back"}),(0,o.jsx)("span",{className:"px-font",style:{color:"#e8b040",fontSize:13,fontWeight:600,flex:1,letterSpacing:"0.02em"},children:n}),s(r)&&l&&(0,o.jsx)("button",{onClick:()=>l(r),style:{background:"rgba(72, 204, 106, 0.12)",border:"1px solid rgba(72, 204, 106, 0.25)",color:"#48cc6a",padding:"5px 14px",cursor:"pointer",fontSize:11,letterSpacing:"0.03em"},children:"Preview"})]}),(0,o.jsxs)("div",{style:{flex:1,overflow:"auto",padding:"8px 12px"},children:[0===i.length&&(0,o.jsx)("div",{className:"px-font",style:{color:"rgba(255, 255, 255, 0.3)",fontSize:12,textAlign:"center",padding:40},children:"No messages in this project"}),i.map(e=>{var t;let n=null!=(t=u[e.type])?t:u.status;return(0,o.jsxs)("div",{style:{marginBottom:6,padding:"8px 10px",background:n.bg,borderLeft:"2px solid ".concat(n.border)},children:[(0,o.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:3},children:[(0,o.jsx)("span",{style:{color:n.labelColor,fontSize:9,fontWeight:700,letterSpacing:"0.08em",fontFamily:"monospace",textTransform:"uppercase"},children:n.label}),(0,o.jsx)("span",{style:{color:"rgba(255, 255, 255, 0.6)",fontSize:11,fontWeight:600,fontFamily:"monospace"},children:e.agent.replace(/^agent-/,"").split("-")[0]})]}),(0,o.jsx)("div",{style:{color:"rgba(255, 255, 255, 0.55)",fontSize:12,lineHeight:1.5,fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.text.slice(0,800)})]},e.id)})]})]})}function p(e){let{isOpen:t,onClose:n,onPreview:p}=e,{projectList:d,viewingProjectId:g,viewingProjectEvents:u,viewingProjectName:x,clearViewingProject:m}=(0,a.h)(),[b,f]=(0,r.useState)(!1),h=g?d.find(e=>e.id===g):null;if((0,r.useEffect)(()=>{t&&!b&&((0,l.S8)({type:"LIST_PROJECTS"}),f(!0)),t||(f(!1),m())},[t]),!t)return null;let y=(e,t)=>{let o=e=>(null==e?void 0:e.replace(/\*\*/g,"").replace(/`/g,"").replace(/^_+|_+$/g,"").trim())||void 0,r=o(e.previewCmd),a=o(e.entryFile),i=e.projectDir;r&&e.previewPort?(0,l.S8)({type:"SERVE_PREVIEW",previewCmd:r,previewPort:e.previewPort,cwd:i}):r?(0,l.S8)({type:"SERVE_PREVIEW",previewCmd:r,cwd:i}):a&&i&&(0,l.S8)({type:"SERVE_PREVIEW",filePath:i+"/"+a}),null==p||p(e,t),n()};return(0,o.jsx)("div",{style:{position:"fixed",inset:0,zIndex:100,backgroundColor:"rgba(0,0,0,0.6)",display:"flex",alignItems:"center",justifyContent:"center"},onClick:n,children:(0,o.jsxs)("div",{style:{backgroundColor:"#14141a",border:"2px solid #e8b040",boxShadow:"0 0 40px rgba(200,155,48,0.08), 4px 4px 0px rgba(0,0,0,0.5)",width:"90%",maxWidth:560,height:"70vh",display:"flex",flexDirection:"column"},onClick:e=>e.stopPropagation(),children:[(0,o.jsxs)("div",{style:{padding:"14px 18px",borderBottom:"1px solid rgba(232, 176, 64, 0.2)",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,o.jsx)("span",{className:"px-font",style:{color:"#e8b040",fontSize:13,fontWeight:600,letterSpacing:"0.05em"},children:"Project History"}),(0,o.jsx)("button",{onClick:n,style:{background:"none",border:"none",color:"rgba(255, 255, 255, 0.3)",fontSize:16,cursor:"pointer",lineHeight:1},children:"x"})]}),(0,o.jsx)("div",{style:{flex:1,overflow:"auto"},children:g&&u.length>0?(0,o.jsx)(c,{events:u,name:null!=x?x:"Project",preview:null==h?void 0:h.preview,onBack:m,onPreview:e=>y(e,null==h?void 0:h.ratings)}):(0,o.jsx)("div",{style:{padding:"6px 0"},children:0===d.length?(0,o.jsxs)("div",{className:"px-font",style:{color:"rgba(255, 255, 255, 0.3)",fontSize:12,textAlign:"center",padding:40,lineHeight:1.8},children:["No archived projects yet.",(0,o.jsx)("br",{}),"Projects are saved when you click End Project."]}):d.map((e,t)=>(0,o.jsx)("div",{style:{padding:"12px 18px",borderBottom:t<d.length-1?"1px solid rgba(255, 255, 255, 0.05)":"none",cursor:"pointer",transition:"background 0.15s"},onMouseEnter:e=>{e.currentTarget.style.background="rgba(232, 176, 64, 0.04)"},onMouseLeave:e=>{e.currentTarget.style.background="transparent"},children:(0,o.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:12},children:[(0,o.jsxs)("button",{onClick:()=>(0,l.S8)({type:"LOAD_PROJECT",projectId:e.id}),style:{flex:1,textAlign:"left",background:"none",border:"none",cursor:"pointer",padding:0},children:[(0,o.jsx)("div",{style:{color:"rgba(255, 255, 255, 0.85)",fontSize:12,fontWeight:600,fontFamily:"monospace",marginBottom:5},children:e.name}),(0,o.jsxs)("div",{style:{display:"flex",gap:12,alignItems:"center",flexWrap:"wrap"},children:[(0,o.jsx)("span",{style:{fontSize:10,fontFamily:"monospace",color:"rgba(255, 255, 255, 0.35)"},children:function(e){let t=Math.floor((Date.now()-e)/6e4);if(t<1)return"Just now";if(t<60)return"".concat(t,"m ago");let n=Math.floor(t/60);if(n<24)return"".concat(n,"h ago");let o=Math.floor(n/24);if(o<7)return"".concat(o,"d ago");let r=new Date(e),a=e=>String(e).padStart(2,"0");return"".concat(r.getFullYear(),"-").concat(a(r.getMonth()+1),"-").concat(a(r.getDate())," ").concat(a(r.getHours()),":").concat(a(r.getMinutes()))}(e.endedAt)}),(0,o.jsx)("span",{style:{fontSize:10,fontFamily:"monospace",color:"#e8b040",opacity:.6},children:function(e,t){let n=Math.floor((t-e)/6e4);if(n<1)return"<1m";if(n<60)return"".concat(n,"m");let o=Math.floor(n/60);return"".concat(o,"h ").concat(n%60,"m")}(e.startedAt,e.endedAt)}),(0,o.jsxs)("span",{style:{fontSize:10,fontFamily:"monospace",color:"rgba(90, 172, 255, 0.5)"},children:[e.agentNames.length," agent",1!==e.agentNames.length?"s":""]}),e.tokenUsage&&(e.tokenUsage.inputTokens>0||e.tokenUsage.outputTokens>0)&&(0,o.jsxs)("span",{style:{fontSize:10,fontFamily:"monospace",color:"#48cc6a",opacity:.6},title:"Input: ".concat(e.tokenUsage.inputTokens.toLocaleString()," / Output: ").concat(e.tokenUsage.outputTokens.toLocaleString()),children:["↑",i(e.tokenUsage.inputTokens)," ","↓",i(e.tokenUsage.outputTokens)]})]}),(0,o.jsx)("div",{style:{fontSize:10,fontFamily:"monospace",color:"rgba(255, 255, 255, 0.25)",marginTop:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.agentNames.join(" / ")}),e.ratings&&Object.keys(e.ratings).length>0&&(0,o.jsx)("div",{style:{display:"flex",gap:8,marginTop:4,flexWrap:"wrap"},children:Object.entries(e.ratings).map(e=>{let[t,n]=e,r=Math.min(5,Math.max(0,Math.round(n)));return(0,o.jsxs)("span",{style:{fontSize:9,fontFamily:"monospace",color:"rgba(232, 176, 64, 0.7)"},children:[t.slice(0,4)," ","★".repeat(r),"☆".repeat(5-r)]},t)})})]}),s(e.preview)&&(0,o.jsx)("button",{onClick:t=>{t.stopPropagation(),y(e.preview,e.ratings)},style:{background:"rgba(72, 204, 106, 0.1)",border:"1px solid rgba(72, 204, 106, 0.25)",color:"#48cc6a",padding:"5px 12px",cursor:"pointer",fontSize:10,letterSpacing:"0.04em",flexShrink:0,marginTop:2},onMouseEnter:e=>{e.currentTarget.style.background="rgba(72, 204, 106, 0.2)"},onMouseLeave:e=>{e.currentTarget.style.background="rgba(72, 204, 106, 0.1)"},children:"Preview"})]})},e.id))})})]})})}}}]);