bit-office 1.2.4 → 1.2.5

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 (38) hide show
  1. package/dist/index.js +412 -396
  2. package/dist/index.js.map +1 -1
  3. package/dist/web/404.html +2 -2
  4. package/dist/web/_next/static/chunks/262.71aab99cc60a53d6.js +1 -0
  5. package/dist/web/_next/static/chunks/29.3f310d0e1e39b284.js +1 -0
  6. package/dist/web/_next/static/chunks/337.37c047a79777052d.js +1 -0
  7. package/dist/web/_next/static/chunks/{368.17f62d3909ec67e9.js → 368.3f346c171a638292.js} +1 -1
  8. package/dist/web/_next/static/chunks/606.4e73b23e56d12bdb.js +1 -0
  9. package/dist/web/_next/static/chunks/729.826ca49d46677d86.js +1 -0
  10. package/dist/web/_next/static/chunks/853.3ac80a6e5f45c12f.js +1 -0
  11. package/dist/web/_next/static/chunks/895.ba8d7f302ee0082f.js +1 -0
  12. package/dist/web/_next/static/chunks/999.bd3853e8dc65d694.js +1 -0
  13. package/dist/web/_next/static/chunks/app/office/page-6eabeff9ea24f0b8.js +1 -0
  14. package/dist/web/_next/static/chunks/app/pair/{page-67f86e4adcdf34ea.js → page-ec98149563ab8ea8.js} +1 -1
  15. package/dist/web/_next/static/chunks/{webpack-dcd361e024700880.js → webpack-1cd76fe3b13e8777.js} +1 -1
  16. package/dist/web/_next/static/css/620fea4ddbe8c89c.css +3 -0
  17. package/dist/web/index.html +2 -2
  18. package/dist/web/index.txt +2 -2
  19. package/dist/web/join.html +2 -2
  20. package/dist/web/join.txt +2 -2
  21. package/dist/web/office.html +3 -3
  22. package/dist/web/office.txt +3 -3
  23. package/dist/web/pair.html +2 -2
  24. package/dist/web/pair.txt +3 -3
  25. package/dist/web/sw.js +1 -1
  26. package/package.json +1 -1
  27. package/dist/web/_next/static/chunks/262.c930af897fc1ae41.js +0 -1
  28. package/dist/web/_next/static/chunks/29.5e4e3e30b02d00ad.js +0 -1
  29. package/dist/web/_next/static/chunks/337.98f156e48f146063.js +0 -1
  30. package/dist/web/_next/static/chunks/606.64076fb5c9a76eb8.js +0 -1
  31. package/dist/web/_next/static/chunks/729.f8f9847d2d765724.js +0 -1
  32. package/dist/web/_next/static/chunks/853.0c23af6158d43fda.js +0 -1
  33. package/dist/web/_next/static/chunks/895.b20c839956b4d7fa.js +0 -1
  34. package/dist/web/_next/static/chunks/999.59e64ccb62c7e043.js +0 -1
  35. package/dist/web/_next/static/chunks/app/office/page-21b29ce2f5b4492f.js +0 -1
  36. package/dist/web/_next/static/css/c62e12508f039ceb.css +0 -3
  37. /package/dist/web/_next/static/{a77xldHdc_0TOGcqwFr4L → 5vHCPBj0Ikhb0tVooPDGd}/_buildManifest.js +0 -0
  38. /package/dist/web/_next/static/{a77xldHdc_0TOGcqwFr4L → 5vHCPBj0Ikhb0tVooPDGd}/_ssgManifest.js +0 -0
@@ -3,7 +3,7 @@
3
3
  3:I[9653,[],""]
4
4
  4:I[1329,[],""]
5
5
  9:I[5719,[],""]
6
- :HL["/_next/static/css/c62e12508f039ceb.css","style"]
6
+ :HL["/_next/static/css/620fea4ddbe8c89c.css","style"]
7
7
  5:Tb25,
8
8
  (function() {
9
9
  var attached = new WeakSet();
@@ -58,9 +58,9 @@
58
58
  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', scan);
59
59
  else scan();
60
60
  })();
