@whoz-oss/coday-client 0.0.0-workstream-forge.147 → 0.0.0-workstream-forge.149

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 (50) hide show
  1. package/browser/{chunk-Bg3Dd1xZ.js → chunk-B2DG1wyc.js} +1 -1
  2. package/browser/{chunk-DKh5yOVa.js → chunk-BR73EwqQ.js} +1 -1
  3. package/browser/{chunk-CDwgL-Hg.js → chunk-BSd9r5_N.js} +1 -1
  4. package/browser/{chunk-CgHdhxbB.js → chunk-BTpPupFp.js} +1 -1
  5. package/browser/{chunk-fd1iFDd2.js → chunk-BWAj0rSN.js} +1 -1
  6. package/browser/{chunk-C-tDaEcF.js → chunk-BY_MA-MK.js} +1 -1
  7. package/browser/{chunk-KFlFY4M-.js → chunk-BcYv2wJ9.js} +1 -1
  8. package/browser/{chunk-IedWKNs9.js → chunk-BdnHH8q-.js} +17 -17
  9. package/browser/{chunk-Qn-am4t0.js → chunk-BxxJEBXU.js} +1 -1
  10. package/browser/{chunk-DjP1CBpd.js → chunk-BzOgvaxD.js} +1 -1
  11. package/browser/{chunk-R3WSpR3A.js → chunk-C4i_zGQp.js} +1 -1
  12. package/browser/{chunk-Cl9QPnKf.js → chunk-C9WjWw7H.js} +1 -1
  13. package/browser/{chunk-DJpa3mrs.js → chunk-CR00BQez.js} +1 -1
  14. package/browser/{chunk-Wsr-yWs0.js → chunk-CTuJ4_Bp.js} +1 -1
  15. package/browser/{chunk-Bl4KO3rW.js → chunk-CjIsEiKL.js} +1 -1
  16. package/browser/{chunk-DINJkva-.js → chunk-Cpa4GG3R.js} +1 -1
  17. package/browser/{chunk-C3fhxpRe.js → chunk-CwNa91EL.js} +1 -1
  18. package/browser/{chunk-Vk5k4fDI.js → chunk-Cx7xIq5f.js} +1 -1
  19. package/browser/{chunk-CYtIAXbN.js → chunk-CxJkkUeP.js} +1 -1
  20. package/browser/chunk-CyAgKEyG.js +2 -0
  21. package/browser/{chunk-BX0hlno3.js → chunk-D38WrTi8.js} +1 -1
  22. package/browser/{chunk-BaZaIb4Z.js → chunk-D4zxyoC1.js} +1 -1
  23. package/browser/{chunk-CTOSnkKV.js → chunk-D5xDtFv2.js} +1 -1
  24. package/browser/{chunk-Bn2w_P98.js → chunk-D82t3TyC.js} +1 -1
  25. package/browser/{chunk-BWRVARO3.js → chunk-DAEuADwB.js} +1 -1
  26. package/browser/{chunk-BSnPoXoJ.js → chunk-DGMjo00Z.js} +1 -1
  27. package/browser/{chunk-CYWcBmdb.js → chunk-DNMYSlFd.js} +1 -1
  28. package/browser/{chunk-x0uELaJK.js → chunk-DPc9xAYs.js} +1 -1
  29. package/browser/{chunk-FAGYnPUh.js → chunk-Df3oB5zl.js} +1 -1
  30. package/browser/{chunk-DkTnFTiK.js → chunk-DhFD8pei.js} +1 -1
  31. package/browser/{chunk-LD3lFPMG.js → chunk-DqBE6CNm.js} +1 -1
  32. package/browser/{chunk-ommOgDX8.js → chunk-Dw0BJEuQ.js} +1 -1
  33. package/browser/{chunk-CiaMnEa7.js → chunk-DxQHsSbG.js} +1 -1
  34. package/browser/{chunk-DCm2h443.js → chunk-JmQJ3CVi.js} +1 -1
  35. package/browser/{chunk-BrjEFLGx.js → chunk-PH1xCUi9.js} +1 -1
  36. package/browser/{chunk-DtNl3Rj2.js → chunk-Pezwe8-Y.js} +1 -1
  37. package/browser/{chunk-DKaLlDQi.js → chunk-SwepUtI6.js} +1 -1
  38. package/browser/{chunk-C5DhQBjK.js → chunk-ZCWL_klb.js} +1 -1
  39. package/browser/{chunk-OP96ru3Q.js → chunk-_m0zdf13.js} +1 -1
  40. package/browser/{chunk-XJIylUMO.js → chunk-aDye58OO.js} +1 -1
  41. package/browser/{chunk-BM_L_QbZ.js → chunk-pCaEb0Sb.js} +1 -1
  42. package/browser/{chunk-J_m540mg.js → chunk-qaD2n8u_.js} +1 -1
  43. package/browser/chunk-rykYRXds.js +1 -0
  44. package/browser/{chunk-CWW2jfsJ.js → chunk-ujoCYdYF.js} +1 -1
  45. package/browser/{chunk-CWOEh5VN.js → chunk-wofrz1qV.js} +1 -1
  46. package/browser/index.html +1 -1
  47. package/browser/{main-HYOTHQER.js → main-C4DDTIV5.js} +1 -1
  48. package/package.json +1 -1
  49. package/browser/chunk-CBRg4AXS.js +0 -1
  50. package/browser/chunk-Co43ilpY.js +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whoz-oss/coday-client",
