@whoz-oss/coday-client 0.0.0-workstream-forge.293 → 0.0.0-workstream-forge.294

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.
Files changed (52) hide show
  1. package/browser/{chunk-C8dzSVll.js → chunk-8XyNS78o.js} +1 -1
  2. package/browser/{chunk-D_MSb5U1.js → chunk-9l3CfInB.js} +1 -1
  3. package/browser/{chunk-BeDMQYUj.js → chunk-9wvyLHuk.js} +1 -1
  4. package/browser/{chunk-BGfYpG80.js → chunk-B42ywiOW.js} +1 -1
  5. package/browser/{chunk-Bq2qEzzh.js → chunk-B5JsB4XI.js} +1 -1
  6. package/browser/{chunk-pIZJ1UXc.js → chunk-BHTuNMop.js} +1 -1
  7. package/browser/{chunk-JlPUirZe.js → chunk-BIkPktdf.js} +1 -1
  8. package/browser/{chunk-E4xSMSTK.js → chunk-BJGcsBm7.js} +1 -1
  9. package/browser/{chunk-BGUWxVzX.js → chunk-BM0VZISu.js} +1 -1
  10. package/browser/{chunk-B9EAh65r.js → chunk-BMhgEzMc.js} +1 -1
  11. package/browser/chunk-BNT94xkt.js +1 -0
  12. package/browser/{chunk-DE5dbQ6O.js → chunk-BP7l1804.js} +1 -1
  13. package/browser/chunk-BY4pYYCq.js +855 -0
  14. package/browser/{chunk-Coa8wPTA.js → chunk-BZmi7l-J.js} +1 -1
  15. package/browser/{chunk-CIyeXOAN.js → chunk-BaXKtzjd.js} +1 -1
  16. package/browser/{chunk-B_L10LB3.js → chunk-BibOnln8.js} +1 -1
  17. package/browser/{chunk-BhqTVNWr.js → chunk-BtTk4lBd.js} +1 -1
  18. package/browser/{chunk-D4mCdiQl.js → chunk-Bu0mFMKp.js} +1 -1
  19. package/browser/{chunk-BGoe3L9a.js → chunk-Bvdz5sFR.js} +1 -1
  20. package/browser/{chunk-DLmW-iJx.js → chunk-BweVOo8c.js} +1 -1
  21. package/browser/{chunk-G3yuV0iA.js → chunk-By5ToOHd.js} +1 -1
  22. package/browser/{chunk-B9OoRE-e.js → chunk-CBQlusyZ.js} +1 -1
  23. package/browser/{chunk-BLXGjUSf.js → chunk-CJ4vPhs4.js} +1 -1
  24. package/browser/{chunk-cMs14lb0.js → chunk-CZLbKUEE.js} +1 -1
  25. package/browser/{chunk-CLmLRr0q.js → chunk-CdBOn66B.js} +1 -1
  26. package/browser/{chunk-BiNNsu0D.js → chunk-ClvOUHzO.js} +1 -1
  27. package/browser/{chunk-DV4g9JR7.js → chunk-Cqm5BJv_.js} +1 -1
  28. package/browser/{chunk-mmHImWIw.js → chunk-DIe7xrW1.js} +1 -1
  29. package/browser/{chunk-DeOnEkmJ.js → chunk-DSwZ2lJp.js} +1 -1
  30. package/browser/{chunk-CGcZ4leA.js → chunk-DUQtHd5Q.js} +1 -1
  31. package/browser/chunk-DVwHMZjr.js +1 -0
  32. package/browser/{chunk-CwDR4eyG.js → chunk-DfkhqlKG.js} +1 -1
  33. package/browser/{chunk-JqPHtq3G.js → chunk-Dh9AMc9f.js} +1 -1
  34. package/browser/{chunk-DQB2Rcks.js → chunk-DjrS7piD.js} +1 -1
  35. package/browser/{chunk-CVa8Ojjw.js → chunk-Djrqlsja.js} +1 -1
  36. package/browser/{chunk-CH9yQi2P.js → chunk-DlUTCVia.js} +1 -1
  37. package/browser/{chunk-t1c_9t3J.js → chunk-Dp8Qtax9.js} +1 -1
  38. package/browser/{chunk-DgcyYZa3.js → chunk-DvDLDjpo.js} +1 -1
  39. package/browser/{chunk-CzjoP1xS.js → chunk-Dwi6o0t0.js} +1 -1
  40. package/browser/{chunk-DfDXAuak.js → chunk-EV6Gb91d.js} +1 -1
  41. package/browser/{chunk-C9IYsvTQ.js → chunk-GlRgl5dB.js} +1 -1
  42. package/browser/{chunk-DPpeVgWK.js → chunk-QA5UvRgp.js} +1 -1
  43. package/browser/{chunk-Bpbg8KtV.js → chunk-h1DwHzOw.js} +1 -1
  44. package/browser/{chunk-HQfPhZH_.js → chunk-hSQhyXAK.js} +1 -1
  45. package/browser/{chunk-EzYfTxcU.js → chunk-nfwj1uBg.js} +1 -1
  46. package/browser/{chunk-bJVnH8Ji.js → chunk-zOYWk0nL.js} +1 -1
  47. package/browser/index.html +1 -1
  48. package/browser/{main-I6AKL2SO.js → main-WIKPRSWZ.js} +1 -1
  49. package/package.json +1 -1
  50. package/browser/chunk-CQgzuGuE.js +0 -1
  51. package/browser/chunk-DiMH_tLM.js +0 -855
  52. package/browser/chunk-DqL0RhqL.js +0 -1