61
- 0:{"P":null,"b":"a77xldHdc_0TOGcqwFr4L","p":"","c":["","office"],"i":false,"f":[[["",{"children":["office",{"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&family=Press+Start+2P&display=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 && 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":["office","$L6",{"children":["__PAGE__","$L7",{},null,false]},null,false]},null,false],"$L8",false]],"m":"$undefined","G":["$9",[]],"s":false,"S":true}
61
+ 0:{"P":null,"b":"5vHCPBj0Ikhb0tVooPDGd","p":"","c":["","office"],"i":false,"f":[[["",{"children":["office",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/620fea4ddbe8c89c.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&family=Press+Start+2P&display=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 && 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":["office","$L6",{"children":["__PAGE__","$L7",{},null,false]},null,false]},null,false],"$L8",false]],"m":"$undefined","G":["$9",[]],"s":false,"S":true}
62
62
  a:I[7868,[],"ClientPageRoot"]
63
- b:I[693,["276","static/chunks/276-7203e26618727a54.js","689","static/chunks/689-57cf7e431c713dac.js","823","static/chunks/app/office/page-21b29ce2f5b4492f.js"],"default"]
63
+ b:I[693,["276","static/chunks/276-7203e26618727a54.js","689","static/chunks/689-57cf7e431c713dac.js","823","static/chunks/app/office/page-6eabeff9ea24f0b8.js"],"default"]
64
64
  e:I[9096,[],"OutletBoundary"]
65
65
  10:I[913,[],"AsyncMetadataOutlet"]
66
66
  12:I[9096,[],"ViewportBoundary"]
@@ -1,4 +1,4 @@
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><script src="/_next/static/chunks/app/pair/page-67f86e4adcdf34ea.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>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&amp;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:#16122a;color:#eddcb8;font-family:system-ui, sans-serif"><div hidden=""><!--$--><!--/$--></div><div style="display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:24px"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><style>@keyframes spin { to { transform: rotate(360deg); } }</style></div><!--$--><!--/$--><script>
1
+ <!DOCTYPE html><!--5vHCPBj0Ikhb0tVooPDGd--><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/620fea4ddbe8c89c.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-1cd76fe3b13e8777.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><script src="/_next/static/chunks/app/pair/page-ec98149563ab8ea8.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>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&amp;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:#16122a;color:#eddcb8;font-family:system-ui, sans-serif"><div hidden=""><!--$--><!--/$--></div><div style="display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:24px"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><style>@keyframes spin { to { transform: rotate(360deg); } }</style></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-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\":[\"\",\"pair\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"pair\",{\"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\":[\"pair\",\"$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[7868,[],\"ClientPageRoot\"]\nb:I[9600,[\"863\",\"static/chunks/app/pair/page-67f86e4adcdf34ea.js\"],\"default\"]\ne:I[9096,[],\"OutletBoundary\"]\n10:I[913,[],\"AsyncMetadataOutlet\"]\n12:I[9096,[],\"ViewportBoundary\"]\n14:I[9096,[],\"MetadataBoundary\"]\n15:\"$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\":[[\"$\",\"$La\",null,{\"Component\":\"$b\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@c\",\"$@d\"]}],null,[\"$\",\"$Le\",null,{\"children\":[\"$Lf\",[\"$\",\"$L10\",null,{\"promise\":\"$@11\"}]]}]]}]\n8:[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L12\",null,{\"children\":\"$L13\"}],null],[\"$\",\"$L14\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$15\",null,{\"fallback\":null,\"children\":\"$L16\"}]}]}]]}]\n"])</script><script>self.__next_f.push([1,"c:{}\nd:\"$7:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"13:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nf:null\n"])</script><script>self.__next_f.push([1,"11:{\"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,"16:\"$11:metadata\"\n"])</script></body></html>
65
+ </script><script src="/_next/static/chunks/webpack-1cd76fe3b13e8777.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/620fea4ddbe8c89c.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\":\"5vHCPBj0Ikhb0tVooPDGd\",\"p\":\"\",\"c\":[\"\",\"pair\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"pair\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/620fea4ddbe8c89c.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\":[\"pair\",\"$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[7868,[],\"ClientPageRoot\"]\nb:I[9600,[\"863\",\"static/chunks/app/pair/page-ec98149563ab8ea8.js\"],\"default\"]\ne:I[9096,[],\"OutletBoundary\"]\n10:I[913,[],\"AsyncMetadataOutlet\"]\n12:I[9096,[],\"ViewportBoundary\"]\n14:I[9096,[],\"MetadataBoundary\"]\n15:\"$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\":[[\"$\",\"$La\",null,{\"Component\":\"$b\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@c\",\"$@d\"]}],null,[\"$\",\"$Le\",null,{\"children\":[\"$Lf\",[\"$\",\"$L10\",null,{\"promise\":\"$@11\"}]]}]]}]\n8:[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L12\",null,{\"children\":\"$L13\"}],null],[\"$\",\"$L14\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$15\",null,{\"fallback\":null,\"children\":\"$L16\"}]}]}]]}]\n"])</script><script>self.__next_f.push([1,"c:{}\nd:\"$7:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"13:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nf:null\n"])</script><script>self.__next_f.push([1,"11:{\"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,"16:\"$11:metadata\"\n"])</script></body></html>
package/dist/web/pair.txt CHANGED
@@ -3,7 +3,7 @@
3
3
  3:I[9653,[],""]
4
4
  4:I[1329,[],""]
5
5
  9:I[5719,[],""]
6
- :HL["/_next/static/css/c62e12508f039ceb.css","style"]
6
+ :HL["/_next/static/css/620fea4ddbe8c89c.css","style"]
7
7
  5:Tb25,
8
8
  (function() {
9
9
  var attached = new WeakSet();
@@ -58,9 +58,9 @@
58
58
  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', scan);
59
59
  else scan();
60
60
  })();
61
- 0:{"P":null,"b":"a77xldHdc_0TOGcqwFr4L","p":"","c":["","pair"],"i":false,"f":[[["",{"children":["pair",{"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&family=Press+Start+2P&display=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 && 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":["pair","$L6",{"children":["__PAGE__","$L7",{},null,false]},null,false]},null,false],"$L8",false]],"m":"$undefined","G":["$9",[]],"s":false,"S":true}
61
+ 0:{"P":null,"b":"5vHCPBj0Ikhb0tVooPDGd","p":"","c":["","pair"],"i":false,"f":[[["",{"children":["pair",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/620fea4ddbe8c89c.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&family=Press+Start+2P&display=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 && 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":["pair","$L6",{"children":["__PAGE__","$L7",{},null,false]},null,false]},null,false],"$L8",false]],"m":"$undefined","G":["$9",[]],"s":false,"S":true}
62
62
  a:I[7868,[],"ClientPageRoot"]
63
- b:I[9600,["863","static/chunks/app/pair/page-67f86e4adcdf34ea.js"],"default"]
63
+ b:I[9600,["863","static/chunks/app/pair/page-ec98149563ab8ea8.js"],"default"]
64
64
  e:I[9096,[],"OutletBoundary"]
65
65
  10:I[913,[],"AsyncMetadataOutlet"]
66
66
  12:I[9096,[],"ViewportBoundary"]
package/dist/web/sw.js CHANGED
@@ -1 +1 @@
1
- if(!self.define){let e,c={};const i=(i,s)=>(i=new URL(i+".js",s).href,c[i]||new Promise(c=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=c,document.head.appendChild(e)}else e=i,importScripts(i),c()}).then(()=>{let e=c[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(s,a)=>{const f=e||("document"in self?document.currentScript.src:"")||location.href;if(c[f])return;let n={};const t=e=>i(e,f),r={module:{uri:f},exports:n,require:t};c[f]=Promise.all(s.map(e=>r[e]||t(e))).then(e=>(a(...e),n))}}define(["./workbox-a92c5218"],function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/Office Tileset/LICENSE.txt",revision:"e0006f5d6c9512f1f0e903e2de02a79a"},{url:"/Office Tileset/Office Designs/Office Level 1.png",revision:"2df0791e8ced58b7203fbbb90b4fbab4"},{url:"/Office Tileset/Office Designs/Office Level 2.png",revision:"0bc5ecef2fa29bd944f4b633a226a151"},{url:"/Office Tileset/Office Designs/Office Level 3.5.png",revision:"1b574323b372741f9e79bbe7d2fe42bc"},{url:"/Office Tileset/Office Designs/Office Level 3.jpeg",revision:"c3870616be6376a136d8112a1207eec7"},{url:"/Office Tileset/Office Designs/Office Level 3.png",revision:"01b9822957a98b3ddc26c753ab9a8137"},{url:"/Office Tileset/Office Designs/Office Level 4.png",revision:"4da5af3d7a65c3ebb54c37f9a475475a"},{url:"/Office Tileset/Office Palette/Office Palette Large.png",revision:"1df5f24c110f0b6eae0bcd4419270eef"},{url:"/Office Tileset/Office Palette/Office Palette Medium.png",revision:"fca90dd2244f726cb970f8a3361f16e7"},{url:"/Office Tileset/Office Palette/Office Palette Small.png",revision:"300a41219e96e86bca5614a4983ddc95"},{url:"/Office Tileset/Office Tileset All 16x16 no shadow.png",revision:"8972409c007b5da2025bd4782757ab7c"},{url:"/Office Tileset/Office Tileset All 16x16.png",revision:"a55f20978ab44b0ed7c0c5b76eecf0d5"},{url:"/Office Tileset/Office Tileset All 32x32 no shadow.png",revision:"371fd2d0d9466087a1923695cf690c76"},{url:"/Office Tileset/Office Tileset All 32x32.png",revision:"7da73ddacacce9c95dc70a35096a50b7"},{url:"/Office Tileset/Office Tileset All 48x48 no shadow.png",revision:"435a6c6101c70d223af2206f19ea8e69"},{url:"/Office Tileset/Office Tileset All 48x48.png",revision:"668ce69f1267755d1ed9174afacc7bfc"},{url:"/Office Tileset/Office VX Ace/A2 Office Floors.png",revision:"4c74a49895db00fdb9d5ef4f9863f77a"},{url:"/Office Tileset/Office VX Ace/A4 Office Walls.png",revision:"1c9701d762f9f6b9406a7d2ad8369721"},{url:"/Office Tileset/Office VX Ace/A5 Office Floors & Walls.png",revision:"fd1e3583968a840ce5ddcd69b1b1fcf6"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 1 No Shadows.png",revision:"23fc1254a128d86b6e69315896cc81ea"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 1.png",revision:"6d7da953c1ed326f0518022576828b51"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 2 No Shadows.png",revision:"7dc50bb73391f518f136e545d7ee81ac"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 2.png",revision:"8a07e0e5e3d0685ebb252af81506b54f"},{url:"/Office Tileset/Office VX Ace/README.txt",revision:"c08786e76eb104580a7ed6839a0d6640"},{url:"/_next/static/a77xldHdc_0TOGcqwFr4L/_buildManifest.js",revision:"a343cbeac8daa802ea382dfd6b601938"},{url:"/_next/static/a77xldHdc_0TOGcqwFr4L/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/149.4dcc265d90664a46.js",revision:"4dcc265d90664a46"},{url:"/_next/static/chunks/262.c930af897fc1ae41.js",revision:"c930af897fc1ae41"},{url:"/_next/static/chunks/27.d81804d60bc0f4f0.js",revision:"d81804d60bc0f4f0"},{url:"/_next/static/chunks/276-7203e26618727a54.js",revision:"7203e26618727a54"},{url:"/_next/static/chunks/29.5e4e3e30b02d00ad.js",revision:"5e4e3e30b02d00ad"},{url:"/_next/static/chunks/290.247befe60cb2d28d.js",revision:"247befe60cb2d28d"},{url:"/_next/static/chunks/293.e3a551b691c61d55.js",revision:"e3a551b691c61d55"},{url:"/_next/static/chunks/297.2c14111a5babdc3f.js",revision:"2c14111a5babdc3f"},{url:"/_next/static/chunks/325ca9c7.f84e7e4973790fdf.js",revision:"f84e7e4973790fdf"},{url:"/_next/static/chunks/336.8eafff71d277c552.js",revision:"8eafff71d277c552"},{url:"/_next/static/chunks/337.98f156e48f146063.js",revision:"98f156e48f146063"},{url:"/_next/static/chunks/363.e8a82fede2ce0268.js",revision:"e8a82fede2ce0268"},{url:"/_next/static/chunks/368.17f62d3909ec67e9.js",revision:"17f62d3909ec67e9"},{url:"/_next/static/chunks/388-5a04e93e2531cfb7.js",revision:"5a04e93e2531cfb7"},{url:"/_next/static/chunks/484.9bea1cffd0a0c25d.js",revision:"9bea1cffd0a0c25d"},{url:"/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js",revision:"e6a0fd3b5c397505"},{url:"/_next/static/chunks/606.64076fb5c9a76eb8.js",revision:"64076fb5c9a76eb8"},{url:"/_next/static/chunks/611.a9c4df24fea6fe06.js",revision:"a9c4df24fea6fe06"},{url:"/_next/static/chunks/689-57cf7e431c713dac.js",revision:"57cf7e431c713dac"},{url:"/_next/static/chunks/712.fe038ea6687b84cf.js",revision:"fe038ea6687b84cf"},{url:"/_next/static/chunks/729.f8f9847d2d765724.js",revision:"f8f9847d2d765724"},{url:"/_next/static/chunks/73.84b7325688d17248.js",revision:"84b7325688d17248"},{url:"/_next/static/chunks/757.704acf1f09ac05cb.js",revision:"704acf1f09ac05cb"},{url:"/_next/static/chunks/767-52fa35b605461336.js",revision:"52fa35b605461336"},{url:"/_next/static/chunks/794.4c6f7ebfcb65fff9.js",revision:"4c6f7ebfcb65fff9"},{url:"/_next/static/chunks/810.39f7a3b8c687a8e4.js",revision:"39f7a3b8c687a8e4"},{url:"/_next/static/chunks/849.04bc4b508495ab91.js",revision:"04bc4b508495ab91"},{url:"/_next/static/chunks/853.0c23af6158d43fda.js",revision:"0c23af6158d43fda"},{url:"/_next/static/chunks/88.219a7fc3735b6d2b.js",revision:"219a7fc3735b6d2b"},{url:"/_next/static/chunks/880.0799bc27d833d679.js",revision:"0799bc27d833d679"},{url:"/_next/static/chunks/883.9832cb2358508994.js",revision:"9832cb2358508994"},{url:"/_next/static/chunks/895.b20c839956b4d7fa.js",revision:"b20c839956b4d7fa"},{url:"/_next/static/chunks/913.d5d32ae6956a650a.js",revision:"d5d32ae6956a650a"},{url:"/_next/static/chunks/955.8d32a077607d5dd4.js",revision:"8d32a077607d5dd4"},{url:"/_next/static/chunks/999.59e64ccb62c7e043.js",revision:"59e64ccb62c7e043"},{url:"/_next/static/chunks/app/_not-found/page-fc90e6f750996b0a.js",revision:"fc90e6f750996b0a"},{url:"/_next/static/chunks/app/join/page-98fb24f2e87aa173.js",revision:"98fb24f2e87aa173"},{url:"/_next/static/chunks/app/layout-a57e585fdbd6e50f.js",revision:"a57e585fdbd6e50f"},{url:"/_next/static/chunks/app/not-found-fc90e6f750996b0a.js",revision:"fc90e6f750996b0a"},{url:"/_next/static/chunks/app/office/page-21b29ce2f5b4492f.js",revision:"21b29ce2f5b4492f"},{url:"/_next/static/chunks/app/page-9734dfda2b306034.js",revision:"9734dfda2b306034"},{url:"/_next/static/chunks/app/pair/page-67f86e4adcdf34ea.js",revision:"67f86e4adcdf34ea"},{url:"/_next/static/chunks/framework-bec628f2b7cc8f6d.js",revision:"bec628f2b7cc8f6d"},{url:"/_next/static/chunks/main-314e1c8a2c4316bd.js",revision:"314e1c8a2c4316bd"},{url:"/_next/static/chunks/main-app-baad86574bd560af.js",revision:"baad86574bd560af"},{url:"/_next/static/chunks/pages/_app-f4d560c9dbc22e4e.js",revision:"f4d560c9dbc22e4e"},{url:"/_next/static/chunks/pages/_error-492bd157be5771d5.js",revision:"492bd157be5771d5"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-dcd361e024700880.js",revision:"dcd361e024700880"},{url:"/_next/static/css/c62e12508f039ceb.css",revision:"c62e12508f039ceb"},{url:"/assets/characters/char_0.png",revision:"d4dd5678a4144876fac52c57cc2f6c9f"},{url:"/assets/characters/char_1.png",revision:"fc1cca5f7207bb2cd9020b90c2489799"},{url:"/assets/characters/char_2.png",revision:"18d34469ae20cfc42490c7f10d877290"},{url:"/assets/characters/char_3.png",revision:"faaa486a85c835a2497446ae217c0d6e"},{url:"/assets/characters/char_4.png",revision:"ff2eaeec286548199300a70be71c1b9c"},{url:"/assets/characters/char_5.png",revision:"1e7dcef45414d2d20ee13d4323efc830"},{url:"/assets/walls.png",revision:"f7a10cb9381a8acb297b0cfc35e8d80a"},{url:"/icons/icon-192.png",revision:"9ebb6e37caff08f9170961db00132344"},{url:"/icons/icon-512.png",revision:"9ebb6e37caff08f9170961db00132344"},{url:"/manifest.json",revision:"3afac2b86eb2bf85e224e1c148b17ddd"},{url:"/offices/cute-whimsical.jpeg",revision:"bd5aef612d3eaccf9a56ae5fe6d92d15"},{url:"/offices/cute-whimsical.zip",revision:"8b832808073e977fa6be4f5e1dfe0bc4"},{url:"/offices/cyberpunk.jpeg",revision:"015dc09cb4ccf2f5b437100f8172b90e"},{url:"/offices/cyberpunk.zip",revision:"9e43bd8a57c346ffc8444c5b25d5cd1d"},{url:"/offices/darkLegend.jpeg",revision:"4623c80d3d7d8386a1c983b9a0983dc0"},{url:"/offices/darkLegend.zip",revision:"30ab11b73df1b738c1520c72e72dafa3"},{url:"/offices/easternFantasy.jpeg",revision:"82050ce523c43c280550ebf7c1adaa84"},{url:"/offices/easternFantasy.zip",revision:"d6bc14b18f78eb8f80d6000c3e52a171"},{url:"/offices/gothic.jpeg",revision:"5b03aa38ac3429ac35de5c2cdfd52765"},{url:"/offices/gothic.zip",revision:"e222ff3e8877f0b232d6c1243d16a6c4"},{url:"/offices/historical.jpeg",revision:"ecb89b27f90a0fcc6c7cc06a0651f27b"},{url:"/offices/historical.zip",revision:"f76a9ea83efe6d3de09b2e48b5c2ed36"},{url:"/offices/index.json",revision:"d408fc892bb16211f841a1a3f4d4a55e"},{url:"/offices/modern-cozy.jpeg",revision:"370902a86d461054ceba702cd9a49d1b"},{url:"/offices/modern-cozy.jpg",revision:"372b770f8d52e81c05af70f1886baf1c"},{url:"/offices/modern-cozy.zip",revision:"1b98f6161ced28ab74385f67b9119da8"},{url:"/offices/mythological.jpeg",revision:"fb88d4eeff14055aa38ce82f097cb842"},{url:"/offices/mythological.zip",revision:"d8c7dc5d8c14af54665f0f3d6b0b89f1"},{url:"/offices/nostalgic.jpeg",revision:"76abdfee4f527bdd7c0ea66e8f2f7a30"},{url:"/offices/nostalgic.zip",revision:"373afa29d2c9ee66790908d0f29b5003"},{url:"/offices/postApocalyptic.jpeg",revision:"21e952cdc79f5b9f9514eaffd2e3c6b1"},{url:"/offices/postApocalyptic.zip",revision:"c2357fb513c072f412089b279464e7ab"},{url:"/offices/sifi.jpeg",revision:"ff5d3d4c0b4f67911548d48324710c13"},{url:"/offices/sifi.zip",revision:"6d549aa56edf444f18ed0f1773379a71"},{url:"/offices/westernFantasy.jpeg",revision:"af99e679310db31dac7cfa5b14f61dd2"},{url:"/offices/westernFantasy.zip",revision:"cb6c7bd41e0fb6a72e0d8cc875b669f4"},{url:"/pixel-agents-layout.json",revision:"498f7927cc4a4a1b499b8e9486c50b30"}],{ignoreURLParametersMatching:[/^utm_/,/^fbclid$/]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:function(e){var c=e.response;return _async_to_generator(function(){return _ts_generator(this,function(e){return[2,c&&"opaqueredirect"===c.type?new Response(c.body,{status:200,statusText:"OK",headers:c.headers}):c]})})()}}]}),"GET"),e.registerRoute(function(e){var c=e.url;return/^\/(preview-static|preview-app)(\/.*)?$/.test(c.pathname)},new e.NetworkOnly,"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(/\/_next\/static.+\.js$/i,new e.CacheFirst({cacheName:"next-static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4|webm)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:48,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var c=e.sameOrigin,i=e.url.pathname;return!(!c||i.startsWith("/api/auth/callback")||!i.startsWith("/api/"))},new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var c=e.request,i=e.url.pathname,s=e.sameOrigin;return"1"===c.headers.get("RSC")&&"1"===c.headers.get("Next-Router-Prefetch")&&s&&!i.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages-rsc-prefetch",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var c=e.request,i=e.url.pathname,s=e.sameOrigin;return"1"===c.headers.get("RSC")&&s&&!i.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages-rsc",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var c=e.url.pathname;return e.sameOrigin&&!c.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){return!e.sameOrigin},new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")});
1
+ if(!self.define){let e,c={};const i=(i,s)=>(i=new URL(i+".js",s).href,c[i]||new Promise(c=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=c,document.head.appendChild(e)}else e=i,importScripts(i),c()}).then(()=>{let e=c[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(s,a)=>{const f=e||("document"in self?document.currentScript.src:"")||location.href;if(c[f])return;let n={};const t=e=>i(e,f),r={module:{uri:f},exports:n,require:t};c[f]=Promise.all(s.map(e=>r[e]||t(e))).then(e=>(a(...e),n))}}define(["./workbox-a92c5218"],function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/Office Tileset/LICENSE.txt",revision:"e0006f5d6c9512f1f0e903e2de02a79a"},{url:"/Office Tileset/Office Designs/Office Level 1.png",revision:"2df0791e8ced58b7203fbbb90b4fbab4"},{url:"/Office Tileset/Office Designs/Office Level 2.png",revision:"0bc5ecef2fa29bd944f4b633a226a151"},{url:"/Office Tileset/Office Designs/Office Level 3.5.png",revision:"1b574323b372741f9e79bbe7d2fe42bc"},{url:"/Office Tileset/Office Designs/Office Level 3.jpeg",revision:"c3870616be6376a136d8112a1207eec7"},{url:"/Office Tileset/Office Designs/Office Level 3.png",revision:"01b9822957a98b3ddc26c753ab9a8137"},{url:"/Office Tileset/Office Designs/Office Level 4.png",revision:"4da5af3d7a65c3ebb54c37f9a475475a"},{url:"/Office Tileset/Office Palette/Office Palette Large.png",revision:"1df5f24c110f0b6eae0bcd4419270eef"},{url:"/Office Tileset/Office Palette/Office Palette Medium.png",revision:"fca90dd2244f726cb970f8a3361f16e7"},{url:"/Office Tileset/Office Palette/Office Palette Small.png",revision:"300a41219e96e86bca5614a4983ddc95"},{url:"/Office Tileset/Office Tileset All 16x16 no shadow.png",revision:"8972409c007b5da2025bd4782757ab7c"},{url:"/Office Tileset/Office Tileset All 16x16.png",revision:"a55f20978ab44b0ed7c0c5b76eecf0d5"},{url:"/Office Tileset/Office Tileset All 32x32 no shadow.png",revision:"371fd2d0d9466087a1923695cf690c76"},{url:"/Office Tileset/Office Tileset All 32x32.png",revision:"7da73ddacacce9c95dc70a35096a50b7"},{url:"/Office Tileset/Office Tileset All 48x48 no shadow.png",revision:"435a6c6101c70d223af2206f19ea8e69"},{url:"/Office Tileset/Office Tileset All 48x48.png",revision:"668ce69f1267755d1ed9174afacc7bfc"},{url:"/Office Tileset/Office VX Ace/A2 Office Floors.png",revision:"4c74a49895db00fdb9d5ef4f9863f77a"},{url:"/Office Tileset/Office VX Ace/A4 Office Walls.png",revision:"1c9701d762f9f6b9406a7d2ad8369721"},{url:"/Office Tileset/Office VX Ace/A5 Office Floors & Walls.png",revision:"fd1e3583968a840ce5ddcd69b1b1fcf6"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 1 No Shadows.png",revision:"23fc1254a128d86b6e69315896cc81ea"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 1.png",revision:"6d7da953c1ed326f0518022576828b51"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 2 No Shadows.png",revision:"7dc50bb73391f518f136e545d7ee81ac"},{url:"/Office Tileset/Office VX Ace/B-C-D-E Office 2.png",revision:"8a07e0e5e3d0685ebb252af81506b54f"},{url:"/Office Tileset/Office VX Ace/README.txt",revision:"c08786e76eb104580a7ed6839a0d6640"},{url:"/_next/static/5vHCPBj0Ikhb0tVooPDGd/_buildManifest.js",revision:"a343cbeac8daa802ea382dfd6b601938"},{url:"/_next/static/5vHCPBj0Ikhb0tVooPDGd/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/149.4dcc265d90664a46.js",revision:"4dcc265d90664a46"},{url:"/_next/static/chunks/262.71aab99cc60a53d6.js",revision:"71aab99cc60a53d6"},{url:"/_next/static/chunks/27.d81804d60bc0f4f0.js",revision:"d81804d60bc0f4f0"},{url:"/_next/static/chunks/276-7203e26618727a54.js",revision:"7203e26618727a54"},{url:"/_next/static/chunks/29.3f310d0e1e39b284.js",revision:"3f310d0e1e39b284"},{url:"/_next/static/chunks/290.247befe60cb2d28d.js",revision:"247befe60cb2d28d"},{url:"/_next/static/chunks/293.e3a551b691c61d55.js",revision:"e3a551b691c61d55"},{url:"/_next/static/chunks/297.2c14111a5babdc3f.js",revision:"2c14111a5babdc3f"},{url:"/_next/static/chunks/325ca9c7.f84e7e4973790fdf.js",revision:"f84e7e4973790fdf"},{url:"/_next/static/chunks/336.8eafff71d277c552.js",revision:"8eafff71d277c552"},{url:"/_next/static/chunks/337.37c047a79777052d.js",revision:"37c047a79777052d"},{url:"/_next/static/chunks/363.e8a82fede2ce0268.js",revision:"e8a82fede2ce0268"},{url:"/_next/static/chunks/368.3f346c171a638292.js",revision:"3f346c171a638292"},{url:"/_next/static/chunks/388-5a04e93e2531cfb7.js",revision:"5a04e93e2531cfb7"},{url:"/_next/static/chunks/484.9bea1cffd0a0c25d.js",revision:"9bea1cffd0a0c25d"},{url:"/_next/static/chunks/4d67e943-e6a0fd3b5c397505.js",revision:"e6a0fd3b5c397505"},{url:"/_next/static/chunks/606.4e73b23e56d12bdb.js",revision:"4e73b23e56d12bdb"},{url:"/_next/static/chunks/611.a9c4df24fea6fe06.js",revision:"a9c4df24fea6fe06"},{url:"/_next/static/chunks/689-57cf7e431c713dac.js",revision:"57cf7e431c713dac"},{url:"/_next/static/chunks/712.fe038ea6687b84cf.js",revision:"fe038ea6687b84cf"},{url:"/_next/static/chunks/729.826ca49d46677d86.js",revision:"826ca49d46677d86"},{url:"/_next/static/chunks/73.84b7325688d17248.js",revision:"84b7325688d17248"},{url:"/_next/static/chunks/757.704acf1f09ac05cb.js",revision:"704acf1f09ac05cb"},{url:"/_next/static/chunks/767-52fa35b605461336.js",revision:"52fa35b605461336"},{url:"/_next/static/chunks/794.4c6f7ebfcb65fff9.js",revision:"4c6f7ebfcb65fff9"},{url:"/_next/static/chunks/810.39f7a3b8c687a8e4.js",revision:"39f7a3b8c687a8e4"},{url:"/_next/static/chunks/849.04bc4b508495ab91.js",revision:"04bc4b508495ab91"},{url:"/_next/static/chunks/853.3ac80a6e5f45c12f.js",revision:"3ac80a6e5f45c12f"},{url:"/_next/static/chunks/88.219a7fc3735b6d2b.js",revision:"219a7fc3735b6d2b"},{url:"/_next/static/chunks/880.0799bc27d833d679.js",revision:"0799bc27d833d679"},{url:"/_next/static/chunks/883.9832cb2358508994.js",revision:"9832cb2358508994"},{url:"/_next/static/chunks/895.ba8d7f302ee0082f.js",revision:"ba8d7f302ee0082f"},{url:"/_next/static/chunks/913.d5d32ae6956a650a.js",revision:"d5d32ae6956a650a"},{url:"/_next/static/chunks/955.8d32a077607d5dd4.js",revision:"8d32a077607d5dd4"},{url:"/_next/static/chunks/999.bd3853e8dc65d694.js",revision:"bd3853e8dc65d694"},{url:"/_next/static/chunks/app/_not-found/page-fc90e6f750996b0a.js",revision:"fc90e6f750996b0a"},{url:"/_next/static/chunks/app/join/page-98fb24f2e87aa173.js",revision:"98fb24f2e87aa173"},{url:"/_next/static/chunks/app/layout-a57e585fdbd6e50f.js",revision:"a57e585fdbd6e50f"},{url:"/_next/static/chunks/app/not-found-fc90e6f750996b0a.js",revision:"fc90e6f750996b0a"},{url:"/_next/static/chunks/app/office/page-6eabeff9ea24f0b8.js",revision:"6eabeff9ea24f0b8"},{url:"/_next/static/chunks/app/page-9734dfda2b306034.js",revision:"9734dfda2b306034"},{url:"/_next/static/chunks/app/pair/page-ec98149563ab8ea8.js",revision:"ec98149563ab8ea8"},{url:"/_next/static/chunks/framework-bec628f2b7cc8f6d.js",revision:"bec628f2b7cc8f6d"},{url:"/_next/static/chunks/main-314e1c8a2c4316bd.js",revision:"314e1c8a2c4316bd"},{url:"/_next/static/chunks/main-app-baad86574bd560af.js",revision:"baad86574bd560af"},{url:"/_next/static/chunks/pages/_app-f4d560c9dbc22e4e.js",revision:"f4d560c9dbc22e4e"},{url:"/_next/static/chunks/pages/_error-492bd157be5771d5.js",revision:"492bd157be5771d5"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-1cd76fe3b13e8777.js",revision:"1cd76fe3b13e8777"},{url:"/_next/static/css/620fea4ddbe8c89c.css",revision:"620fea4ddbe8c89c"},{url:"/assets/characters/char_0.png",revision:"d4dd5678a4144876fac52c57cc2f6c9f"},{url:"/assets/characters/char_1.png",revision:"fc1cca5f7207bb2cd9020b90c2489799"},{url:"/assets/characters/char_2.png",revision:"18d34469ae20cfc42490c7f10d877290"},{url:"/assets/characters/char_3.png",revision:"faaa486a85c835a2497446ae217c0d6e"},{url:"/assets/characters/char_4.png",revision:"ff2eaeec286548199300a70be71c1b9c"},{url:"/assets/characters/char_5.png",revision:"1e7dcef45414d2d20ee13d4323efc830"},{url:"/assets/walls.png",revision:"f7a10cb9381a8acb297b0cfc35e8d80a"},{url:"/icons/icon-192.png",revision:"9ebb6e37caff08f9170961db00132344"},{url:"/icons/icon-512.png",revision:"9ebb6e37caff08f9170961db00132344"},{url:"/manifest.json",revision:"3afac2b86eb2bf85e224e1c148b17ddd"},{url:"/offices/cute-whimsical.jpeg",revision:"bd5aef612d3eaccf9a56ae5fe6d92d15"},{url:"/offices/cute-whimsical.zip",revision:"8b832808073e977fa6be4f5e1dfe0bc4"},{url:"/offices/cyberpunk.jpeg",revision:"015dc09cb4ccf2f5b437100f8172b90e"},{url:"/offices/cyberpunk.zip",revision:"9e43bd8a57c346ffc8444c5b25d5cd1d"},{url:"/offices/darkLegend.jpeg",revision:"4623c80d3d7d8386a1c983b9a0983dc0"},{url:"/offices/darkLegend.zip",revision:"30ab11b73df1b738c1520c72e72dafa3"},{url:"/offices/easternFantasy.jpeg",revision:"82050ce523c43c280550ebf7c1adaa84"},{url:"/offices/easternFantasy.zip",revision:"d6bc14b18f78eb8f80d6000c3e52a171"},{url:"/offices/gothic.jpeg",revision:"5b03aa38ac3429ac35de5c2cdfd52765"},{url:"/offices/gothic.zip",revision:"e222ff3e8877f0b232d6c1243d16a6c4"},{url:"/offices/historical.jpeg",revision:"ecb89b27f90a0fcc6c7cc06a0651f27b"},{url:"/offices/historical.zip",revision:"f76a9ea83efe6d3de09b2e48b5c2ed36"},{url:"/offices/index.json",revision:"d408fc892bb16211f841a1a3f4d4a55e"},{url:"/offices/modern-cozy.jpeg",revision:"370902a86d461054ceba702cd9a49d1b"},{url:"/offices/modern-cozy.jpg",revision:"372b770f8d52e81c05af70f1886baf1c"},{url:"/offices/modern-cozy.zip",revision:"1b98f6161ced28ab74385f67b9119da8"},{url:"/offices/mythological.jpeg",revision:"fb88d4eeff14055aa38ce82f097cb842"},{url:"/offices/mythological.zip",revision:"d8c7dc5d8c14af54665f0f3d6b0b89f1"},{url:"/offices/nostalgic.jpeg",revision:"76abdfee4f527bdd7c0ea66e8f2f7a30"},{url:"/offices/nostalgic.zip",revision:"373afa29d2c9ee66790908d0f29b5003"},{url:"/offices/postApocalyptic.jpeg",revision:"21e952cdc79f5b9f9514eaffd2e3c6b1"},{url:"/offices/postApocalyptic.zip",revision:"c2357fb513c072f412089b279464e7ab"},{url:"/offices/sifi.jpeg",revision:"ff5d3d4c0b4f67911548d48324710c13"},{url:"/offices/sifi.zip",revision:"6d549aa56edf444f18ed0f1773379a71"},{url:"/offices/westernFantasy.jpeg",revision:"af99e679310db31dac7cfa5b14f61dd2"},{url:"/offices/westernFantasy.zip",revision:"cb6c7bd41e0fb6a72e0d8cc875b669f4"},{url:"/pixel-agents-layout.json",revision:"498f7927cc4a4a1b499b8e9486c50b30"}],{ignoreURLParametersMatching:[/^utm_/,/^fbclid$/]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:function(e){var c=e.response;return _async_to_generator(function(){return _ts_generator(this,function(e){return[2,c&&"opaqueredirect"===c.type?new Response(c.body,{status:200,statusText:"OK",headers:c.headers}):c]})})()}}]}),"GET"),e.registerRoute(function(e){var c=e.url;return/^\/(preview-static|preview-app)(\/.*)?$/.test(c.pathname)},new e.NetworkOnly,"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(/\/_next\/static.+\.js$/i,new e.CacheFirst({cacheName:"next-static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4|webm)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:48,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var c=e.sameOrigin,i=e.url.pathname;return!(!c||i.startsWith("/api/auth/callback")||!i.startsWith("/api/"))},new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var c=e.request,i=e.url.pathname,s=e.sameOrigin;return"1"===c.headers.get("RSC")&&"1"===c.headers.get("Next-Router-Prefetch")&&s&&!i.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages-rsc-prefetch",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var c=e.request,i=e.url.pathname,s=e.sameOrigin;return"1"===c.headers.get("RSC")&&s&&!i.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages-rsc",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){var c=e.url.pathname;return e.sameOrigin&&!c.startsWith("/api/")},new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(function(e){return!e.sameOrigin},new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bit-office",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Control AI agents from your phone — pixel office UI + real-time gateway",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73,262],{73:(e,t,o)=>{o.r(t),o.d(t,{default:()=>n});var i=o(206),r=o(1406),l=o(2988);let n=function(e){let{palette:t,zoom:o=3,ready:n}=e,a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{var e,i;let r=a.current;if(!r)return;let n=(0,l.Cr)(t);if(!n)return;let s=n.length,d=null!=(i=null==(e=n[0])?void 0:e.length)?i:0;r.width=d*o,r.height=s*o;let c=r.getContext("2d");if(c){c.clearRect(0,0,r.width,r.height);for(let e=0;e<s;e++)for(let t=0;t<d;t++){let i=n[e][t];i&&(c.fillStyle=i,c.fillRect(t*o,e*o,o,o))}}},[t,o,n]),(0,i.jsx)("canvas",{ref:a,style:{width:16*o,height:32*o,imageRendering:"pixelated"}})}},262:(e,t,o)=>{o.r(t),o.d(t,{default:()=>m});var i=o(206),r=o(1406),l=o(2001),n=o(5192),a=o(138),s=o(7821),d=o(4932),c=o(73),p=o(1310),f=o(370),x=o(9362);let m=function(e){let{agentDefs:t,onHire:o,onCreate:m,onEdit:g,onDelete:u,onClose:h,assetsReady:y,detectedBackends:v}=e,[b,j]=(0,r.useState)("claude"),[w,S]=(0,r.useState)(null),[k,C]=(0,r.useState)(""),z=t.filter(e=>e.isBuiltin&&"leader"!==e.teamRole),R=t.filter(e=>!e.isBuiltin&&"leader"!==e.teamRole);return(0,i.jsxs)(p.A,{open:!0,onClose:h,maxWidth:520,zIndex:100,title:"Hire Team",footer:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.A,{variant:"primary",onClick:m,style:{flex:1,padding:"9px"},children:"+ Create New"}),(0,i.jsx)(f.A,{variant:"dim",onClick:h,style:{padding:"9px 16px"},children:"Cancel"})]}),children:[(0,i.jsxs)("div",{style:{marginBottom:12},children:[(0,i.jsx)("div",{style:{fontSize:12,color:d.Y0,marginBottom:5,fontFamily:"var(--font-mono)",letterSpacing:"0.05em"},children:"AI BACKEND"}),(0,i.jsx)("div",{style:{display:"flex",gap:4},children:s.GN.map(e=>{let t=!v||0===v.length||v.includes(e.id),o=b===e.id;return(0,i.jsxs)("button",{onClick:()=>j(e.id),style:{flex:1,padding:"6px 4px",fontSize:13,fontWeight:600,border:o?"1px solid ".concat(d.DM):"1px solid ".concat(d.KD),backgroundColor:o?d.DM+"20":"transparent",color:o?d.DM:d.Y0,cursor:"pointer",fontFamily:"var(--font-mono)",opacity:t?1:.7},children:[(0,i.jsx)("span",{style:{display:"inline-block",width:5,height:5,borderRadius:"50%",backgroundColor:t?d.$C:d.O2,marginRight:4,verticalAlign:"middle"}}),e.name]},e.id)})})]}),(0,i.jsxs)("div",{style:{marginBottom:12},children:[(0,i.jsx)("div",{style:{fontSize:12,color:d.Y0,marginBottom:5,fontFamily:"var(--font-mono)",letterSpacing:"0.05em"},children:"WORKING DIRECTORY"}),(0,i.jsxs)("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[(0,i.jsx)(x.A,{type:"text",value:k,onChange:e=>C(e.target.value),placeholder:"Paste path or click Browse",style:{flex:1}}),(0,i.jsx)(f.A,{variant:"dim",onClick:()=>{let e=(0,l.Ak)(6);a.sX.set(e,e=>C(e)),(0,n.S8)({type:"PICK_FOLDER",requestId:e})},children:"Browse"})]}),(0,i.jsx)("div",{style:{fontSize:10,color:d.Y0,marginTop:3,fontFamily:"var(--font-mono)",opacity:.7},children:"Empty = default workspace"})]}),(0,i.jsx)("div",{style:{fontSize:12,color:d.Y0,marginBottom:5,fontFamily:"var(--font-mono)",letterSpacing:"0.05em"},children:"BUILT-IN AGENTS"}),(0,i.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:5,marginBottom:10},children:z.map(e=>(0,i.jsxs)("button",{onClick:()=>o(e,b,k||void 0),onMouseEnter:()=>S(e.id),onMouseLeave:()=>S(null),title:e.skills?"Skills: ".concat(e.skills):void 0,style:{display:"flex",flexDirection:"column",alignItems:"center",padding:"12px 6px 10px",position:"relative",border:"1px solid ".concat(d.KD),backgroundColor:"transparent",cursor:"pointer",textAlign:"center",transition:"border-color 0.15s"},children:[(0,i.jsx)(c.default,{palette:e.palette,zoom:2,ready:y}),(0,i.jsx)("div",{style:{fontSize:14,fontWeight:700,color:d.oj,marginTop:6,width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name}),(0,i.jsx)("div",{style:{fontSize:12,color:d.Y0,marginTop:2,width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.role}),w===e.id&&(0,i.jsx)("span",{onClick:t=>{t.stopPropagation(),g(e)},style:{position:"absolute",top:4,right:4,fontSize:15,color:d.Y0,cursor:"pointer",padding:"2px 4px"},title:"Edit",children:"✎"})]},e.id))}),R.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{fontSize:12,color:d.Y0,marginBottom:5,fontFamily:"var(--font-mono)",letterSpacing:"0.05em"},children:"MY AGENTS"}),(0,i.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:5,marginBottom:10},children:R.map(e=>(0,i.jsxs)("button",{onClick:()=>o(e,b,k||void 0),onMouseEnter:()=>S(e.id),onMouseLeave:()=>S(null),title:e.skills?"Skills: ".concat(e.skills):void 0,style:{display:"flex",flexDirection:"column",alignItems:"center",padding:"12px 6px 10px",position:"relative",border:"1px solid ".concat(d.KD),backgroundColor:"transparent",cursor:"pointer",textAlign:"center",transition:"border-color 0.15s"},children:[(0,i.jsx)(c.default,{palette:e.palette,zoom:2,ready:y}),(0,i.jsx)("div",{style:{fontSize:14,fontWeight:700,color:d.oj,marginTop:6,width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name}),(0,i.jsx)("div",{style:{fontSize:12,color:d.Y0,marginTop:2,width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.role}),w===e.id&&(0,i.jsxs)("span",{style:{position:"absolute",top:4,right:4,display:"flex",gap:2,alignItems:"center"},children:[(0,i.jsx)("span",{onClick:t=>{t.stopPropagation(),g(e)},style:{fontSize:15,color:d.Y0,cursor:"pointer",padding:"2px 4px"},title:"Edit",children:"✎"}),(0,i.jsx)("span",{onClick:t=>{t.stopPropagation(),u(e.id)},style:{fontSize:16,color:d.v_,cursor:"pointer",padding:"2px 4px",fontWeight:700},title:"Delete",children:"\xd7"})]})]},e.id))})]})]})}},9362:(e,t,o)=>{o.d(t,{A:()=>a});var i=o(206),r=o(1406),l=o(9385);let n=r.forwardRef((e,t)=>{let{className:o,type:r,...n}=e;return(0,i.jsx)("input",{type:r,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",o),ref:t,...n})});n.displayName="Input",r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,i.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",o),ref:t,...r})}).displayName="Textarea";let a=(0,r.forwardRef)(function(e,t){let{inline:o,className:r,...a}=e;return(0,i.jsx)(n,{ref:t,className:(0,l.cn)(o&&"border-none bg-transparent text-term-text-bright caret-accent px-1.5 py-1.5 focus:border-none focus:shadow-none",r),...a})})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29],{6029:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x});var l=n(206),s=n(1406),r=n(9385),a=n(5192),o=n(138),i=n(786),d=n(1310),c=n(370),u=n(9362);function m(e){let{label:t,hint:n,children:s}=e;return(0,l.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,l.jsxs)("label",{className:"text-term text-muted-foreground shrink-0 w-[100px] text-right",children:[t,n&&(0,l.jsx)("span",{className:"block text-[10px] opacity-50 mt-0.5",children:n})]}),(0,l.jsx)("div",{className:"flex-1 min-w-0",children:s})]})}function x(e){let{isOpen:t,onClose:n,soundEnabled:x,onSoundEnabledChange:p}=e,[g,f]=(0,s.useState)(!1),[h,b]=(0,s.useState)(null),[j,N]=(0,s.useState)(""),[v,S]=(0,s.useState)(""),[k,y]=(0,s.useState)(!1),[w,C]=(0,s.useState)(null),[A,T]=(0,s.useState)(!1),[E,D]=(0,s.useState)(!1),[F,I]=(0,s.useState)(!0),[U,_]=(0,s.useState)(!0),[R,G]=(0,s.useState)(""),[B,O]=(0,s.useState)(""),[z,V]=(0,s.useState)(!1),[W,K]=(0,s.useState)(!1),[Z,H]=(0,s.useState)(null),[J,M]=(0,s.useState)(!1),P=(0,o.hK)(e=>e.agencyAgentsResult),L=(0,o.hK)(e=>e.configData),Y=(0,o.hK)(e=>e.configResult);(0,s.useEffect)(()=>{t&&(0,a.S8)({type:"GET_CONFIG"})},[t]),(0,s.useEffect)(()=>{if(L){var e,t,n,l,s,r,a,o,i;N(null!=(t=L.telegramBotToken)?t:""),S(null!=(n=null==(e=L.telegramAllowedUsers)?void 0:e.join(", "))?n:""),T(null!=(l=L.telegramConnected)&&l),I(null==(s=L.worktreeEnabled)||s),_(null==(r=L.autoMergeEnabled)||r),G(null!=(a=L.tunnelToken)?a:""),O(null!=(o=L.tunnelBaseUrl)?o:""),V(null!=(i=L.tunnelRunning)&&i)}},[L]),(0,s.useEffect)(()=>{if(Y&&k){y(!1),C(Y.message),void 0!==Y.telegramConnected&&T(Y.telegramConnected);let e=setTimeout(()=>C(null),5e3);return()=>clearTimeout(e)}if(Y&&W){K(!1),void 0!==Y.tunnelRunning&&V(Y.tunnelRunning),H(Y.tunnelRunning?"Tunnel started":"Tunnel not running");let e=setTimeout(()=>H(null),5e3);return()=>clearTimeout(e)}},[Y]),(0,s.useEffect)(()=>{if(P&&g){f(!1),b(P.success?"Updated".concat(P.count?" (".concat(P.count," agents)"):""):"Failed: ".concat(P.message));let e=setTimeout(()=>b(null),5e3);return()=>clearTimeout(e)}},[P]);let $=e=>(0,r.cn)("w-3.5 h-3.5 border-2 border-muted-foreground rounded-sm shrink-0","flex items-center justify-center text-[11px] leading-none",e?"bg-accent text-background":"bg-transparent"),q="flex items-center justify-between w-full px-3 py-2 text-term text-foreground bg-transparent border-none cursor-pointer text-left font-mono transition-colors duration-fast hover:bg-white/5";return(0,l.jsxs)(d.A,{open:t,onClose:n,maxWidth:520,zIndex:100,title:"Settings",children:[(0,l.jsxs)("div",{className:"border-b border-term-border-dim pb-3 mb-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-3",children:[(0,l.jsx)("span",{className:(0,r.cn)("inline-block w-2 h-2 rounded-full shrink-0",A?"bg-sem-green":"bg-muted-foreground")}),(0,l.jsxs)("span",{className:"text-[13px] text-foreground font-medium",children:["Telegram ",A?"(connected)":"(disconnected)"]})]}),(0,l.jsx)(m,{label:"Bot Token",children:(0,l.jsxs)("div",{className:"flex gap-1",children:[(0,l.jsx)(u.A,{type:E?"text":"password",value:j,onChange:e=>N(e.target.value),placeholder:"123456:ABC-DEF...",className:"flex-1",onFocus:()=>{j.includes("...")&&N("")}}),(0,l.jsx)(c.A,{variant:"dim",size:"sm",onClick:()=>D(!E),title:E?"Hide":"Show",children:E?"\uD83D\uDE48":"\uD83D\uDC41"})]})}),(0,l.jsx)(m,{label:"Allowed IDs",hint:"comma-sep, empty=all",children:(0,l.jsx)(u.A,{type:"text",value:v,onChange:e=>S(e.target.value),placeholder:"123456789, 987654321"})}),(0,l.jsxs)("div",{className:"flex items-center gap-2 pl-[112px]",children:[(0,l.jsx)(c.A,{variant:"primary",onClick:()=>{y(!0),C(null);let e=v.split(",").map(e=>e.trim()).filter(Boolean);(0,a.S8)({type:"SAVE_CONFIG",telegramBotToken:j.includes("...")?void 0:j,telegramAllowedUsers:e})},disabled:k,children:k?"Saving...":"Save & Connect"}),w&&(0,l.jsx)("span",{className:(0,r.cn)("text-term",w.includes("Failed")||w.includes("not")?"text-sem-red":"text-sem-green"),children:w})]})]}),(0,l.jsxs)("div",{className:"border-b border-term-border-dim pb-3 mb-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-3",children:[(0,l.jsx)("span",{className:(0,r.cn)("inline-block w-2 h-2 rounded-full shrink-0",z?"bg-sem-green":"bg-muted-foreground")}),(0,l.jsxs)("span",{className:"text-[13px] text-foreground font-medium",children:["Tunnel ",z?"(running)":"(stopped)"]})]}),(0,l.jsx)(m,{label:"Token",children:(0,l.jsxs)("div",{className:"flex gap-1",children:[(0,l.jsx)(u.A,{type:J?"text":"password",value:R,onChange:e=>G(e.target.value),placeholder:"eyJ...",className:"flex-1",onFocus:()=>{R.includes("...")&&G("")}}),(0,l.jsx)(c.A,{variant:"dim",size:"sm",onClick:()=>M(!J),title:J?"Hide":"Show",children:J?"\uD83D\uDE48":"\uD83D\uDC41"})]})}),(0,l.jsx)(m,{label:"Public URL",children:(0,l.jsx)(u.A,{type:"text",value:B,onChange:e=>O(e.target.value),placeholder:"https://office.example.com"})}),(0,l.jsxs)("div",{className:"flex items-center gap-2 pl-[112px]",children:[(0,l.jsx)(c.A,{variant:"primary",onClick:()=>{K(!0),H(null),(0,a.S8)({type:"SAVE_CONFIG",tunnelToken:R.includes("...")?void 0:R,tunnelBaseUrl:B})},disabled:W,children:W?"Saving...":"Save & Start"}),Z&&(0,l.jsx)("span",{className:(0,r.cn)("text-term",Z.includes("not")||Z.includes("Failed")?"text-sem-red":"text-sem-green"),children:Z})]})]}),(0,l.jsxs)("div",{className:"mb-1",children:[(0,l.jsxs)("button",{onClick:()=>{let e=!F;I(e),(0,a.S8)({type:"SAVE_CONFIG",worktreeEnabled:e})},className:q,title:"Each agent works in its own git worktree branch, merged on completion",children:[(0,l.jsx)("span",{children:"Agent Isolation"}),(0,l.jsx)("span",{className:$(F),children:F?"✓":""})]}),(0,l.jsxs)("button",{onClick:()=>{let e=!U;_(e),(0,a.S8)({type:"SAVE_CONFIG",autoMergeEnabled:e})},className:q,title:"Auto-merge agent changes to main on task completion. Turn off to review before merging.",children:[(0,l.jsx)("span",{children:"Auto-merge"}),(0,l.jsx)("span",{className:$(U),children:U?"✓":""})]}),(0,l.jsxs)("button",{onClick:()=>{let e=!x;p(e),localStorage.setItem("office-sound-enabled",JSON.stringify(e))},className:q,children:[(0,l.jsx)("span",{children:"Sound Notifications"}),(0,l.jsx)("span",{className:$(x),children:x?"✓":""})]})]}),(0,l.jsx)("div",{className:"border-t border-term-border-dim pt-2",children:(0,l.jsxs)("button",{onClick:()=>{f(!0),b(null),(0,a.S8)({type:"UPDATE_AGENCY_AGENTS"})},disabled:g,className:(0,r.cn)(q,g&&"opacity-50"),children:[(0,l.jsx)("span",{children:g?"Updating Agents...":null!=h?h:"Update Agency Agents"}),h&&(0,l.jsx)("span",{className:(0,r.cn)("text-[11px]",h.startsWith("Failed")?"text-sem-red":"text-sem-green"),children:h.startsWith("Failed")?"✗":"✓"})]})}),(0,l.jsxs)("div",{className:"border-t border-term-border-dim mt-1 pt-2 text-[11px] text-muted-foreground font-mono leading-snug select-text",title:"From monorepo root package.json at build time",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"opacity-75",children:"Web UI"})," ",(0,l.jsxs)("span",{className:"text-foreground",children:["v",i.h]})]}),i.Z?(0,l.jsxs)("div",{className:"mt-0.5 text-[10px] opacity-90",children:["build ",i.Z.replace("T"," ").replace(/\.\d{3}Z$/," UTC")]}):null]})]})}},9362:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(206),s=n(1406),r=n(9385);let a=s.forwardRef((e,t)=>{let{className:n,type:s,...a}=e;return(0,l.jsx)("input",{type:s,className:(0,r.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,...a})});a.displayName="Input",s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,l.jsx)("textarea",{className:(0,r.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,...s})}).displayName="Textarea";let o=(0,s.forwardRef)(function(e,t){let{inline:n,className:s,...o}=e;return(0,l.jsx)(a,{ref:t,className:(0,r.cn)(n&&"border-none bg-transparent text-term-text-bright caret-accent px-1.5 py-1.5 focus:border-none focus:shadow-none",s),...o})})}}]);
@@ -1 +0,0 @@
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))})})]})})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[606],{606:(e,t,a)=>{a.r(t),a.d(t,{ConfettiOverlay:()=>d,default:()=>c});var n=a(206),r=a(1406),o=a(5192),l=a(7877),i=a(1310),s=a(370);function d(){let e=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let t,a=e.current;if(!a)return;let n=a.getContext("2d");if(!n)return;a.width=window.innerWidth,a.height=window.innerHeight;let r=["#ff6b6b","#feca57","#48dbfb","#ff9ff3","#54a0ff","#5f27cd","#01a3a4","#ff5e57","#0abde3","#10ac84"],o=[],l=a.width,i=a.height;for(let e=0;e<120;e++)o.push({x:Math.random()*l,y:-Math.random()*i*.8,vx:(Math.random()-.5)*2,vy:1.5+3*Math.random(),w:6+8*Math.random(),h:4+6*Math.random(),rot:Math.random()*Math.PI*2,rotSpeed:(Math.random()-.5)*.15,color:r[Math.floor(Math.random()*r.length)],alpha:1});let s=performance.now(),d=e=>{let a=e-s,r=a>2200?Math.max(0,1-(a-2200)/800):1;for(let t of(n.clearRect(0,0,l,i),o))t.x+=t.vx+.5*Math.sin(.002*e+t.rot),t.y+=t.vy,t.rot+=t.rotSpeed,t.x<-20&&(t.x=l+20),t.x>l+20&&(t.x=-20),t.y>i+20&&(t.y=-10,t.x=Math.random()*l),n.save(),n.translate(t.x,t.y),n.rotate(t.rot),n.globalAlpha=r,n.fillStyle=t.color,n.fillRect(-t.w/2,-t.h/2,t.w,t.h),n.restore();a<3e3&&(t=requestAnimationFrame(d))};return t=requestAnimationFrame(d),()=>cancelAnimationFrame(t)},[]),(0,n.jsx)("canvas",{ref:e,className:"fixed inset-0 z-[10000] pointer-events-none"})}let c=function(e){let{previewUrl:t,previewPath:a,onPreview:r,onDismiss:d,previewCmd:c,previewPort:h,projectDir:x,entryFile:f}=e,m={previewUrl:t,previewCmd:c,previewPort:h,previewPath:a,entryFile:f},u=(0,l.P9)(m),p=!u&&(0,l.iv)({previewPath:a,previewCmd:c,previewPort:h,projectDir:x,entryFile:f});return(0,n.jsx)(i.A,{open:!0,onClose:d,maxWidth:420,zIndex:9999,footer:(0,n.jsxs)(n.Fragment,{children:[u&&(0,n.jsxs)(s.A,{variant:"success",onClick:()=>{let e=(0,l.iv)({previewPath:a,previewCmd:c,previewPort:h,projectDir:x,entryFile:f});e&&(0,o.S8)(e);let t=(0,l.vG)(m);t&&r(t)},style:{padding:"9px 20px"},children:["▶"," Preview"]}),p&&(0,n.jsxs)(s.A,{onClick:()=>{let e=(0,l.iv)({previewPath:a,previewCmd:c,previewPort:h,projectDir:x,entryFile:f});e&&(0,o.S8)(e),d()},style:{padding:"9px 20px",borderColor:"var(--term-sem-blue)",color:"var(--term-sem-blue)"},children:["▶"," Launch"]}),(0,n.jsx)(s.A,{variant:"dim",onClick:d,style:{padding:"9px 20px"},children:"OK"})]}),children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"text-[34px] mb-2.5 text-accent",children:"★"}),(0,n.jsx)("div",{className:"px-font text-accent text-sm mb-2.5 tracking-wide",children:"Mission Complete!"}),(0,n.jsx)("div",{className:"text-muted-foreground text-sm leading-[1.7] font-mono",children:"Your task has been completed successfully. Ready for the next mission whenever you are."})]})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[729],{9729:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var l=n(206),a=n(1406),c=n(4932);function i(e){let{open:t,onClose:n,actions:i=[],currentTheme:r,onThemeChange:s,onOpenSettings:o,onOpenHistory:u,onHire:p}=e,[h,m]=(0,a.useState)(""),[d,g]=(0,a.useState)(0),f=(0,a.useRef)(null),v=(0,a.useRef)(null),b=(0,a.useMemo)(()=>{let e=[];o&&e.push({id:"settings",label:"Settings",icon:"⚙",group:"Navigation",action:()=>{o(),n()}}),u&&e.push({id:"history",label:"Project History",icon:"◶",group:"Navigation",action:()=>{u(),n()}}),p&&e.push({id:"hire",label:"Hire Team",icon:"+",group:"Actions",action:()=>{p(),n()}});let t=Object.entries(c.aD).map(e=>{let[t,l]=e;return{id:"theme:".concat(t),label:l.name,icon:r===t?"●":"○",hint:r===t?"active":void 0,group:"Themes",action:()=>{s?s(t):(0,c.c8)(t),n()}}});return[...e,...i.map(e=>({...e,action:()=>{e.action(),n()}})),...t]},[i,r,s,o,u,p,n]),k=(0,a.useMemo)(()=>{if(!h.trim())return b;let e=h.toLowerCase();return b.filter(t=>{var n;return t.label.toLowerCase().includes(e)||(null==(n=t.group)?void 0:n.toLowerCase().includes(e))||t.id.toLowerCase().includes(e)})},[b,h]);(0,a.useEffect)(()=>{t&&(m(""),g(0),setTimeout(()=>{var e;return null==(e=f.current)?void 0:e.focus()},50))},[t]),(0,a.useEffect)(()=>{g(e=>Math.min(e,Math.max(0,k.length-1)))},[k.length]),(0,a.useEffect)(()=>{var e;let t=v.current;if(!t)return;let n=t.children[d];null==n||null==(e=n.scrollIntoView)||e.call(n,{block:"nearest"})},[d]);let N=(0,a.useCallback)(e=>{let t=k[e];t&&t.action()},[k]),x=(0,a.useCallback)(e=>{"ArrowDown"===e.key?(e.preventDefault(),g(e=>(e+1)%Math.max(1,k.length))):"ArrowUp"===e.key?(e.preventDefault(),g(e=>(e-1+k.length)%Math.max(1,k.length))):"Enter"===e.key?(e.preventDefault(),N(d)):"Escape"===e.key&&(e.preventDefault(),n())},[k.length,d,N,n]);if(!t)return null;let C="";return(0,l.jsx)("div",{className:"cp-backdrop",onClick:n,children:(0,l.jsxs)("div",{className:"cp-container",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("input",{ref:f,className:"cp-input",value:h,onChange:e=>m(e.target.value),onKeyDown:x,placeholder:"Type a command...",spellCheck:!1,autoComplete:"off"}),(0,l.jsxs)("div",{ref:v,className:"cp-list",children:[0===k.length&&(0,l.jsx)("div",{className:"cp-empty",children:"No matching commands"}),k.map((e,t)=>{let n=e.group&&e.group!==C;return e.group&&(C=e.group),(0,l.jsxs)("div",{children:[n&&(0,l.jsx)("div",{className:"cp-group-label",children:e.group}),(0,l.jsxs)("button",{className:"cp-item".concat(t===d?" cp-item-active":""),onClick:()=>N(t),onMouseEnter:()=>g(t),children:[e.icon&&(0,l.jsx)("span",{className:"cp-item-icon",children:e.icon}),(0,l.jsx)("span",{className:"cp-item-label",children:e.label}),e.hint&&(0,l.jsx)("span",{className:"cp-item-hint",children:e.hint})]})]},e.id)})]})]})})}}}]);
@@ -1 +0,0 @@
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})})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73,895],{73:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var l=n(206),r=n(1406),o=n(2988);let a=function(e){let{palette:t,zoom:n=3,ready:a}=e,i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{var e,l;let r=i.current;if(!r)return;let a=(0,o.Cr)(t);if(!a)return;let s=a.length,d=null!=(l=null==(e=a[0])?void 0:e.length)?l:0;r.width=d*n,r.height=s*n;let c=r.getContext("2d");if(c){c.clearRect(0,0,r.width,r.height);for(let e=0;e<s;e++)for(let t=0;t<d;t++){let l=a[e][t];l&&(c.fillStyle=l,c.fillRect(t*n,e*n,n,n))}}},[t,n,a]),(0,l.jsx)("canvas",{ref:i,style:{width:16*n,height:32*n,imageRendering:"pixelated"}})}},5895:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var l=n(206),r=n(1406),o=n(2001),a=n(7821),i=n(4932),s=n(73),d=n(7877),c=n(1310),p=n(370),m=n(9362),u=n(138);let x="#e5c07b";function f(e){let{value:t,onSelect:n}=e,[o,s]=(0,r.useState)(""),[d,c]=(0,r.useState)(!1),p=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{p.current&&!p.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let u=o.toLowerCase(),x=u?a.YY.map(e=>({...e,subcategories:e.subcategories.map(t=>({...t,agents:t.agents.filter(t=>t.name.toLowerCase().includes(u)||t.desc.toLowerCase().includes(u)||e.label.toLowerCase().includes(u))})).filter(e=>e.agents.length>0)})).filter(e=>e.subcategories.length>0):a.YY;return(0,l.jsxs)("div",{ref:p,style:{position:"relative"},children:[(0,l.jsx)(m.A,{value:d?o:t,onChange:e=>{s(e.target.value),d||c(!0)},onFocus:()=>{c(!0),s("")},placeholder:"Search roles..."}),d&&(0,l.jsxs)("div",{"data-scrollbar":!0,style:{position:"absolute",top:"100%",left:0,right:0,zIndex:200,maxHeight:250,overflowY:"auto",backgroundColor:i.lr,border:"1px solid ".concat(i.KD),borderTop:"none"},children:[x.map(e=>e.subcategories.map(r=>(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{padding:"4px 10px",fontSize:10,color:i.Y0,fontFamily:"var(--font-mono)",textTransform:"uppercase",letterSpacing:"0.05em",backgroundColor:i.lr,position:"sticky",top:0},children:e.subcategories.length>1&&"_root"!==r.name?"".concat(e.label," > ").concat(r.label):e.label}),r.agents.map(e=>(0,l.jsx)("div",{onClick:()=>{n(e.name),c(!1),s("")},style:{padding:"5px 10px",fontSize:13,fontFamily:"var(--font-mono)",color:e.name===t?i.DM:i.lR,cursor:"pointer",backgroundColor:e.name===t?"".concat(i.DM,"18"):"transparent"},onMouseEnter:n=>{e.name!==t&&(n.currentTarget.style.backgroundColor=i.nY)},onMouseLeave:n=>{e.name!==t&&(n.currentTarget.style.backgroundColor="transparent")},children:e.name},e.name))]},"".concat(e.category,"/").concat(r.name)))),0===x.length&&(0,l.jsxs)("div",{onClick:()=>{n(o.trim()),c(!1),s("")},style:{padding:"8px 10px",fontSize:13,fontFamily:"var(--font-mono)",color:i.Y0,cursor:"pointer"},children:['Use custom: "',o.trim(),'"']})]})]})}function g(e){let{onSave:t,onCancel:n}=e,[o,a]=(0,r.useState)(""),[i,s]=(0,r.useState)("");return(0,l.jsxs)("div",{style:{border:"1px solid ".concat(x,"40"),backgroundColor:"".concat(x,"08"),padding:10,marginTop:6},children:[(0,l.jsx)("div",{style:{fontSize:11,color:x,marginBottom:6,fontFamily:"var(--font-mono)",letterSpacing:"0.05em"},children:"NEW SKILL FILE"}),(0,l.jsx)(m.A,{value:o,onChange:e=>a(e.target.value),placeholder:"Skill name (e.g. tdd, react-patterns)",style:{marginBottom:6}}),(0,l.jsx)("textarea",{className:"ti ti-textarea",value:i,onChange:e=>s(e.target.value),placeholder:"# Skill Title\n\nPaste or type skill content in Markdown...",rows:5,style:{resize:"vertical",marginBottom:6,width:"100%",boxSizing:"border-box"}}),(0,l.jsxs)("div",{style:{display:"flex",gap:6,justifyContent:"flex-end"},children:[(0,l.jsx)(p.A,{variant:"dim",onClick:n,style:{padding:"4px 10px",fontSize:12},children:"Cancel"}),(0,l.jsx)(p.A,{variant:"primary",onClick:()=>{let e=o.trim().toLowerCase().replace(/[^a-z0-9_-]/g,"-").replace(/^-|-$/g,"");e&&i.trim()&&t(e,i)},disabled:!o.trim()||!i.trim(),style:{padding:"4px 10px",fontSize:12},children:"Save Skill"})]})]})}let h=function(e){var t,n,x,h;let{onSave:y,onClose:v,assetsReady:b,editAgent:j,sendCommand:S}=e,[C,k]=(0,r.useState)(null!=(t=null==j?void 0:j.palette)?t:Math.floor(6*Math.random())),[w,A]=(0,r.useState)(null!=(n=null==j?void 0:j.name)?n:(()=>{let e=["Alex","Sam","Max","Leo","Mia","Kai","Zoe","Eli","Ava","Jay","Rio","Ash","Sky","Kit","Noa","Rex","Ivy","Ace","Ren","Jax"];return e[Math.floor(Math.random()*e.length)]})()),[z,L]=(0,r.useState)(()=>{if(!(null==j?void 0:j.role))return 0;let e=a.os.indexOf(j.role);return e>=0?e:-1}),[N,M]=(0,r.useState)(()=>(null==j?void 0:j.role)?a.os.indexOf(j.role)>=0?"":j.role:""),[F,Y]=(0,r.useState)(()=>{var e,t;return new Set((null==j?void 0:j.skills)?j.skills.split(",").map(e=>e.trim()).filter(Boolean):null!=(t=null==(e=a.yh[a.os[0]])?void 0:e.slice(0,4))?t:[])}),[D,E]=(0,r.useState)(""),I=(0,u.hK)(e=>e.availableSkills),[R,B]=(0,r.useState)(()=>{var e;return new Set(null!=(e=null==j?void 0:j.skillFiles)?e:[])}),[K,T]=(0,r.useState)(!1);(0,r.useEffect)(()=>{null==S||S({type:"LIST_SKILLS"})},[S]);let W=z>=0?a.os[z]:N.trim(),_=z>=0&&null!=(x=a.yh[a.os[z]])?x:[],O=e=>{Y(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},H=()=>{let e=D.trim();e&&!F.has(e)&&(Y(t=>new Set(t).add(e)),E(""))},P=e=>{B(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[U,$]=(0,r.useState)(()=>{if(!j)return 0;let e=a.eU.findIndex(e=>e.value===j.personality);return e>=0?e:4}),[J,V]=(0,r.useState)(null!=(h=null==j?void 0:j.personality)?h:""),Z=U<4?a.eU[U].value:J;return(0,l.jsxs)(c.A,{open:!0,onClose:v,maxWidth:520,zIndex:110,title:j?"Edit Agent":"Create Agent",footer:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.A,{variant:"primary",onClick:()=>{var e,t;if(!w.trim())return;let n=j?j.id:(w.trim().toLowerCase().replace(/[^a-z0-9\u4e00-\u9fff]+/g,"-").replace(/^-|-$/g,"")||"agent")+"-".concat((0,o.Ak)(4)),l=Array.from(R);y({id:n,name:w.trim(),role:W,skills:Array.from(F).join(", "),personality:Z,palette:C,isBuiltin:null!=(e=null==j?void 0:j.isBuiltin)&&e,teamRole:null!=(t=null==j?void 0:j.teamRole)?t:"dev",...l.length>0?{skillFiles:l}:{}})},disabled:!w.trim(),style:{flex:1,padding:"9px",fontWeight:700},children:j?"Save":"Create"}),(0,l.jsx)(p.A,{variant:"dim",onClick:v,style:{padding:"9px 16px"},children:"Cancel"})]}),children:[(0,l.jsxs)("div",{className:"flex gap-4 mb-3 items-start",children:[(0,l.jsxs)("div",{className:"shrink-0",children:[(0,l.jsx)("div",{className:"text-term text-muted-foreground font-mono tracking-wide mb-1",children:"AVATAR"}),(0,l.jsx)("div",{className:"flex gap-1",children:[0,1,2,3,4,5].map(e=>(0,l.jsx)("button",{onClick:()=>k(e),style:{padding:3,border:C===e?"2px solid ".concat(i.DM):"2px solid ".concat(i.KD),backgroundColor:C===e?"".concat(i.DM,"18"):"transparent",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,l.jsx)(s.default,{palette:e,zoom:2,ready:b})},e))})]}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.jsx)("div",{className:"text-term text-muted-foreground font-mono tracking-wide mb-1",children:"NAME"}),(0,l.jsx)(m.A,{value:w,onChange:e=>A(e.target.value),placeholder:"Agent name"})]})]}),(0,l.jsxs)("div",{style:{marginBottom:8,position:"relative"},children:[(0,l.jsx)("div",{className:"text-term text-muted-foreground font-mono tracking-wide mb-1",children:"ROLE"}),(0,l.jsx)(f,{value:W,onSelect:e=>{let t=a.os.indexOf(e);if(t>=0){var n;if(L(t),t>=0){let e=a.os[t],l=null!=(n=a.yh[e])?n:[];l.some(e=>F.has(e))||Y(new Set(l.slice(0,4)))}}else L(-1),M(e)}}),a.P5.get(W)&&(0,l.jsx)("div",{style:{fontSize:11,color:i.Y0,marginTop:4,fontFamily:"var(--font-mono)",lineHeight:1.4},children:a.P5.get(W)})]}),(0,l.jsxs)("div",{style:{marginBottom:8},children:[(0,l.jsx)("div",{style:{fontSize:12,color:i.Y0,marginBottom:4,fontFamily:"var(--font-mono)",letterSpacing:"0.05em"},children:"SKILLS"}),_.length>0&&(0,l.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:5,marginBottom:8},children:_.map(e=>{let t=F.has(e);return(0,l.jsx)("button",{onClick:()=>O(e),style:{padding:"4px 10px",fontSize:13,fontFamily:"var(--font-mono)",border:t?"1px solid ".concat(i.DM,"80"):"1px solid ".concat(i.KD),backgroundColor:t?"".concat(i.DM,"18"):"transparent",color:t?i.DM:i.Y0,cursor:"pointer"},children:e},e)})}),(()=>{let e=Array.from(F).filter(e=>!_.includes(e));return 0===e.length?null:(0,l.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:5,marginBottom:8},children:e.map(e=>(0,l.jsxs)("span",{style:{padding:"4px 10px",fontSize:13,fontFamily:"var(--font-mono)",border:"1px solid ".concat(i.KE,"60"),backgroundColor:i.nY,color:i.KE,display:"flex",alignItems:"center",gap:4},children:[e,(0,l.jsx)("span",{onClick:()=>O(e),style:{cursor:"pointer",fontSize:15,lineHeight:1,color:"".concat(i.KE,"80")},children:"\xd7"})]},e))})})(),(0,l.jsxs)("div",{style:{display:"flex",gap:4},children:[(0,l.jsx)(m.A,{value:D,onChange:e=>E(e.target.value),onKeyDown:e=>{(0,d.$$)(e)&&(e.preventDefault(),H())},placeholder:"Add custom skill...",style:{flex:1}}),(0,l.jsx)(p.A,{variant:"dim",onClick:H,style:{padding:"5px 12px",fontSize:15,fontWeight:700},children:"+"})]})]}),(0,l.jsxs)("div",{style:{marginBottom:8},children:[(0,l.jsxs)("div",{style:{fontSize:12,color:i.Y0,marginBottom:4,fontFamily:"var(--font-mono)",letterSpacing:"0.05em",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,l.jsx)("span",{children:"SKILL FILES"}),(0,l.jsx)("span",{style:{fontSize:10,color:i.Y0,fontWeight:400},children:".md instructions auto-loaded by AI"})]}),I.length>0&&(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:3,marginBottom:6},children:I.map(e=>{let t=R.has(e.name);return(0,l.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",cursor:"pointer",fontSize:13,fontFamily:"var(--font-mono)",color:t?i.lR:i.Y0,backgroundColor:t?"".concat(i.DM,"0c"):"transparent",border:"1px solid ".concat(t?i.DM+"30":"transparent")},children:[(0,l.jsx)("input",{type:"checkbox",checked:t,onChange:()=>P(e.name),style:{accentColor:i.DM,cursor:"pointer"}}),(0,l.jsx)("span",{style:{flex:1},children:e.title}),e.isFolder&&(0,l.jsx)("span",{style:{fontSize:10,color:i.Y0,opacity:.6},title:"Folder with multiple files",children:"[dir]"})]},e.name)})}),(()=>{let e=new Set(I.map(e=>e.name)),t=Array.from(R).filter(t=>!e.has(t));return 0===t.length?null:(0,l.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginBottom:6},children:t.map(e=>(0,l.jsxs)("span",{style:{padding:"2px 8px",fontSize:12,fontFamily:"var(--font-mono)",border:"1px solid ".concat(i.KD),color:i.Y0,opacity:.5,display:"flex",alignItems:"center",gap:4},children:[e,(0,l.jsx)("span",{onClick:()=>P(e),style:{cursor:"pointer",fontSize:14,lineHeight:1},children:"\xd7"})]},e))})})(),0===I.length&&!K&&(0,l.jsx)("div",{style:{fontSize:12,color:i.Y0,fontFamily:"var(--font-mono)",marginBottom:4,opacity:.7},children:"No skill files yet."}),K?(0,l.jsx)(g,{onSave:(e,t)=>{null==S||S({type:"SAVE_SKILL",name:e,content:t}),B(t=>new Set(t).add(e)),T(!1)},onCancel:()=>T(!1)}):(0,l.jsx)(p.A,{variant:"dim",onClick:()=>T(!0),style:{padding:"4px 10px",fontSize:12,width:"100%"},children:"+ Create Skill File"})]}),(0,l.jsxs)("div",{style:{marginBottom:10},children:[(0,l.jsx)("div",{className:"text-term text-muted-foreground font-mono tracking-wide mb-1",children:"PERSONALITY"}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1",children:[a.eU.map((e,t)=>(0,l.jsxs)("label",{className:"flex items-center gap-1.5 px-1.5 py-1 cursor-pointer font-mono text-[13px]",style:{color:U===t?i.lR:i.Y0},children:[(0,l.jsx)("input",{type:"radio",name:"personality",checked:U===t,onChange:()=>$(t),style:{accentColor:i.DM,cursor:"pointer"}}),e.label]},t)),(0,l.jsxs)("label",{className:"flex items-center gap-1.5 px-1.5 py-1 cursor-pointer font-mono text-[13px]",style:{color:4===U?i.lR:i.Y0},children:[(0,l.jsx)("input",{type:"radio",name:"personality",checked:4===U,onChange:()=>$(4),style:{accentColor:i.DM,cursor:"pointer"}}),"Custom"]})]}),4===U&&(0,l.jsx)("textarea",{className:"ti ti-textarea mt-1.5",value:J,onChange:e=>V(e.target.value),placeholder:"Describe the personality...",rows:2,style:{resize:"vertical"}})]})]})}},9362:(e,t,n)=>{n.d(t,{A:()=>i});var l=n(206),r=n(1406),o=n(9385);let a=r.forwardRef((e,t)=>{let{className:n,type:r,...a}=e;return(0,l.jsx)("input",{type:r,className:(0,o.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,...a})});a.displayName="Input",r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,l.jsx)("textarea",{className:(0,o.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,...r})}).displayName="Textarea";let i=(0,r.forwardRef)(function(e,t){let{inline:n,className:r,...i}=e;return(0,l.jsx)(a,{ref:t,className:(0,o.cn)(n&&"border-none bg-transparent text-term-text-bright caret-accent px-1.5 py-1.5 focus:border-none focus:shadow-none",r),...i})})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73,999],{73:(e,t,l)=>{l.r(t),l.d(t,{default:()=>i});var o=l(206),r=l(1406),n=l(2988);let i=function(e){let{palette:t,zoom:l=3,ready:i}=e,a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{var e,o;let r=a.current;if(!r)return;let i=(0,n.Cr)(t);if(!i)return;let d=i.length,s=null!=(o=null==(e=i[0])?void 0:e.length)?o:0;r.width=s*l,r.height=d*l;let c=r.getContext("2d");if(c){c.clearRect(0,0,r.width,r.height);for(let e=0;e<d;e++)for(let t=0;t<s;t++){let o=i[e][t];o&&(c.fillStyle=o,c.fillRect(t*l,e*l,l,l))}}},[t,l,i]),(0,o.jsx)("canvas",{ref:a,style:{width:16*l,height:32*l,imageRendering:"pixelated"}})}},7999:(e,t,l)=>{l.r(t),l.d(t,{default:()=>x});var o=l(206),r=l(1406),n=l(2001),i=l(5192),a=l(138),d=l(7821),s=l(4932),c=l(73),p=l(1310),f=l(370),u=l(9362);let x=function(e){var t,l;let{agentDefs:x,onCreateTeam:m,onClose:g,assetsReady:h,detectedBackends:y}=e,v=x.find(e=>"leader"===e.teamRole),b=x.find(e=>"reviewer"===e.teamRole),j=x.filter(e=>"dev"===e.teamRole),[k,w]=(0,r.useState)(null!=(l=null==(t=j[0])?void 0:t.id)?l:""),[C,S]=(0,r.useState)({}),[E,R]=(0,r.useState)(""),z=[];return v&&z.push({def:v,label:"LEAD"}),b&&z.push({def:b,label:"REVIEWER"}),(0,o.jsxs)(p.A,{open:!0,onClose:g,maxWidth:540,zIndex:100,title:"Hire Team",footer:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.A,{variant:"primary",onClick:()=>{if(!v)return;let e=[];k&&e.push(k),b&&e.push(b.id),m(v.id,e,C,E||void 0)},disabled:!v,style:{flex:1,padding:"9px",fontWeight:700},children:"Create Team"}),(0,o.jsx)(f.A,{variant:"dim",onClick:g,style:{padding:"9px 16px"},children:"Cancel"})]}),children:[(0,o.jsxs)("div",{style:{marginBottom:12},children:[(0,o.jsx)("div",{style:{fontSize:12,color:s.Y0,marginBottom:5,fontFamily:"var(--font-mono)",letterSpacing:"0.05em"},children:"PROJECT DIRECTORY"}),(0,o.jsxs)("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[(0,o.jsx)(u.A,{type:"text",value:E,onChange:e=>R(e.target.value),placeholder:"Paste path or click Browse",style:{flex:1}}),(0,o.jsx)(f.A,{variant:"dim",onClick:()=>{let e=(0,n.Ak)(6);a.sX.set(e,e=>R(e)),(0,i.S8)({type:"PICK_FOLDER",requestId:e})},children:"Browse"})]}),(0,o.jsx)("div",{style:{fontSize:10,color:s.Y0,marginTop:3,fontFamily:"var(--font-mono)",opacity:.7},children:"Empty = default workspace"})]}),(0,o.jsx)("div",{style:{fontSize:12,color:s.Y0,marginBottom:6,fontFamily:"var(--font-mono)",letterSpacing:"0.05em"},children:"SELECT TEAM MEMBERS"}),(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,marginBottom:12},children:[z.map(e=>{var t;let{def:l,label:r}=e;return(0,o.jsxs)("div",{title:l.skills?"Skills: ".concat(l.skills):void 0,style:{display:"flex",alignItems:"center",gap:8,padding:"7px 10px",border:"1px solid ".concat(s.O2,"70"),backgroundColor:s.nY,textAlign:"left"},children:[(0,o.jsx)(c.default,{palette:l.palette,zoom:2,ready:h}),(0,o.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,o.jsxs)("div",{style:{fontSize:15,fontWeight:700,color:s.oj},children:[l.name," ",(0,o.jsx)("span",{style:{color:s.O2,fontSize:11,fontFamily:"var(--font-mono)"},children:r})]}),(0,o.jsx)("div",{style:{fontSize:13,color:s.Y0},children:l.role})]}),(0,o.jsx)("select",{value:null!=(t=C[l.id])?t:"claude",onClick:e=>e.stopPropagation(),onChange:e=>S(t=>({...t,[l.id]:e.target.value})),style:{padding:"3px 6px",border:"1px solid ".concat(s.KD),backgroundColor:s.lr,color:s.Y0,fontSize:12,cursor:"pointer",fontFamily:"var(--font-mono)"},children:d.GN.map(e=>(0,o.jsxs)("option",{value:e.id,children:[e.name,y&&y.length>0&&!y.includes(e.id)?" (?)":""]},e.id))})]},l.id)}),(0,o.jsx)("div",{style:{fontSize:12,color:s.Y0,marginTop:4,marginBottom:4,fontFamily:"var(--font-mono)",letterSpacing:"0.05em"},children:"DEV AGENT (pick 1)"}),(0,o.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:5},children:j.map(e=>{var t;let l=k===e.id;return(0,o.jsxs)("button",{onClick:()=>w(e.id),title:e.skills?"Skills: ".concat(e.skills):void 0,style:{display:"flex",flexDirection:"column",alignItems:"center",padding:"12px 6px 10px",border:l?"1px solid ".concat(s.DM,"60"):"1px solid ".concat(s.KD),backgroundColor:l?"".concat(s.DM,"0a"):"transparent",cursor:"pointer",textAlign:"center",opacity:l?1:.5,transition:"opacity 0.15s, border-color 0.15s, background-color 0.15s"},children:[(0,o.jsx)(c.default,{palette:e.palette,zoom:2,ready:h}),(0,o.jsx)("div",{style:{fontSize:14,fontWeight:700,color:s.oj,marginTop:6,width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name}),(0,o.jsx)("div",{style:{fontSize:12,color:s.Y0,marginTop:2,width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.role}),(0,o.jsx)("select",{value:null!=(t=C[e.id])?t:"claude",onClick:t=>{t.stopPropagation(),w(e.id)},onChange:t=>{w(e.id),S(l=>({...l,[e.id]:t.target.value}))},style:{marginTop:6,padding:"3px 6px",border:"1px solid ".concat(s.KD),backgroundColor:s.lr,color:s.Y0,fontSize:12,cursor:"pointer",fontFamily:"var(--font-mono)"},children:d.GN.map(e=>(0,o.jsxs)("option",{value:e.id,children:[e.name,y&&y.length>0&&!y.includes(e.id)?" (?)":""]},e.id))})]},e.id)})})]})]})}},9362:(e,t,l)=>{l.d(t,{A:()=>a});var o=l(206),r=l(1406),n=l(9385);let i=r.forwardRef((e,t)=>{let{className:l,type:r,...i}=e;return(0,o.jsx)("input",{type:r,className:(0,n.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",l),ref:t,...i})});i.displayName="Input",r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,o.jsx)("textarea",{className:(0,n.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",l),ref:t,...r})}).displayName="Textarea";let a=(0,r.forwardRef)(function(e,t){let{inline:l,className:r,...a}=e;return(0,o.jsx)(i,{ref:t,className:(0,n.cn)(l&&"border-none bg-transparent text-term-text-bright caret-accent px-1.5 py-1.5 focus:border-none focus:shadow-none",r),...a})})}}]);