bunqueue-dashboard 1.0.2 → 1.0.3
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/README.md +8 -7
- package/agent/manager/config.ts +2 -1
- package/agent/server/handler.ts +2 -1
- package/agent/server/router.ts +1 -0
- package/agent/server/types.ts +1 -1
- package/agent/workflow/runtime.ts +25 -7
- package/agent/workflow/runtimeRoutes.ts +4 -1
- package/dist/.vite/manifest.json +500 -489
- package/dist/assets/{AddJob-CiwWycYG.js → AddJob-jq-VZ_YE.js} +1 -1
- package/dist/assets/{Alerts-DCKl_C8D.js → Alerts-Bi8zLKXV.js} +1 -1
- package/dist/assets/{AreaChart-Db2UVnaK.js → AreaChart-BMYp7z5y.js} +1 -1
- package/dist/assets/{Benchmark-DyHvEM8x.js → Benchmark-CWYdqm55.js} +1 -1
- package/dist/assets/{BulkAddJobs-GRMVnf0j.js → BulkAddJobs-0cdWqkEF.js} +1 -1
- package/dist/assets/{Button-_aSJvRoW.js → Button-BCjgbAhY.js} +1 -1
- package/dist/assets/{Card-egIDLwVk.js → Card-DptfvL2O.js} +1 -1
- package/dist/assets/{Cron-XL0PdUEc.js → Cron-dPGwJXqY.js} +1 -1
- package/dist/assets/{CronManager-Cqtg9Zr8.js → CronManager-C0-Y2QDg.js} +1 -1
- package/dist/assets/{Database-BBzyi7f0.js → Database-CseJOrvD.js} +1 -1
- package/dist/assets/{Diagnostics-E_icHggb.js → Diagnostics-cZTy4Y2t.js} +1 -1
- package/dist/assets/{Dlq-DNs32CzV.js → Dlq-W2xOJiZM.js} +1 -1
- package/dist/assets/{DlqControl-DawwIsTI.js → DlqControl-CIV5278D.js} +1 -1
- package/dist/assets/DlqPro-BuRxGtGt.js +1 -0
- package/dist/assets/{Fleet-Bkbq0dFB.js → Fleet-0zKJSjCw.js} +1 -1
- package/dist/assets/{Flows-DKZxI7ta.js → Flows-CEfm102Y.js} +1 -1
- package/dist/assets/{JobInspector-BARE52q3.js → JobInspector-BlMj5-Vr.js} +1 -1
- package/dist/assets/{Jobs-CKzKpQ7i.js → Jobs-D_TId_Oa.js} +1 -1
- package/dist/assets/JobsPro-A06ZG5Xi.js +1 -0
- package/dist/assets/{Logs-Bj60G_FP.js → Logs-hbh7XhQU.js} +1 -1
- package/dist/assets/{LogsPro-Hv8xwXDK.js → LogsPro-BgEIjgfj.js} +1 -1
- package/dist/assets/McpServer-ffXr4nFW.js +22 -0
- package/dist/assets/{Metrics-BBLdWOw1.js → Metrics-CIKZGgf0.js} +1 -1
- package/dist/assets/{MetricsPro-D470b1aP.js → MetricsPro-CK3WfLCl.js} +1 -1
- package/dist/assets/{Overview-B_AOa5kW.js → Overview-BBgwyUn4.js} +1 -1
- package/dist/assets/{PageHeader-CQzNsw8r.js → PageHeader-DD4vnVog.js} +1 -1
- package/dist/assets/{Pagination-CSkzhNW6.js → Pagination-Cj7GzYNX.js} +1 -1
- package/dist/assets/{QueueActions-BBxRt-t0.js → QueueActions-BgdW95rN.js} +1 -1
- package/dist/assets/{QueueControl-DaZjeZnw.js → QueueControl-g-9kwrpt.js} +1 -1
- package/dist/assets/{QueueDetail-Dgo9Ukmp.js → QueueDetail-Cv3MLDoE.js} +1 -1
- package/dist/assets/{QueueDetailPro-D7U8ahp2.js → QueueDetailPro-AhdOAzEF.js} +1 -1
- package/dist/assets/{Queues-CS8LeZtJ.js → Queues-Bbvh_OCE.js} +1 -1
- package/dist/assets/{QueuesOverview-BySSnCm0.js → QueuesOverview-sPQILfMU.js} +1 -1
- package/dist/assets/{S3Backup-Ci4dJPP_.js → S3Backup-Cg6sc2JG.js} +1 -1
- package/dist/assets/{S3BackupPro-UwWu0yxr.js → S3BackupPro-BWV_R_Vj.js} +1 -1
- package/dist/assets/ServerControl-Dr2gXbaU.js +3 -0
- package/dist/assets/{Settings-FOzwrB25.js → Settings-BsDDlu-h.js} +1 -1
- package/dist/assets/{StatusBadge-DereLzOj.js → StatusBadge-cYUkK-4P.js} +1 -1
- package/dist/assets/{Usage-DR90dCt0.js → Usage-Cxx6pZfb.js} +1 -1
- package/dist/assets/{UsagePro-DAlE3oCE.js → UsagePro-CkC8WYcS.js} +1 -1
- package/dist/assets/{Webhooks-BonYUgMo.js → Webhooks-BKWnALGC.js} +1 -1
- package/dist/assets/{Workers-D1Ead02h.js → Workers-SJ9MApx3.js} +1 -1
- package/dist/assets/WorkersPro-BDgHBTpY.js +1 -0
- package/dist/assets/Workflows-Cp6jqKeM.js +1 -0
- package/dist/assets/{api-D9aT0ND7.js → api-Bbo86MB6.js} +1 -1
- package/dist/assets/{bq-DR2BTISO.js → bq-CSX8DSME.js} +1 -1
- package/dist/assets/{classicJobsData-Csj4iihY.js → classicJobsData-BimIyQky.js} +1 -1
- package/dist/assets/{connectionStore-CVjQyIZv.js → connectionStore-DdLzJyut.js} +1 -1
- package/dist/assets/{controlConnectionEpoch-ChAeMMLk.js → controlConnectionEpoch-D4HtriLM.js} +1 -1
- package/dist/assets/{feedback-CtGN_kqB.js → feedback-Dxfj-Fy1.js} +1 -1
- package/dist/assets/{form-DG3X6cLL.js → form-Dy-an7ew.js} +1 -1
- package/dist/assets/{icons-DH9SS1DA.js → icons-C1HVBnFn.js} +1 -1
- package/dist/assets/{index-DZFZr0Mi.js → index-CxzFSZj3.js} +3 -3
- package/dist/assets/index-DZXf58c2.css +1 -0
- package/dist/assets/install-DUkXE5kb.js +3 -0
- package/dist/assets/package-C7CtgBEy.js +1 -0
- package/dist/assets/react-vendor-DfC0iyIS.js +11 -0
- package/dist/assets/{toastStore-XmMX7A5W.js → toastStore-DnqA_aL-.js} +1 -1
- package/dist/assets/{useControlActionGuard-1i7aFA7E.js → useControlActionGuard-DImMgJtj.js} +1 -1
- package/dist/assets/{usePolledData-CEyyLRYa.js → usePolledData-Dp_ynL9f.js} +1 -1
- package/dist/assets/{useServerActionGuard-CUx8TOAC.js → useServerActionGuard-Cr4KUOeZ.js} +1 -1
- package/dist/assets/{useThroughputSeries-CeFx-Mwq.js → useThroughputSeries-CrTeR9s3.js} +1 -1
- package/dist/index.html +14 -14
- package/package.json +21 -24
- package/scripts/embedded.gen.ts +156 -154
- package/dist/assets/DlqPro-BEdxFiNN.js +0 -1
- package/dist/assets/JobsPro-DxDw-akG.js +0 -1
- package/dist/assets/McpServer-zxSMjG8K.js +0 -24
- package/dist/assets/ServerControl-Ch1wZcKB.js +0 -3
- package/dist/assets/WorkersPro-XuLxtU4A.js +0 -1
- package/dist/assets/Workflows-CqZZ96EK.js +0 -1
- package/dist/assets/index-DaEyLvTR.css +0 -1
- package/dist/assets/install-oydLpc1T.js +0 -3
- package/dist/assets/react-vendor-CFL9l8LK.js +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as e}from"./connectionStore-
|
|
1
|
+
import{m as e}from"./connectionStore-DdLzJyut.js";var t=1,n=e(e=>({toasts:[],push:({level:n,title:r,detail:i,ttlMs:a})=>{let o=t++,s=a??(n===`error`?8e3:4e3);return e(e=>({toasts:[...e.toasts,{id:o,level:n,title:r,detail:i,ttlMs:s}].slice(-5)})),o},dismiss:t=>e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))})),r={success:(e,t)=>n.getState().push({level:`success`,title:e,detail:t}),error:(e,t)=>n.getState().push({level:`error`,title:e,detail:t}),info:(e,t)=>n.getState().push({level:`info`,title:e,detail:t})};export{n,r as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{g as t}from"./react-vendor-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{g as t}from"./react-vendor-DfC0iyIS.js";import{n,t as r}from"./controlConnectionEpoch-D4HtriLM.js";var i=e(t(),1),a=new Map;function o(e){let t=n(),o=`${t}\u0000${e}`,s=(0,i.useRef)(!1),c=(0,i.useRef)(0),l=(0,i.useRef)(o);return l.current!==o&&(l.current=o,c.current+=1),(0,i.useEffect)(()=>(s.current=!0,()=>{s.current=!1,c.current+=1}),[]),{scopeKey:o,begin:(e=`action`)=>{let n=[...new Set(typeof e==`string`?[e]:e)],i=n.map(e=>`${t}\u0000${e}`);if(!s.current||n.length===0||l.current!==o||r()!==t||i.some(e=>a.has(e)))return null;let u=Symbol(`control-action`);for(let e of i)a.set(e,u);let d=c.current,f=()=>s.current&&c.current===d&&l.current===o&&r()===t;return{isCurrent:f,finish:()=>{let e=f();for(let e of i)a.get(e)===u&&a.delete(e);return e}}}}}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{g as t}from"./react-vendor-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{g as t}from"./react-vendor-DfC0iyIS.js";import{o as n}from"./connectionStore-DdLzJyut.js";var r=e(t(),1);function i(e){let t=!0;return()=>t?(t=!1,!0):!e()}function a(e,t=[],a={}){let o=n(e=>e.refreshMs),s=n(e=>JSON.stringify([e.activeProfileId,e.baseUrl,e.agentBaseUrl,e.token,e.agentToken])),c=a.intervalMs??o,l=(0,r.useRef)(null),u=(0,r.useRef)(0),d=[s,...t];(l.current===null||l.current.length!==d.length||l.current.some((e,t)=>!Object.is(e,d[t])))&&(l.current=d,u.current+=1);let f=u.current,[p,m]=(0,r.useState)(null),[h,g]=(0,r.useState)(null),[_,v]=(0,r.useState)(!0),y=(0,r.useRef)(e);y.current=e;let b=(0,r.useRef)(!0),x=(0,r.useRef)(0),S=(0,r.useRef)(void 0),C=(0,r.useRef)(!0),w=(0,r.useRef)(!1),T=(0,r.useRef)(0),E=(0,r.useRef)(0),D=(0,r.useRef)(()=>Promise.resolve()),O=(0,r.useCallback)(async(e,t,n)=>{try{let r=await y.current(n);if(!b.current||e!==x.current)return;let i;try{i=JSON.stringify(r)}catch{i=String(Math.random())}i===S.current?T.current=t:(S.current=i,T.current=t,m(r)),w.current&&(w.current=!1,E.current=0,g(null))}catch(n){if(!b.current||e!==x.current)return;w.current=!0,E.current=t,g(n)}finally{b.current&&e===x.current&&C.current&&(C.current=!1,v(!1))}},[]),k=(0,r.useCallback)(()=>D.current(),[]);(0,r.useEffect)(()=>{b.current=!0;let e=++x.current,t=new AbortController;S.current=void 0,C.current=!0,m(null),v(!0),w.current&&(w.current=!1,g(null));let n=null,r=!1,a=!1,o=!1,s=[],l=()=>globalThis.document?.hidden??!1,u=i(l),d=()=>{n!==null&&clearTimeout(n),n=null},p=()=>{r||(d(),n=setTimeout(()=>{n=null,_(!1)},c))},h=async()=>{a=!0;try{await O(e,f,t.signal)}finally{if(a=!1,!r)if(o){o=!1;let e=s;s=[],_(!0).finally(()=>{for(let t of e)t()})}else p()}};function _(e){return r?Promise.resolve():a?e?(o=!0,new Promise(e=>s.push(e))):Promise.resolve():(d(),!e&&!u()?(p(),Promise.resolve()):h())}let y=()=>_(!0);D.current=y,_(!1);let T=()=>{l()||r||a||_(!0)};return typeof document<`u`&&document.addEventListener(`visibilitychange`,T),()=>{r=!0,b.current=!1,t.abort(),d();for(let e of s)e();s=[],D.current===y&&(D.current=()=>Promise.resolve()),x.current===e&&(x.current+=1),typeof document<`u`&&document.removeEventListener(`visibilitychange`,T)}},[c,f,O]);let A=T.current===f,j=E.current===f;return{data:A?p:null,error:j?h:null,loading:A||j?_:!0,refetch:k}}export{a as n,i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{g as t}from"./react-vendor-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{g as t}from"./react-vendor-DfC0iyIS.js";import{a as n,o as r}from"./connectionStore-DdLzJyut.js";var i=e(t(),1),a=new Map;function o(){let e=r.getState().token.trim();return JSON.stringify([n(),e])}var s=0,c=o();r.subscribe(()=>{let e=o();e!==c&&(c=e,s+=1)});function l(e,t=`Operation`){if(typeof e!=`object`||!e||e.ok!==!0)throw Error(`${t} returned a malformed success response`)}function u(e){r(e=>`${e.baseUrl}\u0000${e.token}`);let t=o(),n=s,c=JSON.stringify([n,e]),l=(0,i.useRef)(!1),u=(0,i.useRef)(0),d=(0,i.useRef)(c);return d.current!==c&&(d.current=c,u.current+=1),(0,i.useEffect)(()=>{l.current=!0;let e=o(),t=r.subscribe(()=>{let t=o();t!==e&&(e=t,u.current+=1)});return()=>{l.current=!1,u.current+=1,t()}},[]),{scopeKey:c,begin:(r=`action`)=>{let i=[...new Set(typeof r==`string`?[r]:r)],f=i.map(t=>JSON.stringify([n,e,t]));if(!l.current||i.length===0||d.current!==c||s!==n||o()!==t||f.some(e=>a.has(e)))return null;let p=Symbol(`server-action`);for(let e of f)a.set(e,p);let m=u.current,h=()=>l.current&&u.current===m&&d.current===c&&s===n&&o()===t;return{isCurrent:h,finish:()=>{let e=h();for(let e of f)a.get(e)===p&&a.delete(e);return e}}}}}export{o as n,u as r,l as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{g as t}from"./react-vendor-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{g as t}from"./react-vendor-DfC0iyIS.js";import{o as n}from"./connectionStore-DdLzJyut.js";import{t as r}from"./bq-CSX8DSME.js";import{t as i}from"./usePolledData-Dp_ynL9f.js";var a=e(t(),1),o=1e3,s={push:[],complete:[],fail:[],depth:[]},c=()=>typeof performance<`u`?performance.now():Date.now(),l=(e,t)=>`${e}\u0000${t}`;function u(e=60){let t=l(n(e=>e.baseUrl),n(e=>e.token)),[u,d]=(0,a.useState)(s),[f,p]=(0,a.useState)(null),[m,h]=(0,a.useState)(null),g=(0,a.useRef)(0),_=(0,a.useRef)(0),v=(0,a.useRef)(t),y=v.current===t;return(0,a.useEffect)(()=>{let n=++g.current,a=new AbortController,l=!1;v.current!==t&&(v.current=t,d(s),p(null),h(null),_.current=0);let u=i(()=>globalThis.document?.hidden??!1),f=async()=>{if(l||!u())return;l=!0;let t=c();try{let[i,c]=await Promise.all([r.overview({signal:a.signal}),r.stats({signal:a.signal})]);if(a.signal.aborted||g.current!==n)return;let l=i?.stats,u=i?.throughput,f=c?.stats;if(!l||!u||!f)throw Error(`malformed telemetry body`);if(![l.waiting,l.active,l.delayed,l.completed,l.dlq,l.totalPushed,l.totalPulled,l.totalCompleted,l.totalFailed,l.uptime,u.pushPerSec,u.completePerSec,u.failPerSec,f.waiting,f.prioritized,f.active,f.delayed,f[`waiting-children`]].every(e=>typeof e==`number`&&Number.isFinite(e)))throw Error(`malformed telemetry numeric metrics`);let m=u.pushPerSec,v=u.completePerSec,y=u.failPerSec,b=f.waiting+f.prioritized+f.active+f.delayed+f[`waiting-children`],x=_.current>0&&t-_.current>4*o;_.current=t,p(i),h(null),d(t=>{let n=x?s:t;return{push:[...n.push,m].slice(-e),complete:[...n.complete,v].slice(-e),fail:[...n.fail,y].slice(-e),depth:[...n.depth,b].slice(-e)}})}catch(e){!a.signal.aborted&&g.current===n&&h(e)}finally{l=!1}};f();let m=setInterval(f,o);return()=>{clearInterval(m),a.abort(),g.current===n&&(g.current+=1)}},[e,t]),y?{...u,latest:f,error:m}:{...s,latest:null,error:null}}function d(e,t=o){if(e.length<2)return{slope:0,label:`steady`,draining:!1};let n=e.length,r=(n-1)/2,i=e.reduce((e,t)=>e+t,0)/n,a=0,s=0;for(let t=0;t<n;t++)a+=(t-r)*(e[t]-i),s+=(t-r)**2;let c=s===0?0:a/s,l=t>0?o/t*c:c,u=l<-.05;return{slope:l,label:u?`draining`:l>.05?`accumulating`:`steady`,draining:u}}export{u as n,d as t};
|
package/dist/index.html
CHANGED
|
@@ -49,23 +49,23 @@
|
|
|
49
49
|
content="Fully drive a bunqueue server from one UI: queues, jobs, DLQ, cron, webhooks, workers, and start/stop/restart. Live demo, no signup."
|
|
50
50
|
/>
|
|
51
51
|
<meta name="twitter:image" content="https://egeominotti.github.io/bunqueue-dashboard/og.png" />
|
|
52
|
-
<script type="module" crossorigin src="./assets/index-
|
|
52
|
+
<script type="module" crossorigin src="./assets/index-CxzFSZj3.js"></script>
|
|
53
53
|
<link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-QTnfLwEv.js">
|
|
54
|
-
<link rel="modulepreload" crossorigin href="./assets/react-vendor-
|
|
55
|
-
<link rel="modulepreload" crossorigin href="./assets/connectionStore-
|
|
54
|
+
<link rel="modulepreload" crossorigin href="./assets/react-vendor-DfC0iyIS.js">
|
|
55
|
+
<link rel="modulepreload" crossorigin href="./assets/connectionStore-DdLzJyut.js">
|
|
56
56
|
<link rel="modulepreload" crossorigin href="./assets/upstreamPaths-DQeKSxGc.js">
|
|
57
|
-
<link rel="modulepreload" crossorigin href="./assets/bq-
|
|
58
|
-
<link rel="modulepreload" crossorigin href="./assets/toastStore-
|
|
59
|
-
<link rel="modulepreload" crossorigin href="./assets/icons-
|
|
60
|
-
<link rel="modulepreload" crossorigin href="./assets/StatusBadge-
|
|
61
|
-
<link rel="modulepreload" crossorigin href="./assets/api-
|
|
62
|
-
<link rel="modulepreload" crossorigin href="./assets/usePolledData-
|
|
63
|
-
<link rel="modulepreload" crossorigin href="./assets/Button-
|
|
64
|
-
<link rel="modulepreload" crossorigin href="./assets/Card-
|
|
65
|
-
<link rel="modulepreload" crossorigin href="./assets/feedback-
|
|
66
|
-
<link rel="modulepreload" crossorigin href="./assets/PageHeader-
|
|
57
|
+
<link rel="modulepreload" crossorigin href="./assets/bq-CSX8DSME.js">
|
|
58
|
+
<link rel="modulepreload" crossorigin href="./assets/toastStore-DnqA_aL-.js">
|
|
59
|
+
<link rel="modulepreload" crossorigin href="./assets/icons-C1HVBnFn.js">
|
|
60
|
+
<link rel="modulepreload" crossorigin href="./assets/StatusBadge-cYUkK-4P.js">
|
|
61
|
+
<link rel="modulepreload" crossorigin href="./assets/api-Bbo86MB6.js">
|
|
62
|
+
<link rel="modulepreload" crossorigin href="./assets/usePolledData-Dp_ynL9f.js">
|
|
63
|
+
<link rel="modulepreload" crossorigin href="./assets/Button-BCjgbAhY.js">
|
|
64
|
+
<link rel="modulepreload" crossorigin href="./assets/Card-DptfvL2O.js">
|
|
65
|
+
<link rel="modulepreload" crossorigin href="./assets/feedback-Dxfj-Fy1.js">
|
|
66
|
+
<link rel="modulepreload" crossorigin href="./assets/PageHeader-DD4vnVog.js">
|
|
67
67
|
<link rel="modulepreload" crossorigin href="./assets/format-Cg7VCIZW.js">
|
|
68
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
68
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DZXf58c2.css">
|
|
69
69
|
</head>
|
|
70
70
|
<body>
|
|
71
71
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunqueue-dashboard",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Web dashboard for a bunqueue server (queues, jobs, DLQ, cron, metrics, workers, live activity). Run with `bunx bunqueue-dashboard` (requires Bun 1.4.4).",
|
|
6
6
|
"packageManager": "bun@1.4.4",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"dev": "vite",
|
|
58
58
|
"agent": "bun run agent/index.ts",
|
|
59
59
|
"build": "bun run typecheck && vite build",
|
|
60
|
-
"typecheck": "
|
|
61
|
-
"typecheck:agent": "
|
|
62
|
-
"typecheck:examples": "
|
|
60
|
+
"typecheck": "bun check --no-script && bun run typecheck:agent && bun run typecheck:examples && bun run typecheck:e2e",
|
|
61
|
+
"typecheck:agent": "bun check --no-script -p tsconfig.agent.json",
|
|
62
|
+
"typecheck:examples": "bun check --no-script -p tsconfig.examples.json",
|
|
63
63
|
"size": "bun run scripts/check-bundle.ts",
|
|
64
64
|
"version:check": "bun run scripts/check-bun-version.ts && bun run scripts/check-playwright-image.ts",
|
|
65
65
|
"architecture": "bun run scripts/check-file-size.ts",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"test:coverage": "bun test --coverage --coverage-reporter=text --coverage-reporter=lcov --coverage-dir=coverage && bun scripts/check-coverage.ts && bun scripts/check-critical-coverage.ts && bun scripts/check-test-inventory.ts",
|
|
88
88
|
"lint": "oxlint . && bun run scripts/check-implicit-any-let.ts",
|
|
89
89
|
"lint:fix": "oxlint --fix . && bun run scripts/check-implicit-any-let.ts",
|
|
90
|
-
"format": "
|
|
91
|
-
"format:check": "
|
|
92
|
-
"check": "bun run lint && bun run format:check",
|
|
90
|
+
"format": "bun fmt",
|
|
91
|
+
"format:check": "bun fmt --check",
|
|
92
|
+
"check": "bun run typecheck && bun run lint && bun run format:check",
|
|
93
93
|
"check:fix": "bun run lint:fix && bun run format",
|
|
94
94
|
"audit:high": "bun audit --audit-level=high",
|
|
95
95
|
"quality": "bun run quality:static && bun run quality:unit && bun run quality:runtime-a && bun run quality:runtime-b && bun run quality:runtime-c && bun run quality:runtime-d",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"quality:runtime-b": "bun run test:e2e:queue-operations && bun run test:e2e:postgres-fleet",
|
|
100
100
|
"quality:runtime-c": "bun run test:package && bun run test:runtime",
|
|
101
101
|
"quality:runtime-d": "bun run test:soak",
|
|
102
|
-
"typecheck:e2e": "
|
|
102
|
+
"typecheck:e2e": "bun check --no-script -p tsconfig.e2e.json",
|
|
103
103
|
"test:e2e:browser:managed": "bun run build && bun scripts/gen-embed.ts && playwright test -c playwright.managed.config.ts",
|
|
104
104
|
"test:e2e:docs": "bun run docs:build && playwright test -c playwright.docs.config.ts"
|
|
105
105
|
},
|
|
@@ -113,48 +113,45 @@
|
|
|
113
113
|
"@fontsource-variable/jetbrains-mono": "^5.2.8",
|
|
114
114
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
115
115
|
"@playwright/test": "1.62.1",
|
|
116
|
-
"@shikijs/vitepress-twoslash": "
|
|
116
|
+
"@shikijs/vitepress-twoslash": "4.4.3",
|
|
117
117
|
"@tailwindcss/vite": "^4.3.2",
|
|
118
118
|
"@types/node": "^26.0.1",
|
|
119
|
-
"@types/react": "^19.
|
|
120
|
-
"@types/react-dom": "^19.
|
|
119
|
+
"@types/react": "^19.3.0",
|
|
120
|
+
"@types/react-dom": "^19.3.0",
|
|
121
121
|
"@vitejs/plugin-react": "^6.0.3",
|
|
122
122
|
"ai": "7.0.14",
|
|
123
123
|
"bun-types": "1.4.4",
|
|
124
124
|
"bunqueue-v2-9-2": "npm:bunqueue@2.9.2",
|
|
125
|
-
"happy-dom": "^
|
|
126
|
-
"mermaid": "^
|
|
127
|
-
"oxfmt": "^0.63.0",
|
|
125
|
+
"happy-dom": "^21.0.4",
|
|
126
|
+
"mermaid": "^12.2.0",
|
|
128
127
|
"oxlint": "^1.78.0",
|
|
129
128
|
"oxlint-tsgolint": "^7.0.2001",
|
|
130
|
-
"react": "^19.
|
|
131
|
-
"react-dom": "^19.
|
|
129
|
+
"react": "^19.3.1",
|
|
130
|
+
"react-dom": "^19.3.1",
|
|
132
131
|
"react-router-dom": "^7.18.4",
|
|
133
132
|
"tailwindcss": "^4.3.2",
|
|
134
133
|
"typescript": "^6.0.3",
|
|
135
134
|
"vite": "^8.1.6",
|
|
136
|
-
"vitepress": "2.0.0-alpha.
|
|
135
|
+
"vitepress": "2.0.0-alpha.20",
|
|
137
136
|
"vitepress-plugin-llms": "^1.13.2",
|
|
138
|
-
"
|
|
139
|
-
"zod": "^4.4.3",
|
|
137
|
+
"zod": "^4.6.7",
|
|
140
138
|
"zustand": "^5.0.14"
|
|
141
139
|
},
|
|
142
140
|
"overrides": {
|
|
143
141
|
"brace-expansion": "^5.0.12",
|
|
144
|
-
"dompurify": "^3.4.
|
|
145
|
-
"fast-uri": "^3.1.
|
|
146
|
-
"ip-address": "^10.7.
|
|
142
|
+
"dompurify": "^3.4.17",
|
|
143
|
+
"fast-uri": "^3.1.9",
|
|
144
|
+
"ip-address": "^10.7.4",
|
|
147
145
|
"js-yaml": "^3.15.2",
|
|
148
146
|
"markdown-it": "^14.3.3",
|
|
149
147
|
"nanoid": "^3.3.18",
|
|
150
148
|
"postcss": "^8.5.25",
|
|
151
149
|
"proxy-addr": "^2.0.8",
|
|
152
150
|
"source-map-js": "^1.2.2",
|
|
153
|
-
"tinypool": "^2.1.2",
|
|
154
151
|
"vue": "^3.5.42"
|
|
155
152
|
},
|
|
156
153
|
"dependencies": {
|
|
157
|
-
"bunqueue": "2.9.
|
|
154
|
+
"bunqueue": "2.9.20",
|
|
158
155
|
"msgpackr": "^1.11.8"
|
|
159
156
|
},
|
|
160
157
|
"patchedDependencies": {
|
package/scripts/embedded.gen.ts
CHANGED
|
@@ -1,159 +1,161 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
// AUTO-GENERATED by scripts/gen-embed.ts — do not edit, not committed.
|
|
3
|
-
import f0 from "../dist/
|
|
4
|
-
import f1 from "../dist
|
|
5
|
-
import f2 from "../dist/
|
|
6
|
-
import f3 from "../dist/assets/
|
|
7
|
-
import f4 from "../dist/assets/
|
|
8
|
-
import f5 from "../dist/assets/
|
|
9
|
-
import f6 from "../dist/assets/
|
|
10
|
-
import f7 from "../dist/assets/
|
|
11
|
-
import f8 from "../dist/assets/
|
|
12
|
-
import f9 from "../dist/assets/
|
|
13
|
-
import f10 from "../dist/assets/
|
|
14
|
-
import f11 from "../dist/assets/
|
|
15
|
-
import f12 from "../dist/assets/
|
|
16
|
-
import f13 from "../dist/assets/
|
|
17
|
-
import f14 from "../dist/assets/
|
|
18
|
-
import f15 from "../dist/assets/
|
|
19
|
-
import f16 from "../dist/assets/
|
|
20
|
-
import f17 from "../dist/assets/
|
|
21
|
-
import f18 from "../dist/assets/
|
|
22
|
-
import f19 from "../dist/assets/
|
|
23
|
-
import f20 from "../dist/assets/
|
|
24
|
-
import f21 from "../dist/assets/
|
|
25
|
-
import f22 from "../dist/assets/
|
|
26
|
-
import f23 from "../dist/assets/
|
|
27
|
-
import f24 from "../dist/assets/
|
|
28
|
-
import f25 from "../dist/assets/
|
|
29
|
-
import f26 from "../dist/assets/
|
|
30
|
-
import f27 from "../dist/assets/
|
|
31
|
-
import f28 from "../dist/assets/
|
|
32
|
-
import f29 from "../dist/assets/
|
|
33
|
-
import f30 from "../dist/assets/
|
|
34
|
-
import f31 from "../dist/assets/
|
|
35
|
-
import f32 from "../dist/assets/
|
|
36
|
-
import f33 from "../dist/assets/
|
|
37
|
-
import f34 from "../dist/assets/
|
|
38
|
-
import f35 from "../dist/assets/
|
|
39
|
-
import f36 from "../dist/assets/
|
|
40
|
-
import f37 from "../dist/assets/
|
|
41
|
-
import f38 from "../dist/assets/
|
|
42
|
-
import f39 from "../dist/assets/
|
|
43
|
-
import f40 from "../dist/assets/
|
|
44
|
-
import f41 from "../dist/assets/
|
|
45
|
-
import f42 from "../dist/assets/
|
|
46
|
-
import f43 from "../dist/assets/
|
|
47
|
-
import f44 from "../dist/assets/
|
|
48
|
-
import f45 from "../dist/assets/
|
|
49
|
-
import f46 from "../dist/assets/
|
|
50
|
-
import f47 from "../dist/assets/
|
|
51
|
-
import f48 from "../dist/assets/
|
|
52
|
-
import f49 from "../dist/assets/
|
|
53
|
-
import f50 from "../dist/assets/
|
|
54
|
-
import f51 from "../dist/assets/
|
|
55
|
-
import f52 from "../dist/assets/
|
|
56
|
-
import f53 from "../dist/assets/
|
|
57
|
-
import f54 from "../dist/assets/
|
|
58
|
-
import f55 from "../dist/assets/
|
|
59
|
-
import f56 from "../dist/assets/
|
|
60
|
-
import f57 from "../dist/assets/
|
|
61
|
-
import f58 from "../dist/assets/
|
|
62
|
-
import f59 from "../dist/assets/
|
|
63
|
-
import f60 from "../dist/assets/
|
|
64
|
-
import f61 from "../dist/assets/
|
|
65
|
-
import f62 from "../dist/assets/
|
|
66
|
-
import f63 from "../dist/assets/
|
|
67
|
-
import f64 from "../dist/assets/
|
|
68
|
-
import f65 from "../dist/assets/
|
|
69
|
-
import f66 from "../dist/assets/
|
|
70
|
-
import f67 from "../dist/assets/
|
|
71
|
-
import f68 from "../dist/assets/
|
|
72
|
-
import f69 from "../dist/assets/
|
|
73
|
-
import f70 from "../dist/assets/
|
|
74
|
-
import f71 from "../dist/assets/
|
|
75
|
-
import f72 from "../dist/assets/
|
|
76
|
-
import f73 from "../dist/assets/
|
|
77
|
-
import f74 from "../dist/assets/
|
|
78
|
-
import f75 from "../dist/
|
|
79
|
-
import f76 from "../dist/
|
|
3
|
+
import f0 from "../dist/favicon.svg" with { type: 'file' };
|
|
4
|
+
import f1 from "../dist/og.png" with { type: 'file' };
|
|
5
|
+
import f2 from "../dist/.vite/manifest.json" with { type: 'file' };
|
|
6
|
+
import f3 from "../dist/assets/DlqControl-CIV5278D.js" with { type: 'file' };
|
|
7
|
+
import f4 from "../dist/assets/index-CxzFSZj3.js" with { type: 'file' };
|
|
8
|
+
import f5 from "../dist/assets/QueueActions-BgdW95rN.js" with { type: 'file' };
|
|
9
|
+
import f6 from "../dist/assets/AddJob-jq-VZ_YE.js" with { type: 'file' };
|
|
10
|
+
import f7 from "../dist/assets/package-C7CtgBEy.js" with { type: 'file' };
|
|
11
|
+
import f8 from "../dist/assets/QueueDetail-Cv3MLDoE.js" with { type: 'file' };
|
|
12
|
+
import f9 from "../dist/assets/useServerActionGuard-Cr4KUOeZ.js" with { type: 'file' };
|
|
13
|
+
import f10 from "../dist/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2" with { type: 'file' };
|
|
14
|
+
import f11 from "../dist/assets/icons-C1HVBnFn.js" with { type: 'file' };
|
|
15
|
+
import f12 from "../dist/assets/BulkAddJobs-0cdWqkEF.js" with { type: 'file' };
|
|
16
|
+
import f13 from "../dist/assets/Flows-CEfm102Y.js" with { type: 'file' };
|
|
17
|
+
import f14 from "../dist/assets/CronManager-C0-Y2QDg.js" with { type: 'file' };
|
|
18
|
+
import f15 from "../dist/assets/Dlq-W2xOJiZM.js" with { type: 'file' };
|
|
19
|
+
import f16 from "../dist/assets/UsagePro-CkC8WYcS.js" with { type: 'file' };
|
|
20
|
+
import f17 from "../dist/assets/promisePool-BVfQ9n9Q.js" with { type: 'file' };
|
|
21
|
+
import f18 from "../dist/assets/Card-DptfvL2O.js" with { type: 'file' };
|
|
22
|
+
import f19 from "../dist/assets/feedback-Dxfj-Fy1.js" with { type: 'file' };
|
|
23
|
+
import f20 from "../dist/assets/AreaChart-BMYp7z5y.js" with { type: 'file' };
|
|
24
|
+
import f21 from "../dist/assets/inter-latin-wght-normal-Dx4kXJAl.woff2" with { type: 'file' };
|
|
25
|
+
import f22 from "../dist/assets/usePolledData-Dp_ynL9f.js" with { type: 'file' };
|
|
26
|
+
import f23 from "../dist/assets/DlqPro-BuRxGtGt.js" with { type: 'file' };
|
|
27
|
+
import f24 from "../dist/assets/Cron-dPGwJXqY.js" with { type: 'file' };
|
|
28
|
+
import f25 from "../dist/assets/JobInspector-BlMj5-Vr.js" with { type: 'file' };
|
|
29
|
+
import f26 from "../dist/assets/Queues-Bbvh_OCE.js" with { type: 'file' };
|
|
30
|
+
import f27 from "../dist/assets/LogsPro-BgEIjgfj.js" with { type: 'file' };
|
|
31
|
+
import f28 from "../dist/assets/MetricsPro-CK3WfLCl.js" with { type: 'file' };
|
|
32
|
+
import f29 from "../dist/assets/index-DZXf58c2.css" with { type: 'file' };
|
|
33
|
+
import f30 from "../dist/assets/exportFile-C7xhE8Yh.js" with { type: 'file' };
|
|
34
|
+
import f31 from "../dist/assets/Button-BCjgbAhY.js" with { type: 'file' };
|
|
35
|
+
import f32 from "../dist/assets/Database-CseJOrvD.js" with { type: 'file' };
|
|
36
|
+
import f33 from "../dist/assets/StatusBadge-cYUkK-4P.js" with { type: 'file' };
|
|
37
|
+
import f34 from "../dist/assets/WorkersPro-BDgHBTpY.js" with { type: 'file' };
|
|
38
|
+
import f35 from "../dist/assets/controlConnectionEpoch-D4HtriLM.js" with { type: 'file' };
|
|
39
|
+
import f36 from "../dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2" with { type: 'file' };
|
|
40
|
+
import f37 from "../dist/assets/McpServer-ffXr4nFW.js" with { type: 'file' };
|
|
41
|
+
import f38 from "../dist/assets/upstreamPaths-DQeKSxGc.js" with { type: 'file' };
|
|
42
|
+
import f39 from "../dist/assets/ServerControl-Dr2gXbaU.js" with { type: 'file' };
|
|
43
|
+
import f40 from "../dist/assets/responses-BkR2JTH9.js" with { type: 'file' };
|
|
44
|
+
import f41 from "../dist/assets/toastStore-DnqA_aL-.js" with { type: 'file' };
|
|
45
|
+
import f42 from "../dist/assets/S3BackupPro-BWV_R_Vj.js" with { type: 'file' };
|
|
46
|
+
import f43 from "../dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2" with { type: 'file' };
|
|
47
|
+
import f44 from "../dist/assets/Pagination-Cj7GzYNX.js" with { type: 'file' };
|
|
48
|
+
import f45 from "../dist/assets/connectionStore-DdLzJyut.js" with { type: 'file' };
|
|
49
|
+
import f46 from "../dist/assets/useThroughputSeries-CrTeR9s3.js" with { type: 'file' };
|
|
50
|
+
import f47 from "../dist/assets/useControlActionGuard-DImMgJtj.js" with { type: 'file' };
|
|
51
|
+
import f48 from "../dist/assets/Webhooks-BKWnALGC.js" with { type: 'file' };
|
|
52
|
+
import f49 from "../dist/assets/Usage-Cxx6pZfb.js" with { type: 'file' };
|
|
53
|
+
import f50 from "../dist/assets/QueueDetailPro-AhdOAzEF.js" with { type: 'file' };
|
|
54
|
+
import f51 from "../dist/assets/install-DUkXE5kb.js" with { type: 'file' };
|
|
55
|
+
import f52 from "../dist/assets/Workflows-Cp6jqKeM.js" with { type: 'file' };
|
|
56
|
+
import f53 from "../dist/assets/flowOperationPolicy-B2Etcb3f.js" with { type: 'file' };
|
|
57
|
+
import f54 from "../dist/assets/classicJobsData-BimIyQky.js" with { type: 'file' };
|
|
58
|
+
import f55 from "../dist/assets/Metrics-CIKZGgf0.js" with { type: 'file' };
|
|
59
|
+
import f56 from "../dist/assets/flowMutationSafety-YKTHxqKv.js" with { type: 'file' };
|
|
60
|
+
import f57 from "../dist/assets/PageHeader-DD4vnVog.js" with { type: 'file' };
|
|
61
|
+
import f58 from "../dist/assets/rolldown-runtime-QTnfLwEv.js" with { type: 'file' };
|
|
62
|
+
import f59 from "../dist/assets/QueueControl-g-9kwrpt.js" with { type: 'file' };
|
|
63
|
+
import f60 from "../dist/assets/Jobs-D_TId_Oa.js" with { type: 'file' };
|
|
64
|
+
import f61 from "../dist/assets/api-Bbo86MB6.js" with { type: 'file' };
|
|
65
|
+
import f62 from "../dist/assets/Benchmark-CWYdqm55.js" with { type: 'file' };
|
|
66
|
+
import f63 from "../dist/assets/S3Backup-Cg6sc2JG.js" with { type: 'file' };
|
|
67
|
+
import f64 from "../dist/assets/bq-CSX8DSME.js" with { type: 'file' };
|
|
68
|
+
import f65 from "../dist/assets/Fleet-0zKJSjCw.js" with { type: 'file' };
|
|
69
|
+
import f66 from "../dist/assets/JobsPro-A06ZG5Xi.js" with { type: 'file' };
|
|
70
|
+
import f67 from "../dist/assets/format-Cg7VCIZW.js" with { type: 'file' };
|
|
71
|
+
import f68 from "../dist/assets/Logs-hbh7XhQU.js" with { type: 'file' };
|
|
72
|
+
import f69 from "../dist/assets/form-Dy-an7ew.js" with { type: 'file' };
|
|
73
|
+
import f70 from "../dist/assets/QueuesOverview-sPQILfMU.js" with { type: 'file' };
|
|
74
|
+
import f71 from "../dist/assets/Diagnostics-cZTy4Y2t.js" with { type: 'file' };
|
|
75
|
+
import f72 from "../dist/assets/Settings-BsDDlu-h.js" with { type: 'file' };
|
|
76
|
+
import f73 from "../dist/assets/Workers-SJ9MApx3.js" with { type: 'file' };
|
|
77
|
+
import f74 from "../dist/assets/react-vendor-DfC0iyIS.js" with { type: 'file' };
|
|
78
|
+
import f75 from "../dist/assets/Overview-BBgwyUn4.js" with { type: 'file' };
|
|
79
|
+
import f76 from "../dist/assets/Alerts-Bi8zLKXV.js" with { type: 'file' };
|
|
80
|
+
import f77 from "../dist/index.html" with { type: 'file' };
|
|
80
81
|
|
|
81
82
|
export const ASSETS: Record<string, string> = {
|
|
82
|
-
"/
|
|
83
|
-
"
|
|
84
|
-
"/
|
|
85
|
-
"/assets/
|
|
86
|
-
"/assets/
|
|
87
|
-
"/assets/
|
|
88
|
-
"/assets/
|
|
89
|
-
"/assets/
|
|
90
|
-
"/assets/
|
|
91
|
-
"/assets/
|
|
92
|
-
"/assets/
|
|
93
|
-
"/assets/
|
|
94
|
-
"/assets/
|
|
95
|
-
"/assets/
|
|
96
|
-
"/assets/
|
|
97
|
-
"/assets/
|
|
98
|
-
"/assets/
|
|
99
|
-
"/assets/
|
|
100
|
-
"/assets/
|
|
101
|
-
"/assets/
|
|
102
|
-
"/assets/
|
|
103
|
-
"/assets/
|
|
104
|
-
"/assets/
|
|
105
|
-
"/assets/
|
|
106
|
-
"/assets/
|
|
107
|
-
"/assets/
|
|
108
|
-
"/assets/
|
|
109
|
-
"/assets/
|
|
110
|
-
"/assets/
|
|
111
|
-
"/assets/
|
|
112
|
-
"/assets/
|
|
113
|
-
"/assets/
|
|
114
|
-
"/assets/
|
|
115
|
-
"/assets/
|
|
116
|
-
"/assets/
|
|
117
|
-
"/assets/
|
|
118
|
-
"/assets/
|
|
119
|
-
"/assets/
|
|
120
|
-
"/assets/
|
|
121
|
-
"/assets/
|
|
122
|
-
"/assets/
|
|
123
|
-
"/assets/
|
|
124
|
-
"/assets/
|
|
125
|
-
"/assets/
|
|
126
|
-
"/assets/
|
|
127
|
-
"/assets/
|
|
128
|
-
"/assets/
|
|
129
|
-
"/assets/
|
|
130
|
-
"/assets/
|
|
131
|
-
"/assets/
|
|
132
|
-
"/assets/
|
|
133
|
-
"/assets/
|
|
134
|
-
"/assets/
|
|
135
|
-
"/assets/
|
|
136
|
-
"/assets/
|
|
137
|
-
"/assets/
|
|
138
|
-
"/assets/
|
|
139
|
-
"/assets/
|
|
140
|
-
"/assets/
|
|
141
|
-
"/assets/
|
|
142
|
-
"/assets/
|
|
143
|
-
"/assets/
|
|
144
|
-
"/assets/
|
|
145
|
-
"/assets/
|
|
146
|
-
"/assets/
|
|
147
|
-
"/assets/
|
|
148
|
-
"/assets/
|
|
149
|
-
"/assets/
|
|
150
|
-
"/assets/
|
|
151
|
-
"/assets/
|
|
152
|
-
"/assets/
|
|
153
|
-
"/assets/
|
|
154
|
-
"/assets/
|
|
155
|
-
"/assets/
|
|
156
|
-
"/assets/
|
|
157
|
-
"/
|
|
158
|
-
"/
|
|
83
|
+
"/favicon.svg": f0,
|
|
84
|
+
"/og.png": f1,
|
|
85
|
+
"/.vite/manifest.json": f2,
|
|
86
|
+
"/assets/DlqControl-CIV5278D.js": f3,
|
|
87
|
+
"/assets/index-CxzFSZj3.js": f4,
|
|
88
|
+
"/assets/QueueActions-BgdW95rN.js": f5,
|
|
89
|
+
"/assets/AddJob-jq-VZ_YE.js": f6,
|
|
90
|
+
"/assets/package-C7CtgBEy.js": f7,
|
|
91
|
+
"/assets/QueueDetail-Cv3MLDoE.js": f8,
|
|
92
|
+
"/assets/useServerActionGuard-Cr4KUOeZ.js": f9,
|
|
93
|
+
"/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2": f10,
|
|
94
|
+
"/assets/icons-C1HVBnFn.js": f11,
|
|
95
|
+
"/assets/BulkAddJobs-0cdWqkEF.js": f12,
|
|
96
|
+
"/assets/Flows-CEfm102Y.js": f13,
|
|
97
|
+
"/assets/CronManager-C0-Y2QDg.js": f14,
|
|
98
|
+
"/assets/Dlq-W2xOJiZM.js": f15,
|
|
99
|
+
"/assets/UsagePro-CkC8WYcS.js": f16,
|
|
100
|
+
"/assets/promisePool-BVfQ9n9Q.js": f17,
|
|
101
|
+
"/assets/Card-DptfvL2O.js": f18,
|
|
102
|
+
"/assets/feedback-Dxfj-Fy1.js": f19,
|
|
103
|
+
"/assets/AreaChart-BMYp7z5y.js": f20,
|
|
104
|
+
"/assets/inter-latin-wght-normal-Dx4kXJAl.woff2": f21,
|
|
105
|
+
"/assets/usePolledData-Dp_ynL9f.js": f22,
|
|
106
|
+
"/assets/DlqPro-BuRxGtGt.js": f23,
|
|
107
|
+
"/assets/Cron-dPGwJXqY.js": f24,
|
|
108
|
+
"/assets/JobInspector-BlMj5-Vr.js": f25,
|
|
109
|
+
"/assets/Queues-Bbvh_OCE.js": f26,
|
|
110
|
+
"/assets/LogsPro-BgEIjgfj.js": f27,
|
|
111
|
+
"/assets/MetricsPro-CK3WfLCl.js": f28,
|
|
112
|
+
"/assets/index-DZXf58c2.css": f29,
|
|
113
|
+
"/assets/exportFile-C7xhE8Yh.js": f30,
|
|
114
|
+
"/assets/Button-BCjgbAhY.js": f31,
|
|
115
|
+
"/assets/Database-CseJOrvD.js": f32,
|
|
116
|
+
"/assets/StatusBadge-cYUkK-4P.js": f33,
|
|
117
|
+
"/assets/WorkersPro-BDgHBTpY.js": f34,
|
|
118
|
+
"/assets/controlConnectionEpoch-D4HtriLM.js": f35,
|
|
119
|
+
"/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2": f36,
|
|
120
|
+
"/assets/McpServer-ffXr4nFW.js": f37,
|
|
121
|
+
"/assets/upstreamPaths-DQeKSxGc.js": f38,
|
|
122
|
+
"/assets/ServerControl-Dr2gXbaU.js": f39,
|
|
123
|
+
"/assets/responses-BkR2JTH9.js": f40,
|
|
124
|
+
"/assets/toastStore-DnqA_aL-.js": f41,
|
|
125
|
+
"/assets/S3BackupPro-BWV_R_Vj.js": f42,
|
|
126
|
+
"/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2": f43,
|
|
127
|
+
"/assets/Pagination-Cj7GzYNX.js": f44,
|
|
128
|
+
"/assets/connectionStore-DdLzJyut.js": f45,
|
|
129
|
+
"/assets/useThroughputSeries-CrTeR9s3.js": f46,
|
|
130
|
+
"/assets/useControlActionGuard-DImMgJtj.js": f47,
|
|
131
|
+
"/assets/Webhooks-BKWnALGC.js": f48,
|
|
132
|
+
"/assets/Usage-Cxx6pZfb.js": f49,
|
|
133
|
+
"/assets/QueueDetailPro-AhdOAzEF.js": f50,
|
|
134
|
+
"/assets/install-DUkXE5kb.js": f51,
|
|
135
|
+
"/assets/Workflows-Cp6jqKeM.js": f52,
|
|
136
|
+
"/assets/flowOperationPolicy-B2Etcb3f.js": f53,
|
|
137
|
+
"/assets/classicJobsData-BimIyQky.js": f54,
|
|
138
|
+
"/assets/Metrics-CIKZGgf0.js": f55,
|
|
139
|
+
"/assets/flowMutationSafety-YKTHxqKv.js": f56,
|
|
140
|
+
"/assets/PageHeader-DD4vnVog.js": f57,
|
|
141
|
+
"/assets/rolldown-runtime-QTnfLwEv.js": f58,
|
|
142
|
+
"/assets/QueueControl-g-9kwrpt.js": f59,
|
|
143
|
+
"/assets/Jobs-D_TId_Oa.js": f60,
|
|
144
|
+
"/assets/api-Bbo86MB6.js": f61,
|
|
145
|
+
"/assets/Benchmark-CWYdqm55.js": f62,
|
|
146
|
+
"/assets/S3Backup-Cg6sc2JG.js": f63,
|
|
147
|
+
"/assets/bq-CSX8DSME.js": f64,
|
|
148
|
+
"/assets/Fleet-0zKJSjCw.js": f65,
|
|
149
|
+
"/assets/JobsPro-A06ZG5Xi.js": f66,
|
|
150
|
+
"/assets/format-Cg7VCIZW.js": f67,
|
|
151
|
+
"/assets/Logs-hbh7XhQU.js": f68,
|
|
152
|
+
"/assets/form-Dy-an7ew.js": f69,
|
|
153
|
+
"/assets/QueuesOverview-sPQILfMU.js": f70,
|
|
154
|
+
"/assets/Diagnostics-cZTy4Y2t.js": f71,
|
|
155
|
+
"/assets/Settings-BsDDlu-h.js": f72,
|
|
156
|
+
"/assets/Workers-SJ9MApx3.js": f73,
|
|
157
|
+
"/assets/react-vendor-DfC0iyIS.js": f74,
|
|
158
|
+
"/assets/Overview-BBgwyUn4.js": f75,
|
|
159
|
+
"/assets/Alerts-Bi8zLKXV.js": f76,
|
|
160
|
+
"/index.html": f77,
|
|
159
161
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{f as t,g as n,r,t as i}from"./react-vendor-CFL9l8LK.js";import{t as a}from"./bq-DR2BTISO.js";import{t as o}from"./toastStore-XmMX7A5W.js";import{C as s,d as c,u as l}from"./icons-DH9SS1DA.js";import{r as u}from"./StatusBadge-DereLzOj.js";import{n as d}from"./usePolledData-CEyyLRYa.js";import{n as f,t as p}from"./Button-_aSJvRoW.js";import{t as m}from"./Card-egIDLwVk.js";import{i as h,n as ee,r as g,t as _}from"./feedback-CtGN_kqB.js";import{t as v}from"./PageHeader-CQzNsw8r.js";import{l as y,s as b}from"./format-Cg7VCIZW.js";import{a as x}from"./form-DG3X6cLL.js";import{t as S}from"./Pagination-CSkzhNW6.js";import{r as C,t as w}from"./flowMutationSafety-YKTHxqKv.js";import{t as te}from"./exportFile-C7xhE8Yh.js";import{t as T}from"./QueueControl-DaZjeZnw.js";var E=e(n(),1),D=i();function O({total:e,discoveryError:t,healthy:n,statsError:r,queue:i,topReason:a,pendingRetry:o,reasonCount:s}){return(0,D.jsxs)(`div`,{className:`mb-6 grid grid-cols-2 gap-4 md:grid-cols-4`,children:[(0,D.jsxs)(m,{children:[(0,D.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,D.jsx)(`span`,{className:`text-[11px] font-medium uppercase tracking-wider text-faint`,children:`Total in DLQ`}),(0,D.jsx)(`span`,{className:u(`rounded-full px-2 py-0.5 text-[11px] font-medium`,t?`bg-amber-500/10 text-warning`:e==null?`bg-surface-2 text-muted`:n?`bg-emerald-500/10 text-success`:`bg-red-500/10 text-danger`),children:t?`Unavailable`:e==null?`Loading`:n?`Healthy`:`Attention`})]}),(0,D.jsx)(`div`,{className:u(`mt-2 text-3xl font-bold tnum`,e==null||t?`text-muted`:n?`text-success`:`text-danger`),children:e==null?`—`:b(e)})]}),(0,D.jsxs)(m,{children:[(0,D.jsx)(`div`,{className:`text-[11px] font-medium uppercase tracking-wider text-faint`,children:`Top Reason`}),(0,D.jsx)(`div`,{className:`mt-2 text-lg font-semibold text-fg`,children:t||r?`Unavailable`:i?a??`No failures`:`Select a queue`})]}),(0,D.jsxs)(m,{children:[(0,D.jsx)(`div`,{className:`text-[11px] font-medium uppercase tracking-wider text-faint`,children:`Pending Retry`}),(0,D.jsx)(`div`,{className:`mt-2 text-3xl font-bold tnum text-fg`,children:o==null?`—`:b(o)}),(0,D.jsx)(`div`,{className:`mt-1 text-xs text-faint`,children:i?`in this queue`:`awaiting retry`})]}),(0,D.jsxs)(m,{children:[(0,D.jsx)(`div`,{className:`text-[11px] font-medium uppercase tracking-wider text-faint`,children:`Failure Types`}),(0,D.jsx)(`div`,{className:`mt-2 text-3xl font-bold tnum text-fg`,children:s==null?`—`:b(s)}),(0,D.jsx)(`div`,{className:`mt-1 text-xs text-faint`,children:`distinct reasons`})]})]})}function k({queues:e,queue:t,onSelect:n}){return e.length===0?null:(0,D.jsxs)(m,{className:`mb-6`,children:[(0,D.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-between gap-2`,children:[(0,D.jsx)(`span`,{className:`text-[11px] font-medium uppercase tracking-wider text-faint`,children:`DLQ by queue`}),(0,D.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,D.jsxs)(p,{size:`sm`,disabled:!0,title:w,children:[(0,D.jsx)(s,{className:`size-3.5`}),` Retry all (`,e.length,` queues)`]}),(0,D.jsxs)(p,{variant:`danger`,size:`sm`,disabled:!0,title:C,children:[`Purge all (`,e.length,` queues)`]})]})]}),(0,D.jsx)(`div`,{className:`grid grid-cols-2 gap-3 md:grid-cols-4 xl:grid-cols-5`,children:e.map(e=>(0,D.jsxs)(`button`,{type:`button`,onClick:()=>n(e.name),className:u(`rounded-lg border p-3 text-left transition-colors`,t===e.name?`border-accent/50 bg-surface-2`:`border-line hover:border-line-strong`),children:[(0,D.jsx)(`div`,{className:`truncate font-mono text-xs text-muted`,children:e.name}),(0,D.jsx)(`div`,{className:`mt-1 text-xl font-bold tnum text-danger`,children:e.dlq})]},e.name))})]})}function A({queue:e,queues:t,reason:n,reasons:r,sort:i,search:a,pageScoped:o,onQueue:l,onReason:u,onSort:d,onSearch:m,onExport:h}){return(0,D.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-3`,children:[(0,D.jsx)(`div`,{className:`w-48`,children:(0,D.jsxs)(x,{value:e,"aria-label":`Queue`,name:`dlq-queue`,autoComplete:`off`,onChange:e=>l(e.target.value),children:[(0,D.jsx)(`option`,{value:``,children:`Select a queue…`}),t.map(e=>(0,D.jsxs)(`option`,{value:e.name,children:[e.name,e.dlq?` (${e.dlq})`:``]},e.name))]})}),(0,D.jsx)(`div`,{className:`w-40`,children:(0,D.jsxs)(x,{value:n,onChange:e=>u(e.target.value),"aria-label":`Filter by reason`,name:`dlq-reason-filter`,autoComplete:`off`,children:[(0,D.jsx)(`option`,{value:`all`,children:`All Reasons`}),r.map(e=>(0,D.jsx)(`option`,{value:e,children:e},e))]})}),(0,D.jsx)(`div`,{className:`w-36`,children:(0,D.jsxs)(x,{value:i,onChange:e=>d(e.target.value),"aria-label":o?`Sort this page`:`Sort`,name:`dlq-sort`,autoComplete:`off`,children:[(0,D.jsxs)(`option`,{value:`newest`,children:[`Newest First`,o?` (this page)`:``]}),(0,D.jsxs)(`option`,{value:`oldest`,children:[`Oldest First`,o?` (this page)`:``]})]})}),(0,D.jsx)(`input`,{value:a,onChange:e=>m(e.target.value),placeholder:`Filter this page by job ID…`,"aria-label":`Filter this page by job ID`,name:`dlq-job-filter`,autoComplete:`off`,className:`h-9 min-w-40 flex-1 rounded-lg border border-line bg-surface px-3 text-sm text-fg placeholder:text-faint focus:border-accent/60 focus:outline-none focus:ring-2 focus:ring-accent/30`}),(0,D.jsxs)(p,{size:`sm`,disabled:!0,title:w,children:[(0,D.jsx)(s,{className:`size-3.5`}),` Retry All`]}),(0,D.jsx)(p,{variant:`danger`,size:`sm`,disabled:!0,title:C,children:`Purge All`}),(0,D.jsx)(f,{"aria-label":`Export this page to CSV`,title:`Export this page to CSV`,disabled:!e,onClick:h,children:(0,D.jsx)(c,{className:`size-3.5`})})]})}function j({entries:e,expanded:t,onToggle:n}){return(0,D.jsx)(`div`,{className:`overflow-x-auto rounded-xl border border-line bg-surface`,children:(0,D.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,D.jsx)(`thead`,{children:(0,D.jsxs)(`tr`,{className:`border-b border-line text-left text-[11px] uppercase tracking-wider text-faint`,children:[(0,D.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Job ID`}),(0,D.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Name`}),(0,D.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Reason`}),(0,D.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Error`}),(0,D.jsx)(`th`,{className:`px-5 py-3 text-right font-medium`,children:`Entered`}),(0,D.jsx)(`th`,{className:`w-16 px-5 py-3`})]})}),(0,D.jsx)(`tbody`,{children:e.map(e=>{let i=`${e.job.id}-${e.enteredAt}`;return(0,D.jsxs)(`tr`,{className:`border-b border-line last:border-0 align-top hover:bg-surface-2/40`,children:[(0,D.jsx)(`td`,{className:`px-5 py-3`,children:(0,D.jsx)(r,{to:`/job?id=${encodeURIComponent(e.job.id)}`,className:`font-mono text-xs text-accent hover:underline`,children:e.job.id})}),(0,D.jsx)(`td`,{className:`px-5 py-3 font-mono text-xs text-muted`,children:e.job.name??`default`}),(0,D.jsx)(`td`,{className:`px-5 py-3`,children:(0,D.jsx)(`span`,{className:`rounded-md bg-red-500/10 px-2 py-0.5 text-xs text-danger`,children:e.reason})}),(0,D.jsx)(`td`,{className:`max-w-md px-5 py-3 text-xs text-danger/80`,children:e.error?(0,D.jsx)(`button`,{type:`button`,title:e.error,"aria-expanded":t.has(i),onClick:()=>n(i),className:u(`block w-full break-words text-left`,!t.has(i)&&`line-clamp-2`),children:e.error}):`—`}),(0,D.jsx)(`td`,{className:`px-5 py-3 text-right text-faint`,children:y(e.enteredAt)}),(0,D.jsx)(`td`,{className:`px-5 py-3 text-right`,children:(0,D.jsx)(f,{"aria-label":`Retry unavailable`,disabled:!0,title:w,children:(0,D.jsx)(s,{className:`size-3.5`})})})]},i)})})]})})}var M=25,ne=[];function N(){let[e,n]=t(),[r,i]=(0,E.useState)(``),[s,c]=(0,E.useState)(`all`),[u,f]=(0,E.useState)(`newest`),[p,m]=(0,E.useState)(``),[y,b]=(0,E.useState)(0),[x,C]=(0,E.useState)(new Set),{data:N,error:P,loading:F,refetch:I}=d(T,[],{intervalMs:1e4}),L=N?.queues??ne,R=N?L.reduce((e,t)=>e+t.dlq,0):null,{data:z,error:B,loading:V,refetch:H}=d((0,E.useCallback)(async()=>{if(!r)return{queue:r,page:y,entries:[],entriesTotal:0,stats:null,statsError:null};let[e,t]=await Promise.all([a.dlq(r,M,y*M),a.dlqStats(r).then(e=>({stats:e.stats,error:null})).catch(e=>({stats:null,error:e.message||`Unknown error`}))]);return{queue:r,page:y,entries:e.entries??[],entriesTotal:e.total??0,stats:t.stats,statsError:t.error}},[r,y]),[r,y]),U=z?.queue===r&&z.page===y?z:null;(0,E.useEffect)(()=>{if(!U)return;let e=U.entriesTotal??0;y>0&&y*M>=e&&b(Math.max(0,Math.ceil(e/M)-1))},[U,y]);let W=()=>{let e=(U?.entries??[]).map(e=>({jobId:e.job.id,reason:e.reason,error:e.error??``,enteredAt:new Date(e.enteredAt).toISOString(),attempts:e.attempts?.length??0}));if(e.length===0){o.info(`Nothing to export on this page`);return}te(`dlq-${r}`,e,[`jobId`,`reason`,`error`,`enteredAt`,`attempts`])},G=e=>{X.current=!0,i(e),b(0),c(`all`),n(e?{queue:e}:{},{replace:!0})};(0,E.useEffect)(()=>{s===`all`||!U||(U.stats?.byReason?.[s]??0)>0||c(`all`)},[U,s]);let K=U?.stats?.byReason??{},q=Object.keys(K).filter(e=>K[e]>0),J=[...q].sort((e,t)=>(K[t]??0)-(K[e]??0))[0],Y=(0,E.useMemo)(()=>L.filter(e=>e.dlq>0).sort((e,t)=>t.dlq-e.dlq),[L]),X=(0,E.useRef)(!1),Z=e.get(`queue`);(0,E.useEffect)(()=>{if(!(X.current||r)){if(Z){if(L.some(e=>e.name===Z)){X.current=!0,i(Z),b(0),c(`all`);return}if(L.length===0)return}Y.length!==0&&(X.current=!0,i(Y[0].name),b(0),c(`all`))}},[r,L,Y,Z]);let Q=(0,E.useMemo)(()=>{let e=U?.entries??[];s!==`all`&&(e=e.filter(e=>e.reason===s));let t=p.trim().toLowerCase();return t&&(e=e.filter(e=>e.job.id.toLowerCase().includes(t))),[...e].sort((e,t)=>u===`newest`?t.enteredAt-e.enteredAt:e.enteredAt-t.enteredAt)},[U,s,p,u]),re=R===0&&!P,$=s!==`all`||p.trim()!==``,ie=(U?.entriesTotal??0)>M;return(0,D.jsxs)(`div`,{children:[(0,D.jsx)(v,{title:`Dead Letter Queue`,description:`Jobs that failed after exhausting all retries. Inspect and export entries without mutating flow topology.`,live:!!r&&!!U&&!U.statsError&&!B&&!P}),B&&U&&(0,D.jsx)(h,{message:`DLQ refresh failed — showing the last successful page.`,onRetry:H}),P&&(0,D.jsx)(h,{onRetry:I,message:`Could not discover queue DLQ totals — ${P.message}. Health status is unavailable.`}),U?.statsError&&(0,D.jsx)(h,{message:`DLQ statistics are unavailable — ${U.statsError}. The entry list may still be current.`,onRetry:H}),(0,D.jsx)(O,{total:R,discoveryError:!!P,healthy:re,statsError:!!U?.statsError,queue:r,topReason:J,pendingRetry:U?.stats?.pendingRetry,reasonCount:U?.stats?q.length:void 0}),(0,D.jsx)(k,{queues:Y,queue:r,onSelect:G}),(0,D.jsx)(A,{queue:r,queues:L,reason:s,reasons:q,sort:u,search:p,pageScoped:ie,onQueue:G,onReason:c,onSort:f,onSearch:m,onExport:W}),(0,D.jsx)(`p`,{className:`mb-4 text-xs text-warning`,children:w}),B&&!U?(0,D.jsx)(ee,{error:B,onRetry:H}):F&&!N&&!r&&!P?(0,D.jsx)(g,{label:`Discovering queues…`}):V&&!U&&!B?(0,D.jsx)(g,{label:`Loading DLQ…`}):P&&!r?(0,D.jsx)(_,{icon:(0,D.jsx)(l,{}),title:`Could not discover queues`,hint:`${P.message}. Retry the queue discovery request above.`}):r?Q.length===0?(0,D.jsx)(_,{icon:(0,D.jsx)(l,{}),title:$?`No matches on this page`:`No dead letter entries`,hint:$?`No entries on this page match your filter — the filter is page-scoped. Use the pager below to check other pages.`:`This queue has no dead letter entries.`}):(0,D.jsx)(j,{entries:Q,expanded:x,onToggle:e=>C(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}):(0,D.jsx)(_,{icon:(0,D.jsx)(l,{}),title:`Select a queue`,hint:`Choose a queue from the dropdown to view its dead letter queue entries.`}),r&&U&&(0,D.jsx)(S,{page:y,pageSize:M,total:U.entriesTotal,onPageChange:b,label:`entries`})]})}export{N as DlqPro};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{f as t,g as n,r,t as i}from"./react-vendor-CFL9l8LK.js";import{t as a}from"./bq-DR2BTISO.js";import{t as o}from"./toastStore-XmMX7A5W.js";import{T as s,d as c,f as l,x as u}from"./icons-DH9SS1DA.js";import{r as d,t as f}from"./StatusBadge-DereLzOj.js";import{n as p}from"./usePolledData-CEyyLRYa.js";import{n as m,t as h}from"./Button-_aSJvRoW.js";import{i as g,n as _,r as v}from"./feedback-CtGN_kqB.js";import{t as y}from"./PageHeader-CQzNsw8r.js";import{a as b,c as x,i as S,s as C,t as ee}from"./format-Cg7VCIZW.js";import{r as w}from"./index-DZFZr0Mi.js";import{a as T}from"./form-DG3X6cLL.js";import{t as E}from"./Pagination-CSkzhNW6.js";import{r as D,t as O}from"./useServerActionGuard-CUx8TOAC.js";import{t as te}from"./exportFile-C7xhE8Yh.js";import{t as k}from"./flowOperationPolicy-B2Etcb3f.js";var A=e(n(),1),j=i();function ne(e){return(0,j.jsxs)(`div`,{className:`mb-6 grid grid-cols-2 gap-4 md:grid-cols-4 xl:grid-cols-8`,children:[(0,j.jsx)(w,{label:`Total`,value:e.total,hint:`all queues`,compact:!0}),(0,j.jsx)(w,{label:`Waiting`,value:e.waiting,tone:`amber`,hint:`standard priority`,compact:!0}),(0,j.jsx)(w,{label:`Prioritized`,value:e.prioritized,tone:`amber`,compact:!0}),(0,j.jsx)(w,{label:`Active`,value:e.active,tone:`blue`,compact:!0}),(0,j.jsx)(w,{label:`Flow-blocked`,value:e.flowBlocked,tone:`blue`,compact:!0}),(0,j.jsx)(w,{label:`Completed`,value:e.completed,tone:`green`,compact:!0}),(0,j.jsx)(w,{label:`Failed`,value:e.failed,tone:e.failedCount!=null&&e.failedCount>0?`red`:`default`,compact:!0}),(0,j.jsx)(w,{label:`Error Rate`,value:e.errorRate,tone:e.errorRateTone,compact:!0})]})}var M=[`all`,`waiting`,`prioritized`,`active`,`delayed`,`waiting-children`,`paused`,`completed`,`failed`];function N(e,t){return e===t?`${t} selected`:`${e} of ${t} selected match this filter`}function P(e,t){let n=new Set(e);for(let e of t)n.delete(e);return n}function F(e=0){return e>=10?{text:`HIGH`,className:`text-warning`}:e>=1?{text:`MEDIUM`,className:`text-blue-400`}:{text:`LOW`,className:`text-faint`}}function re({queue:e,rows:t,search:n,discoveryError:i,selected:o,allSelected:s,bulkBusy:c,busyIds:p,page:h,hasNext:g,onToggleAll:_,onToggle:v,onRun:y,onPage:x}){return(0,j.jsxs)(j.Fragment,{children:[e&&(0,j.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`span`,{className:`text-faint`,children:`Jobs in queue`}),(0,j.jsx)(`span`,{className:`rounded-md bg-surface-2 px-2 py-0.5 font-mono text-xs text-fg`,children:e})]}),(0,j.jsx)(`div`,{className:`overflow-x-auto rounded-xl border border-line bg-surface`,children:(0,j.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,j.jsx)(`thead`,{children:(0,j.jsxs)(`tr`,{className:`border-b border-line text-left text-[11px] uppercase tracking-wider text-faint`,children:[(0,j.jsx)(`th`,{className:`w-10 px-5 py-3`,children:(0,j.jsx)(`input`,{type:`checkbox`,checked:s,ref:e=>{e&&(e.indeterminate=o.size>0&&!s)},"aria-checked":o.size>0&&!s?`mixed`:s,onChange:_,"aria-label":`Select all jobs on page`,className:`accent-accent`})}),(0,j.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Job ID`}),(0,j.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Name`}),(0,j.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Status`}),(0,j.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Priority`}),(0,j.jsx)(`th`,{className:`px-5 py-3 text-right font-medium`,children:`Created`}),(0,j.jsx)(`th`,{className:`px-5 py-3 text-right font-medium`,children:`Duration`}),(0,j.jsx)(`th`,{className:`w-28 px-5 py-3 text-right font-medium`,children:`Actions`})]})}),(0,j.jsx)(`tbody`,{children:t.length===0?(0,j.jsx)(`tr`,{children:(0,j.jsx)(`td`,{colSpan:8,className:`px-5 py-12 text-center text-sm text-faint`,children:n.trim()?`No jobs on this page match your ID or name filter.`:e?`No jobs found.`:i?`Queue discovery failed. Retry above.`:`Select a queue.`})}):t.map(e=>{let t=F(e.priority),n=k(e.state),i=c||p.has(e.id);return(0,j.jsxs)(`tr`,{className:`border-b border-line last:border-0 hover:bg-surface-2/40`,children:[(0,j.jsx)(`td`,{className:`px-5 py-3`,children:(0,j.jsx)(`input`,{type:`checkbox`,checked:o.has(e.id),onChange:()=>v(e.id),"aria-label":`Select job ${e.id}`,className:`accent-accent`})}),(0,j.jsx)(`td`,{className:`px-5 py-3 font-mono text-xs text-accent/90`,children:(0,j.jsx)(`span`,{className:`block max-w-[16rem] truncate`,title:e.id,children:e.id})}),(0,j.jsx)(`td`,{className:`px-5 py-3 font-mono text-xs text-muted`,children:e.name??`default`}),(0,j.jsx)(`td`,{className:`px-5 py-3`,children:(0,j.jsx)(f,{status:String(e.state??`waiting`)})}),(0,j.jsx)(`td`,{className:d(`px-5 py-3 text-xs font-semibold`,t.className),children:t.text}),(0,j.jsx)(`td`,{className:`px-5 py-3 text-right text-faint`,children:S(e.createdAt)}),(0,j.jsx)(`td`,{className:`px-5 py-3 text-right tnum text-muted`,children:b(e.startedAt&&e.completedAt?e.completedAt-e.startedAt:void 0)}),(0,j.jsx)(`td`,{className:`px-5 py-3`,children:(0,j.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,j.jsx)(r,{to:`/job?id=${encodeURIComponent(e.id)}`,"aria-label":`Inspect job ${e.id}`,className:`inline-flex size-8 items-center justify-center rounded-lg text-muted transition-colors hover:bg-surface-2 hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50`,children:(0,j.jsx)(l,{className:`size-3.5`})}),n.promote&&(0,j.jsx)(m,{"aria-label":`Promote job`,disabled:i,onClick:()=>y(e,`Promote`,()=>a.promoteJob(e.id)),children:(0,j.jsx)(u,{className:`size-3.5`})})]})})]},e.id)})})]})}),(0,j.jsx)(E,{page:h,pageSize:25,hasNext:g,onPageChange:x,label:`jobs`})]})}function I({queue:e,summary:t,status:n,search:r,selectedTotal:i,selectedVisible:a,canPromote:o,bulkBusy:c,onQueue:l,onStatus:u,onSearch:d,onPromote:f}){return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`w-48`,children:(0,j.jsx)(T,{value:e,"aria-label":`Queue`,name:`jobs-queue`,autoComplete:`off`,onChange:e=>l(e.target.value),children:t.map(e=>(0,j.jsx)(`option`,{value:e.name,children:e.name},e.name))})}),(0,j.jsx)(`div`,{className:`w-48`,children:(0,j.jsx)(T,{"aria-label":`Job state`,name:`jobs-state`,value:n,onChange:e=>u(e.target.value),children:M.map(e=>(0,j.jsx)(`option`,{value:e,children:e===`all`?`All states`:e},e))})}),(0,j.jsxs)(`div`,{className:`relative ml-auto min-w-56 flex-1 md:max-w-xs`,children:[(0,j.jsx)(s,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-faint`}),(0,j.jsx)(`input`,{value:r,onChange:e=>d(e.target.value),placeholder:`Filter this page by ID or name…`,"aria-label":`Filter by job ID or name`,name:`jobs-id-filter`,autoComplete:`off`,className:`h-9 w-full rounded-lg border border-line bg-surface pl-9 pr-3 text-sm text-fg placeholder:text-faint focus:border-accent/60 focus:outline-none focus:ring-2 focus:ring-accent/30`})]})]}),i>0&&(0,j.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2 rounded-lg border border-line bg-surface-2 px-4 py-2 text-sm`,children:[(0,j.jsx)(`span`,{className:`mr-1 text-muted`,children:N(a,i)}),o?(0,j.jsx)(h,{size:`sm`,disabled:c,onClick:f,children:`Promote selected`}):(0,j.jsx)(`span`,{className:`text-xs text-faint`,children:a===0?`The selected jobs are hidden by the filter — clear it to act on them.`:`No actions apply to the selected job states.`})]})]})}function ie({queue:e,rows:t,selected:n,setSelected:r,refetch:i}){let[a,s]=(0,A.useState)(new Set),[c,l]=(0,A.useState)(!1),[u,d]=(0,A.useState)(null),f=D(`jobs:${e}`);return(0,A.useEffect)(()=>{s(new Set),l(!1),d(null)},[f.scopeKey]),{actionMsg:u,bulkBusy:c,busyIds:a,runBulk:async(e,a,s,c)=>{let u=t.filter(e=>n.has(e.id)&&s(e));if(u.length===0||c&&!window.confirm(c(u.length)))return;let p=f.begin([`bulk`,...u.map(e=>`job:${e.id}`)]);if(p){l(!0),d(null);try{let t=await Promise.allSettled(u.map(async t=>{O(await a(t),`${e} ${t.id}`)}));if(!p.isCurrent())return;let n=t.filter(e=>e.status===`fulfilled`).length,s=t.length-n,c=`${e}: ${n} succeeded${s?`, ${s} failed`:``}`;d({ok:s===0,text:c}),s===0?o.success(c):o.error(c),r(e=>P(e,u.map(e=>e.id))),i()}finally{p.finish()&&l(!1)}}},runOne:async(e,t,n,r)=>{if(r&&!window.confirm(r))return;let a=f.begin(`job:${e.id}`);if(a){s(t=>new Set(t).add(e.id)),d(null);try{if(O(await n(),t),!a.isCurrent())return;d({ok:!0,text:`${t} ✓`}),o.success(`${t} ✓`,e.id),i()}catch(e){if(!a.isCurrent())return;d({ok:!1,text:`${t} failed: ${e.message}`}),o.error(`${t} failed`,e.message)}finally{a.finish()&&s(t=>{let n=new Set(t);return n.delete(e.id),n})}}}}}function L(){let[e,n]=t(),[r,i]=(0,A.useState)(e.get(`queue`)??``),[s,l]=(0,A.useState)(()=>{let t=e.get(`status`);return t&&M.includes(t)?t:`all`}),[u,d]=(0,A.useState)(``),[f,m]=(0,A.useState)(0),[b,S]=(0,A.useState)(new Set),{data:w,error:T,loading:E,refetch:D}=p(()=>a.queuesSummary(),[],{intervalMs:3e4}),{data:O,error:N,refetch:P}=p(()=>a.stats(),[],{intervalMs:1e4});(0,A.useEffect)(()=>{!w||w.some(e=>e.name===r)||(i(w[0]?.name??``),m(0))},[w,r]);let F=`${r}|${s}|${f}`,{data:L,error:R,loading:z,refetch:B}=p((0,A.useCallback)(async()=>{if(!r)return{view:F,jobs:[]};let e=s===`all`?void 0:[s],t=await a.jobsList(r,e,25,f*25);return{view:F,jobs:(t.jobs??[]).map(e=>({...e,queue:e.queue??r}))}},[r,s,f,F]),[r,s,f]),V=L?.view===F?L.jobs:null,ae=(V?.length??0)===25,H=(0,A.useMemo)(()=>{let e=u.trim().toLowerCase();return e?(V??[]).filter(t=>t.id.toLowerCase().includes(e)||t.name?.toLowerCase().includes(e)):V??[]},[V,u]),U=O?.stats,W=(0,A.useMemo)(()=>w?.reduce((e,t)=>e+(t.counts?.failed??0),0)??null,[w]),G=U&&W!=null?ee(U.completed,W):null,K=e=>U?C(e):`—`,q=()=>m(0),J=(e,t)=>{let r={};e&&(r.queue=e),t!==`all`&&(r.status=t),n(r,{replace:!0})};(0,A.useEffect)(()=>{S(new Set)},[r,s,f]);let oe=e=>S(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),Y=H.length>0&&H.every(e=>b.has(e.id)),se=()=>S(()=>Y?new Set:new Set(H.map(e=>e.id))),{actionMsg:X,bulkBusy:Z,busyIds:ce,runBulk:le,runOne:ue}=ie({queue:r,rows:H,selected:b,setSelected:S,refetch:B}),Q={promote:e=>k(e.state).promote},$=H.filter(e=>b.has(e.id)),de={promote:$.some(Q.promote)};return(0,j.jsxs)(`div`,{children:[(0,j.jsx)(y,{title:`Jobs Explorer`,description:`Browse, inspect, and manage individual jobs.`,live:!!r&&V!=null&&!R&&!T&&!N,actions:(0,j.jsxs)(h,{size:`sm`,disabled:!V||H.length===0,onClick:()=>{if(H.length===0){o.info(`No jobs to export on this page`);return}let e=H.map(e=>({id:e.id,name:e.name??`default`,queue:e.queue??r,state:e.state??``,priority:e.priority??0,attempts:e.attempts??0,maxAttempts:e.maxAttempts??``,createdAt:e.createdAt?new Date(e.createdAt).toISOString():``,durationMs:e.startedAt&&e.completedAt?e.completedAt-e.startedAt:``}));te(`jobs-${r}-${s}`,e,[`id`,`name`,`queue`,`state`,`priority`,`attempts`,`maxAttempts`,`createdAt`,`durationMs`])},children:[(0,j.jsx)(c,{className:`size-3.5`}),` Export CSV`]})}),T&&(0,j.jsx)(g,{onRetry:D,message:w?`Queue inventory refresh failed — showing the last successful queue totals. ${T.message}`:`Could not discover queues — ${T.message}. Select an existing queue from the URL or retry.`}),N&&(0,j.jsx)(g,{onRetry:P,message:O?`Server-wide totals refresh failed — showing the last successful totals. ${N.message}`:`Server-wide job totals are unavailable — ${N.message}. The selected queue page may still be current.`}),(0,j.jsx)(ne,{total:U&&W!=null?C(U.completed+W+U.waiting+U.prioritized+U.active+U.delayed+U[`waiting-children`]):`—`,waiting:K(U?.waiting),prioritized:K(U?.prioritized),active:K(U?.active),flowBlocked:K(U?.[`waiting-children`]),completed:K(U?.completed),failed:W==null?`—`:C(W),failedCount:W,errorRate:G==null?`—`:x(G),errorRateTone:G==null?`default`:G>.05?`red`:`green`}),(0,j.jsx)(I,{queue:r,summary:w??[],status:s,search:u,selectedTotal:b.size,selectedVisible:$.length,canPromote:de.promote,bulkBusy:Z,onQueue:e=>{i(e),q(),J(e,s)},onStatus:e=>{l(e),q(),J(r,e)},onSearch:d,onPromote:()=>le(`Promote`,e=>a.promoteJob(e.id),Q.promote)}),X&&(0,j.jsx)(`div`,{role:`status`,className:`mb-3 text-sm ${X.ok?`text-success`:`text-danger`}`,children:X.text}),R&&V&&(0,j.jsx)(g,{message:`Job refresh failed — showing the last successful page.`,onRetry:B}),R&&!V?(0,j.jsx)(_,{error:R,onRetry:B}):E&&!w&&!r&&!T?(0,j.jsx)(v,{label:`Discovering queues…`}):z&&!V?(0,j.jsx)(v,{label:`Loading jobs…`}):(0,j.jsx)(re,{queue:r,rows:H,search:u,discoveryError:!!T,selected:b,allSelected:Y,bulkBusy:Z,busyIds:ce,page:f,hasNext:ae,onToggleAll:se,onToggle:oe,onRun:(e,t,n)=>void ue(e,t,n),onPage:m})]})}export{L as JobsPro};
|