cc-chats 0.2.7 → 0.2.9

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 (76) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +31 -24
  3. package/.next/app-path-routes-manifest.json +6 -5
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +10 -10
  6. package/.next/server/app/_not-found/page.js +1 -1
  7. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  8. package/.next/server/app/_not-found.html +1 -1
  9. package/.next/server/app/_not-found.rsc +17 -16
  10. package/.next/server/app/api/project/rename/route_client-reference-manifest.js +1 -1
  11. package/.next/server/app/api/projects/memory/route_client-reference-manifest.js +1 -1
  12. package/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  13. package/.next/server/app/api/projects/sessions/route_client-reference-manifest.js +1 -1
  14. package/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  15. package/.next/server/app/api/session/delete/route_client-reference-manifest.js +1 -1
  16. package/.next/server/app/api/session/duplicate/route_client-reference-manifest.js +1 -1
  17. package/.next/server/app/api/session/export/route.js +10 -0
  18. package/.next/server/app/api/session/export/route.js.nft.json +1 -0
  19. package/.next/server/app/api/session/export/route_client-reference-manifest.js +1 -0
  20. package/.next/server/app/api/summary/route_client-reference-manifest.js +1 -1
  21. package/.next/server/app/api/sync/route_client-reference-manifest.js +1 -1
  22. package/.next/server/app/index.html +1 -1
  23. package/.next/server/app/index.rsc +22 -21
  24. package/.next/server/app/page.js +1 -1
  25. package/.next/server/app/page.js.nft.json +1 -1
  26. package/.next/server/app/page_client-reference-manifest.js +1 -1
  27. package/.next/server/app/project/[projectPath]/page.js +1 -1
  28. package/.next/server/app/project/[projectPath]/page.js.nft.json +1 -1
  29. package/.next/server/app/project/[projectPath]/page_client-reference-manifest.js +1 -1
  30. package/.next/server/app/project/[projectPath]/session/[sessionId]/page.js +2 -2
  31. package/.next/server/app/project/[projectPath]/session/[sessionId]/page.js.nft.json +1 -1
  32. package/.next/server/app/project/[projectPath]/session/[sessionId]/page_client-reference-manifest.js +1 -1
  33. package/.next/server/app/project/[projectPath]/session/[sessionId]/subagent/[agentId]/page.js +1 -1
  34. package/.next/server/app/project/[projectPath]/session/[sessionId]/subagent/[agentId]/page.js.nft.json +1 -1
  35. package/.next/server/app/project/[projectPath]/session/[sessionId]/subagent/[agentId]/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/search/page.js +1 -1
  37. package/.next/server/app/search/page.js.nft.json +1 -1
  38. package/.next/server/app/search/page_client-reference-manifest.js +1 -1
  39. package/.next/server/app-paths-manifest.json +6 -5
  40. package/.next/server/chunks/{444.js → 301.js} +1 -1
  41. package/.next/server/chunks/976.js +1 -0
  42. package/.next/server/pages/404.html +1 -1
  43. package/.next/server/pages/500.html +1 -1
  44. package/.next/server/server-reference-manifest.json +1 -1
  45. package/.next/static/chunks/app/api/project/rename/route-ebc63ab88ecc0d35.js +1 -0
  46. package/.next/static/chunks/app/api/projects/memory/route-ebc63ab88ecc0d35.js +1 -0
  47. package/.next/static/chunks/app/api/projects/route-ebc63ab88ecc0d35.js +1 -0
  48. package/.next/static/chunks/app/api/projects/sessions/route-ebc63ab88ecc0d35.js +1 -0
  49. package/.next/static/chunks/app/api/search/route-ebc63ab88ecc0d35.js +1 -0
  50. package/.next/static/chunks/app/api/session/delete/route-ebc63ab88ecc0d35.js +1 -0
  51. package/.next/static/chunks/app/api/session/duplicate/route-ebc63ab88ecc0d35.js +1 -0
  52. package/.next/static/chunks/app/api/session/export/route-ebc63ab88ecc0d35.js +1 -0
  53. package/.next/static/chunks/app/api/summary/route-ebc63ab88ecc0d35.js +1 -0
  54. package/.next/static/chunks/app/api/sync/route-ebc63ab88ecc0d35.js +1 -0
  55. package/.next/static/chunks/app/layout-39895c8c5b8e9d12.js +1 -0
  56. package/.next/static/chunks/app/project/[projectPath]/session/[sessionId]/page-f237cb096030d860.js +1 -0
  57. package/.next/static/chunks/app/project/[projectPath]/session/[sessionId]/subagent/[agentId]/page-85cdf2a5b0b48877.js +1 -0
  58. package/.next/static/css/9b30e272714585a0.css +3 -0
  59. package/.next/static/eLuvDN7dFjFRb5lWVG8sW/_buildManifest.js +1 -0
  60. package/package.json +1 -1
  61. package/.next/server/chunks/326.js +0 -1
  62. package/.next/static/YZ7RTphifTYj1eT09NCb-/_buildManifest.js +0 -1
  63. package/.next/static/chunks/app/api/project/rename/route-1fc244a2aaefa07e.js +0 -1
  64. package/.next/static/chunks/app/api/projects/memory/route-1fc244a2aaefa07e.js +0 -1
  65. package/.next/static/chunks/app/api/projects/route-1fc244a2aaefa07e.js +0 -1
  66. package/.next/static/chunks/app/api/projects/sessions/route-1fc244a2aaefa07e.js +0 -1
  67. package/.next/static/chunks/app/api/search/route-1fc244a2aaefa07e.js +0 -1
  68. package/.next/static/chunks/app/api/session/delete/route-1fc244a2aaefa07e.js +0 -1
  69. package/.next/static/chunks/app/api/session/duplicate/route-1fc244a2aaefa07e.js +0 -1
  70. package/.next/static/chunks/app/api/summary/route-1fc244a2aaefa07e.js +0 -1
  71. package/.next/static/chunks/app/api/sync/route-1fc244a2aaefa07e.js +0 -1
  72. package/.next/static/chunks/app/layout-106c55be3e0b55bb.js +0 -1
  73. package/.next/static/chunks/app/project/[projectPath]/session/[sessionId]/page-d60041c8b8b3711f.js +0 -1
  74. package/.next/static/chunks/app/project/[projectPath]/session/[sessionId]/subagent/[agentId]/page-3b9e735517257589.js +0 -1
  75. package/.next/static/css/09912a2e06f56b69.css +0 -3
  76. /package/.next/static/{YZ7RTphifTYj1eT09NCb- → eLuvDN7dFjFRb5lWVG8sW}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{1458:(e,t,s)=>{"use strict";s.d(t,{D:()=>r,ThemeProvider:()=>o});var l=s(5155),a=s(2115);let n=(0,a.createContext)({theme:"system",resolved:"dark",setTheme:()=>{},cycle:()=>{}});function r(){return(0,a.useContext)(n)}function o(e){let{children:t}=e,[s,r]=(0,a.useState)("system"),[o,i]=(0,a.useState)("dark");(0,a.useEffect)(()=>{let e=localStorage.getItem("theme");e&&["light","dark","system"].includes(e)&&r(e)},[]),(0,a.useEffect)(()=>{let e="system"===s?window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark":s;if(i(e),document.documentElement.setAttribute("data-theme",e),"system"===s){let e=window.matchMedia("(prefers-color-scheme: light)"),t=()=>{let t=e.matches?"light":"dark";i(t),document.documentElement.setAttribute("data-theme",t)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}},[s]);let c=(0,a.useCallback)(e=>{r(e),localStorage.setItem("theme",e)},[]),m=(0,a.useCallback)(()=>{let e=["system","light","dark"];c(e[(e.indexOf(s)+1)%e.length])},[s,c]);return(0,l.jsx)(n.Provider,{value:{theme:s,resolved:o,setTheme:c,cycle:m},children:t})}},2368:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,4179,23)),Promise.resolve().then(s.t.bind(s,5917,23)),Promise.resolve().then(s.t.bind(s,3673,23)),Promise.resolve().then(s.bind(s,4184)),Promise.resolve().then(s.bind(s,5014)),Promise.resolve().then(s.bind(s,1458))},3673:()=>{},4179:e=>{e.exports={style:{fontFamily:"'DM Sans', 'DM Sans Fallback'",fontStyle:"normal"},className:"__className_0d7163",variable:"__variable_0d7163"}},4184:(e,t,s)=>{"use strict";s.d(t,{AutoSync:()=>a});var l=s(2115);function a(){return(0,l.useEffect)(()=>{fetch("/api/sync",{method:"POST"}).catch(()=>{})},[]),null}},5014:(e,t,s)=>{"use strict";s.d(t,{FontSizeProvider:()=>i,e:()=>r});var l=s(5155),a=s(2115);let n=(0,a.createContext)({fontSize:"medium",setFontSize:()=>{},cycle:()=>{}});function r(){return(0,a.useContext)(n)}let o=["small","medium","large"];function i(e){let{children:t}=e,[s,r]=(0,a.useState)("medium");(0,a.useEffect)(()=>{let e=localStorage.getItem("fontSize");e&&o.includes(e)&&r(e)},[]),(0,a.useEffect)(()=>{document.documentElement.setAttribute("data-font-size",s)},[s]);let i=(0,a.useCallback)(e=>{r(e),localStorage.setItem("fontSize",e)},[]),c=(0,a.useCallback)(()=>{i(o[(o.indexOf(s)+1)%o.length])},[s,i]);return(0,l.jsx)(n.Provider,{value:{fontSize:s,setFontSize:i,cycle:c},children:t})}},5917:e=>{e.exports={style:{fontFamily:"'JetBrains Mono', 'JetBrains Mono Fallback'",fontStyle:"normal"},className:"__className_3c557b",variable:"__variable_3c557b"}}},e=>{e.O(0,[940,441,255,358],()=>e(e.s=2368)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[810],{4580:(e,t,s)=>{"use strict";s.d(t,{ExportButton:()=>r});var n=s(5155);function r(e){let{encodedPath:t,sessionId:s,agentId:r}=e;return(0,n.jsxs)("button",{onClick:function(){let e=new URLSearchParams({encodedPath:t,sessionId:s});r&&e.set("agentId",r),window.location.href="/api/session/export?".concat(e.toString())},className:"px-3 py-1.5 text-sm text-content-secondary hover:text-content-primary hover:bg-surface-elevated border border-edge-subtle rounded-lg transition-all flex items-center gap-2",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})}),"Export"]})}},6221:(e,t,s)=>{"use strict";s.d(t,{ChatView:()=>m});var n=s(5155),r=s(2115),a=s(856),o=s(467);function c(e){let{message:t,compact:s=!1}=e,[c,l]=(0,r.useState)(!1),i="user"===t.type,d=function(e,t){if("string"==typeof e)return e;let s=[];for(let n of e)if("text"===n.type)s.push(n.text);else if("tool_use"===n.type)s.push("[Tool: ".concat(n.name,"]"));else if("tool_result"===n.type&&t){let e="string"==typeof n.content?n.content:JSON.stringify(n.content);s.push("[Tool Result: ".concat(e.slice(0,500)).concat(e.length>500?"...":"","]"))}return s.join("\n\n")}(t.message.content,c),x=s&&!c&&d.length>300?d.slice(0,300)+"...":d,m=s&&d.length>300;return(0,n.jsx)("div",{className:"flex ".concat(i?"justify-end":"justify-start"),children:(0,n.jsxs)("div",{className:"max-w-[85%] rounded-2xl px-4 py-3 ".concat(i?"bg-accent/15 border border-accent/20 text-content-primary rounded-br-md":"bg-surface-elevated border border-edge-subtle text-content-primary rounded-bl-md"),children:[(0,n.jsxs)("div",{className:"text-[11px] mb-1.5 ".concat(i?"text-accent/60":"text-content-tertiary"),children:[i?"You":"Claude"," \xb7 ",(0,o.r6)(t.timestamp)]}),i?(0,n.jsx)("div",{className:"text-sm whitespace-pre-wrap break-words leading-relaxed",children:c?d:x}):(0,n.jsx)("div",{className:"text-sm leading-relaxed [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_p]:mb-2 [&_ul]:mb-2 [&_ol]:mb-2 [&_ul]:pl-4 [&_ol]:pl-4 [&_ul]:list-disc [&_ol]:list-decimal [&_li]:mb-0.5 [&_h1]:text-base [&_h1]:font-semibold [&_h1]:mb-1.5 [&_h2]:text-sm [&_h2]:font-semibold [&_h2]:mb-1 [&_h3]:text-sm [&_h3]:font-medium [&_h3]:mb-1 [&_code]:bg-surface-base [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs [&_code]:font-mono [&_pre]:bg-surface-base [&_pre]:p-3 [&_pre]:rounded-lg [&_pre]:overflow-x-auto [&_pre]:text-xs [&_pre]:mb-2 [&_blockquote]:border-l-2 [&_blockquote]:border-edge-subtle [&_blockquote]:pl-3 [&_blockquote]:text-content-secondary [&_hr]:border-edge-subtle [&_hr]:my-2",children:(0,n.jsx)(a.oz,{children:c?d:x})}),m&&(0,n.jsx)("button",{onClick:()=>l(!c),className:"mt-2 text-xs font-medium ".concat(i?"text-accent/70 hover:text-accent":"text-accent hover:text-accent-hover"," transition-colors"),children:c?"Show less":"Show more"})]})})}function l(e){let{name:t,args:s,timestamp:r}=e;return(0,n.jsx)("div",{className:"flex justify-end py-1",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-surface border border-edge-subtle text-xs",children:[(0,n.jsx)("svg",{className:"w-3 h-3 text-accent shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9l3 3-3 3m5 0h3"})}),(0,n.jsx)("span",{className:"text-accent font-mono font-medium",children:t}),s&&(0,n.jsx)("span",{className:"text-content-secondary font-mono",children:s}),(0,n.jsx)("span",{className:"text-content-tertiary ml-1",children:(0,o.r6)(r)})]})})}function i(e){var t;let{content:s,timestamp:r}=e,a=function(e){let t=e.match(/^<([\w-]+)>([\s\S]*?)<\/[\w-]+>/);return t?{tag:t[1],body:t[2].trim()}:null}(s),c=a?a.tag.replace(/^local-command-/,"").replace(/-/g," "):"system",l=null!=(t=null==a?void 0:a.body)?t:"",i=l.length>80?l.slice(0,80)+"…":l;return(0,n.jsx)("div",{className:"flex justify-end py-1",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-surface border border-edge-subtle text-xs text-content-tertiary max-w-[85%]",children:[(0,n.jsx)("span",{className:"font-medium shrink-0",children:c}),i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"opacity-40",children:"\xb7"}),(0,n.jsx)("span",{className:"font-mono truncate",children:i})]}),(0,n.jsx)("span",{className:"opacity-40 shrink-0 ml-1",children:(0,o.r6)(r)})]})})}var d=s(931);function x(e){let{agent:t}=e;return(0,n.jsxs)("button",{onClick:()=>{let e=document.getElementById("subagent-".concat(t.agentId));if(e){let t=e.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:t,behavior:"smooth"})}},className:"flex items-center gap-2 mt-1 mb-1 ml-4 px-3 py-1.5 text-xs text-accent hover:text-accent-hover bg-surface hover:bg-surface-elevated border border-edge-subtle hover:border-edge-hover rounded-lg transition-all",children:[(0,n.jsx)("svg",{className:"w-3.5 h-3.5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 3H5a2 2 0 00-2 2v4m6-6h10a2 2 0 012 2v4M9 3v18m0 0h10a2 2 0 002-2V9M9 21H5a2 2 0 01-2-2V9m0 0h18"})}),(0,n.jsx)("span",{className:"font-mono",children:t.slug}),(0,n.jsx)("span",{className:"text-content-tertiary",children:"\xb7"}),(0,n.jsx)("span",{className:"text-content-tertiary truncate max-w-xs",children:t.firstMessage}),(0,n.jsx)("svg",{className:"w-3.5 h-3.5 flex-shrink-0 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}function m(e){let{messages:t,previewCount:s=50,highlightMessageId:a,showHidden:m=!1,subagents:u}=e,[h,p]=(0,r.useState)(!!a),g=(0,r.useRef)(null),f=[...(0,r.useMemo)(()=>m?t:t.filter(e=>!(0,d.X4)(e)&&!(0,d.B1)(e)),[t,m])].sort((e,t)=>(0,o.EH)(e.timestamp)-(0,o.EH)(t.timestamp)),b=h?f:f.slice(0,s),j=f.length>s;(0,r.useEffect)(()=>{a&&g.current&&g.current.scrollIntoView({behavior:"smooth",block:"center"})},[a]);let v=new Map;if(u&&u.length>0){let e=[...t].sort((e,t)=>(0,o.EH)(e.timestamp)-(0,o.EH)(t.timestamp)),s=new Set(b.map(e=>e.uuid)),n=0;for(let t=0;t<e.length;t++){var y;let r=e[t],a="string"==typeof r.message.content?0:r.message.content.filter(e=>"tool_use"===e.type&&"Task"===e.name).length;if(0===a)continue;let o=s.has(r.uuid)?r.uuid:null;if(!o){for(let n=t-1;n>=0;n--)if(s.has(e[n].uuid)){o=e[n].uuid;break}}if(!o){for(let n=t+1;n<e.length;n++)if(s.has(e[n].uuid)){o=e[n].uuid;break}}if(o){let e=null!=(y=v.get(o))?y:[];for(let t=0;t<a&&n<u.length;t++)e.push(u[n++]);v.set(o,e)}else n+=a}}return(0,n.jsxs)("div",{className:"space-y-4",children:[b.map((e,t)=>{var s;let r=a===e.uuid,o=null!=(s=v.get(e.uuid))?s:[];return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{ref:r?g:void 0,className:"".concat(r?"ring-2 ring-accent ring-offset-2 ring-offset-base rounded-2xl":""," animate-in stagger-").concat(Math.min(t+1,10)),children:(()=>{let t=(0,d.iP)(e.message.content),s=(0,d.Tc)(t);return s?(0,n.jsx)(l,{name:s.name,args:s.args,timestamp:e.timestamp}):m&&(0,d.X4)(e)?(0,n.jsx)(i,{content:t,timestamp:e.timestamp}):(0,n.jsx)(c,{message:e,compact:!h})})()}),o.map(e=>(0,n.jsx)(x,{agent:e},e.agentId))]},e.uuid)}),j&&(0,n.jsx)("div",{className:"flex justify-center pt-4",children:(0,n.jsx)("button",{onClick:()=>p(!h),className:"flex items-center gap-2 px-5 py-2.5 text-sm text-accent hover:text-accent-hover bg-surface hover:bg-surface-elevated border border-edge-subtle hover:border-edge-hover rounded-xl transition-all",children:h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})}),"Show preview only"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),"Show all ",f.length," messages"]})})}),0===b.length&&(0,n.jsx)("div",{className:"text-center py-16 text-content-tertiary animate-fade",children:"No messages in this session"})]})}},7054:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,2619,23)),Promise.resolve().then(s.bind(s,6229)),Promise.resolve().then(s.bind(s,6281)),Promise.resolve().then(s.bind(s,7192)),Promise.resolve().then(s.bind(s,3389)),Promise.resolve().then(s.bind(s,449))},7192:(e,t,s)=>{"use strict";s.d(t,{SessionContent:()=>f});var n=s(5155),r=s(2115),a=s(467),o=s(6221);function c(e){let{sessionId:t}=e,[s,a]=(0,r.useState)(!0),[o,c]=(0,r.useState)(!1),l=s?"claude --dangerously-skip-permissions --resume ".concat(t):"claude --resume ".concat(t);async function i(){await navigator.clipboard.writeText(l),c(!0),setTimeout(()=>c(!1),2e3)}return(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0 flex items-center gap-2 px-3 py-1.5 bg-surface-elevated border border-edge-subtle rounded-lg font-mono text-xs text-content-secondary overflow-x-auto scrollbar-thin",children:[(0,n.jsx)("span",{className:"text-accent select-none shrink-0",children:"$"}),(0,n.jsx)("span",{className:"whitespace-nowrap",children:l})]}),(0,n.jsx)("button",{onClick:i,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg transition-all shrink-0 ".concat(o?"bg-success/15 text-success border border-success/20":"bg-accent/10 text-accent hover:bg-accent/20 border border-accent/20"),children:o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Copied"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})}),"Copy"]})})]}),(0,n.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-content-tertiary cursor-pointer select-none w-fit",children:[(0,n.jsx)("input",{type:"checkbox",checked:s,onChange:e=>a(e.target.checked),className:"w-3.5 h-3.5 rounded border-edge-hover bg-surface-elevated text-accent focus:ring-accent focus:ring-offset-0 cursor-pointer"}),"Skip permissions"]})]})}var l=s(7650),i=s(63);function d(e){let{encodedPath:t,sessionId:s,totalMessageCount:a,strippedMessageCount:o}=e,c=(0,i.useRouter)(),[d,x]=(0,r.useState)(!1),[m,u]=(0,r.useState)(""),[h,p]=(0,r.useState)(!1),[g,f]=(0,r.useState)(!1),[b,j]=(0,r.useState)(null),v=(0,r.useRef)(null);(0,r.useEffect)(()=>{d&&(u(""),p(!1),j(null),setTimeout(()=>{var e;return null==(e=v.current)?void 0:e.focus()},0))},[d]),(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&d&&!g&&x(!1)}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[d,g]);let y=m?parseInt(m,10):void 0,k=!m||y&&y>0,N=h?o:a,w=y?Math.min(y,N):N,C=a>0?Math.round((1-w/a)*100):0;async function _(){if(!k)return void j("Please enter a valid positive number.");f(!0),j(null);try{let e=await fetch("/api/session/duplicate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({encodedPath:t,sessionId:s,keepLastN:y,stripToolResults:h})}),n=await e.json();if(!e.ok)throw Error(n.error||"Failed to duplicate session");c.push("/project/".concat(t,"/session/").concat(n.newSessionId))}catch(e){j(e instanceof Error?e.message:"Unknown error")}finally{f(!1)}}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{onClick:()=>x(!0),className:"px-3 py-1.5 text-sm text-accent hover:text-accent-hover hover:bg-accent/10 border border-accent/20 rounded-lg transition-all flex items-center gap-2",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})}),"Duplicate"]}),d&&(0,l.createPortal)((0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm animate-fade",onClick:g?void 0:()=>x(!1)}),(0,n.jsxs)("div",{className:"relative bg-surface-elevated border border-edge rounded-2xl p-6 w-full max-w-md mx-4 shadow-2xl animate-modal",children:[(0,n.jsx)("h2",{className:"text-lg font-medium text-content-primary mb-4",children:"Duplicate Session"}),(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("label",{htmlFor:"keepLastN",className:"block text-sm text-content-secondary mb-2",children:"Keep last N messages (optional)"}),(0,n.jsx)("input",{ref:v,id:"keepLastN",type:"number",min:"1",value:m,onChange:e=>u(e.target.value),disabled:g,className:"w-full px-3 py-2.5 bg-surface border border-edge rounded-xl text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 disabled:opacity-50 transition-all",placeholder:"Leave empty for all ".concat(a," messages")})]}),(0,n.jsx)("div",{className:"mb-4",children:(0,n.jsxs)("label",{className:"flex items-center gap-2 text-sm text-content-secondary cursor-pointer",children:[(0,n.jsx)("input",{type:"checkbox",checked:h,onChange:e=>p(e.target.checked),disabled:g,className:"w-4 h-4 rounded border-edge-hover bg-surface text-accent focus:ring-accent focus:ring-offset-0 disabled:opacity-50"}),"Strip tool results & system messages"]})}),(0,n.jsxs)("div",{className:"text-sm text-content-secondary mb-4 p-3 bg-surface rounded-xl border border-edge-subtle",children:[(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("span",{children:"Original"}),(0,n.jsxs)("span",{className:"text-content-primary",children:[a," messages"]})]}),(0,n.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,n.jsx)("span",{children:"Result"}),(0,n.jsxs)("span",{className:"text-content-primary",children:[w," messages"]})]}),C>0&&(0,n.jsxs)("div",{className:"flex justify-between mt-1 text-accent",children:[(0,n.jsx)("span",{children:"Reduction"}),(0,n.jsxs)("span",{children:[C,"%"]})]})]}),b&&(0,n.jsx)("p",{className:"text-sm text-danger mb-4",children:b}),(0,n.jsxs)("div",{className:"flex items-center justify-end gap-3",children:[(0,n.jsx)("button",{type:"button",onClick:()=>x(!1),disabled:g,className:"px-4 py-2 text-sm text-content-secondary hover:text-content-primary transition-colors disabled:opacity-50",children:"Cancel"}),(0,n.jsxs)("button",{onClick:_,disabled:g||!k,className:"px-4 py-2 text-sm font-medium bg-accent hover:bg-accent-hover text-white rounded-xl transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[g&&(0,n.jsxs)("svg",{className:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),g?"Duplicating...":"Duplicate"]})]})]})]}),document.body)]})}function x(e){let{encodedPath:t,sessionId:s}=e,a=(0,i.useRouter)(),[o,c]=(0,r.useState)(!1),[d,x]=(0,r.useState)(!1),[m,u]=(0,r.useState)(null);async function h(){x(!0),u(null);try{let e=await fetch("/api/session/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({encodedPath:t,sessionId:s})}),n=await e.json();if(!e.ok)throw Error(n.error||"Failed to delete session");a.push("/project/".concat(t))}catch(e){u(e instanceof Error?e.message:"Unknown error")}finally{x(!1)}}return(0,r.useEffect)(()=>{o&&u(null)},[o]),(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&o&&!d&&c(!1)}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o,d]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{onClick:()=>c(!0),className:"px-3 py-1.5 text-sm text-danger hover:text-danger-hover hover:bg-danger/10 border border-danger/20 rounded-lg transition-all flex items-center gap-2",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),"Delete"]}),o&&(0,l.createPortal)((0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm animate-fade",onClick:d?void 0:()=>c(!1)}),(0,n.jsxs)("div",{className:"relative bg-surface-elevated border border-edge rounded-2xl p-6 w-full max-w-md mx-4 shadow-2xl animate-modal",children:[(0,n.jsx)("h2",{className:"text-lg font-medium text-content-primary mb-4",children:"Delete Session"}),(0,n.jsx)("p",{className:"text-sm text-content-secondary mb-4",children:"Are you sure you want to delete this session? This action cannot be undone."}),m&&(0,n.jsx)("p",{className:"text-sm text-danger mb-4",children:m}),(0,n.jsxs)("div",{className:"flex items-center justify-end gap-3",children:[(0,n.jsx)("button",{type:"button",onClick:()=>c(!1),disabled:d,className:"px-4 py-2 text-sm text-content-secondary hover:text-content-primary transition-colors disabled:opacity-50",children:"Cancel"}),(0,n.jsxs)("button",{onClick:h,disabled:d,className:"px-4 py-2 text-sm font-medium bg-danger hover:bg-danger-hover text-white rounded-xl transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[d&&(0,n.jsxs)("svg",{className:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),d?"Deleting...":"Delete"]})]})]})]}),document.body)]})}var m=s(7625),u=s(2619),h=s.n(u);function p(e){let{subagents:t,projectPath:s,sessionId:r}=e;return 0===t.length?null:(0,n.jsxs)("div",{id:"subagents",className:"mt-8 animate-in stagger-2",children:[(0,n.jsxs)("h2",{className:"text-sm font-medium text-content-secondary mb-3 flex items-center gap-2",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 3H5a2 2 0 00-2 2v4m6-6h10a2 2 0 012 2v4M9 3v18m0 0h10a2 2 0 002-2V9M9 21H5a2 2 0 01-2-2V9m0 0h18"})}),"Subagents (",t.length,")"]}),(0,n.jsx)("div",{className:"grid gap-2",children:t.map(e=>(0,n.jsx)(h(),{id:"subagent-".concat(e.agentId),href:"/project/".concat(s,"/session/").concat(r,"/subagent/").concat(e.agentId),className:"block bg-surface border border-edge-subtle rounded-lg px-4 py-3 hover:border-edge-hover hover:bg-surface-elevated transition-all group",children:(0,n.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,n.jsx)("span",{className:"text-xs font-mono text-accent",children:e.slug}),(0,n.jsx)("span",{className:"text-xs text-content-tertiary",children:"\xb7"}),(0,n.jsxs)("span",{className:"text-xs text-content-tertiary",children:[e.messageCount," messages"]}),(0,n.jsx)("span",{className:"text-xs text-content-tertiary",children:"\xb7"}),(0,n.jsx)("span",{className:"text-xs text-content-tertiary",children:(0,a.fw)(e.lastActivity)})]}),(0,n.jsx)("p",{className:"text-sm text-content-secondary truncate",children:e.firstMessage})]}),(0,n.jsx)("svg",{className:"w-4 h-4 text-content-tertiary group-hover:text-content-secondary flex-shrink-0 mt-0.5 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})},e.agentId))})]})}var g=s(4580);function f(e){let{projectPath:t,sessionId:s,messageCount:l,lastActivity:i,tokenUsage:u,totalMessageCount:h,strippedMessageCount:f,messages:b,highlightMessageId:j,subagents:v}=e,[y,k]=(0,r.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"mb-6 bg-surface border border-edge-subtle rounded-xl animate-in",children:[(0,n.jsxs)("div",{className:"px-4 py-3 flex items-center gap-4 text-sm text-content-secondary",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})}),l," messages"]}),(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,a.fw)(i)]}),(0,n.jsx)("span",{className:"text-xs text-content-tertiary hidden sm:inline",children:(0,a.r6)(i)}),(0,n.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-content-tertiary cursor-pointer ml-auto",children:[(0,n.jsx)("input",{type:"checkbox",checked:y,onChange:e=>k(e.target.checked),className:"w-3.5 h-3.5 rounded border-edge-hover bg-surface-elevated text-accent focus:ring-accent focus:ring-offset-0"}),"System messages"]})]}),(0,n.jsx)("div",{className:"border-t border-edge-subtle px-4 py-3",children:(0,n.jsx)(c,{sessionId:s})}),u&&(0,n.jsxs)("div",{className:"border-t border-edge-subtle px-4 py-2.5 flex flex-wrap items-center gap-x-4 gap-y-1 text-xs",children:[(0,n.jsx)("span",{className:"text-content-tertiary font-medium",children:"Tokens"}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-content-tertiary",children:"in"})," ",(0,n.jsx)("span",{className:"text-content-primary font-mono",children:(0,a.ap)(u.input_tokens)})]}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-content-tertiary",children:"out"})," ",(0,n.jsx)("span",{className:"text-content-primary font-mono",children:(0,a.ap)(u.output_tokens)})]}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-content-tertiary",children:"cache read"})," ",(0,n.jsx)("span",{className:"text-content-primary font-mono",children:(0,a.ap)(u.cache_read_input_tokens)})]}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-content-tertiary",children:"cache write"})," ",(0,n.jsx)("span",{className:"text-content-primary font-mono",children:(0,a.ap)(u.cache_creation_input_tokens)})]})]}),(0,n.jsxs)("div",{className:"border-t border-edge-subtle px-4 py-2.5 flex items-center justify-end gap-2",children:[v&&v.length>0&&(0,n.jsxs)("button",{onClick:()=>{let e=document.getElementById("subagents");if(e){let t=e.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:t,behavior:"smooth"})}},className:"flex items-center gap-1.5 px-3 py-1.5 text-sm text-accent hover:text-accent-hover hover:bg-accent/10 border border-accent/20 rounded-lg transition-all mr-auto",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 3H5a2 2 0 00-2 2v4m6-6h10a2 2 0 012 2v4M9 3v18m0 0h10a2 2 0 002-2V9M9 21H5a2 2 0 01-2-2V9m0 0h18"})}),v.length," sub-agent",1!==v.length?"s":""]}),(0,n.jsx)(g.ExportButton,{encodedPath:t,sessionId:s}),(0,n.jsx)(d,{encodedPath:t,sessionId:s,totalMessageCount:h,strippedMessageCount:f}),(0,n.jsx)(x,{encodedPath:t,sessionId:s})]})]}),(0,n.jsx)("div",{className:"mb-6 animate-in stagger-1",children:(0,n.jsx)(m.SummarySection,{type:"session",projectPath:t,sessionId:s,messageCount:l})}),(0,n.jsx)(o.ChatView,{messages:b,highlightMessageId:j,showHidden:y,subagents:v}),v&&v.length>0&&(0,n.jsx)(p,{subagents:v,projectPath:t,sessionId:s})]})}}},e=>{e.O(0,[176,856,969,441,255,358],()=>e(e.s=7054)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[653],{4580:(e,t,n)=>{"use strict";n.d(t,{ExportButton:()=>r});var s=n(5155);function r(e){let{encodedPath:t,sessionId:n,agentId:r}=e;return(0,s.jsxs)("button",{onClick:function(){let e=new URLSearchParams({encodedPath:t,sessionId:n});r&&e.set("agentId",r),window.location.href="/api/session/export?".concat(e.toString())},className:"px-3 py-1.5 text-sm text-content-secondary hover:text-content-primary hover:bg-surface-elevated border border-edge-subtle rounded-lg transition-all flex items-center gap-2",children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})}),"Export"]})}},6221:(e,t,n)=>{"use strict";n.d(t,{ChatView:()=>u});var s=n(5155),r=n(2115),o=n(856),l=n(467);function a(e){let{message:t,compact:n=!1}=e,[a,i]=(0,r.useState)(!1),c="user"===t.type,d=function(e,t){if("string"==typeof e)return e;let n=[];for(let s of e)if("text"===s.type)n.push(s.text);else if("tool_use"===s.type)n.push("[Tool: ".concat(s.name,"]"));else if("tool_result"===s.type&&t){let e="string"==typeof s.content?s.content:JSON.stringify(s.content);n.push("[Tool Result: ".concat(e.slice(0,500)).concat(e.length>500?"...":"","]"))}return n.join("\n\n")}(t.message.content,a),m=n&&!a&&d.length>300?d.slice(0,300)+"...":d,u=n&&d.length>300;return(0,s.jsx)("div",{className:"flex ".concat(c?"justify-end":"justify-start"),children:(0,s.jsxs)("div",{className:"max-w-[85%] rounded-2xl px-4 py-3 ".concat(c?"bg-accent/15 border border-accent/20 text-content-primary rounded-br-md":"bg-surface-elevated border border-edge-subtle text-content-primary rounded-bl-md"),children:[(0,s.jsxs)("div",{className:"text-[11px] mb-1.5 ".concat(c?"text-accent/60":"text-content-tertiary"),children:[c?"You":"Claude"," \xb7 ",(0,l.r6)(t.timestamp)]}),c?(0,s.jsx)("div",{className:"text-sm whitespace-pre-wrap break-words leading-relaxed",children:a?d:m}):(0,s.jsx)("div",{className:"text-sm leading-relaxed [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_p]:mb-2 [&_ul]:mb-2 [&_ol]:mb-2 [&_ul]:pl-4 [&_ol]:pl-4 [&_ul]:list-disc [&_ol]:list-decimal [&_li]:mb-0.5 [&_h1]:text-base [&_h1]:font-semibold [&_h1]:mb-1.5 [&_h2]:text-sm [&_h2]:font-semibold [&_h2]:mb-1 [&_h3]:text-sm [&_h3]:font-medium [&_h3]:mb-1 [&_code]:bg-surface-base [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs [&_code]:font-mono [&_pre]:bg-surface-base [&_pre]:p-3 [&_pre]:rounded-lg [&_pre]:overflow-x-auto [&_pre]:text-xs [&_pre]:mb-2 [&_blockquote]:border-l-2 [&_blockquote]:border-edge-subtle [&_blockquote]:pl-3 [&_blockquote]:text-content-secondary [&_hr]:border-edge-subtle [&_hr]:my-2",children:(0,s.jsx)(o.oz,{children:a?d:m})}),u&&(0,s.jsx)("button",{onClick:()=>i(!a),className:"mt-2 text-xs font-medium ".concat(c?"text-accent/70 hover:text-accent":"text-accent hover:text-accent-hover"," transition-colors"),children:a?"Show less":"Show more"})]})})}function i(e){let{name:t,args:n,timestamp:r}=e;return(0,s.jsx)("div",{className:"flex justify-end py-1",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-surface border border-edge-subtle text-xs",children:[(0,s.jsx)("svg",{className:"w-3 h-3 text-accent shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9l3 3-3 3m5 0h3"})}),(0,s.jsx)("span",{className:"text-accent font-mono font-medium",children:t}),n&&(0,s.jsx)("span",{className:"text-content-secondary font-mono",children:n}),(0,s.jsx)("span",{className:"text-content-tertiary ml-1",children:(0,l.r6)(r)})]})})}function c(e){var t;let{content:n,timestamp:r}=e,o=function(e){let t=e.match(/^<([\w-]+)>([\s\S]*?)<\/[\w-]+>/);return t?{tag:t[1],body:t[2].trim()}:null}(n),a=o?o.tag.replace(/^local-command-/,"").replace(/-/g," "):"system",i=null!=(t=null==o?void 0:o.body)?t:"",c=i.length>80?i.slice(0,80)+"…":i;return(0,s.jsx)("div",{className:"flex justify-end py-1",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-surface border border-edge-subtle text-xs text-content-tertiary max-w-[85%]",children:[(0,s.jsx)("span",{className:"font-medium shrink-0",children:a}),c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"opacity-40",children:"\xb7"}),(0,s.jsx)("span",{className:"font-mono truncate",children:c})]}),(0,s.jsx)("span",{className:"opacity-40 shrink-0 ml-1",children:(0,l.r6)(r)})]})})}var d=n(931);function m(e){let{agent:t}=e;return(0,s.jsxs)("button",{onClick:()=>{let e=document.getElementById("subagent-".concat(t.agentId));if(e){let t=e.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:t,behavior:"smooth"})}},className:"flex items-center gap-2 mt-1 mb-1 ml-4 px-3 py-1.5 text-xs text-accent hover:text-accent-hover bg-surface hover:bg-surface-elevated border border-edge-subtle hover:border-edge-hover rounded-lg transition-all",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 3H5a2 2 0 00-2 2v4m6-6h10a2 2 0 012 2v4M9 3v18m0 0h10a2 2 0 002-2V9M9 21H5a2 2 0 01-2-2V9m0 0h18"})}),(0,s.jsx)("span",{className:"font-mono",children:t.slug}),(0,s.jsx)("span",{className:"text-content-tertiary",children:"\xb7"}),(0,s.jsx)("span",{className:"text-content-tertiary truncate max-w-xs",children:t.firstMessage}),(0,s.jsx)("svg",{className:"w-3.5 h-3.5 flex-shrink-0 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}function u(e){let{messages:t,previewCount:n=50,highlightMessageId:o,showHidden:u=!1,subagents:h}=e,[x,p]=(0,r.useState)(!!o),f=(0,r.useRef)(null),g=[...(0,r.useMemo)(()=>u?t:t.filter(e=>!(0,d.X4)(e)&&!(0,d.B1)(e)),[t,u])].sort((e,t)=>(0,l.EH)(e.timestamp)-(0,l.EH)(t.timestamp)),b=x?g:g.slice(0,n),v=g.length>n;(0,r.useEffect)(()=>{o&&f.current&&f.current.scrollIntoView({behavior:"smooth",block:"center"})},[o]);let j=new Map;if(h&&h.length>0){let e=[...t].sort((e,t)=>(0,l.EH)(e.timestamp)-(0,l.EH)(t.timestamp)),n=new Set(b.map(e=>e.uuid)),s=0;for(let t=0;t<e.length;t++){var k;let r=e[t],o="string"==typeof r.message.content?0:r.message.content.filter(e=>"tool_use"===e.type&&"Task"===e.name).length;if(0===o)continue;let l=n.has(r.uuid)?r.uuid:null;if(!l){for(let s=t-1;s>=0;s--)if(n.has(e[s].uuid)){l=e[s].uuid;break}}if(!l){for(let s=t+1;s<e.length;s++)if(n.has(e[s].uuid)){l=e[s].uuid;break}}if(l){let e=null!=(k=j.get(l))?k:[];for(let t=0;t<o&&s<h.length;t++)e.push(h[s++]);j.set(l,e)}else s+=o}}return(0,s.jsxs)("div",{className:"space-y-4",children:[b.map((e,t)=>{var n;let r=o===e.uuid,l=null!=(n=j.get(e.uuid))?n:[];return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{ref:r?f:void 0,className:"".concat(r?"ring-2 ring-accent ring-offset-2 ring-offset-base rounded-2xl":""," animate-in stagger-").concat(Math.min(t+1,10)),children:(()=>{let t=(0,d.iP)(e.message.content),n=(0,d.Tc)(t);return n?(0,s.jsx)(i,{name:n.name,args:n.args,timestamp:e.timestamp}):u&&(0,d.X4)(e)?(0,s.jsx)(c,{content:t,timestamp:e.timestamp}):(0,s.jsx)(a,{message:e,compact:!x})})()}),l.map(e=>(0,s.jsx)(m,{agent:e},e.agentId))]},e.uuid)}),v&&(0,s.jsx)("div",{className:"flex justify-center pt-4",children:(0,s.jsx)("button",{onClick:()=>p(!x),className:"flex items-center gap-2 px-5 py-2.5 text-sm text-accent hover:text-accent-hover bg-surface hover:bg-surface-elevated border border-edge-subtle hover:border-edge-hover rounded-xl transition-all",children:x?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})}),"Show preview only"]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),"Show all ",g.length," messages"]})})}),0===b.length&&(0,s.jsx)("div",{className:"text-center py-16 text-content-tertiary animate-fade",children:"No messages in this session"})]})}},7940:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,2619,23)),Promise.resolve().then(n.bind(n,6221)),Promise.resolve().then(n.bind(n,4580)),Promise.resolve().then(n.bind(n,6229)),Promise.resolve().then(n.bind(n,6281)),Promise.resolve().then(n.bind(n,7625)),Promise.resolve().then(n.bind(n,3389)),Promise.resolve().then(n.bind(n,449))}},e=>{e.O(0,[176,856,969,441,255,358],()=>e(e.s=7940)),_N_E=e.O()}]);
