@whoz-oss/coday-client 0.199.0 → 0.200.0

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 (51) hide show
  1. package/browser/{chunk-JL4IPJT5.js → chunk-25QAYY2G.js} +1 -1
  2. package/browser/{chunk-GJ6TA25Y.js → chunk-32PCPEXE.js} +1 -1
  3. package/browser/{chunk-UXIUSXZT.js → chunk-3UZ346ET.js} +1 -1
  4. package/browser/{chunk-IEIHNRZE.js → chunk-5J75SWSV.js} +1 -1
  5. package/browser/chunk-5P2WWCFC.js +1 -0
  6. package/browser/{chunk-NKNHWFYH.js → chunk-5WWHTBZX.js} +1 -1
  7. package/browser/{chunk-V43NZ7XP.js → chunk-6NGGDRZW.js} +1 -1
  8. package/browser/{chunk-KFTYMWZ4.js → chunk-6PHQGWTQ.js} +1 -1
  9. package/browser/{chunk-I4DIX2BH.js → chunk-6QBZFOLP.js} +1 -1
  10. package/browser/chunk-AIJJNBNY.js +1 -0
  11. package/browser/{chunk-TFL7UOY7.js → chunk-APISHLX2.js} +1 -1
  12. package/browser/{chunk-HMYJY2DG.js → chunk-BBQBJKTG.js} +1 -1
  13. package/browser/{chunk-5AH4NMNL.js → chunk-C4YB46JQ.js} +1 -1
  14. package/browser/{chunk-P2XSTJQN.js → chunk-CHJWXPFL.js} +1 -1
  15. package/browser/chunk-CUZOUQER.js +1 -0
  16. package/browser/{chunk-J6KORXMO.js → chunk-DWM36GCL.js} +1 -1
  17. package/browser/chunk-EBPM4OO4.js +1 -0
  18. package/browser/{chunk-JYA4K7VB.js → chunk-EFU22KBF.js} +1 -1
  19. package/browser/{chunk-UNM7FXGM.js → chunk-EXGN47V2.js} +1 -1
  20. package/browser/{chunk-XAAHUCLS.js → chunk-FGH22HXQ.js} +1 -1
  21. package/browser/{chunk-OPMZ42FI.js → chunk-HB7BOQF2.js} +1 -1
  22. package/browser/chunk-INPPLYFX.js +1 -0
  23. package/browser/{chunk-DGE527NX.js → chunk-IQ7EL357.js} +1 -1
  24. package/browser/chunk-JFK2VH3B.js +1 -0
  25. package/browser/chunk-KGOCOJXX.js +1 -0
  26. package/browser/{chunk-LGN67WP4.js → chunk-MEMAC4FG.js} +1 -1
  27. package/browser/{chunk-GS2XHWWW.js → chunk-NBM4ZTYZ.js} +1 -1
  28. package/browser/{chunk-H5QMVJMP.js → chunk-NE7BOWVE.js} +1 -1
  29. package/browser/chunk-NQLFBBMS.js +1 -0
  30. package/browser/chunk-ODQ66F3E.js +1 -0
  31. package/browser/{chunk-K6BO32I7.js → chunk-OX3JLJE5.js} +1 -1
  32. package/browser/{chunk-MVZDT2QU.js → chunk-QKXRAKAR.js} +1 -1
  33. package/browser/{chunk-ASYQJGDW.js → chunk-RPBI6ZEF.js} +1 -1
  34. package/browser/{chunk-IMS2BEZA.js → chunk-SAT3CQDP.js} +1 -1
  35. package/browser/{chunk-MNRESS2L.js → chunk-TIF4AFYM.js} +1 -1
  36. package/browser/{chunk-72EDCCJQ.js → chunk-TWUUATLS.js} +1 -1
  37. package/browser/{chunk-CL3ICOAL.js → chunk-UXUHAYDM.js} +1 -1
  38. package/browser/{chunk-ESOYLXDB.js → chunk-XBQWHRJH.js} +1 -1
  39. package/browser/{chunk-XZRCNGKM.js → chunk-YG6SBV72.js} +1 -1
  40. package/browser/chunk-YKPIMVQC.js +1 -0
  41. package/browser/{chunk-IVKX5B6K.js → chunk-YPM4SWS3.js} +1 -1
  42. package/browser/{chunk-XLXMYPNG.js → chunk-YRI2TXXT.js} +1 -1
  43. package/browser/{chunk-J7ULM2BG.js → chunk-ZBXL6DSO.js} +1 -1
  44. package/browser/index.html +1 -1
  45. package/browser/{main-5JK54GWM.js → main-V5E64J66.js} +1 -1
  46. package/package.json +1 -1
  47. package/browser/chunk-BUWF3ZQM.js +0 -1
  48. package/browser/chunk-JMHTBAFK.js +0 -1
  49. package/browser/chunk-VGTKUVKV.js +0 -1
  50. package/browser/chunk-VOZI5GZY.js +0 -1
  51. package/browser/chunk-Y5A4URQQ.js +0 -1
