@whoz-oss/coday-client 0.0.0-workstream-forge.323 → 0.0.0-workstream-forge.324
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/browser/{chunk-BEcTlGBh.js → chunk-2vMDhSwg.js} +1 -1
- package/browser/{chunk-Dca0sXBm.js → chunk-3MZx6Kaj.js} +1 -1
- package/browser/{chunk-Dbed4iLD.js → chunk-7TqeWvXK.js} +1 -1
- package/browser/{chunk-BiqU8IPW.js → chunk-8I9n3lLn.js} +1 -1
- package/browser/{chunk-Cjs9-5Fm.js → chunk-B0CbpOrN.js} +1 -1
- package/browser/{chunk-BtGm7Wvq.js → chunk-B2dLmELH.js} +1 -1
- package/browser/{chunk-BgowNzI7.js → chunk-BEFOXFc7.js} +1 -1
- package/browser/{chunk-B0MZuECU.js → chunk-BGV30iCr.js} +1 -1
- package/browser/{chunk-fauzneQG.js → chunk-BIqKO9_X.js} +1 -1
- package/browser/{chunk-CIY9XL9h.js → chunk-BJWbTVL_.js} +1 -1
- package/browser/{chunk-CQpoCL_L.js → chunk-BLLdCsEy.js} +1 -1
- package/browser/{chunk-CXPG5Pfy.js → chunk-BT5XTRqh.js} +1 -1
- package/browser/{chunk-BtdWULNt.js → chunk-BXIfWVJs.js} +1 -1
- package/browser/{chunk-BhFZtxIM.js → chunk-BeFguURn.js} +1 -1
- package/browser/{chunk-CNpwIVR1.js → chunk-BiOlkBEs.js} +1 -1
- package/browser/{chunk-BHWdS0Sz.js → chunk-BibZXPj5.js} +1 -1
- package/browser/{chunk-Cnyqi69J.js → chunk-BnR0LAO8.js} +1 -1
- package/browser/{chunk-B6K3fGDy.js → chunk-BrfcY3tC.js} +1 -1
- package/browser/{chunk-CFJ-clte.js → chunk-BrmadML0.js} +1 -1
- package/browser/{chunk-C3zjmGFd.js → chunk-BsmAqurT.js} +1 -1
- package/browser/{chunk-BGYp9pz4.js → chunk-Bucs_YQV.js} +1 -1
- package/browser/{chunk-i70bXaMf.js → chunk-BufqW_U3.js} +1 -1
- package/browser/{chunk-D0MNOASS.js → chunk-Bx9BfTbQ.js} +1 -1
- package/browser/{chunk-DhMdmM0U.js → chunk-BzmbXSRo.js} +1 -1
- package/browser/{chunk-jpkGTvS_.js → chunk-C2vvMqUu.js} +1 -1
- package/browser/{chunk-CO65F-cw.js → chunk-C9Lvnk2W.js} +1 -1
- package/browser/{chunk-DXy-f8mz.js → chunk-CC8u54WZ.js} +1 -1
- package/browser/{chunk-ZDChwTdV.js → chunk-CEwLL0y6.js} +1 -1
- package/browser/{chunk-BTBOLHUL.js → chunk-CIGX4h3f.js} +1 -1
- package/browser/{chunk-4PHNl6wT.js → chunk-CRV6iGhg.js} +1 -1
- package/browser/chunk-CWUT8BmF.js +1 -0
- package/browser/{chunk-7IxK1pPr.js → chunk-CxM3QN6m.js} +1 -1
- package/browser/{chunk-CX-wAIay.js → chunk-D-Fh__Rr.js} +1 -1
- package/browser/chunk-D-pY3GeH.js +1 -0
- package/browser/{chunk-kzAAIkBX.js → chunk-DKYHSdHT.js} +1 -1
- package/browser/{chunk-CNBr9URK.js → chunk-D_CCZjeF.js} +1 -1
- package/browser/{chunk-ChiIGXw8.js → chunk-NRJ3xkL0.js} +1 -1
- package/browser/{chunk-I7tsGxoz.js → chunk-PUAz3rec.js} +1 -1
- package/browser/{chunk-bsYurEcb.js → chunk-Vsk0JW3A.js} +1 -1
- package/browser/{chunk-JtHtde5A.js → chunk-WDlf94_k.js} +1 -1
- package/browser/{chunk-iFpY8SVQ.js → chunk-Y0RP9yux.js} +3 -3
- package/browser/{chunk-CnE_UiVJ.js → chunk-e4zJYzoL.js} +1 -1
- package/browser/{chunk-BADq26A-.js → chunk-j7CwKDfo.js} +1 -1
- package/browser/{chunk-DwNQcIGe.js → chunk-kWYdxdb6.js} +1 -1
- package/browser/{chunk-CdJs9ZV1.js → chunk-v5ROMoP7.js} +1 -1
- package/browser/{chunk-dWDo6hK8.js → chunk-z_6fP4xn.js} +1 -1
- package/browser/index.html +1 -1
- package/browser/{main-CISJ2KQ5.js → main-NUYYC27E.js} +1 -1
- package/package.json +1 -1
- package/browser/chunk-DzZ3uy9q.js +0 -1
- package/browser/chunk-aLScU6gD.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {q as k,O,i as at,n as cn,d as yn,V as Vo,A as Ao,j as P,r as P$1}from'./chunk-iFpY8SVQ.js';import {g,W as W$1,F,H as we,ag as U,$ as Sr,z as zi,a1 as ma,ac as Ny,a2 as ga,aa as _r,M as U$1,P as x,O as w,x as xw,I as Is,S as Eg,m as ml,U as UC,Q as Qw,K as KE,R as pg,b as Kw,r as fC,L as Lg,l as eC,t as tC,q as Il,s as aC,j as fg,u as mf,w as yf,aZ as EC}from'./main-CISJ2KQ5.js';var Y=(n,e)=>e.key;function Z(n,e){if(n&1&&(Is(0,"p",4),UC(1),ml()),n&2){let t=fC();KE(),Lg(t.deletion.error());}}function ee(n,e){if(n&1&&(Is(0,"p",4),UC(1),ml()),n&2){let t=fC();KE(),Lg(t.toggleError());}}function te(n,e){n&1&&(Is(0,"p",5),UC(1,"Loading agent configs\u2026"),ml());}function ne(n,e){n&1&&(Is(0,"p",6),UC(1,"No agent configs available."),ml());}function ie(n,e){n&1&&(Is(0,"p",5),UC(1,"No agent configs match the current filter."),ml());}function oe(n,e){if(n&1){let t=aC();Is(0,"label",17)(1,"input",25,0),Eg("change",function(){mf(t);let l=EC(2),d=fC().$implicit,v=fC(2);return yf(v.toggleEnabled(d,l))}),ml()();}if(n&2){let t=fC().$implicit,i=fC(2);KE(),pg("checked",i.isEnabled(t))("disabled",i.isToggling()),fg("aria-label","Enabled: "+t.config.name);}}function ae(n,e){if(n&1&&(Is(0,"ds-tag",18),UC(1),ml()),n&2){let t=fC().$implicit,i=fC(2);pg("variant",i.isEnabled(t)?"accent":"outline"),KE(),Lg(i.isEnabled(t)?"Enabled":"Disabled");}}function re(n,e){n&1&&(Is(0,"ds-tag",21),UC(1,"Read-only"),ml());}function le(n,e){if(n&1){let t=aC();Is(0,"button",26),Eg("click",function(){mf(t);let l=fC(2).$implicit,d=fC(2);return yf(d.launch(l))}),UC(1," Launch "),ml();}if(n&2){let t=fC(2).$implicit;fg("aria-label","Launch "+t.config.name);}}function se(n,e){if(n&1){let t=aC();Is(0,"button",26),Eg("click",function(){mf(t);let l=fC(2).$implicit,d=fC(2);return yf(d.edit(l))}),UC(1," Edit "),ml();}if(n&2){let t=fC(2).$implicit;fg("aria-label","Edit "+t.config.name);}}function ce(n,e){if(n&1){let t=aC();Is(0,"button",26),Eg("click",function(){mf(t);let l=fC().$implicit,d=fC(2);return yf(d.inspect(l))}),UC(1," Inspect "),ml(),Qw(2,le,2,1,"button",27),Qw(3,se,2,1,"button",27);}if(n&2){let t=fC().$implicit,i=fC(2);fg("aria-label","Inspect "+t.config.name),KE(2),Kw(i.canLaunch(t)?2:-1),KE(),Kw(t.scope==="namespace"?3:-1);}}function de(n,e){if(n&1){let t=aC();Is(0,"agentos-row-delete-action",28),Eg("deleteRequested",function(){mf(t);let l=fC().$implicit,d=fC(2);return yf(d.deletion.request(l.key))})("deleteConfirmed",function(){mf(t);let l=fC().$implicit,d=fC(2);return yf(d.confirmDelete(l))})("deleteCancelled",function(){mf(t);let l=fC(3);return yf(l.deletion.cancel())}),ml();}if(n&2){let t=fC().$implicit,i=fC(2);pg("rowKey",t.key)("rowLabel",t.config.name)("state",i.deletion);}}function ge(n,e){if(n&1&&(Is(0,"tr",10)(1,"td",13),UC(2),ml(),Is(3,"td",14),UC(4),ml(),Is(5,"td",15),UC(6),ml(),Is(7,"td",16),Qw(8,oe,3,3,"label",17)(9,ae,2,2,"ds-tag",18),ml(),Is(10,"td",19)(11,"div",20)(12,"ds-tag",18),UC(13),ml(),Qw(14,re,2,0,"ds-tag",21),ml()(),Is(15,"td",22)(16,"div",23),Qw(17,ce,4,3),Qw(18,de,1,3,"agentos-row-delete-action",24),ml()()()),n&2){let t=e.$implicit,i=fC(2);KE(2),Lg(t.config.name),KE(2),Il(" ",t.config.description||"\u2014"," "),KE(2),Lg(i.mode(t)),KE(2),Kw(t.scope==="namespace"?8:9),KE(4),pg("variant",t.scope==="platform"?"neutral":"accent"),KE(),Lg(t.scope==="platform"?"Platform":"Namespace"),KE(),Kw(t.scope==="platform"?14:-1),KE(3),Kw(i.deletion.confirmingId()!==t.key?17:-1),KE(),Kw(t.scope==="namespace"?18:-1);}}function me(n,e){if(n&1&&(Is(0,"div",7)(1,"table",8)(2,"thead",9)(3,"tr",10)(4,"th",11),UC(5,"Name"),ml(),Is(6,"th",11),UC(7,"Description"),ml(),Is(8,"th",11),UC(9,"Execution mode"),ml(),Is(10,"th",11),UC(11,"Enabled"),ml(),Is(12,"th",11),UC(13,"Scope"),ml(),Is(14,"th",11)(15,"span",12),UC(16,"Actions"),ml()()()(),Is(17,"tbody",9),eC(18,ge,19,9,"tr",10,Y),ml()()()),n&2){let t=fC();KE(18),tC(t.rowFilter.filteredRows());}}var W=class n{route=g(W$1);router=g(F);destroyRef=g(we);controller=g(U);namespaceId=this.route.snapshot.params.namespaceId;refresh$=new Sr(void 0);isLoading=zi(true);deletion=k();rows=zi([]);togglingKey=zi(null);toggleError=zi(null);rowFilter=O(this.rows,e=>[e.config.name,e.config.description,this.mode(e),this.isEnabled(e)?"Enabled":"Disabled",e.scope].filter(Boolean).join(" "));allConfigs$=this.refresh$.pipe(ma(()=>(this.isLoading.set(true),Ny({namespace:this.controller.listByParentAgentConfig(this.namespaceId),platform:this.controller.listPlatformAgentsAgentConfig().pipe(ga(()=>_r([])))}))));constructor(){this.allConfigs$.pipe(U$1(this.destroyRef)).subscribe({next:({namespace:e,platform:t})=>{this.rows.set([...t.map((i,l)=>({key:`platform:${i.id??l}`,config:i,scope:"platform"})),...e.map((i,l)=>({key:`namespace:${i.id??l}`,config:i,scope:"namespace"}))]),this.isLoading.set(false);},error:()=>this.isLoading.set(false)});}openCreateForm(){this.router.navigate(["/agentos",this.namespaceId,"agent-configs","new"]);}inspect(e){e.config.id&&this.router.navigate(e.scope==="platform"?["/agentos","admin","agent-configs",e.config.id,"inspect"]:["/agentos",this.namespaceId,"agent-configs",e.config.id,"inspect"]);}launch(e){e.scope==="platform"||!e.config.id||this.router.navigate(["/agentos",this.namespaceId,"agent-configs",e.config.id,"launch"]);}edit(e){e.scope==="platform"||!e.config.id||this.router.navigate(["/agentos",this.namespaceId,"agent-configs",e.config.id,"edit"]);}toggleEnabled(e,t){let i=e.config.id;if(e.scope==="platform"||!i||this.togglingKey()!==null){t.checked=this.isEnabled(e);return}let l=this.isEnabled(e);this.toggleError.set(null),this.togglingKey.set(e.key),(l?this.controller.disableAgentConfig(i):this.controller.enableAgentConfig(i)).pipe(U$1(this.destroyRef)).subscribe({next:v=>{this.rows.update(X=>X.map(w$1=>w$1.key===e.key?x(w({},w$1),{config:v}):w$1)),t.checked=v.enabled===true,this.togglingKey.set(null);},error:()=>{t.checked=l,this.toggleError.set(`${l?"Disabling":"Enabling"} "${e.config.name}" failed. Try again.`),this.togglingKey.set(null);}});}isToggling(){return this.togglingKey()!==null}isEnabled(e){return e.config.enabled===true}confirmDelete(e){e.scope==="platform"||!e.config.id||this.deletion.execute(e.key,{request$:this.controller.deleteAgentConfig(e.config.id).pipe(U$1(this.destroyRef)),onSuccess:()=>this.refresh$.next(),errorMessage:`Deleting "${e.config.name}" failed. Try again.`});}canLaunch(e){return e.scope==="namespace"&&e.config.executionMode==="LOOP"}mode(e){return e.config.executionMode??(e.config.advancedExecution?"ADVANCED":"SIMPLE")}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xw({type:n,selectors:[["agentos-namespace-agent-configs"]],decls:10,vars:4,consts:[["enabledInput",""],["title","Agent configs","description","Agent configurations available in this namespace, including configurations inherited from the platform."],["label","Filter agent configs","placeholder","Filter agent configs\u2026",3,"queryChange","query"],["dsButton","","variant","primary","type","button",3,"click"],["role","alert",1,"settings-table__error"],["role","status",1,"settings-table__status"],[1,"settings-table__status"],[1,"settings-table__wrap"],["dsTable","","role","table","aria-label","Agent configs"],["role","rowgroup"],["role","row"],["role","columnheader"],[1,"sr-only"],["role","cell","data-label","Name","data-title","",1,"settings-table__name"],["role","cell","data-label","Description",1,"settings-table__secondary"],["role","cell","data-label","Execution mode"],["role","cell","data-label","Enabled"],["dsCheck",""],[3,"variant"],["role","cell","data-label","Scope"],[1,"settings-table__tags"],["variant","outline"],["role","cell","data-label","Actions","data-actions",""],[1,"settings-table__actions"],["deleteClass","settings-table__delete","confirmLabelClass","settings-table__confirm-label",3,"rowKey","rowLabel","state"],["type","checkbox","role","switch",3,"change","checked","disabled"],["type","button",3,"click"],["type","button"],["deleteClass","settings-table__delete","confirmLabelClass","settings-table__confirm-label",3,"deleteRequested","deleteConfirmed","deleteCancelled","rowKey","rowLabel","state"]],template:function(t,i){t&1&&(Is(0,"ds-section-header",1)(1,"agentos-table-filter",2),Eg("queryChange",function(d){return i.rowFilter.query.set(d)}),ml(),Is(2,"button",3),Eg("click",function(){return i.openCreateForm()}),UC(3,"New agent config"),ml()(),Qw(4,Z,2,1,"p",4),Qw(5,ee,2,1,"p",4),Qw(6,te,2,0,"p",5)(7,ne,2,0,"p",6)(8,ie,2,0,"p",5)(9,me,20,0,"div",7)),t&2&&(KE(),pg("query",i.rowFilter.query()),KE(3),Kw(i.deletion.error()?4:-1),KE(),Kw(i.toggleError()?5:-1),KE(),Kw(i.isLoading()?6:i.rows().length===0?7:i.rowFilter.filteredRows().length===0?8:9));},dependencies:[at,cn,yn,Vo,Ao,P,P$1],encapsulation:2})};export{W as NamespaceAgentConfigsComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a1 as ma,a2 as ga,aa as _r,aF as Jy}from'./main-CISJ2KQ5.js';function i(t,o,p){return t.pipe(ma(()=>o().pipe(ga(()=>_r(p)))),Jy({bufferSize:1,refCount:true}))}export{i};
|