@dudousxd/nestjs-durable-dashboard 0.41.0 → 0.42.0

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.
@@ -1 +1 @@
1
- import{Q as k,c as A,j as n,r as y,a as v,A as x,R as b}from"./index-Ho8MqZ0t.js";const a=Date.parse("2026-07-29T09:14:00.000Z"),e=r=>new Date(a+r).toISOString(),u=[{id:"ord-9f2c1a4b",workflow:"checkout",workflowVersion:"4",status:"failed",namespace:"default",origin:"acme-storefront",createdAt:e(-62e4),updatedAt:e(-54e4),tags:["tier:pro","region:us-east"],searchAttributes:{amount:249,tier:"pro"},input:{orderId:"ord-9f2c1a4b",amount:249,currency:"USD"},error:{message:"charge declined: card_expired (stripe: card_error)"}},{id:"ord-77ab3012",workflow:"checkout",workflowVersion:"4",status:"completed",origin:"acme-storefront",createdAt:e(-18e5),updatedAt:e(-1744e3),tags:["tier:free"],input:{orderId:"ord-77ab3012",amount:19},output:{charged:!0}},{id:"inv-2b91ee70",workflow:"invoiceSettlement",workflowVersion:"2",status:"completed",createdAt:e(-21e5),updatedAt:e(-201e4),input:{invoice:"INV-4471"}},{id:"shp-01d4f7c9",workflow:"shipmentSync",workflowVersion:"1",status:"running",origin:"@dudousxd/nestjs-catalog-pipeline",createdAt:e(-9e4),updatedAt:e(-4e3),input:{carrier:"dhl"}},{id:"shp-55c2aa18",workflow:"shipmentSync",workflowVersion:"1",status:"completed",origin:"@dudousxd/nestjs-catalog-pipeline",createdAt:e(-34e5),updatedAt:e(-333e4),input:{carrier:"ups"}},{id:"rep-8812cd44",workflow:"nightlyReport",workflowVersion:"7",status:"suspended",namespace:"acme",origin:"@dudousxd/nestjs-agent",createdAt:e(-54e5),updatedAt:e(-3e5),waiting:{on:"signal",name:"approve"},input:{day:"2026-07-28"}},{id:"ord-1177fe22",workflow:"checkout",workflowVersion:"4",status:"completed",namespace:"acme",origin:"acme-storefront",createdAt:e(-72e5),updatedAt:e(-712e4),tags:["tier:pro"],input:{orderId:"ord-1177fe22",amount:640},output:{charged:!0}},{id:"bck-4410aa03",workflow:"backfillLedger",workflowVersion:"1",status:"cancelled",createdAt:e(-9e6),updatedAt:e(-888e4),input:{from:"2026-01-01"}},{id:"ord-6650bb91",workflow:"checkout",workflowVersion:"4",status:"pending",origin:"acme-storefront",createdAt:e(-12e3),updatedAt:e(-12e3),input:{orderId:"ord-6650bb91",amount:78}}],I=[{runId:"ord-9f2c1a4b",seq:1,name:"reserveInventory",kind:"remote",status:"completed",attempts:1,workerGroup:"inventory",enqueuedAt:e(-619e3),startedAt:e(-618200),finishedAt:e(-615900),input:{sku:"SKU-8823",qty:1},output:{reservationId:"rsv-77120"}},{runId:"ord-9f2c1a4b",seq:2,name:"quoteShipping",kind:"remote",status:"completed",attempts:1,workerGroup:"shipping",enqueuedAt:e(-615800),startedAt:e(-615100),finishedAt:e(-612400),output:{carrier:"dhl",cents:890}},{runId:"ord-9f2c1a4b",seq:3,name:"chargeCard",kind:"remote",status:"failed",attempts:3,workerGroup:"payments",enqueuedAt:e(-612300),startedAt:e(-611800),finishedAt:e(-54e4),input:{amount:249,currency:"USD"},error:{message:"charge declined: card_expired (stripe: card_error)"},events:[{at:a-611700,level:"info",message:"attempt 1 → gateway timeout, retrying"},{at:a-59e4,level:"warn",message:"attempt 2 → gateway timeout, retrying"},{at:a-540200,level:"error",message:"attempt 3 → card_expired, giving up"}]}],S=[{runId:"shp-01d4f7c9",seq:1,name:"fetchManifest",kind:"remote",status:"completed",attempts:1,workerGroup:"shipping",enqueuedAt:e(-89e3),startedAt:e(-88400),finishedAt:e(-84100),output:{parcels:42}},{runId:"shp-01d4f7c9",seq:2,name:"syncCarrier",kind:"remote",status:"pending",attempts:1,workerGroup:"shipping",enqueuedAt:e(-84e3),startedAt:e(-83600),finishedAt:e(-4e3),input:{carrier:"dhl",parcels:42}}],q={"shp-01d4f7c9":{run:u[3],timeline:S,children:[]},"ord-9f2c1a4b":{run:u[0],timeline:I,children:[]}},j=[{group:"checkout",kind:"workflow",depth:0,liveWorkers:[{group:"checkout",instanceId:"api-7f9c4d-2",lastBeatAt:a-2e3,status:{runtime:"node",concurrency:{mode:"adaptive",limit:16,min:4,max:32},inFlight:3,rssPct:41,cpuPct:22,throughputPerMin:118,p95Ms:740,lastAdjust:{at:a-61e3,from:12,to:16,reason:"grow"}}}]},{group:"payments",kind:"step",depth:2,liveWorkers:[{group:"payments",instanceId:"worker-payments-5b81",lastBeatAt:a-3500,status:{runtime:"node",concurrency:{mode:"fixed",limit:8},inFlight:7,rssPct:88,cpuPct:63,throughputPerMin:44,p95Ms:2310}}]},{group:"inventory",kind:"step",depth:0,liveWorkers:[{group:"inventory",instanceId:"worker-inventory-11ce",lastBeatAt:a-1200,status:{runtime:"python",concurrency:{mode:"fixed",limit:4},inFlight:1}}]},{group:"shipping",kind:"step",depth:6,liveWorkers:[]}],_={role:"control-plane"};function R(r){var d;const[t,p]=r.split("?");if(t==="/runs"){const o=new URLSearchParams(p??""),c=o.get("namespace"),f=o.get("origin");return u.filter(h=>(!c||h.namespace===c)&&(!f||h.origin===f))}if(t==="/workers")return j;if(t==="/topology")return _;const l=(d=t==null?void 0:t.match(/^\/runs\/(.+)$/))==null?void 0:d[1];if(l){const o=decodeURIComponent(l);return q[o]??{run:u.find(c=>c.id===o),timeline:[],children:[]}}}function M(){const r=window.fetch.bind(window);window.fetch=async(t,p)=>{const d=(typeof t=="string"?t:t instanceof URL?t.href:t.url).match(/\/durable\/api(\/.*)$/),o=d!=null&&d[1]?R(d[1]):void 0;return o===void 0?r(t,p):new Response(JSON.stringify(o),{status:200,headers:{"content-type":"application/json"}})}}const s=r=>new Date(r).toISOString(),i=Date.parse("2026-06-22T14:00:00.000Z"),V="gather:1",T=[{name:"handle_AF_FLEET",start:2e3,end:8200},{name:"handle_MEL",start:2120,end:6900},{name:"handle_METADATA",start:2050,end:5400},{name:"handle_MVR",start:2300,end:9600,failed:!0},{name:"handle_SCHED_MX",start:2080,end:7300},{name:"handle_SUBWO",start:2260,end:8900},{name:"handle_UTIL",start:2010,end:4700}],C=T.map((r,t)=>({runId:"mock-run",seq:2+t,name:r.name,kind:"remote",status:r.failed?"failed":"completed",parallelGroup:V,attempts:1,workerGroup:"gather",startedAt:s(i+r.start),finishedAt:s(i+r.end),...r.failed?{error:{message:"MVR lookup timed out after 7s"}}:{}})),P=[{runId:"mock-run",seq:1,name:"setup",kind:"local",status:"completed",attempts:1,startedAt:s(i+0),finishedAt:s(i+1800)},...C,{runId:"mock-run",seq:9,name:"finalize",kind:"local",status:"completed",attempts:1,startedAt:s(i+9700),finishedAt:s(i+11200)}],g={run:{id:"mock-run",workflow:"gatherAircraftData",workflowVersion:"1",status:"completed",createdAt:s(i),updatedAt:s(i+11200)},timeline:P},U=new k({defaultOptions:{queries:{refetchInterval:!1,refetchOnWindowFocus:!1}}}),m=()=>{},w=new URLSearchParams(window.location.search).get("view")==="console";w&&M();A(document.getElementById("root")).render(n.jsx(y.StrictMode,{children:n.jsx(v,{client:U,children:w?n.jsx(x,{}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"app-bg"}),n.jsxs("div",{className:"relative z-10 mx-auto max-w-3xl p-8",children:[n.jsx("div",{className:"mb-3 mono text-[10px] uppercase tracking-[0.2em] text-zinc-500",children:"preview · parallel-fan timeline"}),n.jsx("div",{className:"rounded-lg border border-line bg-panel p-2",children:n.jsx(b,{run:g.run,timeline:g.timeline,depth:0,selectedKey:void 0,onSelect:m,onOpenRun:m,expanded:new Set,onToggleChild:m})})]})]})})}));
1
+ import{a as k,c as A,j as n,r as y,Q as v,A as x,R as b}from"./index-CTKdGcMe.js";const a=Date.parse("2026-07-29T09:14:00.000Z"),e=r=>new Date(a+r).toISOString(),u=[{id:"ord-9f2c1a4b",workflow:"checkout",workflowVersion:"4",status:"failed",namespace:"default",origin:"acme-storefront",createdAt:e(-62e4),updatedAt:e(-54e4),tags:["tier:pro","region:us-east"],searchAttributes:{amount:249,tier:"pro"},input:{orderId:"ord-9f2c1a4b",amount:249,currency:"USD"},error:{message:"charge declined: card_expired (stripe: card_error)"}},{id:"ord-77ab3012",workflow:"checkout",workflowVersion:"4",status:"completed",origin:"acme-storefront",createdAt:e(-18e5),updatedAt:e(-1744e3),tags:["tier:free"],input:{orderId:"ord-77ab3012",amount:19},output:{charged:!0}},{id:"inv-2b91ee70",workflow:"invoiceSettlement",workflowVersion:"2",status:"completed",createdAt:e(-21e5),updatedAt:e(-201e4),input:{invoice:"INV-4471"}},{id:"shp-01d4f7c9",workflow:"shipmentSync",workflowVersion:"1",status:"running",origin:"@dudousxd/nestjs-catalog-pipeline",createdAt:e(-9e4),updatedAt:e(-4e3),input:{carrier:"dhl"}},{id:"shp-55c2aa18",workflow:"shipmentSync",workflowVersion:"1",status:"completed",origin:"@dudousxd/nestjs-catalog-pipeline",createdAt:e(-34e5),updatedAt:e(-333e4),input:{carrier:"ups"}},{id:"rep-8812cd44",workflow:"nightlyReport",workflowVersion:"7",status:"suspended",namespace:"acme",origin:"@dudousxd/nestjs-agent",createdAt:e(-54e5),updatedAt:e(-3e5),waiting:{on:"signal",name:"approve"},input:{day:"2026-07-28"}},{id:"ord-1177fe22",workflow:"checkout",workflowVersion:"4",status:"completed",namespace:"acme",origin:"acme-storefront",createdAt:e(-72e5),updatedAt:e(-712e4),tags:["tier:pro"],input:{orderId:"ord-1177fe22",amount:640},output:{charged:!0}},{id:"bck-4410aa03",workflow:"backfillLedger",workflowVersion:"1",status:"cancelled",createdAt:e(-9e6),updatedAt:e(-888e4),input:{from:"2026-01-01"}},{id:"ord-6650bb91",workflow:"checkout",workflowVersion:"4",status:"pending",origin:"acme-storefront",createdAt:e(-12e3),updatedAt:e(-12e3),input:{orderId:"ord-6650bb91",amount:78}}],I=[{runId:"ord-9f2c1a4b",seq:1,name:"reserveInventory",kind:"remote",status:"completed",attempts:1,workerGroup:"inventory",enqueuedAt:e(-619e3),startedAt:e(-618200),finishedAt:e(-615900),input:{sku:"SKU-8823",qty:1},output:{reservationId:"rsv-77120"}},{runId:"ord-9f2c1a4b",seq:2,name:"quoteShipping",kind:"remote",status:"completed",attempts:1,workerGroup:"shipping",enqueuedAt:e(-615800),startedAt:e(-615100),finishedAt:e(-612400),output:{carrier:"dhl",cents:890}},{runId:"ord-9f2c1a4b",seq:3,name:"chargeCard",kind:"remote",status:"failed",attempts:3,workerGroup:"payments",enqueuedAt:e(-612300),startedAt:e(-611800),finishedAt:e(-54e4),input:{amount:249,currency:"USD"},error:{message:"charge declined: card_expired (stripe: card_error)"},events:[{at:a-611700,level:"info",message:"attempt 1 → gateway timeout, retrying"},{at:a-59e4,level:"warn",message:"attempt 2 → gateway timeout, retrying"},{at:a-540200,level:"error",message:"attempt 3 → card_expired, giving up"}]}],S=[{runId:"shp-01d4f7c9",seq:1,name:"fetchManifest",kind:"remote",status:"completed",attempts:1,workerGroup:"shipping",enqueuedAt:e(-89e3),startedAt:e(-88400),finishedAt:e(-84100),output:{parcels:42}},{runId:"shp-01d4f7c9",seq:2,name:"syncCarrier",kind:"remote",status:"pending",attempts:1,workerGroup:"shipping",enqueuedAt:e(-84e3),startedAt:e(-83600),finishedAt:e(-4e3),input:{carrier:"dhl",parcels:42}}],q={"shp-01d4f7c9":{run:u[3],timeline:S,children:[]},"ord-9f2c1a4b":{run:u[0],timeline:I,children:[]}},j=[{group:"checkout",kind:"workflow",depth:0,liveWorkers:[{group:"checkout",instanceId:"api-7f9c4d-2",lastBeatAt:a-2e3,status:{runtime:"node",concurrency:{mode:"adaptive",limit:16,min:4,max:32},inFlight:3,rssPct:41,cpuPct:22,throughputPerMin:118,p95Ms:740,lastAdjust:{at:a-61e3,from:12,to:16,reason:"grow"}}}]},{group:"payments",kind:"step",depth:2,liveWorkers:[{group:"payments",instanceId:"worker-payments-5b81",lastBeatAt:a-3500,status:{runtime:"node",concurrency:{mode:"fixed",limit:8},inFlight:7,rssPct:88,cpuPct:63,throughputPerMin:44,p95Ms:2310}}]},{group:"inventory",kind:"step",depth:0,liveWorkers:[{group:"inventory",instanceId:"worker-inventory-11ce",lastBeatAt:a-1200,status:{runtime:"python",concurrency:{mode:"fixed",limit:4},inFlight:1}}]},{group:"shipping",kind:"step",depth:6,liveWorkers:[]}],_={role:"control-plane"};function R(r){var d;const[t,p]=r.split("?");if(t==="/runs"){const o=new URLSearchParams(p??""),c=o.get("namespace"),f=o.get("origin");return u.filter(h=>(!c||h.namespace===c)&&(!f||h.origin===f))}if(t==="/workers")return j;if(t==="/topology")return _;const l=(d=t==null?void 0:t.match(/^\/runs\/(.+)$/))==null?void 0:d[1];if(l){const o=decodeURIComponent(l);return q[o]??{run:u.find(c=>c.id===o),timeline:[],children:[]}}}function M(){const r=window.fetch.bind(window);window.fetch=async(t,p)=>{const d=(typeof t=="string"?t:t instanceof URL?t.href:t.url).match(/\/durable\/api(\/.*)$/),o=d!=null&&d[1]?R(d[1]):void 0;return o===void 0?r(t,p):new Response(JSON.stringify(o),{status:200,headers:{"content-type":"application/json"}})}}const s=r=>new Date(r).toISOString(),i=Date.parse("2026-06-22T14:00:00.000Z"),V="gather:1",T=[{name:"handle_AF_FLEET",start:2e3,end:8200},{name:"handle_MEL",start:2120,end:6900},{name:"handle_METADATA",start:2050,end:5400},{name:"handle_MVR",start:2300,end:9600,failed:!0},{name:"handle_SCHED_MX",start:2080,end:7300},{name:"handle_SUBWO",start:2260,end:8900},{name:"handle_UTIL",start:2010,end:4700}],C=T.map((r,t)=>({runId:"mock-run",seq:2+t,name:r.name,kind:"remote",status:r.failed?"failed":"completed",parallelGroup:V,attempts:1,workerGroup:"gather",startedAt:s(i+r.start),finishedAt:s(i+r.end),...r.failed?{error:{message:"MVR lookup timed out after 7s"}}:{}})),P=[{runId:"mock-run",seq:1,name:"setup",kind:"local",status:"completed",attempts:1,startedAt:s(i+0),finishedAt:s(i+1800)},...C,{runId:"mock-run",seq:9,name:"finalize",kind:"local",status:"completed",attempts:1,startedAt:s(i+9700),finishedAt:s(i+11200)}],g={run:{id:"mock-run",workflow:"gatherAircraftData",workflowVersion:"1",status:"completed",createdAt:s(i),updatedAt:s(i+11200)},timeline:P},U=new k({defaultOptions:{queries:{refetchInterval:!1,refetchOnWindowFocus:!1}}}),m=()=>{},w=new URLSearchParams(window.location.search).get("view")==="console";w&&M();A(document.getElementById("root")).render(n.jsx(y.StrictMode,{children:n.jsx(v,{client:U,children:w?n.jsx(x,{}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"app-bg"}),n.jsxs("div",{className:"relative z-10 mx-auto max-w-3xl p-8",children:[n.jsx("div",{className:"mb-3 mono text-[10px] uppercase tracking-[0.2em] text-zinc-500",children:"preview · parallel-fan timeline"}),n.jsx("div",{className:"rounded-lg border border-line bg-panel p-2",children:n.jsx(b,{run:g.run,timeline:g.timeline,depth:0,selectedKey:void 0,onSelect:m,onOpenRun:m,expanded:new Set,onToggleChild:m})})]})]})})}));
@@ -0,0 +1,14 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>durable · scale bench</title>
7
+ <script type="module" crossorigin src="/durable/assets/bench-nv8gmn-b.js"></script>
8
+ <link rel="modulepreload" crossorigin href="/durable/assets/index-CTKdGcMe.js">
9
+ <link rel="stylesheet" crossorigin href="/durable/assets/index-CNsLLxcS.css">
10
+ </head>
11
+ <body>
12
+ <div id="root"></div>
13
+ </body>
14
+ </html>
@@ -10,8 +10,8 @@
10
10
  rel="stylesheet"