@@ -1 +0,0 @@
1
- import{a as ge}from"./chunk-KWZFKFOK.js";import{a as me,b as se}from"./chunk-VOZI5GZY.js";import{a as ce}from"./chunk-DGE527NX.js";import{a as de,b as le}from"./chunk-JYA4K7VB.js";import{a as pe}from"./chunk-HMYJY2DG.js";import{a as Y}from"./chunk-WQVPMMUH.js";import{a as Q,b as W,c as X}from"./chunk-QPBFAKWK.js";import{a as Z,b as te}from"./chunk-MVZDT2QU.js";import{a as ae}from"./chunk-IEIHNRZE.js";import{a as ie}from"./chunk-MNRESS2L.js";import{a as ne,b as oe,c as H}from"./chunk-SMT5YVCA.js";import{a as re}from"./chunk-GJ6TA25Y.js";import{a as D,b as ee}from"./chunk-UNM7FXGM.js";import"./chunk-NKNHWFYH.js";import{a as L,e as N}from"./chunk-BUWF3ZQM.js";import"./chunk-FPNEFWYN.js";import{b as F,d as T}from"./chunk-4GVABYH4.js";import{p as z}from"./chunk-WV7ML4CJ.js";import"./chunk-BUA6GPP7.js";import"./chunk-Z7E7NSDY.js";import"./chunk-V363EHJE.js";import"./chunk-ZEMOOOQR.js";import"./chunk-HZF57OLY.js";import"./chunk-EF2BOSEH.js";import{Cb as S,Db as h,Eb as E,Fb as _,Hc as w,Ka as s,Tb as a,Tc as k,Ub as C,Wa as g,ca as l,dc as M,ec as O,kb as x,lb as f,mb as u,pb as A,qb as y,rb as I,sb as i,ta as v,tb as r,ub as P,vb as c,wb as d}from"./chunk-B4RKRLIY.js";var t=()=>!0;var ue=[{path:"",loadComponent:()=>import("./chunk-BWTU7I6I.js").then(e=>e.AgentosShellComponent),children:[{path:":namespaceId/cases",canActivate:[t],loadComponent:()=>import("./chunk-J7ULM2BG.js").then(e=>e.CaseShellComponent),children:[{path:"",loadComponent:()=>import("./chunk-XLXMYPNG.js").then(e=>e.CaseHomeComponent)},{path:":caseId",loadComponent:()=>import("./chunk-TFL7UOY7.js").then(e=>e.CaseChatComponent)}]},{path:"",loadComponent:()=>import("./chunk-JMHTBAFK.js").then(e=>e.LayoutComponent),children:[{path:"namespaces/new",canActivate:[t],loadComponent:()=>import("./chunk-V43NZ7XP.js").then(e=>e.NamespaceFormComponent)},{path:"namespaces/:namespaceId/edit",canActivate:[t],loadComponent:()=>import("./chunk-V43NZ7XP.js").then(e=>e.NamespaceFormComponent)},{path:"namespaces",canActivate:[t],loadComponent:()=>import("./chunk-5AH4NMNL.js").then(e=>e.NamespaceListComponent)},{path:"admin",canActivate:[t],loadComponent:()=>import("./chunk-Y5A4URQQ.js").then(e=>e.AdminHomeComponent)},{path:"admin/users/new",canActivate:[t],loadComponent:()=>import("./chunk-OPMZ42FI.js").then(e=>e.UserFormComponent)},{path:"admin/users/:userId/edit",canActivate:[t],loadComponent:()=>import("./chunk-OPMZ42FI.js").then(e=>e.UserFormComponent)},{path:"admin/users",canActivate:[t],loadComponent:()=>import("./chunk-IMS2BEZA.js").then(e=>e.UserListComponent)},{path:"admin/integration-configs/new",canActivate:[t],loadComponent:()=>import("./chunk-I4DIX2BH.js").then(e=>e.IntegrationFormComponent)},{path:"admin/integration-configs/:integrationId/edit",canActivate:[t],loadComponent:()=>import("./chunk-I4DIX2BH.js").then(e=>e.IntegrationFormComponent)},{path:"admin/integration-configs",canActivate:[t],loadComponent:()=>import("./chunk-JL4IPJT5.js").then(e=>e.PlatformIntegrationConfigsComponent)},{path:"admin/ai-providers/new",canActivate:[t],loadComponent:()=>import("./chunk-72EDCCJQ.js").then(e=>e.AiProviderFormComponent)},{path:"admin/ai-providers/:aiProviderId/edit",canActivate:[t],loadComponent:()=>import("./chunk-72EDCCJQ.js").then(e=>e.AiProviderFormComponent)},{path:"admin/ai-providers",canActivate:[t],loadComponent:()=>import("./chunk-LGN67WP4.js").then(e=>e.PlatformAiProvidersComponent)},{path:"admin/ai-models/new",canActivate:[t],loadComponent:()=>import("./chunk-K6BO32I7.js").then(e=>e.AiModelFormComponent)},{path:"admin/ai-models/:modelId/edit",canActivate:[t],loadComponent:()=>import("./chunk-K6BO32I7.js").then(e=>e.AiModelFormComponent)},{path:"admin/ai-models",canActivate:[t],loadComponent:()=>import("./chunk-P2XSTJQN.js").then(e=>e.PlatformAiModelsComponent)},{path:"admin/agent-configs/new",canActivate:[t],loadComponent:()=>import("./chunk-J6KORXMO.js").then(e=>e.AgentConfigFormComponent)},{path:"admin/agent-configs/:agentConfigId/edit",canActivate:[t],loadComponent:()=>import("./chunk-J6KORXMO.js").then(e=>e.AgentConfigFormComponent)},{path:"admin/agent-configs/:agentConfigId/inspect",canActivate:[t],loadComponent:()=>import("./chunk-ASYQJGDW.js").then(e=>e.AgentConfigInspectComponent)},{path:"admin/agent-configs",canActivate:[t],loadComponent:()=>import("./chunk-XZRCNGKM.js").then(e=>e.PlatformAgentConfigsComponent)},{path:"me",canActivate:[t],loadComponent:()=>import("./chunk-XAAHUCLS.js").then(e=>e.UserProfileComponent)},{path:":namespaceId/integrations/new",canActivate:[t],loadComponent:()=>import("./chunk-I4DIX2BH.js").then(e=>e.IntegrationFormComponent)},{path:":namespaceId/integrations/:integrationId/edit",canActivate:[t],loadComponent:()=>import("./chunk-I4DIX2BH.js").then(e=>e.IntegrationFormComponent)},{path:":namespaceId/integrations",canActivate:[t],loadComponent:()=>import("./chunk-GS2XHWWW.js").then(e=>e.IntegrationsAllScopesComponent)},{path:":namespaceId/ai-providers/new",canActivate:[t],loadComponent:()=>import("./chunk-72EDCCJQ.js").then(e=>e.AiProviderFormComponent)},{path:":namespaceId/ai-providers/:aiProviderId/edit",canActivate:[t],loadComponent:()=>import("./chunk-72EDCCJQ.js").then(e=>e.AiProviderFormComponent)},{path:":namespaceId/ai-providers",canActivate:[t],loadComponent:()=>import("./chunk-ESOYLXDB.js").then(e=>e.AiProvidersAllScopesComponent)},{path:":namespaceId/ai-models/new",canActivate:[t],loadComponent:()=>import("./chunk-K6BO32I7.js").then(e=>e.AiModelFormComponent)},{path:":namespaceId/ai-models/:modelId/edit",canActivate:[t],loadComponent:()=>import("./chunk-K6BO32I7.js").then(e=>e.AiModelFormComponent)},{path:":namespaceId/ai-models",canActivate:[t],loadComponent:()=>import("./chunk-IVKX5B6K.js").then(e=>e.NamespaceAiModelsComponent)},{path:":namespaceId/agent-configs/new",canActivate:[t],loadComponent:()=>import("./chunk-J6KORXMO.js").then(e=>e.AgentConfigFormComponent)},{path:":namespaceId/agent-configs/:agentConfigId/edit",canActivate:[t],loadComponent:()=>import("./chunk-J6KORXMO.js").then(e=>e.AgentConfigFormComponent)},{path:":namespaceId/agent-configs/:agentConfigId/inspect",canActivate:[t],loadComponent:()=>import("./chunk-ASYQJGDW.js").then(e=>e.AgentConfigInspectComponent)},{path:":namespaceId/agent-configs",canActivate:[t],loadComponent:()=>import("./chunk-KFTYMWZ4.js").then(e=>e.NamespaceAgentConfigsComponent)},{path:"",redirectTo:"namespaces",pathMatch:"full"}]}]}];function j(e,o){e&1&&(c(0,"p",6),a(1,"No cases yet. Start one below."),d())}function G(e,o){if(e&1&&(c(0,"div",7)(1,"span",8),a(2),d(),c(3,"span",9),a(4),d()()),e&2){let n=o.$implicit;s(2),C(n.id),s(2),C(n.status)}}function K(e,o){if(e&1&&A(0,G,5,2,"div",7,x().trackById,!0),e&2){let n=_();y(n)}}function q(e,o){e&1&&f(0,j,2,0,"p",6)(1,K,2,0),e&2&&u(o.length===0?0:1)}var R=class e{http=l(k);router=l(T);route=l(F);config=l(L);caseController=l(N);preferences=l(H);namespaceId=this.route.snapshot.params.namespaceId;cases$=this.caseController.listByParentCase(this.namespaceId);inputValue=v("");onInput(o){this.inputValue.set(o.target.value)}onKeydown(o){this.preferences.shouldSend(o)&&(o.preventDefault(),this.submit())}submit(){this.inputValue().trim()&&this.http.post(`${this.config.basePath}/api/cases`,{namespaceId:this.namespaceId,metadata:{}}).subscribe(n=>{this.inputValue.set(""),this.router.navigate(["/agentos",this.namespaceId,"cases",n.id??""])})}trackById(o,n){return n.id??""}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=g({type:e,selectors:[["agentos-case-list"]],decls:11,vars:5,consts:[[1,"case-list"],[1,"case-list__header"],[1,"case-list__items"],[1,"case-list__composer"],["placeholder","Start a new case\u2026","rows","3",1,"case-list__input",3,"input","keydown","value"],[1,"case-list__hint"],[1,"case-list__empty"],[1,"case-list__item"],[1,"case-list__item-id"],[1,"case-list__item-status"]],template:function(n,m){if(n&1&&(c(0,"div",0)(1,"header",1)(2,"h2"),a(3,"Cases"),d()(),c(4,"div",2),f(5,q,2,1),M(6,"async"),d(),c(7,"div",3)(8,"textarea",4),E("input",function(b){return m.onInput(b)})("keydown",function(b){return m.onKeydown(b)}),d(),c(9,"p",5),a(10),d()()()),n&2){let p;s(5),u((p=O(6,3,m.cases$))?5:-1,p),s(3),S("value",m.inputValue()),s(2),C(m.preferences.composerHint())}},dependencies:[w],styles:[".case-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-width:720px;margin:0 auto;padding:2rem;gap:1.5rem}.case-list__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:600;color:var(--color-text, #1d1d1f);letter-spacing:-.02em}.case-list__items[_ngcontent-%COMP%]{flex:1;overflow-y:auto}.case-list__empty[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.9rem;margin:0}.case-list__composer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.case-list__input[_ngcontent-%COMP%]{width:100%;resize:none;padding:.75rem 1rem;border-radius:12px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:var(--glass-bg, rgba(255, 255, 255, .72));-webkit-backdrop-filter:var(--glass-backdrop-blur, blur(20px));backdrop-filter:var(--glass-backdrop-blur, blur(20px));color:var(--color-text, #1d1d1f);font-size:.95rem;font-family:inherit;line-height:1.5;outline:none;box-sizing:border-box;transition:border-color .15s ease}.case-list__input[_ngcontent-%COMP%]:focus{border-color:var(--color-primary, #007aff)}.case-list__input[_ngcontent-%COMP%]::placeholder{color:var(--color-text-secondary, #6e6e73)}.case-list__hint[_ngcontent-%COMP%]{margin:0;font-size:.75rem;color:var(--color-text-secondary, #6e6e73);opacity:.7}"]})};var V=class e{case;static toListItem(o){return{id:o.id??"",name:o.id??"\u2014",description:void 0}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=g({type:e,selectors:[["agentos-case-item"]],inputs:{case:"case"},decls:0,vars:0,template:function(n,m){},encapsulation:2,changeDetection:0})};function J(e,o){if(e&1&&(i(0,"p",11),a(1," Last action: "),i(2,"strong"),a(3),r()()),e&2){let n=_();s(3),C(n.lastAction())}}var $=class e{lastAction=v(null);onSend(){this.lastAction.set("send")}onStop(){this.lastAction.set("stop")}onAttach(){this.lastAction.set("attach")}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=g({type:e,selectors:[["agentos-hello"]],decls:35,vars:2,consts:[[1,"hello-agentos"],[1,"card"],[1,"badge"],[1,"principles"],[1,"demo"],[1,"demo-label"],[1,"demo-buttons"],["icon","send","variant","primary","title","Send",3,"action"],["icon","stop","variant","danger","title","Stop",3,"action"],["icon","attach_file","variant","default","title","Attach",3,"action"],["icon","mic","variant","default","title","Record",3,"action","disabled"],[1,"demo-feedback"]],template:function(n,m){n&1&&(i(0,"div",0)(1,"div",1)(2,"div",2),a(3,"AgentOS UI"),r(),i(4,"h1"),a(5,"Hello AgentOS"),r(),i(6,"p"),a(7," This component lives in "),i(8,"code"),a(9,"libs/agentos-ui"),r(),a(10," \u2014 isolated from Coday internals, ready to be published as "),i(11,"code"),a(12,"@whoz-oss/agentos-ui"),r(),a(13,". "),r(),P(14,"agentos-backend-status"),i(15,"ul",3)(16,"li"),a(17,"\u2726 No imports from Coday app"),r(),i(18,"li"),a(19,"\u2726 CSS custom properties as host contract"),r(),i(20,"li"),a(21,"\u2726 Standalone Angular components"),r(),i(22,"li"),a(23,"\u2726 Signals-first reactive state"),r()(),i(24,"div",4)(25,"p",5),a(26,"ds-icon-button from "),i(27,"code"),a(28,"@whoz-oss/design-system"),r()(),i(29,"div",6)(30,"ds-icon-button",7),h("action",function(){return m.onSend()}),r(),i(31,"ds-icon-button",8),h("action",function(){return m.onStop()}),r(),i(32,"ds-icon-button",9),h("action",function(){return m.onAttach()}),r(),i(33,"ds-icon-button",10),h("action",function(){return m.onAttach()}),r()(),f(34,J,4,1,"p",11),r()()()),n&2&&(s(33),I("disabled",!0),s(),u(m.lastAction()?34:-1))},dependencies:[z,D],styles:['@charset "UTF-8";.hello-agentos[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:2rem}.card[_ngcontent-%COMP%]{background:var(--glass-bg, rgba(255, 255, 255, .72));border:1px solid var(--glass-border, rgba(255, 255, 255, .18));box-shadow:var(--glass-shadow, 0 8px 32px 0 rgba(31, 38, 135, .15));backdrop-filter:var(--glass-backdrop-blur, blur(20px));-webkit-backdrop-filter:var(--glass-backdrop-blur, blur(20px));border-radius:20px;padding:3rem;max-width:480px;width:100%;text-align:center}.badge[_ngcontent-%COMP%]{display:inline-block;background:var(--color-primary, #007aff);color:var(--color-text-inverse, #ffffff);font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:.25rem .75rem;border-radius:100px;margin-bottom:1.5rem}h1[_ngcontent-%COMP%]{color:var(--color-text, #1d1d1f);font-size:2rem;font-weight:700;margin:0 0 1rem;letter-spacing:-.02em}p[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);line-height:1.6;margin:0 0 1.5rem}p[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:var(--color-code-bg, rgba(142, 142, 147, .12));color:var(--color-code-text, #ff375f);padding:.125rem .375rem;border-radius:6px;font-size:.875em;border:1px solid var(--color-border, rgba(0, 0, 0, .1))}.principles[_ngcontent-%COMP%]{list-style:none;margin:0 0 1.5rem;padding:0;text-align:left;display:flex;flex-direction:column;gap:.5rem}.principles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.9rem;padding:.5rem .75rem;background:var(--color-bg-hover, rgba(0, 0, 0, .04));border-radius:8px;border:1px solid var(--color-border-light, rgba(40, 40, 40, .08))}.demo[_ngcontent-%COMP%]{border-top:1px solid var(--color-border-light, rgba(40, 40, 40, .08));padding-top:1.25rem}.demo[_ngcontent-%COMP%] .demo-label[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.8rem;margin:0 0 .75rem}.demo[_ngcontent-%COMP%] .demo-label[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:var(--color-code-bg, rgba(142, 142, 147, .12));color:var(--color-code-text, #ff375f);padding:.125rem .375rem;border-radius:6px;font-size:.875em;border:1px solid var(--color-border, rgba(0, 0, 0, .1))}.demo[_ngcontent-%COMP%] .demo-buttons[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;justify-content:center;padding:.75rem;background:var(--color-bg-hover, rgba(0, 0, 0, .04));border-radius:12px;border:1px solid var(--color-border-light, rgba(40, 40, 40, .08))}.demo[_ngcontent-%COMP%] .demo-feedback[_ngcontent-%COMP%]{margin:.75rem 0 0;font-size:.85rem;color:var(--color-text-secondary, #6e6e73)}.demo[_ngcontent-%COMP%] .demo-feedback[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--color-primary, #007aff)}']})};export{ue as AGENTOS_ROUTES,Y as AgentosShellComponent,W as AgentosThemeService,oe as AgentosUserPreferencesService,D as BackendStatusComponent,ie as CaseChatComponent,Z as CaseDrawerComponent,ae as CaseHomeComponent,V as CaseItemComponent,R as CaseListComponent,te as CaseShellComponent,ne as ENTER_KEY_BEHAVIORS,ee as HeaderComponent,$ as HelloAgentosComponent,re as LayoutComponent,ge as MarkdownPipe,me as NamespaceItemComponent,se as NamespaceListComponent,Q as THEME_MODES,X as THEME_PORT,H as USER_PREFERENCES_PORT,pe as UserAdminStateService,ce as UserFormComponent,de as UserItemComponent,le as UserListComponent,t as agentosReadyGuard};
@@ -1 +0,0 @@
1
- import{h as V}from"./chunk-BUWF3ZQM.js";import{d as E}from"./chunk-4GVABYH4.js";import{u as D,v as O}from"./chunk-WV7ML4CJ.js";import{a as N}from"./chunk-V363EHJE.js";import{Bb as I,Db as l,Fb as o,Hc as A,Ka as _,Pb as k,S as w,Tb as y,Ub as h,Wa as f,ab as M,ac as T,ca as g,dc as P,ec as L,ga as r,ha as m,hc as S,i as R,lb as C,ma as q,mb as v,oa as c,rb as u,sb as p,t as x,tb as d}from"./chunk-B4RKRLIY.js";function K(s,t){if(s&1&&(p(0,"span",3),y(1),d()),s&2){let e=o();_(),h(e.namespace.description)}}var b=class s{namespace;selected=new c;editRequested=new c;integrationsRequested=new c;aiProvidersRequested=new c;aiModelsRequested=new c;agentConfigsRequested=new c;deleteRequested=new c;menuItems=[{key:"edit",label:"Edit namespace",icon:"edit"},{key:"integrations",label:"Manage integrations",icon:"settings"},{key:"ai-providers",label:"AI Providers",icon:"smart_toy"},{key:"ai-models",label:"AI models",icon:"model_training"},{key:"agent-configs",label:"Agent Configs",icon:"support_agent"},{key:"delete",label:"Delete namespace",icon:"delete",variant:"danger"}];onSelect(){this.selected.emit(this.namespace)}onMenuAction(t){switch(t){case"edit":this.editRequested.emit(this.namespace);break;case"integrations":this.integrationsRequested.emit(this.namespace);break;case"ai-providers":this.aiProvidersRequested.emit(this.namespace);break;case"ai-models":this.aiModelsRequested.emit(this.namespace);break;case"agent-configs":this.agentConfigsRequested.emit(this.namespace);break;case"delete":confirm(`Delete namespace "${this.namespace.name}"?`)&&this.deleteRequested.emit(this.namespace);break}}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=f({type:s,selectors:[["agentos-namespace-item"]],inputs:{namespace:"namespace"},outputs:{selected:"selected",editRequested:"editRequested",integrationsRequested:"integrationsRequested",aiProvidersRequested:"aiProvidersRequested",aiModelsRequested:"aiModelsRequested",agentConfigsRequested:"agentConfigsRequested",deleteRequested:"deleteRequested"},decls:7,vars:3,consts:[["role","listitem",1,"namespace-item"],["type","button",1,"namespace-item__body",3,"click"],[1,"namespace-item__name"],[1,"namespace-item__desc"],[1,"namespace-item__actions"],[3,"itemSelected","items"]],template:function(e,a){e&1&&(p(0,"div",0)(1,"button",1),l("click",function(){return a.onSelect()}),p(2,"span",2),y(3),d(),C(4,K,2,1,"span",3),d(),p(5,"div",4)(6,"ds-kebab-menu",5),l("itemSelected",function(i){return a.onMenuAction(i)}),d()()()),e&2&&(_(3),h(a.namespace.name),_(),v(a.namespace.description?4:-1),_(2),u("items",a.menuItems))},dependencies:[O],styles:[".namespace-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:.875rem 1.25rem;border-radius:10px;border:1px solid var(--color-border, rgba(0, 0, 0, .08));background:var(--glass-bg, rgba(255, 255, 255, .72));-webkit-backdrop-filter:var(--glass-backdrop-blur, blur(20px));backdrop-filter:var(--glass-backdrop-blur, blur(20px));transition:background .15s ease,border-color .15s ease}.namespace-item[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover, rgba(0, 0, 0, .04));border-color:var(--color-primary, #007aff)}.namespace-item__body[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;background:none;border:none;padding:0;cursor:pointer;text-align:left;min-width:0}.namespace-item__name[_ngcontent-%COMP%]{font-size:.95rem;font-weight:500;color:var(--color-text, #1d1d1f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.namespace-item__desc[_ngcontent-%COMP%]{font-size:.8rem;color:var(--color-text-secondary, #6e6e73);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.namespace-item__actions[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;gap:.125rem;opacity:0;transition:opacity .15s ease}.namespace-item[_ngcontent-%COMP%]:hover .namespace-item__actions[_ngcontent-%COMP%], .namespace-item[_ngcontent-%COMP%]:focus-within .namespace-item__actions[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0})};var j=()=>[];function z(s,t){if(s&1){let e=I();p(0,"agentos-namespace-item",3),l("selected",function(n){r(e);let i=o(2);return m(i.navigateToCases(n.id??""))})("editRequested",function(n){r(e);let i=o(2);return m(i.navigateToEdit(n))})("deleteRequested",function(n){r(e);let i=o(2);return m(i.deleteNamespace(n))})("integrationsRequested",function(n){r(e);let i=o(2);return m(i.openIntegrations(n))})("aiProvidersRequested",function(n){r(e);let i=o(2);return m(i.openAiProviders(n))})("aiModelsRequested",function(n){r(e);let i=o(2);return m(i.openAiModels(n))})("agentConfigsRequested",function(n){r(e);let i=o(2);return m(i.openAgentConfigs(n))}),d()}s&2&&u("namespace",t)}function U(s,t){if(s&1&&C(0,z,1,1,"agentos-namespace-item",2),s&2){let e,a=t.$implicit,n=o();v((e=n.resolveNamespace(a.id))?0:-1,e)}}var $=class s{router=g(E);namespaceController=g(V);destroyRef=g(q);refresh$=new R(void 0);namespaces$=this.refresh$.pipe(w(()=>this.namespaceController.listAllNamespace()));namespaceItems$=this.namespaces$.pipe(x(t=>t.map(e=>({id:e.id??"",name:e.name,description:e.description,badges:e.defaultAgentName?[{label:e.defaultAgentName,variant:"info"}]:void 0}))));namespacesById=new Map;constructor(){this.namespaces$.pipe(N(this.destroyRef)).subscribe(t=>{this.namespacesById=new Map(t.map(e=>[e.id??"",e]))})}navigateToCases(t){this.router.navigate(["/agentos",t,"cases"])}navigateToCreate(){this.router.navigate(["/agentos/namespaces/new"])}navigateToEdit(t){this.router.navigate(["/agentos/namespaces",t.id??"","edit"])}openIntegrations(t){this.router.navigate(["/agentos",t.id,"integrations"])}openAiProviders(t){this.router.navigate(["/agentos",t.id,"ai-providers"])}openAiModels(t){this.router.navigate(["/agentos",t.id,"ai-models"])}openAgentConfigs(t){this.router.navigate(["/agentos",t.id,"agent-configs"])}deleteNamespace(t){this.namespaceController.deleteNamespace(t.id??"").pipe(N(this.destroyRef)).subscribe(()=>this.refresh$.next())}resolveNamespace(t){return this.namespacesById.get(t)??null}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=f({type:s,selectors:[["agentos-namespace-list"]],decls:4,vars:6,consts:[["namespaceItemTpl",""],["title","Namespaces","emptyMessage","No namespaces yet. Create one to get started.","cardMinWidth","400px",3,"itemSelected","createRequested","items","showCreate","itemTemplate"],[3,"namespace"],[3,"selected","editRequested","deleteRequested","integrationsRequested","aiProvidersRequested","aiModelsRequested","agentConfigsRequested","namespace"]],template:function(e,a){if(e&1&&(p(0,"ds-entity-list",1),P(1,"async"),l("itemSelected",function(i){return a.navigateToCases(i)})("createRequested",function(){return a.navigateToCreate()}),d(),M(2,U,1,1,"ng-template",null,0,S)),e&2){let n=k(3);u("items",L(1,3,a.namespaceItems$)??T(5,j))("showCreate",!0)("itemTemplate",n)}},dependencies:[b,D,A],encapsulation:2})};export{b as a,$ as b};
@@ -1 +0,0 @@
1
- import{d as c}from"./chunk-4GVABYH4.js";import{Eb as o,Tb as n,Wa as s,ca as l,vb as e,wb as t}from"./chunk-B4RKRLIY.js";var p=class d{router=l(c);navigateTo(m){this.router.navigate([m])}static \u0275fac=function(r){return new(r||d)};static \u0275cmp=s({type:d,selectors:[["agentos-admin-home"]],decls:42,vars:0,consts:[[1,"admin-home"],[1,"admin-home__header"],[1,"admin-home__title"],[1,"admin-home__subtitle"],[1,"admin-home__sections"],["type","button",1,"admin-home__card",3,"click"],[1,"admin-home__card-icon"],[1,"admin-home__card-title"],[1,"admin-home__card-description"]],template:function(r,i){r&1&&(e(0,"div",0)(1,"header",1)(2,"h1",2),n(3,"Administration"),t(),e(4,"p",3),n(5,"Platform-level settings, visible to super-admins only."),t()(),e(6,"nav",4)(7,"button",5),o("click",function(){return i.navigateTo("/agentos/admin/users")}),e(8,"span",6),n(9,"\u{1F464}"),t(),e(10,"span",7),n(11,"Users"),t(),e(12,"span",8),n(13,"Manage all platform users and their admin rights."),t()(),e(14,"button",5),o("click",function(){return i.navigateTo("/agentos/admin/agent-configs")}),e(15,"span",6),n(16,"\u{1F916}"),t(),e(17,"span",7),n(18,"Platform agents"),t(),e(19,"span",8),n(20,"Manage agent configs shared across all namespaces."),t()(),e(21,"button",5),o("click",function(){return i.navigateTo("/agentos/admin/integration-configs")}),e(22,"span",6),n(23,"\u{1F517}"),t(),e(24,"span",7),n(25,"Platform integrations"),t(),e(26,"span",8),n(27,"Manage integration configs shared across all namespaces."),t()(),e(28,"button",5),o("click",function(){return i.navigateTo("/agentos/admin/ai-providers")}),e(29,"span",6),n(30,"\u{1F916}"),t(),e(31,"span",7),n(32,"Platform AI providers"),t(),e(33,"span",8),n(34,"Manage AI provider configs shared across all namespaces."),t()(),e(35,"button",5),o("click",function(){return i.navigateTo("/agentos/admin/ai-models")}),e(36,"span",6),n(37,"\u{1F9E0}"),t(),e(38,"span",7),n(39,"Platform AI models"),t(),e(40,"span",8),n(41,"Manage AI model configs shared across all namespaces."),t()()()())},styles:[".admin-home[_ngcontent-%COMP%]{max-width:640px;margin:0 auto;padding:2rem 1rem;display:flex;flex-direction:column;gap:2rem}.admin-home__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.admin-home__title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:600;color:var(--color-text, #1d1d1f);letter-spacing:-.02em}.admin-home__subtitle[_ngcontent-%COMP%]{margin:0;font-size:.875rem;color:var(--color-text-secondary, #6e6e73)}.admin-home__sections[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem}.admin-home__card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;padding:1.25rem;border-radius:12px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:var(--color-surface, #fff);cursor:pointer;text-align:left;font-family:inherit;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}.admin-home__card[_ngcontent-%COMP%]:hover{background:var(--color-surface-hover, rgba(0, 0, 0, .02));border-color:var(--color-primary, #007aff);box-shadow:0 2px 8px #007aff14}.admin-home__card-icon[_ngcontent-%COMP%]{font-size:1.75rem;line-height:1}.admin-home__card-title[_ngcontent-%COMP%]{font-size:1rem;font-weight:600;color:var(--color-text, #1d1d1f)}.admin-home__card-description[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--color-text-secondary, #6e6e73);line-height:1.4}"],changeDetection:0})};export{p as AdminHomeComponent};