@whoz-oss/coday-client 0.0.0-workstream-forge.163 → 0.0.0-workstream-forge.165

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-Cc6IKSyC.js → chunk-0VeqXZ9d.js} +1 -1
  2. package/browser/{chunk-CbxILJkh.js → chunk-2HHZ3LC4.js} +1 -1
  3. package/browser/{chunk-BUHpp4JE.js → chunk-8AFIbDZU.js} +1 -1
  4. package/browser/{chunk-CsSaiA1P.js → chunk-APy1T-1u.js} +1 -1
  5. package/browser/{chunk-O-V09dXj.js → chunk-B5ePzsIu.js} +1 -1
  6. package/browser/{chunk-33f1Bq4d.js → chunk-BB8Lzhwo.js} +1 -1
  7. package/browser/{chunk-CkucggC3.js → chunk-BEEjS55d.js} +1 -1
  8. package/browser/chunk-BJSbfkDj.js +1 -0
  9. package/browser/{chunk-BfnsSzkw.js → chunk-BONtS7al.js} +1 -1
  10. package/browser/{chunk-ILOTMMoB.js → chunk-BQblY_Kv.js} +1 -1
  11. package/browser/{chunk-CubEcxsT.js → chunk-BSqHjzXQ.js} +1 -1
  12. package/browser/{chunk-BVM48Akd.js → chunk-BcLZGu2F.js} +1 -1
  13. package/browser/{chunk-BdAw3RVr.js → chunk-Bf8bCumD.js} +1 -1
  14. package/browser/{chunk-DHFl5v8y.js → chunk-BqrOxZdE.js} +1 -1
  15. package/browser/{chunk-BJT1pT3j.js → chunk-BxXzXgnw.js} +1 -1
  16. package/browser/{chunk-Dnq1VkLC.js → chunk-C4KCDgok.js} +1 -1
  17. package/browser/{chunk-BO1HGYJ3.js → chunk-C7QOV3yc.js} +1 -1
  18. package/browser/{chunk-D0Fm138-.js → chunk-CG1SJzmH.js} +1 -1
  19. package/browser/{chunk-DAFgF2zk.js → chunk-CGnbW-VY.js} +1 -1
  20. package/browser/{chunk-LDlaL5qr.js → chunk-COXl1FiZ.js} +1 -1
  21. package/browser/{chunk-G9dv78Yj.js → chunk-CS1tczfK.js} +1 -1
  22. package/browser/{chunk-03YpIQRe.js → chunk-CTCRh-DP.js} +1 -1
  23. package/browser/{chunk-CV3K5zNT.js → chunk-CXv7Ai08.js} +1 -1
  24. package/browser/{chunk-CUjEhdzX.js → chunk-CcuY-VZC.js} +1 -1
  25. package/browser/{chunk-C1QfCycr.js → chunk-ClI63nto.js} +1 -1
  26. package/browser/{chunk-BPDyUW9C.js → chunk-CnRe9SoM.js} +1 -1
  27. package/browser/{chunk-DFXEWELG.js → chunk-Cs89O_uQ.js} +1 -1
  28. package/browser/{chunk-DqhsOOSW.js → chunk-CxLl2FLQ.js} +1 -1
  29. package/browser/{chunk-BQtSIe5T.js → chunk-D5UFWtax.js} +1 -1
  30. package/browser/{chunk-BVdMofRH.js → chunk-DGRsoYx_.js} +1 -1
  31. package/browser/{chunk-BIqQDrzJ.js → chunk-DXSN6VYs.js} +1 -1
  32. package/browser/{chunk-KPQ2pP66.js → chunk-DdWF9OO6.js} +1 -1
  33. package/browser/{chunk-C4HOlFhc.js → chunk-Dga8qADW.js} +1 -1
  34. package/browser/{chunk-O3MeTbDv.js → chunk-DzLt2p-b.js} +1 -1
  35. package/browser/{chunk-Cml5V2VG.js → chunk-EmHExSnw.js} +1 -1
  36. package/browser/{chunk-Bu3U66-H.js → chunk-Go1_Zu5R.js} +1 -1
  37. package/browser/{chunk-QZ9v-olu.js → chunk-PCe11EaT.js} +1 -1
  38. package/browser/{chunk-CDsD_Pfd.js → chunk-THLjXVP8.js} +1 -1
  39. package/browser/{chunk-Btu4vlJn.js → chunk-UMiCRMsh.js} +3 -3
  40. package/browser/chunk-cKHTB9X6.js +1 -0
  41. package/browser/{chunk-DhVxqqFl.js → chunk-cz67d1ar.js} +1 -1
  42. package/browser/{chunk-CDenpy3I.js → chunk-dkiNkKfC.js} +1 -1
  43. package/browser/{chunk-C6LQzD3M.js → chunk-fAeW8v1H.js} +1 -1
  44. package/browser/{chunk-HGFAbUg7.js → chunk-gX9pSFmE.js} +1 -1
  45. package/browser/{chunk-CDzMjHDI.js → chunk-sUX4ZlTt.js} +1 -1
  46. package/browser/index.html +1 -1
  47. package/browser/{main-ITBV6BE5.js → main-BNXY3UWS.js} +1 -1
  48. package/package.json +1 -1
  49. package/browser/chunk-BXDdc4SZ.js +0 -1
  50. package/browser/chunk-CrJHMDmB.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whoz-oss/coday-client",
3
- "version": "0.0.0-workstream-forge.163",
3
+ "version": "0.0.0-workstream-forge.165",
4
4
  "repository": "https://github.com/whoz-oss/coday",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -1 +0,0 @@
