@whoz-oss/coday-client 0.0.0-workstream-forge.232 → 0.0.0-workstream-forge.234
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-2gGq060a.js +1 -0
- package/browser/chunk-58tiRI-H.js +1 -0
- package/browser/chunk-6YBD0GhT.js +1 -0
- package/browser/{chunk-B8baUEmT.js → chunk-AtCYApei.js} +1 -1
- package/browser/chunk-B1xRCZ-V.js +1 -0
- package/browser/{chunk-BPdkZgsT.js → chunk-B97Q0PCu.js} +1 -1
- package/browser/chunk-BHKhFWCm.js +1 -0
- package/browser/chunk-BLevlpuu.js +1 -0
- package/browser/chunk-BRekDeCw.js +1 -0
- package/browser/chunk-BUfak7ZR.js +1 -0
- package/browser/chunk-BZQ9JxtK.js +1 -0
- package/browser/chunk-BjniM4kn.js +1 -0
- package/browser/{chunk-DjcIrFfd.js → chunk-BlPBulzu.js} +1 -1
- package/browser/chunk-Bqg4NsQw.js +1 -0
- package/browser/{chunk-WDJc7xVn.js → chunk-BtAgB7lp.js} +1 -1
- package/browser/chunk-BwLhUg85.js +1 -0
- package/browser/chunk-C4CShhcg.js +1 -0
- package/browser/chunk-C4FZ3_Nh.js +1 -0
- package/browser/chunk-C57r8bJB.js +1 -0
- package/browser/chunk-CHLgsXpc.js +1 -0
- package/browser/chunk-CWww3DEx.js +2 -0
- package/browser/chunk-CYwBGwuM.js +1 -0
- package/browser/chunk-Cii8kID2.js +2 -0
- package/browser/chunk-CjEtYpc7.js +1 -0
- package/browser/{chunk-CMPqP2EF.js → chunk-CrvFTHbA.js} +1 -1
- package/browser/{chunk-Rh-neiKa.js → chunk-CseRCWgR.js} +1 -1
- package/browser/chunk-Ct896VFa.js +1 -0
- package/browser/chunk-CyEpqhHA.js +1 -0
- package/browser/{chunk-BCYFEsQY.js → chunk-D2h70wlj.js} +1 -1
- package/browser/chunk-D5fiBKR6.js +1 -0
- package/browser/{chunk-CRfz50nT.js → chunk-DFkt8tY0.js} +1 -1
- package/browser/chunk-DKN9kTwu.js +1 -0
- package/browser/chunk-DKkNMT3S.js +1 -0
- package/browser/chunk-DMaZtyPG.js +1 -0
- package/browser/chunk-DRUw-4Lk.js +1 -0
- package/browser/chunk-Dz39nB4A.js +1 -0
- package/browser/chunk-KQaRB5fZ.js +1 -0
- package/browser/chunk-NuH8shYm.js +1 -0
- package/browser/chunk-OhgFuyjp.js +1 -0
- package/browser/chunk-TWv3ObgU.js +1 -0
- package/browser/chunk-XnJGN0OJ.js +2 -0
- package/browser/chunk-bCI6skcH.js +674 -0
- package/browser/{chunk-c_qjGPOd.js → chunk-d7XsX4kM.js} +1 -1
- package/browser/{chunk-DSTjQyTQ.js → chunk-iEPxdwNo.js} +1 -1
- package/browser/{chunk-BxwRgKBY.js → chunk-paKwZTsF.js} +1 -1
- package/browser/chunk-pbgW0Sdk.js +1 -0
- package/browser/index.html +1 -1
- package/browser/{main-HPRR3LFL.js → main-PUOSMZMX.js} +17 -17
- package/package.json +1 -1
- package/browser/chunk-B0vz8knv.js +0 -1
- package/browser/chunk-BC-t1LQ0.js +0 -1
- package/browser/chunk-BNLt7aDq.js +0 -1
- package/browser/chunk-BNhQCDMY.js +0 -1
- package/browser/chunk-BY5vmyDB.js +0 -1
- package/browser/chunk-Bg86ht3w.js +0 -1
- package/browser/chunk-Bkx1jNbv.js +0 -1
- package/browser/chunk-BxOB3DD8.js +0 -2
- package/browser/chunk-Bzech8Jm.js +0 -1
- package/browser/chunk-C25EGaCF.js +0 -1
- package/browser/chunk-CQwT3hLh.js +0 -1
- package/browser/chunk-Cet942zR.js +0 -1
- package/browser/chunk-CfEqRYpx.js +0 -1
- package/browser/chunk-Cmclgb-D.js +0 -2
- package/browser/chunk-CsW8J3QQ.js +0 -1
- package/browser/chunk-CyyVQAzK.js +0 -1
- package/browser/chunk-D02C8Sxz.js +0 -1
- package/browser/chunk-D2NMPGa5.js +0 -1
- package/browser/chunk-D4KiawUp.js +0 -1
- package/browser/chunk-D55dWwKm.js +0 -1
- package/browser/chunk-D9bz-8U4.js +0 -1
- package/browser/chunk-DIPHL1c9.js +0 -1
- package/browser/chunk-DJT7DUkW.js +0 -674
- package/browser/chunk-DW4fRjPY.js +0 -1
- package/browser/chunk-DWT2_U7s.js +0 -1
- package/browser/chunk-DbgTR-la.js +0 -1
- package/browser/chunk-DhxW6por.js +0 -2
- package/browser/chunk-Dosu1Uyt.js +0 -1
- package/browser/chunk-Ds9gmUVT.js +0 -1
- package/browser/chunk-Kc_v3nWb.js +0 -1
- package/browser/chunk-W2Auog5Y.js +0 -1
- package/browser/chunk-WqgsE68d.js +0 -1
- package/browser/chunk-tvgu7LYE.js +0 -1
- package/browser/chunk-vMe5ZNxR.js +0 -1
- package/browser/chunk-ynoqb-D_.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {c}from'./chunk-BxwRgKBY.js';import {z as k,O as O$1,i as at,h as hn,I as Io,l as ko,P,B as P$1}from'./chunk-DJT7DUkW.js';import {g,W,F,I as Ie,U as Ui,ac as Ty,a2 as da,aa as Tr,G as U,M as x,K as w,ai as Ne,al as De,y as yw,D as Ds,Q as mg,p as pl,N as NC,L as Lw,a as BE,P as ug,j as jw,J as Jw,O as Og,H as Hw,m as Uw,Z as Zw,r as df,s as ff,k as cg}from'./main-HPRR3LFL.js';var J=(n,t)=>t.key;function O(n,t){if(n&1&&(Ds(0,"p",3),NC(1),pl()),n&2){let e=Jw();BE(),Og(e.deletion.error());}}function Y(n,t){n&1&&(Ds(0,"p",4),NC(1,"Loading scheduled prompts\u2026"),pl());}function z(n,t){n&1&&(Ds(0,"p",5),NC(1,"No scheduled prompts available."),pl());}function G(n,t){n&1&&(Ds(0,"p",4),NC(1,"No scheduled prompts match the current filter."),pl());}function Q(n,t){if(n&1&&(Ds(0,"span",14),NC(1),pl()),n&2){let e=Jw().$implicit;BE(),Og(e.prompt.description);}}function X(n,t){n&1&&(Ds(0,"ds-tag",20),NC(1,"Read-only"),pl());}function Z(n,t){if(n&1){let e=Zw();Ds(0,"button",25),mg("click",function(){df(e);let l=Jw(2).$implicit,p=Jw(2);return ff(p.toggle(l))}),NC(1),pl(),Ds(2,"button",25),mg("click",function(){df(e);let l=Jw(2).$implicit,p=Jw(2);return ff(p.edit(l))}),NC(3," Edit "),pl();}if(n&2){let e=Jw(2).$implicit;BE(),Og(e.prompt.enabled?"Disable":"Enable"),BE(),cg("aria-label","Edit "+e.prompt.name);}}function ee(n,t){if(n&1){let e=Zw();Lw(0,Z,4,2),Ds(1,"agentos-row-delete-action",24),mg("deleteRequested",function(){df(e);let l=Jw().$implicit,p=Jw(2);return ff(p.deletion.request(l.key))})("deleteConfirmed",function(){df(e);let l=Jw().$implicit,p=Jw(2);return ff(p.confirmDelete(l))})("deleteCancelled",function(){df(e);let l=Jw(3);return ff(l.deletion.cancel())}),pl();}if(n&2){let e=Jw().$implicit,i=Jw(2);jw(i.deletion.confirmingId()!==e.key?0:-1),BE(),ug("rowKey",e.key)("rowLabel",e.prompt.name)("state",i.deletion);}}function te(n,t){n&1&&(Ds(0,"button",23),NC(1,"Inherited"),pl());}function ne(n,t){if(n&1&&(Ds(0,"tr",9)(1,"td",12)(2,"span",13),NC(3),pl(),Lw(4,Q,2,1,"span",14),pl(),Ds(5,"td",15),NC(6),pl(),Ds(7,"td",16)(8,"ds-tag",17),NC(9),pl()(),Ds(10,"td",18)(11,"div",19)(12,"ds-tag",17),NC(13),pl(),Lw(14,X,2,0,"ds-tag",20),pl()(),Ds(15,"td",21)(16,"div",22),Lw(17,ee,2,4)(18,te,2,0,"button",23),pl()()()),n&2){let e=t.$implicit,i=Jw(2);BE(3),Og(e.prompt.name),BE(),jw(e.prompt.description?4:-1),BE(2),Og(i.scheduleLabel(e.prompt)),BE(2),ug("variant",e.prompt.enabled?"accent":"outline"),BE(),Og(e.prompt.enabled?"Enabled":"Disabled"),BE(3),ug("variant",e.scope==="platform"?"neutral":"accent"),BE(),Og(e.scope==="platform"?"Platform":"Namespace"),BE(),jw(e.scope==="platform"?14:-1),BE(3),jw(e.scope==="namespace"?17:18);}}function ie(n,t){if(n&1&&(Ds(0,"div",6)(1,"table",7)(2,"thead",8)(3,"tr",9)(4,"th",10),NC(5,"Name"),pl(),Ds(6,"th",10),NC(7,"Schedule"),pl(),Ds(8,"th",10),NC(9,"Status"),pl(),Ds(10,"th",10),NC(11,"Scope"),pl(),Ds(12,"th",10)(13,"span",11),NC(14,"Actions"),pl()()()(),Ds(15,"tbody",8),Hw(16,ne,19,9,"tr",9,J),pl()()()),n&2){let e=Jw();BE(16),Uw(e.rowFilter.filteredRows());}}var H=class n{route=g(W);router=g(F);destroyRef=g(Ie);state=g(c);namespaceId=this.route.snapshot.params.namespaceId;rows=Ui([]);isLoading=Ui(true);deletion=k();rowFilter=O$1(this.rows,t=>[t.prompt.name,t.prompt.description,this.scheduleLabel(t.prompt),t.prompt.enabled?"Enabled":"Disabled",t.scope].filter(Boolean).join(" "));constructor(){Ty({platform:this.state.listPlatform().pipe(da(()=>Tr([]))),namespace:this.state.listByNamespace(this.namespaceId)}).pipe(U(this.destroyRef)).subscribe({next:({platform:t,namespace:e})=>{this.rows.set([...t.map((i,l)=>({key:`platform:${i.id??l}`,prompt:i,scope:"platform"})),...e.map((i,l)=>({key:`namespace:${i.id??l}`,prompt:i,scope:"namespace"}))]),this.isLoading.set(false);},error:()=>this.isLoading.set(false)});}openCreateForm(){this.router.navigate(["/agentos",this.namespaceId,"scheduled-prompts","new"]);}edit(t){t.scope==="platform"||!t.prompt.id||this.router.navigate(["/agentos",this.namespaceId,"scheduled-prompts",t.prompt.id,"edit"]);}toggle(t){if(t.scope==="platform")return;(t.prompt.enabled?this.state.disable(t.prompt.id??""):this.state.enable(t.prompt.id??"")).pipe(U(this.destroyRef)).subscribe(i=>this.rows.update(l=>l.map(p=>p.key===t.key?x(w({},p),{prompt:i}):p)));}confirmDelete(t){t.scope==="platform"||!t.prompt.id||this.deletion.execute(t.key,{request$:this.state.delete(t.prompt.id).pipe(U(this.destroyRef)),onSuccess:()=>this.rows.update(e=>e.filter(i=>i.key!==t.key)),errorMessage:`Deleting "${t.prompt.name}" failed. Try again.`});}scheduleLabel(t){let e=t.recurrence,i=e.unit===Ne.WEEK?"week":"month",l=e.unit===Ne.WEEK&&e.days?.length?` (${e.days.map(p=>De[p]??p).join(", ")})`:"";return `Every ${i}${l} at ${e.timeUtc} UTC`}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=yw({type:n,selectors:[["agentos-scheduled-prompt-list"]],decls:9,vars:3,consts:[["title","Scheduled prompts","description","Scheduled prompts for this namespace, including schedules inherited from the platform."],["label","Filter scheduled prompts","placeholder","Filter scheduled prompts\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","Scheduled prompts"],["role","rowgroup"],["role","row"],["role","columnheader"],[1,"sr-only"],["role","cell","data-label","Name","data-title",""],[1,"settings-table__name","settings-table__stacked"],[1,"settings-table__secondary","settings-table__stacked"],["role","cell","data-label","Schedule"],["role","cell","data-label","Status"],[3,"variant"],["role","cell","data-label","Scope"],[1,"settings-table__tags"],["variant","outline"],["role","cell","data-label","Actions","data-actions",""],[1,"settings-table__actions"],["type","button","disabled",""],["deleteClass","settings-table__delete","confirmLabelClass","settings-table__confirm-label",3,"deleteRequested","deleteConfirmed","deleteCancelled","rowKey","rowLabel","state"],["type","button",3,"click"]],template:function(e,i){e&1&&(Ds(0,"ds-section-header",0)(1,"agentos-table-filter",1),mg("queryChange",function(p){return i.rowFilter.query.set(p)}),pl(),Ds(2,"button",2),mg("click",function(){return i.openCreateForm()}),NC(3,"New scheduled prompt"),pl()(),Lw(4,O,2,1,"p",3),Lw(5,Y,2,0,"p",4)(6,z,2,0,"p",5)(7,G,2,0,"p",4)(8,ie,18,0,"div",6)),e&2&&(BE(),ug("query",i.rowFilter.query()),BE(3),jw(i.deletion.error()?4:-1),BE(),jw(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 ScheduledPromptListComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {o}from'./chunk-DSTjQyTQ.js';import {z as k,O as O$1,i as at,h as hn,I as Io,l as ko,P,B as P$1}from'./chunk-DJT7DUkW.js';import {g,F,I as Ie,$ as Cr,U as Ui,a1 as fa,G as U$1,y as yw,D as Ds,Q as mg,p as pl,N as NC,L as Lw,a as BE,P as ug,j as jw,J as Jw,O as Og,H as Hw,m as Uw,v as vl,Z as Zw,r as df,s as ff,k as cg}from'./main-HPRR3LFL.js';var K=(i,e)=>e.id??e.name;function O(i,e){if(i&1&&(Ds(0,"p",3),NC(1),pl()),i&2){let t=Jw();BE(),Og(t.deletion.error());}}function A(i,e){i&1&&(Ds(0,"p",4),NC(1,"Loading skills\u2026"),pl());}function H(i,e){i&1&&(Ds(0,"p",5),NC(1,"No platform skills defined yet."),pl());}function U(i,e){i&1&&(Ds(0,"p",4),NC(1,"No skills match the current filter."),pl());}function z(i,e){i&1&&(Ds(0,"ds-tag",15),NC(1,"SKILL.md"),pl());}function G(i,e){if(i&1){let t=Zw();Ds(0,"button",21),mg("click",function(){df(t);let d=Jw(2).$implicit,m=Jw(2);return ff(m.edit(d))}),NC(1,"Edit"),pl();}if(i&2){let t=Jw(2).$implicit;cg("aria-label","Edit "+t.name);}}function J(i,e){if(i&1){let t=Zw();Ds(0,"button",21),mg("click",function(){df(t);let d=Jw().$implicit,m=Jw(2);return ff(m.inspect(d))}),NC(1,"View"),pl(),Lw(2,G,2,1,"button",22);}if(i&2){let t=Jw().$implicit;cg("aria-label","View "+t.name),BE(2),jw(t.readOnly?-1:2);}}function Q(i,e){if(i&1){let t=Zw();Ds(0,"agentos-row-delete-action",23),mg("deleteRequested",function(){df(t);let d=Jw().$implicit,m=Jw(2);return ff(m.deletion.request(d.id))})("deleteConfirmed",function(){df(t);let d=Jw().$implicit,m=Jw(2);return ff(m.confirmDelete(d))})("deleteCancelled",function(){df(t);let d=Jw(3);return ff(d.deletion.cancel())}),pl();}if(i&2){let t=Jw().$implicit,l=Jw(2);ug("rowKey",t.id)("rowLabel",t.name)("state",l.deletion);}}function W(i,e){if(i&1&&(Ds(0,"tr",9)(1,"td",12)(2,"div",13)(3,"span",14),NC(4),pl(),Lw(5,z,2,0,"ds-tag",15),pl()(),Ds(6,"td",16),NC(7),pl(),Ds(8,"td",17),NC(9),pl(),Ds(10,"td",18)(11,"div",19),Lw(12,J,3,2),Lw(13,Q,1,3,"agentos-row-delete-action",20),pl()()()),i&2){let t=e.$implicit,l=Jw(2);BE(4),Og(t.name),BE(),jw(t.readOnly?5:-1),BE(2),vl(" ",t.description||"\u2014"," "),BE(2),Og(l.resourceCount(t)),BE(3),jw(l.deletion.confirmingId()!==t.id?12:-1),BE(),jw(!t.readOnly&&t.id?13:-1);}}function X(i,e){if(i&1&&(Ds(0,"div",6)(1,"table",7)(2,"thead",8)(3,"tr",9)(4,"th",10),NC(5,"Name"),pl(),Ds(6,"th",10),NC(7,"Description"),pl(),Ds(8,"th",10),NC(9,"Resources"),pl(),Ds(10,"th",10)(11,"span",11),NC(12,"Actions"),pl()()()(),Ds(13,"tbody",8),Hw(14,W,14,6,"tr",9,K),pl()()()),i&2){let t=Jw();BE(14),Uw(t.rowFilter.filteredRows());}}var B=class i{router=g(F);destroyRef=g(Ie);skillState=g(o);refresh$=new Cr(void 0);isLoading=Ui(true);deletion=k();skills=Ui([]);rowFilter=O$1(this.skills,e=>[e.name,e.description].filter(Boolean).join(" "));constructor(){this.refresh$.pipe(fa(()=>(this.isLoading.set(true),this.skillState.listPlatform())),U$1(this.destroyRef)).subscribe({next:e=>{this.skills.set(e),this.isLoading.set(false);},error:()=>this.isLoading.set(false)});}resourceCount(e){return Object.keys(e.resources??{}).length}openCreateForm(){this.router.navigate(["/agentos","admin","skills","new"]);}inspect(e){e.id&&this.router.navigate(["/agentos","admin","skills",e.id,"inspect"]);}edit(e){e.id&&this.router.navigate(["/agentos","admin","skills",e.id,"edit"]);}confirmDelete(e){e.id&&this.deletion.execute(e.id,{request$:this.skillState.delete(e.id).pipe(U$1(this.destroyRef)),onSuccess:()=>this.refresh$.next(),errorMessage:t=>t.status===403?`Deleting "${e.name}" requires platform administrator rights.`:`Deleting "${e.name}" failed. Try again.`});}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=yw({type:i,selectors:[["agentos-platform-skills"]],decls:9,vars:3,consts:[["title","Platform skills","description","Skills shared across every namespace."],["label","Filter skills","placeholder","Filter skills\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","Platform skills"],["role","rowgroup"],["role","row"],["role","columnheader"],[1,"sr-only"],["role","cell","data-label","Name","data-title",""],[1,"settings-table__tags"],[1,"settings-table__name"],["variant","neutral"],["role","cell","data-label","Description",1,"settings-table__secondary"],["role","cell","data-label","Resources"],["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,l){t&1&&(Ds(0,"ds-section-header",0)(1,"agentos-table-filter",1),mg("queryChange",function(m){return l.rowFilter.query.set(m)}),pl(),Ds(2,"button",2),mg("click",function(){return l.openCreateForm()}),NC(3,"New skill"),pl()(),Lw(4,O,2,1,"p",3),Lw(5,A,2,0,"p",4)(6,H,2,0,"p",5)(7,U,2,0,"p",4)(8,X,16,0,"div",6)),t&2&&(BE(),ug("query",l.rowFilter.query()),BE(3),jw(l.deletion.error()?4:-1),BE(),jw(l.isLoading()?5:l.skills().length===0?6:l.rowFilter.filteredRows().length===0?7:8));},dependencies:[at,hn,Io,ko,P,P$1],encapsulation:2})};export{B as PlatformSkillsComponent};
|
|
@@ -1 +0,0 @@
|
|
|
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-DJT7DUkW.js';import {g,W as W$1,F,I as Ie,ag as U$1,$ as Cr,U as Ui,a1 as fa,ac as Ty,a2 as da,aa as Tr,G as U$2,y as yw,D as Ds,Q as mg,p as pl,N as NC,L as Lw,a as BE,P as ug,j as jw,J as Jw,O as Og,H as Hw,m as Uw,v as vl,Z as Zw,r as df,s as ff,k as cg}from'./main-HPRR3LFL.js';var J=(n,e)=>e.key;function U(n,e){if(n&1&&(Ds(0,"p",3),NC(1),pl()),n&2){let t=Jw();BE(),Og(t.deletion.error());}}function z(n,e){n&1&&(Ds(0,"p",4),NC(1,"Loading agent configs\u2026"),pl());}function G(n,e){n&1&&(Ds(0,"p",5),NC(1,"No agent configs available."),pl());}function Q(n,e){n&1&&(Ds(0,"p",4),NC(1,"No agent configs match the current filter."),pl());}function W(n,e){n&1&&(Ds(0,"ds-tag",18),NC(1,"Read-only"),pl());}function X(n,e){if(n&1){let t=Zw();Ds(0,"button",22),mg("click",function(){df(t);let s=Jw(2).$implicit,d=Jw(2);return ff(d.launch(s))}),NC(1," Launch "),pl();}if(n&2){let t=Jw(2).$implicit;cg("aria-label","Launch "+t.config.name);}}function Y(n,e){if(n&1){let t=Zw();Ds(0,"button",22),mg("click",function(){df(t);let s=Jw(2).$implicit,d=Jw(2);return ff(d.edit(s))}),NC(1," Edit "),pl();}if(n&2){let t=Jw(2).$implicit;cg("aria-label","Edit "+t.config.name);}}function Z(n,e){if(n&1){let t=Zw();Ds(0,"button",22),mg("click",function(){df(t);let s=Jw().$implicit,d=Jw(2);return ff(d.inspect(s))}),NC(1," Inspect "),pl(),Lw(2,X,2,1,"button",23),Lw(3,Y,2,1,"button",23);}if(n&2){let t=Jw().$implicit,i=Jw(2);cg("aria-label","Inspect "+t.config.name),BE(2),jw(i.canLaunch(t)?2:-1),BE(),jw(t.scope==="namespace"?3:-1);}}function ee(n,e){if(n&1){let t=Zw();Ds(0,"agentos-row-delete-action",24),mg("deleteRequested",function(){df(t);let s=Jw().$implicit,d=Jw(2);return ff(d.deletion.request(s.key))})("deleteConfirmed",function(){df(t);let s=Jw().$implicit,d=Jw(2);return ff(d.confirmDelete(s))})("deleteCancelled",function(){df(t);let s=Jw(3);return ff(s.deletion.cancel())}),pl();}if(n&2){let t=Jw().$implicit,i=Jw(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),NC(2),pl(),Ds(3,"td",13),NC(4),pl(),Ds(5,"td",14),NC(6),pl(),Ds(7,"td",15)(8,"div",16)(9,"ds-tag",17),NC(10),pl(),Lw(11,W,2,0,"ds-tag",18),pl()(),Ds(12,"td",19)(13,"div",20),Lw(14,Z,4,3),Lw(15,ee,1,3,"agentos-row-delete-action",21),pl()()()),n&2){let t=e.$implicit,i=Jw(2);BE(2),Og(t.config.name),BE(2),vl(" ",t.config.description||"\u2014"," "),BE(2),Og(i.mode(t)),BE(3),ug("variant",t.scope==="platform"?"neutral":"accent"),BE(),Og(t.scope==="platform"?"Platform":"Namespace"),BE(),jw(t.scope==="platform"?11:-1),BE(3),jw(i.deletion.confirmingId()!==t.key?14:-1),BE(),jw(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),NC(5,"Name"),pl(),Ds(6,"th",10),NC(7,"Description"),pl(),Ds(8,"th",10),NC(9,"Execution mode"),pl(),Ds(10,"th",10),NC(11,"Scope"),pl(),Ds(12,"th",10)(13,"span",11),NC(14,"Actions"),pl()()()(),Ds(15,"tbody",8),Hw(16,te,16,8,"tr",9,J),pl()()()),n&2){let t=Jw();BE(16),Uw(t.rowFilter.filteredRows());}}var H=class n{route=g(W$1);router=g(F);destroyRef=g(Ie);controller=g(U$1);namespaceId=this.route.snapshot.params.namespaceId;refresh$=new Cr(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(()=>Tr([])))}))));constructor(){this.allConfigs$.pipe(U$2(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$2(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=yw({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()}),NC(3,"New agent config"),pl()(),Lw(4,U,2,1,"p",3),Lw(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&&(BE(),ug("query",i.rowFilter.query()),BE(3),jw(i.deletion.error()?4:-1),BE(),jw(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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {O as O$1}from'./chunk-Rh-neiKa.js';import {g,F,I as Ie,af as G$1,$ as Cr,U as Ui,a1 as fa,G as U$1,y as yw,D as Ds,Q as mg,p as pl,N as NC,L as Lw,a as BE,P as ug,j as jw,J as Jw,O as Og,H as Hw,m as Uw,Z as Zw,k as cg,r as df,s as ff}from'./main-HPRR3LFL.js';import {z as k,O as O$2,i as at,h as hn,I as Io,P,B as P$1}from'./chunk-DJT7DUkW.js';import'./chunk-DW4fRjPY.js';var j=(t,e)=>e.id??e.name;function A(t,e){if(t&1&&(Ds(0,"p",3),NC(1),pl()),t&2){let n=Jw();BE(),Og(n.deletion.error());}}function K(t,e){t&1&&(Ds(0,"p",4),NC(1,"Loading integrations\u2026"),pl());}function H(t,e){t&1&&(Ds(0,"p",5),NC(1,"No platform integrations defined yet."),pl());}function U(t,e){t&1&&(Ds(0,"p",4),NC(1,"No integrations match the current filter."),pl());}function z(t,e){if(t&1){let n=Zw();Ds(0,"button",18),mg("click",function(){df(n);let d=Jw().$implicit,m=Jw(2);return ff(m.edit(d))}),NC(1,"Edit"),pl();}if(t&2){let n=Jw().$implicit;cg("aria-label","Edit "+n.name);}}function G(t,e){if(t&1){let n=Zw();Ds(0,"agentos-row-delete-action",19),mg("deleteRequested",function(){df(n);let d=Jw().$implicit,m=Jw(2);return ff(m.deletion.request(d.id))})("deleteConfirmed",function(){df(n);let d=Jw().$implicit,m=Jw(2);return ff(m.confirmDelete(d))})("deleteCancelled",function(){df(n);let d=Jw(3);return ff(d.deletion.cancel())}),pl();}if(t&2){let n=Jw().$implicit,r=Jw(2);ug("rowKey",n.id)("rowLabel",n.name)("state",r.deletion);}}function J(t,e){if(t&1&&(Ds(0,"tr",9)(1,"td",12),NC(2),pl(),Ds(3,"td",13),NC(4),pl(),Ds(5,"td",14)(6,"div",15),Lw(7,z,2,1,"button",16),Lw(8,G,1,3,"agentos-row-delete-action",17),pl()()()),t&2){let n=e.$implicit,r=Jw(2);BE(2),Og(n.name),BE(2),Og(n.integrationType),BE(3),jw(r.deletion.confirmingId()!==n.id?7:-1),BE(),jw(n.id?8:-1);}}function O(t,e){if(t&1&&(Ds(0,"div",6)(1,"table",7)(2,"thead",8)(3,"tr",9)(4,"th",10),NC(5,"Name"),pl(),Ds(6,"th",10),NC(7,"Type"),pl(),Ds(8,"th",10)(9,"span",11),NC(10,"Actions"),pl()()()(),Ds(11,"tbody",8),Hw(12,J,9,4,"tr",9,j),pl()()()),t&2){let n=Jw();BE(12),Uw(n.rowFilter.filteredRows());}}var B=class t{router=g(F);destroyRef=g(Ie);state=g(O$1);integrationConfigController=g(G$1);refresh$=new Cr(void 0);isLoading=Ui(true);deletion=k();configs=Ui([]);rowFilter=O$2(this.configs,e=>[e.name,e.integrationType].filter(Boolean).join(" "));constructor(){this.refresh$.pipe(fa(()=>(this.isLoading.set(true),this.state.loadPlatformConfigs())),U$1(this.destroyRef)).subscribe({next:e=>{this.configs.set(e),this.isLoading.set(false);},error:()=>this.isLoading.set(false)});}openCreateForm(){this.router.navigate(["/agentos","admin","integration-configs","new"]);}edit(e){this.router.navigate(["/agentos","admin","integration-configs",e.id??"","edit"]);}confirmDelete(e){e.id&&this.deletion.execute(e.id,{request$:this.integrationConfigController.deleteIntegrationConfig(e.id).pipe(U$1(this.destroyRef)),onSuccess:()=>this.refresh$.next(),errorMessage:`Deleting "${e.name}" failed. Try again.`});}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=yw({type:t,selectors:[["agentos-platform-integration-configs"]],decls:9,vars:3,consts:[["title","Platform integrations","description","Integration configurations shared across every namespace."],["label","Filter integrations","placeholder","Filter integrations\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","Platform integrations"],["role","rowgroup"],["role","row"],["role","columnheader"],[1,"sr-only"],["role","cell","data-label","Name","data-title","",1,"settings-table__name"],["role","cell","data-label","Type",1,"settings-table__secondary"],["role","cell","data-label","Actions","data-actions",""],[1,"settings-table__actions"],["type","button"],["deleteClass","settings-table__delete","confirmLabelClass","settings-table__confirm-label",3,"rowKey","rowLabel","state"],["type","button",3,"click"],["deleteClass","settings-table__delete","confirmLabelClass","settings-table__confirm-label",3,"deleteRequested","deleteConfirmed","deleteCancelled","rowKey","rowLabel","state"]],template:function(n,r){n&1&&(Ds(0,"ds-section-header",0)(1,"agentos-table-filter",1),mg("queryChange",function(m){return r.rowFilter.query.set(m)}),pl(),Ds(2,"button",2),mg("click",function(){return r.openCreateForm()}),NC(3,"New integration"),pl()(),Lw(4,A,2,1,"p",3),Lw(5,K,2,0,"p",4)(6,H,2,0,"p",5)(7,U,2,0,"p",4)(8,O,14,0,"div",6)),n&2&&(BE(),ug("query",r.rowFilter.query()),BE(3),jw(r.deletion.error()?4:-1),BE(),jw(r.isLoading()?5:r.configs().length===0?6:r.rowFilter.filteredRows().length===0?7:8));},dependencies:[at,hn,Io,P,P$1],encapsulation:2})};export{B as PlatformIntegrationConfigsComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {z as k$1,O,i as at,h as hn,I as Io,l as ko,P,B as P$1}from'./chunk-DJT7DUkW.js';import {g,W as W$1,F,I as Ie,aq as k,ap as F$1,$ as Cr,U as Ui,a1 as fa,ac as Ty,a2 as da,aa as Tr,G as U,y as yw,D as Ds,Q as mg,p as pl,N as NC,L as Lw,a as BE,P as ug,j as jw,J as Jw,O as Og,H as Hw,m as Uw,v as vl,Z as Zw,r as df,s as ff,k as cg}from'./main-HPRR3LFL.js';var G=(i,e)=>e.key;function Q(i,e){if(i&1&&(Ds(0,"p",3),NC(1),pl()),i&2){let t=Jw();BE(),Og(t.deletion.error());}}function W(i,e){i&1&&(Ds(0,"p",4),NC(1,"Loading AI models\u2026"),pl());}function X(i,e){i&1&&(Ds(0,"p",5),NC(1,"No AI models configured."),pl());}function Y(i,e){i&1&&(Ds(0,"p",4),NC(1,"No AI models match the current filter."),pl());}function Z(i,e){i&1&&(Ds(0,"ds-tag",18),NC(1,"Read-only"),pl());}function ee(i,e){if(i&1){let t=Zw();Ds(0,"button",24),mg("click",function(){df(t);let s=Jw(2).$implicit,m=Jw(2);return ff(m.edit(s))}),NC(1,"Edit"),pl();}if(i&2){let t=Jw(2).$implicit,n=Jw(2);cg("aria-label","Edit "+n.title(t));}}function te(i,e){if(i&1){let t=Zw();Lw(0,ee,2,1,"button",22),Ds(1,"agentos-row-delete-action",23),mg("deleteRequested",function(){df(t);let s=Jw().$implicit,m=Jw(2);return ff(m.deletion.request(s.key))})("deleteConfirmed",function(){df(t);let s=Jw().$implicit,m=Jw(2);return ff(m.confirmDelete(s))})("deleteCancelled",function(){df(t);let s=Jw(3);return ff(s.deletion.cancel())}),pl();}if(i&2){let t=Jw().$implicit,n=Jw(2);jw(n.deletion.confirmingId()!==t.key?0:-1),BE(),ug("rowKey",t.key)("rowLabel",n.title(t))("state",n.deletion);}}function ie(i,e){i&1&&(Ds(0,"button",21),NC(1,"Inherited"),pl());}function ne(i,e){if(i&1&&(Ds(0,"tr",9)(1,"td",12),NC(2),pl(),Ds(3,"td",13),NC(4),pl(),Ds(5,"td",14),NC(6),pl(),Ds(7,"td",15)(8,"div",16)(9,"ds-tag",17),NC(10),pl(),Lw(11,Z,2,0,"ds-tag",18),pl()(),Ds(12,"td",19)(13,"div",20),Lw(14,te,2,4)(15,ie,2,0,"button",21),pl()()()),i&2){let t=e.$implicit,n=Jw(2);BE(2),Og(n.title(t)),BE(2),Og(t.providerName),BE(2),vl(" ",t.model.apiModelName," "),BE(3),ug("variant",t.scope==="platform"?"neutral":"accent"),BE(),Og(t.scope==="platform"?"Platform":"Namespace"),BE(),jw(t.scope==="platform"?11:-1),BE(3),jw(t.scope==="namespace"?14:15);}}function oe(i,e){if(i&1&&(Ds(0,"div",6)(1,"table",7)(2,"thead",8)(3,"tr",9)(4,"th",10),NC(5,"Name"),pl(),Ds(6,"th",10),NC(7,"Provider"),pl(),Ds(8,"th",10),NC(9,"API model name"),pl(),Ds(10,"th",10),NC(11,"Scope"),pl(),Ds(12,"th",10)(13,"span",11),NC(14,"Actions"),pl()()()(),Ds(15,"tbody",8),Hw(16,ne,16,7,"tr",9,G),pl()()()),i&2){let t=Jw();BE(16),Uw(t.rowFilter.filteredRows());}}var z=class i{route=g(W$1);router=g(F);destroyRef=g(Ie);aiModelController=g(k);aiProviderController=g(F$1);namespaceId=this.route.snapshot.params.namespaceId;refresh$=new Cr(void 0);isLoading=Ui(true);deletion=k$1();rows=Ui([]);rowFilter=O(this.rows,e=>[e.model.alias,e.model.apiModelName,e.providerName,e.scope].filter(Boolean).join(" "));data$=this.refresh$.pipe(fa(()=>(this.isLoading.set(true),Ty({namespace:this.aiModelController.listByNamespaceIdAiModel(this.namespaceId),platform:this.aiModelController.listPlatformLevelAiModel().pipe(da(()=>Tr([]))),providers:this.aiProviderController.listAiProvider(this.namespaceId)}).pipe(fa(({namespace:e,platform:t,providers:n})=>{let s=[...new Set([...t,...e].map(m=>m.aiProviderId))];return Ty({namespace:Tr(e),platform:Tr(t),providers:Tr(n),referencedProviders:this.aiProviderController.getByIdsAiProvider({ids:s,withRemoved:false}).pipe(da(()=>Tr([])))})})))));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=yw({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&&(Ds(0,"ds-section-header",0)(1,"agentos-table-filter",1),mg("queryChange",function(m){return n.rowFilter.query.set(m)}),pl(),Ds(2,"button",2),mg("click",function(){return n.openCreateForm()}),NC(3,"New AI model"),pl()(),Lw(4,Q,2,1,"p",3),Lw(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&&(BE(),ug("query",n.rowFilter.query()),BE(3),jw(n.deletion.error()?4:-1),BE(),jw(n.isLoading()?5:n.rows().length===0?6:n.rowFilter.filteredRows().length===0?7:8));},dependencies:[at,hn,Io,ko,P,P$1],encapsulation:2})};export{z as NamespaceAiModelsComponent};
|