@whoz-oss/coday-client 0.0.0-workstream-forge.171 → 0.0.0-workstream-forge.173
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-8GkesQ0k.js +1 -0
- package/browser/chunk-Azkube5e.js +1 -0
- package/browser/chunk-B6Yr3RDc.js +1 -0
- package/browser/{chunk-D8_LjQNu.js → chunk-B7CFfwor.js} +11 -11
- package/browser/chunk-BAmUhuXv.js +1 -0
- package/browser/chunk-BCFG3cAt.js +1 -0
- package/browser/chunk-BCFOIPzr.js +1 -0
- package/browser/chunk-BHRpnB0r.js +1 -0
- package/browser/{chunk-CNU0caUf.js → chunk-BPkdfsYS.js} +1 -1
- package/browser/{chunk-P4r1dEyn.js → chunk-BU5NDNAL.js} +1 -1
- package/browser/{chunk-DLChehGS.js → chunk-Bb_Z6sgc.js} +1 -1
- package/browser/chunk-BgvdBMGK.js +1 -0
- package/browser/{chunk-BE2gr3p6.js → chunk-Bk8l2wLo.js} +1 -1
- package/browser/chunk-BlpzRg0n.js +1 -0
- package/browser/{chunk-DFBs-RE9.js → chunk-BpmC_e5B.js} +1 -1
- package/browser/chunk-By0AYWlV.js +1 -0
- package/browser/chunk-C2do5buM.js +1 -0
- package/browser/chunk-CDfJLQb0.js +1 -0
- package/browser/chunk-CFTZLmDK.js +1 -0
- package/browser/{chunk-DW2g7bf8.js → chunk-C_2XXNbn.js} +1 -1
- package/browser/chunk-CbCz42Oe.js +1 -0
- package/browser/chunk-CcnD-khz.js +2 -0
- package/browser/chunk-CmJpcitD.js +1 -0
- package/browser/chunk-CmaAeOoQ.js +1 -0
- package/browser/chunk-Cnx9Er_d.js +2 -0
- package/browser/chunk-D-Fk7tKq.js +1 -0
- package/browser/chunk-D84tLLZv.js +1 -0
- package/browser/{chunk-dhR_kF8u.js → chunk-D9CvLQsC.js} +1 -1
- package/browser/chunk-DBoYNp5Y.js +1 -0
- package/browser/chunk-DFeu1IE1.js +1 -0
- package/browser/{chunk-BvstaQVd.js → chunk-DG9i3ksz.js} +1 -1
- package/browser/{chunk-BTy6yKH4.js → chunk-DK_JhKAm.js} +1 -1
- package/browser/{chunk-DviWI6ZH.js → chunk-DNLvVWb0.js} +1 -1
- package/browser/chunk-DZz2LVJ1.js +1 -0
- package/browser/chunk-Dc2iz8II.js +1 -0
- package/browser/{chunk-BKo5gTaz.js → chunk-DdNbpTgI.js} +1 -1
- package/browser/chunk-DeRoM7DQ.js +1 -0
- package/browser/{chunk-Blgx9AFm.js → chunk-Df4ffgbb.js} +1 -1
- package/browser/chunk-DxIjlwnT.js +1 -0
- package/browser/{chunk-xALPtt6X.js → chunk-DzCB16yn.js} +1 -1
- package/browser/{chunk-DQWi-xSi.js → chunk-H7vIl5DX.js} +1 -1
- package/browser/chunk-JFcgVIrZ.js +1 -0
- package/browser/chunk-W06JlWhl.js +1 -0
- package/browser/{chunk-DrpC3fGm.js → chunk-Xi3S8PpM.js} +1 -1
- package/browser/chunk-jYaGAlaB.js +1 -0
- package/browser/{chunk-xgxXbGGi.js → chunk-qz6FbyLX.js} +1 -1
- package/browser/index.html +3 -3
- package/browser/main-5RLWJYOC.js +564 -0
- package/browser/styles-VTJT2VI6.css +1 -0
- package/package.json +1 -1
- package/browser/chunk-71J15-v3.js +0 -1
- package/browser/chunk-8jObMYuf.js +0 -1
- package/browser/chunk-B3NozCkD.js +0 -1
- package/browser/chunk-BIQHTDel.js +0 -2
- package/browser/chunk-BPKteNGV.js +0 -1
- package/browser/chunk-BT-NlYaf.js +0 -1
- package/browser/chunk-BU3k32e3.js +0 -1
- package/browser/chunk-B_QodpYG.js +0 -1
- package/browser/chunk-Bq24Rml2.js +0 -1
- package/browser/chunk-C5m9mgHu.js +0 -1
- package/browser/chunk-C_OMTp5P.js +0 -1
- package/browser/chunk-CeHH5awD.js +0 -1
- package/browser/chunk-CnV27gYr.js +0 -1
- package/browser/chunk-Co0A853g.js +0 -1
- package/browser/chunk-CoRwPlfd.js +0 -2
- package/browser/chunk-D-BPxKQ6.js +0 -1
- package/browser/chunk-D2S3Krd9.js +0 -1
- package/browser/chunk-DDOr2TDF.js +0 -1
- package/browser/chunk-DVl0k4as.js +0 -1
- package/browser/chunk-DYTKtJg4.js +0 -1
- package/browser/chunk-DZQmSPQb.js +0 -1
- package/browser/chunk-DcZyBFc0.js +0 -1
- package/browser/chunk-DrWMSNHn.js +0 -1
- package/browser/chunk-DsTtqeXD.js +0 -1
- package/browser/chunk-EVTfRXob.js +0 -1
- package/browser/chunk-EnGHXwUB.js +0 -1
- package/browser/chunk-m9jY08fz.js +0 -1
- package/browser/chunk-w5fqwHg4.js +0 -1
- package/browser/main-YWZOZ7BG.js +0 -564
- package/browser/styles-FNIV4SFO.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {S}from'./chunk-B7CFfwor.js';import {m as mw,T as br,D as Ds,M as MC,a as pl,l as lg,G as ug}from'./main-5RLWJYOC.js';var c=class a{groups=[{label:"Access",items:[{label:"Users & Groups",commands:["users"]},{label:"Auth settings",commands:["auth-settings"]}]},{label:"Connections",items:[{label:"Platform integrations",commands:["integration-configs"]}]},{label:"AI",items:[{label:"Platform agents",commands:["agent-configs"]},{label:"Platform AI providers",commands:["ai-providers"]},{label:"Platform AI models",commands:["ai-models"]},{label:"Platform skills",commands:["skills"]},{label:"Platform prompts",commands:["prompts"]}]},{label:"Automation",items:[{label:"Scheduled prompts",commands:["scheduled-prompts"]},{label:"Tool invoke",commands:["tool-invoke"]}]},{label:"System",items:[{label:"Configuration",commands:["configuration"]}]}];static \u0275fac=function(e){return new(e||a)};static \u0275cmp=mw({type:a,selectors:[["agentos-admin-settings-layout"]],decls:9,vars:1,consts:[["title","Admin \xB7 Configuration","mark","A","navigationLabel","Admin settings",3,"groups"],["settingsBreadcrumb","","aria-label","Breadcrumb"],["aria-hidden","true"]],template:function(e,g){e&1&&(Ds(0,"agentos-settings-layout",0)(1,"nav",1)(2,"span"),MC(3,"Platform"),pl(),Ds(4,"span",2),MC(5,"/"),pl(),Ds(6,"span"),MC(7,"Administration"),pl()(),lg(8,"router-outlet"),pl()),e&2&&ug("groups",g.groups);},dependencies:[br,S],styles:["nav[settingsBreadcrumb][_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}nav[settingsBreadcrumb][_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-accent-700);text-decoration:none}nav[settingsBreadcrumb][_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}nav[settingsBreadcrumb][_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}"]})};export{c as AdminSettingsLayoutComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {i}from'./chunk-D84tLLZv.js';import {y}from'./chunk-B7CFfwor.js';import {g,ad as W,aE as ye,$ as wr,ar as wy,a1 as fa,a2 as da,aa as Cr,az as ne,aC as Uy,a5 as yd,a6 as x}from'./main-5RLWJYOC.js';var u=s=>s,N="none",w="me",O=class s{nsController=g(W);exportService=g(ye);userState=g(y);refresh$=new wr(void 0);namespaceId$=new wr(null);vm$=wy([this.namespaceId$,this.refresh$]).pipe(fa(([e])=>{let n=this.loadPlatformConfigs().pipe(da(()=>Cr([]))),t=this.loadUserConfigs("global").pipe(da(()=>Cr([])));return e?wy([n,this.loadNamespaceConfigs(e).pipe(da(()=>Cr([]))),this.loadUserConfigs(e).pipe(da(()=>Cr([]))),t]).pipe(ne(([i,r,c,g])=>({platform:i,namespace:r,userOnNs:c,userGlobal:g}))):wy([n,t]).pipe(ne(([i,r])=>({platform:i,namespace:[],userOnNs:[],userGlobal:r})))}),Uy({bufferSize:1,refCount:true}));setNamespace(e){this.namespaceId$.value!==e&&this.namespaceId$.next(e);}refresh(){this.refresh$.next();}loadPlatformConfigs(){return this.nsController.listIntegrationConfig(N)}loadUserConfigs(e){let n=e==="global"?N:e;return this.nsController.listIntegrationConfig(n,w)}userGlobal$=i(this.refresh$,()=>this.loadUserConfigs("global"),[]);loadNamespaceConfigs(e){return e?this.nsController.listIntegrationConfig(e):Cr([])}getById(e,n){return this.nsController.getByIdIntegrationConfig(e)}create(e,n,t){let r=this.userState.currentUser()?.id;if((n==="userOnNs"||n==="userGlobal")&&!r)throw new Error(`Cannot create ${n} config before UserStateService.loadMe() resolves \u2014 call loadMe() at app init`);if(n==="platform"){let g={name:e.name,integrationType:e.integrationType,description:e.description,parameters:e.parameters,authSettingName:e.authSettingName??void 0,autoGrant:e.autoGrant??false};return this.nsController.createIntegrationConfig(u(g)).pipe(yd(()=>this.refresh()))}if(n==="namespace"){if(!t)throw new Error("Cannot create namespace-scoped config without a namespaceId");let g={name:e.name,integrationType:e.integrationType,description:e.description,namespaceId:t,parameters:e.parameters,authSettingName:e.authSettingName??void 0,autoGrant:e.autoGrant??false};return this.nsController.createIntegrationConfig(u(g)).pipe(yd(()=>this.refresh()))}if(n==="userOnNs"&&!t)throw new Error("Cannot create userOnNs config without a namespaceId");let c={name:e.name,integrationType:e.integrationType,description:e.description,userId:r,namespaceId:n==="userOnNs"?t:void 0,parameters:e.parameters,authSettingName:e.authSettingName??void 0,autoGrant:e.autoGrant??false};return this.nsController.createIntegrationConfig(u(c)).pipe(yd(()=>this.refresh()))}update(e,n,t,i){let r={name:n.name,integrationType:n.integrationType,description:n.description,userId:i.userId,namespaceId:i.namespaceId,parameters:n.parameters,authSettingName:n.authSettingName??void 0,autoGrant:n.autoGrant??false};return this.nsController.updateIntegrationConfig(e,u(r)).pipe(yd(()=>this.refresh()))}delete(e,n){return this.nsController.deleteIntegrationConfig(e).pipe(yd(()=>this.refresh()))}exportAsYaml(e){return this.exportService.exportAsYaml(e)}static \u0275fac=function(n){return new(n||s)};static \u0275prov=x({token:s,factory:s.\u0275fac,providedIn:"root"})};export{O};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {z as k,O,i as at,h as hn,I as Io,l as ko,P,B as P$1}from'./chunk-B7CFfwor.js';import {g,W as W$1,F,I as Ie,ae as $,$ as wr,U as Ui,a1 as fa,aj as Ty,a2 as da,aa as Cr,x as U$1,m as mw,D as Ds,J as mg,a as pl,M as MC,P as Pw,j as jE,G as ug,L as Lw,X as Xw,O as Og,V as Vw,H as Hw,v as vl,q as qw,k as df,n as ff,e as cg}from'./main-5RLWJYOC.js';var J=(n,e)=>e.key;function U(n,e){if(n&1&&(Ds(0,"p",3),MC(1),pl()),n&2){let t=Xw();jE(),Og(t.deletion.error());}}function z(n,e){n&1&&(Ds(0,"p",4),MC(1,"Loading agent configs\u2026"),pl());}function G(n,e){n&1&&(Ds(0,"p",5),MC(1,"No agent configs available."),pl());}function Q(n,e){n&1&&(Ds(0,"p",4),MC(1,"No agent configs match the current filter."),pl());}function W(n,e){n&1&&(Ds(0,"ds-tag",18),MC(1,"Read-only"),pl());}function X(n,e){if(n&1){let t=qw();Ds(0,"button",22),mg("click",function(){df(t);let s=Xw(2).$implicit,d=Xw(2);return ff(d.launch(s))}),MC(1," Launch "),pl();}if(n&2){let t=Xw(2).$implicit;cg("aria-label","Launch "+t.config.name);}}function Y(n,e){if(n&1){let t=qw();Ds(0,"button",22),mg("click",function(){df(t);let s=Xw(2).$implicit,d=Xw(2);return ff(d.edit(s))}),MC(1," Edit "),pl();}if(n&2){let t=Xw(2).$implicit;cg("aria-label","Edit "+t.config.name);}}function Z(n,e){if(n&1){let t=qw();Ds(0,"button",22),mg("click",function(){df(t);let s=Xw().$implicit,d=Xw(2);return ff(d.inspect(s))}),MC(1," Inspect "),pl(),Pw(2,X,2,1,"button",23),Pw(3,Y,2,1,"button",23);}if(n&2){let t=Xw().$implicit,i=Xw(2);cg("aria-label","Inspect "+t.config.name),jE(2),Lw(i.canLaunch(t)?2:-1),jE(),Lw(t.scope==="namespace"?3:-1);}}function ee(n,e){if(n&1){let t=qw();Ds(0,"agentos-row-delete-action",24),mg("deleteRequested",function(){df(t);let s=Xw().$implicit,d=Xw(2);return ff(d.deletion.request(s.key))})("deleteConfirmed",function(){df(t);let s=Xw().$implicit,d=Xw(2);return ff(d.confirmDelete(s))})("deleteCancelled",function(){df(t);let s=Xw(3);return ff(s.deletion.cancel())}),pl();}if(n&2){let t=Xw().$implicit,i=Xw(2);ug("rowKey",t.key)("rowLabel",t.config.name)("state",i.deletion);}}function te(n,e){if(n&1&&(Ds(0,"tr",9)(1,"td",12),MC(2),pl(),Ds(3,"td",13),MC(4),pl(),Ds(5,"td",14),MC(6),pl(),Ds(7,"td",15)(8,"div",16)(9,"ds-tag",17),MC(10),pl(),Pw(11,W,2,0,"ds-tag",18),pl()(),Ds(12,"td",19)(13,"div",20),Pw(14,Z,4,3),Pw(15,ee,1,3,"agentos-row-delete-action",21),pl()()()),n&2){let t=e.$implicit,i=Xw(2);jE(2),Og(t.config.name),jE(2),vl(" ",t.config.description||"\u2014"," "),jE(2),Og(i.mode(t)),jE(3),ug("variant",t.scope==="platform"?"neutral":"accent"),jE(),Og(t.scope==="platform"?"Platform":"Namespace"),jE(),Lw(t.scope==="platform"?11:-1),jE(3),Lw(i.deletion.confirmingId()!==t.key?14:-1),jE(),Lw(t.scope==="namespace"?15:-1);}}function ne(n,e){if(n&1&&(Ds(0,"div",6)(1,"table",7)(2,"thead",8)(3,"tr",9)(4,"th",10),MC(5,"Name"),pl(),Ds(6,"th",10),MC(7,"Description"),pl(),Ds(8,"th",10),MC(9,"Execution mode"),pl(),Ds(10,"th",10),MC(11,"Scope"),pl(),Ds(12,"th",10)(13,"span",11),MC(14,"Actions"),pl()()()(),Ds(15,"tbody",8),Vw(16,te,16,8,"tr",9,J),pl()()()),n&2){let t=Xw();jE(16),Hw(t.rowFilter.filteredRows());}}var H=class n{route=g(W$1);router=g(F);destroyRef=g(Ie);controller=g($);namespaceId=this.route.snapshot.params.namespaceId;refresh$=new wr(void 0);isLoading=Ui(true);deletion=k();rows=Ui([]);rowFilter=O(this.rows,e=>[e.config.name,e.config.description,this.mode(e),e.scope].filter(Boolean).join(" "));allConfigs$=this.refresh$.pipe(fa(()=>(this.isLoading.set(true),Ty({namespace:this.controller.listByParentAgentConfig(this.namespaceId),platform:this.controller.listPlatformAgentsAgentConfig().pipe(da(()=>Cr([])))}))));constructor(){this.allConfigs$.pipe(U$1(this.destroyRef)).subscribe({next:({namespace:e,platform:t})=>{this.rows.set([...t.map((i,s)=>({key:`platform:${i.id??s}`,config:i,scope:"platform"})),...e.map((i,s)=>({key:`namespace:${i.id??s}`,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"]);}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=mw({type:n,selectors:[["agentos-namespace-agent-configs"]],decls:9,vars:3,consts:[["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","Scope"],[1,"settings-table__tags"],[3,"variant"],["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","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&&(Ds(0,"ds-section-header",0)(1,"agentos-table-filter",1),mg("queryChange",function(d){return i.rowFilter.query.set(d)}),pl(),Ds(2,"button",2),mg("click",function(){return i.openCreateForm()}),MC(3,"New agent config"),pl()(),Pw(4,U,2,1,"p",3),Pw(5,z,2,0,"p",4)(6,G,2,0,"p",5)(7,Q,2,0,"p",4)(8,ne,18,0,"div",6)),t&2&&(jE(),ug("query",i.rowFilter.query()),jE(3),Lw(i.deletion.error()?4:-1),jE(),Lw(i.isLoading()?5:i.rows().length===0?6:i.rowFilter.filteredRows().length===0?7:8));},dependencies:[at,hn,Io,ko,P,P$1],encapsulation:2})};export{H as NamespaceAgentConfigsComponent};
|