@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
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {I}from'./chunk-D-F4_F5P.js';import {g,W,aX as L,K as we,z as zi,j as mT,aY as Ue,ac as Ny,U,a2 as ga,aa as _r,N as Nw,I as Is,a as hg,Y as Yw,m as ml,R as Eg,Q as QE,b as Qw,P as pg,H as HC,s as sC,S as BI,J as Jw,p as dC,T as HI,k as eC,o as Il,as as jg,q as mf,r as yf,L as Lg}from'./main-IUUK3O6C.js';import {a6 as gd,M as Mo,D as Do,U as Ut,o as Mn,Q as Qt,c as fo,a8 as _a,ac as Bi,v as vn,d as yn,e as fn,l as pn,h as hn,_ as _n,i as at,u as un,n as cn}from'./chunk-DNpsnpVA.js';import'./chunk-BSz21_Vu.js';var oe=(i,t)=>t.id;function ae(i,t){i&1&&(Is(0,"p",1),HC(1,"Loading\u2026"),ml());}function se(i,t){if(i&1&&(Is(0,"ds-notice"),HC(1),ml()),i&2){let e=dC(2);QE(),Lg(e.errorMessage());}}function re(i,t){if(i&1){let e=sC();Is(0,"div")(1,"button",23),Eg("click",function(){mf(e);let s=dC(2);return yf(s.retryLoad())}),HC(2,"Retry loading"),ml()();}}function ce(i,t){if(i&1&&(hg(0,"br"),HC(1)),i&2){let e=dC(3);QE(),Il("",e.association()?.checkoutFailureReason," ");}}function de(i,t){if(i&1&&(Is(0,"ds-notice",3),HC(1),Yw(2,ce,2,1),ml()),i&2){let e=dC(2);pg("tone",e.checkoutStatus()===e.CheckoutStatus.FAILED?"error":e.checkoutStatus()===e.CheckoutStatus.READY?"success":"neutral"),QE(),Il(" Repository: ",e.checkoutStatus()," "),QE(),Qw(e.association()?.checkoutFailureReason?2:-1);}}function le(i,t){if(i&1&&(Is(0,"option",12),HC(1),ml()),i&2){let e=t.$implicit,c=dC(2);pg("value",e.id),QE(),jg("",e.name," (",c.authTypeLabel(e.authType),")");}}function me(i,t){i&1&&(Is(0,"p",13),HC(1," No usable auth setting in this namespace. Create a BEARER_TOKEN one first. "),ml());}function pe(i,t){if(i&1){let e=sC();Is(0,"button",24),Eg("click",function(){mf(e);let s=dC(2);return yf(s.remove())}),HC(1," Remove association "),ml();}if(i&2){let e=dC(2);pg("disabled",!e.associationLoaded()||e.isSaving());}}function ue(i,t){if(i&1){let e=sC();Yw(0,se,2,1,"ds-notice"),Yw(1,re,3,0,"div"),Yw(2,de,3,3,"ds-notice",3),Is(3,"ds-fieldset",4)(4,"ds-form-field",5)(5,"input",6),Eg("ngModelChange",function(s){mf(e);let u=dC();return yf(u.repositoryUrl.set(s))}),ml(),BI(),ml(),Is(6,"ds-form-field",7)(7,"input",8),Eg("ngModelChange",function(s){mf(e);let u=dC();return yf(u.mainBranch.set(s))}),ml(),BI(),ml(),Is(8,"ds-form-field",9)(9,"select",10),Eg("ngModelChange",function(s){mf(e);let u=dC();return yf(u.serviceAuthSettingId.set(s))}),Is(10,"option",11),HC(11,"Select an auth setting\u2026"),ml(),Jw(12,le,2,3,"option",12,oe),ml(),BI(),Yw(14,me,2,0,"p",13),ml()(),Is(15,"ds-fieldset",14)(16,"div",15)(17,"label",16)(18,"input",17),Eg("ngModelChange",function(s){mf(e);let u=dC();return yf(u.autoWorktree.set(s))}),ml(),BI(),HC(19," Offer a worktree to every new top-level case "),ml(),Is(20,"p",18),HC(21," The creator checks the box when creating the case; it is unchecked by default, and a case created without it has no Git. Applies to cases created from now on: turning this on later never equips existing cases, and turning it off never removes a worktree already created. "),ml()(),Is(22,"ds-form-field",19)(23,"input",20),Eg("ngModelChange",function(s){mf(e);let u=dC();return yf(u.setupCommand.set(s))}),ml(),BI(),Is(24,"p",13),HC(25," Runs on the server, as the service user, in each new worktree. It executes code from the branch \u2014 prefer a command that disables lifecycle scripts. "),ml()()(),Is(26,"ds-form-actions")(27,"button",21),Eg("click",function(){mf(e);let s=dC();return yf(s.save())}),HC(28),ml(),Yw(29,pe,2,1,"button",22),ml();}if(i&2){let e=dC();Qw(e.errorMessage()?0:-1),QE(),Qw(e.associationLoaded()?-1:1),QE(),Qw(e.isAssociated()&&e.checkoutStatus()?2:-1),QE(),pg("disabled",!e.associationLoaded()||e.isSaving()),QE(2),pg("ngModel",e.repositoryUrl()),HI(),QE(2),pg("ngModel",e.mainBranch()),HI(),QE(2),pg("ngModel",e.serviceAuthSettingId()),HI(),QE(3),eC(e.eligibleAuthSettings()),QE(2),Qw(e.eligibleAuthSettings().length===0?14:-1),QE(),pg("disabled",!e.associationLoaded()||e.isSaving()),QE(3),pg("ngModel",e.autoWorktree()),HI(),QE(5),pg("ngModel",e.setupCommand()),HI(),QE(4),pg("disabled",!e.canSave()),QE(),Il(" ",e.isSaving()?"Saving\u2026":e.isAssociated()?"Update":"Associate"," "),QE(),Qw(e.isAssociated()?29:-1);}}var ge=["BearerTokenAuthSetting","BasicAuthAuthSetting","ApiKeyAuthSetting"],he={BearerTokenAuthSetting:"token",BasicAuthAuthSetting:"basic auth",ApiKeyAuthSetting:"API key"},ne=class i{route=g(W);gitApi=g(L);authSettingState=g(I);destroyRef=g(we);isLoading=zi(true);isSaving=zi(false);confirmingRemove=zi(false);associationLoaded=zi(false);errorMessage=zi(null);association=zi(null);authSettings=zi([]);repositoryUrl=zi("");mainBranch=zi("main");serviceAuthSettingId=zi("");autoWorktree=zi(false);setupCommand=zi("");namespaceId="";isAssociated=mT(()=>this.association()?.associated===true);eligibleAuthSettings=mT(()=>this.authSettings().filter(t=>ge.includes(t.authType)));authTypeLabel(t){return he[t??""]??t??"unknown"}canSave=mT(()=>this.associationLoaded()&&!this.isLoading()&&!this.isSaving()&&this.repositoryUrl().trim().length>0&&this.serviceAuthSettingId().length>0);checkoutStatus=mT(()=>this.association()?.checkoutStatus??null);CheckoutStatus=Ue;ngOnInit(){this.namespaceId=this.route.snapshot.paramMap.get("namespaceId")??"",this.load();}retryLoad(){this.isLoading()||this.isSaving()||this.load();}load(){this.isLoading.set(true),this.associationLoaded.set(false),this.errorMessage.set(null),Ny({association:this.gitApi.getAssociationNamespaceGit(this.namespaceId),authSettings:this.authSettingState.loadNamespaceSettings(this.namespaceId)}).pipe(U(this.destroyRef)).subscribe({next:({association:t,authSettings:e})=>{this.authSettings.set(e??[]),this.acceptAssociation(t),this.isLoading.set(false);},error:t=>{console.error("Failed to load the Git repository settings",t),this.errorMessage.set(this.messageOf(t)),this.isLoading.set(false);}});}acceptAssociation(t){this.association.set(t);let e=t?.associated===false||t?.associated===true&&typeof t.repositoryUrl=="string"&&typeof t.mainBranch=="string"&&typeof t.serviceAuthSettingId=="string"&&typeof t.autoWorktreeForRootCases=="boolean"&&(t.setupCommand==null||typeof t.setupCommand=="string");this.associationLoaded.set(e),e?this.applyToForm(t):this.errorMessage.set("The repository settings could not be loaded completely. Retry before making changes.");}applyToForm(t){this.repositoryUrl.set(t.repositoryUrl??""),this.mainBranch.set(t.mainBranch??"main"),this.serviceAuthSettingId.set(t.serviceAuthSettingId??""),this.autoWorktree.set(t.autoWorktreeForRootCases??false),this.setupCommand.set(t.setupCommand??"");}save(){this.canSave()&&(this.isSaving.set(true),this.errorMessage.set(null),this.gitApi.setAssociationNamespaceGit(this.namespaceId,{repositoryUrl:this.repositoryUrl().trim(),mainBranch:this.mainBranch().trim()||void 0,serviceAuthSettingId:this.serviceAuthSettingId(),autoWorktreeForRootCases:this.autoWorktree(),setupCommand:this.setupCommand().trim()||void 0}).pipe(U(this.destroyRef),ga(t=>(console.error("Failed to save the Git association",t),this.errorMessage.set(this.messageOf(t)),this.isSaving.set(false),_r(null)))).subscribe(t=>{t&&this.acceptAssociation(t),this.isSaving.set(false);}));}remove(){!this.associationLoaded()||this.isLoading()||this.isSaving()||!this.isAssociated()||this.confirmingRemove.set(true);}confirmRemove(){this.confirmingRemove.set(false),!(!this.associationLoaded()||this.isLoading()||this.isSaving()||!this.isAssociated())&&(this.isSaving.set(true),this.gitApi.removeAssociationNamespaceGit(this.namespaceId).pipe(U(this.destroyRef),ga(t=>(console.error("Failed to remove the Git association",t),this.errorMessage.set(this.messageOf(t)),this.isSaving.set(false),_r(null)))).subscribe(t=>{t&&this.acceptAssociation(t),this.isSaving.set(false);}));}messageOf(t){return t.error?.message??t.message??"Unexpected error"}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=Nw({type:i,selectors:[["agentos-namespace-git"]],decls:5,vars:2,consts:[["title","Git repository","description","Associating a repository enables Git workspaces for this namespace. When worktree creation is enabled, the new-case form offers a worktree, and a case created with one gets a repo/ directory shared by its sub-cases. Namespace files remain shared documents outside Git. Agents create branches and pull requests in their workflows."],[1,"ds-hint"],["title","Remove the repository association?","message","Existing workspaces keep their worktree.","confirmLabel","Remove","cancelLabel","Cancel",3,"confirmed","cancelled","open"],[3,"tone"],["legend","Repository",3,"disabled"],["label","Repository URL","controlId","git-url","hint","HTTPS only, without credentials in the URL."],["dsControl","","id","git-url","type","url","placeholder","https://forge.example/org/project.git","name","repositoryUrl",3,"ngModelChange","ngModel"],["label","Main branch","controlId","git-branch","hint","New worktrees start at this branch\u2019s commit, without creating a branch."],["dsControl","","id","git-branch","type","text","placeholder","main","name","mainBranch",3,"ngModelChange","ngModel"],["label","Service account","controlId","git-auth","hint","Shared by the namespace. Every Git operation uses this identity, never the identity of whoever opened the case."],["dsControl","","id","git-auth","name","serviceAuthSettingId",3,"ngModelChange","ngModel"],["value",""],[3,"value"],[1,"ds-hint","ds-hint--warning"],["legend","Automation",3,"disabled"],[1,"ds-stack","ds-stack--sm"],["dsCheck",""],["type","checkbox","name","autoWorktree",3,"ngModelChange","ngModel"],[1,"ds-hint","ds-indent"],["label","Setup command (optional)","controlId","git-setup"],["dsControl","","mono","","id","git-setup","type","text","placeholder","pnpm install --ignore-scripts","name","setupCommand",3,"ngModelChange","ngModel"],["id","git-save","dsButton","","variant","primary","type","button",3,"click","disabled"],["id","git-remove","dsButton","","variant","danger","type","button",3,"disabled"],["id","git-retry","dsButton","","type","button",3,"click"],["id","git-remove","dsButton","","variant","danger","type","button",3,"click","disabled"]],template:function(e,c){e&1&&(Is(0,"ds-page"),hg(1,"ds-section-header",0),Yw(2,ae,2,0,"p",1)(3,ue,30,14),ml(),Is(4,"ds-confirm-dialog",2),Eg("confirmed",function(){return c.confirmRemove()})("cancelled",function(){return c.confirmingRemove.set(false)}),ml()),e&2&&(QE(2),Qw(c.isLoading()?2:3),QE(2),pg("open",c.confirmingRemove()));},dependencies:[gd,Mo,Do,Ut,Mn,Qt,fo,_a,Bi,vn,yn,fn,pn,hn,_n,at,un,cn],encapsulation:2})};
|
|
2
|
-
export{ne as NamespaceGitComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-1nyEsjkY.js';import {o}from'./chunk-DLffGFin.js';import {B as s,v as vn,d as yn,k as dn,_ as _n,i as at,m as mn,A as Ao,F as Ni,G as c}from'./chunk-DNpsnpVA.js';import {g,W,F,K as we,z as zi,j as mT,U,ac as Ny,a2 as ga,aa as _r,N as Nw,au as $t,I as Is,R as Eg,H as HC,m as ml,Y as Yw,Q as QE,b as Qw,p as dC,P as pg,s as sC,a as hg,av as cT,L as Lg,o as Il,aw as lT,J as Jw,k as eC,ao as Xw,q as mf,r as yf,ax as iE}from'./main-IUUK3O6C.js';var Y=(e,t)=>t.name+t.grant;function Z(e,t){if(e&1&&(Is(0,"a",2),HC(1,"Edit skill \u2192"),ml()),e&2){let n=dC();pg("routerLink",n.editRoute());}}function ee(e,t){e&1&&(Is(0,"ds-tag",3),HC(1,"Platform level"),ml());}function te(e,t){e&1&&(Is(0,"p",4),HC(1,"Loading\u2026"),ml());}function ne(e,t){e&1&&(Is(0,"ds-notice"),HC(1,"Failed to load skill."),ml());}function ie(e,t){if(e&1&&(Is(0,"dt"),HC(1,"Created by"),ml(),Is(2,"dd"),HC(3),ml()),e&2){let n=dC(2);QE(3),Lg(n.createdBy);}}function oe(e,t){if(e&1&&(Is(0,"dt"),HC(1,"Last updated"),ml(),Is(2,"dd"),HC(3),ml()),e&2){let n=dC(2);QE(3),Lg(n.updatedOn);}}function ae(e,t){if(e&1&&(Yw(0,ie,4,1),Yw(1,oe,4,1)),e&2){let n=dC();Qw(n.createdBy?0:-1),QE(),Qw(n.updatedOn?1:-1);}}function le(e,t){e&1&&(Is(0,"p",4),HC(1," A platform skill is offered to every namespace. Open it from a namespace to see which of its agents use it. "),ml());}function se(e,t){e&1&&(Is(0,"p",4),HC(1,"Loading\u2026"),ml());}function re(e,t){e&1&&(Is(0,"ds-notice"),HC(1," The agent configs could not be read, so it is unknown whether any agent uses this skill. "),ml());}function de(e,t){e&1&&(Is(0,"p",4),HC(1,"No agent references this skill."),ml());}function ce(e,t){e&1&&(Is(0,"ds-tag",15),HC(1,"platform agent"),ml());}function me(e,t){e&1&&(Is(0,"ds-tag",15),HC(1,"via *"),ml());}function pe(e,t){if(e&1&&(Is(0,"li",13)(1,"span",14),HC(2),ml(),Yw(3,ce,2,0,"ds-tag",15),Yw(4,me,2,0,"ds-tag",15),ml()),e&2){let n=t.$implicit;QE(2),Lg(n.name),QE(),Qw(n.platform?3:-1),QE(),Qw(n.grant==="all"?4:-1);}}function ue(e,t){if(e&1&&(Is(0,"ul",12),Jw(1,pe,5,3,"li",13,Y),ml(),Is(3,"p",4),HC(4," An agent listed "),Is(5,"code"),HC(6,"via *"),ml(),HC(7," takes the whole catalogue and keeps working without this skill. The others name it, so deleting the skill leaves their selector resolving to nothing. "),ml()),e&2){let n=dC(2);QE(),eC(n.consumers());}}function _e(e,t){e&1&&(Is(0,"p",4),HC(1,"No resources bundled with this skill."),ml());}function ge(e,t){if(e&1){let n=sC();Is(0,"li")(1,"ds-disclosure",16),Eg("toggled",function(){let r=mf(n).$implicit,g=dC(3);return yf(g.toggleResource(r))}),Is(2,"pre",17),HC(3),ml()()();}if(e&2){let n=t.$implicit,o=dC(3);QE(),pg("heading",n)("open",o.isResourceExpanded(n)),QE(2),Lg(o.resourceContent(n));}}function Ce(e,t){if(e&1&&(Is(0,"ul",12),Jw(1,ge,4,3,"li",null,Xw),ml()),e&2){let n=dC(2);QE(),eC(n.resourcePaths());}}function fe(e,t){if(e&1){let n=sC();Is(0,"ds-card",5)(1,"dl",6)(2,"dt"),HC(3,"Name"),ml(),Is(4,"dd",7),HC(5),ml(),Is(6,"dt"),HC(7,"Description"),ml(),Is(8,"dd"),HC(9),ml(),Is(10,"dt"),HC(11,"Scope"),ml(),Is(12,"dd"),HC(13),ml(),Is(14,"dt"),HC(15,"Storage"),ml(),Is(16,"dd")(17,"ds-tag",8),HC(18),ml()(),Yw(19,ae,2,2),ml()(),Is(20,"ds-card",9),Yw(21,le,2,0,"p",4)(22,se,2,0,"p",4)(23,re,2,0,"ds-notice")(24,de,2,0,"p",4)(25,ue,8,0),ml(),Is(26,"ds-card")(27,"ds-disclosure",10),Eg("toggled",function(){mf(n);let r=dC();return yf(r.toggleBody())}),hg(28,"div",11),cT(29,"agentosMarkdown"),ml()(),Is(30,"ds-card",9),Yw(31,_e,2,0,"p",4)(32,Ce,3,0,"ul",12),ml();}if(e&2){let n=t,o=dC();QE(5),Lg(n.name),QE(4),Lg(n.description),QE(4),Lg(n.namespaceId?"Namespace":"Platform"),QE(4),pg("variant",o.isFilesystemBacked()?"outline":"neutral"),QE(),Il(" ",o.isFilesystemBacked()?"SKILL.md file (read-only)":"Database"," "),QE(),Qw(o.isFilesystemBacked()?-1:19),QE(),pg("heading","Used by"+(!o.isPlatformMode&&!o.consumersLoading()&&!o.consumersUnavailable()?" ("+o.consumers().length+")":"")),QE(),Qw(o.isPlatformMode?21:o.consumersLoading()?22:o.consumersUnavailable()?23:o.consumers().length===0?24:25),QE(6),pg("open",!o.bodyCollapsed()),QE(),pg("innerHTML",lT(29,12,n.body),iE),QE(2),pg("heading","Resources ("+o.resourcePaths().length+")"),QE(),Qw(o.resourcePaths().length===0?31:32);}}var X=class e{route=g(W);router=g(F);destroyRef=g(we);skillState=g(o);agentState=g(s);namespaceId=this.route.snapshot.params.namespaceId;skillId=this.route.snapshot.params.skillId;isPlatformMode=!this.namespaceId;isLoading=zi(true);hasError=zi(false);skill=zi(null);bodyCollapsed=zi(false);expandedResources=zi(new Set);resourcePaths=mT(()=>Object.keys(this.skill()?.resources??{}).sort());isFilesystemBacked=mT(()=>this.skill()?.readOnly===true);consumers=zi([]);consumersUnavailable=zi(false);consumersLoading=zi(false);ngOnInit(){this.skillState.getById(this.skillId).pipe(U(this.destroyRef)).subscribe({next:t=>{this.skill.set(t),this.isLoading.set(false),this.loadConsumers(t.name);},error:()=>{this.hasError.set(true),this.isLoading.set(false);}});}loadConsumers(t){this.namespaceId&&(this.consumersLoading.set(true),Ny({namespace:this.agentState.listByNamespace(this.namespaceId),platform:this.agentState.listPlatform().pipe(ga(()=>_r([])))}).pipe(U(this.destroyRef)).subscribe({next:({namespace:n,platform:o})=>{let r=[...this.toConsumers(n,t,false),...this.toConsumers(o,t,true)];this.consumers.set([...r.filter(g=>g.grant==="named"),...r.filter(g=>g.grant==="all")]),this.consumersLoading.set(false);},error:()=>{this.consumersUnavailable.set(true),this.consumersLoading.set(false);}}));}toConsumers(t,n,o){return t.map(r=>({config:r,grant:a(r.skillSelectors,n)})).filter(r=>r.grant!=="none").map(({config:r,grant:g})=>({name:r.name,grant:g,platform:o}))}toggleBody(){this.bodyCollapsed.update(t=>!t);}toggleResource(t){this.expandedResources.update(n=>{let o=new Set(n);return o.has(t)?o.delete(t):o.add(t),o});}isResourceExpanded(t){return this.expandedResources().has(t)}resourceContent(t){return this.skill()?.resources?.[t]??""}editRoute(){return this.isPlatformMode?["/agentos","admin","skills",this.skillId,"edit"]:["/agentos",this.namespaceId,"skills",this.skillId,"edit"]}back(){this.isPlatformMode?this.router.navigate(["/agentos","admin","skills"]):this.router.navigate(["/agentos",this.namespaceId,"skills"]);}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Nw({type:e,selectors:[["agentos-skill-inspect"]],decls:9,vars:3,consts:[["title","Skill"],["dsButton","","variant","ghost","type","button","title","Back to skills",3,"click"],["headerMeta","",1,"ds-link",3,"routerLink"],["headerMeta","","variant","outline"],[1,"ds-hint"],["heading","General"],["dsDefinitionList",""],[1,"ds-mono"],[3,"variant"],[3,"heading"],["heading","Body",3,"toggled","open"],[1,"ds-pre","ds-pre--prose","ds-prose",3,"innerHTML"],[1,"ds-list"],[1,"ds-inline","ds-inline--wrap"],[1,"ds-strong"],["variant","neutral"],["bordered","","mono","",3,"toggled","heading","open"],[1,"ds-pre"]],template:function(n,o){if(n&1&&(Is(0,"ds-page")(1,"ds-section-header",0)(2,"button",1),Eg("click",function(){return o.back()}),HC(3,"\u2190 Skills"),ml(),Yw(4,Z,2,1,"a",2),Yw(5,ee,2,0,"ds-tag",3),ml(),Yw(6,te,2,0,"p",4)(7,ne,2,0,"ds-notice")(8,fe,33,14),ml()),n&2){let r;QE(4),Qw(o.skill()&&!o.isFilesystemBacked()?4:-1),QE(),Qw(o.isPlatformMode?5:-1),QE(),Qw(o.isLoading()?6:o.hasError()?7:(r=o.skill())?8:-1,r);}},dependencies:[$t,vn,yn,dn,_n,at,mn,Ao,Ni,c],encapsulation:2})};export{X as SkillInspectComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {p as pt,T as Te,b as bn,v as vn,d as yn,e as fn,l as pn,h as hn,i as at,u as un,K as Kt,a as fd,M as Mo,D as Do,U as Ut,P as Pn,o as Mn,Q as Qt,c as fo,g as go,t as ta,Z as Zr,N as Nn,R as Rn,E as Ea}from'./chunk-DNpsnpVA.js';import {g,W,F,K as we,aq as F$1,ap as k,a9 as F$2,a2 as ga,aa as _r,ar as Ne,j as mT,z as zi,n as Ff,U,O as x,M as w,N as Nw,I as Is,R as Eg,H as HC,m as ml,Y as Yw,Q as QE,P as pg,b as Qw,s as sC,a as hg,S as BI,J as Jw,ao as Xw,p as dC,T as HI,k as eC,o as Il,ae as qw,L as Lg,as as jg,q as mf,r as yf}from'./main-IUUK3O6C.js';function he(r,t){r&1&&(Is(0,"p",2),HC(1,"Loading\u2026"),ml());}function ve(r,t){if(r&1&&hg(0,"input",6),r&2){let e=dC(2);pg("value",e.selectedProviderLabel());}}function ye(r,t){if(r&1&&(Is(0,"option",44),HC(1),ml()),r&2){let e=t.$implicit;pg("value",e.id),QE(),jg("",e.name," (",e.apiType,")");}}function be(r,t){if(r&1&&(Is(0,"select",7)(1,"option",43),HC(2,"Select provider"),ml(),Jw(3,ye,2,3,"option",44,qw().trackByProvider,true),ml(),BI()),r&2){let e=dC(2);pg("formControl",e.aiProviderIdControl),HI(),QE(3),eC(e.providers());}}function xe(r,t){if(r&1&&(Is(0,"option",25),HC(1),ml()),r&2){let e=t.$implicit;pg("ngValue",e),QE(),Lg(e.toLowerCase());}}function _e(r,t){r&1&&(Is(0,"p",2),HC(1,"Not supported yet for Anthropic and Gemini providers."),ml());}function Me(r,t){r&1&&(Is(0,"p",2),HC(1," Sent as is to OpenAI-compatible providers, which reject levels the model does not support. Through Requesty, Claude models do not apply it faithfully. "),ml());}function Ee(r,t){r&1&&(Is(0,"p",26),HC(1," OpenAI reasoning models (GPT-5.1 and later) reject a temperature other than 1 with an effort: leave Temperature empty or set it to 1. "),ml());}function Ae(r,t){if(r&1){let e=sC();Is(0,"form",4),Eg("ngSubmit",function(){mf(e);let u=dC();return yf(u.submit())}),Is(1,"ds-form-field",5),Yw(2,ve,1,1,"input",6)(3,be,5,1,"select",7),ml(),Is(4,"ds-form-field",8),hg(5,"input",9),BI(),ml(),Is(6,"ds-form-field",10),hg(7,"input",11),BI(),ml(),Is(8,"ds-form-field",12),hg(9,"input",13),BI(),ml(),Is(10,"ds-form-field",14),hg(11,"input",15),BI(),ml(),Is(12,"div",16)(13,"ds-form-field",17),hg(14,"input",18),BI(),ml(),Is(15,"ds-form-field",19),hg(16,"input",20),BI(),ml()(),Is(17,"ds-form-field",21),hg(18,"input",22),BI(),ml(),Is(19,"ds-form-field",23)(20,"select",24)(21,"option",25),HC(22,"Provider default"),ml(),Jw(23,xe,2,2,"option",25,Xw),ml(),BI(),Yw(25,_e,2,0,"p",2)(26,Me,2,0,"p",2),Yw(27,Ee,2,0,"p",26),ml(),Is(28,"div",27)(29,"label",28),hg(30,"input",29),BI(),Is(31,"span",30),HC(32,"Supports advanced execution"),ml()(),Is(33,"p",31),HC(34," Agents configured in ADVANCED execution mode fail to run on a model that does not support it. SIMPLE agents are not concerned. "),ml()(),Is(35,"ds-fieldset",32)(36,"div",16)(37,"ds-form-field",33),hg(38,"input",34),BI(),ml(),Is(39,"ds-form-field",35),hg(40,"input",36),BI(),ml()(),Is(41,"div",16)(42,"ds-form-field",37),hg(43,"input",38),BI(),ml(),Is(44,"ds-form-field",39),hg(45,"input",40),BI(),ml()()(),Is(46,"ds-form-actions")(47,"button",41),HC(48),ml(),Is(49,"button",42),Eg("click",function(){mf(e);let u=dC();return yf(u.cancel())}),HC(50,"Cancel"),ml()()();}if(r&2){let e=dC();pg("formGroup",e.form),QE(2),Qw(e.isEditMode()?2:3),QE(3),pg("formControl",e.apiModelNameControl),HI(),QE(2),pg("formControl",e.descriptionControl),HI(),QE(2),pg("formControl",e.aliasControl),HI(),QE(2),pg("formControl",e.priorityControl),HI(),QE(3),pg("formControl",e.temperatureControl),HI(),QE(2),pg("formControl",e.contextWindowControl),HI(),QE(2),pg("formControl",e.maxCompletionTokensControl),HI(),QE(2),pg("formControl",e.reasoningEffortControl),HI(),QE(),pg("ngValue",null),QE(2),eC(e.reasoningEffortOptions),QE(2),Qw(e.reasoningEffortUnsupported()?25:26),QE(2),Qw(e.temperatureMayConflictWithEffort()?27:-1),QE(3),pg("formControl",e.supportsAdvancedExecutionControl),HI(),QE(5),pg("formGroup",e.pricingGroup),QE(3),HI(),QE(2),HI(),QE(3),HI(),QE(2),HI(),QE(2),pg("disabled",e.form.invalid||e.isSubmitting()),QE(),Il(" ",e.isEditMode()?"Save changes":"Create"," ");}}var Ie=["Anthropic","Gemini"],ge=class r{route=g(W);router=g(F);destroyRef=g(we);aiModelController=g(F$1);aiProviderController=g(k);namespaceId=this.route.snapshot.params.namespaceId;isPlatformMode=this.namespaceId===void 0;providers=F$2(this.aiProviderController.listAiProvider(this.isPlatformMode?"none":this.namespaceId).pipe(ga(()=>_r([]))),{initialValue:[]});form=new pt({aiProviderId:new Te("",{nonNullable:true,validators:[bn.required]}),apiModelName:new Te("",{nonNullable:true,validators:[bn.required,bn.minLength(1)]}),description:new Te(null),alias:new Te("",{nonNullable:true}),priority:new Te(0,{nonNullable:true}),temperature:new Te(null),contextWindow:new Te(null),maxCompletionTokens:new Te(null),reasoningEffort:new Te(null),supportsAdvancedExecution:new Te(false,{nonNullable:true}),pricing:new pt({inputMTokens:new Te(null),outputMTokens:new Te(null),cacheWrite:new Te(null),cacheRead:new Te(null)})});get aiProviderIdControl(){return this.form.controls.aiProviderId}get apiModelNameControl(){return this.form.controls.apiModelName}get descriptionControl(){return this.form.controls.description}get aliasControl(){return this.form.controls.alias}get priorityControl(){return this.form.controls.priority}get temperatureControl(){return this.form.controls.temperature}get contextWindowControl(){return this.form.controls.contextWindow}get maxCompletionTokensControl(){return this.form.controls.maxCompletionTokens}get reasoningEffortControl(){return this.form.controls.reasoningEffort}get supportsAdvancedExecutionControl(){return this.form.controls.supportsAdvancedExecution}get pricingGroup(){return this.form.controls.pricing}reasoningEffortOptions=Object.values(Ne);selectedProviderId=F$2(this.form.controls.aiProviderId.valueChanges,{initialValue:this.form.controls.aiProviderId.value});reasoningEffortUnsupported=mT(()=>{let t=this.providers().find(e=>e.id===this.selectedProviderId())?.apiType;return t!==void 0&&Ie.includes(t)});temperatureValue=F$2(this.form.controls.temperature.valueChanges,{initialValue:this.form.controls.temperature.value});reasoningEffortValue=F$2(this.form.controls.reasoningEffort.valueChanges,{initialValue:this.form.controls.reasoningEffort.value});temperatureMayConflictWithEffort=mT(()=>{let t=this.temperatureValue();return this.reasoningEffortValue()!=null&&t!=null&&t!==1});isEditMode=zi(false);isSubmitting=zi(false);isLoading=zi(false);selectedProviderLabel=mT(()=>{let t=this.aiProviderIdControl.value,e=this.providers().find(c=>c.id===t);return e?`${e.name} (${e.apiType})`:t});existingModel=null;constructor(){Ff(()=>{this.reasoningEffortUnsupported()?(this.reasoningEffortControl.setValue(null),this.reasoningEffortControl.disable()):this.reasoningEffortControl.enable();});}ngOnInit(){let t=this.route.snapshot.paramMap.get("modelId");t&&(this.isEditMode.set(true),this.loadModel(t));}loadModel(t){this.isLoading.set(true),this.aiModelController.getByIdAiModel(t).pipe(U(this.destroyRef)).subscribe({next:e=>{this.existingModel=e,this.aiProviderIdControl.setValue(e.aiProviderId),this.aiProviderIdControl.disable(),this.apiModelNameControl.setValue(e.apiModelName),this.descriptionControl.setValue(e.description??null),this.aliasControl.setValue(e.alias??""),this.priorityControl.setValue(e.priority??0),this.temperatureControl.setValue(e.temperature??null),this.contextWindowControl.setValue(e.contextWindow??null),this.maxCompletionTokensControl.setValue(e.maxCompletionTokens??null),this.reasoningEffortControl.setValue(e.reasoningEffort??null),this.supportsAdvancedExecutionControl.setValue(e.supportsAdvancedExecution??false),this.pricingGroup.setValue({inputMTokens:e.pricing?.inputMTokens??null,outputMTokens:e.pricing?.outputMTokens??null,cacheWrite:e.pricing?.cacheWrite??null,cacheRead:e.pricing?.cacheRead??null}),this.isLoading.set(false);},error:()=>{this.isLoading.set(false),this.navigateBack();}});}submit(){if(this.form.invalid||this.isSubmitting())return;this.isSubmitting.set(true);let t=this.form.getRawValue(),e=t.pricing,u=e.inputMTokens!=null||e.outputMTokens!=null||e.cacheWrite!=null||e.cacheRead!=null?{isEmpty:false,inputMTokens:e.inputMTokens??void 0,outputMTokens:e.outputMTokens??void 0,cacheWrite:e.cacheWrite??void 0,cacheRead:e.cacheRead??void 0}:void 0,w$1=x(w({},this.existingModel??{}),{aiProviderId:t.aiProviderId,namespaceId:this.isPlatformMode?void 0:this.existingModel?.namespaceId??this.namespaceId,apiModelName:t.apiModelName.trim(),description:t.description?.trim()||void 0,alias:t.alias.trim()||void 0,priority:t.priority,temperature:t.temperature??void 0,contextWindow:t.contextWindow??void 0,maxCompletionTokens:t.maxCompletionTokens??void 0,reasoningEffort:t.reasoningEffort??void 0,supportsAdvancedExecution:t.supportsAdvancedExecution,pricing:u});(this.isEditMode()?this.aiModelController.updateAiModel(this.existingModel.id??"",w$1):this.aiModelController.createAiModel(w$1)).pipe(U(this.destroyRef)).subscribe({next:()=>this.navigateBack(),error:()=>this.isSubmitting.set(false)});}cancel(){this.navigateBack();}navigateBack(){this.isPlatformMode?this.router.navigate(["/agentos","admin","ai-models"]):this.router.navigate(["/agentos",this.namespaceId,"ai-models"]);}trackByProvider(t,e){return e.id??""}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Nw({type:r,selectors:[["agentos-ai-model-form"]],decls:6,vars:2,consts:[[3,"title"],["dsButton","","variant","ghost","type","button","title","Back to AI models",3,"click"],[1,"ds-hint"],[1,"ds-form",3,"formGroup"],[1,"ds-form",3,"ngSubmit","formGroup"],["label","Provider","controlId","model-provider","required",""],["dsControl","","id","model-provider","type","text","readonly","","tabindex","-1",3,"value"],["dsControl","","id","model-provider",3,"formControl"],["label","API name","controlId","model-api-name","required",""],["dsControl","","mono","","id","model-api-name","type","text","placeholder","e.g. gpt-4o, claude-3-5-sonnet-20241022","autocomplete","off",3,"formControl"],["label","Description","controlId","model-description"],["dsControl","","id","model-description","type","text","placeholder","Optional \u2014 short description of this model config","autocomplete","off",3,"formControl"],["label","Alias","controlId","model-alias"],["dsControl","","id","model-alias","type","text","placeholder","e.g. fast, smart \u2014 short identifier used internally","autocomplete","off",3,"formControl"],["label","Priority","controlId","model-priority"],["dsControl","","id","model-priority","type","number","placeholder","0 \u2014 higher wins when multiple configs share the same alias","min","0","step","1",3,"formControl"],[1,"ds-grid-2"],["label","Temperature","controlId","model-temperature"],["dsControl","","id","model-temperature","type","number","placeholder","0 \u2013 2","min","0","max","2","step","0.1",3,"formControl"],["label","Context window","controlId","model-context-window"],["dsControl","","id","model-context-window","type","number","placeholder","e.g. 128000","min","1","step","1",3,"formControl"],["label","Max completion tokens","controlId","model-max-completion-tokens"],["dsControl","","id","model-max-completion-tokens","type","number","placeholder","e.g. 4096","min","1","step","1",3,"formControl"],["label","Reasoning effort","controlId","model-reasoning-effort"],["dsControl","","id","model-reasoning-effort",3,"formControl"],[3,"ngValue"],[1,"ds-hint","ds-hint--warning"],[1,"ai-model-form__field"],[1,"ai-model-form__toggle-label"],["type","checkbox",1,"ai-model-form__toggle-checkbox",3,"formControl"],[1,"ai-model-form__toggle-text"],[1,"ai-model-form__toggle-hint"],["legend","Pricing","legendHint","per million tokens \u2014 leave blank to skip cost monitoring",3,"formGroup"],["label","Input","controlId","pricing-input"],["dsControl","","id","pricing-input","type","number","placeholder","e.g. 2.50","min","0","step","0.01","formControlName","inputMTokens"],["label","Output","controlId","pricing-output"],["dsControl","","id","pricing-output","type","number","placeholder","e.g. 10.00","min","0","step","0.01","formControlName","outputMTokens"],["label","Cache write","controlId","pricing-cache-write"],["dsControl","","id","pricing-cache-write","type","number","placeholder","e.g. 3.75","min","0","step","0.01","formControlName","cacheWrite"],["label","Cache read","controlId","pricing-cache-read"],["dsControl","","id","pricing-cache-read","type","number","placeholder","e.g. 0.30","min","0","step","0.01","formControlName","cacheRead"],["dsButton","","variant","primary","type","submit",3,"disabled"],["dsButton","","type","button",3,"click"],["value","","disabled",""],[3,"value"]],template:function(e,c){e&1&&(Is(0,"ds-page")(1,"ds-section-header",0)(2,"button",1),Eg("click",function(){return c.cancel()}),HC(3," \u2190 AI models "),ml()(),Yw(4,he,2,0,"p",2)(5,Ae,51,17,"form",3),ml()),e&2&&(QE(),pg("title",c.isEditMode()?"Edit AI model":"New AI model"),QE(3),Qw(c.isLoading()?4:5));},dependencies:[vn,yn,fn,pn,hn,at,un,Kt,fd,Mo,Do,Ut,Pn,Mn,Qt,fo,go,ta,Zr,Nn,Rn,Ea],encapsulation:2})};export{ge as AiModelFormComponent};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {I,n as nt,i as it}from'./chunk-D-F4_F5P.js';import {v}from'./chunk-Dkderx1H.js';import {g,W,F,K as we,z as zi,a9 as F$1,j as mT,n as Ff,U,O as x,M as w,N as Nw,I as Is,R as Eg,H as HC,m as ml,Y as Yw,Q as QE,P as pg,b as Qw,s as sC,J as Jw,ao as Xw,S as BI,a as hg,p as dC,T as HI,k as eC,o as Il,ae as qw,L as Lg,i as fg,q as mf,r as yf}from'./main-IUUK3O6C.js';import {T as Te,b as bn,p as pt,v as vn,d as yn,e as fn,l as pn,h as hn,i as at,u as un,n as cn,K as Kt,a as fd,M as Mo,D as Do,U as Ut,Q as Qt,C as Ca,c as fo,g as go,N as Nn,R as Rn}from'./chunk-DNpsnpVA.js';import'./chunk-BSz21_Vu.js';function Ce(i,t){i&1&&(Is(0,"p",2),HC(1,"Loading\u2026"),ml());}function ye(i,t){if(i&1&&(Is(0,"label",16),hg(1,"input",17),BI(),HC(2),ml()),i&2){let e=t.$implicit,n=dC(3);QE(),pg("formControl",n.scopeControl)("value",e.value)("disabled",e.value==="namespace"&&!n.isAdmin()),HI(),QE(),Il(" ",e.label," ");}}function ge(i,t){if(i&1&&(Is(0,"ds-fieldset",5),Jw(1,ye,3,4,"label",16,qw().trackByScope,true),ml()),i&2){let e=dC(2);pg("disabled",e.isEditMode()),QE(),eC(e.scopeOptions);}}function fe(i,t){if(i&1&&(Is(0,"option",8),HC(1),ml()),i&2){let e=t.$implicit,n=dC(2);pg("value",e),QE(),Lg(n.authTypeLabel[e]);}}function Se(i,t){if(i&1&&(Is(0,"ds-form-field",18),hg(1,"input",19),BI(),ml()),i&2){let e=dC().$implicit;pg("label",e.label)("controlId","as-cred-"+e.key)("required",e.required)("hint",e.hint??null)("hintId","as-hint-"+e.key),QE(),pg("id","as-cred-"+e.key)("type",e.secret?"password":"text")("placeholder",e.placeholder)("formControl",t)("autocomplete",e.secret?"new-password":"off"),fg("aria-describedby",e.hint?"as-hint-"+e.key:null),HI();}}function Ae(i,t){if(i&1&&Yw(0,Se,2,11,"ds-form-field",18),i&2){let e,n=t.$implicit,o=dC(3);Qw((e=o.controlForField(n.key))?0:-1,e);}}function ve(i,t){if(i&1&&(Is(0,"ds-fieldset",13),Jw(1,Ae,1,1,null,null,qw().trackByField,true),ml()),i&2){let e=dC(2);pg("hint","Values are stored encrypted and masked on read."+(e.isEditMode()?" Leave a field unchanged to keep the stored credential.":"")),QE(),eC(e.credentialFields());}}function be(i,t){if(i&1){let e=sC();Is(0,"form",4),Eg("ngSubmit",function(){mf(e);let o=dC();return yf(o.submit())}),Yw(1,ge,3,1,"ds-fieldset",5),Is(2,"ds-form-field",6)(3,"select",7),Jw(4,fe,2,2,"option",8,Xw),ml(),BI(),ml(),Is(6,"ds-form-field",9),hg(7,"input",10),BI(),ml(),Is(8,"ds-form-field",11),hg(9,"input",12),BI(),ml(),Yw(10,ve,3,1,"ds-fieldset",13),Is(11,"ds-form-actions")(12,"button",14),HC(13),ml(),Is(14,"button",15),Eg("click",function(){mf(e);let o=dC();return yf(o.cancel())}),HC(15,"Cancel"),ml()()();}if(i&2){let e=dC();pg("formGroup",e.form),QE(),Qw(e.isPlatformMode?-1:1),QE(2),pg("formControl",e.authTypeControl),HI(),QE(),eC(e.authTypeOptions),QE(3),pg("formControl",e.nameControl),HI(),QE(2),pg("formControl",e.descriptionControl),HI(),QE(),Qw(e.credentialFields().length>0?10:-1),QE(2),pg("disabled",e.form.invalid||e.isSubmitting()),QE(),Il(" ",e.isEditMode()?"Save changes":"Create"," ");}}var ke=new Set(["namespace","userOnNs","userGlobal"]),D=Object.freeze({platform:"Platform (read-only)",namespace:"Namespace configuration",userOnNs:"Personal \u2014 this namespace only",userGlobal:"Personal \u2014 all namespaces"}),_e={ApiKeyAuthSetting:[{key:"apiKey",label:"API Key",placeholder:"sk-\u2026",secret:true,required:false}],BasicAuthAuthSetting:[{key:"username",label:"Username",placeholder:"user@example.com",secret:false,required:false},{key:"password",label:"Password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",secret:true,required:false}],BearerTokenAuthSetting:[{key:"token",label:"Bearer token",placeholder:"eyJ\u2026",secret:true,required:false}],OAuthDiscoverableAuthSetting:[{key:"discoveryUrl",label:"Discovery URL",placeholder:"https://\u2026/.well-known/openid-configuration",secret:false,required:false},{key:"clientId",label:"Client ID",placeholder:"",secret:false,required:false},{key:"clientSecret",label:"Client secret",placeholder:"",secret:true,required:false},{key:"scopes",label:"Scopes",placeholder:"",hint:"Space-separated OAuth scopes to request (e.g. openid profile email). Check your provider's documentation for the exact values.",secret:false,required:false}],OAuthCustomAuthSetting:[{key:"authorizationUrl",label:"Authorization URL",placeholder:"https://\u2026/authorize",secret:false,required:false},{key:"tokenUrl",label:"Token URL",placeholder:"https://\u2026/token",secret:false,required:false},{key:"clientId",label:"Client ID",placeholder:"",secret:false,required:false},{key:"clientSecret",label:"Client secret",placeholder:"",secret:true,required:false},{key:"scopes",label:"Scopes",placeholder:"",hint:"Space-separated OAuth scopes to request (e.g. openid profile email). Check your provider's documentation for the exact values.",secret:false,required:false}],OAuthRegisteredAuthSetting:[{key:"authorizationUrl",label:"Authorization URL",placeholder:"https://\u2026/authorize",secret:false,required:false},{key:"tokenUrl",label:"Token URL",placeholder:"https://\u2026/token",secret:false,required:false},{key:"clientId",label:"Client ID",placeholder:"",secret:false,required:false},{key:"clientSecret",label:"Client secret",placeholder:"",secret:true,required:false},{key:"scopes",label:"Scopes",placeholder:"",hint:"Space-separated OAuth scopes to request (e.g. openid profile email). Check your provider's documentation for the exact values.",secret:false,required:false}],OAuthMcpDiscoverableAuthSetting:[{key:"resourceUrl",label:"Resource URL",placeholder:"https://mcp.example.com",hint:"Use the base URL exactly as documented by your provider \u2014 do not append a path suffix. Examples: https://mcp.hubspot.com (HubSpot), https://mcp.atlassian.com/v1/mcp (Atlassian).",secret:false,required:false},{key:"clientId",label:"Client ID",placeholder:"",hint:"Leave empty to let the server register an OAuth client automatically (RFC 7591 dynamic registration). Fill in only if you have a pre-registered client ID from your provider.",secret:false,required:false},{key:"clientSecret",label:"Client secret",placeholder:"",secret:true,required:false},{key:"scopes",label:"Scopes",placeholder:"",hint:"Leave empty in most cases \u2014 the MCP server declares the required scopes itself. Fill in only if your provider explicitly requires client-declared scopes.",secret:false,required:false}]},me=class i{route=g(W);router=g(F);destroyRef=g(we);state=g(I);namespaceRole=g(v);namespaceId=this.route.snapshot.params.namespaceId;isPlatformMode=this.namespaceId===void 0;isAdmin=this.isPlatformMode?zi(true):F$1(this.namespaceRole.isAdminOfNamespace$(this.namespaceId),{initialValue:false});authTypeOptions=nt;authTypeLabel=it;scopeOptions=[{value:"namespace",label:D.namespace},{value:"userOnNs",label:D.userOnNs},{value:"userGlobal",label:D.userGlobal}];nameControl=new Te("",{nonNullable:true,validators:[bn.required,bn.minLength(1)]});descriptionControl=new Te(null);authTypeControl=new Te("ApiKeyAuthSetting",{nonNullable:true,validators:[bn.required]});scopeControl=new Te("namespace",{nonNullable:true});form=new pt({name:this.nameControl,description:this.descriptionControl,authType:this.authTypeControl,scope:this.scopeControl});apiKeyControl=new Te("",{nonNullable:true});usernameControl=new Te("",{nonNullable:true});passwordControl=new Te("",{nonNullable:true});tokenControl=new Te("",{nonNullable:true});discoveryUrlControl=new Te("",{nonNullable:true});authorizationUrlControl=new Te("",{nonNullable:true});tokenUrlControl=new Te("",{nonNullable:true});clientIdControl=new Te("",{nonNullable:true});clientSecretControl=new Te("",{nonNullable:true});scopesControl=new Te("",{nonNullable:true});resourceUrlControl=new Te("",{nonNullable:true});selectedAuthType=F$1(this.authTypeControl.valueChanges,{initialValue:this.authTypeControl.value});credentialFields=mT(()=>_e[this.selectedAuthType()]);isEditMode=zi(false);isSubmitting=zi(false);isLoading=zi(false);existingConfig=null;initialCredentials={};constructor(){this.isPlatformMode||Ff(()=>{this.isAdmin()||this.isEditMode()||this.scopeControl.value==="namespace"&&this.scopeControl.setValue("userOnNs");});}ngOnInit(){this.namespaceId&&this.state.setNamespace(this.namespaceId);let t=this.route.snapshot.paramMap,e=this.route.snapshot.queryParamMap,n=t.get("authSettingId");if(n){this.isEditMode.set(true),this.scopeControl.disable(),this.authTypeControl.disable(),this.loadConfig(n);return}if(this.isPlatformMode){this.scopeControl.setValue("platform"),this.scopeControl.disable();return}let o=this.parseScope(e.get("scope"));this.scopeControl.setValue(o);let v=e.get("template");v&&this.hydrateFromTemplate(v);}parseScope(t){return t&&ke.has(t)?t:"namespace"}deriveScopeFromConfig(t){return !t.userId&&!t.namespaceId?"platform":t.userId?t.namespaceId?"userOnNs":"userGlobal":"namespace"}loadConfig(t){this.isLoading.set(true),this.state.getById(t).pipe(U(this.destroyRef)).subscribe({next:e=>{this.existingConfig=e,this.scopeControl.setValue(this.deriveScopeFromConfig(e)),this.applyConfigToForm(e),this.isLoading.set(false);},error:()=>{this.isLoading.set(false),console.warn(`[AuthSettingForm] Could not load auth setting '${t}' \u2014 navigating back`),this.navigateBack();}});}hydrateFromTemplate(t){this.isLoading.set(true),this.state.getById(t).pipe(U(this.destroyRef)).subscribe({next:e=>{this.nameControl.setValue(e.name),this.descriptionControl.setValue(e.description??null),this.authTypeControl.setValue(e.authType),this.clearCredentialControls(),this.initialCredentials={},this.isLoading.set(false),this.router.navigate([],{relativeTo:this.route,queryParams:{template:null,templateScope:null},queryParamsHandling:"merge",replaceUrl:true});},error:e=>{console.warn(`[AuthSettingForm] Could not hydrate from template ${t}:`,e),this.isLoading.set(false),this.router.navigate([],{relativeTo:this.route,queryParams:{template:null,templateScope:null},queryParamsHandling:"merge",replaceUrl:true});}});}applyConfigToForm(t){switch(this.nameControl.setValue(t.name),this.descriptionControl.setValue(t.description??null),this.authTypeControl.setValue(t.authType),this.clearCredentialControls(),this.initialCredentials={},t.authType){case "ApiKeyAuthSetting":{let e=t.apiKey??"";this.apiKeyControl.setValue(e),this.initialCredentials.apiKey=e;break}case "BasicAuthAuthSetting":{let e=t,n=e.username??"",o=e.password??"";this.usernameControl.setValue(n),this.passwordControl.setValue(o),this.initialCredentials.username=n,this.initialCredentials.password=o;break}case "BearerTokenAuthSetting":{let e=t.token??"";this.tokenControl.setValue(e),this.initialCredentials.token=e;break}case "OAuthDiscoverableAuthSetting":{let e=t;this.discoveryUrlControl.setValue(e.discoveryUrl??""),this.clientIdControl.setValue(e.clientId??""),this.clientSecretControl.setValue(e.clientSecret??""),this.scopesControl.setValue(e.scopes??""),this.initialCredentials.discoveryUrl=e.discoveryUrl??"",this.initialCredentials.clientId=e.clientId??"",this.initialCredentials.clientSecret=e.clientSecret??"",this.initialCredentials.scopes=e.scopes??"";break}case "OAuthCustomAuthSetting":{let e=t;this.authorizationUrlControl.setValue(e.authorizationUrl??""),this.tokenUrlControl.setValue(e.tokenUrl??""),this.clientIdControl.setValue(e.clientId??""),this.clientSecretControl.setValue(e.clientSecret??""),this.scopesControl.setValue(e.scopes??""),this.initialCredentials.authorizationUrl=e.authorizationUrl??"",this.initialCredentials.tokenUrl=e.tokenUrl??"",this.initialCredentials.clientId=e.clientId??"",this.initialCredentials.clientSecret=e.clientSecret??"",this.initialCredentials.scopes=e.scopes??"";break}case "OAuthRegisteredAuthSetting":{let e=t;this.authorizationUrlControl.setValue(e.authorizationUrl??""),this.tokenUrlControl.setValue(e.tokenUrl??""),this.clientIdControl.setValue(e.clientId??""),this.clientSecretControl.setValue(e.clientSecret??""),this.scopesControl.setValue(e.scopes??""),this.initialCredentials.authorizationUrl=e.authorizationUrl??"",this.initialCredentials.tokenUrl=e.tokenUrl??"",this.initialCredentials.clientId=e.clientId??"",this.initialCredentials.clientSecret=e.clientSecret??"",this.initialCredentials.scopes=e.scopes??"";break}case "OAuthMcpDiscoverableAuthSetting":{let e=t;this.resourceUrlControl.setValue(e.resourceUrl??""),this.clientIdControl.setValue(e.clientId??""),this.clientSecretControl.setValue(e.clientSecret??""),this.scopesControl.setValue(e.scopes??""),this.initialCredentials.resourceUrl=e.resourceUrl??"",this.initialCredentials.clientId=e.clientId??"",this.initialCredentials.clientSecret=e.clientSecret??"",this.initialCredentials.scopes=e.scopes??"";break}}}clearCredentialControls(){this.apiKeyControl.setValue(""),this.usernameControl.setValue(""),this.passwordControl.setValue(""),this.tokenControl.setValue(""),this.discoveryUrlControl.setValue(""),this.authorizationUrlControl.setValue(""),this.tokenUrlControl.setValue(""),this.clientIdControl.setValue(""),this.clientSecretControl.setValue(""),this.scopesControl.setValue(""),this.resourceUrlControl.setValue("");}credentialValue(t,e){if(!(this.isEditMode()&&e===this.initialCredentials[t]))return e||void 0}submit(){if(this.form.invalid||this.isSubmitting())return;if(this.isEditMode()&&!this.existingConfig?.id){this.navigateBack();return}this.isSubmitting.set(true);let t=this.nameControl.value.trim(),e=this.descriptionControl.value?.trim()||void 0,n=this.authTypeControl.value,o=this.form.getRawValue().scope,v=this.isPlatformMode?null:this.namespaceId??null,w=this.buildTypedPayload(n,t,e);(this.isEditMode()&&this.existingConfig?.id?this.state.update(this.existingConfig.id,w,this.existingConfig):this.state.create(w,o,v)).pipe(U(this.destroyRef)).subscribe({next:()=>this.navigateBack(),error:()=>this.isSubmitting.set(false)});}buildTypedPayload(t,e,n){let o={name:e,description:n};switch(t){case "ApiKeyAuthSetting":return x(w({},o),{authType:"ApiKeyAuthSetting",apiKey:this.credentialValue("apiKey",this.apiKeyControl.value)});case "BasicAuthAuthSetting":return x(w({},o),{authType:"BasicAuthAuthSetting",username:this.credentialValue("username",this.usernameControl.value),password:this.credentialValue("password",this.passwordControl.value)});case "BearerTokenAuthSetting":return x(w({},o),{authType:"BearerTokenAuthSetting",token:this.credentialValue("token",this.tokenControl.value)});case "OAuthDiscoverableAuthSetting":return x(w({},o),{authType:"OAuthDiscoverableAuthSetting",discoveryUrl:this.credentialValue("discoveryUrl",this.discoveryUrlControl.value),clientId:this.credentialValue("clientId",this.clientIdControl.value),clientSecret:this.credentialValue("clientSecret",this.clientSecretControl.value),scopes:this.credentialValue("scopes",this.scopesControl.value)});case "OAuthCustomAuthSetting":return x(w({},o),{authType:"OAuthCustomAuthSetting",authorizationUrl:this.credentialValue("authorizationUrl",this.authorizationUrlControl.value),tokenUrl:this.credentialValue("tokenUrl",this.tokenUrlControl.value),clientId:this.credentialValue("clientId",this.clientIdControl.value),clientSecret:this.credentialValue("clientSecret",this.clientSecretControl.value),scopes:this.credentialValue("scopes",this.scopesControl.value)});case "OAuthRegisteredAuthSetting":return x(w({},o),{authType:"OAuthRegisteredAuthSetting",authorizationUrl:this.credentialValue("authorizationUrl",this.authorizationUrlControl.value),tokenUrl:this.credentialValue("tokenUrl",this.tokenUrlControl.value),clientId:this.credentialValue("clientId",this.clientIdControl.value),clientSecret:this.credentialValue("clientSecret",this.clientSecretControl.value),scopes:this.credentialValue("scopes",this.scopesControl.value)});case "OAuthMcpDiscoverableAuthSetting":return x(w({},o),{authType:"OAuthMcpDiscoverableAuthSetting",resourceUrl:this.credentialValue("resourceUrl",this.resourceUrlControl.value),clientId:this.credentialValue("clientId",this.clientIdControl.value),clientSecret:this.credentialValue("clientSecret",this.clientSecretControl.value),scopes:this.credentialValue("scopes",this.scopesControl.value)})}}controlForField(t){return {apiKey:this.apiKeyControl,username:this.usernameControl,password:this.passwordControl,token:this.tokenControl,discoveryUrl:this.discoveryUrlControl,authorizationUrl:this.authorizationUrlControl,tokenUrl:this.tokenUrlControl,clientId:this.clientIdControl,clientSecret:this.clientSecretControl,scopes:this.scopesControl,resourceUrl:this.resourceUrlControl}[t]}cancel(){this.navigateBack();}navigateBack(){this.isPlatformMode?this.router.navigate(["/agentos","admin","auth-settings"]):this.router.navigate(["/agentos",this.namespaceId,"auth-settings"]);}trackByScope(t,e){return e.value}trackByField(t,e){return e.key}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=Nw({type:i,selectors:[["agentos-auth-setting-form"]],decls:6,vars:2,consts:[[3,"title"],["dsButton","","variant","ghost","type","button","title","Back to auth settings",3,"click"],[1,"ds-hint"],[1,"ds-form",3,"formGroup"],[1,"ds-form",3,"ngSubmit","formGroup"],["legend","Configuration scope",3,"disabled"],["label","Auth type","controlId","as-auth-type","required",""],["dsControl","","id","as-auth-type",3,"formControl"],[3,"value"],["label","Name","controlId","as-name","required",""],["dsControl","","id","as-name","type","text","placeholder","e.g. GitHub OAuth App","autocomplete","off",3,"formControl"],["label","Description","controlId","as-description"],["dsControl","","id","as-description","type","text","placeholder","Optional \u2014 short description of this auth setting","autocomplete","off",3,"formControl"],["legend","Credentials",3,"hint"],["dsButton","","variant","primary","type","submit",3,"disabled"],["dsButton","","type","button",3,"click"],["dsCheck",""],["type","radio",3,"formControl","value","disabled"],[3,"label","controlId","required","hint","hintId"],["dsControl","",3,"id","type","placeholder","formControl","autocomplete"]],template:function(e,n){e&1&&(Is(0,"ds-page")(1,"ds-section-header",0)(2,"button",1),Eg("click",function(){return n.cancel()}),HC(3," \u2190 Auth settings "),ml()(),Yw(4,Ce,2,0,"p",2)(5,be,16,8,"form",3),ml()),e&2&&(QE(),pg("title",n.isEditMode()?"Edit auth setting":"New auth setting"),QE(3),Qw(n.isLoading()?4:5));},dependencies:[vn,yn,fn,pn,hn,at,un,cn,Kt,fd,Mo,Do,Ut,Qt,Ca,fo,go,Nn,Rn],encapsulation:2})};
|
|
2
|
-
export{me as AuthSettingFormComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {v as vn,d as yn,k as dn,_ as _n,i as at,m as mn,F as Ni,G as c}from'./chunk-DNpsnpVA.js';import {g,W as W$1,F,K as we,ag as U,z as zi,j as mT,U as U$1,N as Nw,au as $t,I as Is,R as Eg,H as HC,m as ml,Y as Yw,Q as QE,P as pg,b as Qw,p as dC,L as Lg,x as xg,o as Il,J as Jw,k as eC,s as sC,a as hg,av as cT,aw as lT,q as mf,r as yf,ax as iE}from'./main-IUUK3O6C.js';var j=(t,n)=>n.id,z=(t,n)=>n.name;function q(t,n){t&1&&(Is(0,"p",3),HC(1,"Loading\u2026"),ml());}function Q(t,n){t&1&&(Is(0,"ds-notice"),HC(1,"Failed to load agent definition."),ml());}function W(t,n){if(t&1&&(Is(0,"dt"),HC(1,"User context"),ml(),Is(2,"dd",6),HC(3),ml()),t&2){let e=dC();QE(3),Lg(e.userId);}}function X(t,n){if(t&1){let e=sC();Is(0,"ds-card")(1,"ds-disclosure",12),Eg("toggled",function(){mf(e);let m=dC(2);return yf(m.toggleSystemPrompt())}),Is(2,"pre",13),HC(3),ml()()();}if(t&2){let e=dC(),r=dC();QE(),pg("open",!r.systemPromptCollapsed()),QE(2),Lg(e.systemPrompt);}}function Y(t,n){if(t&1){let e=sC();Is(0,"ds-card")(1,"ds-disclosure",14),Eg("toggled",function(){mf(e);let m=dC(2);return yf(m.toggleInstructions())}),Is(2,"pre",13),HC(3),ml()()();}if(t&2){let e=dC(),r=dC();QE(),pg("open",!r.instructionsCollapsed()),QE(2),Lg(e.instructions);}}function Z(t,n){t&1&&(Is(0,"p",3),HC(1," This agent declares no skill, so it gets no skill tools. Attach skills from the edit form. "),ml());}function ee(t,n){t&1&&(Is(0,"span",17),HC(1,"platform"),ml());}function te(t,n){t&1&&(Is(0,"span",17),HC(1,"SKILL.md"),ml());}function ne(t,n){if(t&1&&(Is(0,"li",15)(1,"span")(2,"span",16),HC(3),ml(),Yw(4,ee,2,0,"span",17),Yw(5,te,2,0,"span",17),ml(),Is(6,"p",3),HC(7),ml()()),t&2){let e=n.$implicit;QE(3),Lg(e.name),QE(),Qw(e.namespaceId?-1:4),QE(),Qw(e.readOnly?5:-1),QE(2),Lg(e.description);}}function ie(t,n){if(t&1&&(Is(0,"ul",11),Jw(1,ne,8,4,"li",15,j),ml()),t&2){let e=dC(2);QE(),eC(e.resolvedSkills());}}function oe(t,n){t&1&&(Is(0,"p",3),HC(1,"No tools available for this agent."),ml());}function ae(t,n){if(t&1&&(hg(0,"div",19),cT(1,"agentosMarkdown")),t&2){let e=dC().$implicit;pg("innerHTML",lT(1,1,e.description),iE);}}function de(t,n){if(t&1){let e=sC();Is(0,"li")(1,"ds-disclosure",18),Eg("toggled",function(){let m=mf(e).$implicit,U=dC(3);return yf(U.toggleTool(m))}),Yw(2,ae,2,3,"div",19),Is(3,"pre",20),HC(4),ml()()();}if(t&2){let e=n.$implicit,r=dC(3);QE(),pg("heading",e.name)("open",r.isToolExpanded(e)),QE(),Qw(e.description?2:-1),QE(2),Lg(r.formatSchema(e.inputSchema));}}function re(t,n){if(t&1&&(Is(0,"ul",11),Jw(1,de,5,4,"li",null,z),ml()),t&2){let e=dC();QE(),eC(e.tools);}}function se(t,n){if(t&1&&(Is(0,"ds-card",4)(1,"dl",5)(2,"dt"),HC(3,"Name"),ml(),Is(4,"dd"),HC(5),ml(),Is(6,"dt"),HC(7,"Resolved model"),ml(),Is(8,"dd",6),HC(9),ml(),Is(10,"dt"),HC(11,"Provider"),ml(),Is(12,"dd"),HC(13),ml(),Is(14,"dt",7),HC(15,"Execution mode"),ml(),Is(16,"dd",8)(17,"span",9),HC(18),ml()(),Yw(19,W,4,1),ml()(),Yw(20,X,4,2,"ds-card"),Yw(21,Y,4,2,"ds-card"),Is(22,"ds-card",10),Yw(23,Z,2,0,"p",3)(24,ie,3,0,"ul",11),ml(),Is(25,"ds-card",10),Yw(26,oe,2,0,"p",3)(27,re,3,0,"ul",11),ml()),t&2){let e=n,r=dC();QE(5),Lg(e.name),QE(4),Lg(e.resolvedModelApiName),QE(4),Lg(e.resolvedProviderName),QE(4),xg("agent-config-inspect__badge--active",e.executionMode!=="SIMPLE"),QE(),Il(" ",e.executionMode," "),QE(),Qw(e.userId?19:-1),QE(),Qw(e.systemPrompt?20:-1),QE(),Qw(e.instructions?21:-1),QE(),pg("heading","Skills ("+r.resolvedSkills().length+")"),QE(),Qw(r.resolvedSkills().length===0?23:24),QE(2),pg("heading","Tools ("+e.tools.length+")"),QE(),Qw(e.tools.length===0?26:27);}}var K=class t{route=g(W$1);router=g(F);destroyRef=g(we);agentConfigController=g(U);namespaceId=this.route.snapshot.params.namespaceId;agentConfigId=this.route.snapshot.params.agentConfigId;isPlatformMode=!this.namespaceId;isLoading=zi(true);hasError=zi(false);definition=zi(null);expandedTools=zi(new Set);resolvedSkills=mT(()=>this.definition()?.skills??[]);systemPromptCollapsed=zi(true);instructionsCollapsed=zi(true);ngOnInit(){this.agentConfigController.getDefinitionAgentConfig(this.agentConfigId).pipe(U$1(this.destroyRef)).subscribe({next:n=>{this.definition.set(n),this.isLoading.set(false);},error:()=>{this.hasError.set(true),this.isLoading.set(false);}});}toggleTool(n){this.expandedTools.update(e=>{let r=new Set(e);return r.has(n.name)?r.delete(n.name):r.add(n.name),r});}isToolExpanded(n){return this.expandedTools().has(n.name)}toggleSystemPrompt(){this.systemPromptCollapsed.update(n=>!n);}toggleInstructions(){this.instructionsCollapsed.update(n=>!n);}formatSchema(n){try{return JSON.stringify(JSON.parse(n),null,2)}catch(e){return n}}editRoute(){return this.isPlatformMode?["/agentos","admin","agent-configs",this.agentConfigId,"edit"]:["/agentos",this.namespaceId,"agent-configs",this.agentConfigId,"edit"]}back(){this.isPlatformMode?this.router.navigate(["/agentos","admin","agent-configs"]):this.router.navigate(["/agentos",this.namespaceId,"agent-configs"]);}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=Nw({type:t,selectors:[["agentos-agent-config-inspect"]],decls:9,vars:2,consts:[["title","Agent definition"],["dsButton","","variant","ghost","type","button","title","Back to agent configs",3,"click"],["headerMeta","",1,"ds-link",3,"routerLink"],[1,"ds-hint"],["heading","General"],["dsDefinitionList",""],[1,"ds-mono"],[1,"agent-config-inspect__dt"],[1,"agent-config-inspect__dd"],[1,"agent-config-inspect__badge"],[3,"heading"],[1,"ds-list"],["heading","System Prompt",3,"toggled","open"],[1,"ds-pre","ds-pre--prose"],["heading","Instructions",3,"toggled","open"],[1,"ds-stack","ds-stack--sm"],[1,"ds-strong"],[1,"ds-meta"],["bordered","","mono","",3,"toggled","heading","open"],[1,"ds-prose","ds-hint",3,"innerHTML"],[1,"ds-pre"]],template:function(e,r){if(e&1&&(Is(0,"ds-page")(1,"ds-section-header",0)(2,"button",1),Eg("click",function(){return r.back()}),HC(3," \u2190 Agent configs "),ml(),Is(4,"a",2),HC(5,"Edit config \u2192"),ml()(),Yw(6,q,2,0,"p",3)(7,Q,2,0,"ds-notice")(8,se,28,13),ml()),e&2){let m;QE(4),pg("routerLink",r.editRoute()),QE(2),Qw(r.isLoading()?6:r.hasError()?7:(m=r.definition())?8:-1,m);}},dependencies:[$t,vn,yn,dn,_n,at,mn,Ni,c],encapsulation:2})};export{K as AgentConfigInspectComponent};
|