agentgraphed 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-build-manifest.json +39 -39
  3. package/.next/standalone/.next/app-path-routes-manifest.json +6 -6
  4. package/.next/standalone/.next/build-manifest.json +3 -3
  5. package/.next/standalone/.next/prerender-manifest.json +3 -3
  6. package/.next/standalone/.next/required-server-files.json +6 -6
  7. package/.next/standalone/.next/server/app/_not-found/page.js +2 -2
  8. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  9. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  11. package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
  12. package/.next/standalone/.next/server/app/analytics/page.js +2 -2
  13. package/.next/standalone/.next/server/app/analytics/page.js.nft.json +1 -1
  14. package/.next/standalone/.next/server/app/analytics/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/.next/server/app/api/ingest-local/route.js +1 -1
  16. package/.next/standalone/.next/server/app/api/ingest-local/route_client-reference-manifest.js +1 -1
  17. package/.next/standalone/.next/server/app/api/quota-probe/route.js +2 -2
  18. package/.next/standalone/.next/server/app/api/quota-probe/route_client-reference-manifest.js +1 -1
  19. package/.next/standalone/.next/server/app/api/share/dashboard/route.js +1 -1
  20. package/.next/standalone/.next/server/app/api/share/dashboard/route_client-reference-manifest.js +1 -1
  21. package/.next/standalone/.next/server/app/api/share/project/[id]/route.js +1 -1
  22. package/.next/standalone/.next/server/app/api/share/project/[id]/route_client-reference-manifest.js +1 -1
  23. package/.next/standalone/.next/server/app/api/share/session/[id]/route.js +1 -1
  24. package/.next/standalone/.next/server/app/api/share/session/[id]/route_client-reference-manifest.js +1 -1
  25. package/.next/standalone/.next/server/app/page.js +3 -3
  26. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  28. package/.next/standalone/.next/server/app/projects/[id]/page.js +2 -2
  29. package/.next/standalone/.next/server/app/projects/[id]/page.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/projects/[id]/page_client-reference-manifest.js +1 -1
  31. package/.next/standalone/.next/server/app/projects/page.js +2 -44
  32. package/.next/standalone/.next/server/app/projects/page.js.nft.json +1 -1
  33. package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  34. package/.next/standalone/.next/server/app/sessions/[id]/page.js +3 -3
  35. package/.next/standalone/.next/server/app/sessions/[id]/page.js.nft.json +1 -1
  36. package/.next/standalone/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
  37. package/.next/standalone/.next/server/app/sessions/page.js +2 -44
  38. package/.next/standalone/.next/server/app/sessions/page.js.nft.json +1 -1
  39. package/.next/standalone/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  40. package/.next/standalone/.next/server/app/settings/page.js +4 -4
  41. package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
  42. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  43. package/.next/standalone/.next/server/app/timeline/page.js +2 -44
  44. package/.next/standalone/.next/server/app/timeline/page.js.nft.json +1 -1
  45. package/.next/standalone/.next/server/app/timeline/page_client-reference-manifest.js +1 -1
  46. package/.next/standalone/.next/server/app-paths-manifest.json +6 -6
  47. package/.next/standalone/.next/server/chunks/27.js +15 -3
  48. package/.next/standalone/.next/server/chunks/450.js +137 -0
  49. package/.next/standalone/.next/server/chunks/564.js +4 -4
  50. package/.next/standalone/.next/server/chunks/694.js +43 -0
  51. package/.next/standalone/.next/server/chunks/903.js +1 -0
  52. package/.next/standalone/.next/server/chunks/944.js +61 -25
  53. package/.next/standalone/.next/server/chunks/954.js +1 -0
  54. package/.next/standalone/.next/server/functions-config-manifest.json +1 -1
  55. package/.next/standalone/.next/server/middleware-build-manifest.js +1 -1
  56. package/.next/standalone/.next/server/pages/404.html +1 -1
  57. package/.next/standalone/.next/server/pages/500.html +1 -1
  58. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  59. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  60. package/.next/standalone/.next/static/chunks/app/_not-found/{page-dc1cbec20c205394.js → page-01ad39d2ead973c7.js} +1 -1
  61. package/.next/{static/chunks/app/analytics/page-42186370029f753c.js → standalone/.next/static/chunks/app/analytics/page-79a1781c3529dcb6.js} +1 -1
  62. package/.next/standalone/.next/static/chunks/app/{layout-4527370a1e451501.js → layout-bbab14e77aaeeb67.js} +1 -1
  63. package/.next/standalone/.next/static/chunks/app/page-d5393f25e2553a0c.js +1 -0
  64. package/.next/standalone/.next/static/chunks/app/projects/[id]/page-32fe8cf66558be7c.js +1 -0
  65. package/.next/standalone/.next/static/chunks/app/projects/page-dce207c2f75422be.js +1 -0
  66. package/.next/standalone/.next/static/chunks/app/sessions/[id]/{page-a887f742425eb49c.js → page-49542233907f7f6b.js} +1 -1
  67. package/.next/standalone/.next/static/chunks/app/sessions/page-aec145af506da55b.js +1 -0
  68. package/.next/standalone/.next/static/chunks/app/settings/page-b961ca195748ef3b.js +1 -0
  69. package/.next/standalone/.next/static/chunks/app/timeline/page-dce207c2f75422be.js +1 -0
  70. package/.next/standalone/.next/static/chunks/{main-app-c9ae70e5bb48ac77.js → main-app-27b331c894fe5037.js} +1 -1
  71. package/.next/standalone/node_modules/@img/{sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib → sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3} +0 -0
  72. package/.next/standalone/node_modules/@img/{sharp-libvips-darwin-arm64 → sharp-libvips-linux-x64}/package.json +11 -5
  73. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
  74. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  75. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
  76. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  77. package/.next/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  78. package/.next/standalone/node_modules/@img/{sharp-darwin-arm64 → sharp-linux-x64}/package.json +13 -7
  79. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/LICENSE +191 -0
  80. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  81. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
  82. package/.next/standalone/package.json +1 -1
  83. package/.next/standalone/server.js +1 -1
  84. package/.next/standalone/src/lib/pricing-data/litellm.json +615 -92
  85. package/.next/standalone/src/lib/pricing-data/litellm.meta.json +2 -2
  86. package/.next/static/chunks/app/_not-found/{page-dc1cbec20c205394.js → page-01ad39d2ead973c7.js} +1 -1
  87. package/.next/{standalone/.next/static/chunks/app/analytics/page-42186370029f753c.js → static/chunks/app/analytics/page-79a1781c3529dcb6.js} +1 -1
  88. package/.next/static/chunks/app/{layout-4527370a1e451501.js → layout-bbab14e77aaeeb67.js} +1 -1
  89. package/.next/static/chunks/app/page-d5393f25e2553a0c.js +1 -0
  90. package/.next/static/chunks/app/projects/[id]/page-32fe8cf66558be7c.js +1 -0
  91. package/.next/static/chunks/app/projects/page-dce207c2f75422be.js +1 -0
  92. package/.next/static/chunks/app/sessions/[id]/{page-a887f742425eb49c.js → page-49542233907f7f6b.js} +1 -1
  93. package/.next/static/chunks/app/sessions/page-aec145af506da55b.js +1 -0
  94. package/.next/static/chunks/app/settings/page-b961ca195748ef3b.js +1 -0
  95. package/.next/static/chunks/app/timeline/page-dce207c2f75422be.js +1 -0
  96. package/.next/static/chunks/{main-app-c9ae70e5bb48ac77.js → main-app-27b331c894fe5037.js} +1 -1
  97. package/CHANGELOG.md +22 -0
  98. package/README.md +52 -46
  99. package/package.json +1 -1
  100. package/src/lib/pricing-data/litellm.json +615 -92
  101. package/src/lib/pricing-data/litellm.meta.json +2 -2
  102. package/.next/standalone/.next/server/chunks/165.js +0 -109
  103. package/.next/standalone/.next/server/chunks/191.js +0 -1
  104. package/.next/standalone/.next/server/chunks/367.js +0 -43
  105. package/.next/standalone/.next/server/chunks/660.js +0 -1
  106. package/.next/standalone/.next/static/chunks/app/page-aa358006ddd29e91.js +0 -1
  107. package/.next/standalone/.next/static/chunks/app/projects/[id]/page-15f21aaacdacb59c.js +0 -1
  108. package/.next/standalone/.next/static/chunks/app/projects/page-d794cc35674274a4.js +0 -1
  109. package/.next/standalone/.next/static/chunks/app/sessions/page-35c503eef7e53742.js +0 -1
  110. package/.next/standalone/.next/static/chunks/app/settings/page-dc0bec0bd2577322.js +0 -1
  111. package/.next/standalone/.next/static/chunks/app/timeline/page-d794cc35674274a4.js +0 -1
  112. package/.next/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  113. package/.next/standalone/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  114. package/.next/standalone/node_modules/better-sqlite3/lib/database.js +0 -90
  115. package/.next/standalone/node_modules/better-sqlite3/lib/index.js +0 -3
  116. package/.next/standalone/node_modules/better-sqlite3/lib/methods/aggregate.js +0 -43
  117. package/.next/standalone/node_modules/better-sqlite3/lib/methods/backup.js +0 -67
  118. package/.next/standalone/node_modules/better-sqlite3/lib/methods/function.js +0 -31
  119. package/.next/standalone/node_modules/better-sqlite3/lib/methods/inspect.js +0 -7
  120. package/.next/standalone/node_modules/better-sqlite3/lib/methods/pragma.js +0 -12
  121. package/.next/standalone/node_modules/better-sqlite3/lib/methods/serialize.js +0 -16
  122. package/.next/standalone/node_modules/better-sqlite3/lib/methods/table.js +0 -189
  123. package/.next/standalone/node_modules/better-sqlite3/lib/methods/transaction.js +0 -78
  124. package/.next/standalone/node_modules/better-sqlite3/lib/methods/wrappers.js +0 -54
  125. package/.next/standalone/node_modules/better-sqlite3/lib/sqlite-error.js +0 -20
  126. package/.next/standalone/node_modules/better-sqlite3/lib/util.js +0 -12
  127. package/.next/standalone/node_modules/better-sqlite3/package.json +0 -54
  128. package/.next/static/chunks/app/page-aa358006ddd29e91.js +0 -1
  129. package/.next/static/chunks/app/projects/[id]/page-15f21aaacdacb59c.js +0 -1
  130. package/.next/static/chunks/app/projects/page-d794cc35674274a4.js +0 -1
  131. package/.next/static/chunks/app/sessions/page-35c503eef7e53742.js +0 -1
  132. package/.next/static/chunks/app/settings/page-dc0bec0bd2577322.js +0 -1
  133. package/.next/static/chunks/app/timeline/page-d794cc35674274a4.js +0 -1
  134. /package/.next/standalone/.next/static/{A6dvfHR2KYz42pasM2hyV → hnOq_d-GplXbWU5EnSBzF}/_buildManifest.js +0 -0
  135. /package/.next/standalone/.next/static/{A6dvfHR2KYz42pasM2hyV → hnOq_d-GplXbWU5EnSBzF}/_ssgManifest.js +0 -0
  136. /package/.next/standalone/node_modules/@img/{sharp-libvips-darwin-arm64 → sharp-libvips-linux-x64}/lib/index.js +0 -0
  137. /package/.next/standalone/node_modules/@img/{sharp-libvips-darwin-arm64 → sharp-libvips-linux-x64}/versions.json +0 -0
  138. /package/.next/standalone/node_modules/@img/{sharp-darwin-arm64 → sharp-linux-x64}/LICENSE +0 -0
  139. /package/.next/static/{A6dvfHR2KYz42pasM2hyV → hnOq_d-GplXbWU5EnSBzF}/_buildManifest.js +0 -0
  140. /package/.next/static/{A6dvfHR2KYz42pasM2hyV → hnOq_d-GplXbWU5EnSBzF}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{15433:(e,t,r)=>{"use strict";r.d(t,{ClassifyChip:()=>a});var n=r(95155),o=r(12115),s=r(20063),i=r(85722);function a(e){let{count:t,estimatedUsd:r}=e,a=(0,s.useRouter)(),[l,c]=(0,o.useState)("idle"),[d,u]=(0,o.useState)(null),[m,p]=(0,o.useState)(null),[h,x]=(0,o.useTransition)(),f=()=>{if("idle"===l)return void c("confirm");"confirm"===l&&x(async()=>{let e=await (0,i.v)("uncategorized");if(!e.ok){u(e.error),c("err"),setTimeout(()=>c("idle"),4e3);return}p({classified:e.classified,costUsd:e.costUsd}),c("done"),a.refresh(),setTimeout(()=>c("idle"),3e3)})};return"done"===l&&m?(0,n.jsxs)("div",{className:"text-[11px] font-mono px-2 py-0.5 rounded bg-secondary/10 text-secondary border border-secondary/30",children:["✓ classified ",m.classified," \xb7 $",m.costUsd.toFixed(4)]}):"err"===l?(0,n.jsx)("div",{className:"text-[11px] font-mono px-2 py-0.5 rounded bg-error/10 text-error border border-error/30",title:null!=d?d:"",children:"✗ failed"}):"confirm"===l?(0,n.jsx)("button",{onClick:f,disabled:h,className:"text-[11px] font-mono px-2 py-0.5 rounded bg-primary/15 text-primary border border-primary/40 hover:bg-primary/25 transition-colors disabled:opacity-60",title:"Click again to confirm — sends prompts to your configured provider",children:h?"… classifying":"confirm \xb7 run for ~$".concat(r.toFixed(4))}):(0,n.jsxs)("button",{onClick:f,className:"text-[11px] font-mono px-2 py-0.5 rounded text-ink-mute hover:text-primary hover:bg-surface-2 transition-colors",title:"Send their first prompts to your configured LLM to assign a title + category. ~$0.0001 per session.",children:[t," unclassified \xb7 classify"]})}},17834:(e,t,r)=>{"use strict";r.d(t,{ShareButton:()=>s});var n=r(95155),o=r(12115);function s(e){let{imageUrl:t,className:r}=e,[s,c]=(0,o.useState)("idle"),[d,u]=(0,o.useState)(null),m=async()=>{c("busy"),u(null);try{var e;let r=await fetch(t);if(!r.ok)throw Error("HTTP ".concat(r.status));let n=await r.blob();if("undefined"==typeof ClipboardItem||!(null==(e=navigator.clipboard)?void 0:e.write))throw Error("clipboard image unsupported");let o=new ClipboardItem({"image/png":n});await navigator.clipboard.write([o]),c("done"),setTimeout(()=>c("idle"),2400)}catch(e){try{let e=await fetch(t),r=await e.blob(),n=URL.createObjectURL(r),o=document.createElement("a");o.href=n,o.download="agentgraphed-stats.png",document.body.appendChild(o),o.click(),document.body.removeChild(o),setTimeout(()=>URL.revokeObjectURL(n),5e3),u("Saved to Downloads (clipboard image unsupported)"),c("err"),setTimeout(()=>c("idle"),4e3)}catch(t){u(t.message||e.message),c("err"),setTimeout(()=>c("idle"),3e3)}}};return(0,n.jsx)("button",{onClick:m,disabled:"busy"===s,"aria-label":"Share",title:"busy"===s?"Generating image…":"done"===s?"Image copied to clipboard":"err"===s?null!=d?d:"Try again":"Copy share image to clipboard",className:"btn-icon ".concat("done"===s?"text-secondary":""," ").concat(null!=r?r:""),children:"busy"===s?(0,n.jsx)(l,{}):"done"===s?(0,n.jsx)(a,{}):(0,n.jsx)(i,{})})}function i(){return(0,n.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}),(0,n.jsx)("polyline",{points:"16 6 12 2 8 6"}),(0,n.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"15"})]})}function a(){return(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("polyline",{points:"20 6 9 17 4 12"})})}function l(){return(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"animate-spin",children:(0,n.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}},20467:(e,t,r)=>{"use strict";function n(e){return e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e3?"".concat((e/1e3).toFixed(1),"k"):e.toString()}function o(e){return e>=1e3?"$".concat(e.toFixed(0)):"$".concat(e.toFixed(2))}function s(e){let t=Math.floor(e/1e3);if(t<60)return"".concat(t,"s");let r=Math.floor(t/60);if(r<60)return"".concat(r,"m");let n=Math.floor(r/60);return"".concat(n,"h ").concat(r%60,"m")}r.d(t,{F0:()=>o,c5:()=>s,yj:()=>n})},29366:(e,t,r)=>{"use strict";r.d(t,{UsageChartCard:()=>x});var n=r(95155),o=r(12115),s=r(20063),i=r(26991),a=r(73850),l=r(68425),c=r(47734),d=r(73697),u=r(23508),m=r(77568),p=r(20467);function h(e){let{data:t,metric:r="tokens",scale:o="lin"}=e,s=t.map(e=>{let t=e[r];return{...e,label:e.day.slice(5),value:"log"===o&&t<=0?1:t,raw:t}}),h="cost"===r?"#00ffab":"#00f5ff";return(0,n.jsx)("div",{className:"h-64 -mx-1",children:(0,n.jsx)(i.u,{width:"100%",height:"100%",children:(0,n.jsxs)(a.Q,{data:s,margin:{top:8,right:8,bottom:0,left:-8},children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"grad-".concat(r),x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:h,stopOpacity:.35}),(0,n.jsx)("stop",{offset:"100%",stopColor:h,stopOpacity:0})]})}),(0,n.jsx)(l.d,{stroke:"#262a31",strokeDasharray:"2 4",vertical:!1}),(0,n.jsx)(c.W,{dataKey:"label",tick:{fill:"#849495",fontSize:11,fontFamily:"JetBrains Mono"},axisLine:{stroke:"#262a31"},tickLine:!1,minTickGap:48}),(0,n.jsx)(d.h,{scale:"log"===o?"log":"auto",domain:"log"===o?[1,"auto"]:["auto","auto"],allowDataOverflow:!0,tick:{fill:"#849495",fontSize:11,fontFamily:"JetBrains Mono"},axisLine:!1,tickLine:!1,tickFormatter:e=>"cost"===r?"$".concat(Math.round(e)):(0,p.yj)(e)}),(0,n.jsx)(u.m,{cursor:{stroke:h,strokeOpacity:.3},contentStyle:{background:"#181c22",border:"1px solid ".concat(h),borderRadius:6,fontSize:12,color:"#dfe2eb"},formatter:(e,t,n)=>{var o,s;let i=null!=(s=null==n||null==(o=n.payload)?void 0:o.raw)?s:0;return"tokens"===r?[(0,p.yj)(i),"tokens"]:"sessions"===r?[i.toString(),"sessions"]:["$".concat(i.toFixed(2)),"cost"]},labelFormatter:e=>"Day ".concat(e)}),(0,n.jsx)(m.G,{type:"monotone",dataKey:"value",stroke:h,strokeWidth:2,fill:"url(#grad-".concat(r,")"),isAnimationActive:!1})]})})})}function x(e){let{data:t,label:r="last 30 days",metric:i,scale:a}=e,l=(0,s.useRouter)(),c=(0,s.usePathname)(),d=(0,s.useSearchParams)(),u=(0,o.useMemo)(()=>!function(e,t){let r=e.map(e=>e[t]).filter(e=>e>0);if(r.length<5)return!1;let n=[...r].sort((e,t)=>e-t);return n[n.length-1]/Math.max(n[Math.max(0,Math.floor(.1*r.length)-1)],1)>50}(t,i)?"lin":"log",[t,i]),m=null!=a?a:u,p=(e,t,r)=>{let n=new URLSearchParams(d.toString());null===t||t===r?n.delete(e):n.set(e,t);let o=n.toString();l.push(o?"".concat(c,"?").concat(o):c,{scroll:!1})};return(0,n.jsxs)("div",{className:"card",children:[(0,n.jsxs)("div",{className:"card-header flex items-center justify-between",children:[(0,n.jsxs)("span",{children:["Usage — ",r]}),(0,n.jsxs)("div",{className:"flex items-center gap-3 normal-case tracking-normal",children:[(0,n.jsx)("div",{className:"flex items-center gap-0.5",children:[{id:"tokens",label:"Tokens"},{id:"sessions",label:"Sessions"},{id:"cost",label:"Est. Cost"}].map(e=>(0,n.jsx)("button",{onClick:()=>p("metric",e.id,"tokens"),className:"px-2 py-0.5 text-[11px] rounded transition-colors font-mono ".concat(i===e.id?"bg-primary/15 text-primary":"text-ink-mute hover:text-ink-dim"),children:e.label},e.id))}),(0,n.jsx)("div",{className:"w-px h-4 bg-surface-3"}),(0,n.jsx)("div",{className:"flex items-center gap-0.5",children:["lin","log"].map(e=>(0,n.jsxs)("button",{onClick:()=>p("scale",e,u),className:"px-1.5 py-0.5 text-[10px] rounded transition-colors font-mono uppercase relative ".concat(m===e?"bg-secondary/15 text-secondary":"text-ink-mute hover:text-ink-dim"),title:"log"===e?"Logarithmic scale — better when one day dwarfs the rest":"Linear scale",children:[e,null===a&&u===e&&(0,n.jsx)("span",{className:"absolute -top-0.5 -right-0.5 w-1.5 h-1.5 rounded-full bg-secondary",title:"auto-selected based on data range"})]},e))})]})]}),(0,n.jsx)("div",{className:"p-4",children:(0,n.jsx)(h,{data:t,metric:i,scale:m})})]})}},30926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return n.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}});let n=r(41209),o=r(85153),s=r(77197)},34077:(e,t,r)=>{"use strict";r.d(t,{FreshnessIndicator:()=>i});var n=r(95155),o=r(12115),s=r(20063);function i(e){let{lastIngestedAt:t}=e,[,r]=(0,o.useState)(0),[i,c]=(0,o.useState)(!1),[d,u]=(0,o.useTransition)(),m=(0,s.useRouter)();(0,o.useEffect)(()=>{let e=setInterval(()=>r(e=>e+1),5e3);return()=>clearInterval(e)},[]);let p=0===t?"never scanned":"updated ".concat(function(e){let t=Date.now()-e;return t<1e3?"just now":t<6e4?"".concat(l(Math.round(t/1e3)),"s"):t<36e5?"".concat(l(Math.round(t/6e4)),"m"):"".concat(l(Math.round(t/36e5)),"h")}(t)," ago"),h=0===t,x=i||d;return(0,n.jsxs)("button",{type:"button",onClick:function(){u(()=>m.refresh())},onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),disabled:h||d,title:"Re-scan local sessions and refresh",style:{width:"128px"},className:"text-[11px] font-mono tabular px-2 py-0.5 rounded transition-colors text-ink-mute hover:text-primary hover:bg-surface-2 focus-visible:text-primary focus-visible:bg-surface-2 outline-none disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-ink-mute disabled:cursor-not-allowed grid items-center",children:[(0,n.jsx)("span",{className:"col-start-1 row-start-1 transition-opacity flex items-center justify-center gap-1.5 whitespace-nowrap",style:{opacity:+!x},children:p}),(0,n.jsxs)("span",{"aria-hidden":!0,className:"col-start-1 row-start-1 transition-opacity flex items-center justify-center gap-1.5 whitespace-nowrap",style:{opacity:+!!x},children:[(0,n.jsx)(a,{spinning:d}),(0,n.jsx)("span",{children:"refresh"})]})]})}function a(e){let{spinning:t}=e;return(0,n.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:t?"animate-spin":"",children:[(0,n.jsx)("path",{d:"M3 12a9 9 0 0 1 15.5-6.4L21 8"}),(0,n.jsx)("path",{d:"M21 3v5h-5"}),(0,n.jsx)("path",{d:"M21 12a9 9 0 0 1-15.5 6.4L3 16"}),(0,n.jsx)("path",{d:"M3 21v-5h5"})]})}function l(e){return e<10?"0".concat(e):String(e)}},40250:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,52619,23)),Promise.resolve().then(r.bind(r,15433)),Promise.resolve().then(r.bind(r,34077)),Promise.resolve().then(r.bind(r,74050)),Promise.resolve().then(r.bind(r,61438)),Promise.resolve().then(r.bind(r,95925)),Promise.resolve().then(r.bind(r,17834)),Promise.resolve().then(r.bind(r,29366))},61438:(e,t,r)=>{"use strict";r.d(t,{ProjectFilter:()=>a});var n=r(95155),o=r(20063),s=r(12115),i=r(47650);function a(e){var t,r;let{projects:a,current:l}=e,c=(0,o.useRouter)(),d=(0,o.usePathname)(),u=(0,o.useSearchParams)(),[m,p]=(0,s.useState)(!1),[h,x]=(0,s.useTransition)(),[f,y]=(0,s.useState)(!1),[b,v]=(0,s.useState)(null),g=(0,s.useRef)(null);(0,s.useEffect)(()=>y(!0),[]);let k=e=>{let t=new URLSearchParams(u.toString());e?t.set("project",e):t.delete("project");let r=t.toString();p(!1),x(()=>c.push(r?"".concat(d,"?").concat(r):d,{scroll:!1}))},j=l?null!=(r=null==(t=a.find(e=>e.id===l))?void 0:t.name)?r:"project":null;return(0,s.useEffect)(()=>{if(!m)return;let e=e=>{var t;let r=e.target;if(null==(t=g.current)?void 0:t.contains(r))return;let n=document.getElementById("project-filter-pop");null!=n&&n.contains(r)||p(!1)},t=e=>{"Escape"===e.key&&p(!1)};return window.addEventListener("mousedown",e),window.addEventListener("keydown",t),()=>{window.removeEventListener("mousedown",e),window.removeEventListener("keydown",t)}},[m]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{ref:g,onClick:()=>{if(!m&&g.current){let e=g.current.getBoundingClientRect();v({top:e.bottom+6,left:e.left,width:Math.max(e.width,220)})}p(e=>!e)},className:"text-[11px] font-mono px-2 py-0.5 rounded transition-colors flex items-center gap-1.5 ".concat(l?"bg-primary/15 text-primary":"text-ink-mute hover:text-ink-dim hover:bg-surface-2"," ").concat(h?"opacity-60":""),title:"Filter by project",children:[(0,n.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})}),(0,n.jsx)("span",{className:"truncate max-w-[140px]",children:null!=j?j:"All projects"}),(0,n.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform ".concat(m?"rotate-180":""),children:(0,n.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),f&&m&&b&&(0,i.createPortal)((0,n.jsxs)("div",{id:"project-filter-pop",style:{position:"fixed",top:b.top,left:b.left,minWidth:b.width,backgroundColor:"#1c2026",zIndex:100,isolation:"isolate"},className:"border border-surface-3 rounded-md shadow-xl overflow-hidden text-[12px] font-mono max-h-[60vh] overflow-y-auto",children:[(0,n.jsx)("button",{onClick:()=>k(null),className:"w-full text-left px-3 py-2 transition-colors hover:bg-surface-2 ".concat(l?"text-ink-dim":"text-primary bg-primary/10"),children:"All projects"}),(0,n.jsx)("div",{className:"h-px bg-surface-3"}),a.map(e=>(0,n.jsx)("button",{onClick:()=>k(e.id),className:"w-full text-left px-3 py-2 transition-colors hover:bg-surface-2 truncate ".concat(l===e.id?"text-primary bg-primary/10":"text-ink-dim"),title:e.name,children:e.name},e.id)),0===a.length&&(0,n.jsx)("div",{className:"px-3 py-2 text-ink-mute",children:"No projects yet."})]}),document.body)]})}},74050:(e,t,r)=>{"use strict";r.d(t,{ModelFilter:()=>a});var n=r(95155),o=r(20063),s=r(12115),i=r(47650);function a(e){let{families:t,current:r}=e,a=(0,o.useRouter)(),l=(0,o.usePathname)(),c=(0,o.useSearchParams)(),[d,u]=(0,s.useState)(!1),[m,p]=(0,s.useTransition)(),[h,x]=(0,s.useState)(!1),[f,y]=(0,s.useState)(null),b=(0,s.useRef)(null);(0,s.useEffect)(()=>x(!0),[]);let v=e=>{let t=new URLSearchParams(c.toString());e?t.set("model",e):t.delete("model");let r=t.toString();u(!1),p(()=>a.push(r?"".concat(l,"?").concat(r):l,{scroll:!1}))};return(0,s.useEffect)(()=>{if(!d)return;let e=e=>{var t;let r=e.target;if(null==(t=b.current)?void 0:t.contains(r))return;let n=document.getElementById("model-filter-pop");null!=n&&n.contains(r)||u(!1)},t=e=>{"Escape"===e.key&&u(!1)};return window.addEventListener("mousedown",e),window.addEventListener("keydown",t),()=>{window.removeEventListener("mousedown",e),window.removeEventListener("keydown",t)}},[d]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{ref:b,onClick:()=>{if(!d&&b.current){let e=b.current.getBoundingClientRect();y({top:e.bottom+6,left:e.left,width:Math.max(e.width,200)})}u(e=>!e)},className:"text-[11px] font-mono px-2 py-0.5 rounded transition-colors flex items-center gap-1.5 ".concat(r?"bg-primary/15 text-primary":"text-ink-mute hover:text-ink-dim hover:bg-surface-2"," ").concat(m?"opacity-60":""),title:"Filter by model",children:[(0,n.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,n.jsx)("path",{d:"M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),(0,n.jsx)("span",{className:"truncate max-w-[140px]",children:null!=r?r:"All models"}),(0,n.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform ".concat(d?"rotate-180":""),children:(0,n.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),h&&d&&f&&(0,i.createPortal)((0,n.jsxs)("div",{id:"model-filter-pop",style:{position:"fixed",top:f.top,left:f.left,minWidth:f.width,backgroundColor:"#1c2026",zIndex:100,isolation:"isolate"},className:"border border-surface-3 rounded-md shadow-xl overflow-hidden text-[12px] font-mono max-h-[60vh] overflow-y-auto",children:[(0,n.jsx)("button",{onClick:()=>v(null),className:"w-full text-left px-3 py-2 transition-colors hover:bg-surface-2 ".concat(r?"text-ink-dim":"text-primary bg-primary/10"),children:"All models"}),(0,n.jsx)("div",{className:"h-px bg-surface-3"}),t.map(e=>(0,n.jsxs)("button",{onClick:()=>v(e.family),className:"w-full text-left px-3 py-2 transition-colors hover:bg-surface-2 flex items-center justify-between gap-3 ".concat(r===e.family?"text-primary bg-primary/10":"text-ink-dim"),title:e.family,children:[(0,n.jsx)("span",{className:"truncate",children:e.family}),(0,n.jsx)("span",{className:"text-ink-mute text-[10px] tabular",children:e.sessions})]},e.family)),0===t.length&&(0,n.jsx)("div",{className:"px-3 py-2 text-ink-mute",children:"No models seen yet."})]}),document.body)]})}},85722:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});var n=r(30926);let o=(0,n.createServerReference)("404bcb28ddc5fd7d11963dbddc1e3bb5cd34f55700",n.callServer,void 0,n.findSourceMapURL,"classifyAction")},95925:(e,t,r)=>{"use strict";r.d(t,{RangePicker:()=>a});var n=r(95155),o=r(20063),s=r(12115);let i=[{key:"7d",label:"Last 7 days",days:7},{key:"30d",label:"Last 30 days",days:30},{key:"90d",label:"Last 90 days",days:90},{key:"all",label:"All time",days:null}];function a(e){let{current:t}=e,r=(0,o.useRouter)(),a=(0,o.usePathname)(),l=(0,o.useSearchParams)(),[c,d]=(0,s.useTransition)();return(0,n.jsx)("div",{className:"flex items-center gap-0.5 normal-case tracking-normal transition-opacity ".concat(c?"opacity-50":""),children:i.map(e=>(0,n.jsx)("button",{onClick:()=>(e=>{let t=new URLSearchParams(l.toString());"30d"===e?t.delete("range"):t.set("range",e);let n=t.toString();d(()=>{r.push(n?"".concat(a,"?").concat(n):a)})})(e.key),className:"px-2 py-0.5 text-[11px] rounded transition-colors font-mono ".concat(t===e.key?"bg-primary/15 text-primary":"text-ink-mute hover:text-ink-dim"),children:"all"===e.key?"All":e.key},e.key))})}}},e=>{e.O(0,[619,997,441,255,358],()=>e(e.s=40250)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[801],{17834:(e,t,o)=>{"use strict";o.d(t,{ShareButton:()=>r});var n=o(95155),i=o(12115);function r(e){let{imageUrl:t,className:o}=e,[r,d]=(0,i.useState)("idle"),[c,u]=(0,i.useState)(null),h=async()=>{d("busy"),u(null);try{var e;let o=await fetch(t);if(!o.ok)throw Error("HTTP ".concat(o.status));let n=await o.blob();if("undefined"==typeof ClipboardItem||!(null==(e=navigator.clipboard)?void 0:e.write))throw Error("clipboard image unsupported");let i=new ClipboardItem({"image/png":n});await navigator.clipboard.write([i]),d("done"),setTimeout(()=>d("idle"),2400)}catch(e){try{let e=await fetch(t),o=await e.blob(),n=URL.createObjectURL(o),i=document.createElement("a");i.href=n,i.download="agentgraphed-stats.png",document.body.appendChild(i),i.click(),document.body.removeChild(i),setTimeout(()=>URL.revokeObjectURL(n),5e3),u("Saved to Downloads (clipboard image unsupported)"),d("err"),setTimeout(()=>d("idle"),4e3)}catch(t){u(t.message||e.message),d("err"),setTimeout(()=>d("idle"),3e3)}}};return(0,n.jsx)("button",{onClick:h,disabled:"busy"===r,"aria-label":"Share",title:"busy"===r?"Generating image…":"done"===r?"Image copied to clipboard":"err"===r?null!=c?c:"Try again":"Copy share image to clipboard",className:"btn-icon ".concat("done"===r?"text-secondary":""," ").concat(null!=o?o:""),children:"busy"===r?(0,n.jsx)(l,{}):"done"===r?(0,n.jsx)(s,{}):(0,n.jsx)(a,{})})}function a(){return(0,n.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}),(0,n.jsx)("polyline",{points:"16 6 12 2 8 6"}),(0,n.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"15"})]})}function s(){return(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("polyline",{points:"20 6 9 17 4 12"})})}function l(){return(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"animate-spin",children:(0,n.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}},83990:(e,t,o)=>{Promise.resolve().then(o.t.bind(o,52619,23)),Promise.resolve().then(o.bind(o,17834))}},e=>{e.O(0,[619,441,255,358],()=>e(e.s=83990)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[404,893],{23374:(e,s,_)=>{Promise.resolve().then(_.t.bind(_,52619,23))}},e=>{e.O(0,[619,441,255,358],()=>e(e.s=23374)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[824],{17834:(e,t,n)=>{"use strict";n.d(t,{ShareButton:()=>o});var r=n(95155),i=n(12115);function o(e){let{imageUrl:t,className:n}=e,[o,l]=(0,i.useState)("idle"),[d,u]=(0,i.useState)(null),h=async()=>{l("busy"),u(null);try{var e;let n=await fetch(t);if(!n.ok)throw Error("HTTP ".concat(n.status));let r=await n.blob();if("undefined"==typeof ClipboardItem||!(null==(e=navigator.clipboard)?void 0:e.write))throw Error("clipboard image unsupported");let i=new ClipboardItem({"image/png":r});await navigator.clipboard.write([i]),l("done"),setTimeout(()=>l("idle"),2400)}catch(e){try{let e=await fetch(t),n=await e.blob(),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download="agentgraphed-stats.png",document.body.appendChild(i),i.click(),document.body.removeChild(i),setTimeout(()=>URL.revokeObjectURL(r),5e3),u("Saved to Downloads (clipboard image unsupported)"),l("err"),setTimeout(()=>l("idle"),4e3)}catch(t){u(t.message||e.message),l("err"),setTimeout(()=>l("idle"),3e3)}}};return(0,r.jsx)("button",{onClick:h,disabled:"busy"===o,"aria-label":"Share",title:"busy"===o?"Generating image…":"done"===o?"Image copied to clipboard":"err"===o?null!=d?d:"Try again":"Copy share image to clipboard",className:"btn-icon ".concat("done"===o?"text-secondary":""," ").concat(null!=n?n:""),children:"busy"===o?(0,r.jsx)(c,{}):"done"===o?(0,r.jsx)(s,{}):(0,r.jsx)(a,{})})}function a(){return(0,r.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}),(0,r.jsx)("polyline",{points:"16 6 12 2 8 6"}),(0,r.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"15"})]})}function s(){return(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("polyline",{points:"20 6 9 17 4 12"})})}function c(){return(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"animate-spin",children:(0,r.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}},30926:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{callServer:function(){return r.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}});let r=n(41209),i=n(85153),o=n(77197)},36960:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,52619,23)),Promise.resolve().then(n.bind(n,44782)),Promise.resolve().then(n.bind(n,95828)),Promise.resolve().then(n.bind(n,17834))},44782:(e,t,n)=>{"use strict";n.d(t,{ResumePanel:()=>o});var r=n(95155),i=n(12115);function o(e){let{provider:t,cwd:n,sessionId:o}=e,[c,l]=(0,i.useState)(!1),d=function(e,t,n){let r='cd "'.concat(t,'"');return"claude"===e?"".concat(r," && claude --resume ").concat(n):"codex"===e?"".concat(r," && codex resume ").concat(n):r}(t,n,o),u=async()=>{await navigator.clipboard.writeText(d),l(!0),setTimeout(()=>l(!1),2e3)};return(0,r.jsxs)("div",{className:"card",children:[(0,r.jsxs)("div",{className:"card-header flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Resume in your terminal"}),(0,r.jsxs)("span",{className:"normal-case tracking-normal font-normal text-ink-mute text-[11px]",children:["paste into ","claude"===t?"Claude Code":"codex"===t?"Codex CLI":t]})]}),(0,r.jsxs)("div",{className:"p-3 flex items-stretch gap-2",children:[(0,r.jsx)("code",{className:"flex-1 bg-canvas border border-surface-3 rounded px-3 py-2 font-mono text-code-sm text-ink-dim overflow-x-auto whitespace-nowrap leading-relaxed",title:d,children:d}),(0,r.jsx)("button",{onClick:u,className:"btn ".concat(c?"text-secondary":""," flex-shrink-0"),title:"Copy command to clipboard",children:c?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{}),(0,r.jsx)("span",{children:"Copied"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a,{}),(0,r.jsx)("span",{children:"Copy"})]})})]})]})}function a(){return(0,r.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,r.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function s(){return(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("polyline",{points:"20 6 9 17 4 12"})})}},95828:(e,t,n)=>{"use strict";n.d(t,{SessionActions:()=>l});var r=n(95155),i=n(12115),o=n(52619),a=n.n(o),s=n(30926);let c=(0,s.createServerReference)("409df161bd853257579b553d81125acb8a9b5b40c8",s.callServer,void 0,s.findSourceMapURL,"generateContextAction");function l(e){let{sessionId:t,hasLlmKey:n,cachedContext:o}=e,[s,l]=(0,i.useState)(o),[d,u]=(0,i.useState)(!1),[h,x]=(0,i.useState)(null),[m,p]=(0,i.useState)(null),[b,f]=(0,i.useTransition)();return(0,r.jsxs)("div",{className:"flex items-center gap-2 relative",children:[(0,r.jsx)("button",{onClick:()=>{x(null),f(async()=>{if(s){await navigator.clipboard.writeText(s),u(!0),setTimeout(()=>u(!1),1800);return}let e=await c(t);if(!e.ok)return void x(e.error);l(e.context),p(e.costUsd),await navigator.clipboard.writeText(e.context),u(!0),setTimeout(()=>u(!1),1800)})},disabled:!n||b,title:n?"Summarize this session so you can paste it into a fresh chat":"Add an API key in Settings to enable",className:"btn ".concat(n?"btn-primary":""," disabled:opacity-50 disabled:cursor-not-allowed"),children:b?"… summarizing":d?"✓ Copied":s?"Copy summary":"Summarize for new chat"}),(h||null!==m&&m>0||!n)&&(0,r.jsxs)("div",{className:"absolute top-full right-0 mt-2 text-[11px] text-ink-mute flex items-center gap-2 whitespace-nowrap",children:[h&&(0,r.jsx)("span",{className:"text-error",children:h}),null!==m&&m>0&&(0,r.jsxs)("span",{className:"font-mono",children:["cost $",m.toFixed(4)]}),!n&&(0,r.jsxs)("span",{children:["summary needs ",(0,r.jsx)(a(),{href:"/settings",className:"text-primary hover:underline",children:"an API key"})]})]})]})}}},e=>{e.O(0,[619,441,255,358],()=>e(e.s=36960)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[824],{17834:(e,t,n)=>{"use strict";n.d(t,{ShareButton:()=>o});var r=n(95155),i=n(12115);function o(e){let{imageUrl:t,className:n}=e,[o,l]=(0,i.useState)("idle"),[d,u]=(0,i.useState)(null),h=async()=>{l("busy"),u(null);try{var e;let n=await fetch(t);if(!n.ok)throw Error("HTTP ".concat(n.status));let r=await n.blob();if("undefined"==typeof ClipboardItem||!(null==(e=navigator.clipboard)?void 0:e.write))throw Error("clipboard image unsupported");let i=new ClipboardItem({"image/png":r});await navigator.clipboard.write([i]),l("done"),setTimeout(()=>l("idle"),2400)}catch(e){try{let e=await fetch(t),n=await e.blob(),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download="agentgraphed-stats.png",document.body.appendChild(i),i.click(),document.body.removeChild(i),setTimeout(()=>URL.revokeObjectURL(r),5e3),u("Saved to Downloads (clipboard image unsupported)"),l("err"),setTimeout(()=>l("idle"),4e3)}catch(t){u(t.message||e.message),l("err"),setTimeout(()=>l("idle"),3e3)}}};return(0,r.jsx)("button",{onClick:h,disabled:"busy"===o,"aria-label":"Share",title:"busy"===o?"Generating image…":"done"===o?"Image copied to clipboard":"err"===o?null!=d?d:"Try again":"Copy share image to clipboard",className:"btn-icon ".concat("done"===o?"text-secondary":""," ").concat(null!=n?n:""),children:"busy"===o?(0,r.jsx)(c,{}):"done"===o?(0,r.jsx)(s,{}):(0,r.jsx)(a,{})})}function a(){return(0,r.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}),(0,r.jsx)("polyline",{points:"16 6 12 2 8 6"}),(0,r.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"15"})]})}function s(){return(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("polyline",{points:"20 6 9 17 4 12"})})}function c(){return(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"animate-spin",children:(0,r.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}},30926:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{callServer:function(){return r.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}});let r=n(41209),i=n(85153),o=n(77197)},40040:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,52619,23)),Promise.resolve().then(n.bind(n,44782)),Promise.resolve().then(n.bind(n,63637)),Promise.resolve().then(n.bind(n,17834))},44782:(e,t,n)=>{"use strict";n.d(t,{ResumePanel:()=>o});var r=n(95155),i=n(12115);function o(e){let{provider:t,cwd:n,sessionId:o}=e,[c,l]=(0,i.useState)(!1),d=function(e,t,n){let r='cd "'.concat(t,'"');return"claude"===e?"".concat(r," && claude --resume ").concat(n):"codex"===e?"".concat(r," && codex resume ").concat(n):r}(t,n,o),u=async()=>{await navigator.clipboard.writeText(d),l(!0),setTimeout(()=>l(!1),2e3)};return(0,r.jsxs)("div",{className:"card",children:[(0,r.jsxs)("div",{className:"card-header flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Resume in your terminal"}),(0,r.jsxs)("span",{className:"normal-case tracking-normal font-normal text-ink-mute text-[11px]",children:["paste into ","claude"===t?"Claude Code":"codex"===t?"Codex CLI":t]})]}),(0,r.jsxs)("div",{className:"p-3 flex items-stretch gap-2",children:[(0,r.jsx)("code",{className:"flex-1 bg-canvas border border-surface-3 rounded px-3 py-2 font-mono text-code-sm text-ink-dim overflow-x-auto whitespace-nowrap leading-relaxed",title:d,children:d}),(0,r.jsx)("button",{onClick:u,className:"btn ".concat(c?"text-secondary":""," flex-shrink-0"),title:"Copy command to clipboard",children:c?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{}),(0,r.jsx)("span",{children:"Copied"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a,{}),(0,r.jsx)("span",{children:"Copy"})]})})]})]})}function a(){return(0,r.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,r.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function s(){return(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("polyline",{points:"20 6 9 17 4 12"})})}},63637:(e,t,n)=>{"use strict";n.d(t,{SessionActions:()=>l});var r=n(95155),i=n(12115),o=n(52619),a=n.n(o),s=n(30926);let c=(0,s.createServerReference)("408982b0f25ec9efd83542ecf8e59c4d5216a7d2cd",s.callServer,void 0,s.findSourceMapURL,"generateContextAction");function l(e){let{sessionId:t,hasLlmKey:n,cachedContext:o}=e,[s,l]=(0,i.useState)(o),[d,u]=(0,i.useState)(!1),[h,x]=(0,i.useState)(null),[m,p]=(0,i.useState)(null),[f,b]=(0,i.useTransition)();return(0,r.jsxs)("div",{className:"flex items-center gap-2 relative",children:[(0,r.jsx)("button",{onClick:()=>{x(null),b(async()=>{if(s){await navigator.clipboard.writeText(s),u(!0),setTimeout(()=>u(!1),1800);return}let e=await c(t);if(!e.ok)return void x(e.error);l(e.context),p(e.costUsd),await navigator.clipboard.writeText(e.context),u(!0),setTimeout(()=>u(!1),1800)})},disabled:!n||f,title:n?"Summarize this session so you can paste it into a fresh chat":"Add an API key in Settings to enable",className:"btn ".concat(n?"btn-primary":""," disabled:opacity-50 disabled:cursor-not-allowed"),children:f?"… summarizing":d?"✓ Copied":s?"Copy summary":"Summarize for new chat"}),(h||null!==m&&m>0||!n)&&(0,r.jsxs)("div",{className:"absolute top-full right-0 mt-2 text-[11px] text-ink-mute flex items-center gap-2 whitespace-nowrap",children:[h&&(0,r.jsx)("span",{className:"text-error",children:h}),null!==m&&m>0&&(0,r.jsxs)("span",{className:"font-mono",children:["cost $",m.toFixed(4)]}),!n&&(0,r.jsxs)("span",{children:["summary needs ",(0,r.jsx)(a(),{href:"/settings",className:"text-primary hover:underline",children:"an API key"})]})]})]})}}},e=>{e.O(0,[619,441,255,358],()=>e(e.s=40040)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[898],{20063:(e,t,r)=>{"use strict";var n=r(47260);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},20467:(e,t,r)=>{"use strict";function n(e){return e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e3?"".concat((e/1e3).toFixed(1),"k"):e.toString()}function a(e){return e>=1e3?"$".concat(e.toFixed(0)):"$".concat(e.toFixed(2))}function s(e){let t=Math.floor(e/1e3);if(t<60)return"".concat(t,"s");let r=Math.floor(t/60);if(r<60)return"".concat(r,"m");let n=Math.floor(r/60);return"".concat(n,"h ").concat(r%60,"m")}r.d(t,{F0:()=>a,c5:()=>s,yj:()=>n})},24885:(e,t,r)=>{Promise.resolve().then(r.bind(r,38250))},38250:(e,t,r)=>{"use strict";r.d(t,{SessionRow:()=>i});var n=r(95155),a=r(20063),s=r(20467);let o={Planning:"bg-tertiary-soft text-ink-dim border-ink-mute/30",Debugging:"bg-error/15 text-error border-error/30",Refactor:"bg-primary/10 text-primary border-primary/30",Feature:"bg-secondary/10 text-secondary border-secondary/30",Styling:"bg-fuchsia-400/10 text-fuchsia-300 border-fuchsia-400/30","SEO/Content":"bg-amber-400/10 text-amber-300 border-amber-400/30",DevOps:"bg-orange-400/10 text-orange-300 border-orange-400/30",Data:"bg-sky-400/10 text-sky-300 border-sky-400/30",Payments:"bg-emerald-400/10 text-emerald-300 border-emerald-400/30",Docs:"bg-violet-400/10 text-violet-300 border-violet-400/30",Unknown:"bg-surface-3 text-ink-mute border-surface-4"};function c(e){let{category:t,size:r="sm"}=e,a=o[t]||o.Unknown;return(0,n.jsx)("span",{className:"inline-block ".concat("xs"===r?"text-[9px] px-1 py-0":"text-[10px] px-1.5 py-0.5"," rounded font-mono uppercase tracking-wider border ").concat(a," shrink-0"),children:t})}function i(e){let{session:t,zebra:r}=e,o=(0,a.useRouter)(),i="/sessions/".concat(t.id),u=t.input_tokens+t.output_tokens+t.cache_read_tokens+t.cache_write_tokens,l=t.summary?t.summary.split("\n")[0].trim():t.heuristic_title?t.heuristic_title:t.first_prompt?function(e){let t=e.trim(),r=(t=(t=(t=(t=(t=(t=(t=t.replace(/<[^>]+>/g," ")).replace(/^\/[a-z][a-z0-9-]*(\s|$)/i,"")).replace(/```[a-z]*\n?/gi," ").replace(/```/g," ").replace(/`/g,"")).replace(/\[([^\]]+)\]\([^)]*\)/g,"$1")).replace(/https?:\/\/\S+/g,"")).replace(/(^|\s)(\/|~\/)[\w./~-]+/g," ")).replace(/\s+/g," ").trim()).search(/[.!?](\s|$)/);if(r>8&&r<90&&(t=t.slice(0,r).trim()),0===t.length)return"(untitled session)";if((t=t.charAt(0).toUpperCase()+t.slice(1)).length<=90)return t;let n=t.lastIndexOf(" ",90);return(n>50?t.slice(0,n):t.slice(0,90))+"…"}(t.first_prompt):"(untitled session)",d=function(e){if(e.categories)try{let t=JSON.parse(e.categories);if(Array.isArray(t))return t.filter(e=>"string"==typeof e)}catch(e){}return e.category?[e.category]:[]}(t);return(0,n.jsxs)("tr",{onClick:()=>o.push(i),onAuxClick:e=>{1===e.button&&window.open(i,"_blank")},onKeyDown:e=>{"Enter"===e.key&&o.push(i)},tabIndex:0,role:"link",className:"border-t border-surface-2 cursor-pointer transition-colors hover:bg-surface-2/60 focus:outline-none focus:bg-surface-2/70 ".concat(r?"bg-surface-1/30":""),children:[(0,n.jsx)("td",{className:"px-3 py-2 font-mono text-code-sm text-ink-mute",children:new Date(t.started_at).toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}),(0,n.jsx)("td",{className:"px-3 py-2",children:(0,n.jsx)("span",{className:"inline-block px-1.5 py-0.5 rounded text-[10px] font-mono uppercase tracking-wider ".concat("claude"===t.provider?"bg-primary/15 text-primary":"bg-secondary/15 text-secondary"),children:t.provider})}),(0,n.jsx)("td",{className:"px-3 py-2 text-ink-dim",children:t.project_name}),(0,n.jsx)("td",{className:"px-3 py-2 font-mono text-code-sm text-ink-mute truncate max-w-[180px]",children:t.model||"—"}),(0,n.jsx)("td",{className:"px-3 py-2 max-w-[420px]",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,n.jsx)("span",{className:"text-ink truncate",children:l}),d.map(e=>(0,n.jsx)(c,{category:e},e))]})}),(0,n.jsx)("td",{className:"px-3 py-2 text-right font-mono tabular",children:(0,s.yj)(u)}),(0,n.jsx)("td",{className:"px-3 py-2 text-right font-mono tabular text-secondary",children:(0,s.F0)(t.est_cost_usd)}),(0,n.jsx)("td",{className:"px-3 py-2 text-right font-mono tabular text-ink-mute",children:(0,s.c5)(t.duration_ms)})]})}}},e=>{e.O(0,[441,255,358],()=>e(e.s=24885)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{30926:(e,s,a)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),!function(e,s){for(var a in s)Object.defineProperty(e,a,{enumerable:!0,get:s[a]})}(s,{callServer:function(){return t.callServer},createServerReference:function(){return n.createServerReference},findSourceMapURL:function(){return r.findSourceMapURL}});let t=a(41209),r=a(85153),n=a(77197)},48642:(e,s,a)=>{"use strict";a.d(s,{LlmSection:()=>b});var t=a(95155),r=a(12115),n=a(30926);let i=(0,n.createServerReference)("40d025f6325797c124231a3041a7cdb8e31fbbda34",n.callServer,void 0,n.findSourceMapURL,"saveLlmAction"),o=(0,n.createServerReference)("40556a6d15487b2f88e9deb306be92feff8f744ca5",n.callServer,void 0,n.findSourceMapURL,"setAutoClassifyAction"),l=(0,n.createServerReference)("40eafd3ee6454f54ccab40a274aa7dd142f80dd2c4",n.callServer,void 0,n.findSourceMapURL,"clearKeyAction"),c=(0,n.createServerReference)("400132447f4cc6e314911c7e2bdb0e15a790880ed3",n.callServer,void 0,n.findSourceMapURL,"estimateAction");var d=a(85722);let m=[{id:"claude-haiku-4-5",label:"Claude Haiku 4.5 (cheapest)",provider:"anthropic",input:1,output:5},{id:"claude-sonnet-4-6",label:"Claude Sonnet 4.6 (smarter)",provider:"anthropic",input:3,output:15},{id:"gpt-5-mini",label:"GPT-5 Mini (cheapest)",provider:"openai",input:.5,output:2},{id:"gpt-4o-mini",label:"GPT-4o Mini (very cheap)",provider:"openai",input:.15,output:.6},{id:"gpt-5",label:"GPT-5 (smarter)",provider:"openai",input:2.5,output:10}];function p(e){return m.filter(s=>s.provider===e)}function u(e){return"openai"===e?"gpt-5-mini":"claude-haiku-4-5"}let x=e=>e?e.slice(0,8)+"…"+e.slice(-4):"";function b(e){let{provider:s,anthKey:a,oaiKey:n,classifierModel:m,summarizerModel:b,classified:f,total:h,autoClassify:v}=e,[y,k]=(0,r.useState)(s),[j,N]=(0,r.useState)(m),[g,w]=(0,r.useState)(null),[S,C]=(0,r.useState)(v),[L,R]=(0,r.useState)({kind:"idle"}),[U,A]=(0,r.useTransition)(),M=("openai"===y?n:a).length>0,_=p(y),O=_.some(e=>e.id===j)?j:u(y),P=e=>{R({kind:"idle"}),A(async()=>{let s=await c(e);s.ok?R({kind:"estimate",totalUsd:s.totalUsd,rowCount:s.rowCount,modelLabel:s.modelLabel,scope:e}):R({kind:"error",message:s.error})})};return(0,t.jsxs)("div",{className:"card",children:[(0,t.jsxs)("div",{className:"card-header flex items-center justify-between",children:[(0,t.jsx)("span",{children:"LLM provider"}),(0,t.jsxs)("span",{className:"normal-case tracking-normal text-ink-mute text-[11px] font-mono",children:[f,"/",h," sessions classified"]})]}),(0,t.jsxs)("form",{action:e=>{A(async()=>{await i(e),w(Date.now()),setTimeout(()=>w(null),2e3)})},className:"p-5 space-y-4 text-body-md",children:[(0,t.jsxs)("p",{className:"text-ink-dim text-body-sm",children:["Optional. Used to auto-title and categorize sessions, and to generate context primers when you click ",(0,t.jsx)("em",{children:"Copy context"})," on a session. Skip this and titles stay as the raw first prompt."]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("label",{className:"text-label-caps text-ink-mute block",children:"Provider"}),(0,t.jsxs)("select",{name:"provider",value:y,onChange:e=>{var s;k(s=e.target.value),p(s).some(e=>e.id===j)||N(u(s))},className:"bg-surface-1 border border-surface-3 rounded px-2 h-9 text-body-md w-full",children:[(0,t.jsx)("option",{value:"anthropic",children:"Anthropic"}),(0,t.jsx)("option",{value:"openai",children:"OpenAI"})]})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("label",{className:"text-label-caps text-ink-mute block",children:"Model"}),(0,t.jsx)("select",{name:"classifier_model",value:O,onChange:e=>N(e.target.value),className:"bg-surface-1 border border-surface-3 rounded px-2 h-9 text-body-md font-mono w-full",children:_.map(e=>(0,t.jsx)("option",{value:e.id,children:e.label},e.id))})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("label",{className:"text-label-caps text-ink-mute block flex items-center justify-between",children:["Anthropic key",a&&(0,t.jsx)("button",{type:"button",onClick:()=>A(()=>l("anthropic")),className:"normal-case tracking-normal text-[10px] text-ink-mute hover:text-error",children:"clear"})]}),(0,t.jsx)("input",{type:"password",name:"anthropic_key",placeholder:x(a)||"sk-ant-…",className:"bg-surface-1 border border-surface-3 rounded px-3 h-9 text-body-md font-mono w-full focus:outline-none focus:border-primary"})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("label",{className:"text-label-caps text-ink-mute block flex items-center justify-between",children:["OpenAI key",n&&(0,t.jsx)("button",{type:"button",onClick:()=>A(()=>l("openai")),className:"normal-case tracking-normal text-[10px] text-ink-mute hover:text-error",children:"clear"})]}),(0,t.jsx)("input",{type:"password",name:"openai_key",placeholder:x(n)||"sk-…",className:"bg-surface-1 border border-surface-3 rounded px-3 h-9 text-body-md font-mono w-full focus:outline-none focus:border-primary"})]})]}),(0,t.jsxs)("p",{className:"text-[11px] text-ink-mute leading-relaxed",children:["Keys are stored in plaintext in your local SQLite file — same threat model as"," ",(0,t.jsx)("span",{className:"font-mono",children:"~/.aws/credentials"})," or a ",(0,t.jsx)("span",{className:"font-mono",children:".env"}),". Never sent over the network. Any process that can read your home folder can read them."]}),(0,t.jsx)("input",{type:"hidden",name:"summarizer_model",value:b}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{className:"btn btn-primary",type:"submit",disabled:U,children:U?"Saving…":"Save"}),g&&(0,t.jsx)("span",{className:"text-body-sm text-secondary",children:"✓ saved"})]})]}),(0,t.jsxs)("div",{className:"px-5 pb-5 border-t border-surface-2 pt-4 space-y-3",children:[(0,t.jsxs)("label",{className:"flex items-start gap-3 text-body-sm ".concat(M?"cursor-pointer":"opacity-60 cursor-not-allowed"),children:[(0,t.jsx)("input",{type:"checkbox",checked:S,onChange:e=>{var s;C(s=e.target.checked),A(async()=>{await o(s)})},disabled:!M||U,className:"mt-1 accent-primary"}),(0,t.jsxs)("span",{className:"text-ink-dim",children:[(0,t.jsx)("span",{className:"text-ink font-medium",children:"Automatically classify new sessions"}),(0,t.jsx)("span",{className:"block text-ink-mute text-[11px] mt-0.5",children:"When a background scan finds unclassified sessions, batch them through the classifier. Costs ~$0.0001 per session."})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,t.jsx)("button",{type:"button",disabled:!M||U,onClick:()=>P("uncategorized"),className:"btn disabled:opacity-50 disabled:cursor-not-allowed",children:"Classify uncategorized"}),(0,t.jsx)("button",{type:"button",disabled:!M||U,onClick:()=>P("all"),className:"btn disabled:opacity-50 disabled:cursor-not-allowed",children:"Re-classify all"}),!M&&(0,t.jsx)("span",{className:"text-body-sm text-ink-mute",children:"Save a key above to enable."})]}),"estimate"===L.kind&&(0,t.jsxs)("div",{className:"border border-primary/40 bg-primary/5 rounded p-3 text-body-sm",children:[(0,t.jsx)("div",{className:"text-ink mb-2",children:0===L.rowCount?"Nothing to classify.":(0,t.jsxs)(t.Fragment,{children:["About to classify ",(0,t.jsx)("span",{className:"font-mono text-primary",children:L.rowCount})," ","sessions with ",L.modelLabel," for an estimated"," ",(0,t.jsxs)("span",{className:"font-mono text-primary",children:["$",L.totalUsd.toFixed(4)]}),"."]})}),L.rowCount>0&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{var e;return e=L.scope,void A(async()=>{let s=await (0,d.v)(e);s.ok?R({kind:"done",classified:s.classified,costUsd:s.costUsd,warning:s.warning}):R({kind:"error",message:s.error})})},className:"btn btn-primary",disabled:U,children:U?"Classifying…":"Confirm"}),(0,t.jsx)("button",{type:"button",onClick:()=>R({kind:"idle"}),className:"btn",disabled:U,children:"Cancel"})]})]}),"done"===L.kind&&(0,t.jsxs)("div",{className:"border border-secondary/40 bg-secondary/5 rounded p-3 text-body-sm text-ink space-y-1",children:[(0,t.jsxs)("div",{children:["✓ Classified ",(0,t.jsx)("span",{className:"font-mono text-secondary",children:L.classified})," ","sessions for ",(0,t.jsxs)("span",{className:"font-mono",children:["$",L.costUsd.toFixed(4)]}),"."]}),L.warning&&(0,t.jsxs)("div",{className:"text-error text-[11px] border-l-2 border-error pl-2 font-mono break-words",children:["Warning: ",L.warning]})]}),"error"===L.kind&&(0,t.jsx)("div",{className:"text-body-sm text-error border-l-2 border-error pl-3",children:L.message})]})]})}},66821:(e,s,a)=>{Promise.resolve().then(a.bind(a,48642))},85722:(e,s,a)=>{"use strict";a.d(s,{v:()=>r});var t=a(30926);let r=(0,t.createServerReference)("404bcb28ddc5fd7d11963dbddc1e3bb5cd34f55700",t.callServer,void 0,t.findSourceMapURL,"classifyAction")}},e=>{e.O(0,[441,255,358],()=>e(e.s=66821)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[404,893],{23374:(e,s,_)=>{Promise.resolve().then(_.t.bind(_,52619,23))}},e=>{e.O(0,[619,441,255,358],()=>e(e.s=23374)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[358],{19393:()=>{},57302:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,57150,23)),Promise.resolve().then(n.t.bind(n,81959,23)),Promise.resolve().then(n.t.bind(n,17989,23)),Promise.resolve().then(n.t.bind(n,63886,23)),Promise.resolve().then(n.t.bind(n,9766,23)),Promise.resolve().then(n.t.bind(n,15278,23)),Promise.resolve().then(n.t.bind(n,98924,23)),Promise.resolve().then(n.t.bind(n,24431,23)),Promise.resolve().then(n.bind(n,80622))}},e=>{var s=s=>e(e.s=s);e.O(0,[441,255],()=>(s(1666),s(57302))),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[358],{19393:()=>{},71861:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,57150,23)),Promise.resolve().then(n.t.bind(n,81959,23)),Promise.resolve().then(n.t.bind(n,17989,23)),Promise.resolve().then(n.t.bind(n,63886,23)),Promise.resolve().then(n.t.bind(n,9766,23)),Promise.resolve().then(n.t.bind(n,15278,23)),Promise.resolve().then(n.t.bind(n,98924,23)),Promise.resolve().then(n.t.bind(n,24431,23)),Promise.resolve().then(n.bind(n,80622))}},e=>{var s=s=>e(e.s=s);e.O(0,[441,255],()=>(s(1666),s(71861))),_N_E=e.O()}]);
@@ -1,13 +1,13 @@
1
1
  {
2
- "name": "@img/sharp-libvips-darwin-arm64",
2
+ "name": "@img/sharp-libvips-linux-x64",
3
3
  "version": "1.2.4",
4
- "description": "Prebuilt libvips and dependencies for use with sharp on macOS 64-bit ARM",
4
+ "description": "Prebuilt libvips and dependencies for use with sharp on Linux (glibc) x64",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/lovell/sharp-libvips.git",
10
- "directory": "npm/darwin-arm64"
10
+ "directory": "npm/linux-x64"
11
11
  },
12
12
  "license": "LGPL-3.0-or-later",
13
13
  "funding": {
@@ -27,10 +27,16 @@
27
27
  "./package": "./package.json",
28
28
  "./versions": "./versions.json"
29
29
  },
30
+ "config": {
31
+ "glibc": ">=2.26"
32
+ },
30
33
  "os": [
31
- "darwin"
34
+ "linux"
35
+ ],
36
+ "libc": [
37
+ "glibc"
32
38
  ],
33
39
  "cpu": [
34
- "arm64"
40
+ "x64"
35
41
  ]
36
42
  }
@@ -0,0 +1 @@
1
+ module.exports = __dirname;
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@img/sharp-libvips-linuxmusl-x64",
3
+ "version": "1.2.4",
4
+ "description": "Prebuilt libvips and dependencies for use with sharp on Linux (musl) x64",
5
+ "author": "Lovell Fuller <npm@lovell.info>",
6
+ "homepage": "https://sharp.pixelplumbing.com",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/lovell/sharp-libvips.git",
10
+ "directory": "npm/linuxmusl-x64"
11
+ },
12
+ "license": "LGPL-3.0-or-later",
13
+ "funding": {
14
+ "url": "https://opencollective.com/libvips"
15
+ },
16
+ "preferUnplugged": true,
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "files": [
21
+ "lib",
22
+ "versions.json"
23
+ ],
24
+ "type": "commonjs",
25
+ "exports": {
26
+ "./lib": "./lib/index.js",
27
+ "./package": "./package.json",
28
+ "./versions": "./versions.json"
29
+ },
30
+ "config": {
31
+ "musl": ">=1.2.2"
32
+ },
33
+ "os": [
34
+ "linux"
35
+ ],
36
+ "libc": [
37
+ "musl"
38
+ ],
39
+ "cpu": [
40
+ "x64"
41
+ ]
42
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "aom": "3.13.1",
3
+ "archive": "3.8.2",
4
+ "cairo": "1.18.4",
5
+ "cgif": "0.5.0",
6
+ "exif": "0.6.25",
7
+ "expat": "2.7.3",
8
+ "ffi": "3.5.2",
9
+ "fontconfig": "2.17.1",
10
+ "freetype": "2.14.1",
11
+ "fribidi": "1.0.16",
12
+ "glib": "2.86.1",
13
+ "harfbuzz": "12.1.0",
14
+ "heif": "1.20.2",
15
+ "highway": "1.3.0",
16
+ "imagequant": "2.4.1",
17
+ "lcms": "2.17",
18
+ "mozjpeg": "0826579",
19
+ "pango": "1.57.0",
20
+ "pixman": "0.46.4",
21
+ "png": "1.6.50",
22
+ "proxy-libintl": "0.5",
23
+ "rsvg": "2.61.2",
24
+ "spng": "0.7.4",
25
+ "tiff": "4.7.1",
26
+ "vips": "8.17.3",
27
+ "webp": "1.6.0",
28
+ "xml2": "2.15.1",
29
+ "zlib-ng": "2.2.5"
30
+ }
@@ -1,13 +1,13 @@
1
1
  {
2
- "name": "@img/sharp-darwin-arm64",
2
+ "name": "@img/sharp-linux-x64",
3
3
  "version": "0.34.5",
4
- "description": "Prebuilt sharp for use with macOS 64-bit ARM",
4
+ "description": "Prebuilt sharp for use with Linux (glibc) x64",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/lovell/sharp.git",
10
- "directory": "npm/darwin-arm64"
10
+ "directory": "npm/linux-x64"
11
11
  },
