@whoz-oss/coday-client 0.0.0-workstream-forge.222 → 0.0.0-workstream-forge.224
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-BXexfMTK.js → chunk--gK-jMIE.js} +1 -1
- package/browser/{chunk-2u0oy3pB.js → chunk--qx2_ib6.js} +1 -1
- package/browser/{chunk-DTzPzIc0.js → chunk-53mXgxMW.js} +1 -1
- package/browser/{chunk-BgWMjUkX.js → chunk-B1jwXyDl.js} +1 -1
- package/browser/{chunk-BRztV5KS.js → chunk-BGQLkxpe.js} +1 -1
- package/browser/{chunk-CuWqEiiR.js → chunk-BH_4misH.js} +1 -1
- package/browser/{chunk-CIW6m5h-.js → chunk-BIndnrAd.js} +1 -1
- package/browser/{chunk-DueFkMuu.js → chunk-BOVza9Oc.js} +1 -1
- package/browser/{chunk-2O1S906W.js → chunk-BUYyTltk.js} +1 -1
- package/browser/{chunk-D526Porz.js → chunk-BUdJKajB.js} +1 -1
- package/browser/{chunk-Dn4mtCZo.js → chunk-Bcbf5ZJu.js} +1 -1
- package/browser/{chunk-DXD-ZIv9.js → chunk-BdH4qpp3.js} +1 -1
- package/browser/{chunk-DAGhNGM0.js → chunk-Bdp--jzn.js} +1 -1
- package/browser/{chunk-W2RB-deX.js → chunk-BipV2fi-.js} +1 -1
- package/browser/{chunk-BiaxZ40F.js → chunk-BkE7IVMM.js} +1 -1
- package/browser/{chunk-B7AKjdX_.js → chunk-BnayOCTz.js} +1 -1
- package/browser/{chunk-5W0A2Kue.js → chunk-Bo8gNzR7.js} +1 -1
- package/browser/{chunk-Cyx8tBRd.js → chunk-C7miQMml.js} +1 -1
- package/browser/chunk-C9gPrlew.js +1 -0
- package/browser/{chunk-BYALO427.js → chunk-CBwnW1o7.js} +1 -1
- package/browser/{chunk-CliJpUKT.js → chunk-CKn3h5cz.js} +1 -1
- package/browser/{chunk-BLQEGpZn.js → chunk-CVFjJCM6.js} +1 -1
- package/browser/{chunk-CWp__iQx.js → chunk-CZUlPZgR.js} +1 -1
- package/browser/{chunk-r3Ie6sEa.js → chunk-D0pOvpAQ.js} +1 -1
- package/browser/{chunk-CETI95mp.js → chunk-D1c_kye8.js} +1 -1
- package/browser/{chunk-DSLqhqjK.js → chunk-D4SsrEJb.js} +1 -1
- package/browser/{chunk-CfgdpEiu.js → chunk-D9d4vJPw.js} +1 -1
- package/browser/chunk-DHBOaxUB.js +1 -0
- package/browser/{chunk-BUcJXW_D.js → chunk-DMInQNg8.js} +1 -1
- package/browser/{chunk-C0etY4Vc.js → chunk-DQWXl_GA.js} +1 -1
- package/browser/{chunk-D3BSgsqF.js → chunk-DSyS0T-z.js} +1 -1
- package/browser/{chunk-DvqKcX7A.js → chunk-DT4HydoN.js} +11 -11
- package/browser/{chunk-BUMB5qoO.js → chunk-DcLCW8wp.js} +1 -1
- package/browser/{chunk-BBxXNycr.js → chunk-DeroUjnJ.js} +1 -1
- package/browser/{chunk-D7jTT9JH.js → chunk-DfvA57ML.js} +1 -1
- package/browser/{chunk-cS_tqqI2.js → chunk-DhAaQKGh.js} +1 -1
- package/browser/{chunk-B0IpC4Tx.js → chunk-DmG7zAfL.js} +1 -1
- package/browser/{chunk-CkGCNFHp.js → chunk-DvALfBHB.js} +1 -1
- package/browser/{chunk-Bt9WGCpK.js → chunk-DwYFXnu_.js} +1 -1
- package/browser/{chunk-DIWXU7lQ.js → chunk-LeogPf6G.js} +1 -1
- package/browser/{chunk-DYEst6mA.js → chunk-TghQaG_N.js} +1 -1
- package/browser/{chunk-DM-FW0Tn.js → chunk-WRJmHJYv.js} +1 -1
- package/browser/{chunk-B14dZoHL.js → chunk-YQ_DxIkl.js} +1 -1
- package/browser/{chunk-DADuuKw_.js → chunk-nAu5W3in.js} +1 -1
- package/browser/{chunk-B1I1hZNS.js → chunk-nOlo8Y_5.js} +1 -1
- package/browser/{chunk-Mb2Bp9Qb.js → chunk-xNbwJvC5.js} +1 -1
- package/browser/index.html +1 -1
- package/browser/{main-BGDYOJBA.js → main-4M5ZCKCC.js} +1 -1
- package/package.json +1 -1
- package/browser/chunk-AYvnGrVn.js +0 -1
- package/browser/chunk-CS0QFOWp.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {f,y,p as pt,T as Te,a as fn,U as Ut,n as nd,L as Lt,k as kn,m as mo,b as po,$ as $r,V as Vn,A as An,c as pn,h as hn,d as cn,e as dn,g as at,i as an}from'./chunk-DvqKcX7A.js';import {g,W,F,E as J,I as Ie,X as XC,U as Ui,q as Af,G as U,K as w,M as x,y as yw,D as Ds,l as lg,L as Lw,p as pl,P as ug,a as BE,j as jw,N as NC,Z as Zw,Q as mg,_ as _I,J as Jw,R as NI,k as cg,v as vl,r as df,s as ff}from'./main-BGDYOJBA.js';var ne=/^(\/|[A-Za-z]:[\\/]|\\\\)/;function re(i){return ne.test(i)}function ee(i=()=>true){return t=>{let e=(t.value??"").trim();return !i()||e===""||re(e)?null:{absolutePath:true}}}function ae(i,t){i&1&&(Ds(0,"p",2),NC(1,"Loading\u2026"),pl());}function ie(i,t){if(i&1){let e=Zw();Ds(0,"form",4),mg("ngSubmit",function(){df(e);let p=Jw();return ff(p.submit())}),Ds(1,"ds-form-field",5),lg(2,"input",6),_I(),pl(),Ds(3,"ds-form-field",7),lg(4,"textarea",8),_I(),pl(),Ds(5,"ds-form-field",9),lg(6,"input",10),_I(),pl(),Ds(7,"ds-form-field",11),lg(8,"input",12),_I(),pl(),Ds(9,"ds-form-field",13),lg(10,"input",14),_I(),pl(),Ds(11,"ds-form-field",15),lg(12,"input",16),_I(),pl(),Ds(13,"ds-form-field",17),lg(14,"input",18),_I(),pl(),Ds(15,"ds-form-field",19)(16,"input",20),mg("input",function(p){df(e);let oe=Jw();return ff(oe.onMaxToolRoundsInput(p))}),pl(),_I(),pl(),Ds(17,"ds-form-actions")(18,"button",21),NC(19),pl(),Ds(20,"button",22),mg("click",function(){df(e);let p=Jw();return ff(p.cancel())}),NC(21,"Cancel"),pl()()();}if(i&2){let e=Jw();ug("formGroup",e.form),BE(2),ug("formControl",e.nameControl),NI(),BE(2),ug("formControl",e.descriptionControl),NI(),BE(2),ug("formControl",e.externalIdControl),NI(),BE(2),ug("formControl",e.defaultAgentNameControl),NI(),BE(2),ug("formControl",e.configPathControl),NI(),BE(),ug("hint",e.sharedExchangePathHint())("error",e.canEditSharedExchangePath()&&e.sharedExchangePathControl.invalid&&(e.sharedExchangePathControl.dirty||e.sharedExchangePathControl.touched)?"Enter an absolute path (e.g. /home/me/Coday or C:\\Coday), or leave the field empty.":null),BE(),ug("readOnly",!e.canEditSharedExchangePath())("formControl",e.sharedExchangePathControl),cg("aria-invalid",e.canEditSharedExchangePath()&&e.sharedExchangePathControl.invalid),NI(),BE(),ug("hint",e.runCostThresholdHint()),BE(),ug("placeholder",e.runCostThresholdPlaceholder())("formControl",e.runCostThresholdControl),NI(),BE(),ug("error",e.maxToolRoundsUnparsable()||e.maxToolRoundsControl.invalid&&(e.maxToolRoundsControl.dirty||e.maxToolRoundsControl.touched)?"Enter a whole number of at least 1, or leave the field empty.":null),BE(),ug("formControl",e.maxToolRoundsControl),cg("aria-invalid",e.maxToolRoundsControl.invalid||e.maxToolRoundsUnparsable()),NI(),BE(2),ug("disabled",e.form.invalid||e.isSubmitting()),BE(),vl(" ",e.isEditMode()?"Save changes":"Create"," ");}}var le=1,se=2147483647,te=class i{route=g(W);router=g(F);namespaceController=g(J);destroyRef=g(Ie);usageConfiguration=g(f);userState=g(y);canEditSharedExchangePath=XC(()=>this.userState.currentUser()?.isAdmin===true);sharedExchangePathHint=XC(()=>this.canEditSharedExchangePath()?"Absolute path of a folder on the server that holds the files shared by the namespace. Leave empty for the default location.":"Only a super-admin can change this folder.");runCostThresholdPlaceholder=XC(()=>{let t=this.usageConfiguration.runCostThreshold();return this.usageConfiguration.enabled()?t===null?"No platform limit":`Platform default: ${t}`:"Optional maximum cost per run (e.g. 0.50)"});runCostThresholdHint=XC(()=>{let t="Leave empty to inherit the platform default",e=this.usageConfiguration.runCostThreshold();switch(this.usageConfiguration.state()){case "enabled":return e===null?`${t}: no limit.`:`${t} (${e}).`;case "disabled":return `${t}. Cost limits are inactive while usage tracking is disabled.`;default:return `${t}.`}});form=new pt({name:new Te("",{nonNullable:true,validators:[fn.required,fn.minLength(1)]}),description:new Te("",{nonNullable:true}),configPath:new Te("",{nonNullable:true}),sharedExchangePath:new Te("",{nonNullable:true,validators:[ee(()=>this.canEditSharedExchangePath())]}),externalId:new Te("",{nonNullable:true}),defaultAgentName:new Te("",{nonNullable:true}),runCostThreshold:new Te(null),maxToolRounds:new Te(null,{validators:[fn.min(le),fn.max(se),fn.pattern(/^\d+$/)]})});get nameControl(){return this.form.controls.name}get descriptionControl(){return this.form.controls.description}get configPathControl(){return this.form.controls.configPath}get sharedExchangePathControl(){return this.form.controls.sharedExchangePath}get externalIdControl(){return this.form.controls.externalId}get defaultAgentNameControl(){return this.form.controls.defaultAgentName}get runCostThresholdControl(){return this.form.controls.runCostThreshold}get maxToolRoundsControl(){return this.form.controls.maxToolRounds}maxToolRoundsUnparsable=Ui(false);onMaxToolRoundsInput(t){this.maxToolRoundsUnparsable.set(t.target.validity.badInput);}isEditMode=Ui(false);isSubmitting=Ui(false);isLoading=Ui(false);existingNamespace=null;constructor(){Af(()=>{this.canEditSharedExchangePath(),this.sharedExchangePathControl.updateValueAndValidity();});}ngOnInit(){this.userState.currentUser()||this.userState.loadMe().pipe(U(this.destroyRef)).subscribe({error:()=>{}});let t=this.route.snapshot.paramMap.get("namespaceId")??this.route.parent?.snapshot.paramMap.get("namespaceId");t&&(this.isEditMode.set(true),this.loadNamespace(t));}loadNamespace(t){this.isLoading.set(true),this.namespaceController.getByIdNamespace(t).pipe(U(this.destroyRef)).subscribe({next:e=>{this.existingNamespace=e,this.nameControl.setValue(e.name),this.descriptionControl.setValue(e.description??""),this.configPathControl.setValue(e.configPath??""),this.sharedExchangePathControl.setValue(e.sharedExchangePath??""),this.externalIdControl.setValue(e.externalId??""),this.defaultAgentNameControl.setValue(e.defaultAgentName??""),this.runCostThresholdControl.setValue(e.runCostThreshold??null),this.maxToolRoundsControl.setValue(e.maxToolRounds??null),this.isLoading.set(false);},error:()=>{this.isLoading.set(false),this.navigateBack();}});}submit(){if(this.form.invalid||this.maxToolRoundsUnparsable()||this.isSubmitting())return;this.isSubmitting.set(true);let t=w(x(w({},this.existingNamespace),{name:this.nameControl.value.trim(),description:this.descriptionControl.value.trim()||void 0,configPath:this.configPathControl.value.trim()||void 0,externalId:this.externalIdControl.value.trim()||void 0,defaultAgentName:this.defaultAgentNameControl.value.trim()||void 0,runCostThreshold:this.runCostThresholdControl.value??void 0,maxToolRounds:this.maxToolRoundsControl.value??void 0}),this.canEditSharedExchangePath()?{sharedExchangePath:this.sharedExchangePathPayload()}:{});(this.isEditMode()?this.namespaceController.updateNamespace(this.existingNamespace.id??"",t):this.namespaceController.createNamespace(t)).pipe(U(this.destroyRef)).subscribe({next:()=>this.navigateBack(),error:()=>this.isSubmitting.set(false)});}sharedExchangePathPayload(){return this.sharedExchangePathControl.value.trim()||(this.existingNamespace?.sharedExchangePath?"":void 0)}cancel(){this.navigateBack();}navigateBack(){this.router.navigate(["/agentos/namespaces"]);}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=yw({type:i,selectors:[["agentos-namespace-form"]],decls:4,vars:3,consts:[[3,"framed"],[3,"title"],[1,"ds-hint"],[1,"ds-form",3,"formGroup"],[1,"ds-form",3,"ngSubmit","formGroup"],["label","Name","controlId","ns-name","required",""],["dsControl","","id","ns-name","type","text","placeholder","Namespace name","autocomplete","off",3,"formControl"],["label","Description","controlId","ns-description"],["dsControl","","id","ns-description","rows","4","placeholder","Optional description",3,"formControl"],["label","External ID","controlId","ns-external-id"],["dsControl","","id","ns-external-id","type","text","placeholder","Optional federation ID from an external system","autocomplete","off",3,"formControl"],["label","Default agent","controlId","ns-default-agent"],["dsControl","","id","ns-default-agent","type","text","placeholder","Logical name of the default agent (e.g. coday)","autocomplete","off",3,"formControl"],["label","Config path","controlId","ns-config-path"],["dsControl","","id","ns-config-path","type","text","placeholder","Optional path to base configuration directory","autocomplete","off",3,"formControl"],["label","Shared files folder","controlId","ns-shared-exchange-path","hintId","ns-shared-exchange-path-hint","errorId","ns-shared-exchange-path-error",3,"hint","error"],["dsControl","","id","ns-shared-exchange-path","type","text","placeholder","Default location managed by AgentOS","aria-describedby","ns-shared-exchange-path-hint","autocomplete","off",3,"readOnly","formControl"],["label","Run cost threshold","controlId","ns-run-cost-threshold","hintId","ns-run-cost-threshold-hint",3,"hint"],["dsControl","","id","ns-run-cost-threshold","type","number","min","0","step","0.01","aria-describedby","ns-run-cost-threshold-hint",3,"placeholder","formControl"],["label","Maximum tool rounds","controlId","ns-max-tool-rounds","hintId","ns-max-tool-rounds-hint","errorId","ns-max-tool-rounds-error","hint","Most tool rounds one agent run may take. Leave empty to inherit the server default. A change applies from the next agent run.",3,"error"],["dsControl","","id","ns-max-tool-rounds","type","number","min","1","step","1","placeholder","Server default","aria-describedby","ns-max-tool-rounds-hint",3,"input","formControl"],["dsButton","","variant","primary","type","submit",3,"disabled"],["dsButton","","type","button",3,"click"]],template:function(e,u){e&1&&(Ds(0,"ds-page",0),lg(1,"ds-section-header",1),Lw(2,ae,2,0,"p",2)(3,ie,22,19,"form",3),pl()),e&2&&(ug("framed",!u.isEditMode()),BE(),ug("title",u.isEditMode()?"Edit namespace":"New namespace"),BE(),jw(u.isLoading()?2:3));},dependencies:[Ut,nd,Lt,kn,mo,po,$r,Vn,An,pn,hn,cn,dn,at,an],encapsulation:2})};export{te as NamespaceFormComponent};
|