1
- import {o as o$1,r,i,l}from'./chunk-1nyEsjkY.js';import {o}from'./chunk-Cc6IKSyC.js';import {O}from'./chunk-BdAw3RVr.js';import {p,$ as $t,g as It,H as Me$1,a9 as $$1,ax as U,s as se,ay as Y,a1 as W,a2 as F,M as Mi,az as we,U as U$1,af as Wn,ae as pw,a3 as _,aA as j,K as x,J as w,a as Ef,at as pu,z as za,L as dc,n as n_,S as Sf,f as fT,y as yb,I as Iv,h as hT,k as MT,O as tv,C as CT,l as lc,N as iS,Q as aS,u as uc,x as xf,m as mT,d as yT,o as sg,q as ag,ar as Cv}from'./main-ITBV6BE5.js';import {$ as $$2,v as vt,a as ve,K as Kn,z as zn,Z as Zn,X as Xn,Y as Ye$1,d as dn,F as Ft,c as bt$1,L as Ln,W as Wn$1,q as qt,t as Lt,b as pn,V as Vn}from'./chunk-Btu4vlJn.js';import'./chunk-CrJHMDmB.js';var T="*";function ke(o){return (o??[]).some(t=>t.trim()===T)}function Ee(o){let t=(o??[]).map(e=>e.trim()).filter(e=>e.length>0&&e!==T).map(e=>e.toLowerCase());return new Set(t)}function $(o){return o.includes(T)}function Oe(o){let t=o.replace(/[\\^$.|?+()[\]{}]/g,"\\$&").replace(/\*/g,".*");return new RegExp(`^${t}$`,"i")}function K(o,t){return (t??[]).map(e=>e.trim()).filter(e=>e.length>0&&e!==T&&$(e)).some(e=>Oe(e).test(o))}var Me="AGENTOS_CONFIG",Re=new Set(["HTTP_API","MCP_HTTP","MCP_STDIO","BASH","TMUX","GIT"]);function Te(o){return o.configEnabled&&(o.hasSubAgents||o.integrationTypes.some(t=>Re.has(t)))}var Fe=(o,t)=>t.config.id,De=(o,t)=>t.type,Ie=(o,t)=>t.selector;function Ne(o,t){if(o&1&&(za(0,"a",5),n_(1,"View resolved definition \u2192"),Sf()),o&2){let e=MT();tv("routerLink",e.inspectRoute());}}function Le(o,t){o&1&&(za(0,"span",6),n_(1,"Platform level"),Sf());}function Ve(o,t){o&1&&(za(0,"p",7),n_(1,"Loading\u2026"),Sf());}function Be(o,t){if(o&1&&(za(0,"span",57),n_(1),Sf()),o&2){let e=MT().$implicit;yb(),Iv(e.config.integrationType);}}function ze(o,t){if(o&1&&(lc(0,"input",58),iS()),o&2){let e=MT().$implicit;tv("formControl",e.toolsControl),aS();}}function $e(o,t){if(o&1){let e=CT();za(0,"div",52)(1,"label",54)(2,"input",55),dc("change",function(){let s=sg(e).$implicit,c=MT(3);return ag(c.toggleIntegration(s))}),Sf(),za(3,"span",56),n_(4),Sf(),fT(5,Be,2,1,"span",57),Sf(),fT(6,ze,1,1,"input",58),Sf();}if(o&2){let e=t.$implicit;yb(2),tv("checked",e.enabled()),yb(2),Iv(e.config.name),yb(),hT(e.config.integrationType?5:-1),yb(),hT(e.enabled()?6:-1);}}function Ge(o,t){if(o&1&&(za(0,"p",64),n_(1),Sf()),o&2){let e=MT().$implicit;yb(),xf(" Restricted to: ",e.restrictedTools.join(", ")," (set outside this form, preserved on save) ");}}function Ue(o,t){if(o&1){let e=CT();za(0,"div",52)(1,"label",54)(2,"span",56),n_(3),Sf(),za(4,"span",57),n_(5,"built-in"),Sf()(),za(6,"select",60),dc("change",function(s){let c=sg(e).$implicit,C=MT(4);return ag(C.setBuiltInState(c,s.target.value))}),za(7,"option",61),n_(8),Sf(),za(9,"option",62),n_(10,"Enabled"),Sf(),za(11,"option",63),n_(12,"Disabled"),Sf()(),fT(13,Ge,2,1,"p",64),za(14,"p",65),n_(15),Sf()();}if(o&2){let e=t.$implicit,n=MT(4);yb(),uc("for","built-in-"+e.type),yb(2),Iv(e.displayName),yb(3),tv("id","built-in-"+e.type)("value",e.state()),yb(2),Iv(n.builtInDefaultLabel(e)),yb(5),hT(e.state()==="on"&&e.restrictedTools?13:-1),yb(2),Iv(e.description);}}function je(o,t){if(o&1&&(za(0,"p",59),n_(1,"Built-in integrations"),Sf(),mT(2,Ue,16,7,"div",52,De)),o&2){let e=MT(3);yb(2),yT(e.builtInRows());}}function We(o,t){o&1&&(za(0,"p",53),n_(1," This agent can read the AgentOS configuration and also has a network integration or sub-agents: what it reads could be sent outside without any confirmation. Prefer a dedicated configuration agent without them. "),Sf());}function Je(o,t){if(o&1&&(za(0,"fieldset",20)(1,"legend",22),n_(2,"Integrations"),Sf(),za(3,"p",51),n_(4," Select which integrations this agent can use. Leave tool names empty to allow all tools from an integration. "),Sf(),mT(5,$e,7,4,"div",52,Fe),fT(7,je,4,0),fT(8,We,2,0,"p",53),Sf()),o&2){let e=MT(2);yb(5),yT(e.integrationRows()),yb(2),hT(e.builtInRows().length>0?7:-1),yb(),hT(e.configAgentExposureWarning()?8:-1);}}function Ke(o,t){o&1&&n_(0," A platform config can only list platform skills here: namespace skills are resolved per namespace when the agent runs. ");}function Ye(o,t){o&1&&(za(0,"p",29),n_(1," Saving with this on replaces the selection below with "),za(2,"code",24),n_(3,"*"),Sf(),n_(4,". "),Sf());}function He(o,t){o&1&&(za(0,"p",29),n_(1," The skill catalogue could not be loaded. What this agent already declares is listed below and preserved on save. "),Sf());}function qe(o,t){o&1&&(za(0,"p",30),n_(1,"No skill available in this scope yet."),Sf());}function Xe(o,t){o&1&&(za(0,"span",69),n_(1,"platform"),Sf());}function Qe(o,t){if(o&1&&(za(0,"span",70),n_(1),Sf()),o&2){let e=MT(4);yb(),xf(" ",e.skillCatalogueUnavailable()?"not verified":"no matching skill"," ");}}function Ze(o,t){if(o&1&&(za(0,"p",71),n_(1),Sf()),o&2){let e=MT().$implicit;yb(),Iv(e.description);}}function et(o,t){if(o&1){let e=CT();za(0,"div",66)(1,"label",67)(2,"input",68),dc("change",function(){let s=sg(e).$implicit,c=MT(3);return ag(c.toggleSkill(s))}),Sf(),za(3,"span",27),n_(4),Sf(),fT(5,Xe,2,0,"span",69),fT(6,Qe,2,1,"span",70),Sf(),fT(7,Ze,2,1,"p",71),Sf();}if(o&2){let e=t.$implicit,n=MT(3);yb(2),tv("checked",e.selected())("disabled",n.allSkillsSelected()),yb(2),Iv(e.name),yb(),hT(e.platform?5:-1),yb(),hT(e.unresolved?6:-1),yb(),hT(e.description?7:-1);}}function tt(o,t){if(o&1&&mT(0,et,8,6,"div",66,Ie),o&2){let e=MT(2);yT(e.skillRows());}}function nt(o,t){o&1&&(za(0,"p",74),n_(1,"Invalid JSON \u2014 please fix the syntax."),Sf());}function ot(o,t){if(o&1&&(za(0,"div",10)(1,"label",72),n_(2,"Loop configuration (JSON)"),Sf(),lc(3,"textarea",73),iS(),fT(4,nt,2,0,"p",74),za(5,"p",28),n_(6," Default payload for this loop agent. Overridden at launch time if the first message contains a valid "),za(7,"code",24),n_(8,"AgentLoopPayload"),Sf(),n_(9,". Leave empty if you always provide the payload at launch. "),Sf()()),o&2){let e=MT(2);yb(3),tv("placeholder",e.loopConfigPlaceholder)("formControl",e.loopConfigControl),aS(),yb(),hT(e.loopConfigControl.invalid&&e.loopConfigControl.touched?4:-1);}}function it(o,t){o&1&&n_(0," A platform config can only list platform agents here: a namespace's agents are resolved per namespace when the agent runs. ");}function at(o,t){o&1&&(za(0,"p",29),n_(1," Saving with this on replaces the selection below with "),za(2,"code",24),n_(3,"*"),Sf(),n_(4,". "),Sf());}function rt(o,t){o&1&&(za(0,"p",29),n_(1," The list of agents could not be loaded. What this agent already declares is listed below and preserved on save. "),Sf());}function lt(o,t){o&1&&(za(0,"p",30),n_(1,"No other agent is available in this scope yet."),Sf());}function st(o,t){o&1&&(za(0,"span",69),n_(1,"pattern"),Sf());}function ct(o,t){o&1&&(za(0,"span",69),n_(1,"via pattern"),Sf());}function dt(o,t){if(o&1&&(za(0,"span",70),n_(1),Sf()),o&2){let e=MT(4);yb(),xf(" ",e.subAgentCandidatesUnavailable()?"not verified":"no matching agent"," ");}}function gt(o,t){if(o&1){let e=CT();za(0,"button",76),dc("click",function(){sg(e);let s=MT().$implicit,c=MT(3);return ag(c.removeSubAgent(s))}),n_(1," \u{1F5D1} "),Sf();}}function mt(o,t){if(o&1){let e=CT();za(0,"div",66)(1,"label",67)(2,"input",68),dc("change",function(){let s=sg(e).$implicit,c=MT(3);return ag(c.toggleSubAgent(s))}),Sf(),za(3,"span",27),n_(4),Sf(),fT(5,st,2,0,"span",69)(6,ct,2,0,"span",69)(7,dt,2,1,"span",70),fT(8,gt,2,0,"button",75),Sf()();}if(o&2){let e=t.$implicit,n=MT(3);yb(2),tv("checked",e.selected())("disabled",n.allSubAgentsSelected()),yb(2),Iv(e.name),yb(),hT(e.pattern?5:e.grantedByPattern?6:e.unresolved?7:-1),yb(3),hT(e.unresolved?8:-1);}}function ft(o,t){if(o&1&&mT(0,mt,9,5,"div",66,Ie),o&2){let e=MT(2);yT(e.subAgentRows());}}function ut(o,t){if(o&1&&n_(0),o&2){let e=MT(2);Cv(" : ",e.defaultDelegationTimeoutSeconds()," s (",e.defaultDelegationTimeoutSeconds()/60," min) ");}}function pt(o,t){o&1&&(za(0,"p",44),n_(1," Enter a valid positive whole number of seconds, or leave empty to inherit the server default. "),Sf());}function _t(o,t){if(o&1){let e=CT();za(0,"button",77),dc("click",function(){sg(e);let s=MT(2);return ag(s.useDefaultDelegationTimeout())}),n_(1," Use server default "),Sf();}}function Ct(o,t){o&1&&(za(0,"p",46),n_(1),Sf()),o&2&&(yb(),Iv(t));}function bt(o,t){if(o&1){let e=CT();za(0,"button",78),dc("click",function(){sg(e);let s=MT(2);return ag(s.exportYaml())}),n_(1),Sf();}if(o&2){let e=MT(2);tv("disabled",e.isExporting()),yb(),xf(" ",e.isExporting()?"Exporting\u2026":"Export as YAML"," ");}}function ht(o,t){if(o&1){let e=CT();za(0,"form",9),dc("ngSubmit",function(){sg(e);let s=MT();return ag(s.submit())}),za(1,"div",10)(2,"label",11),n_(3,"Name "),za(4,"span",12),n_(5,"*"),Sf()(),lc(6,"input",13),iS(),Sf(),za(7,"div",10)(8,"label",14),n_(9,"Description"),Sf(),lc(10,"input",15),iS(),Sf(),za(11,"div",10)(12,"label",16),n_(13,"Model name"),Sf(),lc(14,"input",17),iS(),Sf(),za(15,"div",10)(16,"label",18),n_(17,"Instructions"),Sf(),lc(18,"textarea",19),iS(),Sf(),fT(19,Je,9,2,"fieldset",20),za(20,"fieldset",21)(21,"legend",22),n_(22,"Skills"),Sf(),za(23,"p",23),n_(24," Instruction bundles this agent can read on demand. Selecting at least one grants it the "),za(25,"code",24),n_(26,"readSkill"),Sf(),n_(27," and "),za(28,"code",24),n_(29,"readSkillResource"),Sf(),n_(30," tools; selecting none grants neither. "),fT(31,Ke,1,0),Sf(),za(32,"label",25)(33,"input",26),dc("change",function(){sg(e);let s=MT();return ag(s.toggleAllSkills())}),Sf(),za(34,"span",27),n_(35," Every skill in the catalogue ("),za(36,"code",24),n_(37,"*"),Sf(),n_(38,") "),Sf()(),za(39,"p",28),n_(40," Resolved at run time, so skills added later are granted too, without editing this agent. "),Sf(),fT(41,Ye,5,0,"p",29),fT(42,He,2,0,"p",29),fT(43,qe,2,0,"p",30)(44,tt,2,0),Sf(),za(45,"div",10)(46,"label",31),n_(47,"Execution mode"),Sf(),za(48,"select",32)(49,"option",33),n_(50,"SIMPLE \u2014 Standard agent (single LLM call)"),Sf(),za(51,"option",33),n_(52,"ADVANCED \u2014 Multi-step reasoning loop"),Sf(),za(53,"option",33),n_(54,"LOOP \u2014 Bulk loop agent (no LLM, experimental)"),Sf()(),iS(),za(55,"p",28),n_(56,' SIMPLE runs a single LLM pass. ADVANCED uses an intention loop for complex tasks and requires a model that supports advanced execution, otherwise the agent fails to run. LOOP (experimental) starts one case per result of a tool, without an LLM \u2014 run it with "Launch loop" in the agent list menu. '),Sf()(),fT(57,ot,10,3,"div",10),za(58,"div",10)(59,"label",34),lc(60,"input",35),iS(),za(61,"span",36),n_(62,"Enabled"),Sf()(),za(63,"p",37),n_(64,"Disabled agents are excluded from namespace resolution."),Sf()(),za(65,"fieldset",21)(66,"legend",22),n_(67,"Sub-agents"),Sf(),za(68,"p",23),n_(69," The agents this one may delegate to. Selecting at least one grants it the "),za(70,"code",24),n_(71,"DELEGATE__delegate"),Sf(),n_(72," tool; selecting none grants it no way to delegate. Entries are matched against agent names, never ids. "),fT(73,it,1,0),Sf(),za(74,"label",25)(75,"input",26),dc("change",function(){sg(e);let s=MT();return ag(s.toggleAllSubAgents())}),Sf(),za(76,"span",27),n_(77," Every agent it can reach ("),za(78,"code",24),n_(79,"*"),Sf(),n_(80,") "),Sf()(),za(81,"p",28),n_(82," Resolved at run time, so agents added later can be delegated to as well, without editing this agent. "),Sf(),fT(83,at,5,0,"p",29),fT(84,rt,2,0,"p",29),fT(85,lt,2,0,"p",30)(86,ft,2,0),za(87,"p",28),n_(88," Advanced \u2014 add a glob instead of picking a name, for example "),za(89,"code",24),n_(90,"*Fixer"),Sf(),n_(91," to cover BugFixer and StoryFixer. "),Sf(),za(92,"div",38)(93,"input",39),dc("keydown.enter",function(){sg(e);let s=MT();return ag(s.addSubAgent())}),Sf(),iS(),za(94,"button",40),dc("click",function(){sg(e);let s=MT();return ag(s.addSubAgent())}),n_(95," + "),Sf()()(),za(96,"div",10)(97,"label",41),n_(98,"Delegation timeout (seconds)"),Sf(),za(99,"p",42),n_(100," How long each delegation launched by this agent waits without activity from the sub-agent, including its own delegations. When it runs out, the sub-agent and its active descendants are stopped and can be resumed. Leave empty to use the server default "),fT(101,ut,1,2),n_(102," . "),Sf(),lc(103,"input",43),iS(),fT(104,pt,2,0,"p",44),fT(105,_t,2,0,"button",45),Sf(),fT(106,Ct,2,1,"p",46),za(107,"div",47)(108,"button",48),n_(109),Sf(),fT(110,bt,2,2,"button",49),za(111,"button",50),dc("click",function(){sg(e);let s=MT();return ag(s.cancel())}),n_(112,"Cancel"),Sf()()();}if(o&2){let e,n=MT();tv("formGroup",n.form),yb(6),tv("formControl",n.nameControl),aS(),yb(4),tv("formControl",n.descriptionControl),aS(),yb(4),tv("formControl",n.modelNameControl),aS(),yb(4),tv("formControl",n.instructionsControl),aS(),yb(),hT(n.integrationRows().length>0||n.builtInRows().length>0?19:-1),yb(12),hT(n.isPlatformMode?31:-1),yb(2),tv("checked",n.allSkillsSelected()),yb(8),hT(n.namedSkillSelectionDropped()?41:-1),yb(),hT(n.skillCatalogueUnavailable()?42:-1),yb(),hT(n.skillRows().length===0?43:44),yb(5),tv("formControl",n.executionModeControl),aS(),yb(),tv("value",n.ExecutionMode.SIMPLE),yb(2),tv("value",n.ExecutionMode.ADVANCED),yb(2),tv("value",n.ExecutionMode.LOOP),yb(4),hT(n.isLoopMode()?57:-1),yb(3),tv("formControl",n.enabledControl),aS(),yb(13),hT(n.isPlatformMode?73:-1),yb(2),tv("checked",n.allSubAgentsSelected()),yb(8),hT(n.namedSubAgentSelectionDropped()?83:-1),yb(),hT(n.subAgentCandidatesUnavailable()?84:-1),yb(),hT(n.subAgentRows().length===0?85:86),yb(8),tv("formControl",n.newSubAgentControl),aS(),yb(),tv("disabled",!n.newSubAgentControl.value.trim()),yb(7),hT(n.defaultDelegationTimeoutSeconds()!==null?101:-1),yb(2),tv("formControl",n.delegationTimeoutControl),uc("aria-invalid",n.delegationTimeoutControl.invalid),aS(),yb(),hT(n.delegationTimeoutControl.invalid?104:-1),yb(),hT(n.delegationTimeoutControl.value!==null?105:-1),yb(),hT((e=n.submitError())?106:-1,e),yb(2),tv("disabled",n.form.invalid||n.isSubmitting()),yb(),xf(" ",n.isEditMode()?"Save changes":"Create"," "),yb(),hT(n.isEditMode()?110:-1);}}var Pe=class o$2{route=p($t);router=p(It);destroyRef=p(Me$1);agentConfigController=p($$1);defaultsController=p(U);defaultDelegationTimeoutSeconds=se(null);exportService=p(Y);integrationConfigState=p(O);integrationTypeController=p(W);skillState=p(o);namespaceId=this.route.snapshot.params.namespaceId;isPlatformMode=!this.namespaceId;form=new $$2({name:new vt("",{nonNullable:true,validators:[ve.required,ve.minLength(1)]}),description:new vt(null),modelName:new vt(null),instructions:new vt(null),executionMode:new vt("SIMPLE",{nonNullable:true}),delegationTimeoutSeconds:new vt(null,{validators:[ve.min(1),ve.max(2147483647),ve.pattern(/^\d+$/)]}),enabled:new vt(false,{nonNullable:true}),loopConfig:new vt(null,{validators:[o$2.jsonValidator]})});static jsonValidator(t){let e=t.value?.trim();if(!e)return null;try{return JSON.parse(e),null}catch(n){return {invalidJson:true}}}get nameControl(){return this.form.controls.name}get descriptionControl(){return this.form.controls.description}get modelNameControl(){return this.form.controls.modelName}get instructionsControl(){return this.form.controls.instructions}get executionModeControl(){return this.form.controls.executionMode}get delegationTimeoutControl(){return this.form.controls.delegationTimeoutSeconds}useDefaultDelegationTimeout(){this.delegationTimeoutControl.setValue(null),this.delegationTimeoutControl.markAsDirty();}get enabledControl(){return this.form.controls.enabled}get loopConfigControl(){return this.form.controls.loopConfig}executionModeValue=F(this.form.controls.executionMode.valueChanges,{initialValue:this.form.controls.executionMode.value});isLoopMode=Mi(()=>this.executionModeValue()==="LOOP");subAgentRows=se([]);allSubAgentsSelected=se(false);subAgentCandidatesUnavailable=se(false);namedSubAgentSelectionDropped=Mi(()=>this.allSubAgentsSelected()&&this.subAgentRows().some(t=>t.selected()));hasAnySubAgent=Mi(()=>this.allSubAgentsSelected()||this.subAgentRows().some(t=>t.selected()));newSubAgentControl=new vt("",{nonNullable:true});isEditMode=se(false);isSubmitting=se(false);isLoading=se(false);isExporting=se(false);submitError=se(null);ExecutionMode=we;loopConfigPlaceholder=JSON.stringify({search:{tool:"SearchTalents",params:{talentId:["6ac76692a909eaaae0b078d6"],resolveTargets:["MANAGER"],next:null}},act:{agentName:"ProfileCaretaker",promptTemplate:"This talent has not completed their profile. As their manager, I need you to help me review and improve it."}},null,2);builtInRows=se([]);inspectRoute(){let t=this.route.snapshot.paramMap.get("agentConfigId")??"";return this.isPlatformMode?["/agentos","admin","agent-configs",t,"inspect"]:["/agentos",this.namespaceId,"agent-configs",t,"inspect"]}configAgentExposureWarning=Mi(()=>Te({configEnabled:this.builtInRows().some(t=>t.type===Me&&t.state()==="on"),integrationTypes:this.integrationRows().filter(t=>t.enabled()).map(t=>t.config.integrationType),hasSubAgents:this.hasAnySubAgent()}));integrationRows=se([]);skillRows=se([]);allSkillsSelected=se(false);skillCatalogueUnavailable=se(false);namedSkillSelectionDropped=Mi(()=>this.allSkillsSelected()&&this.skillRows().some(t=>t.selected()));existingConfig=null;ngOnInit(){this.defaultsController.getAgentConfigDefaults().pipe(U$1(this.destroyRef),Wn(()=>_(null))).subscribe(e=>this.defaultDelegationTimeoutSeconds.set(e?.delegationTimeoutSeconds??null));let t=this.route.snapshot.paramMap.get("agentConfigId");t?(this.isEditMode.set(true),this.loadConfigAndIntegrations(t)):this.loadIntegrations(void 0);}loadConfigAndIntegrations(t){this.isLoading.set(true),pw({config:this.agentConfigController.getByIdAgentConfig(t),namespaceIntegrations:this.namespaceId?this.integrationConfigState.loadNamespaceConfigs(this.namespaceId):_([]),platformIntegrations:this.integrationConfigState.loadPlatformConfigs(),builtInTypes:this.loadBuiltInTypes(),skillCatalogue:this.loadSkillCatalogue(),delegationCandidates:this.loadDelegationCandidates()}).pipe(U$1(this.destroyRef)).subscribe({next:({config:e,namespaceIntegrations:n,platformIntegrations:s,builtInTypes:c,skillCatalogue:C,delegationCandidates:v})=>{this.existingConfig=e,this.nameControl.setValue(e.name),this.descriptionControl.setValue(e.description??null),this.modelNameControl.setValue(e.modelName??null),this.instructionsControl.setValue(e.instructions??null);let P=e.executionMode??(e.advancedExecution?"ADVANCED":"SIMPLE");this.executionModeControl.setValue(P),this.delegationTimeoutControl.setValue(e.delegationTimeoutSeconds??null),this.enabledControl.setValue(e.enabled??true),this.loopConfigControl.setValue(e.loopConfig!=null?JSON.stringify(e.loopConfig,null,2):null);let _=[...s,...n];this.integrationRows.set(this.buildIntegrationRows(_,e.integrations??void 0)),this.builtInRows.set(this.buildBuiltInRows(c,e.integrations??void 0)),this.allSubAgentsSelected.set(ke(e.subAgents)),this.subAgentRows.set(this.buildSubAgentRows(v,e.subAgents,e.name)),this.allSkillsSelected.set(o$1(e.skillSelectors)),this.skillRows.set(this.buildSkillRows(C,e.skillSelectors)),this.isLoading.set(false);},error:()=>{this.isLoading.set(false),this.navigateBack();}});}loadIntegrations(t){pw({namespaceIntegrations:this.namespaceId?this.integrationConfigState.loadNamespaceConfigs(this.namespaceId):_([]),platformIntegrations:this.integrationConfigState.loadPlatformConfigs(),builtInTypes:this.loadBuiltInTypes(),skillCatalogue:this.loadSkillCatalogue(),delegationCandidates:this.loadDelegationCandidates()}).pipe(U$1(this.destroyRef)).subscribe({next:({namespaceIntegrations:e,platformIntegrations:n,builtInTypes:s,skillCatalogue:c,delegationCandidates:C})=>{let v=[...n,...e];this.integrationRows.set(this.buildIntegrationRows(v,t??void 0)),this.builtInRows.set(this.buildBuiltInRows(s,t??void 0)),this.allSubAgentsSelected.set(false),this.subAgentRows.set(this.buildSubAgentRows(C,void 0,null)),this.allSkillsSelected.set(false),this.skillRows.set(this.buildSkillRows(c,void 0));}});}loadSkillCatalogue(){return (this.namespaceId?this.skillState.listEffective(this.namespaceId):this.skillState.listPlatform().pipe(j(e=>e.map(n=>({id:n.id??"",name:n.name,description:n.description,namespaceId:n.namespaceId??null,readOnly:n.readOnly===true}))))).pipe(Wn(e=>(console.error("[agent-config-form] failed to load the skill catalogue",e),this.skillCatalogueUnavailable.set(true),_([]))))}buildSkillRows(t,e){let s=(e??[]).map(_=>_.trim()).filter(_=>_.length>0).filter(_=>_!==r),c=i(s),C=new Set(t.map(_=>_.name.toLowerCase())),v=t.map(_=>({selector:_.name,name:_.name,description:_.description,platform:_.namespaceId==null,unresolved:false,selected:se(c.has(_.name.toLowerCase()))})),P=new Set;for(let _ of s){let u=l(_).toLowerCase();C.has(u)||P.has(u)||(P.add(u),v.push({selector:_,name:_,description:"",platform:false,unresolved:true,selected:se(true)}));}return v}toggleSkill(t){t.selected.update(e=>!e);}toggleAllSkills(){this.allSkillsSelected.update(t=>!t);}buildSkillSelectorsPayload(){if(this.allSkillsSelected())return [r];let t=this.skillRows().filter(e=>e.selected()).map(e=>e.selector);return t.length>0?t:void 0}loadDelegationCandidates(){let t=this.agentConfigController.listPlatformAgentsAgentConfig(false);return (this.namespaceId?pw({namespace:this.agentConfigController.listByParentAgentConfig(this.namespaceId,false),platform:t}).pipe(j(({namespace:n,platform:s})=>[...s,...n])):t).pipe(j(n=>n.map(s=>s.name).filter(s=>s.length>0)),j(n=>[...new Set(n)]),Wn(n=>(console.error("[agent-config-form] failed to load the delegation candidates",n),this.subAgentCandidatesUnavailable.set(true),_([]))))}buildSubAgentRows(t,e,n){let s=t.filter(u=>u!==n),c=Ee(e),C=new Set(s.map(u=>u.toLowerCase())),v=s.map(u=>({selector:u,name:u,unresolved:false,pattern:false,grantedByPattern:K(u,e),selected:se(c.has(u.toLowerCase()))})),P=new Set,_=(e??[]).map(u=>u.trim()).filter(u=>u.length>0&&u!==T);for(let u of _){let G=u.toLowerCase();C.has(G)||P.has(G)||(P.add(G),v.push({selector:u,name:u,unresolved:true,pattern:$(u),grantedByPattern:false,selected:se(true)}));}return v}loadBuiltInTypes(){return this.integrationTypeController.listTypesIntegrationType().pipe(j(t=>t.filter(e=>!e.configSchema)),Wn(t=>(console.error("[agent-config-form] failed to load integration types",t),_([]))))}buildIntegrationRows(t,e){return t.map(n=>{let s=n.name??"",c=e?.[s],C=e!=null&&s in e,v=Array.isArray(c)?c.join(", "):"";return {config:n,enabled:se(C),toolsControl:new vt(v,{nonNullable:true})}})}buildBuiltInRows(t,e){return t.map(n=>{let s=e!=null&&n.type in e,c=e?.[n.type],C=s?Array.isArray(c)&&c.length===0?"off":"on":"default";return {type:n.type,displayName:n.displayName,description:n.description,enabledByDefault:n.enabledByDefault===true,state:se(C),restrictedTools:Array.isArray(c)&&c.length>0?c:null}})}toggleIntegration(t){t.enabled.update(e=>!e);}setBuiltInState(t,e){t.state.set(e);}builtInDefaultLabel(t){return t.enabledByDefault?"Platform default (enabled)":"Platform default (disabled)"}addSubAgent(){let t=this.newSubAgentControl.value.trim();if(!t)return;let e=this.subAgentRows().find(n=>n.selector.toLowerCase()===t.toLowerCase());e?e.selected.set(true):t===T?this.allSubAgentsSelected.set(true):this.subAgentRows.update(n=>[...n.map(s=>s.unresolved||s.grantedByPattern||!K(s.name,[t])?s:x(w({},s),{grantedByPattern:true})),{selector:t,name:t,unresolved:true,pattern:$(t),grantedByPattern:false,selected:se(true)}]),this.newSubAgentControl.reset("");}removeSubAgent(t){this.subAgentRows.update(e=>e.filter(n=>n!==t));}toggleSubAgent(t){t.selected.update(e=>!e);}toggleAllSubAgents(){this.allSubAgentsSelected.update(t=>!t);}buildSubAgentsPayload(){if(this.allSubAgentsSelected())return [T];let t=this.subAgentRows().filter(e=>e.selected()).map(e=>e.selector);return t.length>0?t:void 0}buildIntegrationsPayload(){let t={};for(let n of this.integrationRows().filter(s=>s.enabled())){let s=n.config.name??"",c=n.toolsControl.value.trim();t[s]=c===""?null:c.split(",").map(C=>C.trim()).filter(C=>C.length>0);}for(let n of this.builtInRows()){let s=n.state();s==="on"?t[n.type]=n.restrictedTools??null:s==="off"&&(t[n.type]=[]);}let e=new Set([...this.integrationRows().map(n=>n.config.name??""),...this.builtInRows().map(n=>n.type)]);for(let[n,s]of Object.entries(this.existingConfig?.integrations??{}))e.has(n)||(t[n]=s);return Object.keys(t).length>0?t:void 0}submit(){if(this.form.invalid||this.isSubmitting())return;this.addSubAgent(),this.submitError.set(null),this.isSubmitting.set(true);let t=x(w({},this.existingConfig??{}),{createdOn:this.existingConfig?.createdOn,updatedOn:this.existingConfig?.updatedOn,namespaceId:this.namespaceId,name:this.nameControl.value.trim(),description:this.descriptionControl.value?.trim()||void 0,modelName:this.modelNameControl.value?.trim()||void 0,instructions:this.instructionsControl.value?.trim()||void 0,integrations:this.buildIntegrationsPayload(),executionMode:this.executionModeControl.value,advancedExecution:this.executionModeControl.value==="ADVANCED",enabled:this.enabledControl.value,subAgents:this.buildSubAgentsPayload(),skillSelectors:this.buildSkillSelectorsPayload(),delegationTimeoutSeconds:this.delegationTimeoutControl.value,loopConfig:this.buildLoopConfigPayload()});(this.isEditMode()?this.agentConfigController.updateAgentConfig(this.existingConfig.id??"",t):this.agentConfigController.createAgentConfig(t)).pipe(U$1(this.destroyRef)).subscribe({next:()=>this.navigateBack(),error:n=>{this.isSubmitting.set(false),this.submitError.set(o$2.serverMessage(n));}});}static serverMessage(t){let n=t?.error?.message;return typeof n=="string"&&n.trim().length>0?n:"The server refused the save and gave no reason. Check the values and try again."}exportYaml(){let t=this.existingConfig?.id;!t||this.isExporting()||(this.isExporting.set(true),this.exportService.exportAsYaml(t).pipe(U$1(this.destroyRef)).subscribe({next:e=>{let n=new Blob([e],{type:"application/yaml"}),s=URL.createObjectURL(n),c=document.createElement("a");c.href=s,c.download=`${this.existingConfig?.name??"agent"}.yaml`,c.click(),URL.revokeObjectURL(s),this.isExporting.set(false);},error:()=>this.isExporting.set(false)}));}buildLoopConfigPayload(){let t=this.loopConfigControl.value?.trim();if(!t)return this.existingConfig?.loopConfig!=null?null:void 0;try{return JSON.parse(t)}catch(e){return}}cancel(){this.navigateBack();}navigateBack(){this.isPlatformMode?this.router.navigate(["/agentos","admin","agent-configs"]):this.router.navigate(["/agentos",this.namespaceId,"agent-configs"]);}static \u0275fac=function(e){return new(e||o$2)};static \u0275cmp=Ef({type:o$2,selectors:[["agentos-agent-config-form"]],decls:12,vars:4,consts:[[1,"agent-config-form"],[1,"agent-config-form__header"],["type","button","title","Back to agent configs",1,"agent-config-form__back",3,"click"],[1,"agent-config-form__back-icon"],[1,"agent-config-form__title"],[1,"agent-config-form__sibling-link",3,"routerLink"],[1,"agent-config-form__platform-badge"],[1,"agent-config-form__loading"],[1,"agent-config-form__form",3,"formGroup"],[1,"agent-config-form__form",3,"ngSubmit","formGroup"],[1,"agent-config-form__field"],["for","agent-config-name",1,"agent-config-form__label"],["aria-hidden","true"],["id","agent-config-name","type","text","placeholder","e.g. Support agent","autocomplete","off",1,"agent-config-form__input",3,"formControl"],["for","agent-config-description",1,"agent-config-form__label"],["id","agent-config-description","type","text","placeholder","Optional \u2014 short description of this agent","autocomplete","off",1,"agent-config-form__input",3,"formControl"],["for","agent-config-model-name",1,"agent-config-form__label"],["id","agent-config-model-name","type","text","placeholder","Optional \u2014 model alias or name to use","autocomplete","off",1,"agent-config-form__input",3,"formControl"],["for","agent-config-instructions",1,"agent-config-form__label"],["id","agent-config-instructions","rows","6","placeholder","Optional \u2014 system instructions for this agent",1,"agent-config-form__textarea",3,"formControl"],[1,"agent-config-form__integrations"],[1,"agent-config-form__skills"],[1,"agent-config-form__label"],[1,"agent-config-form__skills-hint"],[1,"agent-config-form__code"],[1,"agent-config-form__skill-all"],["type","checkbox",1,"agent-config-form__skill-checkbox",3,"change","checked"],[1,"agent-config-form__skill-name"],[1,"agent-config-form__field-hint"],["role","alert",1,"agent-config-form__skills-warning"],[1,"agent-config-form__skills-empty"],["for","agent-config-execution-mode",1,"agent-config-form__label"],["id","agent-config-execution-mode",1,"agent-config-form__select",3,"formControl"],[3,"value"],[1,"agent-config-form__toggle-label"],["type","checkbox",1,"agent-config-form__toggle-checkbox",3,"formControl"],[1,"agent-config-form__toggle-text"],[1,"agent-config-form__toggle-hint"],[1,"agent-config-form__sub-agent-add"],["type","text","placeholder","e.g. *Fixer","autocomplete","off",1,"agent-config-form__input","agent-config-form__sub-agent-input",3,"keydown.enter","formControl"],["type","button","title","Add pattern",1,"agent-config-form__sub-agent-btn","agent-config-form__sub-agent-btn--add",3,"click","disabled"],["for","delegation-timeout",1,"agent-config-form__label"],["id","delegation-timeout-hint",1,"agent-config-form__field-hint"],["id","delegation-timeout","type","number","min","1","max","2147483647","step","1","placeholder","Server default","aria-describedby","delegation-timeout-hint delegation-timeout-error",1,"agent-config-form__input",3,"formControl"],["id","delegation-timeout-error","role","alert",1,"agent-config-form__field-hint"],["type","button",1,"agent-config-form__sub-agent-btn"],["role","alert",1,"agent-config-form__submit-error"],[1,"agent-config-form__actions"],["type","submit",1,"agent-config-form__btn","agent-config-form__btn--primary",3,"disabled"],["type","button",1,"agent-config-form__btn","agent-config-form__btn--export",3,"disabled"],["type","button",1,"agent-config-form__btn",3,"click"],[1,"agent-config-form__integrations-hint"],[1,"agent-config-form__integration-row"],["role","note",1,"agent-config-form__integration-warning"],[1,"agent-config-form__integration-toggle"],["type","checkbox",1,"agent-config-form__integration-checkbox",3,"change","checked"],[1,"agent-config-form__integration-name"],[1,"agent-config-form__integration-type"],["type","text","placeholder","Tool names, comma-separated (empty = all tools)","autocomplete","off",1,"agent-config-form__input","agent-config-form__integration-tools",3,"formControl"],[1,"agent-config-form__integrations-separator"],[1,"agent-config-form__integration-state",3,"change","id","value"],["value","default"],["value","on"],["value","off"],[1,"agent-config-form__integration-restriction"],[1,"agent-config-form__integration-builtin-desc"],[1,"agent-config-form__skill-row"],[1,"agent-config-form__skill-toggle"],["type","checkbox",1,"agent-config-form__skill-checkbox",3,"change","checked","disabled"],[1,"agent-config-form__skill-badge"],[1,"agent-config-form__skill-badge","agent-config-form__skill-badge--unresolved"],[1,"agent-config-form__skill-desc"],["for","agent-config-loop-config",1,"agent-config-form__label"],["id","agent-config-loop-config","rows","10","spellcheck","false","autocomplete","off",1,"agent-config-form__textarea","agent-config-form__textarea--mono",3,"placeholder","formControl"],["role","alert",1,"agent-config-form__field-error"],["type","button","title","Remove",1,"agent-config-form__sub-agent-btn","agent-config-form__sub-agent-btn--danger"],["type","button","title","Remove",1,"agent-config-form__sub-agent-btn","agent-config-form__sub-agent-btn--danger",3,"click"],["type","button",1,"agent-config-form__sub-agent-btn",3,"click"],["type","button",1,"agent-config-form__btn","agent-config-form__btn--export",3,"click","disabled"]],template:function(e,n){e&1&&(za(0,"div",0)(1,"header",1)(2,"button",2),dc("click",function(){return n.cancel()}),za(3,"span",3),n_(4,"\u2190"),Sf(),n_(5," Agent Configs "),Sf(),za(6,"h1",4),n_(7),Sf(),fT(8,Ne,2,1,"a",5),fT(9,Le,2,0,"span",6),Sf(),fT(10,Ve,2,0,"p",7)(11,ht,113,33,"form",8),Sf()),e&2&&(yb(7),Iv(n.isEditMode()?"Edit agent config":"New agent config"),yb(),hT(n.isEditMode()?8:-1),yb(),hT(n.isPlatformMode?9:-1),yb(),hT(n.isLoading()?10:11));},dependencies:[Kn,zn,Zn,Xn,Ye$1,dn,Ft,bt$1,Ln,Wn$1,qt,Lt,pn,Vn,pu],styles:[".agent-config-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;max-width:560px;margin:0 auto;padding:2rem 1rem}.agent-config-form__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.agent-config-form__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-accent)}.agent-config-form__back[_ngcontent-%COMP%]:hover{text-decoration:underline}.agent-config-form__back-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1}.agent-config-form__title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:700;color:var(--color-text);letter-spacing:-.02em}.agent-config-form__sibling-link[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--color-accent);text-decoration:none}.agent-config-form__sibling-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.agent-config-form__platform-badge[_ngcontent-%COMP%]{display:inline-block;font-size:.75rem;font-weight:500;color:var(--color-text-secondary);background:var(--color-surface);border:1px solid var(--color-divider);border-radius:var(--radius-pill, 0);padding:.125rem .5rem;letter-spacing:.02em;align-self:flex-start}.agent-config-form__loading[_ngcontent-%COMP%]{color:var(--color-text-secondary);font-size:.9rem;margin:0}.agent-config-form__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.agent-config-form__field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.agent-config-form__label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:var(--color-text)}.agent-config-form__input[_ngcontent-%COMP%], .agent-config-form__textarea[_ngcontent-%COMP%]{width:100%;padding:.625rem .875rem;border-radius:var(--radius-md, 0);border:1px solid var(--color-divider);background:var(--color-surface);color:var(--color-text);font-size:.9375rem;font-family:inherit;outline:none;box-sizing:border-box;transition:border-color .15s ease}.agent-config-form__input[_ngcontent-%COMP%]:focus, .agent-config-form__textarea[_ngcontent-%COMP%]:focus{border-color:var(--color-accent)}.agent-config-form__input[_ngcontent-%COMP%]::placeholder, .agent-config-form__textarea[_ngcontent-%COMP%]::placeholder{color:var(--color-neutral-500)}.agent-config-form__textarea[_ngcontent-%COMP%]{resize:vertical;min-height:120px;line-height:1.5}.agent-config-form__textarea--mono[_ngcontent-%COMP%]{font-family:monospace;font-size:.8125rem}.agent-config-form__submit-error[_ngcontent-%COMP%]{margin:1rem 0 0;padding:.625rem .875rem;border:1px solid var(--color-error, var(--red, #dc2626));font-size:.85rem;color:var(--color-error, var(--red, #dc2626));line-height:1.5}.agent-config-form__field-error[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:.8rem;color:var(--color-error, var(--red, #dc2626));line-height:1.4}.agent-config-form__select[_ngcontent-%COMP%]{width:100%;padding:.625rem .875rem;border-radius:var(--radius-md, 0);border:1px solid var(--color-divider);background:var(--color-surface);color:var(--color-text);font-size:.9375rem;font-family:inherit;outline:none;box-sizing:border-box;cursor:pointer;transition:border-color .15s ease;appearance:auto}.agent-config-form__select[_ngcontent-%COMP%]:focus{border-color:var(--color-accent)}.agent-config-form__integrations[_ngcontent-%COMP%]{border:1px solid var(--color-divider);border-radius:var(--radius-md, 0);padding:1rem;margin:0;display:flex;flex-direction:column;gap:.75rem}.agent-config-form__integrations-hint[_ngcontent-%COMP%]{margin:0;font-size:.8rem;color:var(--color-text-secondary);line-height:1.4}.agent-config-form__integration-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.agent-config-form__integration-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.agent-config-form__integration-checkbox[_ngcontent-%COMP%]{width:1rem;height:1rem;flex-shrink:0;accent-color:var(--color-accent);cursor:pointer}.agent-config-form__integration-name[_ngcontent-%COMP%]{font-size:.9rem;font-weight:500;color:var(--color-text)}.agent-config-form__integration-type[_ngcontent-%COMP%]{font-size:.75rem;color:var(--color-text-secondary);font-family:monospace}.agent-config-form__integration-tools[_ngcontent-%COMP%]{margin-left:1.5rem;font-size:.875rem}.agent-config-form__integrations-separator[_ngcontent-%COMP%]{margin:.25rem 0 0;padding-top:.5rem;border-top:1px solid var(--color-divider);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.12em;color:var(--color-neutral-500);font-family:var(--font-heading)}.agent-config-form__integration-state[_ngcontent-%COMP%]{margin-left:1.5rem;padding:.375rem .625rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .1));background:transparent;color:var(--color-text, #1d1d1f);font-size:.875rem;font-family:inherit;outline:none;transition:border-color .15s ease}.agent-config-form__integration-state[_ngcontent-%COMP%]:focus{border-color:var(--color-primary, #007aff)}.agent-config-form__integration-warning[_ngcontent-%COMP%]{margin:.5rem 0 0;font-size:.8rem;color:var(--color-warning, #b25000);line-height:1.4}.agent-config-form__integration-restriction[_ngcontent-%COMP%]{margin:0 0 0 1.5rem;font-size:.8rem;font-style:italic;color:var(--color-text-secondary, #6e6e73);line-height:1.4}.agent-config-form__integration-builtin-desc[_ngcontent-%COMP%]{margin:0 0 0 1.5rem;font-size:.8rem;color:var(--color-text-secondary);line-height:1.4}.agent-config-form__skills[_ngcontent-%COMP%]{border:1px solid var(--color-divider);border-radius:var(--radius-md, 0);padding:1rem;margin:0;display:flex;flex-direction:column;gap:.5rem}.agent-config-form__skills-hint[_ngcontent-%COMP%]{margin:0;font-size:.8rem;color:var(--color-text-secondary);line-height:1.4}.agent-config-form__skills-warning[_ngcontent-%COMP%]{margin:0;font-size:.8rem;line-height:1.4;color:var(--color-error, var(--red, #dc2626))}.agent-config-form__skills-empty[_ngcontent-%COMP%]{margin:0;font-size:.8rem;font-style:italic;color:var(--color-text-secondary)}.agent-config-form__skill-all[_ngcontent-%COMP%], .agent-config-form__skill-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;cursor:pointer}.agent-config-form__skill-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.agent-config-form__skill-checkbox[_ngcontent-%COMP%]{flex:0 0 auto}.agent-config-form__skill-name[_ngcontent-%COMP%]{font-size:.875rem}.agent-config-form__skill-badge[_ngcontent-%COMP%]{font-size:.75rem;font-family:monospace;color:var(--color-text-secondary)}.agent-config-form__skill-badge--unresolved[_ngcontent-%COMP%]{color:var(--color-error, var(--red, #dc2626))}.agent-config-form__skill-desc[_ngcontent-%COMP%]{margin:0 0 0 1.5rem;font-size:.8rem;color:var(--color-text-secondary);line-height:1.4}.agent-config-form__field-hint[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:.8rem;color:var(--color-text-secondary);line-height:1.4}.agent-config-form__code[_ngcontent-%COMP%]{font-family:monospace;font-size:.85em;background:var(--color-surface-muted, rgba(0, 0, 0, .06));padding:.1em .3em;border-radius:0}.agent-config-form__sub-agent-list[_ngcontent-%COMP%]{list-style:none;margin:.5rem 0 0;padding:0;display:flex;flex-direction:column;gap:.375rem}.agent-config-form__sub-agent-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.375rem}.agent-config-form__sub-agent-input[_ngcontent-%COMP%]{flex:1;min-width:0}.agent-config-form__sub-agent-add[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.375rem;margin-top:.5rem}.agent-config-form__sub-agent-btn[_ngcontent-%COMP%]{flex-shrink:0;width:2rem;height:2rem;padding:0;border-radius:var(--radius-sm, 0);border:1px solid var(--color-divider);background:transparent;color:var(--color-text-secondary);font-size:.9rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s ease,border-color .15s ease,color .15s ease}.agent-config-form__sub-agent-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-bg-hover);border-color:var(--color-neutral-500);color:var(--color-text)}.agent-config-form__sub-agent-btn[_ngcontent-%COMP%]:disabled{opacity:.35;cursor:not-allowed}.agent-config-form__sub-agent-btn--add[_ngcontent-%COMP%]{width:2rem;height:2rem;font-size:1.25rem;font-weight:300;border-color:var(--color-accent);color:var(--color-accent)}.agent-config-form__sub-agent-btn--add[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-accent);color:#fff}.agent-config-form__sub-agent-btn--danger[_ngcontent-%COMP%]{border:1px solid transparent;color:var(--color-neutral-500)}.agent-config-form__sub-agent-btn--danger[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--red);color:var(--red);background:color-mix(in srgb,var(--red) 10%,transparent)}.agent-config-form__toggle-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.agent-config-form__toggle-checkbox[_ngcontent-%COMP%]{width:1rem;height:1rem;flex-shrink:0;accent-color:var(--color-accent);cursor:pointer}.agent-config-form__toggle-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:500;color:var(--color-text)}.agent-config-form__toggle-hint[_ngcontent-%COMP%]{margin:.25rem 0 0 1.5rem;font-size:.8rem;color:var(--color-text-secondary);line-height:1.4}.agent-config-form__actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;padding-top:.5rem}.agent-config-form__btn[_ngcontent-%COMP%]{padding:.6rem 1.25rem;border-radius:var(--radius-pill, 0);border:1px solid var(--color-divider);background:transparent;color:var(--color-text);font-size:13px;font-family:var(--font-heading);font-weight:600;cursor:pointer;transition:background .15s ease,border-color .15s ease}.agent-config-form__btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-bg-hover);border-color:var(--color-neutral-500)}.agent-config-form__btn[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}.agent-config-form__btn--primary[_ngcontent-%COMP%]{background:var(--color-accent);border-color:var(--color-accent);color:#fff}.agent-config-form__btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-accent-700);border-color:var(--color-accent-700)}"]})};export{Pe as AgentConfigFormComponent};
@@ -1 +0,0 @@
1
- import {a8 as Ae,aE as gw,af as Wn,a3 as _}from'./main-ITBV6BE5.js';function i(t,o,p){return t.pipe(Ae(()=>o().pipe(Wn(()=>_(p)))),gw({bufferSize:1,refCount:true}))}export{i};