@dudousxd/nestjs-durable-dashboard 0.51.1 → 0.52.1
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 +1 -1
- package/dist/client/durable-client.d.ts.map +1 -1
- package/dist/client/durable-client.js +2 -2
- package/dist/client/durable-client.js.map +1 -1
- package/dist/client/run-origin.d.ts +27 -15
- package/dist/client/run-origin.d.ts.map +1 -1
- package/dist/client/run-origin.js +25 -13
- package/dist/client/run-origin.js.map +1 -1
- package/dist/server/index.cjs +256 -37
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +106 -9
- package/dist/server/index.d.ts +106 -9
- package/dist/server/index.js +246 -34
- package/dist/server/index.js.map +1 -1
- package/dist/spa/assets/{bench-UvOjwMnz.js → bench-Db-gqOEF.js} +1 -1
- package/dist/spa/assets/{index-ov2ocqi5.js → index-4tEXGRlA.js} +1 -1
- package/dist/spa/assets/{index-DnQL-Xbv.js → index-CEV7yPmk.js} +9 -9
- package/dist/spa/assets/{preview-BSiqTdta.js → preview-BvCp1zR5.js} +1 -1
- package/dist/spa/bench.html +2 -2
- package/dist/spa/index.html +2 -2
- package/dist/spa/preview.html +2 -2
- package/package.json +2 -2
|
@@ -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-CEV7yPmk.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-CEV7yPmk.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,{})})}));
|