@whoz-oss/coday-client 0.0.0-workstream-forge.288 → 0.0.0-workstream-forge.289
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-B0gKv16w.js → chunk--EgRVDa6.js} +1 -1
- package/browser/{chunk-DLffGFin.js → chunk--aDoLaiU.js} +1 -1
- package/browser/{chunk-dhcgEEkx.js → chunk-2fwazn83.js} +1 -1
- package/browser/chunk-8_uYpgj6.js +1 -0
- package/browser/{chunk-CBHdjoSo.js → chunk-BBUlPLUG.js} +1 -1
- package/browser/{chunk-H7KUSNF6.js → chunk-BV8irEp_.js} +1 -1
- package/browser/chunk-BX_QKHxp.js +1 -0
- package/browser/chunk-BXqGIEzq.js +1 -0
- package/browser/chunk-Bd7sD3Ol.js +1 -0
- package/browser/chunk-BdKKFYbn.js +1 -0
- package/browser/{chunk-BWCkWdmU.js → chunk-Bf0b5HDZ.js} +1 -1
- package/browser/{chunk-Dkderx1H.js → chunk-Bn5nlhfj.js} +1 -1
- package/browser/{chunk--N43m_5o.js → chunk-BuZSOKHs.js} +1 -1
- package/browser/chunk-C0Ss4BeX.js +1 -0
- package/browser/chunk-C7O4iJjY.js +1 -0
- package/browser/chunk-CBl5v-PO.js +1 -0
- package/browser/{chunk-DT4fihVQ.js → chunk-CUA9JUgm.js} +1 -1
- package/browser/{chunk-D0PFoBR9.js → chunk-Cwlrv6dM.js} +1 -1
- package/browser/{chunk-BgfuCnTj.js → chunk-D-d0VY4i.js} +1 -1
- package/browser/{chunk-CWRaz0m6.js → chunk-D9epIXs4.js} +1 -1
- package/browser/{chunk-CT-NYgHo.js → chunk-DExf2qo6.js} +1 -1
- package/browser/chunk-DKqOeN1s.js +1 -0
- package/browser/{chunk-BZ7MHHlT.js → chunk-D_E1x42C.js} +1 -1
- package/browser/chunk-DgfZzSfC.js +1 -0
- package/browser/{chunk-ARX7xO57.js → chunk-DhxI9Zc7.js} +1 -1
- package/browser/{chunk-lsjaR1SF.js → chunk-Dk8uBiJC.js} +1 -1
- package/browser/chunk-DpoDbcU5.js +2 -0
- package/browser/{chunk-CfJrOSzi.js → chunk-DrKb6zuj.js} +1 -1
- package/browser/chunk-Dsm56SGw.js +1 -0
- package/browser/chunk-DtKMBlUc.js +690 -0
- package/browser/chunk-Due0zK_F.js +1 -0
- package/browser/chunk-Dzo5PcDy.js +1 -0
- package/browser/chunk-VoLo31KM.js +2 -0
- package/browser/{chunk-DUVTlyRi.js → chunk-ZMKZf_Bj.js} +1 -1
- package/browser/{chunk-D_KNMuBZ.js → chunk-Zjkf7Pld.js} +1 -1
- package/browser/chunk-_nQOgN_q.js +1 -0
- package/browser/{chunk-I4zoVvDE.js → chunk-b5iF5vg2.js} +1 -1
- package/browser/chunk-eF4CmPLQ.js +1 -0
- package/browser/{chunk-D-F4_F5P.js → chunk-i-R8PjND.js} +1 -1
- package/browser/{chunk-Bw2kVgKL.js → chunk-kB6kdDOB.js} +1 -1
- package/browser/{chunk-BbgQs8ay.js → chunk-nPi97z1Y.js} +1 -1
- package/browser/{chunk-BNV6A7zQ.js → chunk-oVZlpc4y.js} +1 -1
- package/browser/{chunk-B84wcmlL.js → chunk-qH-TyzVZ.js} +1 -1
- package/browser/{chunk-CqXT8Tpx.js → chunk-voYW_oL9.js} +1 -1
- package/browser/{chunk-Dxv38Ish.js → chunk-xCLwu5NW.js} +1 -1
- package/browser/{chunk-JWkB7UsB.js → chunk-y3Td34jo.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-IUUK3O6C.js → main-MOZ7U7VP.js} +15 -15
- package/package.json +1 -1
- package/browser/chunk-BAW_bOac.js +0 -1
- package/browser/chunk-BSz21_Vu.js +0 -1
- package/browser/chunk-Bc30sqfv.js +0 -1
- package/browser/chunk-By9Xd-3K.js +0 -1
- package/browser/chunk-BzrVRPNK.js +0 -1
- package/browser/chunk-C8EjYY3L.js +0 -1
- package/browser/chunk-CGhT80Z4.js +0 -1
- package/browser/chunk-CWBuB3TV.js +0 -1
- package/browser/chunk-Ch_tCQDO.js +0 -1
- package/browser/chunk-CknQyFqR.js +0 -1
- package/browser/chunk-CqeuplQz.js +0 -1
- package/browser/chunk-DJblpySR.js +0 -1
- package/browser/chunk-DNpsnpVA.js +0 -690
- package/browser/chunk-DaMifMs9.js +0 -2
- package/browser/chunk-DdMcbWCx.js +0 -1
- package/browser/chunk-Dnbp1gjx.js +0 -1
- package/browser/chunk-DqNu3dCC.js +0 -2
- package/browser/chunk-pXoj-NgV.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {q as k$1,O,i as at,d as yn,V as Vo,A as Ao,j as P,r as P$1}from'./chunk-DtKMBlUc.js';import {g,W as W$1,F,H as we,aq as F$1,ap as k,$ as Sr,z as zi,a1 as ma,ac as Ny,a2 as ga,aa as _r,M as U,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,u as mf,w as yf,j as fg}from'./main-MOZ7U7VP.js';var G=(i,e)=>e.key;function Q(i,e){if(i&1&&(Is(0,"p",3),UC(1),ml()),i&2){let t=fC();KE(),Lg(t.deletion.error());}}function W(i,e){i&1&&(Is(0,"p",4),UC(1,"Loading AI models\u2026"),ml());}function X(i,e){i&1&&(Is(0,"p",5),UC(1,"No AI models configured."),ml());}function Y(i,e){i&1&&(Is(0,"p",4),UC(1,"No AI models match the current filter."),ml());}function Z(i,e){i&1&&(Is(0,"ds-tag",18),UC(1,"Read-only"),ml());}function ee(i,e){if(i&1){let t=aC();Is(0,"button",24),Eg("click",function(){mf(t);let s=fC(2).$implicit,m=fC(2);return yf(m.edit(s))}),UC(1,"Edit"),ml();}if(i&2){let t=fC(2).$implicit,n=fC(2);fg("aria-label","Edit "+n.title(t));}}function te(i,e){if(i&1){let t=aC();Qw(0,ee,2,1,"button",22),Is(1,"agentos-row-delete-action",23),Eg("deleteRequested",function(){mf(t);let s=fC().$implicit,m=fC(2);return yf(m.deletion.request(s.key))})("deleteConfirmed",function(){mf(t);let s=fC().$implicit,m=fC(2);return yf(m.confirmDelete(s))})("deleteCancelled",function(){mf(t);let s=fC(3);return yf(s.deletion.cancel())}),ml();}if(i&2){let t=fC().$implicit,n=fC(2);Kw(n.deletion.confirmingId()!==t.key?0:-1),KE(),pg("rowKey",t.key)("rowLabel",n.title(t))("state",n.deletion);}}function ie(i,e){i&1&&(Is(0,"button",21),UC(1,"Inherited"),ml());}function ne(i,e){if(i&1&&(Is(0,"tr",9)(1,"td",12),UC(2),ml(),Is(3,"td",13),UC(4),ml(),Is(5,"td",14),UC(6),ml(),Is(7,"td",15)(8,"div",16)(9,"ds-tag",17),UC(10),ml(),Qw(11,Z,2,0,"ds-tag",18),ml()(),Is(12,"td",19)(13,"div",20),Qw(14,te,2,4)(15,ie,2,0,"button",21),ml()()()),i&2){let t=e.$implicit,n=fC(2);KE(2),Lg(n.title(t)),KE(2),Lg(t.providerName),KE(2),Il(" ",t.model.apiModelName," "),KE(3),pg("variant",t.scope==="platform"?"neutral":"accent"),KE(),Lg(t.scope==="platform"?"Platform":"Namespace"),KE(),Kw(t.scope==="platform"?11:-1),KE(3),Kw(t.scope==="namespace"?14:15);}}function oe(i,e){if(i&1&&(Is(0,"div",6)(1,"table",7)(2,"thead",8)(3,"tr",9)(4,"th",10),UC(5,"Name"),ml(),Is(6,"th",10),UC(7,"Provider"),ml(),Is(8,"th",10),UC(9,"API model name"),ml(),Is(10,"th",10),UC(11,"Scope"),ml(),Is(12,"th",10)(13,"span",11),UC(14,"Actions"),ml()()()(),Is(15,"tbody",8),eC(16,ne,16,7,"tr",9,G),ml()()()),i&2){let t=fC();KE(16),tC(t.rowFilter.filteredRows());}}var z=class i{route=g(W$1);router=g(F);destroyRef=g(we);aiModelController=g(F$1);aiProviderController=g(k);namespaceId=this.route.snapshot.params.namespaceId;refresh$=new Sr(void 0);isLoading=zi(true);deletion=k$1();rows=zi([]);rowFilter=O(this.rows,e=>[e.model.alias,e.model.apiModelName,e.providerName,e.scope].filter(Boolean).join(" "));data$=this.refresh$.pipe(ma(()=>(this.isLoading.set(true),Ny({namespace:this.aiModelController.listByNamespaceIdAiModel(this.namespaceId),platform:this.aiModelController.listPlatformLevelAiModel().pipe(ga(()=>_r([]))),providers:this.aiProviderController.listAiProvider(this.namespaceId)}).pipe(ma(({namespace:e,platform:t,providers:n})=>{let s=[...new Set([...t,...e].map(m=>m.aiProviderId))];return Ny({namespace:_r(e),platform:_r(t),providers:_r(n),referencedProviders:this.aiProviderController.getByIdsAiProvider({ids:s,withRemoved:false}).pipe(ga(()=>_r([])))})})))));constructor(){this.data$.pipe(U(this.destroyRef)).subscribe({next:({namespace:e,platform:t,providers:n,referencedProviders:s})=>{let m=new Map([...s,...n].map(c=>[c.id??"",c.name]));this.rows.set([...t.map((c,g)=>({key:`platform:${c.id??g}`,model:c,providerName:m.get(c.aiProviderId)??c.aiProviderId,scope:"platform"})),...e.map((c,g)=>({key:`namespace:${c.id??g}`,model:c,providerName:m.get(c.aiProviderId)??c.aiProviderId,scope:"namespace"}))]),this.isLoading.set(false);},error:()=>this.isLoading.set(false)});}openCreateForm(){this.router.navigate(["/agentos",this.namespaceId,"ai-models","new"]);}edit(e){e.scope==="platform"||!e.model.id||this.router.navigate(["/agentos",this.namespaceId,"ai-models",e.model.id,"edit"]);}title(e){return e.model.alias??e.model.apiModelName}confirmDelete(e){e.scope==="platform"||!e.model.id||this.deletion.execute(e.key,{request$:this.aiModelController.deleteAiModel(e.model.id).pipe(U(this.destroyRef)),onSuccess:()=>this.refresh$.next(),errorMessage:`Deleting "${this.title(e)}" failed. Try again.`});}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xw({type:i,selectors:[["agentos-namespace-ai-models"]],decls:9,vars:3,consts:[["title","AI models","description","AI models configured for this namespace, including models inherited from the platform."],["label","Filter AI models","placeholder","Filter AI models\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","AI models"],["role","rowgroup"],["role","row"],["role","columnheader"],[1,"sr-only"],["role","cell","data-label","Name","data-title","",1,"settings-table__name"],["role","cell","data-label","Provider"],["role","cell","data-label","API model name",1,"settings-table__secondary"],["role","cell","data-label","Scope"],[1,"settings-table__tags"],[3,"variant"],["variant","outline"],["role","cell","data-label","Actions","data-actions",""],[1,"settings-table__actions"],["type","button","disabled",""],["type","button"],["deleteClass","settings-table__delete","confirmLabelClass","settings-table__confirm-label",3,"deleteRequested","deleteConfirmed","deleteCancelled","rowKey","rowLabel","state"],["type","button",3,"click"]],template:function(t,n){t&1&&(Is(0,"ds-section-header",0)(1,"agentos-table-filter",1),Eg("queryChange",function(m){return n.rowFilter.query.set(m)}),ml(),Is(2,"button",2),Eg("click",function(){return n.openCreateForm()}),UC(3,"New AI model"),ml()(),Qw(4,Q,2,1,"p",3),Qw(5,W,2,0,"p",4)(6,X,2,0,"p",5)(7,Y,2,0,"p",4)(8,oe,18,0,"div",6)),t&2&&(KE(),pg("query",n.rowFilter.query()),KE(3),Kw(n.deletion.error()?4:-1),KE(),Kw(n.isLoading()?5:n.rows().length===0?6:n.rowFilter.filteredRows().length===0?7:8));},dependencies:[at,yn,Vo,Ao,P,P$1],encapsulation:2})};export{z as NamespaceAiModelsComponent};
|