11
11
  />
12
12
  <title>durable · control plane</title>
13
- <script type="module" crossorigin src="/durable/assets/index-DqmPvOju.js"></script>
14
- <link rel="modulepreload" crossorigin href="/durable/assets/index-Ho8MqZ0t.js">
13
+ <script type="module" crossorigin src="/durable/assets/index-BcYcSsB3.js"></script>
14
+ <link rel="modulepreload" crossorigin href="/durable/assets/index-CTKdGcMe.js">
15
15
  <link rel="stylesheet" crossorigin href="/durable/assets/index-CNsLLxcS.css">
16
16
  </head>
17
17
  <body>
@@ -10,8 +10,8 @@
10
10
  rel="stylesheet"
11
11
  />
12
12
  <title>durable · parallel-fan preview</title>
13
- <script type="module" crossorigin src="/durable/assets/preview-B1H9t8eN.js"></script>
14
- <link rel="modulepreload" crossorigin href="/durable/assets/index-Ho8MqZ0t.js">
13
+ <script type="module" crossorigin src="/durable/assets/preview-GbzTsAP8.js"></script>
14
+ <link rel="modulepreload" crossorigin href="/durable/assets/index-CTKdGcMe.js">
15
15
  <link rel="stylesheet" crossorigin href="/durable/assets/index-CNsLLxcS.css">
16
16
  </head>
17
17
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-durable-dashboard",
3
- "version": "0.41.0",
3
+ "version": "0.42.0",
4
4
  "description": "Embedded control plane (runs, step timeline, retry/cancel) for nestjs-durable — bundled React SPA served by NestJS",
5
5
  "license": "MIT",
6
6
  "author": "Davide Carvalho",
@@ -52,6 +52,7 @@
52
52
  "@nestjs/common": "11.1.26",
53
53
  "@nestjs/core": "11.1.26",
54
54
  "@tanstack/react-query": "5.62.7",
55
+ "@tanstack/react-virtual": "^3.14.9",
55
56
  "@testing-library/dom": "^10.4.1",
56
57
  "@testing-library/react": "^16.3.2",
57
58
  "@types/react": "18.3.18",
@@ -72,7 +73,7 @@
72
73
  "tsup": "8.3.5",
73
74
  "typescript": "5.9.3",
74
75
  "vite": "5.4.21",
75
- "@dudousxd/nestjs-durable-core": "^0.63.0"
76
+ "@dudousxd/nestjs-durable-core": "^0.67.0"
76
77
  },
77
78
  "peerDependenciesMeta": {
78
79
  "react": {