hive-am 1.2.2 → 1.3.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 (110) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/package.json +1 -1
  3. package/server/dist/context.js +62 -0
  4. package/server/dist/db/migrations.js +7 -0
  5. package/server/dist/db.js +4 -4
  6. package/server/dist/history/claude.js +8 -2
  7. package/server/dist/http/routes/agents.js +1 -1
  8. package/server/dist/http/validate.js +2 -0
  9. package/server/dist/instructions.js +4 -0
  10. package/server/dist/models.js +2 -0
  11. package/server/dist/providers/claude.js +13 -1
  12. package/server/dist/providers/opencode-server.js +59 -0
  13. package/server/dist/providers/opencode.js +4 -1
  14. package/server/dist/stats.js +15 -3
  15. package/web/.next/BUILD_ID +1 -1
  16. package/web/.next/app-build-manifest.json +70 -70
  17. package/web/.next/app-path-routes-manifest.json +7 -7
  18. package/web/.next/build-manifest.json +2 -2
  19. package/web/.next/prerender-manifest.json +49 -49
  20. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  21. package/web/.next/server/app/_not-found.html +1 -1
  22. package/web/.next/server/app/_not-found.rsc +3 -3
  23. package/web/.next/server/app/agents/[id]/page.js +3 -3
  24. package/web/.next/server/app/agents/[id]/page.js.nft.json +1 -1
  25. package/web/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
  26. package/web/.next/server/app/agents/page.js +1 -1
  27. package/web/.next/server/app/agents/page_client-reference-manifest.js +1 -1
  28. package/web/.next/server/app/agents.html +1 -1
  29. package/web/.next/server/app/agents.rsc +4 -4
  30. package/web/.next/server/app/connections/page.js +1 -1
  31. package/web/.next/server/app/connections/page_client-reference-manifest.js +1 -1
  32. package/web/.next/server/app/connections.html +1 -1
  33. package/web/.next/server/app/connections.rsc +4 -4
  34. package/web/.next/server/app/index.html +1 -1
  35. package/web/.next/server/app/index.rsc +4 -4
  36. package/web/.next/server/app/page.js +1 -1
  37. package/web/.next/server/app/page.js.nft.json +1 -1
  38. package/web/.next/server/app/page_client-reference-manifest.js +1 -1
  39. package/web/.next/server/app/relations/page.js +1 -1
  40. package/web/.next/server/app/relations/page_client-reference-manifest.js +1 -1
  41. package/web/.next/server/app/relations.html +1 -1
  42. package/web/.next/server/app/relations.rsc +4 -4
  43. package/web/.next/server/app/resources/[id]/page.js +1 -1
  44. package/web/.next/server/app/resources/[id]/page.js.nft.json +1 -1
  45. package/web/.next/server/app/resources/[id]/page_client-reference-manifest.js +1 -1
  46. package/web/.next/server/app/resources/page.js +1 -1
  47. package/web/.next/server/app/resources/page.js.nft.json +1 -1
  48. package/web/.next/server/app/resources/page_client-reference-manifest.js +1 -1
  49. package/web/.next/server/app/resources.html +1 -1
  50. package/web/.next/server/app/resources.rsc +4 -4
  51. package/web/.next/server/app/schedules/page.js +1 -1
  52. package/web/.next/server/app/schedules/page_client-reference-manifest.js +1 -1
  53. package/web/.next/server/app/schedules.html +1 -1
  54. package/web/.next/server/app/schedules.rsc +4 -4
  55. package/web/.next/server/app/sessions/page.js +1 -1
  56. package/web/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  57. package/web/.next/server/app/sessions.html +1 -1
  58. package/web/.next/server/app/sessions.rsc +4 -4
  59. package/web/.next/server/app/skills/page.js +1 -1
  60. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  61. package/web/.next/server/app/skills.html +1 -1
  62. package/web/.next/server/app/skills.rsc +4 -4
  63. package/web/.next/server/app/types/page.js +1 -1
  64. package/web/.next/server/app/types/page_client-reference-manifest.js +1 -1
  65. package/web/.next/server/app/types.html +1 -1
  66. package/web/.next/server/app/types.rsc +4 -4
  67. package/web/.next/server/app-paths-manifest.json +7 -7
  68. package/web/.next/server/chunks/143.js +1 -1
  69. package/web/.next/server/chunks/274.js +1 -1
  70. package/web/.next/server/chunks/306.js +1 -1
  71. package/web/.next/server/chunks/451.js +1 -0
  72. package/web/.next/server/chunks/505.js +1 -1
  73. package/web/.next/server/chunks/612.js +1 -1
  74. package/web/.next/server/chunks/716.js +2 -2
  75. package/web/.next/server/pages/404.html +1 -1
  76. package/web/.next/server/pages/500.html +1 -1
  77. package/web/.next/server/server-reference-manifest.json +1 -1
  78. package/web/.next/static/chunks/281-d8a0dcfaa6d064e4.js +1 -0
  79. package/web/.next/static/chunks/{291-efae53ea5f7ee92d.js → 291-23f314877fa39054.js} +1 -1
  80. package/web/.next/static/chunks/304-681348099f874a30.js +1 -0
  81. package/web/.next/static/chunks/350-0fe82e622e7a670f.js +1 -0
  82. package/web/.next/static/chunks/{491-6b4e6201f5110dff.js → 491-28f093772bd460ac.js} +1 -1
  83. package/web/.next/static/chunks/517-373a80c8ba432bdc.js +1 -0
  84. package/web/.next/static/chunks/654-92a63b3c4b412666.js +1 -0
  85. package/web/.next/static/chunks/705-780e48e55b0346bd.js +1 -0
  86. package/web/.next/static/chunks/{844-fe55292e0701f436.js → 844-519177e6198ca84f.js} +1 -1
  87. package/web/.next/static/chunks/app/agents/[id]/page-c005161cec5527d8.js +1 -0
  88. package/web/.next/static/chunks/app/agents/{page-f4c4c80f955f3967.js → page-9bb8cba69776c719.js} +1 -1
  89. package/web/.next/static/chunks/app/connections/{page-0936beaf02d863c6.js → page-eb11cfb1ffeab3ca.js} +1 -1
  90. package/web/.next/static/chunks/app/{layout-99620746d028dda8.js → layout-49b46c9b5aa512a8.js} +1 -1
  91. package/web/.next/static/chunks/app/{page-a7f292117b7d76bf.js → page-da042d146caeeab6.js} +1 -1
  92. package/web/.next/static/chunks/app/relations/{page-fba25393c8688714.js → page-a44fd515a3b0525e.js} +1 -1
  93. package/web/.next/static/chunks/app/resources/[id]/{page-d110d89bb8b5fca7.js → page-bf05836f97248ca7.js} +1 -1
  94. package/web/.next/static/chunks/app/resources/{page-bbd0b450d3f3131d.js → page-800f774e5cacf4c9.js} +1 -1
  95. package/web/.next/static/chunks/app/schedules/{page-a1124397fc760413.js → page-96976fff4ee23538.js} +1 -1
  96. package/web/.next/static/chunks/app/sessions/{page-0e322811b0cde724.js → page-a7534ebd90e982d6.js} +1 -1
  97. package/web/.next/static/chunks/app/skills/{page-22ea0ef89d9f7a13.js → page-bc1acd0663f36129.js} +1 -1
  98. package/web/.next/static/chunks/app/types/{page-18c4e1db2724d41d.js → page-ebd37e220f77c1f3.js} +1 -1
  99. package/web/.next/static/css/{b7a03c62468f4263.css → d42799b7e6a0e8a2.css} +1 -1
  100. package/web/.next/trace +29 -29
  101. package/web/.next/server/chunks/555.js +0 -1
  102. package/web/.next/static/chunks/176-aeaf907a6ea5627d.js +0 -1
  103. package/web/.next/static/chunks/350-56599dc3bf06066d.js +0 -1
  104. package/web/.next/static/chunks/486-13e08542f3a1cbac.js +0 -1
  105. package/web/.next/static/chunks/517-ccaf8cc5c733cbd8.js +0 -1
  106. package/web/.next/static/chunks/705-c7e75806f77b880c.js +0 -1
  107. package/web/.next/static/chunks/839-4aefe6e71be6e1ef.js +0 -1
  108. package/web/.next/static/chunks/app/agents/[id]/page-3faf40800981a736.js +0 -1
  109. /package/web/.next/static/{7BI__-ayGDTlOrSboD_bT → aSYzbHk1M5YeS_d3SQKTZ}/_buildManifest.js +0 -0
  110. /package/web/.next/static/{7BI__-ayGDTlOrSboD_bT → aSYzbHk1M5YeS_d3SQKTZ}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[501],{3492:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Heading2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]])},12646:(e,s,l)=>{"use strict";l.d(s,{n:()=>A});var t=l(94799),n=l(34023),i=l(6458),a=l(53983),c=l(3492),d=l(98148),r=l(99579),o=l(55838),u=l(98938),h=l(52263),m=l(20555),k=l(91833),p=l(55712),y=l(71529),v=l(69654);function x(e,s,l,t){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",a=e.slice(s,l)||i;return e.slice(s-t.length,s)===t&&e.slice(l,l+n.length)===n&&s!==l?{value:e.slice(0,s-t.length)+a+e.slice(l+n.length),start:s-t.length,end:l-t.length}:{value:e.slice(0,s)+t+a+n+e.slice(l),start:s+t.length,end:s+t.length+a.length}}function b(e,s,l,t,n){let i=e.lastIndexOf("\n",s-1)+1,a=e.indexOf("\n",l),c=-1===a?e.length:a,d=e.slice(i,c).split("\n"),r=d.every(e=>n.test(e)),o=d.map((e,s)=>r?e.replace(n,""):t(s)+e.replace(n,"")).join("\n");return{value:e.slice(0,i)+o+e.slice(c),start:i,end:i+o.length}}let j=/^\s*[-*+] (\[[ x]\] )?/,f=/^\s*\d+\. /,g=/^#{1,6} /,w=/^> ?/;function A(e){let{value:s,onChange:l,placeholder:A,defaultView:N="split",minHeight:M=340,fill:C=!1}=e,{t:z}=(0,v.s9)(),q=(0,n.useRef)(null),[E,S]=(0,n.useState)(N),L=e=>{let s=q.current;if(!s)return;let t=e(s.value,s.selectionStart,s.selectionEnd);l(t.value),requestAnimationFrame(()=>{s.focus(),s.setSelectionRange(t.start,t.end)})},D=[{id:"h",icon:(0,t.jsx)(c.A,{size:15}),label:z("md.heading"),run:()=>L((e,s,l)=>b(e,s,l,()=>"## ",g))},{id:"b",icon:(0,t.jsx)(d.A,{size:15}),label:z("md.bold"),keys:"B",run:()=>L((e,s,l)=>x(e,s,l,"**","**",z("md.boldPh")))},{id:"i",icon:(0,t.jsx)(r.A,{size:15}),label:z("md.italic"),keys:"I",run:()=>L((e,s,l)=>x(e,s,l,"*","*",z("md.italicPh")))},{id:"c",icon:(0,t.jsx)(o.A,{size:15}),label:z("md.code"),run:()=>L((e,s,l)=>x(e,s,l,"`","`","code"))},{id:"cb",icon:(0,t.jsx)(u.A,{size:15}),label:z("md.codeBlock"),run:()=>L((e,s,l)=>x(e,s,l,"\n```\n","\n```\n","code"))},{id:"ul",icon:(0,t.jsx)(h.A,{size:15}),label:z("md.bullets"),run:()=>L((e,s,l)=>b(e,s,l,()=>"- ",j))},{id:"ol",icon:(0,t.jsx)(m.A,{size:15}),label:z("md.numbered"),run:()=>L((e,s,l)=>b(e,s,l,e=>"".concat(e+1,". "),f))},{id:"q",icon:(0,t.jsx)(k.A,{size:15}),label:z("md.quote"),run:()=>L((e,s,l)=>b(e,s,l,()=>"> ",w))},{id:"l",icon:(0,t.jsx)(p.A,{size:15}),label:z("md.link"),keys:"K",run:()=>L((e,s,l)=>{let t=e.slice(s,l)||z("md.linkPh"),n="[".concat(t,"](https://)");return{value:e.slice(0,s)+n+e.slice(l),start:s+t.length+3,end:s+t.length+11}})},{id:"hr",icon:(0,t.jsx)(y.A,{size:15}),label:z("md.rule"),run:()=>L((e,s,l)=>({value:e.slice(0,s)+"\n\n---\n\n"+e.slice(l),start:s+7,end:s+7}))}],O=s.trim()?s.trim().split(/\s+/).length:0;return(0,t.jsxs)("div",{className:"mde".concat(C?" fill":""),children:[(0,t.jsxs)("div",{className:"mde-bar",role:"toolbar","aria-label":z("md.toolbar"),children:[D.map(e=>(0,t.jsx)("button",{type:"button",className:"mde-btn",title:e.keys?"".concat(e.label," (Ctrl+").concat(e.keys,")"):e.label,"aria-label":e.label,onMouseDown:e=>e.preventDefault(),onClick:e.run,disabled:"preview"===E,children:e.icon},e.id)),(0,t.jsx)("span",{className:"grow"}),(0,t.jsx)("div",{className:"mde-views",role:"group",children:["write","split","preview"].map(e=>(0,t.jsx)("button",{type:"button",className:E===e?"on":"","aria-pressed":E===e,onClick:()=>S(e),children:z("md.view.".concat(e))},e))})]}),(0,t.jsxs)("div",{className:"mde-body v-".concat(E),style:{minHeight:M},children:["preview"!==E&&(0,t.jsx)("textarea",{ref:q,className:"mde-text mono",style:{minHeight:M},value:s,onChange:e=>l(e.target.value),onKeyDown:e=>{let s=e.currentTarget;if(e.ctrlKey||e.metaKey){let s=D.find(s=>s.keys&&s.keys.toLowerCase()===e.key.toLowerCase());if(s){e.preventDefault(),s.run();return}}if("Tab"===e.key){e.preventDefault(),L((s,l,t)=>{if(l===t&&!e.shiftKey)return{value:s.slice(0,l)+" "+s.slice(t),start:l+2,end:l+2};let n=s.lastIndexOf("\n",l-1)+1,i=s.indexOf("\n",t),a=-1===i?s.length:i,c=s.slice(n,a).split("\n").map(s=>e.shiftKey?s.replace(/^ {1,2}/,""):" "+s).join("\n");return{value:s.slice(0,n)+c+s.slice(a),start:n,end:n+c.length}});return}if("Enter"===e.key&&!e.shiftKey&&s.selectionStart===s.selectionEnd){let t=s.value,n=s.selectionStart,i=t.lastIndexOf("\n",n-1)+1,a=t.slice(i,n),c=/^(\s*)([-*+] (?:\[[ x]\] )?|(\d+)\. )(.*)$/.exec(a);if(!c)return;if(e.preventDefault(),!c[4]){l(t.slice(0,i)+t.slice(n)),requestAnimationFrame(()=>s.setSelectionRange(i,i));return}let d=c[3]?"".concat(c[1]).concat(Number(c[3])+1,". "):c[1]+c[2].replace("[x]","[ ]");l(t.slice(0,n)+"\n"+d+t.slice(n)),requestAnimationFrame(()=>{let e=n+1+d.length;s.setSelectionRange(e,e)})}},placeholder:A,spellCheck:!1}),"write"!==E&&(0,t.jsx)("div",{className:"mde-prev md",children:(0,t.jsx)(i.oz,{remarkPlugins:[a.A],children:s||z("skills.previewEmpty")})})]}),(0,t.jsxs)("div",{className:"mde-foot muted",children:[z("md.stats",{words:O,chars:s.length})," \xb7 ",z("md.tips")]})]})}},20353:(e,s,l)=>{"use strict";l.r(s),l.d(s,{default:()=>k});var t=l(94799),n=l(34023),i=l(92947),a=l(97356),c=l(48538),d=l(3749),r=l(86606),o=l(73506),u=l(69654),h=l(12646),m=l(82397);function k(){var e,s,l,k;let{t:p}=(0,u.s9)(),{skills:y,refresh:v,ready:x}=(0,c.o0)(),b=(0,r.dj)(),[j,f]=(0,n.useState)(null),[g,w]=(0,n.useState)(""),[A,N]=(0,n.useState)({name:"",description:"",content:""}),[M,C]=(0,n.useState)({}),[z,q]=(0,n.useState)(""),[E,S]=(0,n.useState)(!1),[L,D]=(0,n.useState)(void 0);(0,n.useEffect)(()=>{d.FH.get("/skills/usage").then(C).catch(()=>void 0)},[y]),(0,n.useEffect)(()=>{null===j&&y.length&&f(y[0].id)},[y,j]),(0,n.useEffect)(()=>{if("new"===j)N({name:"",description:"",content:""});else{let e=y.find(e=>e.id===j);e&&N({name:e.name,description:e.description,content:e.content})}q("")},[j]);let O=(0,n.useMemo)(()=>y.filter(e=>!g||"".concat(e.name," ").concat(e.description).toLowerCase().includes(g.toLowerCase())),[y,g]),H=y.find(e=>e.id===j),F="new"===j?!!(A.name||A.content):!!H&&(H.name!==A.name||H.description!==A.description||H.content!==A.content);(0,o.h)(F);let T=e=>{e!==j&&(F?D(e):f(e))},V=async()=>{if(!A.name.trim())return void q(p("skills.err.name"));try{if("new"===j){let e=await d.FH.post("/skills",A);await v(["skills"]),f(e.id),b(p("skills.created"))}else await d.FH.patch("/skills/".concat(j),A),await v(["skills"]),b(p("skills.saved"));q("")}catch(e){q(e instanceof Error?e.message:p("edit.saveFailed"))}};return(0,t.jsxs)("div",{className:"page full",children:[x&&!y.length&&"new"!==j?(0,t.jsx)("div",{className:"m-xl",children:(0,t.jsx)(r.pp,{title:p("skills.empty.title"),body:p("skills.empty.body"),action:(0,t.jsxs)("button",{className:"btn primary",onClick:()=>f("new"),children:[(0,t.jsx)(i.A,{size:16}),p("skills.empty.create")]})})}):(0,t.jsxs)("div",{className:"sk-ws",children:[(0,t.jsxs)("aside",{className:"switcher","aria-label":p("nav.skills"),children:[(0,t.jsxs)("div",{className:"switcher-head",children:[(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("b",{className:"fa-title grow",children:p("nav.skills")}),(0,t.jsx)("button",{className:"btn ghost icon sm",onClick:()=>T("new"),"aria-label":p("skills.new"),title:p("skills.new"),children:(0,t.jsx)(i.A,{size:16})})]}),(0,t.jsx)(r.DO,{value:g,onChange:w,placeholder:p("skills.search"),label:p("skills.search")})]}),(0,t.jsxs)("div",{className:"switcher-list",children:["new"===j&&(0,t.jsxs)("button",{className:"sk-item","aria-current":"true",children:[(0,t.jsx)("b",{children:p("skills.new")}),(0,t.jsx)("span",{className:"muted small",children:p("skills.unsaved")})]}),O.map(e=>{var s,l,n,i;return(0,t.jsxs)("button",{className:"sk-item","aria-current":j===e.id,onClick:()=>T(e.id),children:[(0,t.jsx)("b",{children:e.name}),(0,t.jsx)("span",{className:"sk-desc",children:e.description||p("common.noDescription")}),(0,t.jsxs)("span",{className:"sk-meta",children:[p("skills.nAgents",{count:null!=(n=null==(s=M[e.id])?void 0:s.agents)?n:0})," \xb7 ",p("skills.nTypes",{count:null!=(i=null==(l=M[e.id])?void 0:l.types)?i:0})," \xb7 ~",(0,m.Aq)((0,m.NO)(e.content))," tokens"]})]},e.id)}),!O.length&&"new"!==j&&(0,t.jsx)("p",{className:"muted small pad-m",children:p("skills.noMatch",{query:g})})]})]}),j?(0,t.jsxs)("section",{className:"sk-main",children:[(0,t.jsxs)("header",{className:"sk-head",children:[(0,t.jsxs)("div",{className:"sk-fields",children:[(0,t.jsx)(r.D0,{label:p("form.name"),error:z,children:(0,t.jsx)("input",{className:"input",value:A.name,onChange:e=>N({...A,name:e.target.value}),placeholder:p("skills.name.placeholder")})}),(0,t.jsx)(r.D0,{label:p("types.description"),hint:p("skills.description.hint"),children:(0,t.jsx)("input",{className:"input",value:A.description,onChange:e=>N({...A,description:e.target.value})})})]}),(0,t.jsxs)("div",{className:"sk-actions",children:[H&&(0,t.jsxs)("button",{className:"btn danger",onClick:()=>S(!0),children:[(0,t.jsx)(a.A,{size:15}),p("common.delete")]}),F&&(0,t.jsx)("button",{className:"btn ghost",onClick:()=>{var e,s;if("new"===j)f(null!=(s=null==(e=y[0])?void 0:e.id)?s:null);else{if("new"===j)N({name:"",description:"",content:""});else{let e=y.find(e=>e.id===j);e&&N({name:e.name,description:e.description,content:e.content})}q("")}},children:p("common.discard")}),(0,t.jsx)("button",{className:"btn primary",disabled:!F,onClick:V,children:"new"===j?p("skills.create"):p("skills.save")})]})]}),(0,t.jsxs)("div",{className:"sk-editor",children:[(0,t.jsx)("label",{className:"label",children:p("skills.instructions")}),(0,t.jsx)(h.n,{fill:!0,value:A.content,onChange:e=>N({...A,content:e}),placeholder:p("skills.content.placeholder")})]})]}):(0,t.jsx)("section",{className:"sk-main sk-none",children:(0,t.jsx)("p",{className:"muted",children:p("skills.subtitle")})})]}),E&&H&&(0,t.jsx)(r.TM,{danger:!0,title:p("skills.deleteTitle",{name:H.name}),body:p("skills.deleteBody",{agents:p("skills.nAgents",{count:null!=(l=null==(e=M[H.id])?void 0:e.agents)?l:0}),types:p("skills.nTypes",{count:null!=(k=null==(s=M[H.id])?void 0:s.types)?k:0})}),cancelLabel:p("skills.keep"),confirmLabel:p("skills.delete"),onClose:()=>S(!1),onConfirm:async()=>{await d.FH.del("/skills/".concat(H.id)),await v(["skills","agents","types"]),f(null),b(p("skills.deleted"))}}),void 0!==L&&(0,t.jsx)(r.TM,{danger:!0,title:p("fa.unsaved.title"),body:p("fa.unsaved.body"),confirmLabel:p("fa.unsaved.discard"),cancelLabel:p("fa.unsaved.keep"),onClose:()=>D(void 0),onConfirm:()=>{f(L),D(void 0)}})]})}},20555:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]])},52263:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},53824:(e,s,l)=>{Promise.resolve().then(l.bind(l,20353))},55712:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},55838:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},71529:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},73506:(e,s,l)=>{"use strict";l.d(s,{h:()=>n});var t=l(34023);function n(e){(0,t.useEffect)(()=>{if(!e)return;let s=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",s),()=>window.removeEventListener("beforeunload",s)},[e])}},91833:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]])},92947:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},97356:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},98148:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]])},98938:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},99579:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]])}},e=>{e.O(0,[586,706,839,408,89,358],()=>e(e.s=53824)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[501],{3492:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Heading2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]])},12646:(e,s,l)=>{"use strict";l.d(s,{n:()=>A});var t=l(94799),n=l(34023),i=l(6458),a=l(53983),c=l(3492),d=l(98148),r=l(99579),o=l(55838),u=l(98938),h=l(52263),m=l(20555),k=l(91833),p=l(55712),y=l(71529),v=l(69654);function x(e,s,l,t){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",a=e.slice(s,l)||i;return e.slice(s-t.length,s)===t&&e.slice(l,l+n.length)===n&&s!==l?{value:e.slice(0,s-t.length)+a+e.slice(l+n.length),start:s-t.length,end:l-t.length}:{value:e.slice(0,s)+t+a+n+e.slice(l),start:s+t.length,end:s+t.length+a.length}}function b(e,s,l,t,n){let i=e.lastIndexOf("\n",s-1)+1,a=e.indexOf("\n",l),c=-1===a?e.length:a,d=e.slice(i,c).split("\n"),r=d.every(e=>n.test(e)),o=d.map((e,s)=>r?e.replace(n,""):t(s)+e.replace(n,"")).join("\n");return{value:e.slice(0,i)+o+e.slice(c),start:i,end:i+o.length}}let j=/^\s*[-*+] (\[[ x]\] )?/,f=/^\s*\d+\. /,g=/^#{1,6} /,w=/^> ?/;function A(e){let{value:s,onChange:l,placeholder:A,defaultView:N="split",minHeight:M=340,fill:C=!1}=e,{t:z}=(0,v.s9)(),q=(0,n.useRef)(null),[E,S]=(0,n.useState)(N),L=e=>{let s=q.current;if(!s)return;let t=e(s.value,s.selectionStart,s.selectionEnd);l(t.value),requestAnimationFrame(()=>{s.focus(),s.setSelectionRange(t.start,t.end)})},D=[{id:"h",icon:(0,t.jsx)(c.A,{size:15}),label:z("md.heading"),run:()=>L((e,s,l)=>b(e,s,l,()=>"## ",g))},{id:"b",icon:(0,t.jsx)(d.A,{size:15}),label:z("md.bold"),keys:"B",run:()=>L((e,s,l)=>x(e,s,l,"**","**",z("md.boldPh")))},{id:"i",icon:(0,t.jsx)(r.A,{size:15}),label:z("md.italic"),keys:"I",run:()=>L((e,s,l)=>x(e,s,l,"*","*",z("md.italicPh")))},{id:"c",icon:(0,t.jsx)(o.A,{size:15}),label:z("md.code"),run:()=>L((e,s,l)=>x(e,s,l,"`","`","code"))},{id:"cb",icon:(0,t.jsx)(u.A,{size:15}),label:z("md.codeBlock"),run:()=>L((e,s,l)=>x(e,s,l,"\n```\n","\n```\n","code"))},{id:"ul",icon:(0,t.jsx)(h.A,{size:15}),label:z("md.bullets"),run:()=>L((e,s,l)=>b(e,s,l,()=>"- ",j))},{id:"ol",icon:(0,t.jsx)(m.A,{size:15}),label:z("md.numbered"),run:()=>L((e,s,l)=>b(e,s,l,e=>"".concat(e+1,". "),f))},{id:"q",icon:(0,t.jsx)(k.A,{size:15}),label:z("md.quote"),run:()=>L((e,s,l)=>b(e,s,l,()=>"> ",w))},{id:"l",icon:(0,t.jsx)(p.A,{size:15}),label:z("md.link"),keys:"K",run:()=>L((e,s,l)=>{let t=e.slice(s,l)||z("md.linkPh"),n="[".concat(t,"](https://)");return{value:e.slice(0,s)+n+e.slice(l),start:s+t.length+3,end:s+t.length+11}})},{id:"hr",icon:(0,t.jsx)(y.A,{size:15}),label:z("md.rule"),run:()=>L((e,s,l)=>({value:e.slice(0,s)+"\n\n---\n\n"+e.slice(l),start:s+7,end:s+7}))}],O=s.trim()?s.trim().split(/\s+/).length:0;return(0,t.jsxs)("div",{className:"mde".concat(C?" fill":""),children:[(0,t.jsxs)("div",{className:"mde-bar",role:"toolbar","aria-label":z("md.toolbar"),children:[D.map(e=>(0,t.jsx)("button",{type:"button",className:"mde-btn",title:e.keys?"".concat(e.label," (Ctrl+").concat(e.keys,")"):e.label,"aria-label":e.label,onMouseDown:e=>e.preventDefault(),onClick:e.run,disabled:"preview"===E,children:e.icon},e.id)),(0,t.jsx)("span",{className:"grow"}),(0,t.jsx)("div",{className:"mde-views",role:"group",children:["write","split","preview"].map(e=>(0,t.jsx)("button",{type:"button",className:E===e?"on":"","aria-pressed":E===e,onClick:()=>S(e),children:z("md.view.".concat(e))},e))})]}),(0,t.jsxs)("div",{className:"mde-body v-".concat(E),style:{minHeight:M},children:["preview"!==E&&(0,t.jsx)("textarea",{ref:q,className:"mde-text mono",style:{minHeight:M},value:s,onChange:e=>l(e.target.value),onKeyDown:e=>{let s=e.currentTarget;if(e.ctrlKey||e.metaKey){let s=D.find(s=>s.keys&&s.keys.toLowerCase()===e.key.toLowerCase());if(s){e.preventDefault(),s.run();return}}if("Tab"===e.key){e.preventDefault(),L((s,l,t)=>{if(l===t&&!e.shiftKey)return{value:s.slice(0,l)+" "+s.slice(t),start:l+2,end:l+2};let n=s.lastIndexOf("\n",l-1)+1,i=s.indexOf("\n",t),a=-1===i?s.length:i,c=s.slice(n,a).split("\n").map(s=>e.shiftKey?s.replace(/^ {1,2}/,""):" "+s).join("\n");return{value:s.slice(0,n)+c+s.slice(a),start:n,end:n+c.length}});return}if("Enter"===e.key&&!e.shiftKey&&s.selectionStart===s.selectionEnd){let t=s.value,n=s.selectionStart,i=t.lastIndexOf("\n",n-1)+1,a=t.slice(i,n),c=/^(\s*)([-*+] (?:\[[ x]\] )?|(\d+)\. )(.*)$/.exec(a);if(!c)return;if(e.preventDefault(),!c[4]){l(t.slice(0,i)+t.slice(n)),requestAnimationFrame(()=>s.setSelectionRange(i,i));return}let d=c[3]?"".concat(c[1]).concat(Number(c[3])+1,". "):c[1]+c[2].replace("[x]","[ ]");l(t.slice(0,n)+"\n"+d+t.slice(n)),requestAnimationFrame(()=>{let e=n+1+d.length;s.setSelectionRange(e,e)})}},placeholder:A,spellCheck:!1}),"write"!==E&&(0,t.jsx)("div",{className:"mde-prev md",children:(0,t.jsx)(i.oz,{remarkPlugins:[a.A],children:s||z("skills.previewEmpty")})})]}),(0,t.jsxs)("div",{className:"mde-foot muted",children:[z("md.stats",{words:O,chars:s.length})," \xb7 ",z("md.tips")]})]})}},20353:(e,s,l)=>{"use strict";l.r(s),l.d(s,{default:()=>k});var t=l(94799),n=l(34023),i=l(92947),a=l(97356),c=l(48538),d=l(3749),r=l(10804),o=l(73506),u=l(69654),h=l(12646),m=l(82397);function k(){var e,s,l,k;let{t:p}=(0,u.s9)(),{skills:y,refresh:v,ready:x}=(0,c.o0)(),b=(0,r.dj)(),[j,f]=(0,n.useState)(null),[g,w]=(0,n.useState)(""),[A,N]=(0,n.useState)({name:"",description:"",content:""}),[M,C]=(0,n.useState)({}),[z,q]=(0,n.useState)(""),[E,S]=(0,n.useState)(!1),[L,D]=(0,n.useState)(void 0);(0,n.useEffect)(()=>{d.FH.get("/skills/usage").then(C).catch(()=>void 0)},[y]),(0,n.useEffect)(()=>{null===j&&y.length&&f(y[0].id)},[y,j]),(0,n.useEffect)(()=>{if("new"===j)N({name:"",description:"",content:""});else{let e=y.find(e=>e.id===j);e&&N({name:e.name,description:e.description,content:e.content})}q("")},[j]);let O=(0,n.useMemo)(()=>y.filter(e=>!g||"".concat(e.name," ").concat(e.description).toLowerCase().includes(g.toLowerCase())),[y,g]),H=y.find(e=>e.id===j),F="new"===j?!!(A.name||A.content):!!H&&(H.name!==A.name||H.description!==A.description||H.content!==A.content);(0,o.h)(F);let T=e=>{e!==j&&(F?D(e):f(e))},V=async()=>{if(!A.name.trim())return void q(p("skills.err.name"));try{if("new"===j){let e=await d.FH.post("/skills",A);await v(["skills"]),f(e.id),b(p("skills.created"))}else await d.FH.patch("/skills/".concat(j),A),await v(["skills"]),b(p("skills.saved"));q("")}catch(e){q(e instanceof Error?e.message:p("edit.saveFailed"))}};return(0,t.jsxs)("div",{className:"page full",children:[x&&!y.length&&"new"!==j?(0,t.jsx)("div",{className:"m-xl",children:(0,t.jsx)(r.pp,{title:p("skills.empty.title"),body:p("skills.empty.body"),action:(0,t.jsxs)("button",{className:"btn primary",onClick:()=>f("new"),children:[(0,t.jsx)(i.A,{size:16}),p("skills.empty.create")]})})}):(0,t.jsxs)("div",{className:"sk-ws",children:[(0,t.jsxs)("aside",{className:"switcher","aria-label":p("nav.skills"),children:[(0,t.jsxs)("div",{className:"switcher-head",children:[(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("b",{className:"fa-title grow",children:p("nav.skills")}),(0,t.jsx)("button",{className:"btn ghost icon sm",onClick:()=>T("new"),"aria-label":p("skills.new"),title:p("skills.new"),children:(0,t.jsx)(i.A,{size:16})})]}),(0,t.jsx)(r.DO,{value:g,onChange:w,placeholder:p("skills.search"),label:p("skills.search")})]}),(0,t.jsxs)("div",{className:"switcher-list",children:["new"===j&&(0,t.jsxs)("button",{className:"sk-item","aria-current":"true",children:[(0,t.jsx)("b",{children:p("skills.new")}),(0,t.jsx)("span",{className:"muted small",children:p("skills.unsaved")})]}),O.map(e=>{var s,l,n,i;return(0,t.jsxs)("button",{className:"sk-item","aria-current":j===e.id,onClick:()=>T(e.id),children:[(0,t.jsx)("b",{children:e.name}),(0,t.jsx)("span",{className:"sk-desc",children:e.description||p("common.noDescription")}),(0,t.jsxs)("span",{className:"sk-meta",children:[p("skills.nAgents",{count:null!=(n=null==(s=M[e.id])?void 0:s.agents)?n:0})," \xb7 ",p("skills.nTypes",{count:null!=(i=null==(l=M[e.id])?void 0:l.types)?i:0})," \xb7 ~",(0,m.Aq)((0,m.NO)(e.content))," tokens"]})]},e.id)}),!O.length&&"new"!==j&&(0,t.jsx)("p",{className:"muted small pad-m",children:p("skills.noMatch",{query:g})})]})]}),j?(0,t.jsxs)("section",{className:"sk-main",children:[(0,t.jsxs)("header",{className:"sk-head",children:[(0,t.jsxs)("div",{className:"sk-fields",children:[(0,t.jsx)(r.D0,{label:p("form.name"),error:z,children:(0,t.jsx)("input",{className:"input",value:A.name,onChange:e=>N({...A,name:e.target.value}),placeholder:p("skills.name.placeholder")})}),(0,t.jsx)(r.D0,{label:p("types.description"),hint:p("skills.description.hint"),children:(0,t.jsx)("input",{className:"input",value:A.description,onChange:e=>N({...A,description:e.target.value})})})]}),(0,t.jsxs)("div",{className:"sk-actions",children:[H&&(0,t.jsxs)("button",{className:"btn danger",onClick:()=>S(!0),children:[(0,t.jsx)(a.A,{size:15}),p("common.delete")]}),F&&(0,t.jsx)("button",{className:"btn ghost",onClick:()=>{var e,s;if("new"===j)f(null!=(s=null==(e=y[0])?void 0:e.id)?s:null);else{if("new"===j)N({name:"",description:"",content:""});else{let e=y.find(e=>e.id===j);e&&N({name:e.name,description:e.description,content:e.content})}q("")}},children:p("common.discard")}),(0,t.jsx)("button",{className:"btn primary",disabled:!F,onClick:V,children:"new"===j?p("skills.create"):p("skills.save")})]})]}),(0,t.jsxs)("div",{className:"sk-editor",children:[(0,t.jsx)("label",{className:"label",children:p("skills.instructions")}),(0,t.jsx)(h.n,{fill:!0,value:A.content,onChange:e=>N({...A,content:e}),placeholder:p("skills.content.placeholder")})]})]}):(0,t.jsx)("section",{className:"sk-main sk-none",children:(0,t.jsx)("p",{className:"muted",children:p("skills.subtitle")})})]}),E&&H&&(0,t.jsx)(r.TM,{danger:!0,title:p("skills.deleteTitle",{name:H.name}),body:p("skills.deleteBody",{agents:p("skills.nAgents",{count:null!=(l=null==(e=M[H.id])?void 0:e.agents)?l:0}),types:p("skills.nTypes",{count:null!=(k=null==(s=M[H.id])?void 0:s.types)?k:0})}),cancelLabel:p("skills.keep"),confirmLabel:p("skills.delete"),onClose:()=>S(!1),onConfirm:async()=>{await d.FH.del("/skills/".concat(H.id)),await v(["skills","agents","types"]),f(null),b(p("skills.deleted"))}}),void 0!==L&&(0,t.jsx)(r.TM,{danger:!0,title:p("fa.unsaved.title"),body:p("fa.unsaved.body"),confirmLabel:p("fa.unsaved.discard"),cancelLabel:p("fa.unsaved.keep"),onClose:()=>D(void 0),onConfirm:()=>{f(L),D(void 0)}})]})}},20555:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]])},52263:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},53824:(e,s,l)=>{Promise.resolve().then(l.bind(l,20353))},55712:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},55838:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},71529:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},73506:(e,s,l)=>{"use strict";l.d(s,{h:()=>n});var t=l(34023);function n(e){(0,t.useEffect)(()=>{if(!e)return;let s=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",s),()=>window.removeEventListener("beforeunload",s)},[e])}},91833:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]])},92947:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},97356:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},98148:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]])},98938:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},99579:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(74955).A)("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]])}},e=>{e.O(0,[586,706,281,408,89,358],()=>e(e.s=53824)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[192],{3492:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Heading2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]])},11108:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>k});var a=t(94799),l=t(34023),i=t(12646),n=t(92947),r=t(97356),d=t(48538),o=t(3749),c=t(47890),p=t(86606),h=t(1517),y=t(69654),m=t(56072),u=t(73506);let x={name:"",description:"",role:"worker",provider:"claude",model:"",system_prompt:"",permission:"acceptEdits",skill_ids:[],skill_loads:{}};function k(){let{t:e}=(0,y.s9)(),{types:s,agents:t,skills:k,providers:j,refresh:v,ready:b}=(0,d.o0)(),g=(0,p.dj)(),[f,M]=(0,l.useState)(null),[A,N]=(0,l.useState)(""),[C,w]=(0,l.useState)(null),[_,z]=(0,l.useState)(null),[q,H]=(0,l.useState)(!1),D=(0,l.useRef)(""),S=e=>{D.current=JSON.stringify(e),M(e),N("")},V=!!f&&JSON.stringify(f)!==D.current;(0,u.h)(V);let L=()=>{V?H(!0):M(null)},T=async()=>{if(f){if(!f.name.trim())return void N(e("types.err.name"));try{f.id?await o.FH.patch("/types/".concat(f.id),f):await o.FH.post("/types",f),await v(["types"]),g(f.id?e("types.updated"):e("types.created")),M(null),N("")}catch(s){N(s instanceof Error?s.message:e("edit.saveFailed"))}}},E=(e,s)=>M(t=>t&&{...t,[e]:s});return(0,a.jsxs)("div",{className:"page",children:[(0,a.jsxs)("div",{className:"page-head",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{children:e("nav.types")}),(0,a.jsx)("p",{children:e("types.subtitle")})]}),(0,a.jsxs)("button",{className:"btn primary",onClick:()=>S(x),children:[(0,a.jsx)(n.A,{size:16}),e("types.new")]})]}),b&&!s.length?(0,a.jsx)(p.pp,{title:e("types.empty.title"),body:e("types.empty.body"),action:(0,a.jsxs)("button",{className:"btn primary",onClick:()=>S(x),children:[(0,a.jsx)(n.A,{size:16}),e("types.empty.create")]})}):(0,a.jsx)("div",{className:"typegrid",children:s.map(s=>{let l=t.filter(e=>e.type_id===s.id).length;return(0,a.jsxs)("div",{className:"card typecard",children:[(0,a.jsxs)("div",{className:"row gap-l",children:[(0,a.jsx)(p._h,{color:c.xq[s.provider].color,queen:"orchestrator"===s.role,label:s.name.slice(0,2).toUpperCase()}),(0,a.jsxs)("div",{className:"grow",children:[(0,a.jsx)("h3",{className:"fa-card-title",children:s.name}),(0,a.jsx)("div",{className:"row gap-s mt-xs",children:(0,a.jsx)(p.PW,{role:s.role})})]})]}),(0,a.jsx)("p",{className:"muted small m0 fa-desc",children:s.description||e("types.noDescription")}),(0,a.jsxs)("div",{className:"row gap-s wrap",children:[(0,a.jsx)("span",{className:"chip",children:c.xq[s.provider].label}),(0,a.jsx)("span",{className:"chip",children:s.model||e("types.defaultModel")}),(0,a.jsx)("span",{className:"chip",children:e("types.skillsCount",{count:s.skill_ids.length})})]}),(0,a.jsxs)("div",{className:"row mt-xs",children:[(0,a.jsx)("span",{className:"muted small grow",children:e("types.usedBy",{count:l})}),(0,a.jsx)("button",{className:"btn sm",onClick:()=>S({...s}),children:e("common.edit")}),(0,a.jsx)("button",{className:"btn sm primary",onClick:()=>z(s.id),children:e("newAgent.create")})]})]},s.id)})}),f&&(0,a.jsxs)(p._s,{title:f.id?e("types.editTitle",{name:f.name||e("types.typeWord")}):e("types.newTitle"),subtitle:e("types.drawerSubtitle"),onClose:L,footer:(0,a.jsxs)(a.Fragment,{children:[f.id&&(0,a.jsxs)("button",{className:"btn danger push-r",onClick:()=>{var e;return w(null!=(e=s.find(e=>e.id===f.id))?e:null)},children:[(0,a.jsx)(r.A,{size:15}),e("common.delete")]}),(0,a.jsx)("button",{className:"btn ghost",onClick:L,children:e("common.cancel")}),(0,a.jsx)("button",{className:"btn primary",onClick:T,children:f.id?e("types.save"):e("types.create")})]}),children:[(0,a.jsx)(p.D0,{label:e("form.name"),error:A,children:(0,a.jsx)("input",{className:"input",value:f.name,onChange:e=>E("name",e.target.value),placeholder:e("types.name.placeholder"),autoFocus:!0})}),(0,a.jsx)(p.D0,{label:e("types.description"),hint:e("types.description.hint"),children:(0,a.jsx)("input",{className:"input",value:f.description,onChange:e=>E("description",e.target.value)})}),(0,a.jsx)(p.D0,{label:e("form.role"),children:(0,a.jsx)(p.$q,{value:f.role,onChange:e=>E("role",e),options:[{id:"worker",label:e("role.worker")},{id:"orchestrator",label:e("role.orchestrator")}]})}),(0,a.jsx)(p.D0,{label:e("form.provider"),children:(0,a.jsx)(p.YO,{value:f.provider,onChange:e=>M({...f,provider:e,model:""}),providers:j})}),(0,a.jsx)(p.CD,{provider:f.provider,value:f.model,onChange:e=>E("model",e)}),(0,a.jsx)(p.en,{value:f.permission,onChange:e=>E("permission",e)}),(0,a.jsx)(p.D0,{label:e("form.systemPrompt"),hint:e("types.chars",{count:f.system_prompt.length,n:(0,m._E)(f.system_prompt.length)}),children:(0,a.jsx)(i.n,{value:f.system_prompt,onChange:e=>E("system_prompt",e),minHeight:260})}),(0,a.jsx)(p.D0,{label:e("form.skills"),children:(0,a.jsx)(p.kV,{skills:k,value:f.skill_ids,loads:f.skill_loads,onChange:(e,s)=>M({...f,skill_ids:e,skill_loads:s})})})]}),C&&(0,a.jsx)(p.TM,{danger:!0,title:e("types.deleteTitle",{name:C.name}),body:e("types.deleteBody"),cancelLabel:e("types.keep"),confirmLabel:e("types.delete"),onClose:()=>w(null),onConfirm:async()=>{await o.FH.del("/types/".concat(C.id)),await v(["types","agents"]),M(null),g(e("types.deleted"))}}),q&&(0,a.jsx)(p.TM,{danger:!0,title:e("fa.unsaved.title"),body:e("fa.unsaved.body"),confirmLabel:e("fa.unsaved.discard"),cancelLabel:e("fa.unsaved.keep"),onClose:()=>H(!1),onConfirm:()=>M(null)}),_&&(0,a.jsx)(h.b,{presetTypeId:_,onClose:()=>z(null)})]})}},20555:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]])},32021:(e,s,t)=>{Promise.resolve().then(t.bind(t,11108))},52263:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},55712:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},55838:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},71529:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},91833:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]])},92947:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},97356:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},98148:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]])},98938:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},99579:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]])}},e=>{e.O(0,[586,706,839,517,408,89,358],()=>e(e.s=32021)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[192],{3492:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Heading2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]])},11108:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>k});var a=t(94799),l=t(34023),i=t(12646),n=t(92947),r=t(97356),d=t(48538),o=t(3749),c=t(47890),p=t(10804),h=t(1517),y=t(69654),m=t(56072),u=t(73506);let x={name:"",description:"",role:"worker",provider:"claude",model:"",system_prompt:"",permission:"acceptEdits",skill_ids:[],skill_loads:{}};function k(){let{t:e}=(0,y.s9)(),{types:s,agents:t,skills:k,providers:j,refresh:v,ready:b}=(0,d.o0)(),g=(0,p.dj)(),[f,M]=(0,l.useState)(null),[A,N]=(0,l.useState)(""),[C,w]=(0,l.useState)(null),[_,z]=(0,l.useState)(null),[q,H]=(0,l.useState)(!1),D=(0,l.useRef)(""),S=e=>{D.current=JSON.stringify(e),M(e),N("")},V=!!f&&JSON.stringify(f)!==D.current;(0,u.h)(V);let L=()=>{V?H(!0):M(null)},T=async()=>{if(f){if(!f.name.trim())return void N(e("types.err.name"));try{f.id?await o.FH.patch("/types/".concat(f.id),f):await o.FH.post("/types",f),await v(["types"]),g(f.id?e("types.updated"):e("types.created")),M(null),N("")}catch(s){N(s instanceof Error?s.message:e("edit.saveFailed"))}}},E=(e,s)=>M(t=>t&&{...t,[e]:s});return(0,a.jsxs)("div",{className:"page",children:[(0,a.jsxs)("div",{className:"page-head",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{children:e("nav.types")}),(0,a.jsx)("p",{children:e("types.subtitle")})]}),(0,a.jsxs)("button",{className:"btn primary",onClick:()=>S(x),children:[(0,a.jsx)(n.A,{size:16}),e("types.new")]})]}),b&&!s.length?(0,a.jsx)(p.pp,{title:e("types.empty.title"),body:e("types.empty.body"),action:(0,a.jsxs)("button",{className:"btn primary",onClick:()=>S(x),children:[(0,a.jsx)(n.A,{size:16}),e("types.empty.create")]})}):(0,a.jsx)("div",{className:"typegrid",children:s.map(s=>{let l=t.filter(e=>e.type_id===s.id).length;return(0,a.jsxs)("div",{className:"card typecard",children:[(0,a.jsxs)("div",{className:"row gap-l",children:[(0,a.jsx)(p._h,{color:c.xq[s.provider].color,queen:"orchestrator"===s.role,label:s.name.slice(0,2).toUpperCase()}),(0,a.jsxs)("div",{className:"grow",children:[(0,a.jsx)("h3",{className:"fa-card-title",children:s.name}),(0,a.jsx)("div",{className:"row gap-s mt-xs",children:(0,a.jsx)(p.PW,{role:s.role})})]})]}),(0,a.jsx)("p",{className:"muted small m0 fa-desc",children:s.description||e("types.noDescription")}),(0,a.jsxs)("div",{className:"row gap-s wrap",children:[(0,a.jsx)("span",{className:"chip",children:c.xq[s.provider].label}),(0,a.jsx)("span",{className:"chip",children:s.model||e("types.defaultModel")}),(0,a.jsx)("span",{className:"chip",children:e("types.skillsCount",{count:s.skill_ids.length})})]}),(0,a.jsxs)("div",{className:"row mt-xs",children:[(0,a.jsx)("span",{className:"muted small grow",children:e("types.usedBy",{count:l})}),(0,a.jsx)("button",{className:"btn sm",onClick:()=>S({...s}),children:e("common.edit")}),(0,a.jsx)("button",{className:"btn sm primary",onClick:()=>z(s.id),children:e("newAgent.create")})]})]},s.id)})}),f&&(0,a.jsxs)(p._s,{title:f.id?e("types.editTitle",{name:f.name||e("types.typeWord")}):e("types.newTitle"),subtitle:e("types.drawerSubtitle"),onClose:L,footer:(0,a.jsxs)(a.Fragment,{children:[f.id&&(0,a.jsxs)("button",{className:"btn danger push-r",onClick:()=>{var e;return w(null!=(e=s.find(e=>e.id===f.id))?e:null)},children:[(0,a.jsx)(r.A,{size:15}),e("common.delete")]}),(0,a.jsx)("button",{className:"btn ghost",onClick:L,children:e("common.cancel")}),(0,a.jsx)("button",{className:"btn primary",onClick:T,children:f.id?e("types.save"):e("types.create")})]}),children:[(0,a.jsx)(p.D0,{label:e("form.name"),error:A,children:(0,a.jsx)("input",{className:"input",value:f.name,onChange:e=>E("name",e.target.value),placeholder:e("types.name.placeholder"),autoFocus:!0})}),(0,a.jsx)(p.D0,{label:e("types.description"),hint:e("types.description.hint"),children:(0,a.jsx)("input",{className:"input",value:f.description,onChange:e=>E("description",e.target.value)})}),(0,a.jsx)(p.D0,{label:e("form.role"),children:(0,a.jsx)(p.$q,{value:f.role,onChange:e=>E("role",e),options:[{id:"worker",label:e("role.worker")},{id:"orchestrator",label:e("role.orchestrator")}]})}),(0,a.jsx)(p.D0,{label:e("form.provider"),children:(0,a.jsx)(p.YO,{value:f.provider,onChange:e=>M({...f,provider:e,model:""}),providers:j})}),(0,a.jsx)(p.CD,{provider:f.provider,value:f.model,onChange:e=>E("model",e)}),(0,a.jsx)(p.en,{value:f.permission,onChange:e=>E("permission",e)}),(0,a.jsx)(p.D0,{label:e("form.systemPrompt"),hint:e("types.chars",{count:f.system_prompt.length,n:(0,m._E)(f.system_prompt.length)}),children:(0,a.jsx)(i.n,{value:f.system_prompt,onChange:e=>E("system_prompt",e),minHeight:260})}),(0,a.jsx)(p.D0,{label:e("form.skills"),children:(0,a.jsx)(p.kV,{skills:k,value:f.skill_ids,loads:f.skill_loads,onChange:(e,s)=>M({...f,skill_ids:e,skill_loads:s})})})]}),C&&(0,a.jsx)(p.TM,{danger:!0,title:e("types.deleteTitle",{name:C.name}),body:e("types.deleteBody"),cancelLabel:e("types.keep"),confirmLabel:e("types.delete"),onClose:()=>w(null),onConfirm:async()=>{await o.FH.del("/types/".concat(C.id)),await v(["types","agents"]),M(null),g(e("types.deleted"))}}),q&&(0,a.jsx)(p.TM,{danger:!0,title:e("fa.unsaved.title"),body:e("fa.unsaved.body"),confirmLabel:e("fa.unsaved.discard"),cancelLabel:e("fa.unsaved.keep"),onClose:()=>H(!1),onConfirm:()=>M(null)}),_&&(0,a.jsx)(h.b,{presetTypeId:_,onClose:()=>z(null)})]})}},20555:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]])},32021:(e,s,t)=>{Promise.resolve().then(t.bind(t,11108))},52263:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},55712:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},55838:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},71529:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},91833:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]])},92947:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},97356:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},98148:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]])},98938:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},99579:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(74955).A)("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]])}},e=>{e.O(0,[586,706,281,517,408,89,358],()=>e(e.s=32021)),_N_E=e.O()}]);