@dudousxd/nestjs-durable-dashboard 0.48.0 → 0.50.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.
- package/dist/client/durable-client.d.ts +21 -1
- package/dist/client/durable-client.d.ts.map +1 -1
- package/dist/client/durable-client.js +13 -0
- package/dist/client/durable-client.js.map +1 -1
- package/dist/client/fan-pages.d.ts +8 -0
- package/dist/client/fan-pages.d.ts.map +1 -0
- package/dist/client/fan-pages.js +16 -0
- package/dist/client/fan-pages.js.map +1 -0
- package/dist/client/folded-children.d.ts +11 -0
- package/dist/client/folded-children.d.ts.map +1 -0
- package/dist/client/folded-children.js +21 -0
- package/dist/client/folded-children.js.map +1 -0
- package/dist/client/group-parallel-spans.d.ts +39 -4
- package/dist/client/group-parallel-spans.d.ts.map +1 -1
- package/dist/client/group-parallel-spans.js +72 -2
- package/dist/client/group-parallel-spans.js.map +1 -1
- package/dist/client/merge-live-events.d.ts +6 -1
- package/dist/client/merge-live-events.d.ts.map +1 -1
- package/dist/client/merge-live-events.js +15 -0
- package/dist/client/merge-live-events.js.map +1 -1
- package/dist/client/throttle.d.ts +11 -0
- package/dist/client/throttle.d.ts.map +1 -0
- package/dist/client/throttle.js +30 -0
- package/dist/client/throttle.js.map +1 -0
- package/dist/server/index.cjs +44 -4
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +11 -3
- package/dist/server/index.d.ts +11 -3
- package/dist/server/index.js +44 -4
- package/dist/server/index.js.map +1 -1
- package/dist/spa/assets/{bench-DBT4MTjB.js → bench-bNSq4C-e.js} +1 -1
- package/dist/spa/assets/{index-D9HzYedm.js → index-CMQJ1rjL.js} +1 -1
- package/dist/spa/assets/index-CwX0J7uV.js +66 -0
- package/dist/spa/assets/index-DYEe8Ag-.css +1 -0
- package/dist/spa/assets/{preview-BDJd2aOJ.js → preview-CehDLs8M.js} +1 -1
- package/dist/spa/bench.html +3 -3
- package/dist/spa/index.html +3 -3
- package/dist/spa/preview.html +3 -3
- package/package.json +4 -4
- package/dist/spa/assets/index-BYg_w0aX.js +0 -66
- package/dist/spa/assets/index-LBQc7d3p.css +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as A,j as _,Q as y,a as v,A as R}from"./index-
|
|
1
|
+
import{c as A,j as _,Q as y,a as v,A as R}from"./index-CwX0J7uV.js";window.__bench={polls:0,runs:0,longTasks:[],longTaskAt:[]};new PerformanceObserver(t=>{for(const e of t.getEntries())window.__bench.longTasks.push(Math.round(e.duration)),window.__bench.longTaskAt.push(Math.round(e.startTime))}).observe({entryTypes:["longtask"]});const m=new URLSearchParams(window.location.search),T=Number(m.get("runs")??"10000"),j=Number(m.get("steps")??"488"),b=Number(m.get("churn")??"5"),l=["ingestion","catalog.workflow-run","link-subwo-to-mvr","etl","dpas-extraction"],g=["@dudousxd/nestjs-catalog-pipeline","@dudousxd/nestjs-agent",void 0],I=Array.from({length:12},(t,e)=>` at frame${e} (/app/dist/src/step-${e}.js:${e*7}:19)`).join(`
|
|
2
2
|
`),f=Date.parse("2026-08-01T00:00:00.000Z");function $(t){const e=t%5<2,n=e?"failed":t%97===0?"suspended":"completed",o=new Date(f+t*6e4).toISOString();return{id:`${l[t%l.length]}:${t}:2026-08-01T00:00`,workflow:l[t%l.length],workflowVersion:"4",status:n,namespace:"default",...g[t%g.length]!==void 0?{origin:g[t%g.length]}:{},tags:[`tier:${t%3}`,`region:r${t%4}`],createdAt:o,updatedAt:o,input:{file:`drop-${t}.csv`,base:`base-${t%12}`},...e?{error:{message:`step ${t} failed after 3 attempts`,stack:I}}:{}}}let u=Array.from({length:T},(t,e)=>$(e));window.__bench.runs=u.length;const O=l.map(t=>({group:t,kind:"workflow",depth:0,liveWorkers:[{group:t,instanceId:`worker-${t}`,lastBeatAt:f}]}));function N(){if(b<=0)return;const t=new Date().toISOString();u=u.map((e,n)=>n<b?{...e,updatedAt:t}:e)}function x(t){return{run:$(0),timeline:Array.from({length:j},(e,n)=>({runId:t,seq:n,name:`handle_chunk_${n}`,kind:n%3===0?"remote":"local",status:"completed",attempts:1,workerGroup:"ingestion",startedAt:new Date(f+n*900).toISOString(),finishedAt:new Date(f+n*900+700).toISOString()})),children:[]}}function D(t,e){var k;const n=t.match(/^\/runs\/(.+)$/);if(n!=null&&n[1]&&n[1]!=="facets")return x(decodeURIComponent(n[1]));if(t==="/runs/facets"){const s=new Map;for(const a of u){const p=(k=a.origin)!=null&&k.trim()?a.origin:null,w=`${a.status}|${p??""}`,d=s.get(w);d?d.count+=1:s.set(w,{status:a.status,origin:p,count:1})}return[...s.values()]}if(t!=="/runs")return;window.__bench.polls+=1,N();const o=e.getAll("status"),i=e.get("origin"),c=e.get("limit");let r=u;return o.length&&(r=r.filter(s=>o.includes(s.status))),e.get("unattributed")==="true"?r=r.filter(s=>{var a;return!((a=s.origin)!=null&&a.trim())}):i&&(r=r.filter(s=>s.origin===i)),(c?r.slice(0,Number(c)):r).map(s=>{const{input:a,output:p,error:w,...d}=s;return d})}const S=window.fetch.bind(window);window.fetch=async(t,e)=>{const o=(typeof t=="string"?t:t instanceof URL?t.href:t.url).match(/\/durable\/api(\/[^?]*)\??(.*)$/),i=o==null?void 0:o[1];if(!i)return S(t,e);const c=h=>new Response(JSON.stringify(h),{status:200,headers:{"content-type":"application/json"}});if(i==="/workers")return c(O);if(i==="/topology")return c({role:"control-plane"});const r=D(i,new URLSearchParams((o==null?void 0:o[2])??""));return r===void 0?S(t,e):c(r)};A(document.getElementById("root")).render(_.jsx(y,{client:new v,children:_.jsx(R,{})}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t,c as r,j as e,r as s,Q as n,A as o}from"./index-
|
|
1
|
+
import{a as t,c as r,j as e,r as s,Q as n,A as o}from"./index-CwX0J7uV.js";const i=new t({defaultOptions:{queries:{refetchInterval:2e3,refetchOnWindowFocus:!1}}});r(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsx(n,{client:i,children:e.jsx(o,{})})}));
|