@whoz-oss/coday-client 3.15.1 → 3.16.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/browser/{chunk-CysW_ro-.js → chunk-0OiZWE88.js} +1 -1
- package/browser/{chunk-BhfpLr7-.js → chunk-6gdeYlLc.js} +1 -1
- package/browser/{chunk-B5_o_qhk.js → chunk-7jUQT_3F.js} +1 -1
- package/browser/{chunk-K-fhwl_z.js → chunk-B0vRsgnD.js} +1 -1
- package/browser/{chunk-RxHlNJ_t.js → chunk-BEKR4Un_.js} +1 -1
- package/browser/chunk-BEUXx3TO.js +1 -0
- package/browser/{chunk-Bnic_hdt.js → chunk-BHZY3TvC.js} +5 -5
- package/browser/{chunk-C6RPhP4t.js → chunk-BJYyjaQ6.js} +1 -1
- package/browser/chunk-BJeLQooO.js +1 -0
- package/browser/{chunk-BIMT-HvS.js → chunk-BNS6Fgaw.js} +1 -1
- package/browser/{chunk-BVCQOGLR.js → chunk-BSSDDOqW.js} +2 -2
- package/browser/{chunk-Dd2dq7xg.js → chunk-BTS5TBK0.js} +1 -1
- package/browser/{chunk-B11WEBEl.js → chunk-BUJoEGsf.js} +1 -1
- package/browser/chunk-BY7uKZAo.js +9 -0
- package/browser/{chunk-5t7zJzqM.js → chunk-B_9LxHBv.js} +1 -1
- package/browser/{chunk-DTZ7N3wC.js → chunk-BdApeECy.js} +1 -1
- package/browser/{chunk-BhM0bmJW.js → chunk-BdpJ2ZCM.js} +1 -1
- package/browser/{chunk-CyUmCedx.js → chunk-Be1LOFvg.js} +1 -1
- package/browser/{chunk-CYMQSJz6.js → chunk-Bhq5earA.js} +1 -1
- package/browser/{chunk-C5wr-vqf.js → chunk-Bib1Seeu.js} +1 -1
- package/browser/{chunk-C7MXO6BQ.js → chunk-Bn3R3VC2.js} +5 -5
- package/browser/{chunk-DxxECdrg.js → chunk-C-aF2_1R.js} +2 -2
- package/browser/{chunk-Jv7RGmnK.js → chunk-CBNhmZDS.js} +1 -1
- package/browser/{chunk-DzicJow4.js → chunk-CFZbDe5T.js} +3 -3
- package/browser/{chunk-mHtuxvLs.js → chunk-CGMAzvSo.js} +1 -1
- package/browser/chunk-CPBcDx4G.js +1 -0
- package/browser/{chunk-DYUMiAN8.js → chunk-CTuHnJP4.js} +1 -1
- package/browser/{chunk-n1eKIk8H.js → chunk-CXLytVC3.js} +1 -1
- package/browser/{chunk-5LRyprMF.js → chunk-CYulIMKp.js} +1 -1
- package/browser/{chunk-CyxhAtE7.js → chunk-C_s4Z3Dk.js} +1 -1
- package/browser/{chunk-D_vvo2qx.js → chunk-CbK5Lcu9.js} +1 -1
- package/browser/{chunk-9CSRlx74.js → chunk-CgqDTJ5-.js} +1 -1
- package/browser/{chunk-Dg6QAZUw.js → chunk-Ci1jk71f.js} +2 -2
- package/browser/{chunk-Bh1p6jDj.js → chunk-CiWu4t_i.js} +1 -1
- package/browser/{chunk-CUmS2-ak.js → chunk-CjrWXBiR.js} +1 -1
- package/browser/{chunk-BqKdrvcS.js → chunk-Co81dkbz.js} +1 -1
- package/browser/{chunk-Ce03Ba0V.js → chunk-CtWMrBfw.js} +1 -1
- package/browser/{chunk-l0HLnBLv.js → chunk-CtkiOUdU.js} +6 -6
- package/browser/{chunk-BlWlE-Cq.js → chunk-CwaAd8kk.js} +1 -1
- package/browser/{chunk-Bgy3uCgK.js → chunk-DDnWPYAA.js} +1 -1
- package/browser/{chunk-CHrmSvQM.js → chunk-DOq0u21j.js} +1 -1
- package/browser/{chunk-DX2ZzvT5.js → chunk-DQLU3kYb.js} +1 -1
- package/browser/{chunk-fP29MqaN.js → chunk-Dcftf7UY.js} +1 -1
- package/browser/{chunk-BZMAEe_X.js → chunk-Dfujxxcr.js} +1 -1
- package/browser/chunk-DgrvmqY2.js +2 -0
- package/browser/{chunk-CebS4RAf.js → chunk-DoKoAMs6.js} +1 -1
- package/browser/{chunk-CNIfOUla.js → chunk-Dtu-PLbq.js} +1 -1
- package/browser/{chunk-C4U0w8cP.js → chunk-DzlrRiVM.js} +1 -1
- package/browser/{chunk-BfD1F12k.js → chunk-HjD5Rk4C.js} +3 -3
- package/browser/{chunk-CcLheUaL.js → chunk-IUvEtpfr.js} +1 -1
- package/browser/{chunk-DTIhOEG_.js → chunk-S8F5_Te_.js} +6 -6
- package/browser/{chunk-HSc9fwVS.js → chunk-SbH2L3h2.js} +1 -1
- package/browser/{chunk-BKlwFrFB.js → chunk-UzUd84Qf.js} +1 -1
- package/browser/chunk-YS-vAhPY.js +190 -0
- package/browser/{chunk-BUEM7g7F.js → chunk-YfG457Nc.js} +3 -3
- package/browser/{chunk-DG2FCeMu.js → chunk-axGY7UtD.js} +1 -1
- package/browser/chunk-fYErSEXN.js +1 -0
- package/browser/{chunk-BgHTiTG2.js → chunk-fhFxOLYS.js} +1 -1
- package/browser/{chunk-qARg6ese.js → chunk-gmPqDrDS.js} +1 -1
- package/browser/{chunk-DvzNS1Bs.js → chunk-iNIQR015.js} +1 -1
- package/browser/{chunk-Dj9y_5pr.js → chunk-izARvh_2.js} +1 -1
- package/browser/{chunk-Cf3l2UgA.js → chunk-jv0lz5Ah.js} +1 -1
- package/browser/{chunk-nWqZHM4o.js → chunk-kvCfAm7Z.js} +1 -1
- package/browser/{chunk-ZvcyZV3G.js → chunk-pH1k_bet.js} +1 -1
- package/browser/{chunk-DYE131qf.js → chunk-rwEyLSEP.js} +1 -1
- package/browser/{chunk-XgEfnfT0.js → chunk-swj7IkJA.js} +1 -1
- package/browser/chunk-tTmeIHGS.js +37 -0
- package/browser/index.html +1 -1
- package/browser/{main-6K2UFGD2.js → main-5PAOSHSM.js} +19 -19
- package/package.json +1 -1
- package/browser/chunk-BC0acSZF.js +0 -1
- package/browser/chunk-BLa2Gx7h.js +0 -190
- package/browser/chunk-B_2kLXvG.js +0 -1
- package/browser/chunk-C9tuHQmZ.js +0 -37
- package/browser/chunk-CnnGSYzi.js +0 -2
- package/browser/chunk-DEsz0fzs.js +0 -1
- package/browser/chunk-DXDohTwX.js +0 -1
- package/browser/chunk-uPxETzZs.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
import {B}from'./chunk-
|
|
1
|
+
import {B}from'./chunk-BY7uKZAo.js';import {g,G,h as Fw,m as ws,Q as QC,n as hl,r as cC,t as nI,y as uC,a9 as gC,o as Rg,v as bg,aa as wf,ac as EC,ab as Cf}from'./main-5PAOSHSM.js';import'./chunk-CtkiOUdU.js';import'./chunk-S8F5_Te_.js';import'./chunk-tTmeIHGS.js';import'./chunk-kvCfAm7Z.js';var M=(a,n)=>n.key;function b(a,n){if(a&1){let e=gC();ws(0,"agentos-action-card",6),Rg("nameClicked",function(){let v=wf(e).$implicit,x=EC();return Cf(x.navigateTo(v.path))}),hl();}if(a&2){let e=n.$implicit;bg("name",e.name)("mark",e.mark)("markIsEmoji",true)("description",e.description)("clickable",true);}}var C=class a{router=g(G);sections=[{key:"users",mark:"\u{1F464}",name:"Users & Groups",description:"Manage platform users, their admin rights, and namespace user groups.",path:"/agentos/admin/users"},{key:"agents",mark:"\u{1F916}",name:"Platform agents",description:"Manage agent configs shared across all namespaces.",path:"/agentos/admin/agent-configs"},{key:"integrations",mark:"\u{1F517}",name:"Platform integrations",description:"Manage integration configs shared across all namespaces.",path:"/agentos/admin/integration-configs"},{key:"authSetting",mark:"\u{1F512}",name:"Auth settings",description:"Manage auth settings shared across all namespaces.",path:"/agentos/admin/auth-settings"},{key:"ai-providers",mark:"\u{1F9E0}",name:"Platform AI providers",description:"Manage AI provider configs shared across all namespaces.",path:"/agentos/admin/ai-providers"},{key:"ai-models",mark:"\u2728",name:"Platform AI models",description:"Manage AI model configs shared across all namespaces.",path:"/agentos/admin/ai-models"},{key:"prompts",mark:"\u{1F4C4}",name:"Platform prompts",description:"Manage prompts shared across all namespaces.",path:"/agentos/admin/prompts"},{key:"case-definitions",mark:"\u23F0",name:"Platform case definitions",description:"Manage scheduled case definitions shared across all namespaces.",path:"/agentos/admin/case-definitions"}];navigateTo(n){this.router.navigate([n]);}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=Fw({type:a,selectors:[["agentos-admin-home"]],decls:9,vars:0,consts:[[1,"admin-home"],[1,"admin-home__header"],[1,"admin-home__title"],[1,"admin-home__subtitle"],[1,"admin-home__sections"],[3,"name","mark","markIsEmoji","description","clickable"],[3,"nameClicked","name","mark","markIsEmoji","description","clickable"]],template:function(e,s){e&1&&(ws(0,"div",0)(1,"header",1)(2,"h1",2),QC(3,"Administration"),hl(),ws(4,"p",3),QC(5,"Platform-level settings, visible to super-admins only."),hl()(),ws(6,"nav",4),cC(7,b,1,5,"agentos-action-card",5,M),hl()()),e&2&&(nI(7),uC(s.sections));},dependencies:[B],styles:[".admin-home[_ngcontent-%COMP%]{max-width:860px;margin:0 auto;padding:2rem 1rem;display:flex;flex-direction:column;gap:2rem}.admin-home__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.admin-home__title[_ngcontent-%COMP%]{margin:0;font-size:28px;font-weight:700;color:var(--color-text);font-family:var(--font-heading)}.admin-home__subtitle[_ngcontent-%COMP%]{margin:0;font-size:13px;color:var(--color-neutral-600)}.admin-home__sections[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}"]})};export{C as AdminHomeComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {O}from'./chunk-IUvEtpfr.js';import {R}from'./chunk-rwEyLSEP.js';import {g,G,w as we,aJ as Tr,a as Gi,bS as Da,u as ue,c as U,h as Fw,aK as Ob,m as ws,bf as dT,o as Rg,Q as QC,n as hl,af as Eg,M as MC,v as bg,bg as pT,ah as aT,q as oC,ac as EC,x as iC,a9 as gC,aa as wf,ab as Cf,ag as mT}from'./main-5PAOSHSM.js';import'./chunk-BY7uKZAo.js';import {W as Wn}from'./chunk-CtkiOUdU.js';import'./chunk-S8F5_Te_.js';import'./chunk-tTmeIHGS.js';import'./chunk-BEUXx3TO.js';import'./chunk-kvCfAm7Z.js';var k=()=>[];function V(i,t){if(i&1){let e=gC();ws(0,"agentos-auth-setting-item",4),Rg("editRequested",function(n){wf(e);let p=EC(2);return Cf(p.onEdit(n))})("deleteRequested",function(n){wf(e);let p=EC(2);return Cf(p.onDelete(n))}),hl();}i&2&&bg("config",t)("showBadge",false);}function F(i,t){if(i&1&&oC(0,V,1,2,"agentos-auth-setting-item",3),i&2){let e,o=t.$implicit,n=EC();iC((e=n.resolveSetting(o.id))?0:-1,e);}}var M=class i{router=g(G);destroyRef=g(we);state=g(R);refresh$=new Tr(void 0);isLoading=Gi(true);settings$=this.refresh$.pipe(Da(()=>(this.isLoading.set(true),this.state.loadPlatformSettings())));settingItems$=this.settings$.pipe(ue(t=>t.map(e=>({id:e.id??"",name:e.name,description:e.authType}))));settingsById=new Map;constructor(){this.settings$.pipe(U(this.destroyRef)).subscribe({next:t=>{this.settingsById=new Map(t.map(e=>[e.id??"",e])),this.isLoading.set(false);},error:()=>this.isLoading.set(false)});}goBack(){this.router.navigate(["/agentos","admin"]);}openCreateForm(){this.router.navigate(["/agentos","admin","auth-settings","new"]);}onEdit(t){t.id&&this.router.navigate(["/agentos","admin","auth-settings",t.id,"edit"]);}onDelete(t){t.id&&this.state.delete(t.id,"platform").pipe(U(this.destroyRef)).subscribe(()=>this.refresh$.next());}resolveSetting(t){return this.settingsById.get(t)??null}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=Fw({type:i,selectors:[["agentos-platform-auth-settings"]],decls:6,vars:7,consts:[["authSettingItemTpl",""],["title","Platform Auth Settings","emptyMessage","No platform auth settings defined yet. Add one above.","cardMinWidth","400px",3,"createRequested","items","loading","showCreate","itemTemplate"],["toolbar-start","","type","button",1,"platform-auth-settings__back",3,"click"],["scope","namespace",3,"config","showBadge"],["scope","namespace",3,"editRequested","deleteRequested","config","showBadge"]],template:function(e,o){if(e&1&&(ws(0,"ds-entity-list",1),dT(1,"async"),Rg("createRequested",function(){return o.openCreateForm()}),ws(2,"button",2),Rg("click",function(){return o.goBack()}),QC(3,"\u2190 Admin"),hl()(),Eg(4,F,1,1,"ng-template",null,0,mT)),e&2){let n=MC(5);bg("items",pT(1,4,o.settingItems$)??aT(6,k))("loading",o.isLoading())("showCreate",true)("itemTemplate",n);}},dependencies:[Wn,O,Ob],encapsulation:2})};export{M as PlatformAuthSettingsComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {i}from'./chunk-
|
|
1
|
+
import {i}from'./chunk-BEUXx3TO.js';import {l}from'./chunk-BY7uKZAo.js';import {g as g$1,dd as $,aJ as Tr,aD as jy,bS as Da,a7 as va,X as br,u as ue,cE as Od,bU as kd,b as P,Y as x}from'./main-5PAOSHSM.js';var g="none",N="me",O=class p{nsController=g$1($);userState=g$1(l);refresh$=new Tr(void 0);namespaceId$=new Tr(null);vm$=jy([this.namespaceId$,this.refresh$]).pipe(Da(([e])=>{let r=this.loadPlatformProviders().pipe(va(()=>br([])));return e?jy([r,this.loadNamespaceProviders(e).pipe(va(()=>br([]))),this.loadUserProviders(e).pipe(va(()=>br([]))),this.loadUserProviders("global").pipe(va(()=>br([])))]).pipe(ue(([i,n,s,t])=>({platform:i,namespace:n,userOnNs:s,userGlobal:t}))):jy([r,this.loadNamespaceProviders("").pipe(va(()=>br([]))),this.loadUserProviders("global").pipe(va(()=>br([])))]).pipe(ue(([i,n,s])=>({platform:i,namespace:n,userOnNs:[],userGlobal:s})))}),Od({bufferSize:1,refCount:true}));setNamespace(e){this.namespaceId$.value!==e&&this.namespaceId$.next(e);}refresh(){this.refresh$.next();}loadUserProviders(e){let r=e==="global"?g:e;return this.nsController.listAiProvider(r,N)}userGlobal$=i(this.refresh$,()=>this.loadUserProviders("global"),[]);loadPlatformProviders(){return this.nsController.listAiProvider(g)}loadNamespaceProviders(e){return e?this.nsController.listAiProvider(e):br([])}getById(e,r){return this.nsController.getByIdAiProvider(e)}create(e,r,i){let s=this.userState.currentUser()?.id;if((r==="userOnNs"||r==="userGlobal")&&!s)throw new Error(`Cannot create ${r} provider before UserStateService.loadMe() resolves \u2014 call loadMe() at app init`);if(r==="namespace"){if(i===void 0||i==="")throw new Error("Cannot create namespace-scoped provider without a namespaceId");let S={name:e.name,apiType:e.apiType,description:e.description,baseUrl:e.baseUrl,apiKey:e.apiKey,headers:e.headers??void 0,namespaceId:i??void 0};return this.nsController.createAiProvider(S).pipe(kd(()=>this.refresh()))}if(r==="userOnNs"&&!i)throw new Error("Cannot create userOnNs provider without a namespaceId");let t={name:e.name,apiType:e.apiType,description:e.description,baseUrl:e.baseUrl,apiKey:e.apiKey,headers:e.headers??void 0,userId:s,namespaceId:r==="userOnNs"?i:void 0};return this.nsController.createAiProvider(t).pipe(kd(()=>this.refresh()))}update(e,r,i,n){let s=r.apiKey===null?{}:{apiKey:r.apiKey},t=P({name:r.name,apiType:r.apiType,description:r.description,baseUrl:r.baseUrl,headers:r.headers??void 0,namespaceId:n.namespaceId,userId:n.userId},s);return this.nsController.updateAiProvider(e,t).pipe(kd(()=>this.refresh()))}delete(e,r){return this.nsController.deleteAiProvider(e).pipe(kd(()=>this.refresh()))}static \u0275fac=function(r){return new(r||p)};static \u0275prov=x({token:p,factory:p.\u0275fac,providedIn:"root"})};export{O};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b as Qe}from'./chunk-
|
|
1
|
+
import {b as Qe}from'./chunk-S8F5_Te_.js';import {D as D$1,i as y}from'./chunk-tTmeIHGS.js';import {g,I as fy,bU as kd,Y as x,aL as Eo,aM as qn,aO as wt,az as Kt,bw as St,bs as bl,aW as w,aS as K,al as yt,aX as D,bx as on,by as cm,aT as Ut,h as Fw,bz as Oi,aC as bu,a_ as JT,bA as wC,m as ws,o as Rg,S as Sg,n as hl,q as oC,bB as CC,M as MC,v as bg,t as nI,A as Ug,T as Tg,x as iC,b5 as sT,bC as bi,c8 as eb,c0 as xg,b$ as BC,C as Pg,D as bC,H as SC,c9 as Ff}from'./main-5PAOSHSM.js';var ae=["switch"],ie=["*"];function ne(a,s){a&1&&(ws(0,"span",11),Ff(),ws(1,"svg",13),Sg(2,"path",14),hl(),ws(3,"svg",15),Sg(4,"path",16),hl()());}var ce=new w("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:false,hideIcon:false,disabledInteractive:false})}),b=class{source;checked;constructor(s,e){this.source=s,this.checked=e;}},se=(()=>{class a{_elementRef=g(Kt);_focusMonitor=g(St);_changeDetectorRef=g(bl);defaults=g(ce);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=false;_createChangeEvent(e){return new b(this,e)}_labelId;get buttonId(){return `${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus();}_noopAnimations=K();_focused=false;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=false;color;disabled=false;disableRipple=false;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck();}hideIcon;disabledInteractive;change=new yt;toggleChange=new yt;get inputId(){return `${this.id||this._uniqueId}-input`}constructor(){g(D).load(on);let e=g(new cm("tabindex"),{optional:true}),i=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this.id=this._uniqueId=g(Ut).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??false,this.disabledInteractive=i.disabledInteractive??false,this._labelId=this._uniqueId+"-label";}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,true).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=true,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=false,this._onTouched(),this._changeDetectorRef.markForCheck();});});}ngOnChanges(e){e.required&&this._validatorOnChange();}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef);}writeValue(e){this.checked=!!e;}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}validate(e){return this.required&&e.value!==true?{required:true}:null}registerOnValidatorChange(e){this._validatorOnChange=e;}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck();}toggle(){this.checked=!this.checked,this._onChange(this.checked);}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked));}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new b(this,this.checked))));}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=Fw({type:a,selectors:[["mat-slide-toggle"]],viewQuery:function(i,t){if(i&1&&Pg(ae,5),i&2){let r;bC(r=SC())&&(t._switchElement=r.first);}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,t){i&2&&(xg("id",t.id),Tg("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),BC(t.color?"mat-"+t.color:""),Ug("mat-mdc-slide-toggle-focused",t._focused)("mat-mdc-slide-toggle-checked",t.checked)("_mat-animation-noopable",t._noopAnimations));},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",JT],color:"color",disabled:[2,"disabled","disabled",JT],disableRipple:[2,"disableRipple","disableRipple",JT],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:eb(e)],checked:[2,"checked","checked",JT],hideIcon:[2,"hideIcon","hideIcon",JT],disabledInteractive:[2,"disabledInteractive","disabledInteractive",JT]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[sT([{provide:D$1,useExisting:bi(()=>a),multi:true},{provide:y,useExisting:a,multi:true}]),bu],ngContentSelectors:ie,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(i,t){if(i&1&&(wC(),ws(0,"div",1)(1,"button",2,0),Rg("click",function(){return t._handleClick()}),Sg(3,"div",3)(4,"span",4),ws(5,"span",5)(6,"span",6)(7,"span",7),Sg(8,"span",8),hl(),ws(9,"span",9),Sg(10,"span",10),hl(),oC(11,ne,5,0,"span",11),hl()()(),ws(12,"label",12),Rg("click",function(ee){return ee.stopPropagation()}),CC(13),hl()()),i&2){let r=MC(2);bg("labelPosition",t.labelPosition),nI(),Ug("mdc-switch--selected",t.checked)("mdc-switch--unselected",!t.checked)("mdc-switch--checked",t.checked)("mdc-switch--disabled",t.disabled)("mat-mdc-slide-toggle-disabled-interactive",t.disabledInteractive),bg("tabIndex",t.disabled&&!t.disabledInteractive?-1:t.tabIndex)("disabled",t.disabled&&!t.disabledInteractive),Tg("id",t.buttonId)("name",t.name)("aria-label",t.ariaLabel)("aria-labelledby",t._getAriaLabelledBy())("aria-describedby",t.ariaDescribedby)("aria-required",t.required||null)("aria-checked",t.checked)("aria-disabled",t.disabled&&t.disabledInteractive?"true":null),nI(9),bg("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",true),nI(),iC(t.hideIcon?-1:11),nI(),bg("for",t.buttonId),Tg("id",t._labelId);}},dependencies:[Oi,Qe],styles:[`.mdc-switch {
|
|
2
2
|
align-items: center;
|
|
3
3
|
background: none;
|
|
4
4
|
border: none;
|
|
@@ -426,4 +426,4 @@ import {b as Qe}from'./chunk-DTIhOEG_.js';import {D as D$1,i as y}from'./chunk-C
|
|
|
426
426
|
right: 50%;
|
|
427
427
|
transform: translate(50%, -50%);
|
|
428
428
|
}
|
|
429
|
-
`],encapsulation:2})}return a})(),ke=(()=>{class a{static \u0275fac=function(i){return new(i||a)};static \u0275mod=Eo({type:a});static \u0275inj=qn({imports:[se,wt]})}return a})();var W=class a{http=g(
|
|
429
|
+
`],encapsulation:2})}return a})(),ke=(()=>{class a{static \u0275fac=function(i){return new(i||a)};static \u0275mod=Eo({type:a});static \u0275inj=qn({imports:[se,wt]})}return a})();var W=class a{http=g(fy);getUserConfig(){return this.http.get("/api/config/user").pipe(kd(s=>console.log("[CONFIG-API] User config retrieved:",s)))}updateUserConfig(s){return this.http.put("/api/config/user",s).pipe(kd(e=>console.log("[CONFIG-API] User config updated:",e)))}static \u0275fac=function(e){return new(e||a)};static \u0275prov=x({token:a,factory:a.\u0275fac,providedIn:"root"})};export{W,ke as k,se as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {R}from'./chunk-
|
|
1
|
+
import {R}from'./chunk-Bib1Seeu.js';import {c}from'./chunk-CbK5Lcu9.js';import {g,ao as V$1,G,w as we,a as Gi,E as ET,W as Vy,a7 as va,X as br,c as U,h as Fw,m as ws,o as Rg,n as hl,af as Eg,M as MC,v as bg,q as oC,ac as EC,x as iC,a9 as gC,aa as wf,ab as Cf,ag as mT}from'./main-5PAOSHSM.js';import {W as Wn,S as Se}from'./chunk-CtkiOUdU.js';import'./chunk-S8F5_Te_.js';import'./chunk-tTmeIHGS.js';function V(i,e){if(i&1){let t=gC();ws(0,"agentos-scheduled-prompt-item",4),Rg("enableRequested",function(n){wf(t);let s=EC(2);return Cf(s.enablePrompt(n))})("disableRequested",function(n){wf(t);let s=EC(2);return Cf(s.disablePrompt(n))})("deleteRequested",function(n){wf(t);let s=EC(2);return Cf(s.deletePrompt(n))}),hl();}if(i&2){let t=EC().$implicit,o=EC();bg("definition",e)("namespaceId",o.namespaceId)("readOnly",o.isPlatformPrompt(t.id));}}function k(i,e){if(i&1&&oC(0,V,1,3,"agentos-scheduled-prompt-item",3),i&2){let t,o=e.$implicit,n=EC();iC((t=n.resolvePrompt(o.id))?0:-1,t);}}var O="platform",B="namespace",M=class i{route=g(V$1);router=g(G);destroyRef=g(we);state=g(c);namespaceId=this.route.snapshot.params.namespaceId;platformPrompts=Gi([]);namespacePrompts=Gi([]);isLoading=Gi(true);promptItems=ET(()=>[...this.platformPrompts().map(e=>({id:e.id??"",name:e.name,description:e.description,groupKey:O,groupLabel:"Platform (read-only)",badges:[{label:e.enabled?"Enabled":"Disabled",variant:e.enabled?"success":"warning"}]})),...this.namespacePrompts().map(e=>({id:e.id??"",name:e.name,description:e.description,groupKey:B,groupLabel:"Namespace",badges:[{label:e.enabled?"Enabled":"Disabled",variant:e.enabled?"success":"warning"}]}))]);constructor(){Vy({platform:this.state.listPlatform().pipe(va(()=>br([]))),namespace:this.state.listByNamespace(this.namespaceId)}).pipe(U(this.destroyRef)).subscribe({next:({platform:e,namespace:t})=>{this.platformPrompts.set(e),this.namespacePrompts.set(t),this.isLoading.set(false);},error:()=>this.isLoading.set(false)});}goBack(){this.router.navigate(["/agentos","namespaces"]);}openCreateForm(){this.router.navigate(["/agentos",this.namespaceId,"scheduled-prompts","new"]);}enablePrompt(e){this.state.enable(e.id??"").pipe(U(this.destroyRef)).subscribe(t=>this.patchNamespacePrompt(t));}disablePrompt(e){this.state.disable(e.id??"").pipe(U(this.destroyRef)).subscribe(t=>this.patchNamespacePrompt(t));}deletePrompt(e){let t=e.id??"";this.state.delete(t).pipe(U(this.destroyRef)).subscribe(()=>this.namespacePrompts.update(o=>o.filter(n=>n.id!==t)));}resolvePrompt(e){return this.platformPrompts().find(t=>t.id===e)??this.namespacePrompts().find(t=>t.id===e)??null}isPlatformPrompt(e){return this.platformPrompts().some(t=>t.id===e)}patchNamespacePrompt(e){this.namespacePrompts.update(t=>t.map(o=>o.id===e.id?e:o));}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=Fw({type:i,selectors:[["agentos-scheduled-prompt-list"]],decls:4,vars:4,consts:[["scheduledPromptItemTpl",""],["title","Scheduled Prompts","emptyMessage","No scheduled prompts yet. Create one to get started.","cardMinWidth","420px",3,"createRequested","items","loading","showCreate","itemTemplate"],["toolbar-start","","icon","arrow_back","title","Back",3,"action"],[3,"definition","namespaceId","readOnly"],[3,"enableRequested","disableRequested","deleteRequested","definition","namespaceId","readOnly"]],template:function(t,o){if(t&1&&(ws(0,"ds-entity-list",1),Rg("createRequested",function(){return o.openCreateForm()}),ws(1,"ds-icon-button",2),Rg("action",function(){return o.goBack()}),hl()(),Eg(2,k,1,1,"ng-template",null,0,mT)),t&2){let n=MC(3);bg("items",o.promptItems())("loading",o.isLoading())("showCreate",true)("itemTemplate",n);}},dependencies:[Wn,R,Se],encapsulation:2})};export{M as ScheduledPromptListComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {O}from'./chunk-
|
|
1
|
+
import {O}from'./chunk-7jUQT_3F.js';import {g,G,w as we,d8 as B,aJ as Tr,a as Gi,bS as Da,u as ue,c as U,h as Fw,aK as Ob,m as ws,bf as dT,o as Rg,n as hl,af as Eg,M as MC,v as bg,bg as pT,ah as aT,q as oC,ac as EC,x as iC,a9 as gC,aa as wf,ab as Cf,ag as mT}from'./main-5PAOSHSM.js';import {W as Wn,S as Se}from'./chunk-CtkiOUdU.js';import'./chunk-S8F5_Te_.js';import'./chunk-tTmeIHGS.js';var S=()=>[];function F(n,t){if(n&1){let e=gC();ws(0,"agentos-agent-config-item",4),Rg("deleteRequested",function(i){wf(e);let E=EC(2);return Cf(E.deleteConfig(i))}),hl();}n&2&&bg("config",t)("platformMode",true);}function N(n,t){if(n&1&&oC(0,F,1,2,"agentos-agent-config-item",3),n&2){let e,o=t.$implicit,i=EC();iC((e=i.resolveConfig(o.id))?0:-1,e);}}var q=class n{router=g(G);destroyRef=g(we);agentConfigController=g(B);refresh$=new Tr(void 0);isLoading=Gi(true);configs$=this.refresh$.pipe(Da(()=>(this.isLoading.set(true),this.agentConfigController.listPlatformAgentsAgentConfig(true))));configItems$=this.configs$.pipe(ue(t=>t.map(e=>({id:e.id??"",name:e.name,description:e.description}))));configsById=new Map;constructor(){this.configs$.pipe(U(this.destroyRef)).subscribe({next:t=>{this.configsById=new Map(t.map(e=>[e.id??"",e])),this.isLoading.set(false);},error:()=>this.isLoading.set(false)});}goBack(){this.router.navigate(["/agentos","admin"]);}openCreateForm(){this.router.navigate(["/agentos","admin","agent-configs","new"]);}deleteConfig(t){this.agentConfigController.deleteAgentConfig(t.id??"").pipe(U(this.destroyRef)).subscribe(()=>this.refresh$.next());}resolveConfig(t){return this.configsById.get(t)??null}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Fw({type:n,selectors:[["agentos-platform-agent-configs"]],decls:5,vars:7,consts:[["agentConfigItemTpl",""],["title","Platform Agent Configs","emptyMessage","No platform agent configs defined yet. Add one above.","cardMinWidth","400px",3,"createRequested","items","loading","showCreate","itemTemplate"],["toolbar-start","","icon","arrow_back","title","Back",3,"action"],[3,"config","platformMode"],[3,"deleteRequested","config","platformMode"]],template:function(e,o){if(e&1&&(ws(0,"ds-entity-list",1),dT(1,"async"),Rg("createRequested",function(){return o.openCreateForm()}),ws(2,"ds-icon-button",2),Rg("action",function(){return o.goBack()}),hl()(),Eg(3,N,1,1,"ng-template",null,0,mT)),e&2){let i=MC(4);bg("items",pT(1,4,o.configItems$)??aT(6,S))("loading",o.isLoading())("showCreate",true)("itemTemplate",i);}},dependencies:[Wn,O,Se,Ob],styles:[".platform-agent-configs__back[_ngcontent-%COMP%]{background:none;border:none;padding:0;cursor:pointer;font-size:.875rem;color:var(--color-primary, #007aff);font-family:inherit}.platform-agent-configs__back[_ngcontent-%COMP%]:hover{text-decoration:underline}"]})};export{q as PlatformAgentConfigsComponent};
|