3
- "version": "0.0.0-workstream-forge.147",
3
+ "version": "0.0.0-workstream-forge.149",
4
4
  "repository": "https://github.com/whoz-oss/coday",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -1 +0,0 @@
1
- import {a8 as Ae,aE as gw,af as Wn,a3 as _}from'./main-HYOTHQER.js';function i(t,o,p){return t.pipe(Ae(()=>o().pipe(Wn(()=>_(p)))),gw({bufferSize:1,refCount:true}))}export{i};
@@ -1,2 +0,0 @@
1
- import {R}from'./chunk-DJpa3mrs.js';import {p,$ as $t,aW as _,F as Me,d as ie$1,M as Mi,aX as Ie,ae as pw,U,af as Wn,D as Df,a3 as _$1,z as za,r as r_,b as bf,h as hT,y as yb,a as pT,k as bT,K as dc,L as sS,e as yT,N as NT,O as tv,Q as cS,v as vT,A as Af,I as Iv,q as gv,ar as Cv,o as ig,s as sg}from'./main-HYOTHQER.js';import {A as Yn,Z as Zn,X as Xn,Y as Ye,F as Ft,c as bt,L as Ln,E as ln}from'./chunk-IedWKNs9.js';import'./chunk-CBRg4AXS.js';var q=(a,t)=>t.id;function $(a,t){a&1&&(za(0,"p",3),r_(1,"Loading\u2026"),bf());}function J(a,t){if(a&1&&(za(0,"p",6),r_(1),bf()),a&2){let e=NT(2);yb(),Iv(e.errorMessage());}}function Q(a,t){if(a&1){let e=bT();za(0,"button",26),dc("click",function(){ig(e);let s=NT(2);return sg(s.retryLoad())}),r_(1,"Retry loading"),bf();}}function X(a,t){if(a&1&&(za(0,"span",28),r_(1),bf()),a&2){let e=NT(3);yb(),Iv(e.association()?.checkoutFailureReason);}}function Z(a,t){if(a&1&&(za(0,"p",27),r_(1),hT(2,X,2,1,"span",28),bf()),a&2){let e=NT(2);gv("namespace-git__status--failed",e.checkoutStatus()===e.CheckoutStatus.FAILED)("namespace-git__status--ready",e.checkoutStatus()===e.CheckoutStatus.READY),yb(),Af(" Repository: ",e.checkoutStatus()," "),yb(),pT(e.association()?.checkoutFailureReason?2:-1);}}function ee(a,t){if(a&1&&(za(0,"option",18),r_(1),bf()),a&2){let e=t.$implicit,d=NT(2);tv("value",e.id),yb(),Cv("",e.name," (",d.authTypeLabel(e.authType),")");}}function te(a,t){a&1&&(za(0,"span",19),r_(1," No usable auth setting in this namespace. Create a BEARER_TOKEN one first. "),bf());}function ne(a,t){if(a&1){let e=bT();za(0,"button",29),dc("click",function(){ig(e);let s=NT(2);return sg(s.remove())}),r_(1," Remove association "),bf();}if(a&2){let e=NT(2);tv("disabled",!e.associationLoaded()||e.isSaving());}}function ie(a,t){if(a&1){let e=bT();za(0,"div",4)(1,"p",5),r_(2," Associating a repository enables Git workspaces for this namespace. When worktree creation is enabled, every new top-level case 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. "),bf(),hT(3,J,2,1,"p",6),hT(4,Q,2,0,"button",7),hT(5,Z,3,6,"p",8),za(6,"fieldset",9)(7,"legend",10),r_(8,"Repository"),bf(),za(9,"label",11)(10,"span",12),r_(11,"Repository URL"),bf(),za(12,"input",13),dc("ngModelChange",function(s){ig(e);let p=NT();return sg(p.repositoryUrl.set(s))}),bf(),sS(),za(13,"span",14),r_(14,"HTTPS only, without credentials in the URL."),bf()(),za(15,"label",11)(16,"span",12),r_(17,"Main branch"),bf(),za(18,"input",15),dc("ngModelChange",function(s){ig(e);let p=NT();return sg(p.mainBranch.set(s))}),bf(),sS(),za(19,"span",14),r_(20,"New worktrees start at this branch\u2019s commit, without creating a branch."),bf()(),za(21,"label",11)(22,"span",12),r_(23,"Service account"),bf(),za(24,"select",16),dc("ngModelChange",function(s){ig(e);let p=NT();return sg(p.serviceAuthSettingId.set(s))}),za(25,"option",17),r_(26,"Select an auth setting\u2026"),bf(),yT(27,ee,2,3,"option",18,q),bf(),sS(),za(29,"span",14),r_(30," Shared by the namespace. Every Git operation uses this identity, never the identity of whoever opened the case. "),bf(),hT(31,te,2,0,"span",19),bf()(),za(32,"fieldset",9)(33,"legend",10),r_(34,"Automation"),bf(),za(35,"label",20)(36,"input",21),dc("ngModelChange",function(s){ig(e);let p=NT();return sg(p.autoWorktree.set(s))}),bf(),sS(),za(37,"span"),r_(38,"Create a worktree for every new top-level case"),bf()(),za(39,"span",14),r_(40," 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. "),bf(),za(41,"label",11)(42,"span",12),r_(43,"Setup command (optional)"),bf(),za(44,"input",22),dc("ngModelChange",function(s){ig(e);let p=NT();return sg(p.setupCommand.set(s))}),bf(),sS(),za(45,"span",19),r_(46," 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. "),bf()()(),za(47,"div",23)(48,"button",24),dc("click",function(){ig(e);let s=NT();return sg(s.save())}),r_(49),bf(),hT(50,ne,2,1,"button",25),bf()();}if(a&2){let e=NT();yb(3),pT(e.errorMessage()?3:-1),yb(),pT(e.associationLoaded()?-1:4),yb(),pT(e.isAssociated()&&e.checkoutStatus()?5:-1),yb(),tv("disabled",!e.associationLoaded()||e.isSaving()),yb(6),tv("ngModel",e.repositoryUrl()),cS(),yb(6),tv("ngModel",e.mainBranch()),cS(),yb(6),tv("ngModel",e.serviceAuthSettingId()),cS(),yb(3),vT(e.eligibleAuthSettings()),yb(4),pT(e.eligibleAuthSettings().length===0?31:-1),yb(),tv("disabled",!e.associationLoaded()||e.isSaving()),yb(4),tv("ngModel",e.autoWorktree()),cS(),yb(8),tv("ngModel",e.setupCommand()),cS(),yb(4),tv("disabled",!e.canSave()),yb(),Af(" ",e.isSaving()?"Saving\u2026":e.isAssociated()?"Update":"Associate"," "),yb(),pT(e.isAssociated()?50:-1);}}var ae=["BearerTokenAuthSetting","BasicAuthAuthSetting","ApiKeyAuthSetting"],oe={BearerTokenAuthSetting:"token",BasicAuthAuthSetting:"basic auth",ApiKeyAuthSetting:"API key"},j=class a{route=p($t);gitApi=p(_);authSettingState=p(R);destroyRef=p(Me);isLoading=ie$1(true);isSaving=ie$1(false);associationLoaded=ie$1(false);errorMessage=ie$1(null);association=ie$1(null);authSettings=ie$1([]);repositoryUrl=ie$1("");mainBranch=ie$1("main");serviceAuthSettingId=ie$1("");autoWorktree=ie$1(false);setupCommand=ie$1("");namespaceId="";isAssociated=Mi(()=>this.association()?.associated===true);eligibleAuthSettings=Mi(()=>this.authSettings().filter(t=>ae.includes(t.authType)));authTypeLabel(t){return oe[t??""]??t??"unknown"}canSave=Mi(()=>this.associationLoaded()&&!this.isLoading()&&!this.isSaving()&&this.repositoryUrl().trim().length>0&&this.serviceAuthSettingId().length>0);checkoutStatus=Mi(()=>this.association()?.checkoutStatus??null);CheckoutStatus=Ie;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),pw({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),Wn(t=>(console.error("Failed to save the Git association",t),this.errorMessage.set(this.messageOf(t)),this.isSaving.set(false),_$1(null)))).subscribe(t=>{t&&this.acceptAssociation(t),this.isSaving.set(false);}));}remove(){!this.associationLoaded()||this.isLoading()||this.isSaving()||!this.isAssociated()||confirm("Remove the repository association? Existing workspaces keep their worktree.")&&(this.isSaving.set(true),this.gitApi.removeAssociationNamespaceGit(this.namespaceId).pipe(U(this.destroyRef),Wn(t=>(console.error("Failed to remove the Git association",t),this.errorMessage.set(this.messageOf(t)),this.isSaving.set(false),_$1(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||a)};static \u0275cmp=Df({type:a,selectors:[["agentos-namespace-git"]],decls:6,vars:1,consts:[[1,"namespace-git"],[1,"namespace-git__header"],[1,"namespace-git__title"],[1,"namespace-git__loading"],[1,"namespace-git__body"],[1,"namespace-git__hint"],["role","alert",1,"namespace-git__error"],["type","button",1,"namespace-git__retry"],[1,"namespace-git__status",3,"namespace-git__status--failed","namespace-git__status--ready"],[1,"namespace-git__section",3,"disabled"],[1,"namespace-git__label"],[1,"namespace-git__field"],[1,"namespace-git__field-label"],["type","url","placeholder","https://forge.example/org/project.git","name","repositoryUrl",1,"namespace-git__input",3,"ngModelChange","ngModel"],[1,"namespace-git__field-hint"],["type","text","placeholder","main","name","mainBranch",1,"namespace-git__input",3,"ngModelChange","ngModel"],["name","serviceAuthSettingId",1,"namespace-git__input",3,"ngModelChange","ngModel"],["value",""],[3,"value"],[1,"namespace-git__field-hint","namespace-git__field-hint--warn"],[1,"namespace-git__checkbox"],["type","checkbox","name","autoWorktree",3,"ngModelChange","ngModel"],["type","text","placeholder","pnpm install --ignore-scripts","name","setupCommand",1,"namespace-git__input",3,"ngModelChange","ngModel"],[1,"namespace-git__actions"],["type","button",1,"namespace-git__save",3,"click","disabled"],["type","button",1,"namespace-git__remove",3,"disabled"],["type","button",1,"namespace-git__retry",3,"click"],[1,"namespace-git__status"],[1,"namespace-git__status-reason"],["type","button",1,"namespace-git__remove",3,"click","disabled"]],template:function(e,d){e&1&&(za(0,"div",0)(1,"header",1)(2,"h1",2),r_(3,"Git repository"),bf()(),hT(4,$,2,0,"p",3)(5,ie,51,14,"div",4),bf()),e&2&&(yb(4),pT(d.isLoading()?4:5));},dependencies:[Yn,Zn,Xn,Ye,Ft,bt,Ln,ln],styles:[".namespace-git[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;max-width:560px;margin:0 auto;padding:2rem 1rem}.namespace-git__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.namespace-git__back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.375rem;background:none;border:none;padding:0;cursor:pointer;font-size:.875rem;color:var(--color-primary, #007aff);font-family:inherit}.namespace-git__back[_ngcontent-%COMP%]:hover{text-decoration:underline}.namespace-git__title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem}.namespace-git__body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.namespace-git__hint[_ngcontent-%COMP%]{margin:0;font-size:.875rem;color:var(--color-text-secondary, #6b7280)}.namespace-git__error[_ngcontent-%COMP%]{margin:0;padding:.75rem;border-radius:.375rem;background:var(--red-bg, #fef2f2);color:var(--color-error, #b91c1c);font-size:.875rem}.namespace-git__status[_ngcontent-%COMP%]{margin:0;padding:.5rem .75rem;border-radius:.375rem;background:var(--color-surface-secondary, #f3f4f6);font-size:.875rem;display:flex;flex-direction:column;gap:.25rem}.namespace-git__status--ready[_ngcontent-%COMP%]{background:var(--color-success-bg, #ecfdf5);color:var(--color-success, #047857)}.namespace-git__status--failed[_ngcontent-%COMP%]{background:var(--red-bg, #fef2f2);color:var(--color-error, #b91c1c)}.namespace-git__status-reason[_ngcontent-%COMP%]{font-size:.8125rem;opacity:.9}.namespace-git__section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;border:1px solid var(--color-border, #e5e7eb);border-radius:.5rem;padding:1rem;margin:0}.namespace-git__label[_ngcontent-%COMP%]{font-weight:600;font-size:.9375rem;padding:0 .25rem}.namespace-git__field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.namespace-git__field-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500}.namespace-git__field-hint[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--color-text-secondary, #6b7280)}.namespace-git__field-hint--warn[_ngcontent-%COMP%]{color:var(--color-warning, #b45309)}.namespace-git__input[_ngcontent-%COMP%]{font-family:inherit;font-size:.875rem;padding:.5rem .625rem;border:1px solid var(--color-border, #e5e7eb);border-radius:.375rem;background:var(--color-surface, #fff);color:inherit}.namespace-git__checkbox[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;cursor:pointer}.namespace-git__actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;align-items:center}.namespace-git__save[_ngcontent-%COMP%], .namespace-git__retry[_ngcontent-%COMP%], .namespace-git__remove[_ngcontent-%COMP%], .namespace-git__cancel[_ngcontent-%COMP%]{font-family:inherit;font-size:.875rem;padding:.5rem 1rem;border-radius:.375rem;cursor:pointer;border:1px solid transparent}.namespace-git__save[_ngcontent-%COMP%]:disabled, .namespace-git__retry[_ngcontent-%COMP%]:disabled, .namespace-git__remove[_ngcontent-%COMP%]:disabled, .namespace-git__cancel[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.namespace-git__save[_ngcontent-%COMP%]{background:var(--color-primary, #007aff);color:var(--color-text-on-accent, #fff)}.namespace-git__remove[_ngcontent-%COMP%]{background:none;border-color:var(--color-error, #b91c1c);color:var(--color-error, #b91c1c)}.namespace-git__cancel[_ngcontent-%COMP%], .namespace-git__retry[_ngcontent-%COMP%]{background:none;border-color:var(--color-border, #e5e7eb);color:inherit}"]})};
2
- export{j as NamespaceGitComponent};