12
12
  "license": "Apache-2.0",
13
13
  "funding": {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "preferUnplugged": true,
17
17
  "optionalDependencies": {
18
- "@img/sharp-libvips-darwin-arm64": "1.2.4"
18
+ "@img/sharp-libvips-linux-x64": "1.2.4"
19
19
  },
20
20
  "files": [
21
21
  "lib"
@@ -25,16 +25,22 @@
25
25
  },
26
26
  "type": "commonjs",
27
27
  "exports": {
28
- "./sharp.node": "./lib/sharp-darwin-arm64.node",
28
+ "./sharp.node": "./lib/sharp-linux-x64.node",
29
29
  "./package": "./package.json"
30
30
  },
31
31
  "engines": {
32
32
  "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
33
33
  },
34
+ "config": {
35
+ "glibc": ">=2.26"
36
+ },
34
37
  "os": [
35
- "darwin"
38
+ "linux"
39
+ ],
40
+ "libc": [
41
+ "glibc"
36
42
  ],
37
43
  "cpu": [
38
- "arm64"
44
+ "x64"
39
45
  ]
40
46
  }
@@ -0,0 +1,191 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
13
+ owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities
16
+ that control, are controlled by, or are under common control with that entity.
17
+ For the purposes of this definition, "control" means (i) the power, direct or
18
+ indirect, to cause the direction or management of such entity, whether by
19
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+
22
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
23
+ permissions granted by this License.
24
+
25
+ "Source" form shall mean the preferred form for making modifications, including
26
+ but not limited to software source code, documentation source, and configuration
27
+ files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical transformation or
30
+ translation of a Source form, including but not limited to compiled object code,
31
+ generated documentation, and conversions to other media types.
32
+
33
+ "Work" shall mean the work of authorship, whether in Source or Object form, made
34
+ available under the License, as indicated by a copyright notice that is included
35
+ in or attached to the work (an example is provided in the Appendix below).
36
+
37
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
38
+ is based on (or derived from) the Work and for which the editorial revisions,
39
+ annotations, elaborations, or other modifications represent, as a whole, an
40
+ original work of authorship. For the purposes of this License, Derivative Works
41
+ shall not include works that remain separable from, or merely link (or bind by
42
+ name) to the interfaces of, the Work and Derivative Works thereof.
43
+
44
+ "Contribution" shall mean any work of authorship, including the original version
45
+ of the Work and any modifications or additions to that Work or Derivative Works
46
+ thereof, that is intentionally submitted to Licensor for inclusion in the Work
47
+ by the copyright owner or by an individual or Legal Entity authorized to submit
48
+ on behalf of the copyright owner. For the purposes of this definition,
49
+ "submitted" means any form of electronic, verbal, or written communication sent
50
+ to the Licensor or its representatives, including but not limited to
51
+ communication on electronic mailing lists, source code control systems, and
52
+ issue tracking systems that are managed by, or on behalf of, the Licensor for
53
+ the purpose of discussing and improving the Work, but excluding communication
54
+ that is conspicuously marked or otherwise designated in writing by the copyright
55
+ owner as "Not a Contribution."
56
+
57
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
58
+ of whom a Contribution has been received by Licensor and subsequently
59
+ incorporated within the Work.
60
+
61
+ 2. Grant of Copyright License.
62
+
63
+ Subject to the terms and conditions of this License, each Contributor hereby
64
+ grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
65
+ irrevocable copyright license to reproduce, prepare Derivative Works of,
66
+ publicly display, publicly perform, sublicense, and distribute the Work and such
67
+ Derivative Works in Source or Object form.
68
+
69
+ 3. Grant of Patent License.
70
+
71
+ Subject to the terms and conditions of this License, each Contributor hereby
72
+ grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
73
+ irrevocable (except as stated in this section) patent license to make, have
74
+ made, use, offer to sell, sell, import, and otherwise transfer the Work, where
75
+ such license applies only to those patent claims licensable by such Contributor
76
+ that are necessarily infringed by their Contribution(s) alone or by combination
77
+ of their Contribution(s) with the Work to which such Contribution(s) was
78
+ submitted. If You institute patent litigation against any entity (including a
79
+ cross-claim or counterclaim in a lawsuit) alleging that the Work or a
80
+ Contribution incorporated within the Work constitutes direct or contributory
81
+ patent infringement, then any patent licenses granted to You under this License
82
+ for that Work shall terminate as of the date such litigation is filed.
83
+
84
+ 4. Redistribution.
85
+
86
+ You may reproduce and distribute copies of the Work or Derivative Works thereof
87
+ in any medium, with or without modifications, and in Source or Object form,
88
+ provided that You meet the following conditions:
89
+
90
+ You must give any other recipients of the Work or Derivative Works a copy of
91
+ this License; and
92
+ You must cause any modified files to carry prominent notices stating that You
93
+ changed the files; and
94
+ You must retain, in the Source form of any Derivative Works that You distribute,
95
+ all copyright, patent, trademark, and attribution notices from the Source form
96
+ of the Work, excluding those notices that do not pertain to any part of the
97
+ Derivative Works; and
98
+ If the Work includes a "NOTICE" text file as part of its distribution, then any
99
+ Derivative Works that You distribute must include a readable copy of the
100
+ attribution notices contained within such NOTICE file, excluding those notices
101
+ that do not pertain to any part of the Derivative Works, in at least one of the
102
+ following places: within a NOTICE text file distributed as part of the
103
+ Derivative Works; within the Source form or documentation, if provided along
104
+ with the Derivative Works; or, within a display generated by the Derivative
105
+ Works, if and wherever such third-party notices normally appear. The contents of
106
+ the NOTICE file are for informational purposes only and do not modify the
107
+ License. You may add Your own attribution notices within Derivative Works that
108
+ You distribute, alongside or as an addendum to the NOTICE text from the Work,
109
+ provided that such additional attribution notices cannot be construed as
110
+ modifying the License.
111
+ You may add Your own copyright statement to Your modifications and may provide
112
+ additional or different license terms and conditions for use, reproduction, or
113
+ distribution of Your modifications, or for any such Derivative Works as a whole,
114
+ provided Your use, reproduction, and distribution of the Work otherwise complies
115
+ with the conditions stated in this License.
116
+
117
+ 5. Submission of Contributions.
118
+
119
+ Unless You explicitly state otherwise, any Contribution intentionally submitted
120
+ for inclusion in the Work by You to the Licensor shall be under the terms and
121
+ conditions of this License, without any additional terms or conditions.
122
+ Notwithstanding the above, nothing herein shall supersede or modify the terms of
123
+ any separate license agreement you may have executed with Licensor regarding
124
+ such Contributions.
125
+
126
+ 6. Trademarks.
127
+
128
+ This License does not grant permission to use the trade names, trademarks,
129
+ service marks, or product names of the Licensor, except as required for
130
+ reasonable and customary use in describing the origin of the Work and
131
+ reproducing the content of the NOTICE file.
132
+
133
+ 7. Disclaimer of Warranty.
134
+
135
+ Unless required by applicable law or agreed to in writing, Licensor provides the
136
+ Work (and each Contributor provides its Contributions) on an "AS IS" BASIS,
137
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
138
+ including, without limitation, any warranties or conditions of TITLE,
139
+ NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
140
+ solely responsible for determining the appropriateness of using or
141
+ redistributing the Work and assume any risks associated with Your exercise of
142
+ permissions under this License.
143
+
144
+ 8. Limitation of Liability.
145
+
146
+ In no event and under no legal theory, whether in tort (including negligence),
147
+ contract, or otherwise, unless required by applicable law (such as deliberate
148
+ and grossly negligent acts) or agreed to in writing, shall any Contributor be
149
+ liable to You for damages, including any direct, indirect, special, incidental,
150
+ or consequential damages of any character arising as a result of this License or
151
+ out of the use or inability to use the Work (including but not limited to
152
+ damages for loss of goodwill, work stoppage, computer failure or malfunction, or
153
+ any and all other commercial damages or losses), even if such Contributor has
154
+ been advised of the possibility of such damages.
155
+
156
+ 9. Accepting Warranty or Additional Liability.
157
+
158
+ While redistributing the Work or Derivative Works thereof, You may choose to
159
+ offer, and charge a fee for, acceptance of support, warranty, indemnity, or
160
+ other liability obligations and/or rights consistent with this License. However,
161
+ in accepting such obligations, You may act only on Your own behalf and on Your
162
+ sole responsibility, not on behalf of any other Contributor, and only if You
163
+ agree to indemnify, defend, and hold each Contributor harmless for any liability
164
+ incurred by, or claims asserted against, such Contributor by reason of your
165
+ accepting any such warranty or additional liability.
166
+
167
+ END OF TERMS AND CONDITIONS
168
+
169
+ APPENDIX: How to apply the Apache License to your work
170
+
171
+ To apply the Apache License to your work, attach the following boilerplate
172
+ notice, with the fields enclosed by brackets "[]" replaced with your own
173
+ identifying information. (Don't include the brackets!) The text should be
174
+ enclosed in the appropriate comment syntax for the file format. We also
175
+ recommend that a file or class name and description of purpose be included on
176
+ the same "printed page" as the copyright notice for easier identification within
177
+ third-party archives.
178
+
179
+ Copyright [yyyy] [name of copyright owner]
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@img/sharp-linuxmusl-x64",
3
+ "version": "0.34.5",
4
+ "description": "Prebuilt sharp for use with Linux (musl) x64",
5
+ "author": "Lovell Fuller <npm@lovell.info>",
6
+ "homepage": "https://sharp.pixelplumbing.com",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/lovell/sharp.git",
10
+ "directory": "npm/linuxmusl-x64"
11
+ },
12
+ "license": "Apache-2.0",
13
+ "funding": {
14
+ "url": "https://opencollective.com/libvips"
15
+ },
16
+ "preferUnplugged": true,
17
+ "optionalDependencies": {
18
+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4"
19
+ },
20
+ "files": [
21
+ "lib"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "type": "commonjs",
27
+ "exports": {
28
+ "./sharp.node": "./lib/sharp-linuxmusl-x64.node",
29
+ "./package": "./package.json"
30
+ },
31
+ "engines": {
32
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
33
+ },
34
+ "config": {
35
+ "musl": ">=1.2.2"
36
+ },
37
+ "os": [
38
+ "linux"
39
+ ],
40
+ "libc": [
41
+ "musl"
42
+ ],
43
+ "cpu": [
44
+ "x64"
45
+ ]
46
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgraphed",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "private": false,
5
5
  "description": "Claude Code usage monitor — local-first analytics dashboard for Claude Code & Codex CLI sessions. See every session, every project, every dollar. No login, no cloud.",
6
6
  "keywords": [