@whoz-oss/coday-client 0.0.0-workstream-forge.224 → 0.0.0-workstream-forge.226
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-D4SsrEJb.js → chunk--YGzHIin.js} +1 -1
- package/browser/{chunk-BGQLkxpe.js → chunk-3Vx1rD5R.js} +1 -1
- package/browser/{chunk-BIndnrAd.js → chunk-5gpSqnQn.js} +1 -1
- package/browser/{chunk-CZUlPZgR.js → chunk-AcyUOfIh.js} +1 -1
- package/browser/{chunk-CVFjJCM6.js → chunk-B1o3dWmh.js} +1 -1
- package/browser/{chunk-53mXgxMW.js → chunk-B8uIzU0G.js} +1 -1
- package/browser/{chunk-D1c_kye8.js → chunk-BBzPjvsw.js} +1 -1
- package/browser/{chunk-DcLCW8wp.js → chunk-BId2U_hq.js} +1 -1
- package/browser/{chunk-Bdp--jzn.js → chunk-BUdycjpO.js} +1 -1
- package/browser/{chunk-TghQaG_N.js → chunk-BV8j_rCq.js} +1 -1
- package/browser/{chunk-BOVza9Oc.js → chunk-BtKM8wv2.js} +1 -1
- package/browser/{chunk-Bcbf5ZJu.js → chunk-BwOat0Fr.js} +1 -1
- package/browser/chunk-C01VfR54.js +1 -0
- package/browser/{chunk-nOlo8Y_5.js → chunk-C5-gpBRH.js} +1 -1
- package/browser/{chunk-DhAaQKGh.js → chunk-CEWw7cGY.js} +1 -1
- package/browser/{chunk-BdH4qpp3.js → chunk-CLPPqS5g.js} +1 -1
- package/browser/{chunk-CKn3h5cz.js → chunk-CLRKhkc7.js} +1 -1
- package/browser/{chunk-WRJmHJYv.js → chunk-CUgq98Mf.js} +1 -1
- package/browser/{chunk-nAu5W3in.js → chunk-CX8BE84p.js} +1 -1
- package/browser/{chunk--gK-jMIE.js → chunk-C_RmLClM.js} +1 -1
- package/browser/{chunk-BUYyTltk.js → chunk-CfNQLZ6W.js} +1 -1
- package/browser/{chunk-DfvA57ML.js → chunk-CfRra85R.js} +1 -1
- package/browser/{chunk-D0pOvpAQ.js → chunk-CgVnGUs1.js} +1 -1
- package/browser/{chunk-C7miQMml.js → chunk-CgzbCnUY.js} +1 -1
- package/browser/{chunk-B1jwXyDl.js → chunk-CkMJRn3f.js} +1 -1
- package/browser/{chunk--qx2_ib6.js → chunk-CkZ9hE7I.js} +1 -1
- package/browser/{chunk-BH_4misH.js → chunk-CxdwffED.js} +1 -1
- package/browser/chunk-CzLmUpd_.js +1 -0
- package/browser/{chunk-DT4HydoN.js → chunk-D2p21lhx.js} +13 -13
- package/browser/{chunk-DSyS0T-z.js → chunk-D6nFpZPW.js} +1 -1
- package/browser/{chunk-BUdJKajB.js → chunk-D6srpqAy.js} +1 -1
- package/browser/{chunk-BkE7IVMM.js → chunk-DDc6Gz4c.js} +1 -1
- package/browser/{chunk-YQ_DxIkl.js → chunk-DGHuRl1e.js} +1 -1
- package/browser/{chunk-LeogPf6G.js → chunk-Db6vnGaO.js} +1 -1
- package/browser/{chunk-DeroUjnJ.js → chunk-DuKMv3oJ.js} +1 -1
- package/browser/{chunk-DMInQNg8.js → chunk-LvYb61ds.js} +1 -1
- package/browser/{chunk-D9d4vJPw.js → chunk-SFtJMlnY.js} +1 -1
- package/browser/{chunk-DmG7zAfL.js → chunk-UPlPDOdj.js} +1 -1
- package/browser/{chunk-DwYFXnu_.js → chunk-VzQcXBq_.js} +1 -1
- package/browser/{chunk-CBwnW1o7.js → chunk-Xf5AyLpk.js} +1 -1
- package/browser/{chunk-BipV2fi-.js → chunk-bBpGsibr.js} +1 -1
- package/browser/{chunk-DQWXl_GA.js → chunk-mKXz_7dg.js} +1 -1
- package/browser/{chunk-DvALfBHB.js → chunk-oQqULj8o.js} +1 -1
- package/browser/{chunk-xNbwJvC5.js → chunk-oRjOra1Z.js} +1 -1
- package/browser/{chunk-Bo8gNzR7.js → chunk-sRyyh7vh.js} +1 -1
- package/browser/{chunk-BnayOCTz.js → chunk-xA0P3DA0.js} +1 -1
- package/browser/index.html +1 -1
- package/browser/{main-4M5ZCKCC.js → main-47BLQXE5.js} +3 -3
- package/package.json +1 -1
- package/browser/chunk-C9gPrlew.js +0 -1
- package/browser/chunk-DHBOaxUB.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {f,y,p as pt,T as Te,a as fn,U as Ut,n as nd,b as bo,x as xo,L as Lt,k as kn,G as Gt,m as mo,c as po,$ as $r,V as Vn,A as An,d as pn,h as hn,e as cn,g as dn,i as at,j as an}from'./chunk-DT4HydoN.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-4M5ZCKCC.js';var ie=/^(\/|[A-Za-z]:[\\/]|\\\\)/;function le(n){return ie.test(n)}function ne(n=()=>true){return t=>{let e=(t.value??"").trim();return !n()||e===""||le(e)?null:{absolutePath:true}}}function se(n,t){n&1&&(Ds(0,"p",2),NC(1,"Loading\u2026"),pl());}function de(n,t){if(n&1){let e=Zw();Ds(0,"form",4),mg("ngSubmit",function(){df(e);let f=Jw();return ff(f.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(f){df(e);let re=Jw();return ff(re.onMaxToolRoundsInput(f))}),pl(),_I(),pl(),Ds(17,"ds-form-field",21)(18,"select",22)(19,"option",23),NC(20,"Inherit platform default"),pl(),Ds(21,"option",24),NC(22,"Yes"),pl(),Ds(23,"option",25),NC(24,"No"),pl()(),_I(),pl(),Ds(25,"ds-form-actions")(26,"button",26),NC(27),pl(),Ds(28,"button",27),mg("click",function(){df(e);let f=Jw();return ff(f.cancel())}),NC(29,"Cancel"),pl()()();}if(n&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("formControl",e.adminCanListAllCasesControl),NI(),BE(8),ug("disabled",e.form.invalid||e.isSubmitting()),BE(),vl(" ",e.isEditMode()?"Save changes":"Create"," ");}}var me=1,ce=2147483647,he=n=>n===true?"yes":n===false?"no":"inherit",ue=n=>n==="yes"?true:n==="no"?false:void 0,ae=class n{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:[ne(()=>this.canEditSharedExchangePath())]}),externalId:new Te("",{nonNullable:true}),defaultAgentName:new Te("",{nonNullable:true}),runCostThreshold:new Te(null),maxToolRounds:new Te(null,{validators:[fn.min(me),fn.max(ce),fn.pattern(/^\d+$/)]}),adminCanListAllCases:new Te("inherit",{nonNullable:true})});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}get adminCanListAllCasesControl(){return this.form.controls.adminCanListAllCases}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.adminCanListAllCasesControl.setValue(he(e.adminCanListAllCases)),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,adminCanListAllCases:ue(this.adminCanListAllCasesControl.value)}),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||n)};static \u0275cmp=yw({type:n,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"],["label","Admins can list all cases","controlId","ns-admin-list-all-cases","hintId","ns-admin-list-all-cases-hint","hint","Gives the administrators of this namespace a Mine / All cases switch in the case drawer. It only changes what the drawer lists, not who may open a case. Inherit follows the platform default (off unless the server sets AGENTOS_CASE_ADMIN_LIST_ALL_CASES_DEFAULT)."],["dsControl","","id","ns-admin-list-all-cases","aria-describedby","ns-admin-list-all-cases-hint",3,"formControl"],["value","inherit"],["value","yes"],["value","no"],["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,se,2,0,"p",2)(3,de,30,20,"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,bo,xo,Lt,kn,Gt,mo,po,$r,Vn,An,pn,hn,cn,dn,at,an],encapsulation:2})};export{ae as NamespaceFormComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a1 as fa,a2 as da,aa as Tr,aD as $y}from'./main-4M5ZCKCC.js';function i(t,o,p){return t.pipe(fa(()=>o().pipe(da(()=>Tr(p)))),$y({bufferSize:1,refCount:true}))}export{i};
|