@kb-labs/workflow-entry 2.118.2 → 2.119.0-canary.8c5512847
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/widgets/117.js +2 -2
- package/dist/widgets/165.js +1 -1
- package/dist/widgets/370.js +1 -1
- package/dist/widgets/46.js +1 -1
- package/dist/widgets/50.js +1 -1
- package/dist/widgets/546.js +1 -1
- package/dist/widgets/62.js +1 -1
- package/dist/widgets/669.js +1 -1
- package/dist/widgets/716.js +1 -1
- package/dist/widgets/775.js +1 -1
- package/dist/widgets/78.js +1 -1
- package/dist/widgets/875.js +5 -5
- package/dist/widgets/__federation_expose_Crons.js +1 -1
- package/dist/widgets/__federation_expose_Dashboard.js +1 -1
- package/dist/widgets/__federation_expose_DefinitionDetail.js +1 -1
- package/dist/widgets/__federation_expose_Definitions.js +1 -1
- package/dist/widgets/__federation_expose_Jobs.js +1 -1
- package/dist/widgets/__federation_expose_RunDetail.js +1 -1
- package/dist/widgets/__federation_expose_Runs.js +1 -1
- package/dist/widgets/mf-manifest.json +18 -18
- package/dist/widgets/mf-stats.json +32 -33
- package/dist/widgets/remoteEntry.js +2 -2
- package/package.json +3 -3
package/dist/widgets/669.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[669],{4332(s,e,t){t.r(e);var r=t(
|
|
1
|
+
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[669],{4332(s,e,t){t.r(e);var r=t(1913),i=t(4552),o=class{subscriptions=new Map;history=[];devToolsObserver;subscribe(s,e,t,r){let i={event:s,handler:e,pluginId:t,pageId:r};return this.subscriptions.has(s)||this.subscriptions.set(s,new Set),this.subscriptions.get(s).add(i),()=>{this.subscriptions.get(s)?.delete(i)}}publish(s,e,t,r){let i={sourcePluginId:t,sourcePageId:r,timestamp:Date.now()},o={event:s,payload:e,meta:i};this.history.push(o),this.history.length>100&&this.history.shift(),this.devToolsObserver?.(o);let n=this.subscriptions.get(s);if(n)for(let t of n)try{t.handler(e,i)}catch(e){console.error(`[StudioEventBus] Handler error for "${s}" in ${t.pluginId}:${t.pageId}:`,e)}}unsubscribeAll(s,e){for(let[,t]of this.subscriptions)for(let r of t)r.pluginId===s&&r.pageId===e&&t.delete(r)}getHistory(){return this.history}setDevToolsObserver(s){this.devToolsObserver=s}clearDevToolsObserver(){this.devToolsObserver=void 0}reset(){this.subscriptions.clear(),this.history=[]}},n=new o,u=(0,r.createContext)(n);function l({children:s,bus:e}){return(0,i.jsx)(u.Provider,{value:e??n,children:s})}function h(){return(0,r.useContext)(u)}t.d(e,{EventBusProvider:()=>l,StudioEventBus:()=>o,eventBus:()=>n,useEventBusContext:()=>h})}}]);
|
package/dist/widgets/716.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[716],{6026(e,r){var n=Symbol.for("react.transitional.element");function t(e,r,t){var a=null;if(void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return{$$typeof:n,type:e,key:a,ref:void 0!==(r=t.ref)?r:null,props:t}}r.Fragment=Symbol.for("react.fragment"),r.jsx=t,r.jsxs=t},4552(e,r,n){e.exports=n(6026)},5688(e,r,n){var t=n(4552),a=!1,i={queued:"var(--text-tertiary)",running:"var(--warning)",success:"var(--success)",failed:"var(--error)",cancelled:"var(--text-tertiary)",skipped:"var(--text-tertiary)",waiting_approval:"var(--info)"};function l(e){var r,n=e.status;if(!a&&"u">typeof document){a=!0;var l=document.createElement("style");l.textContent="\n@keyframes kb-spin { 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) } }\n@keyframes kb-shimmer { 0% { left: -60% } 100% { left: 120% } }\n",document.head.appendChild(l)}var s=null!=(r=i[n])?r:"var(--text-tertiary)";return"running"===n?(0,t.jsx)("span",{style:{display:"inline-block",width:8,height:8,flexShrink:0,border:"2px solid ".concat(s),borderTopColor:"transparent",borderRadius:"50%",animation:"kb-spin 0.8s linear infinite"}}):(0,t.jsx)("span",{style:{display:"inline-block",width:8,height:8,flexShrink:0,borderRadius:"50%",background:"success"===n||"failed"===n||"waiting_approval"===n?s:"transparent",border:"2px solid ".concat(s)}})}function s(e){if(!e)return null;if(e<1e3)return"".concat(e,"ms");var r=e/1e3;return r<60?"".concat(r.toFixed(1),"s"):"".concat(Math.floor(r/60),"m ").concat(Math.floor(r%60),"s")}n.d(r,{a3:()=>s,md:()=>l})},9747(e,r,n){var t=n(4552),a={done:"var(--success)",active:"var(--warning)",pending:"var(--text-tertiary)"};function i(e){var r=e.status,n=a[r],i="active"===r?10:8;return"active"===r?(0,t.jsx)("span",{style:{display:"inline-block",width:i,height:i,borderRadius:"50%",border:"2px solid ".concat(n),background:"color-mix(in srgb, ".concat(n," 30%, transparent)"),flexShrink:0}}):(0,t.jsx)("span",{style:{display:"inline-block",width:i,height:i,borderRadius:"50%",background:"done"===r?n:"transparent",border:"2px solid ".concat(n),flexShrink:0}})}function l(e){var r=e.phases,n=e.compact;return r.length?(0,t.jsx)("div",{style:{display:"flex",alignItems:"center",gap:n?4:6},children:r.map(function(e,l){var s=l===r.length-1,o="done"===e.status?"var(--success)":"var(--border-primary)";return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:n?4:6},children:[(0,t.jsx)(i,{status:e.status}),!n&&(0,t.jsx)("span",{style:{fontSize:11,fontWeight:"active"===e.status?600:400,color:a[e.status],whiteSpace:"nowrap"},children:e.label}),!s&&(0,t.jsx)("div",{style:{width:n?12:24,height:2,background:o,borderRadius:1,flexShrink:0}})]},e.label)})}):null}n.d(r,{g:()=>l})},4461(e,r,n){var t=n(4552);function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}function i(e){var r=e.views,n=e.current,i=e.onChange,l=Object.entries(r);return(0,t.jsx)("div",{style:{display:"flex",gap:0,border:"1px solid var(--border-primary)",borderRadius:6,overflow:"hidden"},children:l.map(function(e){var r=function(e){if(Array.isArray(e))return e}(e)||function(e){var r,n,t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw n}}return a}}(e)||function(e){if(e){if("string"==typeof e)return a(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=r[0],s=r[1];return(0,t.jsx)("button",{onClick:function(){return i(l)},style:{padding:"5px 16px",fontSize:13,fontWeight:500,cursor:"pointer",border:"none",background:n===l?"var(--link)":"var(--bg-secondary)",color:n===l?"var(--text-inverse)":"var(--text-secondary)",transition:"background 0.15s, color 0.15s"},children:s.label},l)})})}n.d(r,{k:()=>i})},8292(e,r,n){var t=n(4552),a=n(
|
|
1
|
+
"use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[716],{6026(e,r){var n=Symbol.for("react.transitional.element");function t(e,r,t){var a=null;if(void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return{$$typeof:n,type:e,key:a,ref:void 0!==(r=t.ref)?r:null,props:t}}r.Fragment=Symbol.for("react.fragment"),r.jsx=t,r.jsxs=t},4552(e,r,n){e.exports=n(6026)},5688(e,r,n){var t=n(4552),a=!1,i={queued:"var(--text-tertiary)",running:"var(--warning)",success:"var(--success)",failed:"var(--error)",cancelled:"var(--text-tertiary)",skipped:"var(--text-tertiary)",waiting_approval:"var(--info)"};function l(e){var r,n=e.status;if(!a&&"u">typeof document){a=!0;var l=document.createElement("style");l.textContent="\n@keyframes kb-spin { 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) } }\n@keyframes kb-shimmer { 0% { left: -60% } 100% { left: 120% } }\n",document.head.appendChild(l)}var s=null!=(r=i[n])?r:"var(--text-tertiary)";return"running"===n?(0,t.jsx)("span",{style:{display:"inline-block",width:8,height:8,flexShrink:0,border:"2px solid ".concat(s),borderTopColor:"transparent",borderRadius:"50%",animation:"kb-spin 0.8s linear infinite"}}):(0,t.jsx)("span",{style:{display:"inline-block",width:8,height:8,flexShrink:0,borderRadius:"50%",background:"success"===n||"failed"===n||"waiting_approval"===n?s:"transparent",border:"2px solid ".concat(s)}})}function s(e){if(!e)return null;if(e<1e3)return"".concat(e,"ms");var r=e/1e3;return r<60?"".concat(r.toFixed(1),"s"):"".concat(Math.floor(r/60),"m ").concat(Math.floor(r%60),"s")}n.d(r,{a3:()=>s,md:()=>l})},9747(e,r,n){var t=n(4552),a={done:"var(--success)",active:"var(--warning)",pending:"var(--text-tertiary)"};function i(e){var r=e.status,n=a[r],i="active"===r?10:8;return"active"===r?(0,t.jsx)("span",{style:{display:"inline-block",width:i,height:i,borderRadius:"50%",border:"2px solid ".concat(n),background:"color-mix(in srgb, ".concat(n," 30%, transparent)"),flexShrink:0}}):(0,t.jsx)("span",{style:{display:"inline-block",width:i,height:i,borderRadius:"50%",background:"done"===r?n:"transparent",border:"2px solid ".concat(n),flexShrink:0}})}function l(e){var r=e.phases,n=e.compact;return r.length?(0,t.jsx)("div",{style:{display:"flex",alignItems:"center",gap:n?4:6},children:r.map(function(e,l){var s=l===r.length-1,o="done"===e.status?"var(--success)":"var(--border-primary)";return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:n?4:6},children:[(0,t.jsx)(i,{status:e.status}),!n&&(0,t.jsx)("span",{style:{fontSize:11,fontWeight:"active"===e.status?600:400,color:a[e.status],whiteSpace:"nowrap"},children:e.label}),!s&&(0,t.jsx)("div",{style:{width:n?12:24,height:2,background:o,borderRadius:1,flexShrink:0}})]},e.label)})}):null}n.d(r,{g:()=>l})},4461(e,r,n){var t=n(4552);function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}function i(e){var r=e.views,n=e.current,i=e.onChange,l=Object.entries(r);return(0,t.jsx)("div",{style:{display:"flex",gap:0,border:"1px solid var(--border-primary)",borderRadius:6,overflow:"hidden"},children:l.map(function(e){var r=function(e){if(Array.isArray(e))return e}(e)||function(e){var r,n,t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw n}}return a}}(e)||function(e){if(e){if("string"==typeof e)return a(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=r[0],s=r[1];return(0,t.jsx)("button",{onClick:function(){return i(l)},style:{padding:"5px 16px",fontSize:13,fontWeight:500,cursor:"pointer",border:"none",background:n===l?"var(--link)":"var(--bg-secondary)",color:n===l?"var(--text-inverse)":"var(--text-secondary)",transition:"background 0.15s, color 0.15s"},children:s.label},l)})})}n.d(r,{k:()=>i})},8292(e,r,n){var t=n(4552),a=n(1198),i={queued:"info",running:"warning",success:"success",failed:"error",cancelled:"warning",skipped:"info",waiting_approval:"warning"},l={waiting_approval:"WAITING APPROVAL"};function s(e){var r,n,s=e.status,o=null!=(r=i[s])?r:"info",u=null!=(n=l[s])?n:s.toUpperCase();return(0,t.jsx)(a.UIBadge,{variant:o,children:u})}n.d(r,{d:()=>s})},7205(e,r,n){var t=n(1913);function a(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function i(e){return(0,t.useMemo)(function(){var r={phases:[],steps:[],reworkLoop:null};if(!(null==e||null==(h=e.jobs)?void 0:h.length))return r;var n=e.jobs[0];if(!(null==n?void 0:n.steps.length))return r;var t=n.steps,i=t.map(function(e,r){var n,a,i;return{stepRun:e,stepType:"builtin:approval"===(i=null!=(n=null==(a=e.spec)?void 0:a.uses)?n:"")?"approval":"builtin:gate"===i?"gate":"shell",phase:function e(r,n,t){if(null==(a=r.spec)?void 0:a.phase)return r.spec.phase;var a,i,l,s=r.name.toLowerCase();if(s.includes("plan")||s.includes("spec")||s.includes("research")||s.includes("approve plan")||s.includes("tech lead"))return"Planning";if(s.includes("implement")||s.includes("develop")||s.includes("cod"))return"Implementation";if(s.includes("review")||s.includes("qa")||s.includes("test")||s.includes("lint")||s.includes("security")||s.includes("license")||s.includes("compliance"))return"Quality";if(s.includes("commit")||s.includes("deploy")||s.includes("release")||s.includes("publish")||s.includes("notify")||s.includes("done")||s.includes("complet"))return"Delivery";if((null==(i=r.spec)?void 0:i.uses)==="builtin:approval"&&n>0){var o=t[n-1];if(o)return e(o,n-1,t)}if((null==(l=r.spec)?void 0:l.uses)==="builtin:gate"&&n>0){var u=t[n-1];if(u)return e(u,n-1,t)}return"Implementation"}(e,r,t)}}),l=function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n&&"gate"===n.stepType){var t=null==(u=n.stepRun.spec)||null==(o=u.with)?void 0:o.routes;if(t){var i=!0,l=!1,s=void 0;try{for(var o,u,c,d=Object.values(t)[Symbol.iterator]();!(i=(c=d.next()).done);i=!0){var p=function(){var t=c.value;if((void 0===t?"undefined":a(t))!=="object"||null===t||!("restartFrom"in t))return"continue";var i=t.restartFrom,l=e.findIndex(function(e){return e.stepRun.id.endsWith(":".concat(i))||e.stepRun.name.toLowerCase()===i.toLowerCase()});if(-1!==l){var s="failed"===n.stepRun.status||"running"===n.stepRun.status;return{v:{gateIndex:r,targetIndex:l,isActive:s}}}}();if("object"===a(p))return p.v}}catch(e){l=!0,s=e}finally{try{i||null==d.return||d.return()}finally{if(l)throw s}}}}}return null}(i);if(l){var s=i[l.gateIndex];if(s&&l.isActive){var o,u,c,d="number"==typeof(c=null==(u=s.stepRun.spec)||null==(o=u.with)?void 0:o.maxIterations)?c:3;s.iteration={current:1,max:d}}}var p=new Map,f=!0,v=!1,y=void 0;try{for(var h,b,m,g=i[Symbol.iterator]();!(f=(m=g.next()).done);f=!0){var x=m.value;p.has(x.phase)||p.set(x.phase,[]),p.get(x.phase).push(x)}}catch(e){v=!0,y=e}finally{try{f||null==g.return||g.return()}finally{if(v)throw y}}var k=null==(b=e.spec)?void 0:b.phases,w=k?k.map(function(e){return e.label}).filter(function(e){return p.has(e)}):Array.from(p.keys()),j=!0,S=!1,I=void 0;try{for(var R,A=p.keys()[Symbol.iterator]();!(j=(R=A.next()).done);j=!0){var C=R.value;w.includes(C)||w.push(C)}}catch(e){S=!0,I=e}finally{try{j||null==A.return||A.return()}finally{if(S)throw I}}return{phases:w.map(function(e){return{label:e,steps:p.get(e)}}),steps:i,reworkLoop:l}},[e])}n.d(r,{F:()=>i})}}]);
|