@whoz-oss/coday-client 0.0.0-workstream-forge.285 → 0.0.0-workstream-forge.288
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/3rdpartylicenses.txt +52 -0
- package/browser/{chunk-Cnq159eN.js → chunk--N43m_5o.js} +1 -1
- package/browser/{chunk-D-9iMQv_.js → chunk-ARX7xO57.js} +1 -1
- package/browser/{chunk-DLUw6xZL.js → chunk-B0gKv16w.js} +1 -1
- package/browser/{chunk-Bj2SgFTY.js → chunk-B84wcmlL.js} +1 -1
- package/browser/{chunk-Deoyp47K.js → chunk-BAW_bOac.js} +1 -1
- package/browser/{chunk-BpRfgEmz.js → chunk-BNV6A7zQ.js} +1 -1
- package/browser/chunk-BSz21_Vu.js +1 -0
- package/browser/{chunk-BGaBu_yG.js → chunk-BWCkWdmU.js} +1 -1
- package/browser/{chunk-DCU0O5Ka.js → chunk-BZ7MHHlT.js} +1 -1
- package/browser/{chunk-CX2QtdIw.js → chunk-BbgQs8ay.js} +1 -1
- package/browser/{chunk-BRhWdEcv.js → chunk-Bc30sqfv.js} +1 -1
- package/browser/{chunk-DNO_UKkx.js → chunk-BgfuCnTj.js} +1 -1
- package/browser/chunk-BtNRYep-.js +16 -0
- package/browser/{chunk-C3n9w6Vo.js → chunk-Bw2kVgKL.js} +1 -1
- package/browser/{chunk-BsMXvlMY.js → chunk-By9Xd-3K.js} +1 -1
- package/browser/{chunk-BQrs6HKm.js → chunk-BzrVRPNK.js} +1 -1
- package/browser/{chunk-D7CYFO8e.js → chunk-C8EjYY3L.js} +1 -1
- package/browser/{chunk-UivSyOHl.js → chunk-CBHdjoSo.js} +1 -1
- package/browser/{chunk-DT7DFzXk.js → chunk-CGhT80Z4.js} +1 -1
- package/browser/{chunk-BWZH94Ql.js → chunk-CT-NYgHo.js} +1 -1
- package/browser/{chunk-BozaX28A.js → chunk-CWBuB3TV.js} +1 -1
- package/browser/{chunk-BuXYpWqH.js → chunk-CWRaz0m6.js} +1 -1
- package/browser/{chunk-DC3rgpMh.js → chunk-CfJrOSzi.js} +1 -1
- package/browser/{chunk-VqtB1BzG.js → chunk-Ch_tCQDO.js} +1 -1
- package/browser/{chunk-ByMpO_2J.js → chunk-CknQyFqR.js} +1 -1
- package/browser/{chunk-9lPOnBh7.js → chunk-CqXT8Tpx.js} +1 -1
- package/browser/chunk-CqeuplQz.js +1 -0
- package/browser/{chunk-Ca-YJxkj.js → chunk-D-F4_F5P.js} +1 -1
- package/browser/{chunk-BvWC7yF9.js → chunk-D0PFoBR9.js} +1 -1
- package/browser/{chunk-BU4BNqKl.js → chunk-DJblpySR.js} +1 -1
- package/browser/{chunk-DXhOdsyd.js → chunk-DLffGFin.js} +1 -1
- package/browser/chunk-DNpsnpVA.js +690 -0
- package/browser/{chunk-CHXLjpvB.js → chunk-DT4fihVQ.js} +1 -1
- package/browser/chunk-DTHI-QLx.js +61 -0
- package/browser/{chunk-DYFgJfm3.js → chunk-DUVTlyRi.js} +1 -1
- package/browser/{chunk-KqBRRBxT.js → chunk-D_KNMuBZ.js} +1 -1
- package/browser/{chunk-E7h9aRjY.js → chunk-DaMifMs9.js} +1 -1
- package/browser/chunk-DdMcbWCx.js +1 -0
- package/browser/{chunk-DpaqV0I8.js → chunk-Dkderx1H.js} +1 -1
- package/browser/{chunk-CimgVrmo.js → chunk-Dnbp1gjx.js} +1 -1
- package/browser/{chunk-Ch9IS2VK.js → chunk-DqNu3dCC.js} +1 -1
- package/browser/{chunk-waXaFQA6.js → chunk-Dxv38Ish.js} +1 -1
- package/browser/{chunk-C6jMH6l0.js → chunk-H7KUSNF6.js} +1 -1
- package/browser/{chunk-DaKshFXh.js → chunk-I4zoVvDE.js} +1 -1
- package/browser/{chunk-B4IxKhfN.js → chunk-JWkB7UsB.js} +1 -1
- package/browser/{chunk-CfcxICq5.js → chunk-dhcgEEkx.js} +1 -1
- package/browser/{chunk-DoEqcxIp.js → chunk-lsjaR1SF.js} +1 -1
- package/browser/chunk-pXoj-NgV.js +1 -0
- package/browser/index.html +1 -1
- package/browser/{main-OLEL3JTU.js → main-IUUK3O6C.js} +1 -1
- package/package.json +1 -1
- package/browser/chunk-Bx5RArn6.js +0 -1
- package/browser/chunk-C7Y0YglE.js +0 -1
- package/browser/chunk-CFyknSSV.js +0 -1
- package/browser/chunk-DaMEeyR0.js +0 -1
- package/browser/chunk-anaDHfEv.js +0 -680
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-1nyEsjkY.js';import {o}from'./chunk-DXhOdsyd.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 On}from'./chunk-anaDHfEv.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-OLEL3JTU.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,On],encapsulation:2})};export{X as SkillInspectComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a1 as ma,a2 as ga,aa as _r,aD as Jy}from'./main-OLEL3JTU.js';function i(t,o,p){return t.pipe(ma(()=>o().pipe(ga(()=>_r(p)))),Jy({bufferSize:1,refCount:true}))}export{i};
|
|
@@ -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 On}from'./chunk-anaDHfEv.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-OLEL3JTU.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,On],encapsulation:2})};export{K as AgentConfigInspectComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {O as O$1}from'./chunk-D-9iMQv_.js';import {I}from'./chunk-Ca-YJxkj.js';import {O}from'./chunk-DNO_UKkx.js';import {g,K as we$1,z as zi,j as mT,a9 as F,at as _y,ad as ne,U,N as Nw,I as Is,a as hg,Y as Yw,m as ml,Q as QE,b as Qw,H as HC,s as sC,R as Eg,p as dC,P as pg,S as BI,J as Jw,L as Lg,T as HI,k as eC,o as Il,ae as qw,q as mf,r as yf,aL as DC,O as x,M as w}from'./main-OLEL3JTU.js';import {y,J as k,L as R,X as a,p as pt,T as Te$1,$ as v,a0 as V,K as Kt,a as fd,M as Mo,D as Do,U as Ut,Q as Qt,c as fo,g as go,R as Rn,E as Ea,v as vn,d as yn,e as fn,a1 as gn,h as hn,i as at,u as un,m as mn,a2 as ji,F as Ni,a3 as m,a4 as S}from'./chunk-anaDHfEv.js';import'./chunk-C7Y0YglE.js';var ye=(o,e)=>e.value,be=(o,e)=>e.title;function xe(o,e){o&1&&(Is(0,"p",4),HC(1,"Loading\u2026"),ml());}function Se(o,e){if(o&1&&(Is(0,"option",34),HC(1),ml()),o&2){let t=e.$implicit;pg("value",t.value),QE(),Lg(t.label);}}function Ee(o,e){if(o&1&&(Is(0,"option",34),HC(1),ml()),o&2){let t=e.$implicit;pg("value",t.value),QE(),Lg(t.label);}}function Te(o,e){if(o&1){let t=sC();Is(0,"form",22),Eg("ngSubmit",function(){mf(t);let s=dC(2);return yf(s.save())}),Is(1,"ds-group",23)(2,"dl",24)(3,"dt"),HC(4,"Email"),ml(),Is(5,"dd"),HC(6),ml(),Is(7,"dt"),HC(8,"External ID"),ml(),Is(9,"dd"),HC(10),ml()()(),Is(11,"ds-group",25)(12,"ds-form-field",26),hg(13,"input",27),BI(),ml(),Is(14,"ds-form-field",28),hg(15,"input",29),BI(),ml(),Is(16,"ds-form-field",30),hg(17,"textarea",31),BI(),ml(),Is(18,"ds-form-field",32)(19,"select",33),Jw(20,Se,2,2,"option",34,ye),ml(),BI(),ml(),Is(22,"ds-form-field",35)(23,"select",36),Jw(24,Ee,2,2,"option",34,ye),ml(),BI(),ml()(),Is(26,"ds-form-actions")(27,"button",37),HC(28),ml(),Is(29,"button",38),Eg("click",function(){mf(t);let s=dC(2);return yf(s.cancelEditing())}),HC(30,"Cancel"),ml()()();}if(o&2){let t=dC(),a=dC();pg("formGroup",a.form),QE(6),Lg(t.email),QE(4),Lg(t.externalId),QE(3),HI(),QE(2),HI(),QE(2),HI(),QE(2),HI(),QE(),eC(a.languageOptions),QE(3),HI(),QE(),eC(a.promptCacheTtlOptions),QE(3),pg("disabled",a.isSaving()),QE(),Il(" ",a.isSaving()?"Saving\u2026":"Save changes"," ");}}function Pe(o,e){o&1&&(Is(0,"p",4),HC(1," No global configuration yet. Create one from the Integrations / AI Providers / Auth Settings pages of your namespaces. "),ml());}function Ue(o,e){if(o&1){let t=sC();Is(0,"span",47),HC(1,"Delete?"),ml(),Is(2,"button",48),Eg("click",function(){mf(t);let s=dC().$implicit,m=dC(5);return yf(m.confirmDelete(s))}),HC(3,"Confirm"),ml(),Is(4,"button",49),Eg("click",function(){mf(t);let s=dC(6);return yf(s.cancelDelete())}),HC(5,"Cancel"),ml();}}function Ie(o,e){if(o&1){let t=sC();Is(0,"button",49),Eg("click",function(){mf(t);let s=dC().$implicit,m=dC(5);return yf(m.armDelete(s))}),HC(1,"Delete"),ml();}}function De(o,e){if(o&1&&(Is(0,"li",43)(1,"span",44),HC(2),ml(),Is(3,"span",45),HC(4),ml(),Yw(5,Ue,6,0)(6,Ie,2,0,"button",46),ml()),o&2){let t=e.$implicit,a=dC(5);QE(2),Lg(t.name),QE(2),Lg(t.subtitle),QE(),Qw(a.isPendingDelete(t)?5:6);}}function Ve(o,e){if(o&1&&(Is(0,"span",41),HC(1),ml(),Is(2,"ul",42),Jw(3,De,7,3,"li",43,qw().trackEntry,true),ml()),o&2){let t=e.$implicit;QE(),Lg(t.title),QE(2),eC(t.entries);}}function we(o,e){if(o&1&&Jw(0,Ve,5,1,null,null,be),o&2){let t=dC(3);eC(t.recapSections());}}function Me(o,e){if(o&1){let t=sC();Is(0,"ds-group",23)(1,"dl",24)(2,"dt"),HC(3,"Email"),ml(),Is(4,"dd"),HC(5),ml(),Is(6,"dt"),HC(7,"External ID"),ml(),Is(8,"dd"),HC(9),ml()()(),Is(10,"ds-group",25)(11,"dl",24)(12,"dt"),HC(13,"First name"),ml(),Is(14,"dd"),HC(15),ml(),Is(16,"dt"),HC(17,"Last name"),ml(),Is(18,"dd"),HC(19),ml(),Is(20,"dt"),HC(21,"Bio"),ml(),Is(22,"dd"),HC(23),ml(),Is(24,"dt"),HC(25,"Language"),ml(),Is(26,"dd"),HC(27),ml(),Is(28,"dt"),HC(29,"Prompt cache duration (Claude models via Requesty)"),ml(),Is(30,"dd"),HC(31),ml()()(),Is(32,"ds-form-actions")(33,"button",39),Eg("click",function(){mf(t);let s=dC(2);return yf(s.startEditing())}),HC(34,"Edit profile"),ml()(),Is(35,"ds-disclosure",40),Eg("toggled",function(){mf(t);let s=dC(2);return yf(s.toggleOverrides())}),Yw(36,Pe,2,0,"p",4)(37,we,2,0),ml();}if(o&2){let t=dC(),a=dC();QE(5),Lg(t.email),QE(4),Lg(t.externalId),QE(6),Lg(t.firstname||"\u2014"),QE(4),Lg(t.lastname||"\u2014"),QE(4),Lg(t.bio||"\u2014"),QE(4),Lg(t.preferredLanguage||"\u2014"),QE(4),Lg(a.promptCacheTtlLabel()),QE(4),pg("heading","My global user configurations ("+a.recap().total+")")("open",a.isOverridesExpanded()),QE(),Qw(a.recap().total===0?36:37);}}function Ne(o,e){if(o&1){let t=sC();Is(0,"ds-group",5)(1,"ds-form-field",6)(2,"ds-segmented",7),Eg("valueChange",function(s){mf(t);let m=dC();return yf(m.setThemeVariant(s))}),ml()(),Is(3,"ds-form-field",8)(4,"ds-segmented",9),Eg("valueChange",function(s){mf(t);let m=dC();return yf(m.setTheme(s))}),ml()()(),Is(5,"ds-group",10)(6,"ds-form-field",11)(7,"ds-segmented",12),Eg("valueChange",function(s){mf(t);let m=dC();return yf(m.setEnterKeyBehavior(s))}),ml()()(),Is(8,"ds-group",13)(9,"ds-form-field",14)(10,"ds-segmented",15),Eg("valueChange",function(s){mf(t);let m=dC();return yf(m.setShowTechnical(s))}),ml()()(),Is(11,"ds-group",16)(12,"ds-form-field",17)(13,"input",18,0),Eg("change",function(){mf(t);let s=DC(14),m=dC();return yf(m.setIdeProjectRoot(s.value))}),ml()(),Is(15,"ds-form-field",19)(16,"input",20,1),Eg("change",function(){mf(t);let s=DC(17),m=dC();return yf(m.setIdeUrlTemplate(s.value))}),ml()()(),Yw(18,Te,31,5,"form",21)(19,Me,38,10);}if(o&2){let t=dC();QE(),pg("hint",t.activeVariantDescription()),QE(),pg("options",t.themeVariantOptions)("value",t.themeVariant()),QE(),pg("hint",t.modeOverridden()?t.activeVariantLabel()+" does not support this mode; your choice is kept for other skins.":null),QE(),pg("options",t.modeOptions())("value",t.shownMode()),QE(3),pg("options",t.enterKeyOptions)("value",t.enterKeyBehavior()),QE(3),pg("options",t.showTechnicalOptions)("value",t.showTechnical()),QE(3),pg("value",t.ideProjectRoot()),QE(3),pg("value",t.ideUrlTemplate()),QE(2),Qw(t.isEditing()?18:19);}}function Fe(o,e){o&1&&(Is(0,"p",4),HC(1,"Unable to load profile."),ml());}var Ce=class o{userState=g(y);destroyRef=g(we$1);integrationState=g(O);providerState=g(O$1);authSettingState=g(I);themePort=g(k);preferencesPort=g(R);isEditing=zi(false);isLoading=zi(false);isSaving=zi(false);isOverridesExpanded=zi(false);currentUser=this.userState.currentUser;theme=this.themePort.theme;themeMode=mT(()=>this.themePort.theme().mode);themeOptions=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}];themeVariant=mT(()=>this.themePort.theme().variant);themeVariantOptions=a.map(({id:e,label:t,description:a})=>({value:e,label:t,description:a}));modeOverridden=mT(()=>!V(this.themeVariant(),this.themeMode()));activeVariantLabel=mT(()=>m(this.themeVariant()).label);activeVariantDescription=mT(()=>m(this.themeVariant()).description);modeOptions=mT(()=>this.themeOptions.map(e=>x(w({},e),{disabled:this.isModeDisabled(e.value)})));shownMode=mT(()=>this.modeOverridden()?S(this.themeVariant(),this.themeMode(),false):this.themeMode());enterKeyBehavior=this.preferencesPort.enterKeyBehavior;enterKeyOptions=[{value:"send",label:"Send"},{value:"newline",label:"New line"}];showTechnical=this.preferencesPort.showTechnical;showTechnicalOptions=[{value:true,label:"Shown"},{value:false,label:"Hidden"}];ideProjectRoot=this.preferencesPort.ideProjectRoot;ideUrlTemplate=this.preferencesPort.ideUrlTemplate;languageOptions=[{value:"",label:"No preference (English fallback)"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"es",label:"Spanish"},{value:"pt",label:"Portuguese"},{value:"it",label:"Italian"},{value:"nl",label:"Dutch"},{value:"pl",label:"Polish"},{value:"ja",label:"Japanese"},{value:"zh",label:"Chinese"}];promptCacheTtlOptions=[{value:"FIVE_MINUTES",label:"5 minutes (Requesty default)"},{value:"ONE_HOUR",label:"1 hour"}];form=new pt({firstname:new Te$1("",{nonNullable:true}),lastname:new Te$1("",{nonNullable:true}),bio:new Te$1("",{nonNullable:true}),preferredLanguage:new Te$1("",{nonNullable:true}),promptCacheTtl:new Te$1("FIVE_MINUTES",{nonNullable:true})});promptCacheTtlLabel=mT(()=>{let e=this.currentUser()?.promptCacheTtl??"FIVE_MINUTES";return this.promptCacheTtlOptions.find(t=>t.value===e)?.label??e});recap=F(_y([this.integrationState.userGlobal$,this.providerState.userGlobal$,this.authSettingState.userGlobal$]).pipe(ne(([e,t,a])=>{let s=e.map(g=>({category:"integration",id:g.id??"",name:g.name,subtitle:g.integrationType})),m=t.map(g=>({category:"aiProvider",id:g.id??"",name:g.name,subtitle:g.apiType})),N=a.map(g=>({category:"authSetting",id:g.id??"",name:g.name,subtitle:g.authType}));return {integrations:s,aiProviders:m,authSettings:N,total:s.length+m.length+N.length}})),{initialValue:{integrations:[],aiProviders:[],authSettings:[],total:0}});recapSections=mT(()=>{let e=this.recap();return [{title:"Integrations",entries:e.integrations},{title:"AI Providers",entries:e.aiProviders},{title:"My global auth settings",entries:e.authSettings}].filter(t=>t.entries.length>0)});ngOnInit(){if(this.currentUser()){this.syncFormFromState();return}this.isLoading.set(true),this.userState.loadMe().pipe(U(this.destroyRef)).subscribe({next:()=>{this.syncFormFromState(),this.isLoading.set(false);},error:()=>this.isLoading.set(false)});}startEditing(){this.syncFormFromState(),this.isEditing.set(true);}cancelEditing(){this.isEditing.set(false);}setTheme(e){this.themePort.setTheme({variant:this.themePort.theme().variant,mode:e});}setThemeVariant(e){v(e)&&this.themePort.setTheme({variant:e,mode:this.themePort.theme().mode});}isModeDisabled(e){return !V(this.themeVariant(),e)}setEnterKeyBehavior(e){this.preferencesPort.setEnterKeyBehavior(e);}setShowTechnical(e){this.preferencesPort.setShowTechnical(e);}setIdeProjectRoot(e){this.preferencesPort.setIdeProjectRoot(e);}setIdeUrlTemplate(e){this.preferencesPort.setIdeUrlTemplate(e);}save(){if(this.isSaving())return;this.isSaving.set(true);let e=this.form.controls.preferredLanguage.value.trim();this.userState.updateMe({firstname:this.form.controls.firstname.value.trim()||void 0,lastname:this.form.controls.lastname.value.trim()||void 0,bio:this.form.controls.bio.value.trim()||void 0,preferredLanguage:e||void 0,promptCacheTtl:this.form.controls.promptCacheTtl.value}).pipe(U(this.destroyRef)).subscribe({next:()=>{this.isSaving.set(false),this.isEditing.set(false);},error:()=>this.isSaving.set(false)});}toggleOverrides(){this.isOverridesExpanded.update(e=>!e),this.pendingDeleteKey.set(null);}pendingDeleteKey=zi(null);isPendingDelete(e){return this.pendingDeleteKey()===this.entryKey(e)}armDelete(e){e.id&&this.pendingDeleteKey.set(this.entryKey(e));}cancelDelete(){this.pendingDeleteKey.set(null);}confirmDelete(e){if(!e.id)return;this.pendingDeleteKey.set(null),(e.category==="integration"?this.integrationState.delete(e.id,"userGlobal"):e.category==="authSetting"?this.authSettingState.delete(e.id,"userGlobal"):this.providerState.delete(e.id,"userGlobal")).pipe(U(this.destroyRef)).subscribe({error:a=>{console.error(`[UserProfile] Delete failed for ${e.category}:${e.id}:`,a);}});}entryKey(e){return `${e.category}:${e.id}`}trackEntry(e,t){return this.entryKey(t)}syncFormFromState(){let e=this.currentUser();e&&this.form.setValue({firstname:e.firstname??"",lastname:e.lastname??"",bio:e.bio??"",preferredLanguage:e.preferredLanguage??"",promptCacheTtl:e.promptCacheTtl??"FIVE_MINUTES"});}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=Nw({type:o,selectors:[["agentos-user-profile"]],decls:5,vars:1,consts:[["projectRootInput",""],["urlTemplateInput",""],["framed",""],["title","My profile"],[1,"ds-hint"],["heading","Appearance"],["label","Skin",3,"hint"],["label","Skin",3,"valueChange","options","value"],["label","Mode",3,"hint"],["label","Color mode",3,"valueChange","options","value"],["heading","Composer"],["label","Enter key","hint",'In "New line" mode, press Ctrl or Cmd + Enter to send.'],["label","Enter key behavior",3,"valueChange","options","value"],["heading","Case chat"],["label","Technical logs","hint","Show system log lines (agent status, tool selection...) in the case chat."],["label","Technical logs",3,"valueChange","options","value"],["heading","IDE links"],["label","IDE project root (absolute path)","controlId","ide-project-root","hint","Folder of the project on this machine. Relative file references in agent replies open from it."],["dsControl","","id","ide-project-root","type","text","placeholder","/Users/you/Workspace/project",3,"change","value"],["label","IDE URL template","controlId","ide-url-template","hint","Opens a file in IntelliJ IDEA. {file} is the URL-encoded absolute path, {line} and {column} the position."],["dsControl","","id","ide-url-template","type","text",3,"change","value"],[1,"ds-form",3,"formGroup"],[1,"ds-form",3,"ngSubmit","formGroup"],["heading","Identity"],["dsDefinitionList",""],["heading","Profile"],["label","First name","controlId","up-firstname"],["dsControl","","id","up-firstname","type","text","placeholder","Your first name","formControlName","firstname","autocomplete","given-name"],["label","Last name","controlId","up-lastname"],["dsControl","","id","up-lastname","type","text","placeholder","Your last name","formControlName","lastname","autocomplete","family-name"],["label","Bio","controlId","up-bio"],["dsControl","","id","up-bio","placeholder","A short description about yourself","formControlName","bio","rows","4"],["label","Language","controlId","up-preferredLanguage"],["dsControl","","id","up-preferredLanguage","formControlName","preferredLanguage"],[3,"value"],["label","Prompt cache duration (Claude models via Requesty)","controlId","up-promptCacheTtl","hintId","up-promptCacheTtl-hint","hint","1 hour sends explicit 1-hour cache markers for Claude models: each cache write costs more, but the conversation stays cached during longer pauses. 5 minutes leaves the request as is (Requesty automatic caching)."],["dsControl","","id","up-promptCacheTtl","aria-describedby","up-promptCacheTtl-hint","formControlName","promptCacheTtl"],["dsButton","","variant","primary","type","submit",3,"disabled"],["dsButton","","type","button",3,"click"],["dsButton","","variant","primary","type","button",3,"click"],[3,"toggled","heading","open"],[1,"ds-micro"],[1,"ds-list"],[1,"ds-row"],[1,"ds-strong","ds-row__grow"],[1,"ds-meta"],["dsButton","","variant","ghost","type","button"],[1,"ds-error"],["dsButton","","variant","danger","type","button",3,"click"],["dsButton","","variant","ghost","type","button",3,"click"]],template:function(t,a){if(t&1&&(Is(0,"ds-page",2),hg(1,"ds-section-header",3),Yw(2,xe,2,0,"p",4)(3,Ne,20,13)(4,Fe,2,0,"p",4),ml()),t&2){let s;QE(2),Qw(a.isLoading()?2:(s=a.currentUser())?3:4,s);}},dependencies:[Kt,fd,Mo,Do,Ut,Qt,fo,go,Rn,Ea,vn,yn,fn,gn,hn,at,un,mn,ji,Ni],encapsulation:2})};export{Ce as UserProfileComponent};
|