claude-web/node_modules/claude-code-config-manager/dist/assets/ConfigurationPage-4UDblkST.js

479 lines
144 KiB
JavaScript
Raw Normal View History

2026-02-23 02:23:38 +00:00
import{p as se,B as re,q as gn,v as vn,x as yn,y as Re,c as C,o as y,a as m,z as $,A as ne,R as at,s as q,C as ee,D as Ie,r as J,e as w,E as H,d as j,t as D,n as N,w as T,b as P,G as W,H as ae,I as rt,T as Ke,_ as X,h as x,J as Z,i as O,K as bn,u as A,L as be,M as Pe,F as z,f as _,N as ye,O as hn,P as kn,Q as it,S as Be,W as wn,U as de,j as qe,V as te,X as et,Y as Cn,g as st,k as dt,Z as xn,$ as $n,m as En}from"./index-k1IBxX4P.js";import{m as An,h as Sn,d as In,e as Pn,s as Ue,u as jn,f as Tn,i as Vn,j as Dn,k as Mn,l as Bn,n as ct,g as ut,o as On,p as Un,q as Ln,r as Fn,t as Hn,v as Nn,w as Rn,x as Kn,y as pt,b as mt,z as qn,A as zn,B as Wn,C as Zn,D as ft,c as gt,E as Gn,F as Yn,L as Jn,G as Xn,a as Qn}from"./LoadingState-DpzKHwwk.js";import{s as _n,F as eo,u as to,b as no,L,M as vt,P as oo,T as ze,a as lo,H as ao,Y as yt,c as ro,d as bt,e as io,f as so,D as co}from"./DeleteConfirmationModal-8BmfEokU.js";import{a as tt,b as uo}from"./index-DD4ytruD.js";async function We(e){return(await se(`${re}/api/projects/${e}/skills`)).json()}async function Ze(){return(await se(`${re}/api/user/skills`)).json()}async function ht(e,t,n){return(await se(`${re}/api/projects/${e}/skills/${t}`,{method:"PUT",body:JSON.stringify(n)})).json()}async function kt(e,t){return(await se(`${re}/api/user/skills/${e}`,{method:"PUT",body:JSON.stringify(t)})).json()}async function wt(e,t){return(await se(`${re}/api/projects/${e}/skills/${t}`,{method:"DELETE"})).json()}async function Ct(e){return(await se(`${re}/api/user/skills/${e}`,{method:"DELETE"})).json()}async function po(e){return(await se(`${re}/api/copy/skill`,{method:"POST",body:JSON.stringify(e)})).json()}const mo=Object.freeze(Object.defineProperty({__proto__:null,copySkill:po,deleteProjectSkill:wt,deleteUserSkill:Ct,getProjectSkills:We,getUserSkills:Ze,updateProjectSkill:ht,updateUserSkill:kt},Symbol.toStringTag,{value:"Module"})),xt={BASE_URL:re,getProjects:yn,scanProjects:vn,healthCheck:gn,...Pn,...In,...mo,...Sn,...An};var $t={name:"PlusIcon",extends:Re};function fo(e){return bo(e)||yo(e)||vo(e)||go()}function go(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vo(e,t){if(e){if(typeof e=="string")return Le(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Le(e,t):void 0}}function yo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bo(e){if(Array.isArray(e))return Le(e)}function Le(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function ho(e,t,n,o,s,l){return y(),C("svg",$({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),fo(t[0]||(t[0]=[m("path",{d:"M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z",fill:"currentColor"},null,-1)])),16)}$t.render=ho;var ko=`
.p-panel {
display: block;
border: 1px solid dt('panel.border.color');
border-radius: dt('panel.border.radius');
background: dt('panel.background');
color: dt('panel.color');
}
.p-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: dt('panel.header.padding');
background: dt('panel.header.background');
color: dt('panel.header.color');
border-style: solid;
border-width: dt('panel.header.border.width');
border-color: dt('panel.header.border.color');
border-radius: dt('panel.header.border.radius');
}
.p-panel-toggleable .p-panel-header {
padding: dt('panel.toggleable.header.padding');
}
.p-panel-title {
line-height: 1;
font-weight: dt('panel.title.font.weight');
}
.p-panel-content {
padding: dt('panel.content.padding');
}
.p-panel-footer {
padding: dt('panel.footer.padding');
}
`,wo={root:function(t){var n=t.props;return["p-panel p-component",{"p-panel-toggleable":n.toggleable}]},header:"p-panel-header",title:"p-panel-title",headerActions:"p-panel-header-actions",pcToggleButton:"p-panel-toggle-button",contentContainer:"p-panel-content-container",content:"p-panel-content",footer:"p-panel-footer"},Co=ne.extend({name:"panel",style:ko,classes:wo}),xo={name:"BasePanel",extends:ee,props:{header:String,toggleable:Boolean,collapsed:Boolean,toggleButtonProps:{type:Object,default:function(){return{severity:"secondary",text:!0,rounded:!0}}}},style:Co,provide:function(){return{$pcPanel:this,$parentInstance:this}}},Et={name:"Panel",extends:xo,inheritAttrs:!1,emits:["update:collapsed","toggle"],data:function(){return{d_collapsed:this.collapsed}},watch:{collapsed:function(t){this.d_collapsed=t}},methods:{toggle:function(t){this.d_collapsed=!this.d_collapsed,this.$emit("update:collapsed",this.d_collapsed),this.$emit("toggle",{originalEvent:t,value:this.d_collapsed})},onKeyDown:function(t){(t.code==="Enter"||t.code==="NumpadEnter"||t.code==="Space")&&(this.toggle(t),t.preventDefault())}},computed:{buttonAriaLabel:function(){return this.toggleButtonProps&&this.toggleButtonProps.ariaLabel?this.toggleButtonProps.ariaLabel:this.header},dataP:function(){return Ie({toggleable:this.toggleable})}},components:{PlusIcon:$t,MinusIcon:_n,Button:q},directives:{ripple:at}},$o=["data-p"],Eo=["data-p"],Ao=["id"],So=["id","aria-labelledby"];function Io(e,t,n,o,s,l){var c=J("Button");return y(),C("div",$({class:e.cx("root"),"data-p":l.dataP},e.ptmi("root")),[m("div",$({class:e.cx("header"),"data-p":l.dataP},e.ptm("header")),[H(e.$slots,"header",{id:e.$id+"_header",class:N(e.cx("title")),collapsed:s.d_collapsed},function(){return[e.header?(y(),C("span",$({key:0,id:e.$id+"_header",class:e.cx("title")},e.ptm("title")),D(e.header),17,Ao)):j("",!0)]}),m("div",$({class:e.cx("headerActions")},e.ptm("headerActions")),[H(e.$slots,"icons"),e.toggleable?H(e.$slots,"togglebutton",{key:0,collapsed:s.d_collapsed,toggleCallback:function(h){return l.toggle(h)},keydownCallback:function(h){return l.onKeyDown(h)}},function(){return[w(c,$({id:e.$id+"_header",class:e.cx("pcToggleButton"),"aria-label":l.buttonAriaLabel,"aria-controls":e.$id+"_content","aria-expanded":!s.d_collapsed,unstyled:e.unstyled,onClick:t[0]||(t[0]=function(v){return l.toggle(v)}),onKeydown:t[1]||(t[1]=function(v){return l.onKeyDown(v)})},e.toggleButtonProps,{pt:e.ptm("pcToggleButton")}),{icon:T(function(v){return[H(e.$slots,e.$slots.toggleicon?"toggleicon":"togglericon",{collapsed:s.d_collapsed},function(){return[(y(),P(W(s.d_collapsed?"PlusIcon":"MinusIcon"),$({class:v.class},e.ptm("pcToggleButton").icon),null,16,["class"]))]})]}),_:3},16,["id","class","aria-label","aria-controls","aria-expanded","unstyled","pt"])]}):j("",!0)],16)],16,Eo),w(Ke,$({name:"p-toggleable-content"},e.ptm("transition")),{default:T(function(){return[ae(m("div",$({id:e.$id+"_content",class:e.cx("contentContainer"),role:"region","aria-labelledby":e.$id+"_header"},e.ptm("contentContainer")),[m("div",$({class:e.cx("content")},e.ptm("content")),[H(e.$slots,"default")],16),e.$slots.footer?(y(),C("div",$({key:0,class:e.cx("footer")},e.ptm("footer")),[H(e.$slots,"footer")],16)):j("",!0)],16,So),[[rt,!s.d_collapsed]])]}),_:3},16)],16,$o)}Et.render=Io;const Po={class:"flex items-center gap-3"},jo={class:"text-lg md:text-lg max-md:text-base font-semibold text-text-emphasis"},To={class:"panel-content"},Vo={key:0,class:"px-5 py-4 md:px-5 md:py-4 max-md:px-4 max-md:py-4 w-full"},Do={key:1,class:"px-5 py-12 md:px-5 md:py-12 max-md:px-4 max-md:py-10 text-center text-text-muted w-full"},Mo={class:"m-0 text-sm text-text-secondary"},Bo={key:2,class:"w-full"},Oo={__name:"ConfigPanel",props:{title:{type:String,required:!0,validator:e=>e.trim().length>0},count:{type:Number,required:!0,validator:e=>e>=0},icon:{type:String,required:!0,validator:e=>e.includes("pi-")},color:{type:String,required:!0,validator:e=>e.startsWith("var(--color-")},loading:{type:Boolean,required:!0},items:{type:Array,required:!0},showingAll:{type:Boo
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zo(e,t){if(e){if(typeof e=="string")return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}function Wo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zo(e){if(Array.isArray(e))return Fe(e)}function Fe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Go(e,t,n,o,s,l){return y(),C("svg",$({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),Ko(t[0]||(t[0]=[m("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1)])),16)}Ge.render=Go;var Yo=`
.p-breadcrumb {
background: dt('breadcrumb.background');
padding: dt('breadcrumb.padding');
overflow-x: auto;
}
.p-breadcrumb-list {
margin: 0;
padding: 0;
list-style-type: none;
display: flex;
align-items: center;
flex-wrap: nowrap;
gap: dt('breadcrumb.gap');
}
.p-breadcrumb-separator {
display: flex;
align-items: center;
color: dt('breadcrumb.separator.color');
}
.p-breadcrumb-separator-icon:dir(rtl) {
transform: rotate(180deg);
}
.p-breadcrumb::-webkit-scrollbar {
display: none;
}
.p-breadcrumb-item-link {
text-decoration: none;
display: flex;
align-items: center;
gap: dt('breadcrumb.item.gap');
transition:
background dt('breadcrumb.transition.duration'),
color dt('breadcrumb.transition.duration'),
outline-color dt('breadcrumb.transition.duration'),
box-shadow dt('breadcrumb.transition.duration');
border-radius: dt('breadcrumb.item.border.radius');
outline-color: transparent;
color: dt('breadcrumb.item.color');
}
.p-breadcrumb-item-link:focus-visible {
box-shadow: dt('breadcrumb.item.focus.ring.shadow');
outline: dt('breadcrumb.item.focus.ring.width') dt('breadcrumb.item.focus.ring.style') dt('breadcrumb.item.focus.ring.color');
outline-offset: dt('breadcrumb.item.focus.ring.offset');
}
.p-breadcrumb-item-link:hover .p-breadcrumb-item-label {
color: dt('breadcrumb.item.hover.color');
}
.p-breadcrumb-item-label {
transition: inherit;
}
.p-breadcrumb-item-icon {
color: dt('breadcrumb.item.icon.color');
transition: inherit;
}
.p-breadcrumb-item-link:hover .p-breadcrumb-item-icon {
color: dt('breadcrumb.item.icon.hover.color');
}
`,Jo={root:"p-breadcrumb p-component",list:"p-breadcrumb-list",homeItem:"p-breadcrumb-home-item",separator:"p-breadcrumb-separator",separatorIcon:"p-breadcrumb-separator-icon",item:function(t){var n=t.instance;return["p-breadcrumb-item",{"p-disabled":n.disabled()}]},itemLink:"p-breadcrumb-item-link",itemIcon:"p-breadcrumb-item-icon",itemLabel:"p-breadcrumb-item-label"},Xo=ne.extend({name:"breadcrumb",style:Yo,classes:Jo}),Qo={name:"BaseBreadcrumb",extends:ee,props:{model:{type:Array,default:null},home:{type:null,default:null}},style:Xo,provide:function(){return{$pcBreadcrumb:this,$parentInstance:this}}},At={name:"BreadcrumbItem",hostName:"Breadcrumb",extends:ee,props:{item:null,templates:null,index:null},methods:{onClick:function(t){this.item.command&&this.item.command({originalEvent:t,item:this.item})},visible:function(){return typeof this.item.visible=="function"?this.item.visible():this.item.visible!==!1},disabled:function(){return typeof this.item.disabled=="function"?this.item.disabled():this.item.disabled},label:function(){return typeof this.item.label=="function"?this.item.label():this.item.label},isCurrentUrl:function(){var t=this.item,n=t.to,o=t.url,s=typeof window<"u"?window.location.pathname:"";return n===s||o===s?"page":void 0}},computed:{ptmOptions:function(){return{context:{item:this.item,index:this.index}}},getMenuItemProps:function(){var t=this;return{action:$({class:this.cx("itemLink"),"aria-current":this.isCurrentUrl(),onClick:function(o){return t.onClick(o)}},this.ptm("itemLink",this.ptmOptions)),icon:$({class:[this.cx("icon"),this.item.icon]},this.ptm("icon",this.ptmOptions)),label:$({class:this.cx("label")},this.ptm("label",this.ptmOptions))}}}},_o=["href","target","aria-current"];function el(e,t,n,o,s,l){return l.visible()?(y(),C("li",$({key:0,class:[e.cx("item"),n.item.class]},e.ptm("item",l.ptmOptions)),[n.templates.item?(y(),P(W(n.templates.item),{key:1,item:n.item,label:l.label(),props:l.getMenuItemProps},null,8,["item","label","props"])):(y(),C("a",$({key:0,href:n.item.url||"#",class:e.cx("itemLink"),target:n.item.target,"aria-current":l.isCurrentUrl(),onClick:t[0]||(t[0]=function(){return l.onClick&&l.onClick.apply(l,arguments)})},e.ptm("itemLink",l.ptmOptions)),[n.templates&&n.templates.itemicon?(y(),P(W(n.templates.itemicon),{key:0,item:n.item,class:N(e.cx("itemIcon",l.ptmOptions))},null,8,["item","class"])):n.item.icon?(y(),C("span",$({key:1,class:[e.cx("itemIcon"),n.item.icon]},e.ptm("itemIcon",l.ptmOptions)),null,16)):j("",!0),n.item.label?(y(),C("span",$({key:2,class:e.cx("itemLabel")},e.ptm("itemLabel",l.ptmOptions)),D(l.label()),17)):j("",!0)],16,_o))],16)):j("",!0)}At.render=el;var St={name:"Breadcrumb",extends:Qo,inheritAttrs:!1,components:{BreadcrumbItem:At,ChevronRightIcon:Ge}};function tl(e,t,n,o,s,l){var c=J("BreadcrumbItem"),v=J("ChevronRightIcon");return y(),C("nav",$({class:e.cx("root")},e.ptmi("root")),[m("ol",$({class:e.cx("list")},e.ptm("list")),[e.home?(y(),P(c,$({key:0,item:e.home,class:e.cx("homeItem"),templates:e.$slots,pt:e.pt,unstyled:e.unstyled},e.ptm("homeItem")),null,16,["item","class","templates","pt","unstyled"])):j("",!0),(y(!0),C(z,null,_(e.model,function(h,f){return y(),C(z,{key:h.label+"_"+f},[e.home||f!==0?(y(),C("li",$({key:0,class:e.cx("separator")},{ref_for:!0},e.ptm("separator")),[H(e.$slots,"separator",{},function(){return[w(v,$({"aria-hidden":"true",class:e.cx("separatorIcon")},{ref_for:!0},e.ptm("separatorIcon")),null,16,["class"])]})],16)):j("",!0),w(c,{item:h,index:f,templates:e.$slots,pt:e.pt,unstyled:e.unstyled},null,8,["item","index","templates","pt","unstyled"])],64)}),128))],16)],16)}St.render=tl;const nl={class:"breadcrumbs","aria-label":"Breadcrumb"},ol={class:"breadcrumb-label"},ll={class:"breadcrumb-label"},al={__name:"BreadcrumbNavigation",props:{items:{type:Array,required:!0,validator:e=>e.every(t=>{const n=t.label&&typeof t.label=="string",o=t.route===void 0||t.route===null||typeof t.route=="string";return n&&o})}},setup(e){const t=e,n=O(()=>{if(t.items.length===0)return null;const s=t.items[0];return{label:s.label,to:s.route,icon:s.ico
.p-drawer {
display: flex;
flex-direction: column;
transform: translate3d(0px, 0px, 0px);
position: relative;
transition: transform 0.3s;
background: dt('drawer.background');
color: dt('drawer.color');
border: 1px solid dt('drawer.border.color');
box-shadow: dt('drawer.shadow');
}
.p-drawer-content {
overflow-y: auto;
flex-grow: 1;
padding: dt('drawer.content.padding');
}
.p-drawer-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
padding: dt('drawer.header.padding');
}
.p-drawer-footer {
padding: dt('drawer.footer.padding');
}
.p-drawer-title {
font-weight: dt('drawer.title.font.weight');
font-size: dt('drawer.title.font.size');
}
.p-drawer-full .p-drawer {
transition: none;
transform: none;
width: 100vw !important;
height: 100vh !important;
max-height: 100%;
top: 0px !important;
left: 0px !important;
border-width: 1px;
}
.p-drawer-left .p-drawer-enter-from,
.p-drawer-left .p-drawer-leave-to {
transform: translateX(-100%);
}
.p-drawer-right .p-drawer-enter-from,
.p-drawer-right .p-drawer-leave-to {
transform: translateX(100%);
}
.p-drawer-top .p-drawer-enter-from,
.p-drawer-top .p-drawer-leave-to {
transform: translateY(-100%);
}
.p-drawer-bottom .p-drawer-enter-from,
.p-drawer-bottom .p-drawer-leave-to {
transform: translateY(100%);
}
.p-drawer-full .p-drawer-enter-from,
.p-drawer-full .p-drawer-leave-to {
opacity: 0;
}
.p-drawer-full .p-drawer-enter-active,
.p-drawer-full .p-drawer-leave-active {
transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
}
.p-drawer-left .p-drawer {
width: 20rem;
height: 100%;
border-inline-end-width: 1px;
}
.p-drawer-right .p-drawer {
width: 20rem;
height: 100%;
border-inline-start-width: 1px;
}
.p-drawer-top .p-drawer {
height: 10rem;
width: 100%;
border-block-end-width: 1px;
}
.p-drawer-bottom .p-drawer {
height: 10rem;
width: 100%;
border-block-start-width: 1px;
}
.p-drawer-left .p-drawer-content,
.p-drawer-right .p-drawer-content,
.p-drawer-top .p-drawer-content,
.p-drawer-bottom .p-drawer-content {
width: 100%;
height: 100%;
}
.p-drawer-open {
display: flex;
}
.p-drawer-mask:dir(rtl) {
flex-direction: row-reverse;
}
`,sl={mask:function(t){var n=t.position,o=t.modal;return{position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:n==="left"?"flex-start":n==="right"?"flex-end":"center",alignItems:n==="top"?"flex-start":n==="bottom"?"flex-end":"center",pointerEvents:o?"auto":"none"}},root:{pointerEvents:"auto"}},dl={mask:function(t){var n=t.instance,o=t.props,s=["left","right","top","bottom"],l=s.find(function(c){return c===o.position});return["p-drawer-mask",{"p-overlay-mask p-overlay-mask-enter":o.modal,"p-drawer-open":n.containerVisible,"p-drawer-full":n.fullScreen},l?"p-drawer-".concat(l):""]},root:function(t){var n=t.instance;return["p-drawer p-component",{"p-drawer-full":n.fullScreen}]},header:"p-drawer-header",title:"p-drawer-title",pcCloseButton:"p-drawer-close-button",content:"p-drawer-content",footer:"p-drawer-footer"},cl=ne.extend({name:"drawer",style:il,classes:dl,inlineStyles:sl}),ul={name:"BaseDrawer",extends:ee,props:{visible:{type:Boolean,default:!1},position:{type:String,default:"left"},header:{type:null,default:null},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!0},closeButtonProps:{type:Object,default:function(){return{severity:"secondary",text:!0,rounded:!0}}},closeIcon:{type:String,default:void 0},modal:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},closeOnEscape:{type:Boolean,default:!0}},style:cl,provide:function(){return{$pcDrawer:this,$parentInstance:this}}};function he(e){"@babel/helpers - typeof";return he=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(e)}function Oe(e,t,n){return(t=pl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pl(e){var t=ml(e,"string");return he(t)=="symbol"?t:t+""}function ml(e,t){if(he(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(he(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var It={name:"Drawer",extends:ul,inheritAttrs:!1,emits:["update:visible","show","after-show","hide","after-hide","before-hide"],data:function(){return{containerVisible:this.visible}},container:null,mask:null,content:null,headerContainer:null,footerContainer:null,closeButton:null,outsideClickListener:null,documentKeydownListener:null,watch:{dismissable:function(t){t&&!this.modal?this.bindOutsideClickListener():this.unbindOutsideClickListener()}},updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.disableDocumentSettings(),this.mask&&this.autoZIndex&&Be.clear(this.mask),this.container=null,this.mask=null},methods:{hide:function(){this.$emit("update:visible",!1)},onEnter:function(){this.$emit("show"),this.focus(),this.bindDocumentKeyDownListener(),this.autoZIndex&&Be.set("modal",this.mask,this.baseZIndex||this.$primevue.config.zIndex.modal)},onAfterEnter:function(){this.enableDocumentSettings(),this.$emit("after-show")},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&wn(this.mask,"p-overlay-mask-leave"),this.$emit("before-hide")},onLeave:function(){this.$emit("hide")},onAfterLeave:function(){this.autoZIndex&&Be.clear(this.mask),this.unbindDocumentKeyDownListener(),this.containerVisible=!1,this.disableDocumentSettings(),this.$emit("after-hide")},onMaskClick:function(t){this.dismissable&&this.modal&&this.mask===t.target&&this.hide()},focus:function(){var t=function(s){return s&&s.querySelector("[autofocus]")},n=this.$slots.header&&t(this.headerContainer);n||(n=this.$slots.default&&t(this.container),n||(n=this.$slots.footer&&t(this.footerContainer),n||(n=this.closeButton))),n&&it(n)},enableDocumentSettings:function(){this.dismissable&&!this.modal&&this.bindOutsideClickListener(),this.blockScroll&&no()},disableDocumentSettings:function(){this.unbindOutsideClickListener(),this.block
`)&&(d=d.substring(1)),l.value={name:p.name||"",description:p.description||"",color:p.color||"",model:p.model||"inherit",permissionMode:p.permissionMode||"default",tools:p.tools||[],skills:p.skills||[],systemPrompt:d},c.value=null}},{immediate:!0});const i=p=>{c.value=p,s("update:editing-field",p)},a=()=>{c.value=null,s("update:editing-field",null)},r=async(p,d)=>{if(o.canEdit)try{const u={[p]:d};(await n.updateAgent(o.projectId,o.selectedItem.name,u,o.scope)).success&&(l.value[p]=d,s("agent-updated"))}finally{c.value=null,s("update:editing-field",null)}};return(p,d)=>(y(),C("div",null,[m("div",yl,[d[24]||(d[24]=m("h4",{class:"mb-3 text-sm font-semibold text-text-primary uppercase tracking-wider"},"Metadata",-1)),w(L,{modelValue:l.value.name,"onUpdate:modelValue":d[0]||(d[0]=u=>l.value.name=u),"field-type":"text",label:"Name",placeholder:"agent-name",disabled:!e.canEdit||c.value!==null&&c.value!=="name",validation:[{type:"required"},{type:"agentName"}],onEditStart:d[1]||(d[1]=u=>i("name")),onEditCancel:a,onEditAccept:d[2]||(d[2]=u=>r("name",u))},null,8,["modelValue","disabled"]),w(L,{modelValue:l.value.description,"onUpdate:modelValue":d[3]||(d[3]=u=>l.value.description=u),"field-type":"textarea",label:"Description",placeholder:"Brief description",disabled:!e.canEdit||c.value!==null&&c.value!=="description",validation:[{type:"required"},{type:"minLength",param:10,message:"Description must be at least 10 characters"}],onEditStart:d[4]||(d[4]=u=>i("description")),onEditCancel:a,onEditAccept:d[5]||(d[5]=u=>r("description",u))},null,8,["modelValue","disabled"]),w(L,{modelValue:l.value.color,"onUpdate:modelValue":d[6]||(d[6]=u=>l.value.color=u),"field-type":"colorpalette",label:"Color",disabled:!e.canEdit||c.value!==null&&c.value!=="color",onEditStart:d[7]||(d[7]=u=>i("color")),onEditCancel:a,onEditAccept:d[8]||(d[8]=u=>r("color",u))},null,8,["modelValue","disabled"]),w(L,{modelValue:l.value.model,"onUpdate:modelValue":d[9]||(d[9]=u=>l.value.model=u),"field-type":"selectbutton",label:"Model",options:A(v),disabled:!e.canEdit||c.value!==null&&c.value!=="model",onEditStart:d[10]||(d[10]=u=>i("model")),onEditCancel:a,onEditAccept:d[11]||(d[11]=u=>r("model",u))},null,8,["modelValue","options","disabled"]),w(L,{modelValue:l.value.permissionMode,"onUpdate:modelValue":d[12]||(d[12]=u=>l.value.permissionMode=u),"field-type":"select",label:"Permission Mode",options:A(h),disabled:!e.canEdit||c.value!==null&&c.value!=="permissionMode",onEditStart:d[13]||(d[13]=u=>i("permissionMode")),onEditCancel:a,onEditAccept:d[14]||(d[14]=u=>r("permissionMode",u))},null,8,["modelValue","options","disabled"]),w(L,{modelValue:l.value.tools,"onUpdate:modelValue":d[15]||(d[15]=u=>l.value.tools=u),"field-type":"multiselect",label:"Allowed Tools",options:A(f),placeholder:"Select allowed tools",disabled:!e.canEdit||c.value!==null&&c.value!=="tools",onEditStart:d[16]||(d[16]=u=>i("tools")),onEditCancel:a,onEditAccept:d[17]||(d[17]=u=>r("tools",u))},null,8,["modelValue","options","disabled"]),w(L,{modelValue:l.value.skills,"onUpdate:modelValue":d[18]||(d[18]=u=>l.value.skills=u),"field-type":"multiselect",label:"Skills",options:g,placeholder:"Select skills",disabled:!e.canEdit||c.value!==null&&c.value!=="skills",onEditStart:d[19]||(d[19]=u=>i("skills")),onEditCancel:a,onEditAccept:d[20]||(d[20]=u=>r("skills",u))},null,8,["modelValue","disabled"])]),m("div",bl,[d[25]||(d[25]=m("h4",{class:"mb-3 text-sm font-semibold text-text-primary uppercase tracking-wider"},"System Prompt",-1)),w(L,{modelValue:l.value.systemPrompt,"onUpdate:modelValue":d[21]||(d[21]=u=>l.value.systemPrompt=u),"field-type":"textarea",label:"System Prompt",placeholder:"The agent's system prompt (instructions)",disabled:!e.canEdit||c.value!==null&&c.value!=="systemPrompt",validation:[{type:"required"},{type:"minLength",param:20,message:"System prompt must be at least 20 characters"}],onEditStart:d[22]||(d[22]=u=>i("systemPrompt")),onEditCancel:a,onEditAccept:d[23]||(d[23]=u=>r("systemPrompt",u))},null,8,["modelValue","disabled"])])]))}},kl=X(hl,[["__scopeId","data-v-782fd5e0"]]),jt=de("command
.p-inputchips {
display: inline-flex;
}
.p-inputchips-input {
margin: 0;
list-style-type: none;
cursor: text;
overflow: hidden;
display: flex;
align-items: center;
flex-wrap: wrap;
padding: calc(dt('inputchips.padding.y') / 2) dt('inputchips.padding.x');
gap: calc(dt('inputchips.padding.y') / 2);
color: dt('inputchips.color');
background: dt('inputchips.background');
border: 1px solid dt('inputchips.border.color');
border-radius: dt('inputchips.border.radius');
width: 100%;
transition:
background dt('inputchips.transition.duration'),
color dt('inputchips.transition.duration'),
border-color dt('inputchips.transition.duration'),
outline-color dt('inputchips.transition.duration'),
box-shadow dt('inputchips.transition.duration');
outline-color: transparent;
box-shadow: dt('inputchips.shadow');
}
.p-inputchips:not(.p-disabled):hover .p-inputchips-input {
border-color: dt('inputchips.hover.border.color');
}
.p-inputchips:not(.p-disabled).p-focus .p-inputchips-input {
border-color: dt('inputchips.focus.border.color');
box-shadow: dt('inputchips.focus.ring.shadow');
outline: dt('inputchips.focus.ring.width') dt('inputchips.focus.ring.style') dt('inputchips.focus.ring.color');
outline-offset: dt('inputchips.focus.ring.offset');
}
.p-inputchips.p-invalid .p-inputchips-input {
border-color: dt('inputchips.invalid.border.color');
}
.p-variant-filled.p-inputchips-input {
background: dt('inputchips.filled.background');
}
.p-inputchips:not(.p-disabled).p-focus .p-variant-filled.p-inputchips-input {
background: dt('inputchips.filled.focus.background');
}
.p-inputchips.p-disabled .p-inputchips-input {
opacity: 1;
background: dt('inputchips.disabled.background');
color: dt('inputchips.disabled.color');
}
.p-inputchips-chip.p-chip {
padding-top: calc(dt('inputchips.padding.y') / 2);
padding-bottom: calc(dt('inputchips.padding.y') / 2);
border-radius: dt('inputchips.chip.border.radius');
transition:
background dt('inputchips.transition.duration'),
color dt('inputchips.transition.duration');
}
.p-inputchips-chip-item.p-focus .p-inputchips-chip {
background: dt('inputchips.chip.focus.background');
color: dt('inputchips.chip.focus.color');
}
.p-inputchips-input:has(.p-inputchips-chip) {
padding-left: calc(dt('inputchips.padding.y') / 2);
padding-right: calc(dt('inputchips.padding.y') / 2);
}
.p-inputchips-input-item {
flex: 1 1 auto;
display: inline-flex;
padding-top: calc(dt('inputchips.padding.y') / 2);
padding-bottom: calc(dt('inputchips.padding.y') / 2);
}
.p-inputchips-input-item input {
border: 0 none;
outline: 0 none;
background: transparent;
margin: 0;
padding: 0;
box-shadow: none;
border-radius: 0;
width: 100%;
font-family: inherit;
font-feature-settings: inherit;
font-size: 1rem;
color: inherit;
}
.p-inputchips-input-item input::placeholder {
color: dt('inputchips.placeholder.color');
}
`,Pl={root:function(t){var n=t.instance,o=t.props;return["p-inputchips p-component p-inputwrapper",{"p-disabled":o.disabled,"p-invalid":o.invalid,"p-focus":n.focused,"p-inputwrapper-filled":o.modelValue&&o.modelValue.length||n.inputValue&&n.inputValue.length,"p-inputwrapper-focus":n.focused}]},input:function(t){var n=t.props,o=t.instance;return["p-inputchips-input",{"p-variant-filled":n.variant?n.variant==="filled":o.$primevue.config.inputStyle==="filled"||o.$primevue.config.inputVariant==="filled"}]},chipItem:function(t){var n=t.state,o=t.index;return["p-inputchips-chip-item",{"p-focus":n.focusedIndex===o}]},pcChip:"p-inputchips-chip",chipIcon:"p-inputchips-chip-icon",inputItem:"p-inputchips-input-item"},jl=ne.extend({name:"inputchips",style:Il,classes:Pl}),Tl={name:"BaseInputChips",extends:ee,props:{modelValue:{type:Array,default:null},max:{type:Number,default:null},separator:{type:[String,Object],default:null},addOnBlur:{type:Boolean,default:null},allowDuplicate:{type:Boolean,default:!0},placeholder:{type:String,default:null},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},removeTokenIcon:{type:String,default:void 0},chipIcon:{type:String,default:void 0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:jl,provide:function(){return{$pcInputChips:this,$parentInstance:this}}};function Se(e){return Bl(e)||Ml(e)||Dl(e)||Vl()}function Vl(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dl(e,t){if(e){if(typeof e=="string")return He(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?He(e,t):void 0}}function Ml(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bl(e){if(Array.isArray(e))return He(e)}function He(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Vt={name:"InputChips",extends:Tl,inheritAttrs:!1,emits:["update:modelValue","add","remove","focus","blur"],data:function(){return{inputValue:null,focused:!1,focusedIndex:null}},mounted:function(){console.warn("Deprecated since v4. Use AutoComplete component instead with its typeahead property.")},methods:{onWrapperClick:function(){this.$refs.input.focus()},onInput:function(t){this.inputValue=t.target.value,this.focusedIndex=null},onFocus:function(t){this.focused=!0,this.focusedIndex=null,this.$emit("focus",t)},onBlur:function(t){this.focused=!1,this.focusedIndex=null,this.addOnBlur&&this.addItem(t,t.target.value,!1),this.$emit("blur",t)},onKeyDown:function(t){var n=t.target.value;switch(t.code){case"Backspace":n.length===0&&this.modelValue&&this.modelValue.length>0&&(this.focusedIndex!==null?this.removeItem(t,this.focusedIndex):this.removeItem(t,this.modelValue.length-1));break;case"Enter":case"NumpadEnter":n&&n.trim().length&&!this.maxedOut&&this.addItem(t,n,!0);break;case"ArrowLeft":n.length===0&&this.modelValue&&this.modelValue.length>0&&this.$refs.container.focus();break;case"ArrowRight":t.stopPropagation();break;default:this.separator&&(this.separator===t.key||t.key.match(this.separator))&&this.addItem(t,n,!0);break}},onPaste:function(t){var n=this;if(this.separator){var o=this.separator.replace("\\n",`
`).replace("\\r","\r").replace("\\t"," "),s=(t.clipboardData||window.clipboardData).getData("Text");if(s){var l=this.modelValue||[],c=s.split(o);c=c.filter(function(v){return n.allowDuplicate||l.indexOf(v)===-1}),l=[].concat(Se(l),Se(c)),this.updateModel(t,l,!0)}}},onContainerFocus:function(){this.focused=!0},onContainerBlur:function(){this.focusedIndex=-1,this.focused=!1},onContainerKeyDown:function(t){switch(t.code){case"ArrowLeft":this.onArrowLeftKeyOn(t);break;case"ArrowRight":this.onArrowRightKeyOn(t);break;case"Backspace":this.onBackspaceKeyOn(t);break}},onArrowLeftKeyOn:function(){this.inputValue.length===0&&this.modelValue&&this.modelValue.length>0&&(this.focusedIndex=this.focusedIndex===null?this.modelValue.length-1:this.focusedIndex-1,this.focusedIndex<0&&(this.focusedIndex=0))},onArrowRightKeyOn:function(){this.inputValue.length===0&&this.modelValue&&this.modelValue.length>0&&(this.focusedIndex===this.modelValue.length-1?(this.focusedIndex=null,this.$refs.input.focus()):this.focusedIndex++)},onBackspaceKeyOn:function(t){this.focusedIndex!==null&&this.removeItem(t,this.focusedIndex)},updateModel:function(t,n,o){var s=this;this.$emit("update:modelValue",n),this.$emit("add",{originalEvent:t,value:n}),this.$refs.input.value="",this.inputValue="",setTimeout(function(){s.maxedOut&&(s.focused=!1)},0),o&&t.preventDefault()},addItem:function(t,n,o){if(n&&n.trim().length){var s=this.modelValue?Se(this.modelValue):[];(this.allowDuplicate||s.indexOf(n)===-1)&&(s.push(n),this.updateModel(t,s,o))}},removeItem:function(t,n){if(!this.disabled){var o=Se(this.modelValue),s=o.splice(n,1);this.focusedIndex=null,this.$refs.input.focus(),this.$emit("update:modelValue",o),this.$emit("remove",{originalEvent:t,value:s})}}},computed:{maxedOut:function(){return this.max&&this.modelValue&&this.max===this.modelValue.length},focusedOptionId:function(){return this.focusedIndex!==null?"".concat(this.$id,"_inputchips_item_").concat(this.focusedIndex):null}},components:{Chip:ro}};function ke(e){"@babel/helpers - typeof";return ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ke(e)}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,o)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nt(Object(n),!0).forEach(function(o){Ol(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function Ol(e,t,n){return(t=Ul(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ul(e){var t=Ll(e,"string");return ke(t)=="symbol"?t:t+""}function Ll(e,t){if(ke(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(ke(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fl=["aria-labelledby","aria-label","aria-activedescendant"],Hl=["id","aria-label","aria-setsize","aria-posinset","data-p-focused"],Nl=["id","disabled","placeholder","aria-invalid"];function Rl(e,t,n,o,s,l){var c=J("Chip");return y(),C("div",$({class:e.cx("root")},e.ptmi("root")),[m("ul",$({ref:"container",class:e.cx("input"),tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-activedescendant":s.focused?l.focusedOptionId:void 0,onClick:t[5]||(t[5]=function(v){return l.onWrapperClick()}),onFocus:t[6]||(t[6]=function(){return l.onContainerFocus&&l.onContainerFocus.apply(l,arguments)}),onBlur:t[7]||(t[7]=function(){return l.onContainerBlur&&l.onContainerBlur.apply(l,arguments)}),onKeydown:t[8]||(t[8]=function(){return l.onContainerKeyDown&&l.onCon
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function la(e,t){if(e){if(typeof e=="string")return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}function aa(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ra(e){if(Array.isArray(e))return Ne(e)}function Ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function ia(e,t,n,o,s,l){return y(),C("svg",$({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),na(t[0]||(t[0]=[m("path",{d:"M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z",fill:"currentColor"},null,-1)])),16)}Ye.render=ia;var sa={root:"p-accordioncontent",content:"p-accordioncontent-content"},da=ne.extend({name:"accordioncontent",classes:sa}),ca={name:"BaseAccordionContent",extends:ee,props:{as:{type:[String,Object],default:"DIV"},asChild:{type:Boolean,default:!1}},style:da,provide:function(){return{$pcAccordionContent:this,$parentInstance:this}}},Je={name:"AccordionContent",extends:ca,inheritAttrs:!1,inject:["$pcAccordion","$pcAccordionPanel"],computed:{id:function(){return"".concat(this.$pcAccordion.$id,"_accordioncontent_").concat(this.$pcAccordionPanel.value)},ariaLabelledby:function(){return"".concat(this.$pcAccordion.$id,"_accordionheader_").concat(this.$pcAccordionPanel.value)},attrs:function(){return $(this.a11yAttrs,this.ptmi("root",this.ptParams))},a11yAttrs:function(){return{id:this.id,role:"region","aria-labelledby":this.ariaLabelledby,"data-pc-name":"accordioncontent","data-p-active":this.$pcAccordionPanel.active}},ptParams:function(){return{context:{active:this.$pcAccordionPanel.active}}}}};function ua(e,t,n,o,s,l){return e.asChild?H(e.$slots,"default",{key:1,class:N(e.cx("root")),active:l.$pcAccordionPanel.active,a11yAttrs:l.a11yAttrs}):(y(),P(Ke,$({key:0,name:"p-toggleable-content"},e.ptm("transition",l.ptParams)),{default:T(function(){return[!l.$pcAccordion.lazy||l.$pcAccordionPanel.active?ae((y(),P(W(e.as),$({key:0,class:e.cx("root")},l.attrs),{default:T(function(){return[m("div",$({class:e.cx("content")},e.ptm("content",l.ptParams)),[H(e.$slots,"default")],16)]}),_:3},16,["class"])),[[rt,l.$pcAccordion.lazy?!0:l.$pcAccordionPanel.active]]):j("",!0)]}),_:3},16))}Je.render=ua;var pa={root:"p-accordionheader",toggleicon:"p-accordionheader-toggle-icon"},ma=ne.extend({name:"accordionheader",classes:pa}),fa={name:"BaseAccordionHeader",extends:ee,props:{as:{type:[String,Object],default:"BUTTON"},asChild:{type:Boolean,default:!1}},style:ma,provide:function(){return{$pcAccordionHeader:this,$parentInstance:this}}},Xe={name:"AccordionHeader",extends:fa,inheritAttrs:!1,inject:["$pcAccordion","$pcAccordionPanel"],methods:{onFocus:function(){this.$pcAccordion.selectOnFocus&&this.changeActiveValue()},onClick:function(){!this.$pcAccordion.selectOnFocus&&this.changeActiveValue()},onKeydown:function(t){switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t);break;case"Home":this.onHomeKey(t);break;case"End":this.onEndKey(t);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(t);break}},onArrowDownKey:function(t){var n=this.findNextPanel(this.findPanel(t.currentTarget));n?this.changeFocusedPanel(t,n):this.onHomeKey(t),t.preventDefault()},onArrowUpKey:function(t){var n=this.findPrevPanel
.p-accordionpanel {
display: flex;
flex-direction: column;
border-style: solid;
border-width: dt('accordion.panel.border.width');
border-color: dt('accordion.panel.border.color');
}
.p-accordionheader {
all: unset;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
padding: dt('accordion.header.padding');
color: dt('accordion.header.color');
background: dt('accordion.header.background');
border-style: solid;
border-width: dt('accordion.header.border.width');
border-color: dt('accordion.header.border.color');
font-weight: dt('accordion.header.font.weight');
border-radius: dt('accordion.header.border.radius');
transition:
background dt('accordion.transition.duration'),
color dt('accordion.transition.duration'),
outline-color dt('accordion.transition.duration'),
box-shadow dt('accordion.transition.duration');
outline-color: transparent;
}
.p-accordionpanel:first-child > .p-accordionheader {
border-width: dt('accordion.header.first.border.width');
border-start-start-radius: dt('accordion.header.first.top.border.radius');
border-start-end-radius: dt('accordion.header.first.top.border.radius');
}
.p-accordionpanel:last-child > .p-accordionheader {
border-end-start-radius: dt('accordion.header.last.bottom.border.radius');
border-end-end-radius: dt('accordion.header.last.bottom.border.radius');
}
.p-accordionpanel:last-child.p-accordionpanel-active > .p-accordionheader {
border-end-start-radius: dt('accordion.header.last.active.bottom.border.radius');
border-end-end-radius: dt('accordion.header.last.active.bottom.border.radius');
}
.p-accordionheader-toggle-icon {
color: dt('accordion.header.toggle.icon.color');
}
.p-accordionpanel:not(.p-disabled) .p-accordionheader:focus-visible {
box-shadow: dt('accordion.header.focus.ring.shadow');
outline: dt('accordion.header.focus.ring.width') dt('accordion.header.focus.ring.style') dt('accordion.header.focus.ring.color');
outline-offset: dt('accordion.header.focus.ring.offset');
}
.p-accordionpanel:not(.p-accordionpanel-active):not(.p-disabled) > .p-accordionheader:hover {
background: dt('accordion.header.hover.background');
color: dt('accordion.header.hover.color');
}
.p-accordionpanel:not(.p-accordionpanel-active):not(.p-disabled) .p-accordionheader:hover .p-accordionheader-toggle-icon {
color: dt('accordion.header.toggle.icon.hover.color');
}
.p-accordionpanel:not(.p-disabled).p-accordionpanel-active > .p-accordionheader {
background: dt('accordion.header.active.background');
color: dt('accordion.header.active.color');
}
.p-accordionpanel:not(.p-disabled).p-accordionpanel-active > .p-accordionheader .p-accordionheader-toggle-icon {
color: dt('accordion.header.toggle.icon.active.color');
}
.p-accordionpanel:not(.p-disabled).p-accordionpanel-active > .p-accordionheader:hover {
background: dt('accordion.header.active.hover.background');
color: dt('accordion.header.active.hover.color');
}
.p-accordionpanel:not(.p-disabled).p-accordionpanel-active > .p-accordionheader:hover .p-accordionheader-toggle-icon {
color: dt('accordion.header.toggle.icon.active.hover.color');
}
.p-accordioncontent-content {
border-style: solid;
border-width: dt('accordion.content.border.width');
border-color: dt('accordion.content.border.color');
background-color: dt('accordion.content.background');
color: dt('accordion.content.color');
padding: dt('accordion.content.padding');
}
`,wa={root:"p-accordion p-component"},Ca=ne.extend({name:"accordion",style:ka,classes:wa}),xa={name:"BaseAccordion",extends:ee,props:{value:{type:[String,Number,Array],default:void 0},multiple:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1},expandIcon:{type:String,default:void 0},collapseIcon:{type:String,default:void 0},activeIndex:{type:[Number,Array],default:null}},style:Ca,provide:function(){return{$pcAccordion:this,$parentInstance:this}}},Bt={name:"Accordion",extends:xa,inheritAttrs:!1,emits:["update:value","update:activeIndex","tab-open","tab-close","tab-click"],data:function(){return{d_value:this.value}},watch:{value:function(t){this.d_value=t},activeIndex:{immediate:!0,handler:function(t){this.hasAccordionTab&&(this.d_value=this.multiple?t?.map(String):t?.toString())}}},methods:{isItemActive:function(t){var n;return this.multiple?(n=this.d_value)===null||n===void 0?void 0:n.includes(t):this.d_value===t},updateValue:function(t){var n,o=this.isItemActive(t);this.multiple?o?this.d_value=this.d_value.filter(function(s){return s!==t}):this.d_value?this.d_value.push(t):this.d_value=[t]:this.d_value=o?null:t,this.$emit("update:value",this.d_value),this.$emit("update:activeIndex",this.multiple?(n=this.d_value)===null||n===void 0?void 0:n.map(Number):Number(this.d_value)),this.$emit(o?"tab-close":"tab-open",{originalEvent:void 0,index:Number(t)})},isAccordionTab:function(t){return t.type.name==="AccordionTab"},getTabProp:function(t,n){return t.props?t.props[n]:void 0},getKey:function(t,n){return this.getTabProp(t,"header")||n},getHeaderPT:function(t,n){var o=this;return{root:$({onClick:function(l){return o.onTabClick(l,n)}},this.getTabProp(t,"headerProps"),this.getTabPT(t,"header",n)),toggleicon:$(this.getTabProp(t,"headeractionprops"),this.getTabPT(t,"headeraction",n))}},getContentPT:function(t,n){return{root:$(this.getTabProp(t,"contentProps"),this.getTabPT(t,"toggleablecontent",n)),transition:this.getTabPT(t,"transition",n),content:this.getTabPT(t,"content",n)}},getTabPT:function(t,n,o){var s=this.tabs.length,l={props:t.props||{},parent:{instance:this,props:this.$props,state:this.$data},context:{index:o,count:s,first:o===0,last:o===s-1,active:this.isItemActive("".concat(o))}};return $(this.ptm("accordiontab.".concat(n),l),this.ptmo(this.getTabProp(t,"pt"),n,l))},onTabClick:function(t,n){this.$emit("tab-click",{originalEvent:t,index:n})}},computed:{tabs:function(){var t=this;return this.$slots.default().reduce(function(n,o){return t.isAccordionTab(o)?n.push(o):o.children&&o.children instanceof Array&&o.children.forEach(function(s){t.isAccordionTab(s)&&n.push(s)}),n},[])},hasAccordionTab:function(){return this.tabs.length}},components:{AccordionPanel:Qe,AccordionHeader:Xe,AccordionContent:Je,ChevronUpIcon:Ye,ChevronRightIcon:Ge}};function $a(e,t,n,o,s,l){var c=J("AccordionHeader"),v=J("AccordionContent"),h=J("AccordionPanel");return y(),C("div",$({class:e.cx("root")},e.ptmi("root")),[l.hasAccordionTab?(y(!0),C(z,{key:0},_(l.tabs,function(f,g){return y(),P(h,{key:l.getKey(f,g),value:"".concat(g),pt:{root:l.getTabPT(f,"root",g)},disabled:l.getTabProp(f,"disabled")},{default:T(function(){return[w(c,{class:N(l.getTabProp(f,"headerClass")),pt:l.getHeaderPT(f,g)},{toggleicon:T(function(i){return[i.active?(y(),P(W(e.$slots.collapseicon?e.$slots.collapseicon:e.collapseIcon?"span":"ChevronDownIcon"),$({key:0,class:[e.collapseIcon,i.class],"aria-hidden":"true"},{ref_for:!0},l.getTabPT(f,"headericon",g)),null,16,["class"])):(y(),P(W(e.$slots.expandicon?e.$slots.expandicon:e.expandIcon?"span":"ChevronUpIcon"),$({key:1,class:[e.expandIcon,i.class],"aria-hidden":"true"},{ref_for:!0},l.getTabPT(f,"headericon",g)),null,16,["class"]))]}),default:T(function(){return[f.children&&f.children.headericon?(y(),P(W(f.children.headericon),{key:0,isTabActive:l.isItemActive("".concat(g)),active:l.isItemActive("".concat(g)),index:g},null,8,["isTabActive","active","index"])):j("",!0),f.props&&f.props.header?(y(),C("span",$({key:1,ref_for:!0},l.getTabPT(f,"headertitle",
.p-tag {
display: inline-flex;
align-items: center;
justify-content: center;
background: dt('tag.primary.background');
color: dt('tag.primary.color');
font-size: dt('tag.font.size');
font-weight: dt('tag.font.weight');
padding: dt('tag.padding');
border-radius: dt('tag.border.radius');
gap: dt('tag.gap');
}
.p-tag-icon {
font-size: dt('tag.icon.size');
width: dt('tag.icon.size');
height: dt('tag.icon.size');
}
.p-tag-rounded {
border-radius: dt('tag.rounded.border.radius');
}
.p-tag-success {
background: dt('tag.success.background');
color: dt('tag.success.color');
}
.p-tag-info {
background: dt('tag.info.background');
color: dt('tag.info.color');
}
.p-tag-warn {
background: dt('tag.warn.background');
color: dt('tag.warn.color');
}
.p-tag-danger {
background: dt('tag.danger.background');
color: dt('tag.danger.color');
}
.p-tag-secondary {
background: dt('tag.secondary.background');
color: dt('tag.secondary.color');
}
.p-tag-contrast {
background: dt('tag.contrast.background');
color: dt('tag.contrast.color');
}
`,Aa={root:function(t){var n=t.props;return["p-tag p-component",{"p-tag-info":n.severity==="info","p-tag-success":n.severity==="success","p-tag-warn":n.severity==="warn","p-tag-danger":n.severity==="danger","p-tag-secondary":n.severity==="secondary","p-tag-contrast":n.severity==="contrast","p-tag-rounded":n.rounded}]},icon:"p-tag-icon",label:"p-tag-label"},Sa=ne.extend({name:"tag",style:Ea,classes:Aa}),Ia={name:"BaseTag",extends:ee,props:{value:null,severity:null,rounded:Boolean,icon:String},style:Sa,provide:function(){return{$pcTag:this,$parentInstance:this}}};function we(e){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},we(e)}function Pa(e,t,n){return(t=ja(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ja(e){var t=Ta(e,"string");return we(t)=="symbol"?t:t+""}function Ta(e,t){if(we(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(we(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ot={name:"Tag",extends:Ia,inheritAttrs:!1,computed:{dataP:function(){return Ie(Pa({rounded:this.rounded},this.severity,this.severity))}}},Va=["data-p"];function Da(e,t,n,o,s,l){return y(),C("span",$({class:e.cx("root"),"data-p":l.dataP},e.ptmi("root")),[e.$slots.icon?(y(),P(W(e.$slots.icon),$({key:0,class:e.cx("icon")},e.ptm("icon")),null,16,["class"])):e.icon?(y(),C("span",$({key:1,class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16)):j("",!0),e.value!=null||e.$slots.default?H(e.$slots,"default",{key:2},function(){return[m("span",$({class:e.cx("label")},e.ptm("label")),D(e.value),17)]}):j("",!0)],16,Va)}Ot.render=Da;const Ma={class:"mb-6"},Ba={class:"my-2 text-sm text-text-secondary leading-relaxed"},Oa={key:0,class:"my-3"},Ua={class:"flex items-center gap-2"},La={class:"text-text-muted text-xs ml-1"},Fa={class:"file-tree pl-2"},Ha={class:"text-xs text-text-secondary"},Na={key:1,class:"my-3 p-3 bg-color-warning-bg rounded border border-color-warning"},Ra={class:"flex items-start gap-2"},Ka={class:"flex-1"},qa={class:"text-xs text-text-secondary mb-3"},za={class:"space-y-2"},Wa={class:"flex items-center gap-2 mb-1"},Za={class:"text-text-muted"},Ga={class:"block bg-bg-secondary px-2 py-1 rounded font-mono text-text-secondary break-all"},Ya={class:"text-text-muted mt-1"},Ja={key:2,class:"my-3 p-3 bg-color-error-bg rounded border border-color-error"},Xa={class:"flex items-start gap-2"},Qa={class:"flex-1"},_a={class:"text-xs text-text-secondary"},er={key:0},tr={__name:"SkillDetailSection",props:{selectedItem:{type:Object,required:!0},canEdit:{type:Boolean,default:!1},editingField:{type:String,default:null},projectId:{type:String,default:null},scope:{type:String,default:null}},emits:["field-update","update:editing-field","skill-updated"],setup(e,{emit:t}){const n=e,o=t,s=Mt(),l=x({name:"",description:"",allowedTools:[],content:""}),c=ze,v=g=>{o("update:editing-field",g)},h=async(g,i)=>{if(n.canEdit)try{const a={[g]:i},r=n.selectedItem.directoryPath?n.selectedItem.directoryPath.split("/").pop():n.selectedItem.name;(await s.updateSkill(n.projectId,r,a,n.scope)).success&&(l.value[g]=i,o("skill-updated"))}finally{v(null)}};Z(()=>n.selectedItem,g=>{g&&(l.value={name:g.name||"",description:g.description||"",allowedTools:g.allowedTools||[],content:g.content||""},v(null))},{immediate:!0});const f=g=>g?(g.match(/\//g)||[]).length*1.25:0;return(g,i)=>(y(),C("div",null,[m("div",Ma,[m("p",Ba,[i[12]||(i[12]=m("strong",{class:"text-text-primary"},"Name:",-1)),te(" "+D(e.selectedItem.name),1)]),w(L,{modelValue:l.value.description,"onUpdate:modelValue":i[0]||(i[0]=a=>l.value.description=a),"field-type":"textarea",label:"Description",placeholder:"Brief description of what this skill does",disabled:!e.canEdit||e.editingField!==null&&e.editingField!=="description",validation:[{type:"required"},{type:
//# sourceMappingURL=ConfigurationPage-4UDblkST.js.map