@devflow-tools/devflow 0.16.33 → 0.16.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard/404.html +1 -1
- package/dist/dashboard/_next/static/chunks/429-39f42ebb1ac959d6.js +1 -0
- package/dist/dashboard/_next/static/chunks/app/accuracy/{page-ca6a419d8b29eb4f.js → page-7b4f3c728a0e880f.js} +1 -1
- package/dist/dashboard/_next/static/chunks/app/executions/page-9c836597c951abbb.js +1 -0
- package/dist/dashboard/_next/static/chunks/app/memory/{page-e169762426ac7a23.js → page-e05a76b696041097.js} +1 -1
- package/dist/dashboard/_next/static/chunks/app/timeline/page-44541ee3e74cee0e.js +1 -0
- package/dist/dashboard/_next/static/chunks/app/tool-metrics/{page-1f86f62b187f2b5e.js → page-ece550f2f4328dfe.js} +1 -1
- package/dist/dashboard/_next/static/chunks/app/workflows/{page-551939c9e86b26c6.js → page-228bcb475c39c1ec.js} +1 -1
- package/dist/dashboard/accuracy.html +1 -1
- package/dist/dashboard/accuracy.txt +3 -3
- package/dist/dashboard/benchmark.html +1 -1
- package/dist/dashboard/benchmark.txt +3 -3
- package/dist/dashboard/context.html +1 -1
- package/dist/dashboard/context.txt +3 -3
- package/dist/dashboard/doctor.html +1 -1
- package/dist/dashboard/doctor.txt +3 -3
- package/dist/dashboard/executions.html +1 -1
- package/dist/dashboard/executions.txt +3 -3
- package/dist/dashboard/graph.html +1 -1
- package/dist/dashboard/graph.txt +3 -3
- package/dist/dashboard/index.html +1 -1
- package/dist/dashboard/index.txt +3 -3
- package/dist/dashboard/knowledge.html +1 -1
- package/dist/dashboard/knowledge.txt +3 -3
- package/dist/dashboard/memory.html +1 -1
- package/dist/dashboard/memory.txt +3 -3
- package/dist/dashboard/replay.html +1 -1
- package/dist/dashboard/replay.txt +3 -3
- package/dist/dashboard/runs/_.html +1 -1
- package/dist/dashboard/runs/_.txt +3 -3
- package/dist/dashboard/runs.html +1 -1
- package/dist/dashboard/runs.txt +3 -3
- package/dist/dashboard/settings.html +1 -1
- package/dist/dashboard/settings.txt +3 -3
- package/dist/dashboard/timeline.html +1 -1
- package/dist/dashboard/timeline.txt +3 -3
- package/dist/dashboard/tool-metrics.html +1 -1
- package/dist/dashboard/tool-metrics.txt +3 -3
- package/dist/dashboard/workflows.html +1 -1
- package/dist/dashboard/workflows.txt +3 -3
- package/dist/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/plugin/dist/command-registry.json +5 -5
- package/dist/plugin/package.json +10 -10
- package/package.json +13 -13
- package/plugin-registry.json +29 -29
- package/dist/dashboard/_next/static/chunks/429-eac85fdc49353ed8.js +0 -1
- package/dist/dashboard/_next/static/chunks/app/executions/page-b98ec834dcda8d93.js +0 -1
- package/dist/dashboard/_next/static/chunks/app/timeline/page-a8eb3caf23be8a86.js +0 -1
- /package/dist/dashboard/_next/static/{Ke32dmyjnxYa9KDxBsq6U → MGvblRnurBd_fK7rfcjlq}/_buildManifest.js +0 -0
- /package/dist/dashboard/_next/static/{Ke32dmyjnxYa9KDxBsq6U → MGvblRnurBd_fK7rfcjlq}/_ssgManifest.js +0 -0
package/dist/dashboard/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="zh" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/7d4d1db5aa137b5a.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-d6388c5dcd85b0c5.js"/><script src="/_next/static/chunks/1dd3208c-f3e84932bdc53383.js" async=""></script><script src="/_next/static/chunks/528-7d4fc14903647f1e.js" async=""></script><script src="/_next/static/chunks/main-app-202a5f91ead17fa7.js" async=""></script><script src="/_next/static/chunks/736-db1a009357c222d2.js" async=""></script><script src="/_next/static/chunks/806-195d4d5cc6c28f6c.js" async=""></script><script src="/_next/static/chunks/697-05cf55b6c667773f.js" async=""></script><script src="/_next/static/chunks/458-75822399a849befa.js" async=""></script><script src="/_next/static/chunks/249-e04c1de6240fd78a.js" async=""></script><script src="/_next/static/chunks/429-
|
|
1
|
+
<!DOCTYPE html><html lang="zh" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/7d4d1db5aa137b5a.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-d6388c5dcd85b0c5.js"/><script src="/_next/static/chunks/1dd3208c-f3e84932bdc53383.js" async=""></script><script src="/_next/static/chunks/528-7d4fc14903647f1e.js" async=""></script><script src="/_next/static/chunks/main-app-202a5f91ead17fa7.js" async=""></script><script src="/_next/static/chunks/736-db1a009357c222d2.js" async=""></script><script src="/_next/static/chunks/806-195d4d5cc6c28f6c.js" async=""></script><script src="/_next/static/chunks/697-05cf55b6c667773f.js" async=""></script><script src="/_next/static/chunks/458-75822399a849befa.js" async=""></script><script src="/_next/static/chunks/249-e04c1de6240fd78a.js" async=""></script><script src="/_next/static/chunks/429-39f42ebb1ac959d6.js" async=""></script><script src="/_next/static/chunks/app/layout-4b78776412bd4fee.js" async=""></script><meta name="robots" content="noindex"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="h-dvh overflow-hidden"><div class="flex h-dvh items-center justify-center text-sm text-muted-foreground">Loading...</div><script src="/_next/static/chunks/webpack-d6388c5dcd85b0c5.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/7d4d1db5aa137b5a.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[11815,[],\"\"]\n4:I[55092,[],\"\"]\n5:I[82023,[],\"\"]\n6:I[68762,[\"736\",\"static/chunks/736-db1a009357c222d2.js\",\"806\",\"static/chunks/806-195d4d5cc6c28f6c.js\",\"697\",\"static/chunks/697-05cf55b6c667773f.js\",\"458\",\"static/chunks/458-75822399a849befa.js\",\"249\",\"static/chunks/249-e04c1de6240fd78a.js\",\"429\",\"static/chunks/429-39f42ebb1ac959d6.js\",\"185\",\"static/chunks/app/layout-4b78776412bd4fee.js\"],\"default\",1]\nc:I[91584,[],\"\"]\n7:{\"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\"}\n8:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n9:{\"display\":\"inline-block\"}\na:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nd:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L2\",null,{\"buildId\":\"MGvblRnurBd_fK7rfcjlq\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[[\"$\",\"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.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/7d4d1db5aa137b5a.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"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\":\"$8\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$9\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$a\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}],\"params\":{}}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$Lb\"],\"globalErrorComponent\":\"$c\",\"missingSlots\":\"$Wd\"}]\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}]]\n3:null\n"])</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[429],{41493:function(e,t,n){n.d(t,{h:function(){return u}});var r=n(50794);async function o(e,t){let n=function(){try{return localStorage.getItem("devflow-active-project-root")}catch(e){return null}}(),o={"Content-Type":"application/json",...(0,r.OM)()};n&&(o["x-devflow-project"]=n);let u=await fetch("".concat((0,r.aH)(),"/api").concat(e),{...t,headers:{...o,...null==t?void 0:t.headers},credentials:"same-origin"});if(!u.ok){let e=await u.text();if(401===u.status)throw Error("API 401: reload the local dashboard or configure a dashboard API key");throw Error("API ".concat(u.status,": ").concat(e))}let c=await u.json();return c&&"object"==typeof c&&"ok"in c&&"data"in c?c.data:c}let u={listProjects:()=>o("/projects"),getProject:e=>o("/projects/".concat(e)),createProject:e=>o("/projects",{method:"POST",body:JSON.stringify(e)}),deleteProject:e=>o("/projects/".concat(e),{method:"DELETE"}),connectProject:e=>o("/projects/connect",{method:"POST",body:JSON.stringify({rootPath:e})}),disconnectProject:()=>o("/projects/active",{method:"DELETE"}),getActiveProject:()=>o("/projects/active"),getOnboardingPackByRoot:e=>o("/projects/onboarding-pack?rootPath=".concat(encodeURIComponent(e))),refreshOnboardingPack:e=>o("/projects/onboarding-pack/refresh",{method:"POST",body:JSON.stringify({rootPath:e})}),getContextStatus:()=>o("/context/status"),buildContext:e=>o("/context/build",{method:"POST",body:JSON.stringify(e)}),buildTaskContext:e=>o("/context/build-task",{method:"POST",body:JSON.stringify(e)}),submitFeedback:e=>o("/context/feedback",{method:"POST",body:JSON.stringify(e)}),getFeedbackSummary:()=>o("/context/feedback-summary"),getGraph:()=>o("/graph"),getLayeredGraph:()=>o("/graph?view=layered"),getNode:e=>o("/graph/".concat(e)),expandNode:(e,t,n)=>o("/graph/".concat(e,"/expand?depth=").concat(null!=t?t:2,"&direction=").concat(null!=n?n:"both")),listWorkflows:()=>o("/workflows"),runWorkflow:(e,t)=>o("/workflows/".concat(e,"/run"),{method:"POST",body:JSON.stringify({input:t})}),listRuns:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o("/workflows/runs?limit=".concat(e,"&offset=").concat(t))},getRun:e=>o("/workflows/runs/".concat(e)),approveRun:e=>o("/workflows/runs/".concat(e,"/approve"),{method:"POST"}),rejectRun:(e,t)=>o("/workflows/runs/".concat(e,"/reject"),{method:"POST",body:JSON.stringify({reason:t})}),getMemory:()=>o("/memory"),addMemory:e=>o("/memory",{method:"POST",body:JSON.stringify(e)}),updateMemoryEntry:(e,t)=>o("/memory/".concat(e),{method:"PUT",body:JSON.stringify(t)}),deleteMemoryEntry:e=>o("/memory/".concat(e),{method:"DELETE"}),getCandidates:()=>o("/memory/candidates"),approveCandidate:e=>o("/memory/candidates/".concat(e,"/approve"),{method:"POST"}),rejectCandidate:e=>o("/memory/candidates/".concat(e,"/reject"),{method:"POST"}),searchMemory:(e,t,n)=>o("/memory/search",{method:"POST",body:JSON.stringify({query:e,limit:t,categories:n})}),updateMemory:(e,t,n)=>o("/memory/".concat(e,"/").concat(t),{method:"PUT",body:JSON.stringify({value:n})}),searchKnowledge:(e,t)=>o("/knowledge/search?q=".concat(encodeURIComponent(e)).concat(t?"&scope=".concat(t):"")),syncKnowledge:e=>o("/knowledge/sync",{method:"POST",body:JSON.stringify({pluginName:e})}),getKnowledgeSources:()=>o("/knowledge/sources"),listTelemetryRuns:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return o("/telemetry/runs?limit=".concat(e,"&offset=").concat(t).concat(n?"&source=".concat(n):""))},getTelemetryRun:e=>o("/telemetry/runs/".concat(e)),getTimeline:(e,t)=>o("/telemetry/timeline".concat(e?"?from=".concat(e).concat(t?"&to=".concat(t):""):"")),listSessions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=new URLSearchParams({limit:String(e),offset:String(t)});return n&&r.set("projectRoot",n),o("/telemetry/sessions?".concat(r))},getSession:e=>o("/telemetry/sessions/".concat(e)),getSessionEvents:e=>o("/telemetry/sessions/".concat(e,"/events")),getRunEvents:e=>o("/telemetry/runs/".concat(e,"/events")),getRunStats:e=>o("/telemetry/runs/".concat(e,"/stats")),completeRun:e=>o("/telemetry/runs/".concat(e,"/complete"),{method:"POST"}),getTelemetryStats:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return o("/telemetry/stats?days=".concat(e))},getRoiSummary:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return o("/telemetry/roi-summary?days=".concat(e))},listBenchmarkReports:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;return o("/benchmark/reports?limit=".concat(e))},getLatestBenchmarkReport:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return o("/benchmark/reports/latest?suite=".concat(encodeURIComponent(e)))},getBenchmarkReport:e=>o("/benchmark/reports/".concat(encodeURIComponent(e))),cleanupTelemetry:e=>o("/telemetry/cleanup",{method:"POST",body:JSON.stringify({olderThanDays:e})}),getToolMetricsSummary:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return o("/telemetry/tool-metrics/summary?days=".concat(e))},getAccuracyStats:(e,t)=>{let n=new URLSearchParams;e&&n.set("engine",e),t&&n.set("since",String(t));let r=n.toString();return o("/telemetry/accuracy/stats".concat(r?"?".concat(r):""))},getAccuracyQueries:e=>{let t=new URLSearchParams;(null==e?void 0:e.engine)&&t.set("engine",e.engine),(null==e?void 0:e.status)&&t.set("status",e.status),(null==e?void 0:e.limit)&&t.set("limit",String(e.limit)),(null==e?void 0:e.offset)&&t.set("offset",String(e.offset));let n=t.toString();return o("/telemetry/accuracy/queries".concat(n?"?".concat(n):""))},postAccuracyFeedback:e=>o("/telemetry/accuracy/feedback",{method:"POST",body:JSON.stringify(e)}),getAutoCheck:()=>o("/telemetry/auto-check"),getExecutions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1?arguments[1]:void 0,n=new URLSearchParams({limit:String(e)});return t&&n.set("skillName",t),o("/telemetry/executions?".concat(n))},getExecutionEvents:e=>o("/telemetry/executions/".concat(e,"/events")),getMcpCompliance:()=>o("/telemetry/mcp-compliance"),getGovernanceRules:()=>o("/governance/rules"),createGovernanceRule:e=>o("/governance/rules",{method:"POST",body:JSON.stringify(e)}),updateGovernanceRule:e=>o("/governance/rules/".concat(encodeURIComponent(e.id)),{method:"PUT",body:JSON.stringify(e)}),deleteGovernanceRule:e=>o("/governance/rules/".concat(encodeURIComponent(e)),{method:"DELETE"}),getGovernanceAudit:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o("/governance/audit-chain?limit=".concat(e,"&offset=").concat(t))},listPlugins:(e,t)=>o("/registry/plugins".concat(e?"?search=".concat(encodeURIComponent(e)).concat(t?"&tag=".concat(t):""):t?"?tag=".concat(t):"")),getPlugin:e=>o("/registry/plugins/".concat(e)),publishPlugin:e=>o("/registry/plugins",{method:"POST",body:JSON.stringify(e)}),getPluginEffectiveness:e=>o("/registry/plugins/effectiveness".concat(e?"?rootPath=".concat(encodeURIComponent(e)):""))}},50794:function(e,t,n){n.d(t,{OM:function(){return y},aH:function(){return l}});var r,o,u,c,i=n(49767);let a=null!==(u=null===(r=i.env.NEXT_PUBLIC_DEVFLOW_API_KEY)||void 0===r?void 0:r.trim())&&void 0!==u?u:"",s=null!==(c=null===(o=i.env.NEXT_PUBLIC_DEVFLOW_API_URL)||void 0===o?void 0:o.trim())&&void 0!==c?c:"";function l(){return s?s.replace(/\/$/,""):window.location.origin}function y(){let e=function(){if(a)return a;try{var e;return(null===(e=localStorage.getItem("devflow-api-key"))||void 0===e?void 0:e.trim())||null}catch(e){return null}}();return e?{"x-api-key":e}:{}}},57429:function(e,t,n){n.d(t,{Af:function(){return M},C:function(){return q},D:function(){return h},FU:function(){return y},Fx:function(){return X},G2:function(){return s},Hx:function(){return J},JM:function(){return A},KA:function(){return k},OV:function(){return z},Re:function(){return B},S0:function(){return G},Tr:function(){return l},Tu:function(){return U},VU:function(){return j},Vc:function(){return P},Vw:function(){return _},X0:function(){return d},YG:function(){return H},Z0:function(){return i},ZL:function(){return V},_m:function(){return O},aw:function(){return L},bz:function(){return Q},dL:function(){return F},dP:function(){return R},e3:function(){return W},fC:function(){return a},ff:function(){return C},g6:function(){return I},hI:function(){return m},iP:function(){return Z},kP:function(){return w},mE:function(){return x},mU:function(){return D},mp:function(){return b},n4:function(){return f},nO:function(){return g},nq:function(){return p},on:function(){return S},ow:function(){return T},qt:function(){return N},rC:function(){return K},rO:function(){return E},rw:function(){return Y},xT:function(){return $},xX:function(){return v}});var r=n(31988),o=n(77930),u=n(15969),c=n(41493);function i(){return(0,r.a)({queryKey:["projects"],queryFn:()=>c.h.listProjects()})}function a(){return(0,r.a)({queryKey:["active-project"],queryFn:()=>c.h.getActiveProject()})}function s(e){return(0,r.a)({queryKey:["onboarding-pack",e],queryFn:()=>c.h.getOnboardingPackByRoot(e),enabled:!!e})}function l(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>c.h.refreshOnboardingPack(e),onSuccess:(t,n)=>e.setQueryData(["onboarding-pack",n],t)})}function y(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>c.h.connectProject(e),onSuccess:()=>e.invalidateQueries({queryKey:["active-project"]})})}function d(){let e=(0,o.NL)();return(0,u.D)({mutationFn:()=>c.h.disconnectProject(),onSuccess:()=>e.invalidateQueries({queryKey:["active-project"]})})}function m(){return(0,r.a)({queryKey:["context-status"],queryFn:()=>c.h.getContextStatus()})}function f(){return(0,r.a)({queryKey:["graph"],queryFn:()=>c.h.getGraph()})}function g(){return(0,r.a)({queryKey:["layered-graph"],queryFn:()=>c.h.getLayeredGraph()})}function h(){return(0,r.a)({queryKey:["workflows"],queryFn:()=>c.h.listWorkflows()})}function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,r.a)({queryKey:["workflow-runs",e,t],queryFn:()=>c.h.listRuns(e,t)})}function p(){return(0,r.a)({queryKey:["memory"],queryFn:()=>c.h.getMemory()})}function S(e,t){return(0,r.a)({queryKey:["memory-search",e,t],queryFn:()=>c.h.searchMemory(e,null==t?void 0:t.limit,null==t?void 0:t.categories),enabled:e.length>0})}function q(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>c.h.approveCandidate(e),onSuccess:()=>{e.invalidateQueries({queryKey:["memory"]}),e.invalidateQueries({queryKey:["memory-candidates"]})}})}function b(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>c.h.rejectCandidate(e),onSuccess:()=>{e.invalidateQueries({queryKey:["memory"]}),e.invalidateQueries({queryKey:["memory-candidates"]})}})}function k(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>c.h.addMemory(e),onSuccess:()=>e.invalidateQueries({queryKey:["memory"]})})}function P(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,r.a)({queryKey:["telemetry-runs",e,t],queryFn:()=>c.h.listTelemetryRuns(e,t)})}function F(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return(0,r.a)({queryKey:["sessions",e,t,n],queryFn:()=>c.h.listSessions(e,t,n)})}function w(e){return(0,r.a)({queryKey:["session",e],queryFn:()=>c.h.getSession(e),enabled:!!e})}function K(e){return(0,r.a)({queryKey:["session-events",e],queryFn:()=>c.h.getSessionEvents(e),enabled:!!e})}function O(e,t){return(0,r.a)({queryKey:["plugins",e,t],queryFn:()=>c.h.listPlugins(e,t)})}function T(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>c.h.buildContext(e),onSuccess:t=>e.setQueryData(["context-result"],t)})}function N(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>c.h.buildTaskContext(e),onSuccess:t=>e.setQueryData(["task-context-result"],t)})}function R(){return(0,r.a)({queryKey:["context-result"],queryFn:()=>Promise.reject(Error("No queryFn — this query is never enabled")),enabled:!1})}function j(){return(0,r.a)({queryKey:["task-context-result"],queryFn:()=>Promise.reject(Error("No queryFn — this query is never enabled")),enabled:!1})}function E(){return(0,u.D)({mutationFn:e=>c.h.submitFeedback(e)})}function L(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>{let{type:t,input:n}=e;return c.h.runWorkflow(t,n)},onSuccess:()=>e.invalidateQueries({queryKey:["workflow-runs"]})})}function C(){return(0,r.a)({queryKey:["knowledge-sources"],queryFn:()=>c.h.getKnowledgeSources()})}function x(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>c.h.syncKnowledge(e),onSuccess:()=>e.invalidateQueries({queryKey:["knowledge-sources"]})})}function D(e){return(0,r.a)({queryKey:["knowledge-search",e],queryFn:()=>c.h.searchKnowledge(e),enabled:e.length>0})}function Q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return(0,r.a)({queryKey:["telemetry-stats",e],queryFn:()=>c.h.getTelemetryStats(e)})}function U(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return(0,r.a)({queryKey:["roi-summary",e],queryFn:()=>c.h.getRoiSummary(e)})}function I(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return(0,r.a)({queryKey:["benchmark-report","latest",e],queryFn:()=>c.h.getLatestBenchmarkReport(e)})}function A(e){return(0,r.a)({queryKey:["run-events",e],queryFn:()=>c.h.getRunEvents(e),enabled:!!e,refetchInterval:2e3})}function J(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>c.h.cleanupTelemetry(e),onSuccess:()=>e.invalidateQueries({queryKey:["telemetry-stats"]})})}function M(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>{let{id:t,updates:n}=e;return c.h.updateMemoryEntry(t,n)},onSuccess:()=>e.invalidateQueries({queryKey:["memory"]})})}function G(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>c.h.deleteMemoryEntry(e),onSuccess:()=>e.invalidateQueries({queryKey:["memory"]})})}function _(e){return(0,r.a)({queryKey:["plugin-effectiveness",e],queryFn:()=>c.h.getPluginEffectiveness(e)})}function B(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return(0,r.a)({queryKey:["tool-metrics-summary",e],queryFn:()=>c.h.getToolMetricsSummary(e)})}function V(e){return(0,r.a)({queryKey:["accuracy-stats",e],queryFn:()=>c.h.getAccuracyStats(e)})}function W(e){return(0,r.a)({queryKey:["accuracy-queries",e],queryFn:()=>c.h.getAccuracyQueries(e)})}function X(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>c.h.postAccuracyFeedback(e),onSuccess:()=>{e.invalidateQueries({queryKey:["accuracy-stats"]}),e.invalidateQueries({queryKey:["accuracy-queries"]})}})}function H(){return(0,r.a)({queryKey:["auto-check"],queryFn:()=>c.h.getAutoCheck()})}function Y(){return(0,r.a)({queryKey:["governance-rules"],queryFn:()=>c.h.getGovernanceRules()})}function Z(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>{let{rule:t,create:n}=e;return n?c.h.createGovernanceRule(t):c.h.updateGovernanceRule(t)},onSuccess:()=>e.invalidateQueries({queryKey:["governance-rules"]})})}function z(){let e=(0,o.NL)();return(0,u.D)({mutationFn:e=>c.h.deleteGovernanceRule(e),onSuccess:()=>e.invalidateQueries({queryKey:["governance-rules"]})})}function $(){return(0,r.a)({queryKey:["governance-audit"],queryFn:()=>c.h.getGovernanceAudit(),refetchInterval:1e4})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[506],{27395:function(e,t,r){Promise.resolve().then(r.bind(r,72206))},38941:function(e,t,r){"use strict";r.d(t,{C:function(){return i}});var n=r(27573);r(7653);var a=r(29147);let s=(0,r(49289).j)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:r,...i}=e;return(0,n.jsx)("div",{className:(0,a.cn)(s({variant:r}),t),...i})}},50466:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=r(27573),a=r(7653),s=r(29147);let i=(0,r(49289).j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=a.forwardRef((e,t)=>{let{className:r,variant:a,size:l,...o}=e;return(0,n.jsx)("button",{className:(0,s.cn)(i({variant:a,size:l,className:r})),ref:t,...o})});l.displayName="Button"},72196:function(e,t,r){"use strict";r.d(t,{Ol:function(){return l},Zb:function(){return i},aY:function(){return c},ll:function(){return o}});var n=r(27573),a=r(7653),s=r(29147);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("rounded-lg border border-border bg-card text-card-foreground",r),...a})});i.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-4",r),...a})});l.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("h3",{ref:t,className:(0,s.cn)("text-sm font-semibold leading-none tracking-tight",r),...a})});o.displayName="CardTitle";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("p-4 pt-0",r),...a})});c.displayName="CardContent"},72206:function(e,t,r){"use strict";r.d(t,{AccuracyView:function(){return d}});var n=r(27573),a=r(7653),s=r(72196),i=r(38941),l=r(50466),o=r(57429),c=r(33127);function d(){(0,c.z)("accuracy",[["accuracy-stats"],["accuracy-queries"],["auto-check"]]);let[e,t]=(0,a.useState)(""),{data:r}=(0,o.ZL)(e||void 0),{data:d}=(0,o.e3)({engine:e||void 0,status:"unannotated",limit:20}),{data:u}=(0,o.YG)(),f=(0,o.Fx)(),m=null!=r?r:{},x=Array.isArray(d)?d:[],v=Array.isArray(u)?u:[],h=(0,a.useCallback)((e,t)=>{f.mutate({queryId:e,relevance:t})},[f]);return(0,n.jsxs)("div",{className:"p-6 space-y-6",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("h2",{className:"text-xl font-semibold",children:"Accuracy"}),(0,n.jsxs)("select",{value:e,onChange:e=>t(e.target.value),className:"border rounded px-2 py-1 text-sm bg-background",children:[(0,n.jsx)("option",{value:"",children:"All Engines"}),(0,n.jsx)("option",{value:"codegraph",children:"CodeGraph"}),(0,n.jsx)("option",{value:"knowledge",children:"Knowledge"}),(0,n.jsx)("option",{value:"memory",children:"Memory"})]})]}),v.length>0&&(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("h3",{className:"text-sm font-medium",children:"Auto Check Results"}),v.map(e=>(0,n.jsxs)("div",{className:"flex items-center gap-3 p-2 rounded text-sm ".concat("error"===e.severity?"bg-red-50 dark:bg-red-950 border border-red-300":"warning"===e.severity?"bg-yellow-50 dark:bg-yellow-950 border border-yellow-300":"bg-green-50 dark:bg-green-950 border border-green-300"),children:[(0,n.jsx)(i.C,{variant:"ok"===e.severity?"default":"destructive",children:e.severity}),(0,n.jsx)("span",{className:"flex-1",children:e.detail})]},e.name))]}),Object.keys(m).length>0&&(0,n.jsx)("div",{className:"grid grid-cols-3 gap-4",children:Object.entries(m).map(e=>{let[t,r]=e;return(0,n.jsxs)(s.Zb,{className:"p-4 space-y-2",children:[(0,n.jsx)("h3",{className:"font-medium text-sm capitalize",children:t}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-1 text-xs",children:[(0,n.jsx)("span",{className:"text-muted-foreground",children:"Queries"}),(0,n.jsx)("span",{className:"font-semibold text-right",children:r.totalQueries}),(0,n.jsx)("span",{className:"text-muted-foreground",children:"Annotated"}),(0,n.jsx)("span",{className:"font-semibold text-right",children:r.annotatedQueries}),(0,n.jsx)("span",{className:"text-muted-foreground",children:"Hit Rate"}),(0,n.jsx)("span",{className:"font-semibold text-right",children:null!=r.hitRate?"".concat(Math.round(100*r.hitRate),"%"):"N/A"})]})]},t)})}),x.length>0&&(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)("h3",{className:"text-sm font-medium",children:["Annotation Queue (",x.length," unannotated)"]}),x.slice(0,10).map(e=>{var t;return(0,n.jsxs)(s.Zb,{className:"p-3 space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)(i.C,{variant:"outline",children:e.engine}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:new Date(e.createdAt).toLocaleString()})]}),(0,n.jsx)("p",{className:"text-sm font-mono",children:e.query}),(0,n.jsxs)("div",{className:"text-xs text-muted-foreground",children:["Top results: ",(null===(t=e.topKResults)||void 0===t?void 0:t.slice(0,3).map(e=>{var t;return null!==(t=e.name)&&void 0!==t?t:e.title}).join(", "))||"none"]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(l.z,{size:"sm",variant:"default",onClick:()=>h(e.id,"hit"),children:"Hit"}),(0,n.jsx)(l.z,{size:"sm",variant:"secondary",onClick:()=>h(e.id,"partial"),children:"Partial"}),(0,n.jsx)(l.z,{size:"sm",variant:"destructive",onClick:()=>h(e.id,"miss"),children:"Miss"})]})]},e.id)})]}),0===Object.keys(m).length&&0===x.length&&0===v.length&&(0,n.jsx)("p",{className:"text-muted-foreground text-sm",children:"No accuracy data yet. Start a Claude Code session to collect queries."})]})}},33127:function(e,t,r){"use strict";r.d(t,{D:function(){return
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[506],{27395:function(e,t,r){Promise.resolve().then(r.bind(r,72206))},38941:function(e,t,r){"use strict";r.d(t,{C:function(){return i}});var n=r(27573);r(7653);var a=r(29147);let s=(0,r(49289).j)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:r,...i}=e;return(0,n.jsx)("div",{className:(0,a.cn)(s({variant:r}),t),...i})}},50466:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=r(27573),a=r(7653),s=r(29147);let i=(0,r(49289).j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=a.forwardRef((e,t)=>{let{className:r,variant:a,size:l,...o}=e;return(0,n.jsx)("button",{className:(0,s.cn)(i({variant:a,size:l,className:r})),ref:t,...o})});l.displayName="Button"},72196:function(e,t,r){"use strict";r.d(t,{Ol:function(){return l},Zb:function(){return i},aY:function(){return c},ll:function(){return o}});var n=r(27573),a=r(7653),s=r(29147);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("rounded-lg border border-border bg-card text-card-foreground",r),...a})});i.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-4",r),...a})});l.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("h3",{ref:t,className:(0,s.cn)("text-sm font-semibold leading-none tracking-tight",r),...a})});o.displayName="CardTitle";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("p-4 pt-0",r),...a})});c.displayName="CardContent"},72206:function(e,t,r){"use strict";r.d(t,{AccuracyView:function(){return d}});var n=r(27573),a=r(7653),s=r(72196),i=r(38941),l=r(50466),o=r(57429),c=r(33127);function d(){(0,c.z)("accuracy",[["accuracy-stats"],["accuracy-queries"],["auto-check"]]);let[e,t]=(0,a.useState)(""),{data:r}=(0,o.ZL)(e||void 0),{data:d}=(0,o.e3)({engine:e||void 0,status:"unannotated",limit:20}),{data:u}=(0,o.YG)(),f=(0,o.Fx)(),m=null!=r?r:{},x=Array.isArray(d)?d:[],v=Array.isArray(u)?u:[],h=(0,a.useCallback)((e,t)=>{f.mutate({queryId:e,relevance:t})},[f]);return(0,n.jsxs)("div",{className:"p-6 space-y-6",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("h2",{className:"text-xl font-semibold",children:"Accuracy"}),(0,n.jsxs)("select",{value:e,onChange:e=>t(e.target.value),className:"border rounded px-2 py-1 text-sm bg-background",children:[(0,n.jsx)("option",{value:"",children:"All Engines"}),(0,n.jsx)("option",{value:"codegraph",children:"CodeGraph"}),(0,n.jsx)("option",{value:"knowledge",children:"Knowledge"}),(0,n.jsx)("option",{value:"memory",children:"Memory"})]})]}),v.length>0&&(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("h3",{className:"text-sm font-medium",children:"Auto Check Results"}),v.map(e=>(0,n.jsxs)("div",{className:"flex items-center gap-3 p-2 rounded text-sm ".concat("error"===e.severity?"bg-red-50 dark:bg-red-950 border border-red-300":"warning"===e.severity?"bg-yellow-50 dark:bg-yellow-950 border border-yellow-300":"bg-green-50 dark:bg-green-950 border border-green-300"),children:[(0,n.jsx)(i.C,{variant:"ok"===e.severity?"default":"destructive",children:e.severity}),(0,n.jsx)("span",{className:"flex-1",children:e.detail})]},e.name))]}),Object.keys(m).length>0&&(0,n.jsx)("div",{className:"grid grid-cols-3 gap-4",children:Object.entries(m).map(e=>{let[t,r]=e;return(0,n.jsxs)(s.Zb,{className:"p-4 space-y-2",children:[(0,n.jsx)("h3",{className:"font-medium text-sm capitalize",children:t}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-1 text-xs",children:[(0,n.jsx)("span",{className:"text-muted-foreground",children:"Queries"}),(0,n.jsx)("span",{className:"font-semibold text-right",children:r.totalQueries}),(0,n.jsx)("span",{className:"text-muted-foreground",children:"Annotated"}),(0,n.jsx)("span",{className:"font-semibold text-right",children:r.annotatedQueries}),(0,n.jsx)("span",{className:"text-muted-foreground",children:"Hit Rate"}),(0,n.jsx)("span",{className:"font-semibold text-right",children:null!=r.hitRate?"".concat(Math.round(100*r.hitRate),"%"):"N/A"})]})]},t)})}),x.length>0&&(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)("h3",{className:"text-sm font-medium",children:["Annotation Queue (",x.length," unannotated)"]}),x.slice(0,10).map(e=>{var t;return(0,n.jsxs)(s.Zb,{className:"p-3 space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)(i.C,{variant:"outline",children:e.engine}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:new Date(e.createdAt).toLocaleString()})]}),(0,n.jsx)("p",{className:"text-sm font-mono",children:e.query}),(0,n.jsxs)("div",{className:"text-xs text-muted-foreground",children:["Top results: ",(null===(t=e.topKResults)||void 0===t?void 0:t.slice(0,3).map(e=>{var t;return null!==(t=e.name)&&void 0!==t?t:e.title}).join(", "))||"none"]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(l.z,{size:"sm",variant:"default",onClick:()=>h(e.id,"hit"),children:"Hit"}),(0,n.jsx)(l.z,{size:"sm",variant:"secondary",onClick:()=>h(e.id,"partial"),children:"Partial"}),(0,n.jsx)(l.z,{size:"sm",variant:"destructive",onClick:()=>h(e.id,"miss"),children:"Miss"})]})]},e.id)})]}),0===Object.keys(m).length&&0===x.length&&0===v.length&&(0,n.jsx)("p",{className:"text-muted-foreground text-sm",children:"No accuracy data yet. Start a Claude Code session to collect queries."})]})}},33127:function(e,t,r){"use strict";r.d(t,{D:function(){return l},z:function(){return o}});var n=r(7653),a=r(77930),s=r(50794);async function i(e,t,r){let n=await fetch("".concat((0,s.aH)(),"/api").concat(e),{headers:(0,s.OM)(),credentials:"same-origin",signal:t});if(!n.ok||!n.body)throw Error("SSE ".concat(n.status));let a=n.body.getReader(),i=new TextDecoder,l="";for(;!t.aborted;){var o;let{value:e,done:t}=await a.read();if(t)break;let n=(l+=i.decode(e,{stream:!0})).split("\n\n");for(let e of(l=null!==(o=n.pop())&&void 0!==o?o:"",n)){let t="message",n=[];for(let r of e.split("\n"))r.startsWith("event:")&&(t=r.slice(6).trim()),r.startsWith("data:")&&n.push(r.slice(5).trim());if(0!==n.length)try{r({type:t,data:JSON.parse(n.join("\n"))})}catch(e){}}}}function l(e){let[t,r]=(0,n.useState)([]);return(0,n.useEffect)(()=>{if(!e)return;let t=new AbortController;return i("/workflows/runs/".concat(encodeURIComponent(e),"/stream"),t.signal,e=>r(t=>[...t,e])).catch(()=>void 0),()=>t.abort()},[e]),{events:t,clear:(0,n.useCallback)(()=>r([]),[])}}function o(e,t){let r=(0,a.NL)(),s=JSON.stringify(t);(0,n.useEffect)(()=>{let t=new AbortController,n=JSON.parse(s);return i("/live/stream?channels=".concat(encodeURIComponent(e)),t.signal,t=>{if("refresh"===t.type&&t.data.channel===e)for(let e of n)r.invalidateQueries({queryKey:e})}).catch(()=>void 0),()=>t.abort()},[e,r,s])}},29147:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var n=r(10607),a=r(25579);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.m6)((0,n.W)(t))}},49289:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});var n=r(10607);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=n.W,i=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return s(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:l}=t,o=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],n=null==l?void 0:l[e];if(null===t)return null;let s=a(t)||a(n);return i[e][s]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return s(e,o,null==t?void 0:null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...c}[t]):({...l,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},function(e){e.O(0,[736,697,429,293,528,744],function(){return e(e.s=27395)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[916],{90239:function(e,t,n){Promise.resolve().then(n.bind(n,53906))},53906:function(e,t,n){"use strict";n.d(t,{ExecutionsView:function(){return h}});var o=n(27573),r=n(31988),c=n(41493),s=n(3806),a=n(7653),l=n(39790);let i=(0,n(2389).Z)("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);var d=n(53512),u=n(25555),m=n(90743);function g(e){let{rate:t}=e;return(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("div",{className:"w-20 h-2 bg-muted rounded-full overflow-hidden",children:(0,o.jsx)("div",{className:"h-full ".concat(t>=80?"bg-green-500":t>=50?"bg-yellow-500":"bg-red-500"," rounded-full"),style:{width:"".concat(t,"%")}})}),(0,o.jsxs)("span",{className:"text-xs text-muted-foreground",children:[t.toFixed(1),"%"]})]})}function h(){let{t:e}=(0,s.$G)(),[t,n]=(0,a.useState)(null),{data:h,isLoading:x}=(0,r.a)({queryKey:["telemetry","executions"],queryFn:()=>c.h.getExecutions(50),refetchInterval:1e4}),{data:y}=(0,r.a)({queryKey:["telemetry","mcp-compliance"],queryFn:()=>c.h.getMcpCompliance()}),{data:p}=(0,r.a)({queryKey:["telemetry","executions",t,"events"],queryFn:()=>c.h.getExecutionEvents(t),enabled:!!t}),f=null!=h?h:[];return x?(0,o.jsxs)("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:[(0,o.jsx)(l.Z,{className:"h-5 w-5 animate-spin mr-2"}),e("executions.loading")]}):(0,o.jsxs)("div",{className:"h-full overflow-auto p-6",children:[(0,o.jsx)("h2",{className:"text-xl font-bold mb-4",children:e("executions.title")}),y&&(0,o.jsxs)("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[(0,o.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,o.jsx)("div",{className:"text-sm text-muted-foreground",children:e("executions.overallCompliance")}),(0,o.jsxs)("div",{className:"text-2xl font-bold mt-1",children:[y.overall.toFixed(1),"%"]})]}),(0,o.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,o.jsx)("div",{className:"text-sm text-muted-foreground",children:e("executions.totalExecutions")}),(0,o.jsx)("div",{className:"text-2xl font-bold mt-1",children:f.length})]}),(0,o.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,o.jsx)("div",{className:"text-sm text-muted-foreground",children:e("executions.skillsTracked")}),(0,o.jsx)("div",{className:"text-2xl font-bold mt-1",children:Object.keys(y.bySkill).length})]})]}),(0,o.jsx)("div",{className:"bg-card border border-border rounded-lg overflow-hidden",children:(0,o.jsxs)("table",{className:"w-full text-sm",children:[(0,o.jsx)("thead",{className:"bg-muted/50",children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{className:"text-left px-4 py-2 font-medium",children:e("executions.skill")}),(0,o.jsx)("th",{className:"text-left px-4 py-2 font-medium",children:e("executions.status")}),(0,o.jsx)("th",{className:"text-left px-4 py-2 font-medium",children:e("executions.tools")}),(0,o.jsx)("th",{className:"text-left px-4 py-2 font-medium",children:e("executions.mcpRate")}),(0,o.jsx)("th",{className:"text-left px-4 py-2 font-medium",children:e("executions.duration")})]})}),(0,o.jsxs)("tbody",{children:[f.map(e=>{var r,c,s;return(0,o.jsxs)("tr",{className:"border-t border-border cursor-pointer hover:bg-muted/30 ".concat(t===e.executionId?"bg-muted/50":""),onClick:()=>n(e.executionId),children:[(0,o.jsx)("td",{className:"px-4 py-2 font-mono text-xs",children:e.skillName}),(0,o.jsx)("td",{className:"px-4 py-2",children:"completed"===e.status?(0,o.jsx)(i,{className:"h-4 w-4 text-green-500 inline"}):"failed"===e.status?(0,o.jsx)(d.Z,{className:"h-4 w-4 text-red-500 inline"}):(0,o.jsx)(u.Z,{className:"h-4 w-4 text-yellow-500 inline animate-spin"})}),(0,o.jsx)("td",{className:"px-4 py-2",children:e.totalToolCalls}),(0,o.jsx)("td",{className:"px-4 py-2",children:(0,o.jsx)(g,{rate:null!==(r=e.mcpComplianceRate)&&void 0!==r?r:0})}),(0,o.jsx)("td",{className:"px-4 py-2",children:(s=null!==(c=e.totalDuration)&&void 0!==c?c:0)<1e3?"".concat(s,"ms"):"".concat((s/1e3).toFixed(1),"s")})]},e.executionId)}),0===f.length&&(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:5,className:"px-4 py-8 text-center text-muted-foreground",children:e("executions.empty")})})]})]})}),t&&p&&(0,o.jsxs)("div",{className:"mt-6 bg-card border border-border rounded-lg p-4",children:[(0,o.jsxs)("h3",{className:"font-bold mb-3 flex items-center gap-2",children:[(0,o.jsx)(m.Z,{className:"h-4 w-4"}),e("executions.traceTimeline")]}),(0,o.jsx)("div",{className:"space-y-2",children:(null!=p?p:[]).map(t=>(0,o.jsxs)("div",{className:"flex items-start gap-3 p-2 rounded-md bg-muted/30 text-sm",children:[(0,o.jsx)("span",{className:"text-xs text-muted-foreground w-16 shrink-0",children:new Date(t.timestamp).toLocaleTimeString()}),(0,o.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs font-mono ".concat(t.isMcpTool?"bg-green-500/20 text-green-400":"subagent"===t.toolType?"bg-blue-500/20 text-blue-400":"bg-muted text-muted-foreground"),children:t.toolType}),(0,o.jsx)("span",{className:"font-mono text-xs flex-1",children:t.toolName}),t.blocked&&(0,o.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs bg-red-500/20 text-red-400",children:e("executions.blocked")}),t.mcpEnforced&&(0,o.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs bg-green-500/20 text-green-400",children:"MCP"}),t.mcpFallback&&(0,o.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs bg-yellow-500/20 text-yellow-400",children:e("executions.fallback")})]},t.eventId))})]})]})}},41493:function(e,t,n){"use strict";n.d(t,{h:function(){return c}});var o=n(50794);async function r(e,t){let n=function(){try{return localStorage.getItem("devflow-active-project-root")}catch(e){return null}}(),r={"Content-Type":"application/json",...(0,o.OM)()};n&&(r["x-devflow-project"]=n);let c=await fetch("".concat((0,o.aH)(),"/api").concat(e),{...t,headers:{...r,...null==t?void 0:t.headers},credentials:"same-origin"});if(!c.ok){let e=await c.text();if(401===c.status)throw Error("API 401: reload the local dashboard or configure a dashboard API key");throw Error("API ".concat(c.status,": ").concat(e))}let s=await c.json();return s&&"object"==typeof s&&"ok"in s&&"data"in s?s.data:s}let c={listProjects:()=>r("/projects"),getProject:e=>r("/projects/".concat(e)),createProject:e=>r("/projects",{method:"POST",body:JSON.stringify(e)}),deleteProject:e=>r("/projects/".concat(e),{method:"DELETE"}),connectProject:e=>r("/projects/connect",{method:"POST",body:JSON.stringify({rootPath:e})}),disconnectProject:()=>r("/projects/active",{method:"DELETE"}),getActiveProject:()=>r("/projects/active"),getOnboardingPackByRoot:e=>r("/projects/onboarding-pack?rootPath=".concat(encodeURIComponent(e))),refreshOnboardingPack:e=>r("/projects/onboarding-pack/refresh",{method:"POST",body:JSON.stringify({rootPath:e})}),getContextStatus:()=>r("/context/status"),buildContext:e=>r("/context/build",{method:"POST",body:JSON.stringify(e)}),buildTaskContext:e=>r("/context/build-task",{method:"POST",body:JSON.stringify(e)}),submitFeedback:e=>r("/context/feedback",{method:"POST",body:JSON.stringify(e)}),getFeedbackSummary:()=>r("/context/feedback-summary"),getGraph:()=>r("/graph"),getLayeredGraph:()=>r("/graph?view=layered"),getNode:e=>r("/graph/".concat(e)),expandNode:(e,t,n)=>r("/graph/".concat(e,"/expand?depth=").concat(null!=t?t:2,"&direction=").concat(null!=n?n:"both")),listWorkflows:()=>r("/workflows"),runWorkflow:(e,t)=>r("/workflows/".concat(e,"/run"),{method:"POST",body:JSON.stringify({input:t})}),listRuns:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r("/workflows/runs?limit=".concat(e,"&offset=").concat(t))},getRun:e=>r("/workflows/runs/".concat(e)),approveRun:e=>r("/workflows/runs/".concat(e,"/approve"),{method:"POST"}),rejectRun:(e,t)=>r("/workflows/runs/".concat(e,"/reject"),{method:"POST",body:JSON.stringify({reason:t})}),getMemory:()=>r("/memory"),addMemory:e=>r("/memory",{method:"POST",body:JSON.stringify(e)}),updateMemoryEntry:(e,t)=>r("/memory/".concat(e),{method:"PUT",body:JSON.stringify(t)}),deleteMemoryEntry:e=>r("/memory/".concat(e),{method:"DELETE"}),getCandidates:()=>r("/memory/candidates"),approveCandidate:e=>r("/memory/candidates/".concat(e,"/approve"),{method:"POST"}),rejectCandidate:e=>r("/memory/candidates/".concat(e,"/reject"),{method:"POST"}),searchMemory:(e,t,n)=>r("/memory/search",{method:"POST",body:JSON.stringify({query:e,limit:t,categories:n})}),updateMemory:(e,t,n)=>r("/memory/".concat(e,"/").concat(t),{method:"PUT",body:JSON.stringify({value:n})}),searchKnowledge:(e,t)=>r("/knowledge/search?q=".concat(encodeURIComponent(e)).concat(t?"&scope=".concat(t):"")),syncKnowledge:e=>r("/knowledge/sync",{method:"POST",body:JSON.stringify({pluginName:e})}),getKnowledgeSources:()=>r("/knowledge/sources"),listTelemetryRuns:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return r("/telemetry/runs?limit=".concat(e,"&offset=").concat(t).concat(n?"&source=".concat(n):""))},getTelemetryRun:e=>r("/telemetry/runs/".concat(e)),getTimeline:(e,t)=>r("/telemetry/timeline".concat(e?"?from=".concat(e).concat(t?"&to=".concat(t):""):"")),listSessions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,o=new URLSearchParams({limit:String(e),offset:String(t)});return n&&o.set("projectRoot",n),r("/telemetry/sessions?".concat(o))},getSession:e=>r("/telemetry/sessions/".concat(e)),getSessionEvents:e=>r("/telemetry/sessions/".concat(e,"/events")),getRunEvents:e=>r("/telemetry/runs/".concat(e,"/events")),getRunStats:e=>r("/telemetry/runs/".concat(e,"/stats")),completeRun:e=>r("/telemetry/runs/".concat(e,"/complete"),{method:"POST"}),getTelemetryStats:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return r("/telemetry/stats?days=".concat(e))},getRoiSummary:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return r("/telemetry/roi-summary?days=".concat(e))},listBenchmarkReports:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;return r("/benchmark/reports?limit=".concat(e))},getLatestBenchmarkReport:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r("/benchmark/reports/latest?suite=".concat(encodeURIComponent(e)))},getBenchmarkReport:e=>r("/benchmark/reports/".concat(encodeURIComponent(e))),cleanupTelemetry:e=>r("/telemetry/cleanup",{method:"POST",body:JSON.stringify({olderThanDays:e})}),getToolMetricsSummary:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return r("/telemetry/tool-metrics/summary?days=".concat(e))},getAccuracyStats:(e,t)=>{let n=new URLSearchParams;e&&n.set("engine",e),t&&n.set("since",String(t));let o=n.toString();return r("/telemetry/accuracy/stats".concat(o?"?".concat(o):""))},getAccuracyQueries:e=>{let t=new URLSearchParams;(null==e?void 0:e.engine)&&t.set("engine",e.engine),(null==e?void 0:e.status)&&t.set("status",e.status),(null==e?void 0:e.limit)&&t.set("limit",String(e.limit)),(null==e?void 0:e.offset)&&t.set("offset",String(e.offset));let n=t.toString();return r("/telemetry/accuracy/queries".concat(n?"?".concat(n):""))},postAccuracyFeedback:e=>r("/telemetry/accuracy/feedback",{method:"POST",body:JSON.stringify(e)}),getAutoCheck:()=>r("/telemetry/auto-check"),getExecutions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1?arguments[1]:void 0,n=new URLSearchParams({limit:String(e)});return t&&n.set("skillName",t),r("/telemetry/executions?".concat(n))},getExecutionEvents:e=>r("/telemetry/executions/".concat(e,"/events")),getMcpCompliance:()=>r("/telemetry/mcp-compliance"),getGovernanceRules:()=>r("/governance/rules"),createGovernanceRule:e=>r("/governance/rules",{method:"POST",body:JSON.stringify(e)}),updateGovernanceRule:e=>r("/governance/rules/".concat(encodeURIComponent(e.id)),{method:"PUT",body:JSON.stringify(e)}),deleteGovernanceRule:e=>r("/governance/rules/".concat(encodeURIComponent(e)),{method:"DELETE"}),getGovernanceAudit:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r("/governance/audit-chain?limit=".concat(e,"&offset=").concat(t))},listPlugins:(e,t)=>r("/registry/plugins".concat(e?"?search=".concat(encodeURIComponent(e)).concat(t?"&tag=".concat(t):""):t?"?tag=".concat(t):"")),getPlugin:e=>r("/registry/plugins/".concat(e)),publishPlugin:e=>r("/registry/plugins",{method:"POST",body:JSON.stringify(e)}),getPluginEffectiveness:e=>r("/registry/plugins/effectiveness".concat(e?"?rootPath=".concat(encodeURIComponent(e)):""))}},50794:function(e,t,n){"use strict";n.d(t,{OM:function(){return u},aH:function(){return d}});var o,r,c,s,a=n(49767);let l=null!==(c=null===(o=a.env.NEXT_PUBLIC_DEVFLOW_API_KEY)||void 0===o?void 0:o.trim())&&void 0!==c?c:"",i=null!==(s=null===(r=a.env.NEXT_PUBLIC_DEVFLOW_API_URL)||void 0===r?void 0:r.trim())&&void 0!==s?s:"";function d(){return i?i.replace(/\/$/,""):window.location.origin}function u(){let e=function(){if(l)return l;try{var e;return(null===(e=localStorage.getItem("devflow-api-key"))||void 0===e?void 0:e.trim())||null}catch(e){return null}}();return e?{"x-api-key":e}:{}}},2389:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(7653);let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),c=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&n.indexOf(e)===t).join(" ")};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,o.forwardRef)((e,t)=>{let{color:n="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:i="",children:d,iconNode:u,...m}=e;return(0,o.createElement)("svg",{ref:t,...s,width:r,height:r,stroke:n,strokeWidth:l?24*Number(a)/Number(r):a,className:c("lucide",i),...m},[...u.map(e=>{let[t,n]=e;return(0,o.createElement)(t,n)}),...Array.isArray(d)?d:[d]])}),l=(e,t)=>{let n=(0,o.forwardRef)((n,s)=>{let{className:l,...i}=n;return(0,o.createElement)(a,{ref:s,iconNode:t,className:c("lucide-".concat(r(e)),l),...i})});return n.displayName="".concat(e),n}},39790:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});let o=(0,n(2389).Z)("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},53512:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});let o=(0,n(2389).Z)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},25555:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});let o=(0,n(2389).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},90743:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});let o=(0,n(2389).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])}},function(e){e.O(0,[736,806,293,528,744],function(){return e(e.s=90239)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[872],{84367:function(e,t,n){Promise.resolve().then(n.bind(n,42302))},50466:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(27573),a=n(7653),s=n(29147);let l=(0,n(49289).j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=a.forwardRef((e,t)=>{let{className:n,variant:a,size:o,...i}=e;return(0,r.jsx)("button",{className:(0,s.cn)(l({variant:a,size:o,className:n})),ref:t,...i})});o.displayName="Button"},72196:function(e,t,n){"use strict";n.d(t,{Ol:function(){return o},Zb:function(){return l},aY:function(){return d},ll:function(){return i}});var r=n(27573),a=n(7653),s=n(29147);let l=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("rounded-lg border border-border bg-card text-card-foreground",n),...a})});l.displayName="Card";let o=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-4",n),...a})});o.displayName="CardHeader";let i=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)("h3",{ref:t,className:(0,s.cn)("text-sm font-semibold leading-none tracking-tight",n),...a})});i.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("p-4 pt-0",n),...a})});d.displayName="CardContent"},29324:function(e,t,n){"use strict";n.d(t,{$N:function(){return c},Vq:function(){return s},cZ:function(){return i},fK:function(){return d}});var r=n(27573);n(7653);var a=n(57431);let s=a.fC;a.xz;let l=a.h_;function o(e){let{className:t,...n}=e;return(0,r.jsx)(a.aV,{className:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 ".concat(null!=t?t:""),...n})}function i(e){let{className:t,children:n,...s}=e;return(0,r.jsxs)(l,{children:[(0,r.jsx)(o,{}),(0,r.jsx)(a.VY,{className:"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg ".concat(null!=t?t:""),...s,children:n})]})}function d(e){let{className:t,...n}=e;return(0,r.jsx)("div",{className:"flex flex-col space-y-1.5 text-center sm:text-left ".concat(null!=t?t:""),...n})}function c(e){let{className:t,...n}=e;return(0,r.jsx)(a.Dx,{className:"text-lg font-semibold leading-none tracking-tight ".concat(null!=t?t:""),...n})}a.x8},39134:function(e,t,n){"use strict";n.d(t,{I:function(){return l}});var r=n(27573),a=n(7653),s=n(29147);let l=a.forwardRef((e,t)=>{let{className:n,type:a,...l}=e;return(0,r.jsx)("input",{type:a,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:t,...l})});l.displayName="Input"},42302:function(e,t,n){"use strict";n.d(t,{MemoryPanel:function(){return v}});var r=n(27573),a=n(7653),s=n(6315),l=n(10997),o=n(57429),i=n(72196),d=n(50466),c=n(39134),u=n(3806),m=n(33127),f=n(29324);let x=["semantic","procedural","episodic","failure_lesson"];function p(e){var t,n,s;let{open:l,onOpenChange:i,mode:c,defaultValues:m}=e,{t:p}=(0,u.$G)(),h=(0,o.KA)(),v=(0,o.Af)(),[g,y]=(0,a.useState)(null!==(t=null==m?void 0:m.category)&&void 0!==t?t:"semantic"),[j,b]=(0,a.useState)(null!==(n=null==m?void 0:m.content)&&void 0!==n?n:""),[N,w]=(0,a.useState)(null!==(s=null==m?void 0:m.scope)&&void 0!==s?s:"");(0,a.useEffect)(()=>{if(l){var e,t,n;y(null!==(e=null==m?void 0:m.category)&&void 0!==e?e:"semantic"),b(null!==(t=null==m?void 0:m.content)&&void 0!==t?t:""),w(null!==(n=null==m?void 0:m.scope)&&void 0!==n?n:"")}},[l,m]);let C=e=>{let t="memory.category.".concat(e),n=p(t);return n===t?e:n};return(0,r.jsx)(f.Vq,{open:l,onOpenChange:i,children:(0,r.jsxs)(f.cZ,{children:[(0,r.jsx)(f.fK,{children:(0,r.jsx)(f.$N,{children:"add"===c?p("memory.addMemory"):p("memory.editMemory")})}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-sm font-medium",children:p("memory.categoryLabel")}),(0,r.jsx)("select",{className:"w-full mt-1 rounded-md border bg-background px-3 py-2 text-sm",value:g,onChange:e=>y(e.target.value),children:x.map(e=>(0,r.jsx)("option",{value:e,children:C(e)},e))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-sm font-medium",children:p("memory.content")}),(0,r.jsx)("textarea",{className:"w-full mt-1 rounded-md border bg-background px-3 py-2 text-sm min-h-[100px]",value:j,onChange:e=>b(e.target.value)})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-sm font-medium",children:p("memory.scope")}),(0,r.jsx)("input",{className:"w-full mt-1 rounded-md border bg-background px-3 py-2 text-sm",value:N,onChange:e=>w(e.target.value)})]}),(0,r.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,r.jsx)(d.z,{variant:"outline",onClick:()=>i(!1),children:p("memory.cancel")}),(0,r.jsx)(d.z,{onClick:()=>{j.trim()&&("add"===c?h.mutate({category:g,content:j.trim(),scope:N.trim()||void 0}):(null==m?void 0:m.id)&&v.mutate({id:m.id,updates:{category:g,content:j.trim(),scope:N.trim()||void 0}}),i(!1))},disabled:!j.trim(),children:p("memory.save")})]})]})]})})}let h=["all","failure_lesson","semantic","procedural","episodic"];function v(){var e,t,n,f,x;(0,m.z)("memory",[["memory"],["memory-candidates"]]);let{t:v}=(0,u.$G)(),{data:g}=(0,o.nq)(),y=(0,o.C)(),j=(0,o.mp)(),b=(0,o.S0)(),N=function(){let{t:e}=(0,u.$G)();return t=>{let n="memory.category.".concat(t),r=e(n);return r===n?t:r}}(),[w,C]=(0,a.useState)(""),{data:k}=(0,o.on)(w),[z,_]=(0,a.useState)(!1),[S,O]=(0,a.useState)(),[M,E]=(0,a.useState)("all"),R=null!==(n=null==g?void 0:null===(e=g.memories)||void 0===e?void 0:e.filter(e=>"approved"===e.status))&&void 0!==n?n:[],A=null!==(f=null==g?void 0:null===(t=g.memories)||void 0===t?void 0:t.filter(e=>"pending"===e.status))&&void 0!==f?f:[],I="all"===M?R:R.filter(e=>e.category===M),V="all"===M?A:A.filter(e=>e.category===M),Z=(0,a.useMemo)(()=>{let e=new Map;for(let n of V){var t;let r=null!==(t=e.get(n.category))&&void 0!==t?t:[];r.push(n),e.set(n.category,r)}return[...e.entries()].sort((e,t)=>{let[n]=e,[r]=t;return"failure_lesson"===n?-1:"failure_lesson"===r?1:n.localeCompare(r)})},[V]),L=w&&k?k:I,P=e=>{var t;O({id:e.id,category:e.category,content:e.content,scope:null!==(t=e.scope)&&void 0!==t?t:""}),_(!0)},T=e=>{window.confirm(v("memory.deleteConfirm"))&&b.mutate(e.id)};return g?(0,r.jsxs)("div",{className:"p-6 space-y-4 h-full overflow-y-auto",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold",children:v("memory.title")}),(0,r.jsxs)(d.z,{size:"sm",onClick:()=>{O(void 0),_(!0)},children:["+ ",v("memory.addMemory")]})]}),(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)(c.I,{placeholder:v("memory.searchPlaceholder"),value:w,onChange:e=>C(e.target.value)})}),!w&&(0,r.jsx)("div",{className:"flex gap-2 flex-wrap",children:h.map(e=>(0,r.jsx)(d.z,{variant:M===e?"default":"outline",size:"sm",onClick:()=>E(e),children:"all"===e?v("memory.allCategories","All"):N(e)},e))}),!w&&V.length>0&&(0,r.jsxs)(i.Zb,{children:[(0,r.jsx)(i.Ol,{children:(0,r.jsxs)(i.ll,{children:[v("memory.pendingApproval")," (",V.length,")"]})}),(0,r.jsx)(i.aY,{children:(0,r.jsx)("div",{className:"space-y-4",children:Z.map(e=>{let[t,n]=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:N(t)}),(0,r.jsx)("div",{className:"space-y-2",children:n.map(e=>(0,r.jsxs)("div",{className:"flex items-start justify-between p-2 rounded bg-secondary/50",children:[(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"text-sm font-medium truncate",children:e.content}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:[v("memory.confidence"),": ",e.confidence]})]}),(0,r.jsxs)("div",{className:"flex gap-1 ml-2",children:[(0,r.jsx)(d.z,{size:"sm",variant:"outline",onClick:()=>y.mutate(e.id),children:v("memory.approve")}),(0,r.jsx)(d.z,{size:"sm",variant:"ghost",onClick:()=>j.mutate(e.id),children:v("memory.reject")})]})]},e.id))})]},t)})})})]}),(0,r.jsxs)(i.Zb,{children:[(0,r.jsx)(i.Ol,{children:(0,r.jsx)(i.ll,{children:w?"".concat(null!==(x=null==k?void 0:k.length)&&void 0!==x?x:0," results"):"".concat(v("memory.approvedMemories")," (").concat(I.length,")")})}),(0,r.jsx)(i.aY,{children:0===L.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-8 border border-dashed border-border rounded-lg text-center",children:[(0,r.jsx)("p",{className:"text-muted-foreground text-sm font-medium",children:v("memory.noMemories")}),(0,r.jsx)("p",{className:"text-muted-foreground text-xs mt-1",children:v("memory.noMemoriesHint")})]}):(0,r.jsx)("div",{className:"space-y-2",children:L.map(e=>(0,r.jsxs)("div",{className:"p-2 rounded bg-secondary/50 text-sm",children:[(0,r.jsxs)("div",{className:"flex justify-between items-start",children:[(0,r.jsx)("span",{className:"flex-1",children:e.content}),(0,r.jsxs)("div",{className:"flex items-center gap-1 ml-2",children:[(0,r.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:N(e.category)}),(0,r.jsx)(d.z,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:()=>P(e),title:v("memory.editMemory"),children:(0,r.jsx)(s.Z,{className:"h-3.5 w-3.5"})}),(0,r.jsx)(d.z,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 text-destructive",onClick:()=>T(e),title:v("memory.deleteMemory"),children:(0,r.jsx)(l.Z,{className:"h-3.5 w-3.5"})})]})]}),e.originalText&&(0,r.jsxs)("p",{className:"text-xs text-muted-foreground mt-1",children:[v("memory.original"),": ",e.originalText]})]},e.id))})})]}),(0,r.jsx)(p,{open:z,onOpenChange:_,mode:S?"edit":"add",defaultValues:S})]}):(0,r.jsx)("div",{className:"p-6 text-muted-foreground",children:v("memory.loading")})}},33127:function(e,t,n){"use strict";n.d(t,{D:function(){return d},z:function(){return c}});var r,a=n(7653),s=n(77930),l=n(50794);let o=null!==(r=n(49767).env.NEXT_PUBLIC_DEVFLOW_API_URL)&&void 0!==r?r:"http://localhost:13337";async function i(e,t,n){let r=await fetch("".concat(o,"/api").concat(e),{headers:(0,l.O)(),signal:t});if(!r.ok||!r.body)throw Error("SSE ".concat(r.status));let a=r.body.getReader(),s=new TextDecoder,i="";for(;!t.aborted;){var d;let{value:e,done:t}=await a.read();if(t)break;let r=(i+=s.decode(e,{stream:!0})).split("\n\n");for(let e of(i=null!==(d=r.pop())&&void 0!==d?d:"",r)){let t="message",r=[];for(let n of e.split("\n"))n.startsWith("event:")&&(t=n.slice(6).trim()),n.startsWith("data:")&&r.push(n.slice(5).trim());if(0!==r.length)try{n({type:t,data:JSON.parse(r.join("\n"))})}catch(e){}}}}function d(e){let[t,n]=(0,a.useState)([]);return(0,a.useEffect)(()=>{if(!e)return;let t=new AbortController;return i("/workflows/runs/".concat(encodeURIComponent(e),"/stream"),t.signal,e=>n(t=>[...t,e])).catch(()=>void 0),()=>t.abort()},[e]),{events:t,clear:(0,a.useCallback)(()=>n([]),[])}}function c(e,t){let n=(0,s.NL)(),r=JSON.stringify(t);(0,a.useEffect)(()=>{let t=new AbortController,a=JSON.parse(r);return i("/live/stream?channels=".concat(encodeURIComponent(e)),t.signal,t=>{if("refresh"===t.type&&t.data.channel===e)for(let e of a)n.invalidateQueries({queryKey:e})}).catch(()=>void 0),()=>t.abort()},[e,n,r])}},29147:function(e,t,n){"use strict";n.d(t,{cn:function(){return s}});var r=n(10607),a=n(25579);function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.m6)((0,r.W)(t))}}},function(e){e.O(0,[736,806,697,402,568,429,293,528,744],function(){return e(e.s=84367)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[872],{84367:function(e,t,n){Promise.resolve().then(n.bind(n,42302))},50466:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(27573),a=n(7653),s=n(29147);let l=(0,n(49289).j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=a.forwardRef((e,t)=>{let{className:n,variant:a,size:o,...i}=e;return(0,r.jsx)("button",{className:(0,s.cn)(l({variant:a,size:o,className:n})),ref:t,...i})});o.displayName="Button"},72196:function(e,t,n){"use strict";n.d(t,{Ol:function(){return o},Zb:function(){return l},aY:function(){return d},ll:function(){return i}});var r=n(27573),a=n(7653),s=n(29147);let l=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("rounded-lg border border-border bg-card text-card-foreground",n),...a})});l.displayName="Card";let o=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-4",n),...a})});o.displayName="CardHeader";let i=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)("h3",{ref:t,className:(0,s.cn)("text-sm font-semibold leading-none tracking-tight",n),...a})});i.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("p-4 pt-0",n),...a})});d.displayName="CardContent"},29324:function(e,t,n){"use strict";n.d(t,{$N:function(){return c},Vq:function(){return s},cZ:function(){return i},fK:function(){return d}});var r=n(27573);n(7653);var a=n(57431);let s=a.fC;a.xz;let l=a.h_;function o(e){let{className:t,...n}=e;return(0,r.jsx)(a.aV,{className:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 ".concat(null!=t?t:""),...n})}function i(e){let{className:t,children:n,...s}=e;return(0,r.jsxs)(l,{children:[(0,r.jsx)(o,{}),(0,r.jsx)(a.VY,{className:"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg ".concat(null!=t?t:""),...s,children:n})]})}function d(e){let{className:t,...n}=e;return(0,r.jsx)("div",{className:"flex flex-col space-y-1.5 text-center sm:text-left ".concat(null!=t?t:""),...n})}function c(e){let{className:t,...n}=e;return(0,r.jsx)(a.Dx,{className:"text-lg font-semibold leading-none tracking-tight ".concat(null!=t?t:""),...n})}a.x8},39134:function(e,t,n){"use strict";n.d(t,{I:function(){return l}});var r=n(27573),a=n(7653),s=n(29147);let l=a.forwardRef((e,t)=>{let{className:n,type:a,...l}=e;return(0,r.jsx)("input",{type:a,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:t,...l})});l.displayName="Input"},42302:function(e,t,n){"use strict";n.d(t,{MemoryPanel:function(){return v}});var r=n(27573),a=n(7653),s=n(6315),l=n(10997),o=n(57429),i=n(72196),d=n(50466),c=n(39134),u=n(3806),m=n(33127),f=n(29324);let x=["semantic","procedural","episodic","failure_lesson"];function p(e){var t,n,s;let{open:l,onOpenChange:i,mode:c,defaultValues:m}=e,{t:p}=(0,u.$G)(),h=(0,o.KA)(),v=(0,o.Af)(),[g,y]=(0,a.useState)(null!==(t=null==m?void 0:m.category)&&void 0!==t?t:"semantic"),[j,b]=(0,a.useState)(null!==(n=null==m?void 0:m.content)&&void 0!==n?n:""),[N,w]=(0,a.useState)(null!==(s=null==m?void 0:m.scope)&&void 0!==s?s:"");(0,a.useEffect)(()=>{if(l){var e,t,n;y(null!==(e=null==m?void 0:m.category)&&void 0!==e?e:"semantic"),b(null!==(t=null==m?void 0:m.content)&&void 0!==t?t:""),w(null!==(n=null==m?void 0:m.scope)&&void 0!==n?n:"")}},[l,m]);let C=e=>{let t="memory.category.".concat(e),n=p(t);return n===t?e:n};return(0,r.jsx)(f.Vq,{open:l,onOpenChange:i,children:(0,r.jsxs)(f.cZ,{children:[(0,r.jsx)(f.fK,{children:(0,r.jsx)(f.$N,{children:"add"===c?p("memory.addMemory"):p("memory.editMemory")})}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-sm font-medium",children:p("memory.categoryLabel")}),(0,r.jsx)("select",{className:"w-full mt-1 rounded-md border bg-background px-3 py-2 text-sm",value:g,onChange:e=>y(e.target.value),children:x.map(e=>(0,r.jsx)("option",{value:e,children:C(e)},e))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-sm font-medium",children:p("memory.content")}),(0,r.jsx)("textarea",{className:"w-full mt-1 rounded-md border bg-background px-3 py-2 text-sm min-h-[100px]",value:j,onChange:e=>b(e.target.value)})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-sm font-medium",children:p("memory.scope")}),(0,r.jsx)("input",{className:"w-full mt-1 rounded-md border bg-background px-3 py-2 text-sm",value:N,onChange:e=>w(e.target.value)})]}),(0,r.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,r.jsx)(d.z,{variant:"outline",onClick:()=>i(!1),children:p("memory.cancel")}),(0,r.jsx)(d.z,{onClick:()=>{j.trim()&&("add"===c?h.mutate({category:g,content:j.trim(),scope:N.trim()||void 0}):(null==m?void 0:m.id)&&v.mutate({id:m.id,updates:{category:g,content:j.trim(),scope:N.trim()||void 0}}),i(!1))},disabled:!j.trim(),children:p("memory.save")})]})]})]})})}let h=["all","failure_lesson","semantic","procedural","episodic"];function v(){var e,t,n,f,x;(0,m.z)("memory",[["memory"],["memory-candidates"]]);let{t:v}=(0,u.$G)(),{data:g}=(0,o.nq)(),y=(0,o.C)(),j=(0,o.mp)(),b=(0,o.S0)(),N=function(){let{t:e}=(0,u.$G)();return t=>{let n="memory.category.".concat(t),r=e(n);return r===n?t:r}}(),[w,C]=(0,a.useState)(""),{data:k}=(0,o.on)(w),[z,S]=(0,a.useState)(!1),[M,O]=(0,a.useState)(),[_,R]=(0,a.useState)("all"),E=null!==(n=null==g?void 0:null===(e=g.memories)||void 0===e?void 0:e.filter(e=>"approved"===e.status))&&void 0!==n?n:[],A=null!==(f=null==g?void 0:null===(t=g.memories)||void 0===t?void 0:t.filter(e=>"pending"===e.status))&&void 0!==f?f:[],Z="all"===_?E:E.filter(e=>e.category===_),V="all"===_?A:A.filter(e=>e.category===_),I=(0,a.useMemo)(()=>{let e=new Map;for(let n of V){var t;let r=null!==(t=e.get(n.category))&&void 0!==t?t:[];r.push(n),e.set(n.category,r)}return[...e.entries()].sort((e,t)=>{let[n]=e,[r]=t;return"failure_lesson"===n?-1:"failure_lesson"===r?1:n.localeCompare(r)})},[V]),$=w&&k?k:Z,T=e=>{var t;O({id:e.id,category:e.category,content:e.content,scope:null!==(t=e.scope)&&void 0!==t?t:""}),S(!0)},Y=e=>{window.confirm(v("memory.deleteConfirm"))&&b.mutate(e.id)};return g?(0,r.jsxs)("div",{className:"p-6 space-y-4 h-full overflow-y-auto",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold",children:v("memory.title")}),(0,r.jsxs)(d.z,{size:"sm",onClick:()=>{O(void 0),S(!0)},children:["+ ",v("memory.addMemory")]})]}),(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)(c.I,{placeholder:v("memory.searchPlaceholder"),value:w,onChange:e=>C(e.target.value)})}),!w&&(0,r.jsx)("div",{className:"flex gap-2 flex-wrap",children:h.map(e=>(0,r.jsx)(d.z,{variant:_===e?"default":"outline",size:"sm",onClick:()=>R(e),children:"all"===e?v("memory.allCategories","All"):N(e)},e))}),!w&&V.length>0&&(0,r.jsxs)(i.Zb,{children:[(0,r.jsx)(i.Ol,{children:(0,r.jsxs)(i.ll,{children:[v("memory.pendingApproval")," (",V.length,")"]})}),(0,r.jsx)(i.aY,{children:(0,r.jsx)("div",{className:"space-y-4",children:I.map(e=>{let[t,n]=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:N(t)}),(0,r.jsx)("div",{className:"space-y-2",children:n.map(e=>(0,r.jsxs)("div",{className:"flex items-start justify-between p-2 rounded bg-secondary/50",children:[(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"text-sm font-medium truncate",children:e.content}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:[v("memory.confidence"),": ",e.confidence]})]}),(0,r.jsxs)("div",{className:"flex gap-1 ml-2",children:[(0,r.jsx)(d.z,{size:"sm",variant:"outline",onClick:()=>y.mutate(e.id),children:v("memory.approve")}),(0,r.jsx)(d.z,{size:"sm",variant:"ghost",onClick:()=>j.mutate(e.id),children:v("memory.reject")})]})]},e.id))})]},t)})})})]}),(0,r.jsxs)(i.Zb,{children:[(0,r.jsx)(i.Ol,{children:(0,r.jsx)(i.ll,{children:w?"".concat(null!==(x=null==k?void 0:k.length)&&void 0!==x?x:0," results"):"".concat(v("memory.approvedMemories")," (").concat(Z.length,")")})}),(0,r.jsx)(i.aY,{children:0===$.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-8 border border-dashed border-border rounded-lg text-center",children:[(0,r.jsx)("p",{className:"text-muted-foreground text-sm font-medium",children:v("memory.noMemories")}),(0,r.jsx)("p",{className:"text-muted-foreground text-xs mt-1",children:v("memory.noMemoriesHint")})]}):(0,r.jsx)("div",{className:"space-y-2",children:$.map(e=>(0,r.jsxs)("div",{className:"p-2 rounded bg-secondary/50 text-sm",children:[(0,r.jsxs)("div",{className:"flex justify-between items-start",children:[(0,r.jsx)("span",{className:"flex-1",children:e.content}),(0,r.jsxs)("div",{className:"flex items-center gap-1 ml-2",children:[(0,r.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:N(e.category)}),(0,r.jsx)(d.z,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:()=>T(e),title:v("memory.editMemory"),children:(0,r.jsx)(s.Z,{className:"h-3.5 w-3.5"})}),(0,r.jsx)(d.z,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 text-destructive",onClick:()=>Y(e),title:v("memory.deleteMemory"),children:(0,r.jsx)(l.Z,{className:"h-3.5 w-3.5"})})]})]}),e.originalText&&(0,r.jsxs)("p",{className:"text-xs text-muted-foreground mt-1",children:[v("memory.original"),": ",e.originalText]})]},e.id))})})]}),(0,r.jsx)(p,{open:z,onOpenChange:S,mode:M?"edit":"add",defaultValues:M})]}):(0,r.jsx)("div",{className:"p-6 text-muted-foreground",children:v("memory.loading")})}},33127:function(e,t,n){"use strict";n.d(t,{D:function(){return o},z:function(){return i}});var r=n(7653),a=n(77930),s=n(50794);async function l(e,t,n){let r=await fetch("".concat((0,s.aH)(),"/api").concat(e),{headers:(0,s.OM)(),credentials:"same-origin",signal:t});if(!r.ok||!r.body)throw Error("SSE ".concat(r.status));let a=r.body.getReader(),l=new TextDecoder,o="";for(;!t.aborted;){var i;let{value:e,done:t}=await a.read();if(t)break;let r=(o+=l.decode(e,{stream:!0})).split("\n\n");for(let e of(o=null!==(i=r.pop())&&void 0!==i?i:"",r)){let t="message",r=[];for(let n of e.split("\n"))n.startsWith("event:")&&(t=n.slice(6).trim()),n.startsWith("data:")&&r.push(n.slice(5).trim());if(0!==r.length)try{n({type:t,data:JSON.parse(r.join("\n"))})}catch(e){}}}}function o(e){let[t,n]=(0,r.useState)([]);return(0,r.useEffect)(()=>{if(!e)return;let t=new AbortController;return l("/workflows/runs/".concat(encodeURIComponent(e),"/stream"),t.signal,e=>n(t=>[...t,e])).catch(()=>void 0),()=>t.abort()},[e]),{events:t,clear:(0,r.useCallback)(()=>n([]),[])}}function i(e,t){let n=(0,a.NL)(),s=JSON.stringify(t);(0,r.useEffect)(()=>{let t=new AbortController,r=JSON.parse(s);return l("/live/stream?channels=".concat(encodeURIComponent(e)),t.signal,t=>{if("refresh"===t.type&&t.data.channel===e)for(let e of r)n.invalidateQueries({queryKey:e})}).catch(()=>void 0),()=>t.abort()},[e,n,s])}},29147:function(e,t,n){"use strict";n.d(t,{cn:function(){return s}});var r=n(10607),a=n(25579);function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.m6)((0,r.W)(t))}}},function(e){e.O(0,[736,806,697,402,568,429,293,528,744],function(){return e(e.s=84367)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[571],{68533:function(t,e,s){Promise.resolve().then(s.bind(s,96098))},96098:function(t,e,s){"use strict";s.d(e,{TimelineView:function(){return d}});var i=s(27573),r=s(7653),n=s(57429);let a={cli:"#3b82f6",mcp:"#22c55e",dashboard:"#a855f7"};function o(t){let{runs:e,date:s}=t,r=new Date(s+"T00:00:00Z").getTime(),n=Math.max(28*e.length+40,120),o=[0,4,8,12,16,20,24].map(t=>({hour:t,x:40+t/24*720,label:"".concat(String(t).padStart(2,"0"),":00")}));return(0,i.jsx)("div",{className:"overflow-x-auto",children:(0,i.jsxs)("svg",{viewBox:"0 0 ".concat(800," ").concat(n),className:"w-full",children:[o.map(t=>(0,i.jsxs)("g",{children:[(0,i.jsx)("line",{x1:t.x,y1:0,x2:t.x,y2:n,stroke:"#e5e7eb",strokeWidth:.5}),(0,i.jsx)("text",{x:t.x,y:12,textAnchor:"middle",fontSize:"9",fill:"#9ca3af",children:t.label})]},t.hour)),e.map((t,e)=>{var s;let n=40+(t.startedAt-r)/864e5*720,o=Math.max(40,40*(t.totalToolCalls||1)),c=40+28*e,u=null!==(s=a[t.source])&&void 0!==s?s:"#6b7280",l="completed"===t.status?.9:"failed"===t.status?.6:.4;return(0,i.jsxs)("g",{children:[(0,i.jsx)("rect",{x:n,y:c,width:o,height:20,rx:3,fill:u,opacity:l}),(0,i.jsx)("text",{x:n+o+4,y:c+13,fontSize:"10",fill:"#6b7280",children:new Date(t.startedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}),o>60&&(0,i.jsxs)("text",{x:n+4,y:c+13,fontSize:"9",fill:"white",fontWeight:"500",children:[t.agent," \xb7 ",t.source]})]},t.id)})]})})}var c=s(58410),u=s(2966),l=s(3806),h=s(33127);function d(){(0,h.z)("timeline",[["telemetry-runs"],["telemetry-stats"]]);let{t}=(0,l.$G)(),e=new Date().toISOString().slice(0,10),[s,a]=(0,r.useState)(e),{data:d}=(0,n.Vc)(100,0),{data:m}=(0,n.bz)(1),f=new Date(s+"T00:00:00Z").getTime(),p=f+864e5,x=(null!=d?d:[]).filter(t=>t.startedAt>=f&&t.startedAt<p).slice(0,100),v=t=>{let e=new Date(s+"T00:00:00Z");e.setDate(e.getDate()+t),a(e.toISOString().slice(0,10))};return(0,i.jsxs)("div",{className:"p-6 space-y-4 h-full overflow-y-auto",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)("h2",{className:"text-2xl font-bold",children:t("timeline.title")}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("button",{onClick:()=>v(-1),className:"p-1 rounded hover:bg-accent",children:(0,i.jsx)(c.Z,{className:"h-4 w-4"})}),(0,i.jsx)("span",{className:"text-sm font-medium",children:s}),(0,i.jsx)("button",{onClick:()=>v(1),className:"p-1 rounded hover:bg-accent",children:(0,i.jsx)(u.Z,{className:"h-4 w-4"})})]})]}),(0,i.jsx)(o,{runs:x,date:s}),m&&(0,i.jsxs)("div",{className:"grid grid-cols-3 gap-3 text-sm",children:[(0,i.jsxs)("div",{className:"bg-secondary rounded-lg p-3",children:[(0,i.jsx)("div",{className:"text-muted-foreground text-xs",children:t("timeline.runs")}),(0,i.jsxs)("div",{className:"font-bold text-lg",children:[m.summary.completedRuns," ",t("timeline.completed")," / ",m.summary.failedRuns," ",t("timeline.failed")]})]}),(0,i.jsxs)("div",{className:"bg-secondary rounded-lg p-3",children:[(0,i.jsx)("div",{className:"text-muted-foreground text-xs",children:t("timeline.toolUses")}),(0,i.jsx)("div",{className:"font-bold text-lg",children:m.summary.totalToolUses})]}),(0,i.jsxs)("div",{className:"bg-secondary rounded-lg p-3",children:[(0,i.jsx)("div",{className:"text-muted-foreground text-xs",children:t("timeline.avgDuration")}),(0,i.jsxs)("div",{className:"font-bold text-lg",children:[(m.summary.avgRunDuration/1e3).toFixed(1),"s"]})]})]})]})}},33127:function(t,e,s){"use strict";s.d(e,{D:function(){return o},z:function(){return c}});var i=s(7653),r=s(77930),n=s(50794);async function a(t,e,s){let i=await fetch("".concat((0,n.aH)(),"/api").concat(t),{headers:(0,n.OM)(),credentials:"same-origin",signal:e});if(!i.ok||!i.body)throw Error("SSE ".concat(i.status));let r=i.body.getReader(),a=new TextDecoder,o="";for(;!e.aborted;){var c;let{value:t,done:e}=await r.read();if(e)break;let i=(o+=a.decode(t,{stream:!0})).split("\n\n");for(let t of(o=null!==(c=i.pop())&&void 0!==c?c:"",i)){let e="message",i=[];for(let s of t.split("\n"))s.startsWith("event:")&&(e=s.slice(6).trim()),s.startsWith("data:")&&i.push(s.slice(5).trim());if(0!==i.length)try{s({type:e,data:JSON.parse(i.join("\n"))})}catch(t){}}}}function o(t){let[e,s]=(0,i.useState)([]);return(0,i.useEffect)(()=>{if(!t)return;let e=new AbortController;return a("/workflows/runs/".concat(encodeURIComponent(t),"/stream"),e.signal,t=>s(e=>[...e,t])).catch(()=>void 0),()=>e.abort()},[t]),{events:e,clear:(0,i.useCallback)(()=>s([]),[])}}function c(t,e){let s=(0,r.NL)(),n=JSON.stringify(e);(0,i.useEffect)(()=>{let e=new AbortController,i=JSON.parse(n);return a("/live/stream?channels=".concat(encodeURIComponent(t)),e.signal,e=>{if("refresh"===e.type&&e.data.channel===t)for(let t of i)s.invalidateQueries({queryKey:t})}).catch(()=>void 0),()=>e.abort()},[t,s,n])}},2389:function(t,e,s){"use strict";s.d(e,{Z:function(){return c}});var i=s(7653);let r=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var t=arguments.length,e=Array(t),s=0;s<t;s++)e[s]=arguments[s];return e.filter((t,e,s)=>!!t&&s.indexOf(t)===e).join(" ")};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,i.forwardRef)((t,e)=>{let{color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:c,className:u="",children:l,iconNode:h,...d}=t;return(0,i.createElement)("svg",{ref:e,...a,width:r,height:r,stroke:s,strokeWidth:c?24*Number(o)/Number(r):o,className:n("lucide",u),...d},[...h.map(t=>{let[e,s]=t;return(0,i.createElement)(e,s)}),...Array.isArray(l)?l:[l]])}),c=(t,e)=>{let s=(0,i.forwardRef)((s,a)=>{let{className:c,...u}=s;return(0,i.createElement)(o,{ref:a,iconNode:e,className:n("lucide-".concat(r(t)),c),...u})});return s.displayName="".concat(t),s}},58410:function(t,e,s){"use strict";s.d(e,{Z:function(){return i}});let i=(0,s(2389).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},2966:function(t,e,s){"use strict";s.d(e,{Z:function(){return i}});let i=(0,s(2389).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},64855:function(t,e,s){"use strict";s.d(e,{R:function(){return o},m:function(){return a}});var i=s(2906),r=s(5531),n=s(11135),a=class extends r.F{#t;#e;#s;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#e=[],this.state=t.state||o(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#r({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=(0,n.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#r({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#r({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});let i="pending"===this.state.status,r=!this.#i.canStart();try{if(i)e();else{this.#r({type:"pending",variables:t,isPaused:r}),this.#s.config.onMutate&&await this.#s.config.onMutate(t,this,s);let e=await this.options.onMutate?.(t,s);e!==this.state.context&&this.#r({type:"pending",context:e,variables:t,isPaused:r})}let n=await this.#i.start();return await this.#s.config.onSuccess?.(n,t,this.state.context,this,s),await this.options.onSuccess?.(n,t,this.state.context,s),await this.#s.config.onSettled?.(n,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(n,null,t,this.state.context,s),this.#r({type:"success",data:n}),n}catch(e){try{await this.#s.config.onError?.(e,t,this.state.context,this,s)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,s)}catch(t){Promise.reject(t)}try{await this.#s.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,s)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,s)}catch(t){Promise.reject(t)}throw this.#r({type:"error",error:e}),e}finally{this.#s.runNext(this)}}#r(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),i.Vr.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#s.notify({mutation:this,type:"updated",action:t})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},15969:function(t,e,s){"use strict";s.d(e,{D:function(){return l}});var i=s(7653),r=s(64855),n=s(2906),a=s(24559),o=s(50803),c=class extends a.l{#t;#n=void 0;#a;#o;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#c()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,o.VS)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,o.Ym)(e.mutationKey)!==(0,o.Ym)(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(t){this.#c(),this.#u(t)}getCurrentResult(){return this.#n}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#c(),this.#u()}mutate(t,e){return this.#o=e,this.#a?.removeObserver(this),this.#a=this.#t.getMutationCache().build(this.#t,this.options),this.#a.addObserver(this),this.#a.execute(t)}#c(){let t=this.#a?.state??(0,r.R)();this.#n={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#u(t){n.Vr.batch(()=>{if(this.#o&&this.hasListeners()){let e=this.#n.variables,s=this.#n.context,i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#o.onSuccess?.(t.data,e,s,i)}catch(t){Promise.reject(t)}try{this.#o.onSettled?.(t.data,null,e,s,i)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#o.onError?.(t.error,e,s,i)}catch(t){Promise.reject(t)}try{this.#o.onSettled?.(void 0,t.error,e,s,i)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#n)})})}},u=s(77930);function l(t,e){let s=(0,u.NL)(e),[r]=i.useState(()=>new c(s,t));i.useEffect(()=>{r.setOptions(t)},[r,t]);let a=i.useSyncExternalStore(i.useCallback(t=>r.subscribe(n.Vr.batchCalls(t)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=i.useCallback((t,e)=>{r.mutate(t,e).catch(o.ZT)},[r]);if(a.error&&(0,o.L3)(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}}},function(t){t.O(0,[736,806,429,293,528,744],function(){return t(t.s=68533)}),_N_E=t.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[802],{12282:function(e,t,r){Promise.resolve().then(r.bind(r,28392))},38941:function(e,t,r){"use strict";r.d(t,{C:function(){return l}});var s=r(27573);r(7653);var n=r(29147);let a=(0,r(49289).j)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l(e){let{className:t,variant:r,...l}=e;return(0,s.jsx)("div",{className:(0,n.cn)(a({variant:r}),t),...l})}},72196:function(e,t,r){"use strict";r.d(t,{Ol:function(){return o},Zb:function(){return l},aY:function(){return i},ll:function(){return c}});var s=r(27573),n=r(7653),a=r(29147);let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("rounded-lg border border-border bg-card text-card-foreground",r),...n})});l.displayName="Card";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-4",r),...n})});o.displayName="CardHeader";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("h3",{ref:t,className:(0,a.cn)("text-sm font-semibold leading-none tracking-tight",r),...n})});c.displayName="CardTitle";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("p-4 pt-0",r),...n})});i.displayName="CardContent"},28392:function(e,t,r){"use strict";r.d(t,{ToolMetricsView:function(){return i}});var s=r(27573),n=r(7653),a=r(72196),l=r(38941),o=r(57429),c=r(33127);function i(){(0,c.z)("tool-metrics",[["tool-metrics-summary"]]);let[e,t]=(0,n.useState)(7),{data:r=[],isLoading:i}=(0,o.Re)(e);return i?(0,s.jsx)("div",{className:"p-4 text-muted-foreground",children:"Loading tool metrics..."}):(0,s.jsxs)("div",{className:"p-6 space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold",children:"Tool Metrics"}),(0,s.jsxs)("select",{value:e,onChange:e=>t(Number(e.target.value)),className:"border rounded px-2 py-1 text-sm bg-background",children:[(0,s.jsx)("option",{value:1,children:"Last 24h"}),(0,s.jsx)("option",{value:7,children:"Last 7 days"}),(0,s.jsx)("option",{value:30,children:"Last 30 days"})]})]}),0===r.length?(0,s.jsx)("p",{className:"text-muted-foreground text-sm",children:"No tool metrics yet. Start a Claude Code session to collect data."}):(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:r.map(e=>(0,s.jsxs)(a.Zb,{className:"p-4 space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("h3",{className:"font-mono text-sm font-medium",children:e.toolName}),(0,s.jsxs)(l.C,{variant:e.callCount>10?"default":"secondary",children:[e.callCount," calls"]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Success"}),(0,s.jsxs)("p",{className:"font-semibold",style:{color:e.successRate>=90?"#22c55e":e.successRate>=70?"#f59e0b":"#ef4444"},children:[e.successRate,"%"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Empty"}),(0,s.jsxs)("p",{className:"font-semibold",style:{color:e.emptyRate<=10?"#22c55e":e.emptyRate<=30?"#f59e0b":"#ef4444"},children:[e.emptyRate,"%"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Avg Results"}),(0,s.jsx)("p",{className:"font-semibold",children:e.avgResults})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Avg Latency"}),(0,s.jsxs)("p",{className:"font-semibold",children:[e.avgLatency,"ms"]})]})]})]},e.toolName))})]})}},33127:function(e,t,r){"use strict";r.d(t,{D:function(){return
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[802],{12282:function(e,t,r){Promise.resolve().then(r.bind(r,28392))},38941:function(e,t,r){"use strict";r.d(t,{C:function(){return l}});var s=r(27573);r(7653);var n=r(29147);let a=(0,r(49289).j)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l(e){let{className:t,variant:r,...l}=e;return(0,s.jsx)("div",{className:(0,n.cn)(a({variant:r}),t),...l})}},72196:function(e,t,r){"use strict";r.d(t,{Ol:function(){return o},Zb:function(){return l},aY:function(){return i},ll:function(){return c}});var s=r(27573),n=r(7653),a=r(29147);let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("rounded-lg border border-border bg-card text-card-foreground",r),...n})});l.displayName="Card";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-4",r),...n})});o.displayName="CardHeader";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("h3",{ref:t,className:(0,a.cn)("text-sm font-semibold leading-none tracking-tight",r),...n})});c.displayName="CardTitle";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("p-4 pt-0",r),...n})});i.displayName="CardContent"},28392:function(e,t,r){"use strict";r.d(t,{ToolMetricsView:function(){return i}});var s=r(27573),n=r(7653),a=r(72196),l=r(38941),o=r(57429),c=r(33127);function i(){(0,c.z)("tool-metrics",[["tool-metrics-summary"]]);let[e,t]=(0,n.useState)(7),{data:r=[],isLoading:i}=(0,o.Re)(e);return i?(0,s.jsx)("div",{className:"p-4 text-muted-foreground",children:"Loading tool metrics..."}):(0,s.jsxs)("div",{className:"p-6 space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold",children:"Tool Metrics"}),(0,s.jsxs)("select",{value:e,onChange:e=>t(Number(e.target.value)),className:"border rounded px-2 py-1 text-sm bg-background",children:[(0,s.jsx)("option",{value:1,children:"Last 24h"}),(0,s.jsx)("option",{value:7,children:"Last 7 days"}),(0,s.jsx)("option",{value:30,children:"Last 30 days"})]})]}),0===r.length?(0,s.jsx)("p",{className:"text-muted-foreground text-sm",children:"No tool metrics yet. Start a Claude Code session to collect data."}):(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:r.map(e=>(0,s.jsxs)(a.Zb,{className:"p-4 space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("h3",{className:"font-mono text-sm font-medium",children:e.toolName}),(0,s.jsxs)(l.C,{variant:e.callCount>10?"default":"secondary",children:[e.callCount," calls"]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Success"}),(0,s.jsxs)("p",{className:"font-semibold",style:{color:e.successRate>=90?"#22c55e":e.successRate>=70?"#f59e0b":"#ef4444"},children:[e.successRate,"%"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Empty"}),(0,s.jsxs)("p",{className:"font-semibold",style:{color:e.emptyRate<=10?"#22c55e":e.emptyRate<=30?"#f59e0b":"#ef4444"},children:[e.emptyRate,"%"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Avg Results"}),(0,s.jsx)("p",{className:"font-semibold",children:e.avgResults})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Avg Latency"}),(0,s.jsxs)("p",{className:"font-semibold",children:[e.avgLatency,"ms"]})]})]})]},e.toolName))})]})}},33127:function(e,t,r){"use strict";r.d(t,{D:function(){return o},z:function(){return c}});var s=r(7653),n=r(77930),a=r(50794);async function l(e,t,r){let s=await fetch("".concat((0,a.aH)(),"/api").concat(e),{headers:(0,a.OM)(),credentials:"same-origin",signal:t});if(!s.ok||!s.body)throw Error("SSE ".concat(s.status));let n=s.body.getReader(),l=new TextDecoder,o="";for(;!t.aborted;){var c;let{value:e,done:t}=await n.read();if(t)break;let s=(o+=l.decode(e,{stream:!0})).split("\n\n");for(let e of(o=null!==(c=s.pop())&&void 0!==c?c:"",s)){let t="message",s=[];for(let r of e.split("\n"))r.startsWith("event:")&&(t=r.slice(6).trim()),r.startsWith("data:")&&s.push(r.slice(5).trim());if(0!==s.length)try{r({type:t,data:JSON.parse(s.join("\n"))})}catch(e){}}}}function o(e){let[t,r]=(0,s.useState)([]);return(0,s.useEffect)(()=>{if(!e)return;let t=new AbortController;return l("/workflows/runs/".concat(encodeURIComponent(e),"/stream"),t.signal,e=>r(t=>[...t,e])).catch(()=>void 0),()=>t.abort()},[e]),{events:t,clear:(0,s.useCallback)(()=>r([]),[])}}function c(e,t){let r=(0,n.NL)(),a=JSON.stringify(t);(0,s.useEffect)(()=>{let t=new AbortController,s=JSON.parse(a);return l("/live/stream?channels=".concat(encodeURIComponent(e)),t.signal,t=>{if("refresh"===t.type&&t.data.channel===e)for(let e of s)r.invalidateQueries({queryKey:e})}).catch(()=>void 0),()=>t.abort()},[e,r,a])}},29147:function(e,t,r){"use strict";r.d(t,{cn:function(){return a}});var s=r(10607),n=r(25579);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.m6)((0,s.W)(t))}},49289:function(e,t,r){"use strict";r.d(t,{j:function(){return l}});var s=r(10607);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=s.W,l=(e,t)=>r=>{var s;if((null==t?void 0:t.variants)==null)return a(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:l,defaultVariants:o}=t,c=Object.keys(l).map(e=>{let t=null==r?void 0:r[e],s=null==o?void 0:o[e];if(null===t)return null;let a=n(t)||n(s);return l[e][a]}),i=r&&Object.entries(r).reduce((e,t)=>{let[r,s]=t;return void 0===s||(e[r]=s),e},{});return a(e,c,null==t?void 0:null===(s=t.compoundVariants)||void 0===s?void 0:s.reduce((e,t)=>{let{class:r,className:s,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...i}[t]):({...o,...i})[t]===r})?[...e,r,s]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},function(e){e.O(0,[736,697,429,293,528,744],function(){return e(e.s=12282)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[467],{44794:function(e,t,r){Promise.resolve().then(r.bind(r,72684))},50466:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(27573),s=r(7653),l=r(29147);let a=(0,r(49289).j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=s.forwardRef((e,t)=>{let{className:r,variant:s,size:o,...i}=e;return(0,n.jsx)("button",{className:(0,l.cn)(a({variant:s,size:o,className:r})),ref:t,...i})});o.displayName="Button"},72196:function(e,t,r){"use strict";r.d(t,{Ol:function(){return o},Zb:function(){return a},aY:function(){return c},ll:function(){return i}});var n=r(27573),s=r(7653),l=r(29147);let a=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,l.cn)("rounded-lg border border-border bg-card text-card-foreground",r),...s})});a.displayName="Card";let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-4",r),...s})});o.displayName="CardHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("h3",{ref:t,className:(0,l.cn)("text-sm font-semibold leading-none tracking-tight",r),...s})});i.displayName="CardTitle";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,l.cn)("p-4 pt-0",r),...s})});c.displayName="CardContent"},72684:function(e,t,r){"use strict";r.d(t,{WorkflowRuns:function(){return d}});var n=r(27573),s=r(7653),l=r(57429),a=r(33127),o=r(50466),i=r(72196),c=r(3806);function d(){let{t:e}=(0,c.$G)(),{data:t}=(0,l.D)(),{data:r}=(0,l.xX)(),d=(0,l.aw)(),[u,f]=(0,s.useState)(null),{events:h,clear:m}=(0,a.D)(u);return(0,n.jsxs)("div",{className:"p-6 space-y-4 h-full overflow-y-auto",children:[(0,n.jsx)("h2",{className:"text-2xl font-bold",children:e("workflows.title")}),(0,n.jsxs)(i.Zb,{children:[(0,n.jsx)(i.Ol,{children:(0,n.jsx)(i.ll,{children:e("workflows.available")})}),(0,n.jsx)(i.aY,{children:(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:(null!=t?t:[]).map(t=>(0,n.jsxs)(o.z,{variant:"outline",size:"sm",onClick:()=>d.mutate({type:t.name},{onSuccess:e=>f(e.runId)}),children:[t.name," (",t.stepCount," ",e("workflows.steps"),")"]},t.name))})})]}),u&&h.length>0&&(0,n.jsxs)(i.Zb,{children:[(0,n.jsx)(i.Ol,{children:(0,n.jsxs)(i.ll,{children:[e("workflows.stream"),": ",u]})}),(0,n.jsxs)(i.aY,{children:[(0,n.jsx)("div",{className:"space-y-1 max-h-60 overflow-y-auto font-mono text-xs",children:h.map((e,t)=>(0,n.jsxs)("div",{className:"text-muted-foreground",children:["[",e.type,"] ",JSON.stringify(e.data)]},t))}),(0,n.jsx)(o.z,{variant:"ghost",size:"sm",onClick:()=>{f(null),m()},className:"mt-2",children:e("workflows.closeStream")})]})]}),(0,n.jsxs)(i.Zb,{children:[(0,n.jsx)(i.Ol,{children:(0,n.jsx)(i.ll,{children:e("workflows.runHistory")})}),(0,n.jsx)(i.aY,{children:r&&r.length>0?(0,n.jsxs)("table",{className:"w-full text-sm",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{className:"text-left text-muted-foreground",children:[(0,n.jsx)("th",{children:e("workflows.runId")}),(0,n.jsx)("th",{children:e("overview.status")}),(0,n.jsx)("th",{children:e("workflows.started")})]})}),(0,n.jsx)("tbody",{children:r.slice(0,10).map(e=>(0,n.jsxs)("tr",{className:"border-t border-border",children:[(0,n.jsx)("td",{className:"py-1 font-mono text-xs",children:e.runId}),(0,n.jsx)("td",{children:e.status}),(0,n.jsx)("td",{children:new Date(e.startedAt).toLocaleTimeString()})]},e.runId))})]}):(0,n.jsx)("p",{className:"text-muted-foreground text-sm",children:e("workflows.noRuns")})})]})]})}},33127:function(e,t,r){"use strict";r.d(t,{D:function(){return
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[467],{44794:function(e,t,r){Promise.resolve().then(r.bind(r,72684))},50466:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(27573),s=r(7653),l=r(29147);let a=(0,r(49289).j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=s.forwardRef((e,t)=>{let{className:r,variant:s,size:o,...i}=e;return(0,n.jsx)("button",{className:(0,l.cn)(a({variant:s,size:o,className:r})),ref:t,...i})});o.displayName="Button"},72196:function(e,t,r){"use strict";r.d(t,{Ol:function(){return o},Zb:function(){return a},aY:function(){return c},ll:function(){return i}});var n=r(27573),s=r(7653),l=r(29147);let a=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,l.cn)("rounded-lg border border-border bg-card text-card-foreground",r),...s})});a.displayName="Card";let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-4",r),...s})});o.displayName="CardHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("h3",{ref:t,className:(0,l.cn)("text-sm font-semibold leading-none tracking-tight",r),...s})});i.displayName="CardTitle";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,l.cn)("p-4 pt-0",r),...s})});c.displayName="CardContent"},72684:function(e,t,r){"use strict";r.d(t,{WorkflowRuns:function(){return d}});var n=r(27573),s=r(7653),l=r(57429),a=r(33127),o=r(50466),i=r(72196),c=r(3806);function d(){let{t:e}=(0,c.$G)(),{data:t}=(0,l.D)(),{data:r}=(0,l.xX)(),d=(0,l.aw)(),[u,f]=(0,s.useState)(null),{events:h,clear:m}=(0,a.D)(u);return(0,n.jsxs)("div",{className:"p-6 space-y-4 h-full overflow-y-auto",children:[(0,n.jsx)("h2",{className:"text-2xl font-bold",children:e("workflows.title")}),(0,n.jsxs)(i.Zb,{children:[(0,n.jsx)(i.Ol,{children:(0,n.jsx)(i.ll,{children:e("workflows.available")})}),(0,n.jsx)(i.aY,{children:(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:(null!=t?t:[]).map(t=>(0,n.jsxs)(o.z,{variant:"outline",size:"sm",onClick:()=>d.mutate({type:t.name},{onSuccess:e=>f(e.runId)}),children:[t.name," (",t.stepCount," ",e("workflows.steps"),")"]},t.name))})})]}),u&&h.length>0&&(0,n.jsxs)(i.Zb,{children:[(0,n.jsx)(i.Ol,{children:(0,n.jsxs)(i.ll,{children:[e("workflows.stream"),": ",u]})}),(0,n.jsxs)(i.aY,{children:[(0,n.jsx)("div",{className:"space-y-1 max-h-60 overflow-y-auto font-mono text-xs",children:h.map((e,t)=>(0,n.jsxs)("div",{className:"text-muted-foreground",children:["[",e.type,"] ",JSON.stringify(e.data)]},t))}),(0,n.jsx)(o.z,{variant:"ghost",size:"sm",onClick:()=>{f(null),m()},className:"mt-2",children:e("workflows.closeStream")})]})]}),(0,n.jsxs)(i.Zb,{children:[(0,n.jsx)(i.Ol,{children:(0,n.jsx)(i.ll,{children:e("workflows.runHistory")})}),(0,n.jsx)(i.aY,{children:r&&r.length>0?(0,n.jsxs)("table",{className:"w-full text-sm",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{className:"text-left text-muted-foreground",children:[(0,n.jsx)("th",{children:e("workflows.runId")}),(0,n.jsx)("th",{children:e("overview.status")}),(0,n.jsx)("th",{children:e("workflows.started")})]})}),(0,n.jsx)("tbody",{children:r.slice(0,10).map(e=>(0,n.jsxs)("tr",{className:"border-t border-border",children:[(0,n.jsx)("td",{className:"py-1 font-mono text-xs",children:e.runId}),(0,n.jsx)("td",{children:e.status}),(0,n.jsx)("td",{children:new Date(e.startedAt).toLocaleTimeString()})]},e.runId))})]}):(0,n.jsx)("p",{className:"text-muted-foreground text-sm",children:e("workflows.noRuns")})})]})]})}},33127:function(e,t,r){"use strict";r.d(t,{D:function(){return o},z:function(){return i}});var n=r(7653),s=r(77930),l=r(50794);async function a(e,t,r){let n=await fetch("".concat((0,l.aH)(),"/api").concat(e),{headers:(0,l.OM)(),credentials:"same-origin",signal:t});if(!n.ok||!n.body)throw Error("SSE ".concat(n.status));let s=n.body.getReader(),a=new TextDecoder,o="";for(;!t.aborted;){var i;let{value:e,done:t}=await s.read();if(t)break;let n=(o+=a.decode(e,{stream:!0})).split("\n\n");for(let e of(o=null!==(i=n.pop())&&void 0!==i?i:"",n)){let t="message",n=[];for(let r of e.split("\n"))r.startsWith("event:")&&(t=r.slice(6).trim()),r.startsWith("data:")&&n.push(r.slice(5).trim());if(0!==n.length)try{r({type:t,data:JSON.parse(n.join("\n"))})}catch(e){}}}}function o(e){let[t,r]=(0,n.useState)([]);return(0,n.useEffect)(()=>{if(!e)return;let t=new AbortController;return a("/workflows/runs/".concat(encodeURIComponent(e),"/stream"),t.signal,e=>r(t=>[...t,e])).catch(()=>void 0),()=>t.abort()},[e]),{events:t,clear:(0,n.useCallback)(()=>r([]),[])}}function i(e,t){let r=(0,s.NL)(),l=JSON.stringify(t);(0,n.useEffect)(()=>{let t=new AbortController,n=JSON.parse(l);return a("/live/stream?channels=".concat(encodeURIComponent(e)),t.signal,t=>{if("refresh"===t.type&&t.data.channel===e)for(let e of n)r.invalidateQueries({queryKey:e})}).catch(()=>void 0),()=>t.abort()},[e,r,l])}},29147:function(e,t,r){"use strict";r.d(t,{cn:function(){return l}});var n=r(10607),s=r(25579);function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.m6)((0,n.W)(t))}},49289:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(10607);let s=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=n.W,a=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return l(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;let l=s(t)||s(n);return a[e][l]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return l(e,i,null==t?void 0:null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...c}[t]):({...o,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},function(e){e.O(0,[736,806,697,429,293,528,744],function(){return e(e.s=44794)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="zh" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/7d4d1db5aa137b5a.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-d6388c5dcd85b0c5.js"/><script src="/_next/static/chunks/1dd3208c-f3e84932bdc53383.js" async=""></script><script src="/_next/static/chunks/528-7d4fc14903647f1e.js" async=""></script><script src="/_next/static/chunks/main-app-202a5f91ead17fa7.js" async=""></script><script src="/_next/static/chunks/736-db1a009357c222d2.js" async=""></script><script src="/_next/static/chunks/697-05cf55b6c667773f.js" async=""></script><script src="/_next/static/chunks/429-
|
|
1
|
+
<!DOCTYPE html><html lang="zh" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/7d4d1db5aa137b5a.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-d6388c5dcd85b0c5.js"/><script src="/_next/static/chunks/1dd3208c-f3e84932bdc53383.js" async=""></script><script src="/_next/static/chunks/528-7d4fc14903647f1e.js" async=""></script><script src="/_next/static/chunks/main-app-202a5f91ead17fa7.js" async=""></script><script src="/_next/static/chunks/736-db1a009357c222d2.js" async=""></script><script src="/_next/static/chunks/697-05cf55b6c667773f.js" async=""></script><script src="/_next/static/chunks/429-39f42ebb1ac959d6.js" async=""></script><script src="/_next/static/chunks/app/accuracy/page-7b4f3c728a0e880f.js" async=""></script><script src="/_next/static/chunks/806-195d4d5cc6c28f6c.js" async=""></script><script src="/_next/static/chunks/458-75822399a849befa.js" async=""></script><script src="/_next/static/chunks/249-e04c1de6240fd78a.js" async=""></script><script src="/_next/static/chunks/app/layout-4b78776412bd4fee.js" async=""></script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="h-dvh overflow-hidden"><div class="flex h-dvh items-center justify-center text-sm text-muted-foreground">Loading...</div><script src="/_next/static/chunks/webpack-d6388c5dcd85b0c5.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/7d4d1db5aa137b5a.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[11815,[],\"\"]\n4:I[72206,[\"736\",\"static/chunks/736-db1a009357c222d2.js\",\"697\",\"static/chunks/697-05cf55b6c667773f.js\",\"429\",\"static/chunks/429-39f42ebb1ac959d6.js\",\"506\",\"static/chunks/app/accuracy/page-7b4f3c728a0e880f.js\"],\"AccuracyView\"]\n5:I[55092,[],\"\"]\n6:I[82023,[],\"\"]\n7:I[68762,[\"736\",\"static/chunks/736-db1a009357c222d2.js\",\"806\",\"static/chunks/806-195d4d5cc6c28f6c.js\",\"697\",\"static/chunks/697-05cf55b6c667773f.js\",\"458\",\"static/chunks/458-75822399a849befa.js\",\"249\",\"static/chunks/249-e04c1de6240fd78a.js\",\"429\",\"static/chunks/429-39f42ebb1ac959d6.js\",\"185\",\"static/chunks/app/layout-4b78776412bd4fee.js\"],\"default\",1]\n9:I[91584,[],\"\"]\na:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L2\",null,{\"buildId\":\"MGvblRnurBd_fK7rfcjlq\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"accuracy\"],\"initialTree\":[\"\",{\"children\":[\"accuracy\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"accuracy\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[\"$\",\"$L4\",null,{}],null],null],null]},[null,[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"accuracy\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/7d4d1db5aa137b5a.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",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.\"}]}]]}]}]],\"notFoundStyles\":[]}],\"params\":{}}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$L8\"],\"globalErrorComponent\":\"$9\",\"missingSlots\":\"$Wa\"}]\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}]]\n3:null\n"])</script></body></html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
2:I[72206,["736","static/chunks/736-db1a009357c222d2.js","697","static/chunks/697-05cf55b6c667773f.js","429","static/chunks/429-
|
|
1
|
+
2:I[72206,["736","static/chunks/736-db1a009357c222d2.js","697","static/chunks/697-05cf55b6c667773f.js","429","static/chunks/429-39f42ebb1ac959d6.js","506","static/chunks/app/accuracy/page-7b4f3c728a0e880f.js"],"AccuracyView"]
|
|
2
2
|
3:I[55092,[],""]
|
|
3
3
|
4:I[82023,[],""]
|
|
4
|
-
5:I[68762,["736","static/chunks/736-db1a009357c222d2.js","806","static/chunks/806-195d4d5cc6c28f6c.js","697","static/chunks/697-05cf55b6c667773f.js","458","static/chunks/458-75822399a849befa.js","249","static/chunks/249-e04c1de6240fd78a.js","429","static/chunks/429-
|
|
5
|
-
0:["
|
|
4
|
+
5:I[68762,["736","static/chunks/736-db1a009357c222d2.js","806","static/chunks/806-195d4d5cc6c28f6c.js","697","static/chunks/697-05cf55b6c667773f.js","458","static/chunks/458-75822399a849befa.js","249","static/chunks/249-e04c1de6240fd78a.js","429","static/chunks/429-39f42ebb1ac959d6.js","185","static/chunks/app/layout-4b78776412bd4fee.js"],"default",1]
|
|
5
|
+
0:["MGvblRnurBd_fK7rfcjlq",[[["",{"children":["accuracy",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["accuracy",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{}],null],null],null]},[null,["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","accuracy","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7d4d1db5aa137b5a.css","precedence":"next","crossOrigin":"$undefined"}]],["$","$L5",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",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."}]}]]}]}]],"notFoundStyles":[]}],"params":{}}]],null],null],["$L6",null]]]]
|
|
6
6
|
6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}]]
|
|
7
7
|
1:null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="zh" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/7d4d1db5aa137b5a.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-d6388c5dcd85b0c5.js"/><script src="/_next/static/chunks/1dd3208c-f3e84932bdc53383.js" async=""></script><script src="/_next/static/chunks/528-7d4fc14903647f1e.js" async=""></script><script src="/_next/static/chunks/main-app-202a5f91ead17fa7.js" async=""></script><script src="/_next/static/chunks/736-db1a009357c222d2.js" async=""></script><script src="/_next/static/chunks/806-195d4d5cc6c28f6c.js" async=""></script><script src="/_next/static/chunks/697-05cf55b6c667773f.js" async=""></script><script src="/_next/static/chunks/402-a2e4eb98bb6a524c.js" async=""></script><script src="/_next/static/chunks/343-09a7e255220705c5.js" async=""></script><script src="/_next/static/chunks/429-
|
|
1
|
+
<!DOCTYPE html><html lang="zh" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/7d4d1db5aa137b5a.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-d6388c5dcd85b0c5.js"/><script src="/_next/static/chunks/1dd3208c-f3e84932bdc53383.js" async=""></script><script src="/_next/static/chunks/528-7d4fc14903647f1e.js" async=""></script><script src="/_next/static/chunks/main-app-202a5f91ead17fa7.js" async=""></script><script src="/_next/static/chunks/736-db1a009357c222d2.js" async=""></script><script src="/_next/static/chunks/806-195d4d5cc6c28f6c.js" async=""></script><script src="/_next/static/chunks/697-05cf55b6c667773f.js" async=""></script><script src="/_next/static/chunks/402-a2e4eb98bb6a524c.js" async=""></script><script src="/_next/static/chunks/343-09a7e255220705c5.js" async=""></script><script src="/_next/static/chunks/429-39f42ebb1ac959d6.js" async=""></script><script src="/_next/static/chunks/app/benchmark/page-6c6d0acbcde4eb85.js" async=""></script><script src="/_next/static/chunks/458-75822399a849befa.js" async=""></script><script src="/_next/static/chunks/249-e04c1de6240fd78a.js" async=""></script><script src="/_next/static/chunks/app/layout-4b78776412bd4fee.js" async=""></script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="h-dvh overflow-hidden"><div class="flex h-dvh items-center justify-center text-sm text-muted-foreground">Loading...</div><script src="/_next/static/chunks/webpack-d6388c5dcd85b0c5.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/7d4d1db5aa137b5a.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[11815,[],\"\"]\n4:I[24388,[\"736\",\"static/chunks/736-db1a009357c222d2.js\",\"806\",\"static/chunks/806-195d4d5cc6c28f6c.js\",\"697\",\"static/chunks/697-05cf55b6c667773f.js\",\"402\",\"static/chunks/402-a2e4eb98bb6a524c.js\",\"343\",\"static/chunks/343-09a7e255220705c5.js\",\"429\",\"static/chunks/429-39f42ebb1ac959d6.js\",\"395\",\"static/chunks/app/benchmark/page-6c6d0acbcde4eb85.js\"],\"BenchmarkView\"]\n5:I[55092,[],\"\"]\n6:I[82023,[],\"\"]\n7:I[68762,[\"736\",\"static/chunks/736-db1a009357c222d2.js\",\"806\",\"static/chunks/806-195d4d5cc6c28f6c.js\",\"697\",\"static/chunks/697-05cf55b6c667773f.js\",\"458\",\"static/chunks/458-75822399a849befa.js\",\"249\",\"static/chunks/249-e04c1de6240fd78a.js\",\"429\",\"static/chunks/429-39f42ebb1ac959d6.js\",\"185\",\"static/chunks/app/layout-4b78776412bd4fee.js\"],\"default\",1]\n9:I[91584,[],\"\"]\na:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L2\",null,{\"buildId\":\"MGvblRnurBd_fK7rfcjlq\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"benchmark\"],\"initialTree\":[\"\",{\"children\":[\"benchmark\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"benchmark\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[\"$\",\"$L4\",null,{}],null],null],null]},[null,[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"benchmark\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/7d4d1db5aa137b5a.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",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.\"}]}]]}]}]],\"notFoundStyles\":[]}],\"params\":{}}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$L8\"],\"globalErrorComponent\":\"$9\",\"missingSlots\":\"$Wa\"}]\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}]]\n3:null\n"])</script></body></html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
2:I[24388,["736","static/chunks/736-db1a009357c222d2.js","806","static/chunks/806-195d4d5cc6c28f6c.js","697","static/chunks/697-05cf55b6c667773f.js","402","static/chunks/402-a2e4eb98bb6a524c.js","343","static/chunks/343-09a7e255220705c5.js","429","static/chunks/429-
|
|
1
|
+
2:I[24388,["736","static/chunks/736-db1a009357c222d2.js","806","static/chunks/806-195d4d5cc6c28f6c.js","697","static/chunks/697-05cf55b6c667773f.js","402","static/chunks/402-a2e4eb98bb6a524c.js","343","static/chunks/343-09a7e255220705c5.js","429","static/chunks/429-39f42ebb1ac959d6.js","395","static/chunks/app/benchmark/page-6c6d0acbcde4eb85.js"],"BenchmarkView"]
|
|
2
2
|
3:I[55092,[],""]
|
|
3
3
|
4:I[82023,[],""]
|
|
4
|
-
5:I[68762,["736","static/chunks/736-db1a009357c222d2.js","806","static/chunks/806-195d4d5cc6c28f6c.js","697","static/chunks/697-05cf55b6c667773f.js","458","static/chunks/458-75822399a849befa.js","249","static/chunks/249-e04c1de6240fd78a.js","429","static/chunks/429-
|
|
5
|
-
0:["
|
|
4
|
+
5:I[68762,["736","static/chunks/736-db1a009357c222d2.js","806","static/chunks/806-195d4d5cc6c28f6c.js","697","static/chunks/697-05cf55b6c667773f.js","458","static/chunks/458-75822399a849befa.js","249","static/chunks/249-e04c1de6240fd78a.js","429","static/chunks/429-39f42ebb1ac959d6.js","185","static/chunks/app/layout-4b78776412bd4fee.js"],"default",1]
|
|
5
|
+
0:["MGvblRnurBd_fK7rfcjlq",[[["",{"children":["benchmark",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["benchmark",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{}],null],null],null]},[null,["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","benchmark","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7d4d1db5aa137b5a.css","precedence":"next","crossOrigin":"$undefined"}]],["$","$L5",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",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."}]}]]}]}]],"notFoundStyles":[]}],"params":{}}]],null],null],["$L6",null]]]]
|
|
6
6
|
6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}]]
|
|
7
7
|
1:null
|