clawatch 1.0.26 → 1.0.28

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 (123) hide show
  1. package/dist/cli.js +43 -7
  2. package/dist/cli.js.map +1 -1
  3. package/frontend/.next/BUILD_ID +1 -1
  4. package/frontend/.next/app-path-routes-manifest.json +0 -1
  5. package/frontend/.next/build-manifest.json +2 -2
  6. package/frontend/.next/prerender-manifest.json +0 -24
  7. package/frontend/.next/routes-manifest.json +0 -6
  8. package/frontend/.next/server/app/_global-error.html +2 -2
  9. package/frontend/.next/server/app/_global-error.rsc +2 -2
  10. package/frontend/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  11. package/frontend/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
  12. package/frontend/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  13. package/frontend/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  14. package/frontend/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  15. package/frontend/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/frontend/.next/server/app/_not-found.html +1 -1
  17. package/frontend/.next/server/app/_not-found.rsc +3 -3
  18. package/frontend/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  19. package/frontend/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  20. package/frontend/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  21. package/frontend/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  22. package/frontend/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  23. package/frontend/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  24. package/frontend/.next/server/app/dashboard/page.js.nft.json +1 -1
  25. package/frontend/.next/server/app/dashboard/page_client-reference-manifest.js +1 -1
  26. package/frontend/.next/server/app/dashboard/projects/[id]/page.js.nft.json +1 -1
  27. package/frontend/.next/server/app/dashboard/projects/[id]/page_client-reference-manifest.js +1 -1
  28. package/frontend/.next/server/app/dashboard/sessions/[id]/page.js.nft.json +1 -1
  29. package/frontend/.next/server/app/dashboard/sessions/[id]/page_client-reference-manifest.js +1 -1
  30. package/frontend/.next/server/app/dashboard.html +1 -1
  31. package/frontend/.next/server/app/dashboard.rsc +4 -4
  32. package/frontend/.next/server/app/dashboard.segments/_full.segment.rsc +4 -4
  33. package/frontend/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
  34. package/frontend/.next/server/app/dashboard.segments/_index.segment.rsc +2 -2
  35. package/frontend/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  36. package/frontend/.next/server/app/dashboard.segments/dashboard/__PAGE__.segment.rsc +2 -2
  37. package/frontend/.next/server/app/dashboard.segments/dashboard.segment.rsc +1 -1
  38. package/frontend/.next/server/app/favicon.ico.body +0 -0
  39. package/frontend/.next/server/app/index.html +33 -1
  40. package/frontend/.next/server/app/index.rsc +4 -4
  41. package/frontend/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  42. package/frontend/.next/server/app/index.segments/_full.segment.rsc +4 -4
  43. package/frontend/.next/server/app/index.segments/_head.segment.rsc +1 -1
  44. package/frontend/.next/server/app/index.segments/_index.segment.rsc +2 -2
  45. package/frontend/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  46. package/frontend/.next/server/app/page.js.nft.json +1 -1
  47. package/frontend/.next/server/app/page_client-reference-manifest.js +1 -1
  48. package/frontend/.next/server/app-paths-manifest.json +0 -1
  49. package/frontend/.next/server/chunks/[root-of-the-server]__206abf59._.js +6 -6
  50. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__008d27c3._.js +3 -0
  51. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__69cb56c5._.js +3 -0
  52. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__b0dc4db1._.js +1 -1
  53. package/frontend/.next/server/chunks/ssr/{_7062b9c0._.js → _2bfdd77b._.js} +34 -2
  54. package/frontend/.next/server/chunks/ssr/_b0ae6d33._.js +1 -1
  55. package/frontend/.next/server/chunks/ssr/_e17fe96b._.js +3 -0
  56. package/frontend/.next/server/chunks/ssr/{_aa02b285._.js → _f26b1aca._.js} +34 -2
  57. package/frontend/.next/server/chunks/ssr/src_app_5b2047f8._.js +1 -1
  58. package/frontend/.next/server/next-font-manifest.js +1 -1
  59. package/frontend/.next/server/next-font-manifest.json +0 -4
  60. package/frontend/.next/server/pages/404.html +1 -1
  61. package/frontend/.next/server/pages/500.html +2 -2
  62. package/frontend/.next/static/chunks/4377848a9c28ed1e.js +1 -0
  63. package/frontend/.next/static/chunks/6384459f7ebf182a.js +1 -0
  64. package/frontend/.next/static/chunks/889a3378ed5d7ecb.js +1 -0
  65. package/frontend/.next/static/chunks/895ec711bc3f891d.css +3 -0
  66. package/frontend/.next/static/chunks/89705374f0ef34d2.js +1 -0
  67. package/frontend/.next/static/chunks/9e5b5ccda421a827.js +33 -0
  68. package/frontend/.next/static/chunks/e286ecc1826dbc08.js +1 -0
  69. package/frontend/.next/static/media/favicon.146e26cc.ico +0 -0
  70. package/frontend/public/apple-touch-icon.png +0 -0
  71. package/frontend/public/clawatch-owl-192.png +0 -0
  72. package/frontend/public/clawatch-owl-512.png +0 -0
  73. package/frontend/public/clawatch-owl.svg +124 -0
  74. package/frontend/public/favicon-16x16.png +0 -0
  75. package/frontend/public/favicon-32x32.png +0 -0
  76. package/frontend/public/favicon.ico +0 -0
  77. package/frontend/server-with-proxy.js +3 -20
  78. package/package.json +1 -1
  79. package/frontend/.next/server/app/dashboard/costs/page/app-paths-manifest.json +0 -3
  80. package/frontend/.next/server/app/dashboard/costs/page/build-manifest.json +0 -17
  81. package/frontend/.next/server/app/dashboard/costs/page/next-font-manifest.json +0 -11
  82. package/frontend/.next/server/app/dashboard/costs/page/react-loadable-manifest.json +0 -1
  83. package/frontend/.next/server/app/dashboard/costs/page/server-reference-manifest.json +0 -4
  84. package/frontend/.next/server/app/dashboard/costs/page.js +0 -16
  85. package/frontend/.next/server/app/dashboard/costs/page.js.map +0 -5
  86. package/frontend/.next/server/app/dashboard/costs/page.js.nft.json +0 -1
  87. package/frontend/.next/server/app/dashboard/costs/page_client-reference-manifest.js +0 -2
  88. package/frontend/.next/server/app/dashboard/costs.html +0 -1
  89. package/frontend/.next/server/app/dashboard/costs.meta +0 -16
  90. package/frontend/.next/server/app/dashboard/costs.rsc +0 -20
  91. package/frontend/.next/server/app/dashboard/costs.segments/_full.segment.rsc +0 -20
  92. package/frontend/.next/server/app/dashboard/costs.segments/_head.segment.rsc +0 -6
  93. package/frontend/.next/server/app/dashboard/costs.segments/_index.segment.rsc +0 -5
  94. package/frontend/.next/server/app/dashboard/costs.segments/_tree.segment.rsc +0 -4
  95. package/frontend/.next/server/app/dashboard/costs.segments/dashboard/costs/__PAGE__.segment.rsc +0 -9
  96. package/frontend/.next/server/app/dashboard/costs.segments/dashboard/costs.segment.rsc +0 -4
  97. package/frontend/.next/server/app/dashboard/costs.segments/dashboard.segment.rsc +0 -4
  98. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__96998d39._.js +0 -3
  99. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__ad9c7c6a._.js +0 -3
  100. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__cb471d02._.js +0 -3
  101. package/frontend/.next/server/chunks/ssr/[root-of-the-server]__f99f8278._.js +0 -3
  102. package/frontend/.next/server/chunks/ssr/_81435076._.js +0 -3
  103. package/frontend/.next/server/chunks/ssr/_8f399861._.js +0 -4
  104. package/frontend/.next/server/chunks/ssr/_next-internal_server_app_dashboard_costs_page_actions_b5efa95e.js +0 -3
  105. package/frontend/.next/server/chunks/ssr/node_modules_09eef5ec._.js +0 -3
  106. package/frontend/.next/server/chunks/ssr/node_modules_b4c16e3a._.js +0 -3
  107. package/frontend/.next/server/chunks/ssr/src_app_dashboard_page_tsx_196c74b5._.js +0 -3
  108. package/frontend/.next/server/chunks/ssr/src_components_ui_button_tsx_d75cfe12._.js +0 -3
  109. package/frontend/.next/static/chunks/139d48bcbc462224.js +0 -1
  110. package/frontend/.next/static/chunks/25c0d885ca7bcbe1.js +0 -1
  111. package/frontend/.next/static/chunks/31f0905710e3dfc3.js +0 -1
  112. package/frontend/.next/static/chunks/34b822c87d271e34.js +0 -1
  113. package/frontend/.next/static/chunks/790649543cff1084.js +0 -1
  114. package/frontend/.next/static/chunks/88a2c1056ccf4825.js +0 -1
  115. package/frontend/.next/static/chunks/9dc87ca9ab86c348.css +0 -3
  116. package/frontend/.next/static/chunks/b1b1c7e52e2182c7.js +0 -1
  117. package/frontend/.next/static/chunks/be5e61723b600d44.js +0 -1
  118. package/frontend/.next/static/chunks/c3af0c75d8e1b7b4.js +0 -1
  119. package/frontend/.next/static/chunks/f5dbb90939b55e4f.js +0 -1
  120. package/frontend/.next/static/media/favicon.0b3bf435.ico +0 -0
  121. /package/frontend/.next/static/{w4h18_Clp_ODehKO0HkwI → 0wK6XKeZM4pETq1rAH0LM}/_buildManifest.js +0 -0
  122. /package/frontend/.next/static/{w4h18_Clp_ODehKO0HkwI → 0wK6XKeZM4pETq1rAH0LM}/_clientMiddlewareManifest.json +0 -0
  123. /package/frontend/.next/static/{w4h18_Clp_ODehKO0HkwI → 0wK6XKeZM4pETq1rAH0LM}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"warnOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},18566,(e,t,s)=>{t.exports=e.r(76562)},15288,87486,9165,e=>{"use strict";let t,s,a,o,n;var r,i=e.i(43476),d=e.i(75157);function l({className:e,size:t="default",...s}){return(0,i.jsx)("div",{"data-slot":"card","data-size":t,className:(0,d.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...s})}function c({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"card-header",className:(0,d.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...t})}function u({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"card-title",className:(0,d.cn)("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...t})}function m({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"card-content",className:(0,d.cn)("px-4 group-data-[size=sm]/card:px-3",e),...t})}e.s(["Card",()=>l,"CardContent",()=>m,"CardHeader",()=>c,"CardTitle",()=>u],15288);var p=e.i(19805),g=e.i(27601);let h=(0,e.i(25913).cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function f({className:e,variant:t="default",render:s,...a}){var o;return o={defaultTagName:"span",props:(0,p.mergeProps)({className:(0,d.cn)(h({variant:t}),e)},a),render:s,state:{slot:"badge",variant:t}},(0,g.useRenderElement)(o.defaultTagName??"div",o,o)}e.s(["Badge",()=>f],87486);var b=e.i(47167);let x=new Date,k=e=>new Date(x.getTime()-6e4*e).toISOString(),w=e=>new Date(x.getTime()-36e5*e).toISOString(),v=[{id:"agent-1",name:"code-reviewer",host:"prod-us-east-1",status:"running",lastHeartbeat:k(.5),costUsd:4.82,tokenCount:124e4,errorCount:0},{id:"agent-2",name:"deploy-bot",host:"prod-us-east-1",status:"running",lastHeartbeat:k(1),costUsd:2.15,tokenCount:52e4,errorCount:1},{id:"agent-3",name:"data-pipeline",host:"prod-eu-west-1",status:"error",lastHeartbeat:k(12),costUsd:8.43,tokenCount:21e5,errorCount:7},{id:"agent-4",name:"customer-support",host:"prod-us-west-2",status:"stuck",lastHeartbeat:k(45),costUsd:12.67,tokenCount:34e5,errorCount:3},{id:"agent-5",name:"test-runner",host:"staging-1",status:"paused",lastHeartbeat:w(2),costUsd:1.03,tokenCount:28e4,errorCount:0},{id:"agent-6",name:"doc-generator",host:"prod-us-east-1",status:"running",lastHeartbeat:k(.2),costUsd:3.21,tokenCount:89e4,errorCount:0},{id:"agent-7",name:"security-scanner",host:"prod-eu-west-1",status:"stopped",lastHeartbeat:w(6),costUsd:.45,tokenCount:12e4,errorCount:0},{id:"agent-8",name:"slack-responder",host:"prod-us-west-2",status:"running",lastHeartbeat:k(.1),costUsd:6.89,tokenCount:178e4,errorCount:2}],y=[{id:"alert-1",agentId:"agent-4",type:"stuck",severity:"critical",message:"customer-support has not sent a heartbeat in 45 minutes",timestamp:k(44),acknowledged:!1},{id:"alert-2",agentId:"agent-3",type:"error",severity:"critical",message:"data-pipeline encountered 7 errors in the last hour",timestamp:k(10),acknowledged:!1},{id:"alert-3",agentId:"agent-4",type:"cost_spike",severity:"warning",message:"customer-support cost increased 340% in the last hour",timestamp:w(1),acknowledged:!1},{id:"alert-4",agentId:"agent-8",type:"loop_detected",severity:"warning",message:"slack-responder may be in a retry loop (similar outputs detected)",timestamp:k(30),acknowledged:!0},{id:"alert-5",agentId:"agent-2",type:"error",severity:"info",message:"deploy-bot encountered a transient API error (auto-recovered)",timestamp:w(3),acknowledged:!0}],j={totalUsd:39.65,totalTokens:45e5,sessionCount:12,byAgent:v.map(e=>({agentId:e.id,name:e.name,costUsd:e.costUsd,tokenCount:e.tokenCount})),byModel:[{model:"claude-sonnet-4-20250514",costUsd:22.1},{model:"claude-haiku-4-20250506",costUsd:11.35},{model:"gpt-4o",costUsd:6.2}],byProject:[{projectId:"proj-1",name:"ClaWatch",costUsd:18.5,tokenCount:21e5,sessionCount:5},{projectId:"proj-2",name:"Auth Service",costUsd:12.35,tokenCount:14e5,sessionCount:4},{projectId:"proj-3",name:"Mobile App",costUsd:8.8,tokenCount:1e6,sessionCount:3}],daily:Array.from({length:7},(e,t)=>{let s=new Date("2026-03-04");return s.setDate(s.getDate()+t),{date:s.toISOString().slice(0,10),costUsd:+(3+8*Math.random()).toFixed(2),tokenCount:Math.floor(4e5+8e5*Math.random()),sessionCount:Math.floor(1+4*Math.random())}})},C=[{id:"session-1",agentId:"ofek",title:"Build ClaWatch dashboard with real-time alerts",status:"active",costUsd:3.47,tokenCount:892e3,messageCount:47,model:"claude-sonnet-4-20250514",startedAt:k(45),lastActivityAt:k(1),duration:2640,projects:[{id:"project-1",name:"Building ClaWatch"}]},{id:"session-2",agentId:"anas",title:"Fix authentication bug in user login flow",status:"completed",costUsd:1.23,tokenCount:34e4,messageCount:22,model:"claude-sonnet-4-20250514",startedAt:w(3),lastActivityAt:w(2),duration:3600,projects:[{id:"project-2",name:"Bug Fixes Sprint"}]},{id:"session-3",agentId:"dor",title:"Review PR #47 — add retry logic to API calls",status:"idle",costUsd:.87,tokenCount:215e3,messageCount:14,model:"claude-haiku-4-20250506",startedAt:k(90),lastActivityAt:k(12),duration:4680},{id:"session-4",agentId:"ofek",title:"Implement WebSocket event streaming for agent heartbeats",status:"active",costUsd:5.12,tokenCount:134e4,messageCount:63,model:"claude-sonnet-4-20250514",startedAt:w(1.5),lastActivityAt:k(.5),duration:5400,projects:[{id:"project-1",name:"Building ClaWatch"},{id:"project-2",name:"Bug Fixes Sprint"}]},{id:"session-5",agentId:"anas",title:"Refactor database schema for multi-tenant support",status:"completed",costUsd:2.89,tokenCount:78e4,messageCount:38,model:"claude-sonnet-4-20250514",startedAt:w(5),lastActivityAt:w(4),duration:3600},{id:"session-6",agentId:"dor",title:"Debug failing CI pipeline — Jest timeout errors",status:"idle",costUsd:.54,tokenCount:145e3,messageCount:11,model:"claude-haiku-4-20250506",startedAt:k(30),lastActivityAt:k(8),duration:1320},{id:"session-7",agentId:"ofek",title:"Add Telegram bot notification integration",status:"completed",costUsd:1.76,tokenCount:46e4,messageCount:29,model:"claude-sonnet-4-20250514",startedAt:w(8),lastActivityAt:w(7),duration:3600},{id:"session-8",agentId:"anas",title:"Write unit tests for cost calculation module",status:"active",costUsd:.92,tokenCount:248e3,messageCount:18,model:"claude-haiku-4-20250506",startedAt:k(15),lastActivityAt:k(2),duration:780},{id:"session-9",agentId:"dor",title:"Optimize SQL queries — reduce p95 latency from 800ms to 200ms",status:"completed",costUsd:4.31,tokenCount:112e4,messageCount:52,model:"claude-sonnet-4-20250514",startedAt:w(12),lastActivityAt:w(10),duration:7200},{id:"session-10",agentId:"ofek",title:"Set up Docker Compose for local development environment",status:"idle",costUsd:.63,tokenCount:172e3,messageCount:9,model:"claude-haiku-4-20250506",startedAt:k(60),lastActivityAt:k(20),duration:2400}],N=[{id:"project-1",name:"Building ClaWatch",description:"Full-stack AI observability platform with real-time monitoring, session tracking, and cost analytics",createdAt:w(48),updatedAt:k(5),sessionCount:3,totalCostUsd:185.98},{id:"project-2",name:"Bug Fixes Sprint",description:"Critical bug fixes for authentication, database schema, and CI pipeline issues",createdAt:w(24),updatedAt:k(30),sessionCount:2,totalCostUsd:12.5}],I=(t=[],s=0,(a=(e,a,o,n,r,i)=>{s++,t.push({sessionId:e,agentId:a,id:`tl-${s}`,role:o,timestamp:k(n),content:r,...i})})("session-1","ofek","user",120,"Build the ClaWatch dashboard with real-time alerts and agent monitoring. Use Next.js 15 + shadcn/ui."),a("session-1","ofek","assistant",119,"I'll build the ClaWatch dashboard. Let me start by setting up the project structure and examining existing code.",{model:"claude-sonnet-4-20250514",costUsd:.04}),a("session-3","dor","user",118,"Review the initial project setup and suggest architectural improvements for the monitoring system."),a("session-1","ofek","tool",117,"src/\n app/\n dashboard/\n page.tsx\n layout.tsx\n components/\n ui/\n lib/\n types.ts\n api.ts",{toolName:"read"}),a("session-3","dor","assistant",116,"Looking at the project structure. I'll review the architecture and suggest improvements for scalability.",{model:"claude-haiku-4-20250506",costUsd:.01}),a("session-1","ofek","assistant",115,"Project structure looks good. I'll create the type definitions for agents, sessions, alerts, and cost data.",{model:"claude-sonnet-4-20250514",costUsd:.06}),a("session-8","anas","user",114,"Write comprehensive unit tests for the cost calculation module including edge cases."),a("session-1","ofek","tool",113,"File written: src/lib/types.ts (78 lines)",{toolName:"write"}),a("session-8","anas","assistant",112,"I'll write thorough unit tests for cost calculations. Let me first examine the module.",{model:"claude-haiku-4-20250506",costUsd:.02}),a("session-3","dor","tool",111,"export interface Agent {\n id: string;\n name: string;\n status: AgentStatus;\n ...",{toolName:"read"}),a("session-3","dor","assistant",110,"The type definitions look solid. I'd suggest adding a `duration` field to Session for better analytics. Also, the cost tracking should support per-model breakdown.",{model:"claude-haiku-4-20250506",costUsd:.02}),a("session-1","ofek","assistant",108,"Good point from the review. I'll add duration tracking and per-model cost breakdown. Now creating the mock data layer.",{model:"claude-sonnet-4-20250514",costUsd:.05}),a("session-8","anas","tool",107,"export function calculateCost(tokens: number, model: string): number { ... }",{toolName:"read"}),a("session-1","ofek","tool",105,"File written: src/lib/mock-data.ts (280 lines)",{toolName:"write"}),a("session-8","anas","assistant",104,"Found the cost module. I'll test standard pricing, cache discount calculations, multi-model sessions, and zero-token edge cases.",{model:"claude-haiku-4-20250506",costUsd:.03}),a("session-1","ofek","system",103,"Context window: 45% utilized (90K/200K tokens)"),a("session-8","anas","tool",102,"File written: src/__tests__/cost-calculation.test.ts (156 lines)",{toolName:"write"}),a("session-1","ofek","assistant",100,"Mock data created. Now building the dashboard page with agent cards, alert banners, and cost overview.",{model:"claude-sonnet-4-20250514",costUsd:.12}),a("session-3","dor","user",98,"Can you also review the API layer and check for error handling gaps?"),a("session-1","ofek","tool",95,"File written: src/app/dashboard/page.tsx (320 lines)",{toolName:"write"}),a("session-8","anas","assistant",94,"All 12 test cases pass. Found one edge case where negative token counts could cause issues — adding a guard.",{model:"claude-haiku-4-20250506",costUsd:.02}),a("session-3","dor","assistant",92,"Reviewing API layer. The fetchJson wrapper needs better error handling — currently swallows network errors. I'll suggest adding retry logic and timeout handling.",{model:"claude-haiku-4-20250506",costUsd:.03}),a("session-8","anas","tool",90,"$ npm test -- --watchAll=false\n\nTest Suites: 1 passed, 1 total\nTests: 14 passed, 14 total\nTime: 2.834s",{toolName:"exec"}),a("session-1","ofek","assistant",88,"Dashboard page done. Adding real-time polling with 5-second intervals and the tabbed interface for Agents/Sessions views.",{model:"claude-sonnet-4-20250514",costUsd:.08}),a("session-1","ofek","tool",85,"$ npm run build\n\n ✓ Compiled successfully\n ✓ Generating static pages (5/5)\n\nBuild completed in 8.2s",{toolName:"exec"}),a("session-3","dor","assistant",83,"Here's my review summary:\n1. Add retry logic to fetchJson (3 retries with exponential backoff)\n2. Add request timeout (30s default)\n3. The mock fallback pattern is good but should log errors to a monitoring service\n4. Consider adding request deduplication for concurrent calls",{model:"claude-haiku-4-20250506",costUsd:.04}),a("session-1","ofek","user",80,"Add session detail view with message timeline, cost breakdown by model, and token analysis."),a("session-1","ofek","assistant",78,"I'll build the session detail page with a full message timeline. Each message type will have distinct visual treatment.",{model:"claude-sonnet-4-20250514",costUsd:.09}),a("session-1","ofek","tool",75,"File written: src/app/dashboard/sessions/[id]/page.tsx (340 lines)",{toolName:"write"}),a("session-8","anas","assistant",72,"All tests passing. Adding integration tests for the API mock fallback pattern now.",{model:"claude-haiku-4-20250506",costUsd:.02}),a("session-1","ofek","assistant",70,"Session detail page complete with:\n- Message timeline with user/assistant/tool/system styling\n- Cost breakdown by model with progress bars\n- Token breakdown (input/output/cache read/cache write)\n- Collapsible tool outputs",{model:"claude-sonnet-4-20250514",costUsd:.06}),a("session-1","ofek","system",68,"Context window: 72% utilized (144K/200K tokens)"),a("session-1","ofek","tool",65,"$ npm run build\n\n ✓ Compiled successfully\n ✓ Generating static pages (7/7)\n\nBuild completed in 9.1s",{toolName:"exec"}),a("session-1","ofek","assistant",60,"Build passes. The ClaWatch dashboard is fully functional with real-time monitoring, session tracking, and cost analytics.",{model:"claude-sonnet-4-20250514",costUsd:.04}),t.sort((e,t)=>new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime())),A={"project-1":{id:"project-1",name:"Building ClaWatch",description:"Full-stack AI observability platform with real-time monitoring, session tracking, and cost analytics",stats:{totalCostUsd:185.98,totalTokens:482e4,totalMessages:128,sessionCount:3,dateRange:{from:w(48),to:k(5)}},agentBreakdown:[{agentId:"ofek",costUsd:142.5,tokenCount:32e5,messageCount:78,percentage:76.6},{agentId:"dor",costUsd:28.48,tokenCount:98e4,messageCount:32,percentage:15.3},{agentId:"anas",costUsd:15,tokenCount:64e4,messageCount:18,percentage:8.1}],sessions:[C.find(e=>"session-1"===e.id),C.find(e=>"session-3"===e.id),C.find(e=>"session-8"===e.id)],timeline:I},"project-2":{id:"project-2",name:"Bug Fixes Sprint",description:"Critical bug fixes for authentication, database schema, and CI pipeline issues",stats:{totalCostUsd:12.5,totalTokens:112e4,totalMessages:60,sessionCount:2,dateRange:{from:w(24),to:k(30)}},agentBreakdown:[{agentId:"anas",costUsd:7.8,tokenCount:68e4,messageCount:38,percentage:62.4},{agentId:"dor",costUsd:4.7,tokenCount:44e4,messageCount:22,percentage:37.6}],sessions:[C.find(e=>"session-2"===e.id),C.find(e=>"session-6"===e.id)],timeline:[{sessionId:"session-2",agentId:"anas",id:"tl-b1",role:"user",timestamp:w(3),content:"Fix the authentication bug in the user login flow. Users are getting 401 errors after token refresh."},{sessionId:"session-2",agentId:"anas",id:"tl-b2",role:"assistant",timestamp:w(2.9),content:"I'll investigate the auth flow. Let me check the token refresh logic.",model:"claude-sonnet-4-20250514",costUsd:.03},{sessionId:"session-6",agentId:"dor",id:"tl-b3",role:"user",timestamp:w(2.8),content:"Debug the failing CI pipeline. Jest tests are timing out on the session module."},{sessionId:"session-2",agentId:"anas",id:"tl-b4",role:"tool",timestamp:w(2.7),content:"Found: refreshToken() doesn't await the database write before returning new token",toolName:"read"},{sessionId:"session-6",agentId:"dor",id:"tl-b5",role:"assistant",timestamp:w(2.6),content:"Looking at the CI logs. The Jest timeout suggests an unresolved promise in the test setup.",model:"claude-haiku-4-20250506",costUsd:.01},{sessionId:"session-2",agentId:"anas",id:"tl-b6",role:"assistant",timestamp:w(2.5),content:"Found the bug: `refreshToken()` returns before the DB write completes. Adding await fixes the race condition.",model:"claude-sonnet-4-20250514",costUsd:.05},{sessionId:"session-6",agentId:"dor",id:"tl-b7",role:"tool",timestamp:w(2.4),content:"$ jest --verbose\nFAILED: session.test.ts > should persist session data\nTimeout: 5000ms exceeded",toolName:"exec"},{sessionId:"session-6",agentId:"dor",id:"tl-b8",role:"assistant",timestamp:w(2.2),content:"The test is missing `afterAll` cleanup — the database connection stays open. Adding proper teardown.",model:"claude-haiku-4-20250506",costUsd:.02},{sessionId:"session-2",agentId:"anas",id:"tl-b9",role:"tool",timestamp:w(2.1),content:"$ npm test -- auth.test.ts\n\nTests: 8 passed, 8 total",toolName:"exec"},{sessionId:"session-6",agentId:"dor",id:"tl-b10",role:"tool",timestamp:w(2),content:"$ jest session.test.ts --verbose\nPASSED: all 6 tests",toolName:"exec"},{sessionId:"session-2",agentId:"anas",id:"tl-b11",role:"assistant",timestamp:w(1.9),content:"Auth bug fixed and all tests passing. The root cause was a missing await in the token refresh handler.",model:"claude-sonnet-4-20250514",costUsd:.03},{sessionId:"session-6",agentId:"dor",id:"tl-b12",role:"assistant",timestamp:w(1.8),content:"CI pipeline fixed. Added proper test teardown and increased timeout for integration tests to 10s.",model:"claude-haiku-4-20250506",costUsd:.02}]}},U={};for(let e of C)U[e.id]={...e,costByModel:e.model.includes("sonnet")?[{model:"claude-sonnet-4-20250514",costUsd:.82*e.costUsd,tokenCount:Math.floor(.75*e.tokenCount)},{model:"claude-haiku-4-20250506",costUsd:.18*e.costUsd,tokenCount:Math.floor(.25*e.tokenCount)}]:[{model:"claude-haiku-4-20250506",costUsd:.65*e.costUsd,tokenCount:Math.floor(.6*e.tokenCount)},{model:"claude-sonnet-4-20250514",costUsd:.35*e.costUsd,tokenCount:Math.floor(.4*e.tokenCount)}],tokenBreakdown:{input:Math.floor(.35*e.tokenCount),output:Math.floor(.3*e.tokenCount),cacheRead:Math.floor(.25*e.tokenCount),cacheWrite:Math.floor(.1*e.tokenCount)},messages:(r=e.id,[{id:`${r}-msg-1`,role:"user",timestamp:k(44),content:"Build the ClaWatch dashboard with real-time alert monitoring. Use Next.js 15 with shadcn/ui components."},{id:`${r}-msg-2`,role:"assistant",timestamp:k(43),content:"I'll build the ClaWatch dashboard. Let me start by examining the project structure and existing code.",model:"claude-sonnet-4-20250514",costUsd:.03,tokenCount:12400},{id:`${r}-msg-3`,role:"tool",timestamp:k(43),content:"src/\n app/\n dashboard/\n page.tsx\n layout.tsx\n page.tsx\n components/\n ui/\n lib/\n types.ts\n api.ts\n mock-data.ts",toolName:"read",toolInput:'{"path": "src/"}'},{id:`${r}-msg-4`,role:"assistant",timestamp:k(42),content:"I can see the project structure. Let me read the existing types and API files to understand the data model.",model:"claude-sonnet-4-20250514",costUsd:.02,tokenCount:8200},{id:`${r}-msg-5`,role:"tool",timestamp:k(42),content:'export type AgentStatus = "running" | "paused" | "stopped" | "error" | "stuck";\n\nexport interface Agent {\n id: string;\n name: string;\n ...',toolName:"read",toolInput:'{"path": "src/lib/types.ts"}'},{id:`${r}-msg-6`,role:"assistant",timestamp:k(40),content:"Now I'll create the dashboard page with agent cards, alert banners, and cost overview panels. I'll use the existing shadcn/ui components.",model:"claude-sonnet-4-20250514",costUsd:.08,tokenCount:34600},{id:`${r}-msg-7`,role:"tool",timestamp:k(39),content:"File written: src/app/dashboard/page.tsx (358 lines)",toolName:"write",toolInput:'{"path": "src/app/dashboard/page.tsx", "content": "..."}'},{id:`${r}-msg-8`,role:"tool",timestamp:k(38),content:"$ npm run build\n\n ✓ Compiled successfully\n ✓ Collecting page data\n ✓ Generating static pages (5/5)\n ✓ Collecting build traces\n\nRoute (app) Size First Load JS\n├ ○ / 5.2 kB 92.1 kB\n└ ○ /dashboard 12.4 kB 99.3 kB",toolName:"exec",toolInput:'{"command": "npm run build"}'},{id:`${r}-msg-9`,role:"assistant",timestamp:k(37),content:"The build succeeded. Let me now add the real-time polling mechanism and alert notification sounds.",model:"claude-sonnet-4-20250514",costUsd:.04,tokenCount:15800},{id:`${r}-msg-10`,role:"tool",timestamp:k(36),content:"Lines 49-64 edited in src/app/dashboard/page.tsx",toolName:"edit",toolInput:'{"path": "src/app/dashboard/page.tsx", "old_string": "...", "new_string": "..."}'},{id:`${r}-msg-11`,role:"user",timestamp:k(35),content:"Can you also add a cost breakdown by model? Show it as horizontal progress bars."},{id:`${r}-msg-12`,role:"assistant",timestamp:k(34),content:"Sure! I'll add a cost breakdown section with progress bars for each model. Let me update the dashboard.",model:"claude-sonnet-4-20250514",costUsd:.06,tokenCount:24200},{id:`${r}-msg-13`,role:"tool",timestamp:k(33),content:"Lines 254-305 edited in src/app/dashboard/page.tsx",toolName:"edit",toolInput:'{"path": "src/app/dashboard/page.tsx", "old_string": "...", "new_string": "..."}'},{id:`${r}-msg-14`,role:"system",timestamp:k(32),content:"Context window: 78% utilized (156K/200K tokens)"},{id:`${r}-msg-15`,role:"assistant",timestamp:k(31),content:"I've added the cost breakdown panels. The dashboard now shows:\n\n1. **Agent cards** with status, cost, tokens, errors, and heartbeat\n2. **Alert banner** for critical/warning alerts\n3. **Cost by Agent** — horizontal progress bars\n4. **Cost by Model** — horizontal progress bars\n\nThe data refreshes every 5 seconds via polling.",model:"claude-sonnet-4-20250514",costUsd:.05,tokenCount:18900},{id:`${r}-msg-16`,role:"tool",timestamp:k(30),content:'{"results": [{"title": "shadcn/ui Tabs Component", "url": "https://ui.shadcn.com/docs/components/tabs"}]}',toolName:"web_search",toolInput:'{"query": "shadcn ui tabs component usage"}'},{id:`${r}-msg-17`,role:"assistant",timestamp:k(28),content:"Let me add a tabbed interface for Agents and Sessions views. I'll implement the tabs using a simple state-based approach.",model:"claude-sonnet-4-20250514",costUsd:.11,tokenCount:45200},{id:`${r}-msg-18`,role:"tool",timestamp:k(27),content:"$ npm run build\n\n ✓ Compiled successfully\n ✓ Linting and checking validity of types\n ✓ Generating static pages (5/5)\n\nBuild completed in 8.2s",toolName:"exec",toolInput:'{"command": "npm run build"}'},{id:`${r}-msg-19`,role:"assistant",timestamp:k(25),content:"Build passes. The dashboard now has Agents and Sessions tabs with full filtering and sorting. All existing functionality is preserved.",model:"claude-sonnet-4-20250514",costUsd:.03,tokenCount:11600},{id:`${r}-msg-20`,role:"tool",timestamp:k(24),content:"$ npm test -- --watchAll=false\n\nTest Suites: 3 passed, 3 total\nTests: 12 passed, 12 total\nTime: 4.231s",toolName:"exec",toolInput:'{"command": "npm test -- --watchAll=false"}'}])};let S={"alert-1":{alert:y[0],agent:{id:"agent-4",name:"customer-support",status:"stuck"},relatedErrors:[],context:{lastHeartbeat:k(45),stuckDurationMinutes:45,agentStatus:"stuck"}},"alert-2":{alert:y[1],agent:{id:"agent-3",name:"data-pipeline",status:"error"},relatedErrors:[{timestamp:k(12),error:"TypeError: Cannot read properties of undefined (reading 'map')"},{timestamp:k(11),error:"ECONNREFUSED: Connection refused to database at 127.0.0.1:5432"},{timestamp:k(11),error:"ECONNREFUSED: Connection refused to database at 127.0.0.1:5432"},{timestamp:k(10),error:"Unhandled promise rejection: Query timeout after 30000ms"},{timestamp:k(10),error:'FATAL: too many connections for role "app_user"'}]},"alert-3":{alert:y[2],agent:{id:"agent-4",name:"customer-support",status:"running"},relatedErrors:[],context:{currentCostUsd:12.67,thresholdUsd:10,overage:2.67}},"alert-4":{alert:y[3],agent:{id:"agent-8",name:"slack-responder",status:"running"},relatedErrors:[{timestamp:k(32),error:"Detected 5 consecutive similar outputs — possible retry loop"},{timestamp:k(31),error:"Output similarity score: 0.94 (threshold: 0.85)"}]},"alert-5":{alert:y[4],agent:{id:"agent-2",name:"deploy-bot",status:"running"},relatedErrors:[{timestamp:w(3),error:"API returned 503 Service Unavailable — auto-retried successfully"}]}},$=b.default.env.NEXT_PUBLIC_API_KEY||"",T=!1;function B(){return T}function P(){T=!0}async function M(e,t){let s={"Content-Type":"application/json","ngrok-skip-browser-warning":"true",...$?{"X-ClaWatch-Key":$}:{},...t?.headers||{}},a=await fetch(`${e}`,{...t,headers:s});if(!a.ok)throw Error(`API error: ${a.status}`);return a.json()}async function z(){try{return(await M("/api/profiles")).profiles}catch{return console.warn("API unreachable, skipping profiles"),[]}}async function F(){try{return(await M("/api/version")).version}catch{return console.warn("API unreachable, skipping version"),null}}async function D(e,t){try{let s=new URLSearchParams;e&&s.set("status",e),t&&s.set("profile",t);let a=s.toString();return(await M(`/api/agents${a?`?${a}`:""}`)).agents}catch{return console.warn("API unreachable, falling back to mock data"),P(),v}}async function L(e){try{let t=new URLSearchParams;e?.limit!==void 0&&t.set("limit",String(e.limit)),e?.offset!==void 0&&t.set("offset",String(e.offset)),e?.severity&&t.set("severity",e.severity),e?.acknowledged!==void 0&&t.set("acknowledged",String(e.acknowledged)),e?.profile&&t.set("profile",e.profile);let s=t.toString();return await M(`/api/alerts${s?`?${s}`:""}`)}catch{return console.warn("API unreachable, falling back to mock data"),P(),{alerts:y,total:y.length}}}async function E(e){return await M(`/api/alerts/acknowledge-all${e?`?severity=${e}`:""}`,{method:"POST"})}async function R(e){try{let t=new URLSearchParams;e?.profile&&t.set("profile",e.profile),e?.from&&t.set("from",e.from),e?.to&&t.set("to",e.to);let s=t.toString();return await M(`/api/costs${s?`?${s}`:""}`)}catch{return console.warn("API unreachable, falling back to mock data"),P(),j}}async function O(e){await M(`/api/agents/${e}/pause`,{method:"POST"})}async function W(e){await M(`/api/agents/${e}/resume`,{method:"POST"})}async function _(e){await M(`/api/alerts/${e}/acknowledge`,{method:"POST"})}async function H(e){try{return await M(`/api/alerts/${e}/details`)}catch{console.warn("API unreachable, falling back to mock data"),P();let t=S[e];if(t)return t;throw Error("Alert not found")}}async function K(e){let{agentId:t,status:s,sort:a,profile:o,limit:n,offset:r}=e||{};try{let e=new URLSearchParams;n&&e.set("limit",String(n)),r&&e.set("offset",String(r)),t&&e.set("agentId",t),s&&e.set("status",s),a&&e.set("sort",a),o&&e.set("profile",o);let i=e.toString(),d=await M(`/api/sessions${i?`?${i}`:""}`);return{sessions:d.sessions,total:d.total}}catch{return console.warn("API unreachable, falling back to mock data"),P(),{sessions:C,total:C.length}}}async function J(e){try{return await M(`/api/sessions/${e}`)}catch{console.warn("API unreachable, falling back to mock data"),P();let t=U[e];if(t)return t;throw Error("Session not found")}}async function G(e){try{let t=e?`?profile=${e}`:"";return(await M(`/api/projects${t}`)).projects}catch{return console.warn("API unreachable, falling back to mock data"),P(),N}}async function q(e){try{return await M(`/api/projects/${e}`)}catch{console.warn("API unreachable, falling back to mock data"),P();let t=A[e];if(t)return t;throw Error("Project not found")}}async function V(e,t){return await M("/api/projects",{method:"POST",body:JSON.stringify({name:e,description:t})})}async function Q(e,t){await M(`/api/sessions/${e}/projects`,{method:"PUT",body:JSON.stringify({projectIds:t})})}async function X(e,t){await M(`/api/sessions/${e}/projects/${t}`,{method:"DELETE"})}let Y=(n=(o=Array.from({length:14},(e,t)=>{let s=new Date("2026-02-24");return s.setDate(s.getDate()+t),s.toISOString().slice(0,10)})).map(e=>({date:e,costUsd:+(5+15*Math.random()).toFixed(2),tokenCount:Math.floor(1e6+4e6*Math.random()),sessionCount:Math.floor(3+10*Math.random())})),{buckets:n,byAgent:["ofek","anas","dor"].map(e=>({agentId:e,buckets:o.map(e=>({date:e,costUsd:+(1+6*Math.random()).toFixed(2),tokenCount:Math.floor(3e5+15e5*Math.random()),sessionCount:Math.floor(1+4*Math.random())}))})),byProject:[{projectId:"proj-1",name:"ClaWatch"},{projectId:"proj-2",name:"Auth Service"},{projectId:"proj-3",name:"Mobile App"}].map(({projectId:e,name:t})=>({projectId:e,name:t,buckets:o.map(e=>({date:e,costUsd:+(1+5*Math.random()).toFixed(2),tokenCount:Math.floor(2e5+12e5*Math.random()),sessionCount:Math.floor(1+3*Math.random())}))}))});async function Z(e){try{let t=new URLSearchParams;e.profile&&t.set("profile",e.profile),e.groupBy&&t.set("groupBy",e.groupBy),e.from&&t.set("from",e.from),e.to&&t.set("to",e.to);let s=t.toString();return await M(`/api/analytics${s?`?${s}`:""}`)}catch{return console.warn("API unreachable, falling back to mock analytics data"),Y}}let ee={today:94.72,mtd:236.83,byAgent:{anas:{today:36.21,mtd:69.12},ofek:{today:42.83,mtd:112.18},dor:{today:15.68,mtd:55.53}},limits:{type:null,amount:null,agentLimits:{}},usagePercent:null};async function et(e){try{let t=e?`?profile=${e}`:"";return await M(`/api/spend${t}`)}catch{return console.warn("API unreachable, falling back to mock spend data"),ee}}async function es(e){return await M("/api/settings/cost-limits",{method:"PUT",body:JSON.stringify(e)})}e.s(["acknowledgeAlert",()=>_,"acknowledgeAllAlerts",()=>E,"createProject",()=>V,"getAgents",()=>D,"getAlertDetails",()=>H,"getAlerts",()=>L,"getAnalytics",()=>Z,"getCosts",()=>R,"getProfiles",()=>z,"getProject",()=>q,"getProjects",()=>G,"getSession",()=>J,"getSessions",()=>K,"getSpend",()=>et,"getVersion",()=>F,"isUsingMockData",()=>B,"pauseAgent",()=>O,"removeSessionProject",()=>X,"resumeAgent",()=>W,"setCostLimits",()=>es,"setSessionProjects",()=>Q],9165)},42180,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(18566),o=e.i(22016),n=e.i(19455),r=e.i(15288),i=e.i(87486),d=e.i(9165),l=e.i(98940);function c(e){let t=Math.floor((Date.now()-new Date(e).getTime())/1e3);if(t<60)return`${t}s ago`;let s=Math.floor(t/60);if(s<60)return`${s}m ago`;let a=Math.floor(s/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}function u(e){return new Date(e).toLocaleString()}function m(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:String(e)}let p={active:{color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",dot:"bg-emerald-400",label:"Active"},idle:{color:"bg-amber-500/10 text-amber-400 border-amber-500/20",dot:"bg-amber-400",label:"Idle"},completed:{color:"bg-zinc-500/10 text-zinc-400 border-zinc-500/20",dot:"bg-zinc-400",label:"Completed"}};function g({text:e,className:a,preformatted:o=!1}){let[n,r]=(0,s.useState)(!1),i=e.length>500,d=i&&!n?e.slice(0,500)+"…":e;return(0,t.jsxs)("div",{children:[(0,t.jsx)(o?"pre":"p",{className:a,children:d}),i&&(0,t.jsx)("button",{onClick:()=>r(!n),className:"mt-1 text-[11px] font-medium text-emerald-400 hover:text-emerald-300 transition-colors cursor-pointer",children:n?"Show less":"Show more"})]})}let h={ofek:"bg-blue-500/10 text-blue-400 border-blue-500/20",anas:"bg-purple-500/10 text-purple-400 border-purple-500/20",dor:"bg-teal-500/10 text-teal-400 border-teal-500/20"};function f(){let e=(0,a.useParams)(),g=(0,a.useRouter)(),f=e.id,[x,k]=(0,s.useState)(null),[w,v]=(0,s.useState)(!0),[y,j]=(0,s.useState)(null),[C,N]=(0,s.useState)(new Set),I=(0,s.useRef)(null),A=(0,s.useRef)(0),U=(0,s.useRef)(!0);if((0,s.useEffect)(()=>{!async function(){try{let e=await (0,d.getSession)(f);k(e)}catch{j("Session not found")}finally{v(!1)}}();let e=setInterval(async()=>{try{let e=await (0,d.getSession)(f);k(e)}catch{}},5e3);return()=>clearInterval(e)},[f]),(0,s.useEffect)(()=>{if(!x||!I.current)return;let e=x.messages.length;U.current?(I.current.scrollIntoView({behavior:"instant"}),U.current=!1):e>A.current&&I.current.scrollIntoView({behavior:"smooth"}),A.current=e},[x?.messages?.length]),w)return(0,t.jsx)("div",{className:"min-h-screen bg-background flex items-center justify-center",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 text-muted-foreground",children:[(0,t.jsx)("div",{className:"size-5 border-2 border-emerald-500 border-t-transparent rounded-full animate-spin"}),"Loading session..."]})});if(y||!x)return(0,t.jsx)("div",{className:"min-h-screen bg-background flex items-center justify-center",children:(0,t.jsxs)("div",{className:"text-center space-y-4",children:[(0,t.jsx)("p",{className:"text-muted-foreground",children:y||"Session not found"}),(0,t.jsx)(n.Button,{variant:"outline",onClick:()=>g.push("/dashboard"),children:"Back to Dashboard"})]})});let S=p[x.status],$=x.tokenBreakdown.input+x.tokenBreakdown.output+x.tokenBreakdown.cacheRead+x.tokenBreakdown.cacheWrite,T=Math.max(...x.costByModel.map(e=>e.costUsd));return(0,t.jsxs)("div",{className:"min-h-screen bg-background text-foreground",children:[(0,t.jsx)("nav",{className:"border-b border-border/50 bg-background/80 backdrop-blur-sm sticky top-0 z-50",children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-6 h-14 flex items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center gap-6",children:[(0,t.jsxs)(o.default,{href:"/",className:"flex items-center gap-2",children:[(0,t.jsx)(l.ClaWatchIcon,{}),(0,t.jsx)(l.ClaWatchLogo,{size:"md"})]}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Session Detail"})]})})}),(0,t.jsxs)("div",{className:"max-w-5xl mx-auto px-6 py-6 space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{onClick:()=>g.push("/dashboard"),className:"text-sm text-muted-foreground hover:text-foreground transition-colors mb-4 inline-flex items-center gap-1",children:[(0,t.jsx)("span",{children:"←"})," Back to Dashboard"]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold",children:x.title}),(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,t.jsx)(i.Badge,{variant:"outline",className:`border ${h[x.agentId]||"text-zinc-400"}`,children:x.agentId}),(0,t.jsx)(i.Badge,{variant:"outline",className:"font-mono text-xs",children:x.model}),(0,t.jsxs)(i.Badge,{variant:"outline",className:`border ${S.color}`,children:[(0,t.jsx)("span",{className:`size-1.5 rounded-full ${S.dot} mr-1.5`}),S.label]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-6 text-sm",children:[(0,t.jsx)("div",{children:(0,t.jsxs)("span",{className:"text-3xl font-bold",children:["$",x.costUsd.toFixed(2)]})}),(0,t.jsxs)("div",{className:"text-muted-foreground",children:[(0,t.jsxs)("div",{children:[m(x.tokenCount)," tokens"]}),(0,t.jsxs)("div",{children:[x.messageCount," messages"]})]}),(0,t.jsxs)("div",{className:"text-muted-foreground text-xs",children:[(0,t.jsxs)("div",{children:["Started: ",c(x.startedAt)," (",u(x.startedAt),")"]}),(0,t.jsxs)("div",{children:["Last activity: ",c(x.lastActivityAt)]})]})]})]})]}),(0,t.jsxs)(r.Card,{children:[(0,t.jsx)(r.CardHeader,{children:(0,t.jsx)(r.CardTitle,{className:"text-sm font-medium text-muted-foreground",children:"Cost Breakdown"})}),(0,t.jsx)(r.CardContent,{children:(0,t.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"By Model"}),x.costByModel.map(e=>(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,t.jsx)("span",{className:"font-mono text-xs",children:e.model}),(0,t.jsxs)("span",{className:"font-medium",children:["$",e.costUsd.toFixed(2)]})]}),(0,t.jsx)("div",{className:"w-full h-2 rounded-full bg-muted overflow-hidden",children:(0,t.jsx)("div",{className:"h-full rounded-full bg-emerald-500 transition-all",style:{width:`${e.costUsd/T*100}%`}})}),(0,t.jsxs)("div",{className:"text-[11px] text-muted-foreground",children:[m(e.tokenCount)," tokens"]})]},e.model))]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Token Breakdown"}),[{label:"Input",value:x.tokenBreakdown.input,color:"bg-blue-500"},{label:"Output",value:x.tokenBreakdown.output,color:"bg-emerald-500"},{label:"Cache Read",value:x.tokenBreakdown.cacheRead,color:"bg-amber-500"},{label:"Cache Write",value:x.tokenBreakdown.cacheWrite,color:"bg-purple-500"}].map(e=>(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,t.jsx)("span",{className:"text-xs",children:e.label}),(0,t.jsx)("span",{className:"font-medium font-mono",children:m(e.value)})]}),(0,t.jsx)("div",{className:"w-full h-2 rounded-full bg-muted overflow-hidden",children:(0,t.jsx)("div",{className:`h-full rounded-full ${e.color} transition-all`,style:{width:`${e.value/$*100}%`}})})]},e.label))]})]})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Messages"}),(0,t.jsxs)("div",{className:"relative space-y-3",children:[(0,t.jsx)("div",{className:"absolute left-5 top-0 bottom-0 w-px bg-border/50"}),x.messages.map(e=>(0,t.jsx)(b,{message:e,collapsed:C.has(e.id),onToggle:()=>{var t;return t=e.id,void N(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})}},e.id)),(0,t.jsx)("div",{ref:I})]})]})]})]})}function b({message:e,collapsed:s,onToggle:a}){let o=e.content.toLowerCase().includes("error");return"user"===e.role?(0,t.jsxs)("div",{className:"relative pl-12 flex justify-end",children:[(0,t.jsx)("div",{className:"absolute left-3.5 top-3 size-3 rounded-full bg-blue-500 ring-4 ring-background z-10"}),(0,t.jsxs)("div",{className:`rounded-lg border border-blue-500/20 bg-blue-500/10 p-4 max-w-[80%] ${o?"border-red-500/30 bg-red-500/10":""}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-blue-400",children:"User"}),(0,t.jsx)("span",{className:"text-[11px] text-muted-foreground",children:u(e.timestamp)})]}),(0,t.jsx)(g,{text:e.content,className:"text-sm whitespace-pre-wrap"})]})]}):"assistant"===e.role?(0,t.jsxs)("div",{className:"relative pl-12",children:[(0,t.jsx)("div",{className:"absolute left-3.5 top-3 size-3 rounded-full bg-zinc-500 ring-4 ring-background z-10"}),(0,t.jsxs)("div",{className:`rounded-lg border border-border/50 bg-zinc-800/50 p-4 max-w-[80%] ${o?"border-red-500/30 bg-red-500/10":""}`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-zinc-400",children:"Assistant"}),e.model&&(0,t.jsx)("span",{className:"text-[10px] font-mono text-muted-foreground",children:e.model}),(0,t.jsx)("span",{className:"text-[11px] text-muted-foreground",children:u(e.timestamp)})]}),null!=e.costUsd&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(i.Badge,{variant:"outline",className:"text-[10px] font-mono bg-emerald-500/10 text-emerald-400 border-emerald-500/20",children:["$",e.costUsd.toFixed(2)]}),null!=e.tokenCount&&(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground",children:m(e.tokenCount)})]})]}),(0,t.jsx)(g,{text:e.content,className:"text-sm whitespace-pre-wrap"})]})]}):"tool"===e.role?(0,t.jsxs)("div",{className:"relative pl-12",children:[(0,t.jsx)("div",{className:"absolute left-3.5 top-3 size-3 rounded-full bg-amber-500 ring-4 ring-background z-10"}),(0,t.jsxs)("div",{className:`rounded-lg border border-border/50 bg-zinc-900 p-4 ${o?"border-red-500/30 bg-red-500/10":""}`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-xs text-amber-400",children:"Tool"}),e.toolName&&(0,t.jsx)(i.Badge,{variant:"outline",className:"text-[10px] font-mono bg-amber-500/10 text-amber-400 border-amber-500/20",children:e.toolName}),(0,t.jsx)("span",{className:"text-[11px] text-muted-foreground",children:u(e.timestamp)})]}),(0,t.jsx)("button",{onClick:a,className:"text-[10px] text-muted-foreground hover:text-foreground transition-colors",children:s?"Show":"Hide"})]}),e.toolInput&&(0,t.jsx)("div",{className:"bg-black/30 rounded px-2 py-1 mb-2 overflow-x-auto",children:(0,t.jsx)(g,{text:e.toolInput,className:"text-[11px] font-mono text-muted-foreground",preformatted:!0})}),!s&&(0,t.jsx)(g,{text:e.content,className:"text-xs font-mono text-zinc-300 whitespace-pre-wrap break-all",preformatted:!0})]})]}):(0,t.jsxs)("div",{className:"relative pl-12",children:[(0,t.jsx)("div",{className:"absolute left-3.5 top-3 size-3 rounded-full bg-zinc-700 ring-4 ring-background z-10"}),(0,t.jsxs)("div",{className:"rounded-lg px-4 py-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] text-muted-foreground",children:"System"}),(0,t.jsx)("span",{className:"text-[11px] text-muted-foreground",children:u(e.timestamp)})]}),(0,t.jsx)(g,{text:e.content,className:"text-xs text-muted-foreground mt-1"})]})]})}e.s(["default",()=>f])}]);
@@ -0,0 +1,124 @@
1
+ <svg width="260" height="260" viewBox="0 0 130 130" xmlns="http://www.w3.org/2000/svg">
2
+ <style>
3
+ @keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
4
+ .sweep-group { transform-origin: 65px 65px; animation: sweep 4s linear infinite; }
5
+
6
+ @keyframes dotOn {
7
+ 0% { opacity: 1; }
8
+ 18% { opacity: 0.15; }
9
+ 100% { opacity: 0.1; }
10
+ }
11
+ @keyframes ringOut {
12
+ 0% { opacity: 0.7; transform: scale(1); }
13
+ 60% { opacity: 0; transform: scale(3.2); }
14
+ 100% { opacity: 0; transform: scale(3.2); }
15
+ }
16
+ @keyframes eyePulse {
17
+ 0%,100% { opacity: 1; }
18
+ 50% { opacity: 0.6; }
19
+ }
20
+ @keyframes blink {
21
+ 0%,88%,100% { opacity: 1; }
22
+ 94% { opacity: 0.05; }
23
+ }
24
+
25
+ .p1-dot { animation: dotOn 4s linear infinite; animation-delay: -3.5s; }
26
+ .p1-ring { animation: ringOut 4s linear infinite; animation-delay: -3.5s; transform-origin: 0px 0px; }
27
+ .p2-dot { animation: dotOn 4s linear infinite; animation-delay: -1.43s; }
28
+ .p2-ring { animation: ringOut 4s linear infinite; animation-delay: -1.43s; transform-origin: 0px 0px; }
29
+
30
+ .eye-l { animation: eyePulse 2s ease-in-out infinite; }
31
+ .eye-r { animation: eyePulse 2s ease-in-out infinite 0.3s; }
32
+ .sensor1 { animation: blink 2.5s ease-in-out infinite; }
33
+ .sensor2 { animation: blink 2.5s ease-in-out infinite 0.5s; }
34
+ </style>
35
+
36
+ <defs>
37
+ <radialGradient id="bg" cx="50%" cy="50%" r="50%">
38
+ <stop offset="0%" stop-color="#001820"/>
39
+ <stop offset="100%" stop-color="#000A0D"/>
40
+ </radialGradient>
41
+ <filter id="glow"><feGaussianBlur stdDeviation="2" result="b"/><feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge></filter>
42
+ <filter id="sg"><feGaussianBlur stdDeviation="1.2" result="b"/><feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge></filter>
43
+ <clipPath id="clip"><circle cx="65" cy="65" r="62"/></clipPath>
44
+ </defs>
45
+
46
+ <circle cx="65" cy="65" r="65" fill="url(#bg)"/>
47
+ <circle cx="65" cy="65" r="55" fill="none" stroke="#00ff4408" stroke-width="0.8"/>
48
+ <circle cx="65" cy="65" r="44" fill="none" stroke="#00ff4412" stroke-width="0.8"/>
49
+ <circle cx="65" cy="65" r="33" fill="none" stroke="#00ff441a" stroke-width="0.8"/>
50
+ <circle cx="65" cy="65" r="22" fill="none" stroke="#00ff4422" stroke-width="0.8"/>
51
+ <circle cx="65" cy="65" r="11" fill="none" stroke="#00ff4430" stroke-width="0.8"/>
52
+ <line x1="65" y1="5" x2="65" y2="125" stroke="#00ff4410" stroke-width="0.6"/>
53
+ <line x1="5" y1="65" x2="125" y2="65" stroke="#00ff4410" stroke-width="0.6"/>
54
+
55
+ <g clip-path="url(#clip)">
56
+ <g class="sweep-group">
57
+ <path d="M65 65 L65 10 A55 55 0 0 1 116 80 Z" fill="#00ff4407"/>
58
+ <path d="M65 65 L65 10 A55 55 0 0 1 108 92 Z" fill="#00ff4404"/>
59
+ <line x1="65" y1="65" x2="65" y2="10" stroke="#00FF88" stroke-width="1.2" opacity="0.7" filter="url(#glow)"/>
60
+ </g>
61
+ </g>
62
+
63
+ <g transform="translate(92,38)">
64
+ <circle class="p1-ring" r="2.5" fill="none" stroke="#00FF88" stroke-width="0.8"/>
65
+ <circle class="p1-dot" r="2.5" fill="#00FF88" filter="url(#glow)"/>
66
+ </g>
67
+ <g transform="translate(40,85)">
68
+ <circle class="p2-ring" r="2" fill="none" stroke="#00FF88" stroke-width="0.8"/>
69
+ <circle class="p2-dot" r="2" fill="#00FF88" filter="url(#glow)"/>
70
+ </g>
71
+
72
+ <ellipse cx="65" cy="82" rx="19" ry="21" fill="#0B3D2A"/>
73
+ <ellipse cx="65" cy="82" rx="12" ry="15" fill="#0E4D34"/>
74
+ <ellipse cx="65" cy="101" rx="11" ry="5.5" fill="#0A3828"/>
75
+ <ellipse cx="65" cy="109" rx="7.5" ry="4.5" fill="#083020"/>
76
+ <path d="M57 115 Q65 122 73 115" fill="#072818" stroke="#0A3828" stroke-width="0.5"/>
77
+
78
+ <ellipse cx="65" cy="60" rx="18" ry="17" fill="#0E4D34" stroke="#00FF88" stroke-width="0.8" filter="url(#sg)"/>
79
+
80
+ <ellipse cx="57" cy="57" rx="5.5" ry="5.5" fill="#001A10" stroke="#00FF88" stroke-width="1.2" filter="url(#sg)"/>
81
+ <ellipse cx="73" cy="57" rx="5.5" ry="5.5" fill="#001A10" stroke="#00FF88" stroke-width="1.2" filter="url(#sg)"/>
82
+ <circle class="eye-l" cx="57" cy="57" r="3" fill="#00FF88" filter="url(#glow)"/>
83
+ <circle class="eye-r" cx="73" cy="57" r="3" fill="#00FF88" filter="url(#glow)"/>
84
+ <circle cx="57" cy="57" r="1.4" fill="#000D08"/>
85
+ <circle cx="73" cy="57" r="1.4" fill="#000D08"/>
86
+
87
+ <line x1="58" y1="45" x2="49" y2="28" stroke="#0E4D34" stroke-width="2" stroke-linecap="round"/>
88
+ <line x1="72" y1="45" x2="81" y2="28" stroke="#0E4D34" stroke-width="2" stroke-linecap="round"/>
89
+ <circle class="sensor1" cx="49" cy="27" r="3.5" fill="#00FF88" filter="url(#glow)"/>
90
+ <circle class="sensor1" cx="49" cy="27" r="5.5" fill="none" stroke="#00FF88" stroke-width="0.6" opacity="0.35"/>
91
+ <circle class="sensor2" cx="81" cy="27" r="3.5" fill="#00FF88" filter="url(#glow)"/>
92
+ <circle class="sensor2" cx="81" cy="27" r="5.5" fill="none" stroke="#00FF88" stroke-width="0.6" opacity="0.35"/>
93
+
94
+ <g transform="translate(84,71) rotate(-18)">
95
+ <path d="M0,-3.5 Q8,-4.5 13,-3 Q13,3 8,4.5 Q0,3.5 0,-3.5 Z" fill="#0A3826" stroke="#00ff8825" stroke-width="0.5"/>
96
+ <path d="M11,-3.5 Q16,-6 20,-4.5 Q22,-1.5 20,1 Q16,4 11,3 Q9,1 9,-1.5 Z" fill="#0B4030" stroke="#00ff8830" stroke-width="0.6"/>
97
+ <path d="M18,-4 Q26,-10 34,-8 Q40,-5 40,0 Q40,5 34,8 Q26,10 18,4 Q15,2 15,-2 Z" fill="#0E4D34" stroke="#00ff8842" stroke-width="0.9"/>
98
+ <path d="M20,-2 Q28,-6 34,-4 Q37,-1.5 37,0 Q37,1.5 34,4 Q28,6 20,2 Q18,0 18,-1 Z" fill="#0C4531" opacity="0.6"/>
99
+ <path d="M32,-7.5 Q37,-14 46,-11.5 Q50,-8 47,-5 Q43,-5.5 38,-5 Q34,-4.5 31,-5.5 Z" fill="#0C4832" stroke="#00ff8828" stroke-width="0.6"/>
100
+ <path d="M44,-10 Q48,-8 47,-5 Q45,-6 43,-7 Z" fill="#0A3D28"/>
101
+ <path d="M32,7.5 Q37,14 45,11.5 Q49,8 46,5 Q42,5.5 37,5 Q33,4.5 31,5.5 Z" fill="#0C4832" stroke="#00ff8828" stroke-width="0.6"/>
102
+ <path d="M43,10 Q47,8 46,5 Q44,6 42,7 Z" fill="#0A3D28"/>
103
+ <path d="M30,-4 Q38,-1 38,0 Q38,1 30,4" fill="none" stroke="#041810" stroke-width="1.5" stroke-linecap="round"/>
104
+ </g>
105
+
106
+ <g transform="translate(46,71) scale(-1,1) rotate(-18)">
107
+ <path d="M0,-3.5 Q8,-4.5 13,-3 Q13,3 8,4.5 Q0,3.5 0,-3.5 Z" fill="#0A3826" stroke="#00ff8825" stroke-width="0.5"/>
108
+ <path d="M11,-3.5 Q16,-6 20,-4.5 Q22,-1.5 20,1 Q16,4 11,3 Q9,1 9,-1.5 Z" fill="#0B4030" stroke="#00ff8830" stroke-width="0.6"/>
109
+ <path d="M18,-4 Q26,-10 34,-8 Q40,-5 40,0 Q40,5 34,8 Q26,10 18,4 Q15,2 15,-2 Z" fill="#0E4D34" stroke="#00ff8842" stroke-width="0.9"/>
110
+ <path d="M20,-2 Q28,-6 34,-4 Q37,-1.5 37,0 Q37,1.5 34,4 Q28,6 20,2 Q18,0 18,-1 Z" fill="#0C4531" opacity="0.6"/>
111
+ <path d="M32,-7.5 Q37,-14 46,-11.5 Q50,-8 47,-5 Q43,-5.5 38,-5 Q34,-4.5 31,-5.5 Z" fill="#0C4832" stroke="#00ff8828" stroke-width="0.6"/>
112
+ <path d="M44,-10 Q48,-8 47,-5 Q45,-6 43,-7 Z" fill="#0A3D28"/>
113
+ <path d="M32,7.5 Q37,14 45,11.5 Q49,8 46,5 Q42,5.5 37,5 Q33,4.5 31,5.5 Z" fill="#0C4832" stroke="#00ff8828" stroke-width="0.6"/>
114
+ <path d="M43,10 Q47,8 46,5 Q44,6 42,7 Z" fill="#0A3D28"/>
115
+ <path d="M30,-4 Q38,-1 38,0 Q38,1 30,4" fill="none" stroke="#041810" stroke-width="1.5" stroke-linecap="round"/>
116
+ </g>
117
+
118
+ <line x1="49" y1="87" x2="37" y2="97" stroke="#0B3D2A" stroke-width="2.2" stroke-linecap="round"/>
119
+ <line x1="49" y1="94" x2="39" y2="104" stroke="#0B3D2A" stroke-width="2" stroke-linecap="round"/>
120
+ <line x1="81" y1="87" x2="93" y2="97" stroke="#0B3D2A" stroke-width="2.2" stroke-linecap="round"/>
121
+ <line x1="81" y1="94" x2="91" y2="104" stroke="#0B3D2A" stroke-width="2" stroke-linecap="round"/>
122
+
123
+ <circle cx="65" cy="65" r="63" fill="none" stroke="#00ff4418" stroke-width="1.5"/>
124
+ </svg>
Binary file
@@ -1,5 +1,7 @@
1
1
  // ClaWatch dashboard server: Next.js standalone + API reverse proxy
2
2
  // This replaces the default server.js to proxy /api/* to the backend
3
+ // Must set production before any require — standalone builds only ship production React
4
+ process.env.NODE_ENV = "production";
3
5
  const http = require("http");
4
6
  const path = require("path");
5
7
 
@@ -7,26 +9,7 @@ const PORT = parseInt(process.env.PORT || "3456", 10);
7
9
  const BACKEND_PORT = process.env.BACKEND_PORT || "3001";
8
10
  const HOSTNAME = process.env.HOSTNAME || "0.0.0.0";
9
11
 
10
- // Load Next.js request handler
11
- process.env.PORT = String(PORT);
12
- process.env.HOSTNAME = HOSTNAME;
13
- const nextHandler = require("./server.js");
14
-
15
- // Wait a tick for Next.js to initialize, then wrap with proxy
16
- setImmediate(() => {
17
- // Next.js standalone creates its own server on PORT.
18
- // We need to intercept before that. Instead, let's create a proxy
19
- // that runs on PORT and forwards to Next.js on an internal port.
20
- });
21
-
22
- // Actually, simpler: just start the default server.js which handles Next.js,
23
- // but we need to patch the request handling to proxy /api/*.
24
- // Since server.js creates its own http server, we can't easily wrap it.
25
- //
26
- // Simplest reliable approach: use http-proxy-like manual proxying
27
- // by replacing this file as the entry point.
28
-
29
- // Dynamically load the Next.js app
12
+ // Load Next.js app directly (don't require server.js — it starts its own listener)
30
13
  const NextServer = require("next/dist/server/next-server").default;
31
14
  const conf = require("./.next/required-server-files.json");
32
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawatch",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Observability & monitoring for AI agents. Track costs, tokens, sessions, and get alerts when things go wrong.",
5
5
  "author": "GENWAY AI <hello@genway.ai>",
6
6
  "license": "MIT",
@@ -1,3 +0,0 @@
1
- {
2
- "/dashboard/costs/page": "app/dashboard/costs/page.js"
3
- }
@@ -1,17 +0,0 @@
1
- {
2
- "devFiles": [],
3
- "ampDevFiles": [],
4
- "polyfillFiles": [
5
- "static/chunks/a6dad97d9634a72d.js"
6
- ],
7
- "lowPriorityFiles": [],
8
- "rootMainFiles": [
9
- "static/chunks/5bcee453cc4bce6d.js",
10
- "static/chunks/82abf2d65f5428ae.js",
11
- "static/chunks/f2f58a7e93290fbb.js",
12
- "static/chunks/6b50f8d2ee1d2bea.js",
13
- "static/chunks/turbopack-1e12e8d4e4225e2f.js"
14
- ],
15
- "pages": {},
16
- "ampFirstPages": []
17
- }
@@ -1,11 +0,0 @@
1
- {
2
- "pages": {},
3
- "app": {
4
- "[project]/src/app/dashboard/costs/page": [
5
- "static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2",
6
- "static/media/70bc3e132a0a741e-s.p.15008bfb.woff2"
7
- ]
8
- },
9
- "appUsingSizeAdjust": true,
10
- "pagesUsingSizeAdjust": false
11
- }
@@ -1,16 +0,0 @@
1
- var R=require("../../../chunks/ssr/[turbopack]_runtime.js")("server/app/dashboard/costs/page.js")
2
- R.c("server/chunks/ssr/[root-of-the-server]__ad9c7c6a._.js")
3
- R.c("server/chunks/ssr/_0efddc1b._.js")
4
- R.c("server/chunks/ssr/_8f399861._.js")
5
- R.c("server/chunks/ssr/[root-of-the-server]__33b8c640._.js")
6
- R.c("server/chunks/ssr/[root-of-the-server]__a64655ed._.js")
7
- R.c("server/chunks/ssr/node_modules_next_dist_70ed294b._.js")
8
- R.c("server/chunks/ssr/src_app_5b2047f8._.js")
9
- R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js")
10
- R.c("server/chunks/ssr/[root-of-the-server]__b0dc4db1._.js")
11
- R.c("server/chunks/ssr/node_modules_next_dist_client_components_9774470f._.js")
12
- R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js")
13
- R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_15817684.js")
14
- R.c("server/chunks/ssr/_next-internal_server_app_dashboard_costs_page_actions_b5efa95e.js")
15
- R.m(56622)
16
- module.exports=R.m(56622).exports
@@ -1,5 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sections": []
5
- }
@@ -1 +0,0 @@
1
- {"version":1,"files":["../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../chunks/ssr/[root-of-the-server]__32661fd1._.js","../../../chunks/ssr/[root-of-the-server]__33b8c640._.js","../../../chunks/ssr/[root-of-the-server]__9b38782c._.js","../../../chunks/ssr/[root-of-the-server]__a457c799._.js","../../../chunks/ssr/[root-of-the-server]__a64655ed._.js","../../../chunks/ssr/[root-of-the-server]__ad9c7c6a._.js","../../../chunks/ssr/[root-of-the-server]__b0dc4db1._.js","../../../chunks/ssr/[turbopack]_runtime.js","../../../chunks/ssr/_0efddc1b._.js","../../../chunks/ssr/_81435076._.js","../../../chunks/ssr/_8f399861._.js","../../../chunks/ssr/_aa02b285._.js","../../../chunks/ssr/_b0ae6d33._.js","../../../chunks/ssr/_next-internal_server_app_dashboard_costs_page_actions_b5efa95e.js","../../../chunks/ssr/node_modules_09eef5ec._.js","../../../chunks/ssr/node_modules_next_dist_70ed294b._.js","../../../chunks/ssr/node_modules_next_dist_client_components_9774470f._.js","../../../chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js","../../../chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js","../../../chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_15817684.js","../../../chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js","../../../chunks/ssr/src_app_5b2047f8._.js","./page/react-loadable-manifest.json","./page_client-reference-manifest.js"]}
@@ -1,2 +0,0 @@
1
- globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
2
- globalThis.__RSC_MANIFEST["/dashboard/costs/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/src/app/dashboard/costs/page.tsx <module evaluation>":{"id":80730,"name":"*","chunks":["/_next/static/chunks/b1b1c7e52e2182c7.js","/_next/static/chunks/88a2c1056ccf4825.js","/_next/static/chunks/be5e61723b600d44.js","/_next/static/chunks/f5dbb90939b55e4f.js"],"async":false},"[project]/src/app/dashboard/costs/page.tsx":{"id":80730,"name":"*","chunks":["/_next/static/chunks/b1b1c7e52e2182c7.js","/_next/static/chunks/88a2c1056ccf4825.js","/_next/static/chunks/be5e61723b600d44.js","/_next/static/chunks/f5dbb90939b55e4f.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__32661fd1._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__32661fd1._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__32661fd1._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__32661fd1._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__32661fd1._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__32661fd1._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__32661fd1._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"68027":{"*":{"id":40622,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__a457c799._.js"],"async":false}},"80730":{"*":{"id":14712,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9b38782c._.js","server/chunks/ssr/_b0ae6d33._.js","server/chunks/ssr/_aa02b285._.js","server/chunks/ssr/node_modules_09eef5ec._.js","server/chunks/ssr/_81435076._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"39756":{"*":{"id":26768,"name":"*","chunks":[],"async":false}},"37457":{"*":{"id":13778,"name":"*","chunks":[],"async":false}},"47257":{"*":{"id":92977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":48552,"name":"*","chunks":[],"async":false}},"68017":{"*":{"id":83919,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"68027":{"*":{"id":82509,"name":"*","chunks":[],"async":false}},"80730":{"*":{"id":88250,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/src/app/favicon.ico":[],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/src/app/layout":[{"path":"static/chunks/9dc87ca9ab86c348.css","inlined":false}],"[project]/src/app/dashboard/costs/page":[{"path":"static/chunks/9dc87ca9ab86c348.css","inlined":false}]},"entryJSFiles":{"[project]/src/app/favicon.ico":["static/chunks/ff1a16fafef87110.js","static/chunks/a2dfb6fc5208ab9b.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/src/app/layout":[],"[project]/src/app/dashboard/costs/page":["static/chunks/b1b1c7e52e2182c7.js","static/chunks/88a2c1056ccf4825.js","static/chunks/be5e61723b600d44.js","static/chunks/f5dbb90939b55e4f.js"]}}
@@ -1 +0,0 @@
1
- <!DOCTYPE html><!--w4h18_Clp_ODehKO0HkwI--><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/chunks/9dc87ca9ab86c348.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/5bcee453cc4bce6d.js"/><script src="/_next/static/chunks/82abf2d65f5428ae.js" async=""></script><script src="/_next/static/chunks/f2f58a7e93290fbb.js" async=""></script><script src="/_next/static/chunks/6b50f8d2ee1d2bea.js" async=""></script><script src="/_next/static/chunks/turbopack-1e12e8d4e4225e2f.js" async=""></script><script src="/_next/static/chunks/ff1a16fafef87110.js" async=""></script><script src="/_next/static/chunks/a2dfb6fc5208ab9b.js" async=""></script><script src="/_next/static/chunks/b1b1c7e52e2182c7.js" async=""></script><script src="/_next/static/chunks/88a2c1056ccf4825.js" async=""></script><script src="/_next/static/chunks/be5e61723b600d44.js" async=""></script><script src="/_next/static/chunks/f5dbb90939b55e4f.js" async=""></script><meta name="next-size-adjust" content=""/><title>ClaWatch — AI Agent Observability</title><meta name="description" content="Never let your agents run wild. Open-source monitoring and alerting for AI agents."/><link rel="icon" href="/favicon.ico?favicon.0b3bf435.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_fe8b9d92-module__LINzvG__variable jetbrains_mono_7d65b77b-module__VxV-Ta__variable antialiased" style="font-family:var(--font-inter), system-ui, sans-serif"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="min-h-screen bg-background flex items-center justify-center"><div class="flex items-center gap-3 text-muted-foreground"><div class="size-5 border-2 border-emerald-500 border-t-transparent rounded-full animate-spin"></div>Loading costs...</div></div><!--/$--><!--$--><!--/$--><script src="/_next/static/chunks/5bcee453cc4bce6d.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/a2dfb6fc5208ab9b.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/a2dfb6fc5208ab9b.js\"],\"default\"]\n4:I[47257,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/a2dfb6fc5208ab9b.js\"],\"ClientPageRoot\"]\n5:I[80730,[\"/_next/static/chunks/b1b1c7e52e2182c7.js\",\"/_next/static/chunks/88a2c1056ccf4825.js\",\"/_next/static/chunks/be5e61723b600d44.js\",\"/_next/static/chunks/f5dbb90939b55e4f.js\"],\"default\"]\n8:I[97367,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/a2dfb6fc5208ab9b.js\"],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nb:I[97367,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/a2dfb6fc5208ab9b.js\"],\"ViewportBoundary\"]\nd:I[97367,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/a2dfb6fc5208ab9b.js\"],\"MetadataBoundary\"]\nf:I[68027,[],\"default\"]\n:HL[\"/_next/static/chunks/9dc87ca9ab86c348.css\",\"style\"]\n:HL[\"/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"w4h18_Clp_ODehKO0HkwI\",\"c\":[\"\",\"dashboard\",\"costs\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"dashboard\",{\"children\":[\"costs\",{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/9dc87ca9ab86c348.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_fe8b9d92-module__LINzvG__variable jetbrains_mono_7d65b77b-module__VxV-Ta__variable antialiased\",\"style\":{\"fontFamily\":\"var(--font-inter), system-ui, sans-serif\"},\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L4\",null,{\"Component\":\"$5\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@6\",\"$@7\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/b1b1c7e52e2182c7.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/88a2c1056ccf4825.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/be5e61723b600d44.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/f5dbb90939b55e4f.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Le\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$f\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"6:{}\n7:\"$0:f:0:1:1:children:1:children:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"10:I[27201,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/a2dfb6fc5208ab9b.js\"],\"IconMark\"]\na:null\ne:[[\"$\",\"title\",\"0\",{\"children\":\"ClaWatch — AI Agent Observability\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Never let your agents run wild. Open-source monitoring and alerting for AI agents.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0b3bf435.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L10\",\"3\",{}]]\n"])</script></body></html>
@@ -1,16 +0,0 @@
1
- {
2
- "headers": {
3
- "x-nextjs-stale-time": "300",
4
- "x-nextjs-prerender": "1",
5
- "x-next-cache-tags": "_N_T_/layout,_N_T_/dashboard/layout,_N_T_/dashboard/costs/layout,_N_T_/dashboard/costs/page,_N_T_/dashboard/costs"
6
- },
7
- "segmentPaths": [
8
- "/_tree",
9
- "/_full",
10
- "/dashboard/costs/__PAGE__",
11
- "/dashboard/costs",
12
- "/dashboard",
13
- "/_index",
14
- "/_head"
15
- ]
16
- }
@@ -1,20 +0,0 @@
1
- 1:"$Sreact.fragment"
2
- 2:I[39756,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"default"]
3
- 3:I[37457,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"default"]
4
- 4:I[47257,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"ClientPageRoot"]
5
- 5:I[80730,["/_next/static/chunks/b1b1c7e52e2182c7.js","/_next/static/chunks/88a2c1056ccf4825.js","/_next/static/chunks/be5e61723b600d44.js","/_next/static/chunks/f5dbb90939b55e4f.js"],"default"]
6
- 8:I[97367,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"OutletBoundary"]
7
- 9:"$Sreact.suspense"
8
- b:I[97367,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"ViewportBoundary"]
9
- d:I[97367,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"MetadataBoundary"]
10
- f:I[68027,[],"default"]
11
- :HL["/_next/static/chunks/9dc87ca9ab86c348.css","style"]
12
- :HL["/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
13
- :HL["/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
14
- 0:{"P":null,"b":"w4h18_Clp_ODehKO0HkwI","c":["","dashboard","costs"],"q":"","i":false,"f":[[["",{"children":["dashboard",{"children":["costs",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/9dc87ca9ab86c348.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"inter_fe8b9d92-module__LINzvG__variable jetbrains_mono_7d65b77b-module__VxV-Ta__variable antialiased","style":{"fontFamily":"var(--font-inter), system-ui, sans-serif"},"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@6","$@7"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/b1b1c7e52e2182c7.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/88a2c1056ccf4825.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/be5e61723b600d44.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/f5dbb90939b55e4f.js","async":true,"nonce":"$undefined"}]],["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,false]},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$f",[]],"S":true}
15
- 6:{}
16
- 7:"$0:f:0:1:1:children:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
17
- c:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
18
- 10:I[27201,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"IconMark"]
19
- a:null
20
- e:[["$","title","0",{"children":"ClaWatch — AI Agent Observability"}],["$","meta","1",{"name":"description","content":"Never let your agents run wild. Open-source monitoring and alerting for AI agents."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0b3bf435.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L10","3",{}]]
@@ -1,20 +0,0 @@
1
- 1:"$Sreact.fragment"
2
- 2:I[39756,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"default"]
3
- 3:I[37457,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"default"]
4
- 4:I[47257,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"ClientPageRoot"]
5
- 5:I[80730,["/_next/static/chunks/b1b1c7e52e2182c7.js","/_next/static/chunks/88a2c1056ccf4825.js","/_next/static/chunks/be5e61723b600d44.js","/_next/static/chunks/f5dbb90939b55e4f.js"],"default"]
6
- 8:I[97367,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"OutletBoundary"]
7
- 9:"$Sreact.suspense"
8
- b:I[97367,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"ViewportBoundary"]
9
- d:I[97367,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"MetadataBoundary"]
10
- f:I[68027,[],"default"]
11
- :HL["/_next/static/chunks/9dc87ca9ab86c348.css","style"]
12
- :HL["/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
13
- :HL["/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
14
- 0:{"P":null,"b":"w4h18_Clp_ODehKO0HkwI","c":["","dashboard","costs"],"q":"","i":false,"f":[[["",{"children":["dashboard",{"children":["costs",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/9dc87ca9ab86c348.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"inter_fe8b9d92-module__LINzvG__variable jetbrains_mono_7d65b77b-module__VxV-Ta__variable antialiased","style":{"fontFamily":"var(--font-inter), system-ui, sans-serif"},"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@6","$@7"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/b1b1c7e52e2182c7.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/88a2c1056ccf4825.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/be5e61723b600d44.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/f5dbb90939b55e4f.js","async":true,"nonce":"$undefined"}]],["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,false]},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$f",[]],"S":true}
15
- 6:{}
16
- 7:"$0:f:0:1:1:children:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
17
- c:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
18
- 10:I[27201,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"IconMark"]
19
- a:null
20
- e:[["$","title","0",{"children":"ClaWatch — AI Agent Observability"}],["$","meta","1",{"name":"description","content":"Never let your agents run wild. Open-source monitoring and alerting for AI agents."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0b3bf435.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L10","3",{}]]
@@ -1,6 +0,0 @@
1
- 1:"$Sreact.fragment"
2
- 2:I[97367,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"ViewportBoundary"]
3
- 3:I[97367,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"MetadataBoundary"]
4
- 4:"$Sreact.suspense"
5
- 5:I[27201,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"IconMark"]
6
- 0:{"buildId":"w4h18_Clp_ODehKO0HkwI","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"ClaWatch — AI Agent Observability"}],["$","meta","1",{"name":"description","content":"Never let your agents run wild. Open-source monitoring and alerting for AI agents."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0b3bf435.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L5","3",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false}
@@ -1,5 +0,0 @@
1
- 1:"$Sreact.fragment"
2
- 2:I[39756,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"default"]
3
- 3:I[37457,["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/a2dfb6fc5208ab9b.js"],"default"]
4
- :HL["/_next/static/chunks/9dc87ca9ab86c348.css","style"]
5
- 0:{"buildId":"w4h18_Clp_ODehKO0HkwI","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/9dc87ca9ab86c348.css","precedence":"next"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"inter_fe8b9d92-module__LINzvG__variable jetbrains_mono_7d65b77b-module__VxV-Ta__variable antialiased","style":{"fontFamily":"var(--font-inter), system-ui, sans-serif"},"children":["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]]}],"loading":null,"isPartial":false}