@@ -0,0 +1,3 @@
1
+ @font-face{font-family:DM Sans;font-style:normal;font-weight:100 1000;font-display:swap;src:url(/_next/static/media/7ab938503e4547a1-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:DM Sans;font-style:normal;font-weight:100 1000;font-display:swap;src:url(/_next/static/media/13971731025ec697-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:DM Sans Fallback;src:local("Arial");ascent-override:94.90%;descent-override:29.66%;line-gap-override:0.00%;size-adjust:104.53%}.__className_0d7163{font-family:DM Sans,DM Sans Fallback;font-style:normal}.__variable_0d7163{--font-sans:"DM Sans","DM Sans Fallback"}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/886030b0b59bc5a7-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/0aa834ed78bf6d07-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/67957d42bae0796d-s.woff2) format("woff2");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/f911b923c6adde36-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/939c4f875ee75fbb-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/bb3ef058b751a6ad-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:JetBrains Mono Fallback;src:local("Arial");ascent-override:75.79%;descent-override:22.29%;line-gap-override:0.00%;size-adjust:134.59%}.__className_3c557b{font-family:JetBrains Mono,JetBrains Mono Fallback;font-style:normal}.__variable_3c557b{--font-mono:"JetBrains Mono","JetBrains Mono Fallback"}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*
2
+ ! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
3
+ */*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--font-mono),Menlo,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.left-3{left:.75rem}.right-3{right:.75rem}.top-0{top:0}.top-1\/2{top:50%}.z-10{z-index:10}.z-50{z-index:50}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.-ml-2{margin-left:-.5rem}.-mr-1\.5{margin-right:-.375rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.line-clamp-2{-webkit-line-clamp:2}.line-clamp-2,.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.line-clamp-3{-webkit-line-clamp:3}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[18px\]{height:18px}.max-h-\[85vh\]{max-height:85vh}.min-h-screen{min-height:100vh}.w-12{width:3rem}.w-16{width:4rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-\[18px\]{width:18px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-\[85\%\]{max-width:85%}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-accent{--tw-border-opacity:1;border-color:rgb(var(--accent)/var(--tw-border-opacity,1))}.border-accent\/20{border-color:rgb(var(--accent)/.2)}.border-danger\/20{border-color:rgb(var(--error)/.2)}.border-edge{--tw-border-opacity:1;border-color:rgb(var(--border-default)/var(--tw-border-opacity,1))}.border-edge-hover{--tw-border-opacity:1;border-color:rgb(var(--border-hover)/var(--tw-border-opacity,1))}.border-edge-subtle{--tw-border-opacity:1;border-color:rgb(var(--border-subtle)/var(--tw-border-opacity,1))}.border-success\/20{border-color:rgb(var(--success)/.2)}.border-t-accent{--tw-border-opacity:1;border-top-color:rgb(var(--accent)/var(--tw-border-opacity,1))}.bg-accent{--tw-bg-opacity:1;background-color:rgb(var(--accent)/var(--tw-bg-opacity,1))}.bg-accent\/10{background-color:rgb(var(--accent)/.1)}.bg-accent\/15{background-color:rgb(var(--accent)/.15)}.bg-black\/70{background-color:rgb(0 0 0/.7)}.bg-danger{--tw-bg-opacity:1;background-color:rgb(var(--error)/var(--tw-bg-opacity,1))}.bg-info\/15{background-color:rgb(var(--info)/.15)}.bg-success\/15{background-color:rgb(var(--success)/.15)}.bg-surface{--tw-bg-opacity:1;background-color:rgb(var(--bg-surface)/var(--tw-bg-opacity,1))}.bg-surface-elevated{--tw-bg-opacity:1;background-color:rgb(var(--bg-elevated)/var(--tw-bg-opacity,1))}.bg-surface\/80{background-color:rgb(var(--bg-surface)/.8)}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pr-10{padding-right:2.5rem}.pr-16{padding-right:4rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.font-mono{font-family:var(--font-mono),Menlo,monospace}.font-sans{font-family:var(--font-sans),system-ui,sans-serif}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[14px\]{font-size:14px}.text-\[17px\]{font-size:17px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.text-accent{--tw-text-opacity:1;color:rgb(var(--accent)/var(--tw-text-opacity,1))}.text-accent\/60{color:rgb(var(--accent)/.6)}.text-accent\/70{color:rgb(var(--accent)/.7)}.text-accent\/80{color:rgb(var(--accent)/.8)}.text-content-primary{--tw-text-opacity:1;color:rgb(var(--text-primary)/var(--tw-text-opacity,1))}.text-content-secondary{--tw-text-opacity:1;color:rgb(var(--text-secondary)/var(--tw-text-opacity,1))}.text-content-tertiary{--tw-text-opacity:1;color:rgb(var(--text-tertiary)/var(--tw-text-opacity,1))}.text-content-tertiary\/50{color:rgb(var(--text-tertiary)/.5)}.text-danger{--tw-text-opacity:1;color:rgb(var(--error)/var(--tw-text-opacity,1))}.text-info{--tw-text-opacity:1;color:rgb(var(--info)/var(--tw-text-opacity,1))}.text-success{--tw-text-opacity:1;color:rgb(var(--success)/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-content-tertiary::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--text-tertiary)/var(--tw-placeholder-opacity,1))}.placeholder-content-tertiary::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--text-tertiary)/var(--tw-placeholder-opacity,1))}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgb(0 0 0/0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-accent{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--accent)/var(--tw-ring-opacity,1))}.ring-offset-2{--tw-ring-offset-width:2px}.ring-offset-base{--tw-ring-offset-color:rgb(var(--bg-base)/1)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px)}.backdrop-blur-md,.backdrop-blur-sm{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}:root{--bg-base:11 10 9;--bg-surface:19 18 15;--bg-elevated:28 26 22;--bg-overlay:36 34 30;--border-subtle:38 36 32;--border-default:54 51 46;--border-hover:77 72 66;--accent:199 125 79;--accent-hover:217 154 108;--text-primary:236 232 228;--text-secondary:185 180 172;--text-tertiary:140 135 126;--success:107 143 113;--error:199 84 80;--error-hover:212 112 108;--info:107 143 179}[data-theme=light]{--bg-base:252 250 247;--bg-surface:255 254 252;--bg-elevated:245 242 237;--bg-overlay:237 233 227;--border-subtle:230 226 218;--border-default:213 208 199;--border-hover:187 181 172;--accent:175 95 45;--accent-hover:155 80 35;--text-primary:28 25 22;--text-secondary:105 99 90;--text-tertiary:160 153 143;--success:68 125 75;--error:195 65 60;--error-hover:175 50 45;--info:55 115 165}:root[data-font-size=small]{font-size:14px}:root[data-font-size=large]{font-size:18px}body{background-color:rgb(var(--bg-base));background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.025) 1px,transparent 0);background-size:32px 32px;color:rgb(var(--text-primary));-webkit-font-smoothing:antialiased}[data-theme=light] body{background-image:radial-gradient(circle at 1px 1px,rgba(0,0,0,.04) 1px,transparent 0)}@keyframes fade-in-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes slide-up{0%{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.animate-in{animation:fade-in-up .45s cubic-bezier(.16,1,.3,1) both}.animate-fade{animation:fade-in .3s ease both}.animate-modal{animation:slide-up .35s cubic-bezier(.16,1,.3,1) both}.stagger-1{animation-delay:30ms}.stagger-2{animation-delay:60ms}.stagger-3{animation-delay:90ms}.stagger-4{animation-delay:.12s}.stagger-5{animation-delay:.15s}.stagger-6{animation-delay:.18s}.stagger-7{animation-delay:.21s}.stagger-8{animation-delay:.24s}.stagger-9{animation-delay:.27s}.stagger-10{animation-delay:.3s}.skeleton-shimmer{background:linear-gradient(90deg,rgb(var(--bg-elevated)) 0,rgb(var(--bg-overlay)) 50%,rgb(var(--bg-elevated)) 100%);background-size:200% 100%;animation:shimmer 2s ease-in-out infinite}.scrollbar-thin::-webkit-scrollbar{width:6px;height:6px}.scrollbar-thin::-webkit-scrollbar-track{background:transparent}.scrollbar-thin::-webkit-scrollbar-thumb{background:rgb(var(--border-default));border-radius:3px}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background:rgb(var(--border-hover))}select option{background:rgb(var(--bg-surface));color:rgb(var(--text-primary))}.hover\:border-accent\/50:hover{border-color:rgb(var(--accent)/.5)}.hover\:border-edge-hover:hover{--tw-border-opacity:1;border-color:rgb(var(--border-hover)/var(--tw-border-opacity,1))}.hover\:bg-accent-hover:hover{--tw-bg-opacity:1;background-color:rgb(var(--accent-hover)/var(--tw-bg-opacity,1))}.hover\:bg-accent\/10:hover{background-color:rgb(var(--accent)/.1)}.hover\:bg-accent\/20:hover{background-color:rgb(var(--accent)/.2)}.hover\:bg-danger-hover:hover{--tw-bg-opacity:1;background-color:rgb(var(--error-hover)/var(--tw-bg-opacity,1))}.hover\:bg-danger\/10:hover{background-color:rgb(var(--error)/.1)}.hover\:bg-surface:hover{--tw-bg-opacity:1;background-color:rgb(var(--bg-surface)/var(--tw-bg-opacity,1))}.hover\:bg-surface-elevated:hover{--tw-bg-opacity:1;background-color:rgb(var(--bg-elevated)/var(--tw-bg-opacity,1))}.hover\:text-accent:hover{--tw-text-opacity:1;color:rgb(var(--accent)/var(--tw-text-opacity,1))}.hover\:text-accent-hover:hover{--tw-text-opacity:1;color:rgb(var(--accent-hover)/var(--tw-text-opacity,1))}.hover\:text-content-primary:hover{--tw-text-opacity:1;color:rgb(var(--text-primary)/var(--tw-text-opacity,1))}.hover\:text-content-secondary:hover{--tw-text-opacity:1;color:rgb(var(--text-secondary)/var(--tw-text-opacity,1))}.hover\:text-danger-hover:hover{--tw-text-opacity:1;color:rgb(var(--error-hover)/var(--tw-text-opacity,1))}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\:shadow-accent\/\[0\.04\]:hover{--tw-shadow-color:rgb(var(--accent)/0.04);--tw-shadow:var(--tw-shadow-colored)}.focus\:border-accent:focus{--tw-border-opacity:1;border-color:rgb(var(--accent)/var(--tw-border-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-accent:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--accent)/var(--tw-ring-opacity,1))}.focus\:ring-accent\/30:focus{--tw-ring-color:rgb(var(--accent)/0.3)}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:text-accent{--tw-text-opacity:1;color:rgb(var(--accent)/var(--tw-text-opacity,1))}.group:hover .group-hover\:text-content-secondary{--tw-text-opacity:1;color:rgb(var(--text-secondary)/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\:block{display:block}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:flex-row{flex-direction:row}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:1024px){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.\[\&\>\*\:first-child\]\:mt-0>:first-child{margin-top:0}.\[\&\>\*\:last-child\]\:mb-0>:last-child{margin-bottom:0}.\[\&\>mark\]\:rounded>mark{border-radius:.25rem}.\[\&\>mark\]\:bg-accent\/25>mark{background-color:rgb(var(--accent)/.25)}.\[\&\>mark\]\:px-0\.5>mark{padding-left:.125rem;padding-right:.125rem}.\[\&\>mark\]\:text-accent-hover>mark{--tw-text-opacity:1;color:rgb(var(--accent-hover)/var(--tw-text-opacity,1))}.\[\&_blockquote\]\:border-l-2 blockquote{border-left-width:2px}.\[\&_blockquote\]\:border-edge-subtle blockquote{--tw-border-opacity:1;border-color:rgb(var(--border-subtle)/var(--tw-border-opacity,1))}.\[\&_blockquote\]\:pl-3 blockquote{padding-left:.75rem}.\[\&_blockquote\]\:text-content-secondary blockquote{--tw-text-opacity:1;color:rgb(var(--text-secondary)/var(--tw-text-opacity,1))}.\[\&_code\]\:rounded code{border-radius:.25rem}.\[\&_code\]\:px-1 code{padding-left:.25rem;padding-right:.25rem}.\[\&_code\]\:py-0\.5 code{padding-top:.125rem;padding-bottom:.125rem}.\[\&_code\]\:font-mono code{font-family:var(--font-mono),Menlo,monospace}.\[\&_code\]\:text-xs code{font-size:.75rem;line-height:1rem}.\[\&_h1\]\:mb-1\.5 h1{margin-bottom:.375rem}.\[\&_h1\]\:text-base h1{font-size:1rem;line-height:1.5rem}.\[\&_h1\]\:font-semibold h1{font-weight:600}.\[\&_h1\]\:text-base h1{--tw-text-opacity:1;color:rgb(var(--bg-base)/var(--tw-text-opacity,1))}.\[\&_h2\]\:mb-1 h2{margin-bottom:.25rem}.\[\&_h2\]\:text-sm h2{font-size:.875rem;line-height:1.25rem}.\[\&_h2\]\:font-semibold h2{font-weight:600}.\[\&_h3\]\:mb-1 h3{margin-bottom:.25rem}.\[\&_h3\]\:text-sm h3{font-size:.875rem;line-height:1.25rem}.\[\&_h3\]\:font-medium h3{font-weight:500}.\[\&_hr\]\:my-2 hr{margin-top:.5rem;margin-bottom:.5rem}.\[\&_hr\]\:border-edge-subtle hr{--tw-border-opacity:1;border-color:rgb(var(--border-subtle)/var(--tw-border-opacity,1))}.\[\&_li\]\:mb-0\.5 li{margin-bottom:.125rem}.\[\&_ol\]\:mb-2 ol{margin-bottom:.5rem}.\[\&_ol\]\:list-decimal ol{list-style-type:decimal}.\[\&_ol\]\:pl-4 ol{padding-left:1rem}.\[\&_p\]\:mb-2 p,.\[\&_pre\]\:mb-2 pre{margin-bottom:.5rem}.\[\&_pre\]\:overflow-x-auto pre{overflow-x:auto}.\[\&_pre\]\:rounded-lg pre{border-radius:.5rem}.\[\&_pre\]\:p-3 pre{padding:.75rem}.\[\&_pre\]\:text-xs pre{font-size:.75rem;line-height:1rem}.\[\&_ul\]\:mb-2 ul{margin-bottom:.5rem}.\[\&_ul\]\:list-disc ul{list-style-type:disc}.\[\&_ul\]\:pl-4 ul{padding-left:1rem}
@@ -0,0 +1 @@
1
+ self.__BUILD_MANIFEST=function(e,r,t,_){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:13,errorRate:1e-4,numBits:250,numHashes:14,bitArray:[0,1,0,1,e,e,e,e,r,r,e,r,e,e,e,r,r,e,e,r,r,r,e,e,e,r,r,e,e,r,r,r,e,e,e,r,r,e,e,e,e,e,e,e,r,e,r,e,e,r,e,r,r,e,r,e,r,e,r,r,e,r,r,e,e,r,r,r,r,r,r,e,r,e,e,r,e,r,r,e,e,e,e,r,r,e,r,e,e,r,r,e,r,e,e,r,e,e,r,r,r,r,r,r,e,r,r,e,r,e,r,r,r,e,e,r,e,e,r,e,r,e,e,r,e,e,e,r,e,e,r,r,r,e,e,r,e,r,r,r,e,e,e,r,e,r,r,e,e,e,e,e,e,r,e,e,r,r,r,r,r,r,e,e,e,r,r,r,r,e,r,r,r,e,e,r,e,e,r,r,r,e,r,e,e,r,r,e,r,r,e,r,e,r,e,e,e,r,r,r,r,e,r,r,r,e,e,e,r,e,e,e,r,r,e,e,e,r,e,r,e,e,e,r,r,r,e,e,r,e,r,e,e,e,r,e,e,r,e,r,r,r,e,e,r,r,e,e,r,e]},__routerFilterDynamic:{numItems:r,errorRate:1e-4,numBits:20,numHashes:14,bitArray:[r,e,e,r,e,r,r,e,e,e,r,r,e,r,e,r,r,e,e,r]},"/_error":["static/chunks/pages/_error-cb2a52f75f2162e2.js"],sortedPages:["/_app","/_error"]}}(0,1,1e-4,14),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-chats",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "Browse and search your Claude Code chat history",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -1 +0,0 @@
1
- exports.id=326,exports.ids=[326],exports.modules={9079:(a,b,c)=>{Promise.resolve().then(c.bind(c,85864)),Promise.resolve().then(c.bind(c,33340))},12087:(a,b,c)=>{"use strict";c.d(b,{SyncButton:()=>f});var d=c(21124),e=c(38301);function f(){let[a,b]=(0,e.useState)(!1),[c,f]=(0,e.useState)(null),g=async()=>{b(!0),f(null);try{let a=await fetch("/api/sync",{method:"POST"});if(!a.ok)throw Error("Sync failed");let b=await a.json();f(b.sync),window.dispatchEvent(new Event("sync-complete")),setTimeout(()=>f(null),3e3)}catch(a){console.error("Sync error:",a)}finally{b(!1)}};return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("button",{onClick:g,disabled:a,className:"p-2 text-content-tertiary hover:text-content-secondary hover:bg-surface-elevated rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",title:"Resync database",children:(0,d.jsx)("svg",{className:`w-5 h-5 ${a?"animate-spin":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),c&&(c.added>0||c.updated>0||c.removed>0)&&(0,d.jsxs)("div",{className:"text-xs text-content-tertiary whitespace-nowrap animate-fade",children:[c.added>0&&`+${c.added}`,c.updated>0&&` ~${c.updated}`,c.removed>0&&` -${c.removed}`]})]})}},17614:(a,b,c)=>{"use strict";c.d(b,{FontSizeProvider:()=>i,e:()=>g});var d=c(21124),e=c(38301);let f=(0,e.createContext)({fontSize:"medium",setFontSize:()=>{},cycle:()=>{}});function g(){return(0,e.useContext)(f)}let h=["small","medium","large"];function i({children:a}){let[b,c]=(0,e.useState)("medium"),g=(0,e.useCallback)(a=>{c(a),localStorage.setItem("fontSize",a)},[]),i=(0,e.useCallback)(()=>{g(h[(h.indexOf(b)+1)%h.length])},[b,g]);return(0,d.jsx)(f.Provider,{value:{fontSize:b,setFontSize:g,cycle:i},children:a})}},19473:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,81170,23)),Promise.resolve().then(c.t.bind(c,23597,23)),Promise.resolve().then(c.t.bind(c,36893,23)),Promise.resolve().then(c.t.bind(c,89748,23)),Promise.resolve().then(c.t.bind(c,6060,23)),Promise.resolve().then(c.t.bind(c,7184,23)),Promise.resolve().then(c.t.bind(c,69576,23)),Promise.resolve().then(c.t.bind(c,73041,23)),Promise.resolve().then(c.t.bind(c,51384,23))},25969:(a,b,c)=>{"use strict";c.d(b,{ThemeToggle:()=>g});var d=c(21124),e=c(68734);let f={system:"System",light:"Light",dark:"Dark"};function g(){let{theme:a,cycle:b}=(0,e.D)();return(0,d.jsx)("button",{onClick:b,className:"p-2 text-content-tertiary hover:text-content-secondary hover:bg-surface-elevated rounded-lg transition-all flex-shrink-0",title:`Theme: ${f[a]}`,children:"system"===a?(0,d.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}):"light"===a?(0,d.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):(0,d.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})})}},33340:(a,b,c)=>{"use strict";c.d(b,{ThemeProvider:()=>e});var d=c(97954);(0,d.registerClientReference)(function(){throw Error("Attempted to call useTheme() from the server but useTheme is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-provider.tsx","useTheme");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-provider.tsx","ThemeProvider")},35153:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,54160,23)),Promise.resolve().then(c.t.bind(c,31603,23)),Promise.resolve().then(c.t.bind(c,68495,23)),Promise.resolve().then(c.t.bind(c,75170,23)),Promise.resolve().then(c.t.bind(c,77526,23)),Promise.resolve().then(c.t.bind(c,78922,23)),Promise.resolve().then(c.t.bind(c,29234,23)),Promise.resolve().then(c.t.bind(c,12263,23)),Promise.resolve().then(c.bind(c,82146))},45871:(a,b,c)=>{Promise.resolve().then(c.bind(c,17614)),Promise.resolve().then(c.bind(c,68734))},51472:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>l,metadata:()=>k});var d=c(75338),e=c(37785),f=c.n(e),g=c(37855),h=c.n(g),i=c(33340),j=c(85864);c(61135);let k={title:"Claude Code Chats",description:"Browse your Claude Code chat history"};function l({children:a}){return(0,d.jsxs)("html",{lang:"en",suppressHydrationWarning:!0,children:[(0,d.jsx)("head",{children:(0,d.jsx)("script",{dangerouslySetInnerHTML:{__html:'(function(){try{var t=localStorage.getItem("theme");if(t==="light"||t==="dark"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.setAttribute("data-theme",window.matchMedia("(prefers-color-scheme:light)").matches?"light":"dark")}var f=localStorage.getItem("fontSize");if(f==="small"||f==="medium"||f==="large"){document.documentElement.setAttribute("data-font-size",f)}}catch(e){document.documentElement.setAttribute("data-theme","dark")}})()'}})}),(0,d.jsx)("body",{className:`${f().variable} ${h().variable} font-sans min-h-screen antialiased`,children:(0,d.jsx)(i.ThemeProvider,{children:(0,d.jsx)(j.FontSizeProvider,{children:a})})})]})}},61135:()=>{},68734:(a,b,c)=>{"use strict";c.d(b,{D:()=>g,ThemeProvider:()=>h});var d=c(21124),e=c(38301);let f=(0,e.createContext)({theme:"system",resolved:"dark",setTheme:()=>{},cycle:()=>{}});function g(){return(0,e.useContext)(f)}function h({children:a}){let[b,c]=(0,e.useState)("system"),[g,h]=(0,e.useState)("dark"),i=(0,e.useCallback)(a=>{c(a),localStorage.setItem("theme",a)},[]),j=(0,e.useCallback)(()=>{let a=["system","light","dark"];i(a[(a.indexOf(b)+1)%a.length])},[b,i]);return(0,d.jsx)(f.Provider,{value:{theme:b,resolved:g,setTheme:i,cycle:j},children:a})}},85864:(a,b,c)=>{"use strict";c.d(b,{FontSizeProvider:()=>e});var d=c(97954);(0,d.registerClientReference)(function(){throw Error("Attempted to call useFontSize() from the server but useFontSize is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/font-size-provider.tsx","useFontSize");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call FontSizeProvider() from the server but FontSizeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/font-size-provider.tsx","FontSizeProvider")},92155:(a,b,c)=>{"use strict";function d(a){if("number"==typeof a)return a;let b=Date.parse(a);return isNaN(b)?0:b}function e(a){let b=Date.now()-a,c=Math.floor(b/6e4),d=Math.floor(b/36e5),e=Math.floor(b/864e5),f=Math.floor(b/6048e5),g=Math.floor(b/2592e6);if(c<1)return"Just now";if(c<60)return`${c}m ago`;if(d<24)return`${d}h ago`;if(e<7)return`${e}d ago`;if(e<30)return`${f}w ago`;if(g<12)return`${g}mo ago`;let h=Math.floor(g/12);return`${h}y ago`}function f(a){return new Date(d(a)).toLocaleString("en-GB",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function g(a){return a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e4?`${(a/1e3).toFixed(1)}k`:a.toLocaleString("en-GB")}c.d(b,{EH:()=>d,ap:()=>g,fw:()=>e,r6:()=>f})},98091:(a,b,c)=>{"use strict";c.d(b,{GlobalSearch:()=>g});var d=c(21124),e=c(38301),f=c(42378);function g({projectPath:a}){let[b,c]=(0,e.useState)(""),g=(0,f.useRouter)(),h=(0,e.useRef)(null),i=(0,e.useCallback)(c=>{if(c.preventDefault(),b.trim()){let c=new URLSearchParams({q:b.trim()});a&&c.set("project",a),g.push(`/search?${c.toString()}`)}},[b,g,a]),j=a?"Search this project...":"Search all chats...";return(0,d.jsxs)("form",{onSubmit:i,className:"relative",children:[(0,d.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,d.jsx)("input",{ref:h,type:"text",value:b,onChange:a=>c(a.target.value),placeholder:j,className:"w-full pl-10 pr-16 py-2 bg-surface border border-edge-subtle rounded-xl text-sm text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-all"}),!b&&(0,d.jsxs)("kbd",{className:"absolute right-3 top-1/2 -translate-y-1/2 hidden sm:inline-flex items-center gap-0.5 px-1.5 py-0.5 text-[10px] font-mono text-content-tertiary bg-surface-elevated border border-edge-subtle rounded",children:[(0,d.jsx)("span",{className:"text-xs",children:"⌘"}),"K"]})]})}}};
@@ -1 +0,0 @@
1
- self.__BUILD_MANIFEST=function(e,r,t,_){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:12,errorRate:1e-4,numBits:231,numHashes:14,bitArray:[0,0,e,1,e,e,e,1,e,r,r,r,r,e,r,r,r,e,e,r,r,e,e,e,e,e,r,r,e,r,r,r,e,e,r,e,e,e,r,r,e,r,e,e,e,e,e,e,e,r,e,r,r,r,r,e,e,e,r,r,e,e,r,e,r,e,r,r,e,r,r,e,r,r,r,r,r,r,e,e,e,r,r,r,e,e,e,r,e,r,r,r,r,r,r,e,e,r,r,r,r,e,e,e,e,e,r,r,e,e,r,r,e,r,e,e,e,r,e,e,r,r,r,r,e,r,e,r,e,r,e,e,e,r,r,e,r,e,e,e,e,e,r,r,r,r,r,r,e,r,e,e,e,r,r,e,e,e,e,r,e,r,r,r,e,e,e,r,e,e,r,r,r,e,r,r,r,r,r,r,r,e,e,r,e,e,e,r,r,e,r,r,r,r,e,e,r,e,e,e,e,e,e,e,r,e,e,e,e,r,r,r,e,e,r,e,r,e,r,r,r,r,e,e,e,e,e,e,e,e,r]},__routerFilterDynamic:{numItems:r,errorRate:1e-4,numBits:20,numHashes:14,bitArray:[r,e,e,r,e,r,r,e,e,e,r,r,e,r,e,r,r,e,e,r]},"/_error":["static/chunks/pages/_error-cb2a52f75f2162e2.js"],sortedPages:["/_app","/_error"]}}(0,1,1e-4,14),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60,64,202,272,302,364,558,711,862],{4441:()=>{}},_=>{_.O(0,[441,255,358],()=>_(_.s=4441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60,64,202,272,302,364,558,711,862],{4441:()=>{}},_=>{_.O(0,[441,255,358],()=>_(_.s=4441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60,64,202,272,302,364,558,711,862],{4441:()=>{}},_=>{_.O(0,[441,255,358],()=>_(_.s=4441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60,64,202,272,302,364,558,711,862],{4441:()=>{}},_=>{_.O(0,[441,255,358],()=>_(_.s=4441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60,64,202,272,302,364,558,711,862],{4441:()=>{}},_=>{_.O(0,[441,255,358],()=>_(_.s=4441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60,64,202,272,302,364,558,711,862],{4441:()=>{}},_=>{_.O(0,[441,255,358],()=>_(_.s=4441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60,64,202,272,302,364,558,711,862],{4441:()=>{}},_=>{_.O(0,[441,255,358],()=>_(_.s=4441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60,64,202,272,302,364,558,711,862],{4441:()=>{}},_=>{_.O(0,[441,255,358],()=>_(_.s=4441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60,64,202,272,302,364,558,711,862],{4441:()=>{}},_=>{_.O(0,[441,255,358],()=>_(_.s=4441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{1177:(e,t,l)=>{Promise.resolve().then(l.t.bind(l,4179,23)),Promise.resolve().then(l.t.bind(l,5917,23)),Promise.resolve().then(l.t.bind(l,3673,23)),Promise.resolve().then(l.bind(l,5014)),Promise.resolve().then(l.bind(l,1458))},1458:(e,t,l)=>{"use strict";l.d(t,{D:()=>r,ThemeProvider:()=>o});var s=l(5155),a=l(2115);let n=(0,a.createContext)({theme:"system",resolved:"dark",setTheme:()=>{},cycle:()=>{}});function r(){return(0,a.useContext)(n)}function o(e){let{children:t}=e,[l,r]=(0,a.useState)("system"),[o,i]=(0,a.useState)("dark");(0,a.useEffect)(()=>{let e=localStorage.getItem("theme");e&&["light","dark","system"].includes(e)&&r(e)},[]),(0,a.useEffect)(()=>{let e="system"===l?window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark":l;if(i(e),document.documentElement.setAttribute("data-theme",e),"system"===l){let e=window.matchMedia("(prefers-color-scheme: light)"),t=()=>{let t=e.matches?"light":"dark";i(t),document.documentElement.setAttribute("data-theme",t)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}},[l]);let c=(0,a.useCallback)(e=>{r(e),localStorage.setItem("theme",e)},[]),m=(0,a.useCallback)(()=>{let e=["system","light","dark"];c(e[(e.indexOf(l)+1)%e.length])},[l,c]);return(0,s.jsx)(n.Provider,{value:{theme:l,resolved:o,setTheme:c,cycle:m},children:t})}},3673:()=>{},4179:e=>{e.exports={style:{fontFamily:"'DM Sans', 'DM Sans Fallback'",fontStyle:"normal"},className:"__className_0d7163",variable:"__variable_0d7163"}},5014:(e,t,l)=>{"use strict";l.d(t,{FontSizeProvider:()=>i,e:()=>r});var s=l(5155),a=l(2115);let n=(0,a.createContext)({fontSize:"medium",setFontSize:()=>{},cycle:()=>{}});function r(){return(0,a.useContext)(n)}let o=["small","medium","large"];function i(e){let{children:t}=e,[l,r]=(0,a.useState)("medium");(0,a.useEffect)(()=>{let e=localStorage.getItem("fontSize");e&&o.includes(e)&&r(e)},[]),(0,a.useEffect)(()=>{document.documentElement.setAttribute("data-font-size",l)},[l]);let i=(0,a.useCallback)(e=>{r(e),localStorage.setItem("fontSize",e)},[]),c=(0,a.useCallback)(()=>{i(o[(o.indexOf(l)+1)%o.length])},[l,i]);return(0,s.jsx)(n.Provider,{value:{fontSize:l,setFontSize:i,cycle:c},children:t})}},5917:e=>{e.exports={style:{fontFamily:"'JetBrains Mono', 'JetBrains Mono Fallback'",fontStyle:"normal"},className:"__className_3c557b",variable:"__variable_3c557b"}}},e=>{e.O(0,[940,441,255,358],()=>e(e.s=1177)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[810],{6221:(e,t,s)=>{"use strict";s.d(t,{ChatView:()=>x});var n=s(5155),r=s(2115),a=s(856),o=s(467);function c(e){let{message:t,compact:s=!1}=e,[c,l]=(0,r.useState)(!1),i="user"===t.type,d=function(e,t){if("string"==typeof e)return e;let s=[];for(let n of e)if("text"===n.type)s.push(n.text);else if("tool_use"===n.type)s.push("[Tool: ".concat(n.name,"]"));else if("tool_result"===n.type&&t){let e="string"==typeof n.content?n.content:JSON.stringify(n.content);s.push("[Tool Result: ".concat(e.slice(0,500)).concat(e.length>500?"...":"","]"))}return s.join("\n\n")}(t.message.content,c),x=s&&!c&&d.length>300?d.slice(0,300)+"...":d,m=s&&d.length>300;return(0,n.jsx)("div",{className:"flex ".concat(i?"justify-end":"justify-start"),children:(0,n.jsxs)("div",{className:"max-w-[85%] rounded-2xl px-4 py-3 ".concat(i?"bg-accent/15 border border-accent/20 text-content-primary rounded-br-md":"bg-surface-elevated border border-edge-subtle text-content-primary rounded-bl-md"),children:[(0,n.jsxs)("div",{className:"text-[11px] mb-1.5 ".concat(i?"text-accent/60":"text-content-tertiary"),children:[i?"You":"Claude"," \xb7 ",(0,o.r6)(t.timestamp)]}),i?(0,n.jsx)("div",{className:"text-sm whitespace-pre-wrap break-words leading-relaxed",children:c?d:x}):(0,n.jsx)("div",{className:"text-sm leading-relaxed [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_p]:mb-2 [&_ul]:mb-2 [&_ol]:mb-2 [&_ul]:pl-4 [&_ol]:pl-4 [&_ul]:list-disc [&_ol]:list-decimal [&_li]:mb-0.5 [&_h1]:text-base [&_h1]:font-semibold [&_h1]:mb-1.5 [&_h2]:text-sm [&_h2]:font-semibold [&_h2]:mb-1 [&_h3]:text-sm [&_h3]:font-medium [&_h3]:mb-1 [&_code]:bg-surface-base [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs [&_code]:font-mono [&_pre]:bg-surface-base [&_pre]:p-3 [&_pre]:rounded-lg [&_pre]:overflow-x-auto [&_pre]:text-xs [&_pre]:mb-2 [&_blockquote]:border-l-2 [&_blockquote]:border-edge-subtle [&_blockquote]:pl-3 [&_blockquote]:text-content-secondary [&_hr]:border-edge-subtle [&_hr]:my-2",children:(0,n.jsx)(a.oz,{children:c?d:x})}),m&&(0,n.jsx)("button",{onClick:()=>l(!c),className:"mt-2 text-xs font-medium ".concat(i?"text-accent/70 hover:text-accent":"text-accent hover:text-accent-hover"," transition-colors"),children:c?"Show less":"Show more"})]})})}function l(e){let{name:t,args:s,timestamp:r}=e;return(0,n.jsx)("div",{className:"flex justify-end py-1",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-surface border border-edge-subtle text-xs",children:[(0,n.jsx)("svg",{className:"w-3 h-3 text-accent shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9l3 3-3 3m5 0h3"})}),(0,n.jsx)("span",{className:"text-accent font-mono font-medium",children:t}),s&&(0,n.jsx)("span",{className:"text-content-secondary font-mono",children:s}),(0,n.jsx)("span",{className:"text-content-tertiary ml-1",children:(0,o.r6)(r)})]})})}function i(e){var t;let{content:s,timestamp:r}=e,a=function(e){let t=e.match(/^<([\w-]+)>([\s\S]*?)<\/[\w-]+>/);return t?{tag:t[1],body:t[2].trim()}:null}(s),c=a?a.tag.replace(/^local-command-/,"").replace(/-/g," "):"system",l=null!=(t=null==a?void 0:a.body)?t:"",i=l.length>80?l.slice(0,80)+"…":l;return(0,n.jsx)("div",{className:"flex justify-end py-1",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-surface border border-edge-subtle text-xs text-content-tertiary max-w-[85%]",children:[(0,n.jsx)("span",{className:"font-medium shrink-0",children:c}),i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"opacity-40",children:"\xb7"}),(0,n.jsx)("span",{className:"font-mono truncate",children:i})]}),(0,n.jsx)("span",{className:"opacity-40 shrink-0 ml-1",children:(0,o.r6)(r)})]})})}var d=s(931);function x(e){let{messages:t,previewCount:s=50,highlightMessageId:a,showHidden:x=!1}=e,[m,u]=(0,r.useState)(!!a),h=(0,r.useRef)(null),p=[...(0,r.useMemo)(()=>x?t:t.filter(e=>!(0,d.X4)(e)&&!(0,d.B1)(e)),[t,x])].sort((e,t)=>(0,o.EH)(e.timestamp)-(0,o.EH)(t.timestamp)),f=m?p:p.slice(0,s),g=p.length>s;return(0,r.useEffect)(()=>{a&&h.current&&h.current.scrollIntoView({behavior:"smooth",block:"center"})},[a]),(0,n.jsxs)("div",{className:"space-y-4",children:[f.map((e,t)=>{let s=a===e.uuid;return(0,n.jsx)("div",{ref:s?h:void 0,className:"".concat(s?"ring-2 ring-accent ring-offset-2 ring-offset-base rounded-2xl":""," animate-in stagger-").concat(Math.min(t+1,10)),children:(()=>{let t=(0,d.iP)(e.message.content),s=(0,d.Tc)(t);return s?(0,n.jsx)(l,{name:s.name,args:s.args,timestamp:e.timestamp}):x&&(0,d.X4)(e)?(0,n.jsx)(i,{content:t,timestamp:e.timestamp}):(0,n.jsx)(c,{message:e,compact:!m})})()},e.uuid)}),g&&(0,n.jsx)("div",{className:"flex justify-center pt-4",children:(0,n.jsx)("button",{onClick:()=>u(!m),className:"flex items-center gap-2 px-5 py-2.5 text-sm text-accent hover:text-accent-hover bg-surface hover:bg-surface-elevated border border-edge-subtle hover:border-edge-hover rounded-xl transition-all",children:m?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})}),"Show preview only"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),"Show all ",p.length," messages"]})})}),0===f.length&&(0,n.jsx)("div",{className:"text-center py-16 text-content-tertiary animate-fade",children:"No messages in this session"})]})}},7054:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,2619,23)),Promise.resolve().then(s.bind(s,6229)),Promise.resolve().then(s.bind(s,6281)),Promise.resolve().then(s.bind(s,7192)),Promise.resolve().then(s.bind(s,3389)),Promise.resolve().then(s.bind(s,449))},7192:(e,t,s)=>{"use strict";s.d(t,{SessionContent:()=>f});var n=s(5155),r=s(2115),a=s(467),o=s(6221);function c(e){let{sessionId:t}=e,[s,a]=(0,r.useState)(!0),[o,c]=(0,r.useState)(!1),l=s?"claude --dangerously-skip-permissions --resume ".concat(t):"claude --resume ".concat(t);async function i(){await navigator.clipboard.writeText(l),c(!0),setTimeout(()=>c(!1),2e3)}return(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0 flex items-center gap-2 px-3 py-1.5 bg-surface-elevated border border-edge-subtle rounded-lg font-mono text-xs text-content-secondary overflow-x-auto scrollbar-thin",children:[(0,n.jsx)("span",{className:"text-accent select-none shrink-0",children:"$"}),(0,n.jsx)("span",{className:"whitespace-nowrap",children:l})]}),(0,n.jsx)("button",{onClick:i,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg transition-all shrink-0 ".concat(o?"bg-success/15 text-success border border-success/20":"bg-accent/10 text-accent hover:bg-accent/20 border border-accent/20"),children:o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Copied"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})}),"Copy"]})})]}),(0,n.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-content-tertiary cursor-pointer select-none w-fit",children:[(0,n.jsx)("input",{type:"checkbox",checked:s,onChange:e=>a(e.target.checked),className:"w-3.5 h-3.5 rounded border-edge-hover bg-surface-elevated text-accent focus:ring-accent focus:ring-offset-0 cursor-pointer"}),"Skip permissions"]})]})}var l=s(7650),i=s(63);function d(e){let{encodedPath:t,sessionId:s,totalMessageCount:a,strippedMessageCount:o}=e,c=(0,i.useRouter)(),[d,x]=(0,r.useState)(!1),[m,u]=(0,r.useState)(""),[h,p]=(0,r.useState)(!1),[f,g]=(0,r.useState)(!1),[b,j]=(0,r.useState)(null),v=(0,r.useRef)(null);(0,r.useEffect)(()=>{d&&(u(""),p(!1),j(null),setTimeout(()=>{var e;return null==(e=v.current)?void 0:e.focus()},0))},[d]),(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&d&&!f&&x(!1)}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[d,f]);let y=m?parseInt(m,10):void 0,N=!m||y&&y>0,k=h?o:a,w=y?Math.min(y,k):k,_=a>0?Math.round((1-w/a)*100):0;async function C(){if(!N)return void j("Please enter a valid positive number.");g(!0),j(null);try{let e=await fetch("/api/session/duplicate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({encodedPath:t,sessionId:s,keepLastN:y,stripToolResults:h})}),n=await e.json();if(!e.ok)throw Error(n.error||"Failed to duplicate session");c.push("/project/".concat(t,"/session/").concat(n.newSessionId))}catch(e){j(e instanceof Error?e.message:"Unknown error")}finally{g(!1)}}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{onClick:()=>x(!0),className:"px-3 py-1.5 text-sm text-accent hover:text-accent-hover hover:bg-accent/10 border border-accent/20 rounded-lg transition-all flex items-center gap-2",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})}),"Duplicate"]}),d&&(0,l.createPortal)((0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm animate-fade",onClick:f?void 0:()=>x(!1)}),(0,n.jsxs)("div",{className:"relative bg-surface-elevated border border-edge rounded-2xl p-6 w-full max-w-md mx-4 shadow-2xl animate-modal",children:[(0,n.jsx)("h2",{className:"text-lg font-medium text-content-primary mb-4",children:"Duplicate Session"}),(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("label",{htmlFor:"keepLastN",className:"block text-sm text-content-secondary mb-2",children:"Keep last N messages (optional)"}),(0,n.jsx)("input",{ref:v,id:"keepLastN",type:"number",min:"1",value:m,onChange:e=>u(e.target.value),disabled:f,className:"w-full px-3 py-2.5 bg-surface border border-edge rounded-xl text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 disabled:opacity-50 transition-all",placeholder:"Leave empty for all ".concat(a," messages")})]}),(0,n.jsx)("div",{className:"mb-4",children:(0,n.jsxs)("label",{className:"flex items-center gap-2 text-sm text-content-secondary cursor-pointer",children:[(0,n.jsx)("input",{type:"checkbox",checked:h,onChange:e=>p(e.target.checked),disabled:f,className:"w-4 h-4 rounded border-edge-hover bg-surface text-accent focus:ring-accent focus:ring-offset-0 disabled:opacity-50"}),"Strip tool results & system messages"]})}),(0,n.jsxs)("div",{className:"text-sm text-content-secondary mb-4 p-3 bg-surface rounded-xl border border-edge-subtle",children:[(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("span",{children:"Original"}),(0,n.jsxs)("span",{className:"text-content-primary",children:[a," messages"]})]}),(0,n.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,n.jsx)("span",{children:"Result"}),(0,n.jsxs)("span",{className:"text-content-primary",children:[w," messages"]})]}),_>0&&(0,n.jsxs)("div",{className:"flex justify-between mt-1 text-accent",children:[(0,n.jsx)("span",{children:"Reduction"}),(0,n.jsxs)("span",{children:[_,"%"]})]})]}),b&&(0,n.jsx)("p",{className:"text-sm text-danger mb-4",children:b}),(0,n.jsxs)("div",{className:"flex items-center justify-end gap-3",children:[(0,n.jsx)("button",{type:"button",onClick:()=>x(!1),disabled:f,className:"px-4 py-2 text-sm text-content-secondary hover:text-content-primary transition-colors disabled:opacity-50",children:"Cancel"}),(0,n.jsxs)("button",{onClick:C,disabled:f||!N,className:"px-4 py-2 text-sm font-medium bg-accent hover:bg-accent-hover text-white rounded-xl transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[f&&(0,n.jsxs)("svg",{className:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),f?"Duplicating...":"Duplicate"]})]})]})]}),document.body)]})}function x(e){let{encodedPath:t,sessionId:s}=e,a=(0,i.useRouter)(),[o,c]=(0,r.useState)(!1),[d,x]=(0,r.useState)(!1),[m,u]=(0,r.useState)(null);async function h(){x(!0),u(null);try{let e=await fetch("/api/session/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({encodedPath:t,sessionId:s})}),n=await e.json();if(!e.ok)throw Error(n.error||"Failed to delete session");a.push("/project/".concat(t))}catch(e){u(e instanceof Error?e.message:"Unknown error")}finally{x(!1)}}return(0,r.useEffect)(()=>{o&&u(null)},[o]),(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&o&&!d&&c(!1)}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o,d]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{onClick:()=>c(!0),className:"px-3 py-1.5 text-sm text-danger hover:text-danger-hover hover:bg-danger/10 border border-danger/20 rounded-lg transition-all flex items-center gap-2",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),"Delete"]}),o&&(0,l.createPortal)((0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm animate-fade",onClick:d?void 0:()=>c(!1)}),(0,n.jsxs)("div",{className:"relative bg-surface-elevated border border-edge rounded-2xl p-6 w-full max-w-md mx-4 shadow-2xl animate-modal",children:[(0,n.jsx)("h2",{className:"text-lg font-medium text-content-primary mb-4",children:"Delete Session"}),(0,n.jsx)("p",{className:"text-sm text-content-secondary mb-4",children:"Are you sure you want to delete this session? This action cannot be undone."}),m&&(0,n.jsx)("p",{className:"text-sm text-danger mb-4",children:m}),(0,n.jsxs)("div",{className:"flex items-center justify-end gap-3",children:[(0,n.jsx)("button",{type:"button",onClick:()=>c(!1),disabled:d,className:"px-4 py-2 text-sm text-content-secondary hover:text-content-primary transition-colors disabled:opacity-50",children:"Cancel"}),(0,n.jsxs)("button",{onClick:h,disabled:d,className:"px-4 py-2 text-sm font-medium bg-danger hover:bg-danger-hover text-white rounded-xl transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[d&&(0,n.jsxs)("svg",{className:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),d?"Deleting...":"Delete"]})]})]})]}),document.body)]})}var m=s(7625),u=s(2619),h=s.n(u);function p(e){let{subagents:t,projectPath:s,sessionId:r}=e;return 0===t.length?null:(0,n.jsxs)("div",{className:"mt-8 animate-in stagger-2",children:[(0,n.jsxs)("h2",{className:"text-sm font-medium text-content-secondary mb-3 flex items-center gap-2",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 3H5a2 2 0 00-2 2v4m6-6h10a2 2 0 012 2v4M9 3v18m0 0h10a2 2 0 002-2V9M9 21H5a2 2 0 01-2-2V9m0 0h18"})}),"Subagents (",t.length,")"]}),(0,n.jsx)("div",{className:"grid gap-2",children:t.map(e=>(0,n.jsx)(h(),{href:"/project/".concat(s,"/session/").concat(r,"/subagent/").concat(e.agentId),className:"block bg-surface border border-edge-subtle rounded-lg px-4 py-3 hover:border-edge-hover hover:bg-surface-elevated transition-all group",children:(0,n.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,n.jsx)("span",{className:"text-xs font-mono text-accent",children:e.slug}),(0,n.jsx)("span",{className:"text-xs text-content-tertiary",children:"\xb7"}),(0,n.jsxs)("span",{className:"text-xs text-content-tertiary",children:[e.messageCount," messages"]}),(0,n.jsx)("span",{className:"text-xs text-content-tertiary",children:"\xb7"}),(0,n.jsx)("span",{className:"text-xs text-content-tertiary",children:(0,a.fw)(e.lastActivity)})]}),(0,n.jsx)("p",{className:"text-sm text-content-secondary truncate",children:e.firstMessage})]}),(0,n.jsx)("svg",{className:"w-4 h-4 text-content-tertiary group-hover:text-content-secondary flex-shrink-0 mt-0.5 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})},e.agentId))})]})}function f(e){let{projectPath:t,sessionId:s,messageCount:l,lastActivity:i,tokenUsage:u,totalMessageCount:h,strippedMessageCount:f,messages:g,highlightMessageId:b,subagents:j}=e,[v,y]=(0,r.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"mb-6 bg-surface border border-edge-subtle rounded-xl animate-in",children:[(0,n.jsxs)("div",{className:"px-4 py-3 flex items-center gap-4 text-sm text-content-secondary",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})}),l," messages"]}),(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,a.fw)(i)]}),(0,n.jsx)("span",{className:"text-xs text-content-tertiary hidden sm:inline",children:(0,a.r6)(i)}),(0,n.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-content-tertiary cursor-pointer ml-auto",children:[(0,n.jsx)("input",{type:"checkbox",checked:v,onChange:e=>y(e.target.checked),className:"w-3.5 h-3.5 rounded border-edge-hover bg-surface-elevated text-accent focus:ring-accent focus:ring-offset-0"}),"System messages"]})]}),(0,n.jsx)("div",{className:"border-t border-edge-subtle px-4 py-3",children:(0,n.jsx)(c,{sessionId:s})}),u&&(0,n.jsxs)("div",{className:"border-t border-edge-subtle px-4 py-2.5 flex flex-wrap items-center gap-x-4 gap-y-1 text-xs",children:[(0,n.jsx)("span",{className:"text-content-tertiary font-medium",children:"Tokens"}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-content-tertiary",children:"in"})," ",(0,n.jsx)("span",{className:"text-content-primary font-mono",children:(0,a.ap)(u.input_tokens)})]}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-content-tertiary",children:"out"})," ",(0,n.jsx)("span",{className:"text-content-primary font-mono",children:(0,a.ap)(u.output_tokens)})]}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-content-tertiary",children:"cache read"})," ",(0,n.jsx)("span",{className:"text-content-primary font-mono",children:(0,a.ap)(u.cache_read_input_tokens)})]}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-content-tertiary",children:"cache write"})," ",(0,n.jsx)("span",{className:"text-content-primary font-mono",children:(0,a.ap)(u.cache_creation_input_tokens)})]})]}),(0,n.jsxs)("div",{className:"border-t border-edge-subtle px-4 py-2.5 flex items-center justify-end gap-2",children:[(0,n.jsx)(d,{encodedPath:t,sessionId:s,totalMessageCount:h,strippedMessageCount:f}),(0,n.jsx)(x,{encodedPath:t,sessionId:s})]})]}),(0,n.jsx)("div",{className:"mb-6 animate-in stagger-1",children:(0,n.jsx)(m.SummarySection,{type:"session",projectPath:t,sessionId:s,messageCount:l})}),(0,n.jsx)(o.ChatView,{messages:g,highlightMessageId:b,showHidden:v}),j&&j.length>0&&(0,n.jsx)(p,{subagents:j,projectPath:t,sessionId:s})]})}}},e=>{e.O(0,[176,856,969,441,255,358],()=>e(e.s=7054)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[653],{5591:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,2619,23)),Promise.resolve().then(s.bind(s,6221)),Promise.resolve().then(s.bind(s,6229)),Promise.resolve().then(s.bind(s,6281)),Promise.resolve().then(s.bind(s,7625)),Promise.resolve().then(s.bind(s,3389)),Promise.resolve().then(s.bind(s,449))},6221:(e,t,s)=>{"use strict";s.d(t,{ChatView:()=>m});var n=s(5155),r=s(2115),o=s(856),l=s(467);function c(e){let{message:t,compact:s=!1}=e,[c,a]=(0,r.useState)(!1),i="user"===t.type,d=function(e,t){if("string"==typeof e)return e;let s=[];for(let n of e)if("text"===n.type)s.push(n.text);else if("tool_use"===n.type)s.push("[Tool: ".concat(n.name,"]"));else if("tool_result"===n.type&&t){let e="string"==typeof n.content?n.content:JSON.stringify(n.content);s.push("[Tool Result: ".concat(e.slice(0,500)).concat(e.length>500?"...":"","]"))}return s.join("\n\n")}(t.message.content,c),m=s&&!c&&d.length>300?d.slice(0,300)+"...":d,u=s&&d.length>300;return(0,n.jsx)("div",{className:"flex ".concat(i?"justify-end":"justify-start"),children:(0,n.jsxs)("div",{className:"max-w-[85%] rounded-2xl px-4 py-3 ".concat(i?"bg-accent/15 border border-accent/20 text-content-primary rounded-br-md":"bg-surface-elevated border border-edge-subtle text-content-primary rounded-bl-md"),children:[(0,n.jsxs)("div",{className:"text-[11px] mb-1.5 ".concat(i?"text-accent/60":"text-content-tertiary"),children:[i?"You":"Claude"," \xb7 ",(0,l.r6)(t.timestamp)]}),i?(0,n.jsx)("div",{className:"text-sm whitespace-pre-wrap break-words leading-relaxed",children:c?d:m}):(0,n.jsx)("div",{className:"text-sm leading-relaxed [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_p]:mb-2 [&_ul]:mb-2 [&_ol]:mb-2 [&_ul]:pl-4 [&_ol]:pl-4 [&_ul]:list-disc [&_ol]:list-decimal [&_li]:mb-0.5 [&_h1]:text-base [&_h1]:font-semibold [&_h1]:mb-1.5 [&_h2]:text-sm [&_h2]:font-semibold [&_h2]:mb-1 [&_h3]:text-sm [&_h3]:font-medium [&_h3]:mb-1 [&_code]:bg-surface-base [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs [&_code]:font-mono [&_pre]:bg-surface-base [&_pre]:p-3 [&_pre]:rounded-lg [&_pre]:overflow-x-auto [&_pre]:text-xs [&_pre]:mb-2 [&_blockquote]:border-l-2 [&_blockquote]:border-edge-subtle [&_blockquote]:pl-3 [&_blockquote]:text-content-secondary [&_hr]:border-edge-subtle [&_hr]:my-2",children:(0,n.jsx)(o.oz,{children:c?d:m})}),u&&(0,n.jsx)("button",{onClick:()=>a(!c),className:"mt-2 text-xs font-medium ".concat(i?"text-accent/70 hover:text-accent":"text-accent hover:text-accent-hover"," transition-colors"),children:c?"Show less":"Show more"})]})})}function a(e){let{name:t,args:s,timestamp:r}=e;return(0,n.jsx)("div",{className:"flex justify-end py-1",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-surface border border-edge-subtle text-xs",children:[(0,n.jsx)("svg",{className:"w-3 h-3 text-accent shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9l3 3-3 3m5 0h3"})}),(0,n.jsx)("span",{className:"text-accent font-mono font-medium",children:t}),s&&(0,n.jsx)("span",{className:"text-content-secondary font-mono",children:s}),(0,n.jsx)("span",{className:"text-content-tertiary ml-1",children:(0,l.r6)(r)})]})})}function i(e){var t;let{content:s,timestamp:r}=e,o=function(e){let t=e.match(/^<([\w-]+)>([\s\S]*?)<\/[\w-]+>/);return t?{tag:t[1],body:t[2].trim()}:null}(s),c=o?o.tag.replace(/^local-command-/,"").replace(/-/g," "):"system",a=null!=(t=null==o?void 0:o.body)?t:"",i=a.length>80?a.slice(0,80)+"…":a;return(0,n.jsx)("div",{className:"flex justify-end py-1",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-surface border border-edge-subtle text-xs text-content-tertiary max-w-[85%]",children:[(0,n.jsx)("span",{className:"font-medium shrink-0",children:c}),i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"opacity-40",children:"\xb7"}),(0,n.jsx)("span",{className:"font-mono truncate",children:i})]}),(0,n.jsx)("span",{className:"opacity-40 shrink-0 ml-1",children:(0,l.r6)(r)})]})})}var d=s(931);function m(e){let{messages:t,previewCount:s=50,highlightMessageId:o,showHidden:m=!1}=e,[u,x]=(0,r.useState)(!!o),h=(0,r.useRef)(null),p=[...(0,r.useMemo)(()=>m?t:t.filter(e=>!(0,d.X4)(e)&&!(0,d.B1)(e)),[t,m])].sort((e,t)=>(0,l.EH)(e.timestamp)-(0,l.EH)(t.timestamp)),b=u?p:p.slice(0,s),f=p.length>s;return(0,r.useEffect)(()=>{o&&h.current&&h.current.scrollIntoView({behavior:"smooth",block:"center"})},[o]),(0,n.jsxs)("div",{className:"space-y-4",children:[b.map((e,t)=>{let s=o===e.uuid;return(0,n.jsx)("div",{ref:s?h:void 0,className:"".concat(s?"ring-2 ring-accent ring-offset-2 ring-offset-base rounded-2xl":""," animate-in stagger-").concat(Math.min(t+1,10)),children:(()=>{let t=(0,d.iP)(e.message.content),s=(0,d.Tc)(t);return s?(0,n.jsx)(a,{name:s.name,args:s.args,timestamp:e.timestamp}):m&&(0,d.X4)(e)?(0,n.jsx)(i,{content:t,timestamp:e.timestamp}):(0,n.jsx)(c,{message:e,compact:!u})})()},e.uuid)}),f&&(0,n.jsx)("div",{className:"flex justify-center pt-4",children:(0,n.jsx)("button",{onClick:()=>x(!u),className:"flex items-center gap-2 px-5 py-2.5 text-sm text-accent hover:text-accent-hover bg-surface hover:bg-surface-elevated border border-edge-subtle hover:border-edge-hover rounded-xl transition-all",children:u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})}),"Show preview only"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),"Show all ",p.length," messages"]})})}),0===b.length&&(0,n.jsx)("div",{className:"text-center py-16 text-content-tertiary animate-fade",children:"No messages in this session"})]})}}},e=>{e.O(0,[176,856,969,441,255,358],()=>e(e.s=5591)),_N_E=e.O()}]);
@@ -1,3 +0,0 @@
1
- @font-face{font-family:DM Sans;font-style:normal;font-weight:100 1000;font-display:swap;src:url(/_next/static/media/7ab938503e4547a1-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:DM Sans;font-style:normal;font-weight:100 1000;font-display:swap;src:url(/_next/static/media/13971731025ec697-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:DM Sans Fallback;src:local("Arial");ascent-override:94.90%;descent-override:29.66%;line-gap-override:0.00%;size-adjust:104.53%}.__className_0d7163{font-family:DM Sans,DM Sans Fallback;font-style:normal}.__variable_0d7163{--font-sans:"DM Sans","DM Sans Fallback"}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/886030b0b59bc5a7-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/0aa834ed78bf6d07-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/67957d42bae0796d-s.woff2) format("woff2");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/f911b923c6adde36-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/939c4f875ee75fbb-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/bb3ef058b751a6ad-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:JetBrains Mono Fallback;src:local("Arial");ascent-override:75.79%;descent-override:22.29%;line-gap-override:0.00%;size-adjust:134.59%}.__className_3c557b{font-family:JetBrains Mono,JetBrains Mono Fallback;font-style:normal}.__variable_3c557b{--font-mono:"JetBrains Mono","JetBrains Mono Fallback"}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*
2
- ! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
3
- */*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--font-mono),Menlo,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.left-3{left:.75rem}.right-3{right:.75rem}.top-0{top:0}.top-1\/2{top:50%}.z-10{z-index:10}.z-50{z-index:50}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.-ml-2{margin-left:-.5rem}.-mr-1\.5{margin-right:-.375rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.line-clamp-2{-webkit-line-clamp:2}.line-clamp-2,.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.line-clamp-3{-webkit-line-clamp:3}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[18px\]{height:18px}.max-h-\[85vh\]{max-height:85vh}.min-h-screen{min-height:100vh}.w-12{width:3rem}.w-16{width:4rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-\[18px\]{width:18px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-\[85\%\]{max-width:85%}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-accent{--tw-border-opacity:1;border-color:rgb(var(--accent)/var(--tw-border-opacity,1))}.border-accent\/20{border-color:rgb(var(--accent)/.2)}.border-danger\/20{border-color:rgb(var(--error)/.2)}.border-edge{--tw-border-opacity:1;border-color:rgb(var(--border-default)/var(--tw-border-opacity,1))}.border-edge-hover{--tw-border-opacity:1;border-color:rgb(var(--border-hover)/var(--tw-border-opacity,1))}.border-edge-subtle{--tw-border-opacity:1;border-color:rgb(var(--border-subtle)/var(--tw-border-opacity,1))}.border-success\/20{border-color:rgb(var(--success)/.2)}.border-t-accent{--tw-border-opacity:1;border-top-color:rgb(var(--accent)/var(--tw-border-opacity,1))}.bg-accent{--tw-bg-opacity:1;background-color:rgb(var(--accent)/var(--tw-bg-opacity,1))}.bg-accent\/10{background-color:rgb(var(--accent)/.1)}.bg-accent\/15{background-color:rgb(var(--accent)/.15)}.bg-black\/70{background-color:rgb(0 0 0/.7)}.bg-danger{--tw-bg-opacity:1;background-color:rgb(var(--error)/var(--tw-bg-opacity,1))}.bg-info\/15{background-color:rgb(var(--info)/.15)}.bg-success\/15{background-color:rgb(var(--success)/.15)}.bg-surface{--tw-bg-opacity:1;background-color:rgb(var(--bg-surface)/var(--tw-bg-opacity,1))}.bg-surface-elevated{--tw-bg-opacity:1;background-color:rgb(var(--bg-elevated)/var(--tw-bg-opacity,1))}.bg-surface\/80{background-color:rgb(var(--bg-surface)/.8)}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pr-10{padding-right:2.5rem}.pr-16{padding-right:4rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.font-mono{font-family:var(--font-mono),Menlo,monospace}.font-sans{font-family:var(--font-sans),system-ui,sans-serif}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[14px\]{font-size:14px}.text-\[17px\]{font-size:17px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.text-accent{--tw-text-opacity:1;color:rgb(var(--accent)/var(--tw-text-opacity,1))}.text-accent\/60{color:rgb(var(--accent)/.6)}.text-accent\/70{color:rgb(var(--accent)/.7)}.text-accent\/80{color:rgb(var(--accent)/.8)}.text-content-primary{--tw-text-opacity:1;color:rgb(var(--text-primary)/var(--tw-text-opacity,1))}.text-content-secondary{--tw-text-opacity:1;color:rgb(var(--text-secondary)/var(--tw-text-opacity,1))}.text-content-tertiary{--tw-text-opacity:1;color:rgb(var(--text-tertiary)/var(--tw-text-opacity,1))}.text-content-tertiary\/50{color:rgb(var(--text-tertiary)/.5)}.text-danger{--tw-text-opacity:1;color:rgb(var(--error)/var(--tw-text-opacity,1))}.text-info{--tw-text-opacity:1;color:rgb(var(--info)/var(--tw-text-opacity,1))}.text-success{--tw-text-opacity:1;color:rgb(var(--success)/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-content-tertiary::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--text-tertiary)/var(--tw-placeholder-opacity,1))}.placeholder-content-tertiary::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--text-tertiary)/var(--tw-placeholder-opacity,1))}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgb(0 0 0/0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-accent{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--accent)/var(--tw-ring-opacity,1))}.ring-offset-2{--tw-ring-offset-width:2px}.ring-offset-base{--tw-ring-offset-color:rgb(var(--bg-base)/1)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px)}.backdrop-blur-md,.backdrop-blur-sm{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}:root{--bg-base:11 10 9;--bg-surface:19 18 15;--bg-elevated:28 26 22;--bg-overlay:36 34 30;--border-subtle:38 36 32;--border-default:54 51 46;--border-hover:77 72 66;--accent:199 125 79;--accent-hover:217 154 108;--text-primary:236 232 228;--text-secondary:185 180 172;--text-tertiary:140 135 126;--success:107 143 113;--error:199 84 80;--error-hover:212 112 108;--info:107 143 179}[data-theme=light]{--bg-base:252 250 247;--bg-surface:255 254 252;--bg-elevated:245 242 237;--bg-overlay:237 233 227;--border-subtle:230 226 218;--border-default:213 208 199;--border-hover:187 181 172;--accent:175 95 45;--accent-hover:155 80 35;--text-primary:28 25 22;--text-secondary:105 99 90;--text-tertiary:160 153 143;--success:68 125 75;--error:195 65 60;--error-hover:175 50 45;--info:55 115 165}:root[data-font-size=small]{font-size:14px}:root[data-font-size=large]{font-size:18px}body{background-color:rgb(var(--bg-base));background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.025) 1px,transparent 0);background-size:32px 32px;color:rgb(var(--text-primary));-webkit-font-smoothing:antialiased}[data-theme=light] body{background-image:radial-gradient(circle at 1px 1px,rgba(0,0,0,.04) 1px,transparent 0)}@keyframes fade-in-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes slide-up{0%{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.animate-in{animation:fade-in-up .45s cubic-bezier(.16,1,.3,1) both}.animate-fade{animation:fade-in .3s ease both}.animate-modal{animation:slide-up .35s cubic-bezier(.16,1,.3,1) both}.stagger-1{animation-delay:30ms}.stagger-2{animation-delay:60ms}.stagger-3{animation-delay:90ms}.stagger-4{animation-delay:.12s}.stagger-5{animation-delay:.15s}.stagger-6{animation-delay:.18s}.stagger-7{animation-delay:.21s}.stagger-8{animation-delay:.24s}.stagger-9{animation-delay:.27s}.stagger-10{animation-delay:.3s}.skeleton-shimmer{background:linear-gradient(90deg,rgb(var(--bg-elevated)) 0,rgb(var(--bg-overlay)) 50%,rgb(var(--bg-elevated)) 100%);background-size:200% 100%;animation:shimmer 2s ease-in-out infinite}.scrollbar-thin::-webkit-scrollbar{width:6px;height:6px}.scrollbar-thin::-webkit-scrollbar-track{background:transparent}.scrollbar-thin::-webkit-scrollbar-thumb{background:rgb(var(--border-default));border-radius:3px}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background:rgb(var(--border-hover))}select option{background:rgb(var(--bg-surface));color:rgb(var(--text-primary))}.hover\:border-accent\/50:hover{border-color:rgb(var(--accent)/.5)}.hover\:border-edge-hover:hover{--tw-border-opacity:1;border-color:rgb(var(--border-hover)/var(--tw-border-opacity,1))}.hover\:bg-accent-hover:hover{--tw-bg-opacity:1;background-color:rgb(var(--accent-hover)/var(--tw-bg-opacity,1))}.hover\:bg-accent\/10:hover{background-color:rgb(var(--accent)/.1)}.hover\:bg-accent\/20:hover{background-color:rgb(var(--accent)/.2)}.hover\:bg-danger-hover:hover{--tw-bg-opacity:1;background-color:rgb(var(--error-hover)/var(--tw-bg-opacity,1))}.hover\:bg-danger\/10:hover{background-color:rgb(var(--error)/.1)}.hover\:bg-surface:hover{--tw-bg-opacity:1;background-color:rgb(var(--bg-surface)/var(--tw-bg-opacity,1))}.hover\:bg-surface-elevated:hover{--tw-bg-opacity:1;background-color:rgb(var(--bg-elevated)/var(--tw-bg-opacity,1))}.hover\:text-accent:hover{--tw-text-opacity:1;color:rgb(var(--accent)/var(--tw-text-opacity,1))}.hover\:text-accent-hover:hover{--tw-text-opacity:1;color:rgb(var(--accent-hover)/var(--tw-text-opacity,1))}.hover\:text-content-primary:hover{--tw-text-opacity:1;color:rgb(var(--text-primary)/var(--tw-text-opacity,1))}.hover\:text-content-secondary:hover{--tw-text-opacity:1;color:rgb(var(--text-secondary)/var(--tw-text-opacity,1))}.hover\:text-danger-hover:hover{--tw-text-opacity:1;color:rgb(var(--error-hover)/var(--tw-text-opacity,1))}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\:shadow-accent\/\[0\.04\]:hover{--tw-shadow-color:rgb(var(--accent)/0.04);--tw-shadow:var(--tw-shadow-colored)}.focus\:border-accent:focus{--tw-border-opacity:1;border-color:rgb(var(--accent)/var(--tw-border-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-accent:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--accent)/var(--tw-ring-opacity,1))}.focus\:ring-accent\/30:focus{--tw-ring-color:rgb(var(--accent)/0.3)}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:text-accent{--tw-text-opacity:1;color:rgb(var(--accent)/var(--tw-text-opacity,1))}.group:hover .group-hover\:text-content-secondary{--tw-text-opacity:1;color:rgb(var(--text-secondary)/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\:block{display:block}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:flex-row{flex-direction:row}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:1024px){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.\[\&\>\*\:first-child\]\:mt-0>:first-child{margin-top:0}.\[\&\>\*\:last-child\]\:mb-0>:last-child{margin-bottom:0}.\[\&\>mark\]\:rounded>mark{border-radius:.25rem}.\[\&\>mark\]\:bg-accent\/25>mark{background-color:rgb(var(--accent)/.25)}.\[\&\>mark\]\:px-0\.5>mark{padding-left:.125rem;padding-right:.125rem}.\[\&\>mark\]\:text-accent-hover>mark{--tw-text-opacity:1;color:rgb(var(--accent-hover)/var(--tw-text-opacity,1))}.\[\&_blockquote\]\:border-l-2 blockquote{border-left-width:2px}.\[\&_blockquote\]\:border-edge-subtle blockquote{--tw-border-opacity:1;border-color:rgb(var(--border-subtle)/var(--tw-border-opacity,1))}.\[\&_blockquote\]\:pl-3 blockquote{padding-left:.75rem}.\[\&_blockquote\]\:text-content-secondary blockquote{--tw-text-opacity:1;color:rgb(var(--text-secondary)/var(--tw-text-opacity,1))}.\[\&_code\]\:rounded code{border-radius:.25rem}.\[\&_code\]\:px-1 code{padding-left:.25rem;padding-right:.25rem}.\[\&_code\]\:py-0\.5 code{padding-top:.125rem;padding-bottom:.125rem}.\[\&_code\]\:font-mono code{font-family:var(--font-mono),Menlo,monospace}.\[\&_code\]\:text-xs code{font-size:.75rem;line-height:1rem}.\[\&_h1\]\:mb-1\.5 h1{margin-bottom:.375rem}.\[\&_h1\]\:text-base h1{font-size:1rem;line-height:1.5rem}.\[\&_h1\]\:font-semibold h1{font-weight:600}.\[\&_h1\]\:text-base h1{--tw-text-opacity:1;color:rgb(var(--bg-base)/var(--tw-text-opacity,1))}.\[\&_h2\]\:mb-1 h2{margin-bottom:.25rem}.\[\&_h2\]\:text-sm h2{font-size:.875rem;line-height:1.25rem}.\[\&_h2\]\:font-semibold h2{font-weight:600}.\[\&_h3\]\:mb-1 h3{margin-bottom:.25rem}.\[\&_h3\]\:text-sm h3{font-size:.875rem;line-height:1.25rem}.\[\&_h3\]\:font-medium h3{font-weight:500}.\[\&_hr\]\:my-2 hr{margin-top:.5rem;margin-bottom:.5rem}.\[\&_hr\]\:border-edge-subtle hr{--tw-border-opacity:1;border-color:rgb(var(--border-subtle)/var(--tw-border-opacity,1))}.\[\&_li\]\:mb-0\.5 li{margin-bottom:.125rem}.\[\&_ol\]\:mb-2 ol{margin-bottom:.5rem}.\[\&_ol\]\:list-decimal ol{list-style-type:decimal}.\[\&_ol\]\:pl-4 ol{padding-left:1rem}.\[\&_p\]\:mb-2 p,.\[\&_pre\]\:mb-2 pre{margin-bottom:.5rem}.\[\&_pre\]\:overflow-x-auto pre{overflow-x:auto}.\[\&_pre\]\:rounded-lg pre{border-radius:.5rem}.\[\&_pre\]\:p-3 pre{padding:.75rem}.\[\&_pre\]\:text-xs pre{font-size:.75rem;line-height:1rem}.\[\&_ul\]\:mb-2 ul{margin-bottom:.5rem}.\[\&_ul\]\:list-disc ul{list-style-type:disc}.\[\&_ul\]\:pl-4 ul{padding-left:1rem}