@@ -1 +0,0 @@
1
- import {O as O$1}from'./chunk-DLmW-iJx.js';import {O}from'./chunk-DPpeVgWK.js';import {I}from'./chunk-D_MSb5U1.js';import {g,H as we$1,z as zi,k as yT,a9 as F,at as _y,ad as ne,M as U,x as xw,I as Is,a as hg,Q as Qw,m as ml,K as KE,b as Kw,U as UC,s as aC,S as Eg,r as fC,R as pg,T as VI,l as eC,L as Lg,X as UI,t as tC,q as Il,ae as Zw,u as mf,w as yf,aL as EC,P as x,O as w}from'./main-I6AKL2SO.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-DiMH_tLM.js';import'./chunk-DqL0RhqL.js';var ye=(o,e)=>e.value,be=(o,e)=>e.title;function xe(o,e){o&1&&(Is(0,"p",4),UC(1,"Loading\u2026"),ml());}function Se(o,e){if(o&1&&(Is(0,"option",34),UC(1),ml()),o&2){let t=e.$implicit;pg("value",t.value),KE(),Lg(t.label);}}function Ee(o,e){if(o&1&&(Is(0,"option",34),UC(1),ml()),o&2){let t=e.$implicit;pg("value",t.value),KE(),Lg(t.label);}}function Te(o,e){if(o&1){let t=aC();Is(0,"form",22),Eg("ngSubmit",function(){mf(t);let s=fC(2);return yf(s.save())}),Is(1,"ds-group",23)(2,"dl",24)(3,"dt"),UC(4,"Email"),ml(),Is(5,"dd"),UC(6),ml(),Is(7,"dt"),UC(8,"External ID"),ml(),Is(9,"dd"),UC(10),ml()()(),Is(11,"ds-group",25)(12,"ds-form-field",26),hg(13,"input",27),VI(),ml(),Is(14,"ds-form-field",28),hg(15,"input",29),VI(),ml(),Is(16,"ds-form-field",30),hg(17,"textarea",31),VI(),ml(),Is(18,"ds-form-field",32)(19,"select",33),eC(20,Se,2,2,"option",34,ye),ml(),VI(),ml(),Is(22,"ds-form-field",35)(23,"select",36),eC(24,Ee,2,2,"option",34,ye),ml(),VI(),ml()(),Is(26,"ds-form-actions")(27,"button",37),UC(28),ml(),Is(29,"button",38),Eg("click",function(){mf(t);let s=fC(2);return yf(s.cancelEditing())}),UC(30,"Cancel"),ml()()();}if(o&2){let t=fC(),a=fC();pg("formGroup",a.form),KE(6),Lg(t.email),KE(4),Lg(t.externalId),KE(3),UI(),KE(2),UI(),KE(2),UI(),KE(2),UI(),KE(),tC(a.languageOptions),KE(3),UI(),KE(),tC(a.promptCacheTtlOptions),KE(3),pg("disabled",a.isSaving()),KE(),Il(" ",a.isSaving()?"Saving\u2026":"Save changes"," ");}}function Pe(o,e){o&1&&(Is(0,"p",4),UC(1," No global configuration yet. Create one from the Integrations / AI Providers / Auth Settings pages of your namespaces. "),ml());}function De(o,e){if(o&1){let t=aC();Is(0,"span",47),UC(1,"Delete?"),ml(),Is(2,"button",48),Eg("click",function(){mf(t);let s=fC().$implicit,m=fC(5);return yf(m.confirmDelete(s))}),UC(3,"Confirm"),ml(),Is(4,"button",49),Eg("click",function(){mf(t);let s=fC(6);return yf(s.cancelDelete())}),UC(5,"Cancel"),ml();}}function Ue(o,e){if(o&1){let t=aC();Is(0,"button",49),Eg("click",function(){mf(t);let s=fC().$implicit,m=fC(5);return yf(m.armDelete(s))}),UC(1,"Delete"),ml();}}function Ie(o,e){if(o&1&&(Is(0,"li",43)(1,"span",44),UC(2),ml(),Is(3,"span",45),UC(4),ml(),Qw(5,De,6,0)(6,Ue,2,0,"button",46),ml()),o&2){let t=e.$implicit,a=fC(5);KE(2),Lg(t.name),KE(2),Lg(t.subtitle),KE(),Kw(a.isPendingDelete(t)?5:6);}}function we(o,e){if(o&1&&(Is(0,"span",41),UC(1),ml(),Is(2,"ul",42),eC(3,Ie,7,3,"li",43,Zw().trackEntry,true),ml()),o&2){let t=e.$implicit;KE(),Lg(t.title),KE(2),tC(t.entries);}}function Ve(o,e){if(o&1&&eC(0,we,5,1,null,null,be),o&2){let t=fC(3);tC(t.recapSections());}}function Ne(o,e){if(o&1){let t=aC();Is(0,"ds-group",23)(1,"dl",24)(2,"dt"),UC(3,"Email"),ml(),Is(4,"dd"),UC(5),ml(),Is(6,"dt"),UC(7,"External ID"),ml(),Is(8,"dd"),UC(9),ml()()(),Is(10,"ds-group",25)(11,"dl",24)(12,"dt"),UC(13,"First name"),ml(),Is(14,"dd"),UC(15),ml(),Is(16,"dt"),UC(17,"Last name"),ml(),Is(18,"dd"),UC(19),ml(),Is(20,"dt"),UC(21,"Bio"),ml(),Is(22,"dd"),UC(23),ml(),Is(24,"dt"),UC(25,"Language"),ml(),Is(26,"dd"),UC(27),ml(),Is(28,"dt"),UC(29,"Prompt cache"),ml(),Is(30,"dd"),UC(31),ml()()(),Is(32,"ds-form-actions")(33,"button",39),Eg("click",function(){mf(t);let s=fC(2);return yf(s.startEditing())}),UC(34,"Edit profile"),ml()(),Is(35,"ds-disclosure",40),Eg("toggled",function(){mf(t);let s=fC(2);return yf(s.toggleOverrides())}),Qw(36,Pe,2,0,"p",4)(37,Ve,2,0),ml();}if(o&2){let t=fC(),a=fC();KE(5),Lg(t.email),KE(4),Lg(t.externalId),KE(6),Lg(t.firstname||"\u2014"),KE(4),Lg(t.lastname||"\u2014"),KE(4),Lg(t.bio||"\u2014"),KE(4),Lg(t.preferredLanguage||"\u2014"),KE(4),Lg(a.promptCacheTtlLabel()),KE(4),pg("heading","My global user configurations ("+a.recap().total+")")("open",a.isOverridesExpanded()),KE(),Kw(a.recap().total===0?36:37);}}function Me(o,e){if(o&1){let t=aC();Is(0,"ds-group",5)(1,"ds-form-field",6)(2,"ds-segmented",7),Eg("valueChange",function(s){mf(t);let m=fC();return yf(m.setThemeVariant(s))}),ml()(),Is(3,"ds-form-field",8)(4,"ds-segmented",9),Eg("valueChange",function(s){mf(t);let m=fC();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=fC();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=fC();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=EC(14),m=fC();return yf(m.setIdeProjectRoot(s.value))}),ml()(),Is(15,"ds-form-field",19)(16,"input",20,1),Eg("change",function(){mf(t);let s=EC(17),m=fC();return yf(m.setIdeUrlTemplate(s.value))}),ml()()(),Qw(18,Te,31,5,"form",21)(19,Ne,38,10);}if(o&2){let t=fC();KE(),pg("hint",t.activeVariantDescription()),KE(),pg("options",t.themeVariantOptions)("value",t.themeVariant()),KE(),pg("hint",t.modeOverridden()?t.activeVariantLabel()+" does not support this mode; your choice is kept for other skins.":null),KE(),pg("options",t.modeOptions())("value",t.shownMode()),KE(3),pg("options",t.enterKeyOptions)("value",t.enterKeyBehavior()),KE(3),pg("options",t.showTechnicalOptions)("value",t.showTechnical()),KE(3),pg("value",t.ideProjectRoot()),KE(3),pg("value",t.ideUrlTemplate()),KE(2),Kw(t.isEditing()?18:19);}}function Fe(o,e){o&1&&(Is(0,"p",4),UC(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=yT(()=>this.themePort.theme().mode);themeOptions=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}];themeVariant=yT(()=>this.themePort.theme().variant);themeVariantOptions=a.map(({id:e,label:t,description:a})=>({value:e,label:t,description:a}));modeOverridden=yT(()=>!V(this.themeVariant(),this.themeMode()));activeVariantLabel=yT(()=>m(this.themeVariant()).label);activeVariantDescription=yT(()=>m(this.themeVariant()).description);modeOptions=yT(()=>this.themeOptions.map(e=>x(w({},e),{disabled:this.isModeDisabled(e.value)})));shownMode=yT(()=>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:"STANDARD",label:"Standard"},{value:"EXTENDED",label:"Extended"}];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("STANDARD",{nonNullable:true})});promptCacheTtlLabel=yT(()=>{let e=this.currentUser()?.promptCacheTtl??"STANDARD";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})),M=a.map(g=>({category:"authSetting",id:g.id??"",name:g.name,subtitle:g.authType}));return {integrations:s,aiProviders:m,authSettings:M,total:s.length+m.length+M.length}})),{initialValue:{integrations:[],aiProviders:[],authSettings:[],total:0}});recapSections=yT(()=>{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??"STANDARD"});}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=xw({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","controlId","up-promptCacheTtl","hintId","up-promptCacheTtl-hint","hint","Extended keeps the conversation cached through longer pauses (Claude models via Requesty: 1 hour instead of 5 minutes; each cache write costs more). Other models keep their provider's default."],["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),Qw(2,xe,2,0,"p",4)(3,Me,20,13)(4,Fe,2,0,"p",4),ml()),t&2){let s;KE(2),Kw(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};