@devflow-tools/devflow 0.16.32 → 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/hooks/hook-daemon.js +22 -22
- package/dist/hooks/post-tool-use.js +3 -3
- package/dist/hooks/session-end.js +4 -4
- package/dist/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/plugin/dist/command-registry.json +5 -5
- package/dist/plugin/dist/hooks/hook-daemon.js +22 -22
- package/dist/plugin/dist/hooks/post-tool-use.js +3 -3
- package/dist/plugin/dist/hooks/session-end.js +4 -4
- 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/{V6vWUDamGBWS-_lY2njK2 → MGvblRnurBd_fK7rfcjlq}/_buildManifest.js +0 -0
- /package/dist/dashboard/_next/static/{V6vWUDamGBWS-_lY2njK2 → MGvblRnurBd_fK7rfcjlq}/_ssgManifest.js +0 -0
package/plugin-registry.json
CHANGED
|
@@ -1,172 +1,172 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"lastUpdated": "2026-07-
|
|
3
|
+
"lastUpdated": "2026-07-30T01:58:38.895Z",
|
|
4
4
|
"plugins": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@devflow-tools/plugin-animation",
|
|
7
|
-
"version": "0.16.
|
|
7
|
+
"version": "0.16.34",
|
|
8
8
|
"description": "",
|
|
9
9
|
"tags": [],
|
|
10
10
|
"compatibleStacks": [
|
|
11
11
|
"animation"
|
|
12
12
|
],
|
|
13
|
-
"size": "
|
|
13
|
+
"size": "71542 B",
|
|
14
14
|
"author": "DevFlow Team",
|
|
15
15
|
"homepage": ""
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "@devflow-tools/plugin-css",
|
|
19
|
-
"version": "0.16.
|
|
19
|
+
"version": "0.16.34",
|
|
20
20
|
"description": "",
|
|
21
21
|
"tags": [],
|
|
22
22
|
"compatibleStacks": [
|
|
23
23
|
"css"
|
|
24
24
|
],
|
|
25
|
-
"size": "
|
|
25
|
+
"size": "58872 B",
|
|
26
26
|
"author": "DevFlow Team",
|
|
27
27
|
"homepage": ""
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "@devflow-tools/plugin-docker",
|
|
31
|
-
"version": "0.16.
|
|
31
|
+
"version": "0.16.34",
|
|
32
32
|
"description": "",
|
|
33
33
|
"tags": [],
|
|
34
34
|
"compatibleStacks": [
|
|
35
35
|
"docker"
|
|
36
36
|
],
|
|
37
|
-
"size": "
|
|
37
|
+
"size": "87529 B",
|
|
38
38
|
"author": "DevFlow Team",
|
|
39
39
|
"homepage": ""
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"name": "@devflow-tools/plugin-electron",
|
|
43
|
-
"version": "0.16.
|
|
43
|
+
"version": "0.16.34",
|
|
44
44
|
"description": "",
|
|
45
45
|
"tags": [],
|
|
46
46
|
"compatibleStacks": [
|
|
47
47
|
"electron"
|
|
48
48
|
],
|
|
49
|
-
"size": "
|
|
49
|
+
"size": "103259 B",
|
|
50
50
|
"author": "DevFlow Team",
|
|
51
51
|
"homepage": ""
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"name": "@devflow-tools/plugin-git",
|
|
55
|
-
"version": "0.16.
|
|
55
|
+
"version": "0.16.34",
|
|
56
56
|
"description": "",
|
|
57
57
|
"tags": [],
|
|
58
58
|
"compatibleStacks": [
|
|
59
59
|
"git"
|
|
60
60
|
],
|
|
61
|
-
"size": "
|
|
61
|
+
"size": "69180 B",
|
|
62
62
|
"author": "DevFlow Team",
|
|
63
63
|
"homepage": ""
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"name": "@devflow-tools/plugin-graphql",
|
|
67
|
-
"version": "0.16.
|
|
67
|
+
"version": "0.16.34",
|
|
68
68
|
"description": "",
|
|
69
69
|
"tags": [],
|
|
70
70
|
"compatibleStacks": [
|
|
71
71
|
"graphql"
|
|
72
72
|
],
|
|
73
|
-
"size": "
|
|
73
|
+
"size": "71238 B",
|
|
74
74
|
"author": "DevFlow Team",
|
|
75
75
|
"homepage": ""
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"name": "@devflow-tools/plugin-nest",
|
|
79
|
-
"version": "0.16.
|
|
79
|
+
"version": "0.16.34",
|
|
80
80
|
"description": "",
|
|
81
81
|
"tags": [],
|
|
82
82
|
"compatibleStacks": [
|
|
83
83
|
"nest"
|
|
84
84
|
],
|
|
85
|
-
"size": "
|
|
85
|
+
"size": "108004 B",
|
|
86
86
|
"author": "DevFlow Team",
|
|
87
87
|
"homepage": ""
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"name": "@devflow-tools/plugin-nextjs",
|
|
91
|
-
"version": "0.16.
|
|
91
|
+
"version": "0.16.34",
|
|
92
92
|
"description": "",
|
|
93
93
|
"tags": [],
|
|
94
94
|
"compatibleStacks": [
|
|
95
95
|
"nextjs"
|
|
96
96
|
],
|
|
97
|
-
"size": "
|
|
97
|
+
"size": "69615 B",
|
|
98
98
|
"author": "DevFlow Team",
|
|
99
99
|
"homepage": ""
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"name": "@devflow-tools/plugin-performance",
|
|
103
|
-
"version": "0.16.
|
|
103
|
+
"version": "0.16.34",
|
|
104
104
|
"description": "",
|
|
105
105
|
"tags": [],
|
|
106
106
|
"compatibleStacks": [
|
|
107
107
|
"performance"
|
|
108
108
|
],
|
|
109
|
-
"size": "
|
|
109
|
+
"size": "119843 B",
|
|
110
110
|
"author": "DevFlow Team",
|
|
111
111
|
"homepage": ""
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"name": "@devflow-tools/plugin-react",
|
|
115
|
-
"version": "0.16.
|
|
115
|
+
"version": "0.16.34",
|
|
116
116
|
"description": "",
|
|
117
117
|
"tags": [],
|
|
118
118
|
"compatibleStacks": [
|
|
119
119
|
"react"
|
|
120
120
|
],
|
|
121
|
-
"size": "
|
|
121
|
+
"size": "247320 B",
|
|
122
122
|
"author": "DevFlow Team",
|
|
123
123
|
"homepage": ""
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
"name": "@devflow-tools/plugin-tailwind",
|
|
127
|
-
"version": "0.16.
|
|
127
|
+
"version": "0.16.34",
|
|
128
128
|
"description": "",
|
|
129
129
|
"tags": [],
|
|
130
130
|
"compatibleStacks": [
|
|
131
131
|
"tailwind"
|
|
132
132
|
],
|
|
133
|
-
"size": "
|
|
133
|
+
"size": "75957 B",
|
|
134
134
|
"author": "DevFlow Team",
|
|
135
135
|
"homepage": ""
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
"name": "@devflow-tools/plugin-taro",
|
|
139
|
-
"version": "0.16.
|
|
139
|
+
"version": "0.16.34",
|
|
140
140
|
"description": "",
|
|
141
141
|
"tags": [],
|
|
142
142
|
"compatibleStacks": [
|
|
143
143
|
"taro"
|
|
144
144
|
],
|
|
145
|
-
"size": "
|
|
145
|
+
"size": "79684 B",
|
|
146
146
|
"author": "DevFlow Team",
|
|
147
147
|
"homepage": ""
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"name": "@devflow-tools/plugin-ui-layout",
|
|
151
|
-
"version": "0.16.
|
|
151
|
+
"version": "0.16.34",
|
|
152
152
|
"description": "",
|
|
153
153
|
"tags": [],
|
|
154
154
|
"compatibleStacks": [
|
|
155
155
|
"ui-layout"
|
|
156
156
|
],
|
|
157
|
-
"size": "
|
|
157
|
+
"size": "56913 B",
|
|
158
158
|
"author": "DevFlow Team",
|
|
159
159
|
"homepage": ""
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"name": "@devflow-tools/plugin-vue",
|
|
163
|
-
"version": "0.16.
|
|
163
|
+
"version": "0.16.34",
|
|
164
164
|
"description": "",
|
|
165
165
|
"tags": [],
|
|
166
166
|
"compatibleStacks": [
|
|
167
167
|
"vue"
|
|
168
168
|
],
|
|
169
|
-
"size": "
|
|
169
|
+
"size": "87847 B",
|
|
170
170
|
"author": "DevFlow Team",
|
|
171
171
|
"homepage": ""
|
|
172
172
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[429],{41493:function(e,t,n){n.d(t,{h:function(){return i}});var r,o=n(50794);let u=null!==(r=n(49767).env.NEXT_PUBLIC_DEVFLOW_API_URL)&&void 0!==r?r:"http://localhost:13337";async function c(e,t){let n=function(){try{return localStorage.getItem("devflow-active-project-root")}catch(e){return null}}(),r={"Content-Type":"application/json",...(0,o.O)()};n&&(r["x-devflow-project"]=n);let c=await fetch("".concat(u,"/api").concat(e),{...t,headers:{...r,...null==t?void 0:t.headers}});if(!c.ok){let e=await c.text();if(401===c.status)throw Error("API 401: configure NEXT_PUBLIC_DEVFLOW_API_KEY or localStorage['devflow-api-key']");throw Error("API ".concat(c.status,": ").concat(e))}let i=await c.json();return i&&"object"==typeof i&&"ok"in i&&"data"in i?i.data:i}let i={listProjects:()=>c("/projects"),getProject:e=>c("/projects/".concat(e)),createProject:e=>c("/projects",{method:"POST",body:JSON.stringify(e)}),deleteProject:e=>c("/projects/".concat(e),{method:"DELETE"}),connectProject:e=>c("/projects/connect",{method:"POST",body:JSON.stringify({rootPath:e})}),disconnectProject:()=>c("/projects/active",{method:"DELETE"}),getActiveProject:()=>c("/projects/active"),getOnboardingPackByRoot:e=>c("/projects/onboarding-pack?rootPath=".concat(encodeURIComponent(e))),refreshOnboardingPack:e=>c("/projects/onboarding-pack/refresh",{method:"POST",body:JSON.stringify({rootPath:e})}),getContextStatus:()=>c("/context/status"),buildContext:e=>c("/context/build",{method:"POST",body:JSON.stringify(e)}),buildTaskContext:e=>c("/context/build-task",{method:"POST",body:JSON.stringify(e)}),submitFeedback:e=>c("/context/feedback",{method:"POST",body:JSON.stringify(e)}),getFeedbackSummary:()=>c("/context/feedback-summary"),getGraph:()=>c("/graph"),getLayeredGraph:()=>c("/graph?view=layered"),getNode:e=>c("/graph/".concat(e)),expandNode:(e,t,n)=>c("/graph/".concat(e,"/expand?depth=").concat(null!=t?t:2,"&direction=").concat(null!=n?n:"both")),listWorkflows:()=>c("/workflows"),runWorkflow:(e,t)=>c("/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 c("/workflows/runs?limit=".concat(e,"&offset=").concat(t))},getRun:e=>c("/workflows/runs/".concat(e)),approveRun:e=>c("/workflows/runs/".concat(e,"/approve"),{method:"POST"}),rejectRun:(e,t)=>c("/workflows/runs/".concat(e,"/reject"),{method:"POST",body:JSON.stringify({reason:t})}),getMemory:()=>c("/memory"),addMemory:e=>c("/memory",{method:"POST",body:JSON.stringify(e)}),updateMemoryEntry:(e,t)=>c("/memory/".concat(e),{method:"PUT",body:JSON.stringify(t)}),deleteMemoryEntry:e=>c("/memory/".concat(e),{method:"DELETE"}),getCandidates:()=>c("/memory/candidates"),approveCandidate:e=>c("/memory/candidates/".concat(e,"/approve"),{method:"POST"}),rejectCandidate:e=>c("/memory/candidates/".concat(e,"/reject"),{method:"POST"}),searchMemory:(e,t,n)=>c("/memory/search",{method:"POST",body:JSON.stringify({query:e,limit:t,categories:n})}),updateMemory:(e,t,n)=>c("/memory/".concat(e,"/").concat(t),{method:"PUT",body:JSON.stringify({value:n})}),searchKnowledge:(e,t)=>c("/knowledge/search?q=".concat(encodeURIComponent(e)).concat(t?"&scope=".concat(t):"")),syncKnowledge:e=>c("/knowledge/sync",{method:"POST",body:JSON.stringify({pluginName:e})}),getKnowledgeSources:()=>c("/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 c("/telemetry/runs?limit=".concat(e,"&offset=").concat(t).concat(n?"&source=".concat(n):""))},getTelemetryRun:e=>c("/telemetry/runs/".concat(e)),getTimeline:(e,t)=>c("/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),c("/telemetry/sessions?".concat(r))},getSession:e=>c("/telemetry/sessions/".concat(e)),getSessionEvents:e=>c("/telemetry/sessions/".concat(e,"/events")),getRunEvents:e=>c("/telemetry/runs/".concat(e,"/events")),getRunStats:e=>c("/telemetry/runs/".concat(e,"/stats")),completeRun:e=>c("/telemetry/runs/".concat(e,"/complete"),{method:"POST"}),getTelemetryStats:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return c("/telemetry/stats?days=".concat(e))},getRoiSummary:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return c("/telemetry/roi-summary?days=".concat(e))},listBenchmarkReports:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;return c("/benchmark/reports?limit=".concat(e))},getLatestBenchmarkReport:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return c("/benchmark/reports/latest?suite=".concat(encodeURIComponent(e)))},getBenchmarkReport:e=>c("/benchmark/reports/".concat(encodeURIComponent(e))),cleanupTelemetry:e=>c("/telemetry/cleanup",{method:"POST",body:JSON.stringify({olderThanDays:e})}),getToolMetricsSummary:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return c("/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 c("/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 c("/telemetry/accuracy/queries".concat(n?"?".concat(n):""))},postAccuracyFeedback:e=>c("/telemetry/accuracy/feedback",{method:"POST",body:JSON.stringify(e)}),getAutoCheck:()=>c("/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),c("/telemetry/executions?".concat(n))},getExecutionEvents:e=>c("/telemetry/executions/".concat(e,"/events")),getMcpCompliance:()=>c("/telemetry/mcp-compliance"),getGovernanceRules:()=>c("/governance/rules"),createGovernanceRule:e=>c("/governance/rules",{method:"POST",body:JSON.stringify(e)}),updateGovernanceRule:e=>c("/governance/rules/".concat(encodeURIComponent(e.id)),{method:"PUT",body:JSON.stringify(e)}),deleteGovernanceRule:e=>c("/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 c("/governance/audit-chain?limit=".concat(e,"&offset=").concat(t))},listPlugins:(e,t)=>c("/registry/plugins".concat(e?"?search=".concat(encodeURIComponent(e)).concat(t?"&tag=".concat(t):""):t?"?tag=".concat(t):"")),getPlugin:e=>c("/registry/plugins/".concat(e)),publishPlugin:e=>c("/registry/plugins",{method:"POST",body:JSON.stringify(e)}),getPluginEffectiveness:e=>c("/registry/plugins/effectiveness".concat(e?"?rootPath=".concat(encodeURIComponent(e)):""))}},50794:function(e,t,n){var r,o;n.d(t,{O:function(){return c}});let u=null!==(o=null===(r=n(49767).env.NEXT_PUBLIC_DEVFLOW_API_KEY)||void 0===r?void 0:r.trim())&&void 0!==o?o:"";function c(){let e=function(){if(u)return u;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 _},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 b},OV:function(){return H},Re:function(){return B},S0:function(){return G},Tr:function(){return l},Tu:function(){return I},VU:function(){return E},Vc:function(){return P},Vw:function(){return M},X0:function(){return d},YG:function(){return Y},Z0:function(){return i},ZL:function(){return V},_m:function(){return O},aw:function(){return L},bz:function(){return U},dL:function(){return F},dP:function(){return R},e3:function(){return W},fC:function(){return a},ff:function(){return C},g6:function(){return Q},hI:function(){return f},iP:function(){return z},kP:function(){return K},mE:function(){return x},mU:function(){return D},mp:function(){return k},n4:function(){return m},nO:function(){return g},nq:function(){return p},on:function(){return S},ow:function(){return T},qt:function(){return N},rC:function(){return w},rO:function(){return j},rw:function(){return Z},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 f(){return(0,r.a)({queryKey:["context-status"],queryFn:()=>c.h.getContextStatus()})}function m(){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 k(){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 b(){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 K(e){return(0,r.a)({queryKey:["session",e],queryFn:()=>c.h.getSession(e),enabled:!!e})}function w(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 E(){return(0,r.a)({queryKey:["task-context-result"],queryFn:()=>Promise.reject(Error("No queryFn — this query is never enabled")),enabled:!1})}function j(){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 U(){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 I(){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 Q(){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 _(){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 M(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 Y(){return(0,r.a)({queryKey:["auto-check"],queryFn:()=>c.h.getAutoCheck()})}function Z(){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 H(){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 +0,0 @@
|
|
|
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 a}});var o,r=n(50794);let c=null!==(o=n(49767).env.NEXT_PUBLIC_DEVFLOW_API_URL)&&void 0!==o?o:"http://localhost:13337";async function s(e,t){let n=function(){try{return localStorage.getItem("devflow-active-project-root")}catch(e){return null}}(),o={"Content-Type":"application/json",...(0,r.O)()};n&&(o["x-devflow-project"]=n);let s=await fetch("".concat(c,"/api").concat(e),{...t,headers:{...o,...null==t?void 0:t.headers}});if(!s.ok){let e=await s.text();if(401===s.status)throw Error("API 401: configure NEXT_PUBLIC_DEVFLOW_API_KEY or localStorage['devflow-api-key']");throw Error("API ".concat(s.status,": ").concat(e))}let a=await s.json();return a&&"object"==typeof a&&"ok"in a&&"data"in a?a.data:a}let a={listProjects:()=>s("/projects"),getProject:e=>s("/projects/".concat(e)),createProject:e=>s("/projects",{method:"POST",body:JSON.stringify(e)}),deleteProject:e=>s("/projects/".concat(e),{method:"DELETE"}),connectProject:e=>s("/projects/connect",{method:"POST",body:JSON.stringify({rootPath:e})}),disconnectProject:()=>s("/projects/active",{method:"DELETE"}),getActiveProject:()=>s("/projects/active"),getOnboardingPackByRoot:e=>s("/projects/onboarding-pack?rootPath=".concat(encodeURIComponent(e))),refreshOnboardingPack:e=>s("/projects/onboarding-pack/refresh",{method:"POST",body:JSON.stringify({rootPath:e})}),getContextStatus:()=>s("/context/status"),buildContext:e=>s("/context/build",{method:"POST",body:JSON.stringify(e)}),buildTaskContext:e=>s("/context/build-task",{method:"POST",body:JSON.stringify(e)}),submitFeedback:e=>s("/context/feedback",{method:"POST",body:JSON.stringify(e)}),getFeedbackSummary:()=>s("/context/feedback-summary"),getGraph:()=>s("/graph"),getLayeredGraph:()=>s("/graph?view=layered"),getNode:e=>s("/graph/".concat(e)),expandNode:(e,t,n)=>s("/graph/".concat(e,"/expand?depth=").concat(null!=t?t:2,"&direction=").concat(null!=n?n:"both")),listWorkflows:()=>s("/workflows"),runWorkflow:(e,t)=>s("/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 s("/workflows/runs?limit=".concat(e,"&offset=").concat(t))},getRun:e=>s("/workflows/runs/".concat(e)),approveRun:e=>s("/workflows/runs/".concat(e,"/approve"),{method:"POST"}),rejectRun:(e,t)=>s("/workflows/runs/".concat(e,"/reject"),{method:"POST",body:JSON.stringify({reason:t})}),getMemory:()=>s("/memory"),addMemory:e=>s("/memory",{method:"POST",body:JSON.stringify(e)}),updateMemoryEntry:(e,t)=>s("/memory/".concat(e),{method:"PUT",body:JSON.stringify(t)}),deleteMemoryEntry:e=>s("/memory/".concat(e),{method:"DELETE"}),getCandidates:()=>s("/memory/candidates"),approveCandidate:e=>s("/memory/candidates/".concat(e,"/approve"),{method:"POST"}),rejectCandidate:e=>s("/memory/candidates/".concat(e,"/reject"),{method:"POST"}),searchMemory:(e,t,n)=>s("/memory/search",{method:"POST",body:JSON.stringify({query:e,limit:t,categories:n})}),updateMemory:(e,t,n)=>s("/memory/".concat(e,"/").concat(t),{method:"PUT",body:JSON.stringify({value:n})}),searchKnowledge:(e,t)=>s("/knowledge/search?q=".concat(encodeURIComponent(e)).concat(t?"&scope=".concat(t):"")),syncKnowledge:e=>s("/knowledge/sync",{method:"POST",body:JSON.stringify({pluginName:e})}),getKnowledgeSources:()=>s("/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 s("/telemetry/runs?limit=".concat(e,"&offset=").concat(t).concat(n?"&source=".concat(n):""))},getTelemetryRun:e=>s("/telemetry/runs/".concat(e)),getTimeline:(e,t)=>s("/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),s("/telemetry/sessions?".concat(o))},getSession:e=>s("/telemetry/sessions/".concat(e)),getSessionEvents:e=>s("/telemetry/sessions/".concat(e,"/events")),getRunEvents:e=>s("/telemetry/runs/".concat(e,"/events")),getRunStats:e=>s("/telemetry/runs/".concat(e,"/stats")),completeRun:e=>s("/telemetry/runs/".concat(e,"/complete"),{method:"POST"}),getTelemetryStats:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return s("/telemetry/stats?days=".concat(e))},getRoiSummary:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return s("/telemetry/roi-summary?days=".concat(e))},listBenchmarkReports:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;return s("/benchmark/reports?limit=".concat(e))},getLatestBenchmarkReport:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return s("/benchmark/reports/latest?suite=".concat(encodeURIComponent(e)))},getBenchmarkReport:e=>s("/benchmark/reports/".concat(encodeURIComponent(e))),cleanupTelemetry:e=>s("/telemetry/cleanup",{method:"POST",body:JSON.stringify({olderThanDays:e})}),getToolMetricsSummary:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return s("/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 s("/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 s("/telemetry/accuracy/queries".concat(n?"?".concat(n):""))},postAccuracyFeedback:e=>s("/telemetry/accuracy/feedback",{method:"POST",body:JSON.stringify(e)}),getAutoCheck:()=>s("/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),s("/telemetry/executions?".concat(n))},getExecutionEvents:e=>s("/telemetry/executions/".concat(e,"/events")),getMcpCompliance:()=>s("/telemetry/mcp-compliance"),getGovernanceRules:()=>s("/governance/rules"),createGovernanceRule:e=>s("/governance/rules",{method:"POST",body:JSON.stringify(e)}),updateGovernanceRule:e=>s("/governance/rules/".concat(encodeURIComponent(e.id)),{method:"PUT",body:JSON.stringify(e)}),deleteGovernanceRule:e=>s("/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 s("/governance/audit-chain?limit=".concat(e,"&offset=").concat(t))},listPlugins:(e,t)=>s("/registry/plugins".concat(e?"?search=".concat(encodeURIComponent(e)).concat(t?"&tag=".concat(t):""):t?"?tag=".concat(t):"")),getPlugin:e=>s("/registry/plugins/".concat(e)),publishPlugin:e=>s("/registry/plugins",{method:"POST",body:JSON.stringify(e)}),getPluginEffectiveness:e=>s("/registry/plugins/effectiveness".concat(e?"?rootPath=".concat(encodeURIComponent(e)):""))}},50794:function(e,t,n){"use strict";var o,r;n.d(t,{O:function(){return s}});let c=null!==(r=null===(o=n(49767).env.NEXT_PUBLIC_DEVFLOW_API_KEY)||void 0===o?void 0:o.trim())&&void 0!==r?r:"";function s(){let e=function(){if(c)return c;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 +0,0 @@
|
|
|
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 u},z:function(){return l}});var i,r=s(7653),n=s(77930),a=s(50794);let o=null!==(i=s(49767).env.NEXT_PUBLIC_DEVFLOW_API_URL)&&void 0!==i?i:"http://localhost:13337";async function c(t,e,s){let i=await fetch("".concat(o,"/api").concat(t),{headers:(0,a.O)(),signal:e});if(!i.ok||!i.body)throw Error("SSE ".concat(i.status));let r=i.body.getReader(),n=new TextDecoder,c="";for(;!e.aborted;){var u;let{value:t,done:e}=await r.read();if(e)break;let i=(c+=n.decode(t,{stream:!0})).split("\n\n");for(let t of(c=null!==(u=i.pop())&&void 0!==u?u:"",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 u(t){let[e,s]=(0,r.useState)([]);return(0,r.useEffect)(()=>{if(!t)return;let e=new AbortController;return c("/workflows/runs/".concat(encodeURIComponent(t),"/stream"),e.signal,t=>s(e=>[...e,t])).catch(()=>void 0),()=>e.abort()},[t]),{events:e,clear:(0,r.useCallback)(()=>s([]),[])}}function l(t,e){let s=(0,n.NL)(),i=JSON.stringify(e);(0,r.useEffect)(()=>{let e=new AbortController,r=JSON.parse(i);return c("/live/stream?channels=".concat(encodeURIComponent(t)),e.signal,e=>{if("refresh"===e.type&&e.data.channel===t)for(let t of r)s.invalidateQueries({queryKey:t})}).catch(()=>void 0),()=>e.abort()},[t,s,i])}},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()}]);
|
|
File without changes
|
/package/dist/dashboard/_next/static/{V6vWUDamGBWS-_lY2njK2 → MGvblRnurBd_fK7rfcjlq}/_ssgManifest.js
RENAMED
|
File without changes
|