import{a as de,b as ce}from"./chunk-TGJQE3TH.js";import{a as Ge,b as le}from"./chunk-TG6IWVEC.js";import{$ as V,$c as ae,A as T,Ac as z,B as W,Ba as $,Bc as ee,Cb as ze,D as xe,Da as Le,Db as He,Dc as Ue,Ea as G,Fa as P,G as Se,Ga as d,Gc as Qe,H as q,Ha as c,Hc as Ke,I as i,Ia as ge,Ja as w,Nc as U,O as B,Oa as he,Oc as te,P as we,Pa as J,Qa as f,R as Ee,Ra as Ne,S as Pe,T as h,Ta as j,Vc as ne,W as E,Wc as ie,Z as m,_,_a as Fe,_c as oe,aa as b,ab as R,ad as We,ba as k,bb as De,bd as re,ca as p,cb as A,da as r,dd as Xe,ea as a,ed as Ye,fa as y,ga as X,ha as fe,i as be,ia as Me,ja as Ce,ka as ye,l as K,la as S,m as ke,mc as qe,n as Te,oa as L,ob as Re,p as v,qa as N,qb as Z,r as M,ra as l,rb as Ae,s as O,sa as Oe,ta as Y,ua as Ve,w as Ie,wa as F,xa as D,yb as Be,yc as $e,zc as je}from"./chunk-7PFTODKS.js";import"./chunk-Q7L6LLAK.js";var Je=`
    .p-card {
        background: dt('card.background');
        color: dt('card.color');
        box-shadow: dt('card.shadow');
        border-radius: dt('card.border.radius');
        display: flex;
        flex-direction: column;
    }

    .p-card-caption {
        display: flex;
        flex-direction: column;
        gap: dt('card.caption.gap');
    }

    .p-card-body {
        padding: dt('card.body.padding');
        display: flex;
        flex-direction: column;
        gap: dt('card.body.gap');
    }

    .p-card-title {
        font-size: dt('card.title.font.size');
        font-weight: dt('card.title.font.weight');
    }

    .p-card-subtitle {
        color: dt('card.subtitle.color');
    }
`;var lt=["header"],dt=["title"],ct=["subtitle"],st=["content"],pt=["footer"],mt=["*",[["p-header"]],[["p-footer"]]],_t=["*","p-header","p-footer"];function ut(t,n){t&1&&S(0)}function xt(t,n){if(t&1&&(r(0,"div",1),Y(1,1),h(2,ut,1,0,"ng-container",2),a()),t&2){let e=l();P(e.cx("header")),p("pBind",e.ptm("header")),i(2),p("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function ft(t,n){if(t&1&&(Ce(0),d(1),ye()),t&2){let e=l(2);i(),c(e.header)}}function Ct(t,n){t&1&&S(0)}function yt(t,n){if(t&1&&(r(0,"div",1),h(1,ft,2,1,"ng-container",3)(2,Ct,1,0,"ng-container",2),a()),t&2){let e=l();P(e.cx("title")),p("pBind",e.ptm("title")),i(),p("ngIf",e.header&&!e._titleTemplate&&!e.titleTemplate),i(),p("ngTemplateOutlet",e.titleTemplate||e._titleTemplate)}}function gt(t,n){if(t&1&&(Ce(0),d(1),ye()),t&2){let e=l(2);i(),c(e.subheader)}}function ht(t,n){t&1&&S(0)}function vt(t,n){if(t&1&&(r(0,"div",1),h(1,gt,2,1,"ng-container",3)(2,ht,1,0,"ng-container",2),a()),t&2){let e=l();P(e.cx("subtitle")),p("pBind",e.ptm("subtitle")),i(),p("ngIf",e.subheader&&!e._subtitleTemplate&&!e.subtitleTemplate),i(),p("ngTemplateOutlet",e.subtitleTemplate||e._subtitleTemplate)}}function bt(t,n){t&1&&S(0)}function kt(t,n){t&1&&S(0)}function Tt(t,n){if(t&1&&(r(0,"div",1),Y(1,2),h(2,kt,1,0,"ng-container",2),a()),t&2){let e=l();P(e.cx("footer")),p("pBind",e.ptm("footer")),i(2),p("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var It=`
    ${Je}

    .p-card {
        display: block;
    }
`,St={root:"p-card p-component",header:"p-card-header",body:"p-card-body",caption:"p-card-caption",title:"p-card-title",subtitle:"p-card-subtitle",content:"p-card-content",footer:"p-card-footer"},Ze=(()=>{class t extends Ue{name="card";style=It;classes=St;static \u0275fac=(()=>{let e;return function(s){return(e||(e=xe(t)))(s||t)}})();static \u0275prov=K({token:t,factory:t.\u0275fac})}return t})();var et=new Te("CARD_INSTANCE"),Q=(()=>{class t extends Ke{componentName="Card";$pcCard=v(et,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=v(U,{self:!0});_componentStyle=v(Ze);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}header;subheader;set style(e){qe(this._style(),e)||(this._style.set(e),this.el?.nativeElement&&e&&Object.keys(e).forEach(o=>{this.el.nativeElement.style[o]=e[o]}))}get style(){return this._style()}styleClass;headerFacet;footerFacet;headerTemplate;titleTemplate;subtitleTemplate;contentTemplate;footerTemplate;_headerTemplate;_titleTemplate;_subtitleTemplate;_contentTemplate;_footerTemplate;_style=T(null);getBlockableElement(){return this.el.nativeElement}templates;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"title":this._titleTemplate=e.template;break;case"subtitle":this._subtitleTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}static \u0275fac=(()=>{let e;return function(s){return(e||(e=xe(t)))(s||t)}})();static \u0275cmp=B({type:t,selectors:[["p-card"]],contentQueries:function(o,s,C){if(o&1&&Ve(C,$e,5)(C,je,5)(C,lt,4)(C,dt,4)(C,ct,4)(C,st,4)(C,pt,4)(C,z,4),o&2){let x;F(x=D())&&(s.headerFacet=x.first),F(x=D())&&(s.footerFacet=x.first),F(x=D())&&(s.headerTemplate=x.first),F(x=D())&&(s.titleTemplate=x.first),F(x=D())&&(s.subtitleTemplate=x.first),F(x=D())&&(s.contentTemplate=x.first),F(x=D())&&(s.footerTemplate=x.first),F(x=D())&&(s.templates=x)}},hostVars:4,hostBindings:function(o,s){o&2&&(G(s._style()),P(s.cn(s.cx("root"),s.styleClass)))},inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},features:[Ne([Ze,{provide:et,useExisting:t},{provide:Qe,useExisting:t}]),Ee([U]),Pe],ngContentSelectors:_t,decls:8,vars:11,consts:[[3,"pBind","class",4,"ngIf"],[3,"pBind"],[4,"ngTemplateOutlet"],[4,"ngIf"]],template:function(o,s){o&1&&(Oe(mt),h(0,xt,3,4,"div",0),r(1,"div",1),h(2,yt,3,5,"div",0)(3,vt,3,5,"div",0),r(4,"div",1),Y(5),h(6,bt,1,0,"ng-container",2),a(),h(7,Tt,3,4,"div",0),a()),o&2&&(p("ngIf",s.headerFacet||s.headerTemplate||s._headerTemplate),i(),P(s.cx("body")),p("pBind",s.ptm("body")),i(),p("ngIf",s.header||s.titleTemplate||s._titleTemplate),i(),p("ngIf",s.subheader||s.subtitleTemplate||s._subtitleTemplate),i(),P(s.cx("content")),p("pBind",s.ptm("content")),i(2),p("ngTemplateOutlet",s.contentTemplate||s._contentTemplate),i(),p("ngIf",s.footerFacet||s.footerTemplate||s._footerTemplate))},dependencies:[Ae,Re,Z,ee,te,U],encapsulation:2,changeDetection:0})}return t})(),pe=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=we({type:t});static \u0275inj=ke({imports:[Q,ee,te,ee,te]})}return t})();var nt={emptyNoSelection:{title:"No node selected",descPrefix:"Pick a node from the ",listLink:"list",descMiddle:" or ",graphLink:"graph",descSuffix:"."},emptyNotFound:{title:"Node not found",descSuffix:" does not exist in the collection. ",backLink:"Back to list",descAfterLink:"."},backToList:"\u2190 back to list",cards:{agent:"Agent",command:"Command",hook:"Hook",skill:"Skill",relations:"Relations",metadata:"Metadata",tools:"Tools",external:"External",body:"Body"},fields:{model:"Model",shortcut:"Shortcut",arguments:"Arguments",event:"Event",condition:"Condition",blocking:"Blocking",idempotent:"Idempotent",inputs:"Inputs",outputs:"Outputs",supersededBy:"Superseded by",supersedes:"Supersedes",requires:"Requires",related:"Related",provides:"Provides",conflictsWith:"Conflicts with",tags:"Tags",toolsAllowlist:"Tools (allowlist)",allowedTools:"Allowed tools (pre-approved)",source:"Source",docs:"Docs",homepage:"Homepage",examples:"Examples",version:"Version",priority:"Priority",priorityScale:" / 10",author:"Author",authors:"Authors",license:"License",created:"Created",updated:"Updated",released:"Released",category:"Category",specCompat:"Spec compat"},yes:"yes",no:"no",required:"required",body:{loading:"Loading body\u2026",empty:"This file has no body content (only frontmatter).",unavailable:"Body content unavailable \u2014 the source file may have moved or been deleted since the last scan.",renderError:"Failed to render markdown body.",refreshLabel:"Refresh body"},relations:{verifyHint:"This path is not in the current scan scope. Click to check whether the file exists.",deadConfirmed:"Verified: this path does not resolve to a known node."},authorsSeparator:", ",argTypePrefix:": ",argDescSeparator:" \u2014 ",missing:"\u2014",placeholders:{enrichmentTitle:"Enrichment",summaryTitle:"Summary",findingsTitle:"Findings",body:"Available in v0.8.0"}};var me=class t{sanitizer=v(Be);libsPromise=null;async render(n){let e=await this.loadLibs(),o=e.md.render(n),s=e.purify.sanitize(o);return this.sanitizer.bypassSecurityTrustHtml(s)}async renderToHtml(n){let e=await this.loadLibs(),o=e.md.render(n);return e.purify.sanitize(o)}loadLibs(){return this.libsPromise||(this.libsPromise=wt()),this.libsPromise}static \u0275fac=function(e){return new(e||t)};static \u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})};async function wt(){let[t,n]=await Promise.all([import("./chunk-STE4Z72W.js"),import("./chunk-N2C45VIA.js")]),e=t.default,o=new e({html:!1,linkify:!0}),s=n.default;return{md:o,purify:s}}var _e=class t{title=A.required();body=A.required();icon=A("pi pi-clock");testId=A(null);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=B({type:t,selectors:[["sm-empty-state"]],inputs:{title:[1,"title"],body:[1,"body"],icon:[1,"icon"],testId:[1,"testId"]},decls:6,vars:5,consts:[[1,"empty-state-card"],["aria-hidden","true",1,"empty-state-card__icon"],[1,"empty-state-card__title"],[1,"empty-state-card__body"]],template:function(e,o){if(e&1&&(X(0,"div",0),Me(1,"span",1),X(2,"p",2),d(3),fe(),X(4,"p",3),d(5),fe()()),e&2){let s=o.testId();E("data-testid",s),i(),P(o.icon()),i(2),c(o.title()),i(2),c(o.body())}},styles:["[_nghost-%COMP%]{display:block}.empty-state-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;padding:1rem 1.25rem;border:1px dashed var(--p-content-border-color);border-radius:var(--p-border-radius-md);background:var(--p-content-background);color:var(--p-text-muted-color)}.empty-state-card__icon[_ngcontent-%COMP%]{font-size:1.25rem;color:var(--p-text-muted-color);opacity:.7}.empty-state-card__title[_ngcontent-%COMP%]{margin:0;font-weight:600;color:var(--p-text-color)}.empty-state-card__body[_ngcontent-%COMP%]{margin:0;font-size:.85rem;line-height:1.4}"],changeDetection:0})};var ot={cardHeader:"Linked nodes",refreshLabel:"Refresh links",outgoingHeader:"Outgoing",incomingHeader:"Incoming",loading:"Loading links\u2026",error:"Failed to load links.",emptyOutgoing:"No outgoing links from this node.",emptyIncoming:"No incoming links to this node.",confidence:{high:"high",medium:"medium",low:"low"},sourcesPrefix:"detected by ",sourcesSeparator:", "};var at=(t,n)=>n.source+"|"+n.target+"|"+n.kind+"|"+((n.trigger==null?null:n.trigger.normalizedTrigger)??"");function Vt(t,n){if(t&1){let e=L();r(0,"div",4)(1,"h3",5),d(2),a(),r(3,"p-button",6),N("onClick",function(){M(e);let s=l(2);return O(s.refresh())}),a()()}if(t&2){let e=l(2);i(2),c(e.texts.cardHeader),i(),p("rounded",!0)("text",!0)("ariaLabel",e.texts.refreshLabel)("pTooltip",e.texts.refreshLabel)("disabled",e.state()==="loading")}}function Lt(t,n){if(t&1&&(r(0,"p",2),d(1),a()),t&2){let e=l(2);i(),c(e.texts.loading)}}function Nt(t,n){if(t&1&&(r(0,"p",3),d(1),a()),t&2){let e=l(2);i(),c(e.texts.error)}}function Ft(t,n){if(t&1&&(r(0,"p",9),d(1),a()),t&2){let e=l(3);i(),c(e.texts.emptyOutgoing)}}function Dt(t,n){if(t&1&&(r(0,"span",17),d(1),a()),t&2){let e=l().$implicit,o=l(4);i(),w(" ",o.texts.sourcesPrefix,"",e.sources.join(o.texts.sourcesSeparator)," ")}}function Rt(t,n){if(t&1){let e=L();r(0,"li",13),y(1,"p-tag",14),r(2,"button",15),N("click",function(){let s=M(e).$implicit,C=l(4);return O(C.onOpen(s.target))}),d(3),a(),y(4,"p-tag",16),m(5,Dt,2,2,"span",17),a()}if(t&2){let e=n.$implicit,o=l(4);E("data-testid","linked-nodes-outgoing-row-"+e.target),i(),p("value",e.kind)("severity",o.kindSeverity(e.kind)),i(),E("data-testid","linked-nodes-outgoing-link-"+e.target),i(),ge(" ",e.target," "),i(),p("value",o.confidenceLabel(e.confidence))("severity",o.confidenceSeverity(e.confidence))("rounded",!0),i(),_(e.sources.length?5:-1)}}function At(t,n){if(t&1&&(r(0,"ul",10),b(1,Rt,6,9,"li",13,at),a()),t&2){let e=l(3);i(),k(e.outgoing())}}function Bt(t,n){if(t&1&&(r(0,"p",12),d(1),a()),t&2){let e=l(3);i(),c(e.texts.emptyIncoming)}}function zt(t,n){if(t&1&&(r(0,"span",17),d(1),a()),t&2){let e=l().$implicit,o=l(4);i(),w(" ",o.texts.sourcesPrefix,"",e.sources.join(o.texts.sourcesSeparator)," ")}}function Ht(t,n){if(t&1){let e=L();r(0,"li",13),y(1,"p-tag",14),r(2,"button",15),N("click",function(){let s=M(e).$implicit,C=l(4);return O(C.onOpen(s.source))}),d(3),a(),y(4,"p-tag",16),m(5,zt,2,2,"span",17),a()}if(t&2){let e=n.$implicit,o=l(4);E("data-testid","linked-nodes-incoming-row-"+e.source),i(),p("value",e.kind)("severity",o.kindSeverity(e.kind)),i(),E("data-testid","linked-nodes-incoming-link-"+e.source),i(),ge(" ",e.source," "),i(),p("value",o.confidenceLabel(e.confidence))("severity",o.confidenceSeverity(e.confidence))("rounded",!0),i(),_(e.sources.length?5:-1)}}function qt(t,n){if(t&1&&(r(0,"ul",10),b(1,Ht,6,9,"li",13,at),a()),t&2){let e=l(3);i(),k(e.incoming())}}function $t(t,n){if(t&1&&(r(0,"section",7)(1,"h4",8),d(2),a(),m(3,Ft,2,1,"p",9)(4,At,3,0,"ul",10),a(),r(5,"section",11)(6,"h4",8),d(7),a(),m(8,Bt,2,1,"p",12)(9,qt,3,0,"ul",10),a()),t&2){let e=l(2);i(2),c(e.texts.outgoingHeader),i(),_(e.outgoing().length===0?3:4),i(4),c(e.texts.incomingHeader),i(),_(e.incoming().length===0?8:9)}}function jt(t,n){if(t&1&&(r(0,"p-card",0),h(1,Vt,4,6,"ng-template",1),m(2,Lt,2,1,"p",2)(3,Nt,2,1,"p",3)(4,$t,10,4),a()),t&2){let e,o=l();i(2),_((e=o.state())==="loading"?2:e==="error"?3:e==="ready"?4:-1)}}var Ut={invokes:"warn",references:"info",mentions:"secondary",supersedes:"success"},Qt={high:"success",medium:"info",low:"warn"},ue=class t{dataSource=v(re);destroyRef=v(Ie);texts=ot;path=A(null);openPath=De();state=T("idle");outgoing=T([]);incoming=T([]);fetchToken=0;hasResults=R(()=>this.state()==="ready"&&(this.outgoing().length>0||this.incoming().length>0));constructor(){this.dataSource.events().pipe(be(n=>n.type==="scan.completed"),We(this.destroyRef)).subscribe(()=>{let n=this.path();n&&this.fetch(n)}),W(()=>{let n=this.path();if(!n){this.fetchToken++,this.state.set("idle"),this.outgoing.set([]),this.incoming.set([]);return}this.fetch(n)})}refresh(){let n=this.path();n&&this.fetch(n)}onOpen(n){this.openPath.emit(n)}kindSeverity(n){return Ut[n]??"secondary"}confidenceSeverity(n){return Qt[n]??"info"}confidenceLabel(n){return this.texts.confidence[n]??n}async fetch(n){let e=++this.fetchToken;this.state.set("loading");try{let[o,s]=await Promise.all([this.dataSource.listLinks({from:n}),this.dataSource.listLinks({to:n})]);if(e!==this.fetchToken)return;this.outgoing.set(o.items),this.incoming.set(s.items),this.state.set("ready")}catch{if(e!==this.fetchToken)return;this.outgoing.set([]),this.incoming.set([]),this.state.set("error")}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=B({type:t,selectors:[["sm-linked-nodes-panel"]],inputs:{path:[1,"path"]},outputs:{openPath:"openPath"},decls:1,vars:1,consts:[["styleClass","linked-nodes-panel","data-testid","linked-nodes-panel"],["pTemplate","header"],["data-testid","linked-nodes-loading",1,"linked-nodes-panel__status"],["data-testid","linked-nodes-error",1,"linked-nodes-panel__status","linked-nodes-panel__status--warn"],[1,"linked-nodes-panel__header"],[1,"linked-nodes-panel__title"],["icon","pi pi-refresh","severity","secondary","data-testid","linked-nodes-refresh",3,"onClick","rounded","text","ariaLabel","pTooltip","disabled"],["data-testid","linked-nodes-outgoing",1,"linked-nodes-panel__section"],[1,"linked-nodes-panel__section-title"],["data-testid","linked-nodes-outgoing-empty",1,"linked-nodes-panel__status"],[1,"linked-nodes-panel__rows"],["data-testid","linked-nodes-incoming",1,"linked-nodes-panel__section"],["data-testid","linked-nodes-incoming-empty",1,"linked-nodes-panel__status"],[1,"linked-nodes-panel__row"],[3,"value","severity"],["type","button",1,"linked-nodes-panel__path",3,"click"],[3,"value","severity","rounded"],[1,"linked-nodes-panel__sources"]],template:function(e,o){e&1&&m(0,jt,5,1,"p-card",0),e&2&&_(o.path()?0:-1)},dependencies:[pe,Q,z,ce,de,le,ie,ne,ae,oe],styles:["[_nghost-%COMP%]{display:block}.linked-nodes-panel__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.75rem 1rem 0}.linked-nodes-panel__title[_ngcontent-%COMP%]{margin:0;font-size:.95rem;font-weight:600}.linked-nodes-panel__status[_ngcontent-%COMP%]{margin:0;font-size:.85rem;color:var(--p-text-muted-color);font-style:italic}.linked-nodes-panel__status--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn);font-style:normal}.linked-nodes-panel__section[_ngcontent-%COMP%] + .linked-nodes-panel__section[_ngcontent-%COMP%]{margin-top:1rem}.linked-nodes-panel__section-title[_ngcontent-%COMP%]{margin:0 0 .5rem;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--p-text-muted-color)}.linked-nodes-panel__rows[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.linked-nodes-panel__row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.4rem .5rem;border-radius:4px;background:var(--p-content-background);border:1px solid var(--p-content-border-color)}.linked-nodes-panel__path[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.85rem;color:var(--p-primary-color);background:none;border:none;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.linked-nodes-panel__path[_ngcontent-%COMP%]:hover{text-decoration:none}.linked-nodes-panel__sources[_ngcontent-%COMP%]{font-size:.75rem;color:var(--p-text-muted-color);margin-left:auto}"],changeDetection:0})};var Kt=t=>({path:t,testIdPrefix:"rel-supersededBy"}),Wt=t=>({path:t,testIdPrefix:"rel-supersedes"}),Xt=t=>({path:t,testIdPrefix:"rel-requires"}),Yt=t=>({path:t,testIdPrefix:"rel-related"}),ve=(t,n)=>n.name;function Gt(t,n){if(t&1&&(r(0,"section",1)(1,"div",2),y(2,"span",3),r(3,"p",4),d(4),a(),r(5,"p",5),d(6),r(7,"a",6),d(8),a(),d(9),r(10,"a",7),d(11),a(),d(12),a()()()),t&2){let e=l();i(4),c(e.texts.emptyNoSelection.title),i(2),c(e.texts.emptyNoSelection.descPrefix),i(2),c(e.texts.emptyNoSelection.listLink),i(),c(e.texts.emptyNoSelection.descMiddle),i(2),c(e.texts.emptyNoSelection.graphLink),i(),c(e.texts.emptyNoSelection.descSuffix)}}function Jt(t,n){if(t&1&&(r(0,"section",1)(1,"div",8),y(2,"span",9),r(3,"p",4),d(4),a(),r(5,"p",5)(6,"code"),d(7),a(),d(8),r(9,"a",6),d(10),a(),d(11),a()()()),t&2){let e=l();i(4),c(e.texts.emptyNotFound.title),i(3),c(e.path()),i(),c(e.texts.emptyNotFound.descSuffix),i(2),c(e.texts.emptyNotFound.backLink),i(),c(e.texts.emptyNotFound.descAfterLink)}}function Zt(t,n){if(t&1&&y(0,"p-tag",13),t&2){l();let e=f(1),o=l();p("value",e.stability)("severity",o.stabilitySeverity(e.stability))("rounded",!0)}}function en(t,n){if(t&1&&(r(0,"p-card",21)(1,"dl",29)(2,"dt"),d(3),a(),r(4,"dd")(5,"code"),d(6),a()()()()),t&2){let e=l(2);p("header",e.texts.cards.agent),i(3),c(e.texts.fields.model),i(3),c(n.model??e.texts.missing)}}function tn(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd")(3,"code"),d(4),a()()),t&2){let e=l(),o=l(2);i(),c(o.texts.fields.shortcut),i(3),c(e.shortcut)}}function nn(t,n){if(t&1&&(r(0,"span",40),d(1),a()),t&2){let e=l().$implicit,o=l(4);i(),w("",o.texts.argTypePrefix,"",e.type)}}function on(t,n){if(t&1&&(r(0,"span",41),d(1),a()),t&2){let e=l(5);i(),c(e.texts.required)}}function an(t,n){if(t&1&&d(0),t&2){let e=l().$implicit,o=l(4);w(" ",o.texts.argDescSeparator,"",e.description," ")}}function rn(t,n){if(t&1&&(r(0,"li")(1,"code"),d(2),a(),m(3,nn,2,2,"span",40),m(4,on,2,1,"span",41),m(5,an,1,2),a()),t&2){let e=n.$implicit;i(2),c(e.name),i(),_(e.type?3:-1),i(),_(e.required?4:-1),i(),_(e.description?5:-1)}}function ln(t,n){if(t&1&&(r(0,"h4"),d(1),a(),r(2,"ul",39),b(3,rn,6,4,"li",null,ve),a()),t&2){let e=l(),o=l(2);i(),c(o.texts.fields.arguments),i(2),k(e.args)}}function dn(t,n){if(t&1&&(r(0,"p-card",22)(1,"dl",29),m(2,tn,5,2),a(),m(3,ln,5,1),a()),t&2){let e=n,o=l(2);p("header",o.texts.cards.command),i(2),_(e.shortcut?2:-1),i(),_(e.args!=null&&e.args.length?3:-1)}}function cn(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd")(3,"code",42),d(4),a()()),t&2){let e=l(),o=l(2);i(),c(o.texts.fields.condition),i(3),c(e.condition)}}function sn(t,n){if(t&1&&(r(0,"p-card",23)(1,"dl",29)(2,"dt"),d(3),a(),r(4,"dd")(5,"code"),d(6),a()(),m(7,cn,5,2),r(8,"dt"),d(9),a(),r(10,"dd"),d(11),a(),r(12,"dt"),d(13),a(),r(14,"dd"),d(15),a()()()),t&2){let e=n,o=l(2);p("header",o.texts.cards.hook),i(3),c(o.texts.fields.event),i(3),c(e.event??o.texts.missing),i(),_(e.condition?7:-1),i(2),c(o.texts.fields.blocking),i(2),c(e.blocking?o.texts.yes:o.texts.no),i(2),c(o.texts.fields.idempotent),i(2),c(e.idempotent?o.texts.yes:o.texts.no)}}function pn(t,n){if(t&1&&(r(0,"span",40),d(1),a()),t&2){let e=l().$implicit,o=l(4);i(),w("",o.texts.argTypePrefix,"",e.type)}}function mn(t,n){if(t&1&&(r(0,"span",41),d(1),a()),t&2){let e=l(5);i(),c(e.texts.required)}}function _n(t,n){if(t&1&&d(0),t&2){let e=l().$implicit,o=l(4);w(" ",o.texts.argDescSeparator,"",e.description," ")}}function un(t,n){if(t&1&&(r(0,"li")(1,"code"),d(2),a(),m(3,pn,2,2,"span",40),m(4,mn,2,1,"span",41),m(5,_n,1,2),a()),t&2){let e=n.$implicit;i(2),c(e.name),i(),_(e.type?3:-1),i(),_(e.required?4:-1),i(),_(e.description?5:-1)}}function xn(t,n){if(t&1&&(r(0,"h4"),d(1),a(),r(2,"ul",39),b(3,un,6,4,"li",null,ve),a()),t&2){let e=l(),o=l(2);i(),c(o.texts.fields.inputs),i(2),k(e.inputs)}}function fn(t,n){if(t&1&&(r(0,"span",40),d(1),a()),t&2){let e=l().$implicit,o=l(4);i(),w("",o.texts.argTypePrefix,"",e.type)}}function Cn(t,n){if(t&1&&d(0),t&2){let e=l().$implicit,o=l(4);w(" ",o.texts.argDescSeparator,"",e.description," ")}}function yn(t,n){if(t&1&&(r(0,"li")(1,"code"),d(2),a(),m(3,fn,2,2,"span",40),m(4,Cn,1,2),a()),t&2){let e=n.$implicit;i(2),c(e.name),i(),_(e.type?3:-1),i(),_(e.description?4:-1)}}function gn(t,n){if(t&1&&(r(0,"h4"),d(1),a(),r(2,"ul",39),b(3,yn,5,3,"li",null,ve),a()),t&2){let e=l(),o=l(2);i(),c(o.texts.fields.outputs),i(2),k(e.outputs)}}function hn(t,n){if(t&1&&(r(0,"p-card",24),m(1,xn,5,1),m(2,gn,5,1),a()),t&2){let e=n,o=l(2);p("header",o.texts.cards.skill),i(),_(e.inputs!=null&&e.inputs.length?1:-1),i(),_(e.outputs!=null&&e.outputs.length?2:-1)}}function vn(t,n){t&1&&y(0,"i",47)}function bn(t,n){t&1&&y(0,"i",48)}function kn(t,n){t&1&&y(0,"i",49)}function Tn(t,n){if(t&1){let e=L();r(0,"button",46),N("click",function(){M(e);let s=l().path,C=l(2);return O(C.verifyDeadLink(s))}),m(1,vn,1,0,"i",47)(2,bn,1,0,"i",48)(3,kn,1,0,"i",49),a()}if(t&2){let e=l(),o=e.path,s=e.testIdPrefix,C=f(0),x=l(2);Le("rel-chip__verify--confirmed",C==="dead-confirmed"),p("disabled",x.isVerifying(o))("pTooltip",C==="dead-confirmed"?x.texts.relations.deadConfirmed:x.texts.relations.verifyHint),E("data-testid",s+"-verify-"+o),i(),_(x.isVerifying(o)?1:C==="dead-confirmed"?2:3)}}function In(t,n){if(t&1){let e=L();he(0),r(1,"span",43)(2,"p-chip",44),N("click",function(){let s=M(e).path,C=f(0),x=l(2);return O(C==="live"&&x.openPath(s))}),a(),m(3,Tn,4,6,"button",45),a()}if(t&2){let e=n.path,o=n.testIdPrefix,s=J(l(2).linkStatus(e));i(),E("data-testid",o+"-"+e),i(),p("label",e)("styleClass",s==="live"?"chip--link":s==="dead-confirmed"?"chip--dead chip--dead-confirmed":"chip--dead"),i(),_(s!=="live"?3:-1)}}function Sn(t,n){t&1&&S(0)}function wn(t,n){if(t&1&&(r(0,"h4"),d(1),a(),r(2,"div",50),h(3,Sn,1,0,"ng-container",51),a()),t&2){l(2);let e=$(25),o=f(1),s=l();i(),c(s.texts.fields.supersededBy),i(2),p("ngTemplateOutlet",e)("ngTemplateOutletContext",j(3,Kt,o.supersededBy))}}function En(t,n){t&1&&S(0)}function Pn(t,n){if(t&1&&h(0,En,1,0,"ng-container",51),t&2){let e=n.$implicit;l(3);let o=$(25);p("ngTemplateOutlet",o)("ngTemplateOutletContext",j(2,Wt,e))}}function Mn(t,n){if(t&1&&(r(0,"h4"),d(1),a(),r(2,"div",50),b(3,Pn,1,4,"ng-container",null,V),a()),t&2){l(2);let e=f(1),o=l();i(),c(o.texts.fields.supersedes),i(2),k(e.supersedes)}}function On(t,n){t&1&&S(0)}function Vn(t,n){if(t&1&&h(0,On,1,0,"ng-container",51),t&2){let e=n.$implicit;l(3);let o=$(25);p("ngTemplateOutlet",o)("ngTemplateOutletContext",j(2,Xt,e))}}function Ln(t,n){if(t&1&&(r(0,"h4"),d(1),a(),r(2,"div",50),b(3,Vn,1,4,"ng-container",null,V),a()),t&2){l(2);let e=f(1),o=l();i(),c(o.texts.fields.requires),i(2),k(e.requires)}}function Nn(t,n){t&1&&S(0)}function Fn(t,n){if(t&1&&h(0,Nn,1,0,"ng-container",51),t&2){let e=n.$implicit;l(3);let o=$(25);p("ngTemplateOutlet",o)("ngTemplateOutletContext",j(2,Yt,e))}}function Dn(t,n){if(t&1&&(r(0,"h4"),d(1),a(),r(2,"div",50),b(3,Fn,1,4,"ng-container",null,V),a()),t&2){l(2);let e=f(1),o=l();i(),c(o.texts.fields.related),i(2),k(e.related)}}function Rn(t,n){if(t&1&&y(0,"p-chip",52),t&2){let e=n.$implicit;p("label",e)}}function An(t,n){if(t&1&&(r(0,"h4"),d(1),a(),r(2,"div",50),b(3,Rn,1,1,"p-chip",52,V),a()),t&2){l(2);let e=f(1),o=l();i(),c(o.texts.fields.provides),i(2),k(e.provides)}}function Bn(t,n){if(t&1&&y(0,"p-chip",53),t&2){let e=n.$implicit;p("label",e)}}function zn(t,n){if(t&1&&(r(0,"h4"),d(1),a(),r(2,"div",50),b(3,Bn,1,1,"p-chip",53,V),a()),t&2){l(2);let e=f(1),o=l();i(),c(o.texts.fields.conflictsWith),i(2),k(e.conflictsWith)}}function Hn(t,n){if(t&1&&(r(0,"p-card",25),m(1,wn,4,5),m(2,Mn,5,1),m(3,Ln,5,1),m(4,Dn,5,1),m(5,An,5,1),m(6,zn,5,1),a()),t&2){l();let e=f(1),o=l();p("header",o.texts.cards.relations),i(),_(e!=null&&e.supersededBy?1:-1),i(),_(!(e==null||e.supersedes==null)&&e.supersedes.length?2:-1),i(),_(!(e==null||e.requires==null)&&e.requires.length?3:-1),i(),_(!(e==null||e.related==null)&&e.related.length?4:-1),i(),_(!(e==null||e.provides==null)&&e.provides.length?5:-1),i(),_(!(e==null||e.conflictsWith==null)&&e.conflictsWith.length?6:-1)}}function qn(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd"),d(3),a()),t&2){l();let e=f(1),o=l();i(),c(o.texts.fields.priority),i(2),w("",e.priority,"",o.texts.fields.priorityScale)}}function $n(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd"),d(3),a()),t&2){l();let e=f(0),o=l();i(),c(o.texts.fields.author),i(2),c(e.author)}}function jn(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd"),d(3),a()),t&2){l();let e=f(0),o=l();i(),c(o.texts.fields.authors),i(2),c(e.authors.join(o.texts.authorsSeparator))}}function Un(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd"),d(3),a()),t&2){l();let e=f(0),o=l();i(),c(o.texts.fields.license),i(2),c(e.license)}}function Qn(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd"),d(3),a()),t&2){l();let e=f(1),o=l();i(),c(o.texts.fields.created),i(2),c(e.created)}}function Kn(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd"),d(3),a()),t&2){l();let e=f(1),o=l();i(),c(o.texts.fields.updated),i(2),c(e.updated)}}function Wn(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd"),d(3),a()),t&2){l();let e=f(1),o=l();i(),c(o.texts.fields.released),i(2),c(e.released)}}function Xn(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd"),d(3),a()),t&2){l();let e=f(1),o=l();i(),c(o.texts.fields.category),i(2),c(e.category)}}function Yn(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd")(3,"code"),d(4),a()()),t&2){l();let e=f(1),o=l();i(),c(o.texts.fields.specCompat),i(3),c(e.specCompat)}}function Gn(t,n){if(t&1&&y(0,"p-chip",52),t&2){let e=n.$implicit;p("label",e)}}function Jn(t,n){if(t&1&&(r(0,"h4"),d(1),a(),r(2,"div",50),b(3,Gn,1,1,"p-chip",52,V),a()),t&2){l();let e=f(1),o=l();i(),c(o.texts.fields.tags),i(2),k(e.tags)}}function Zn(t,n){if(t&1&&y(0,"p-chip",52),t&2){let e=n.$implicit;p("label",e)}}function ei(t,n){if(t&1&&(r(0,"h4"),d(1),a(),r(2,"div",50),b(3,Zn,1,1,"p-chip",52,V),a()),t&2){l(2);let e=f(0),o=l();i(),c(o.texts.fields.toolsAllowlist),i(2),k(e.tools)}}function ti(t,n){if(t&1&&y(0,"p-chip",52),t&2){let e=n.$implicit;p("label",e)}}function ni(t,n){if(t&1&&(r(0,"h4"),d(1),a(),r(2,"div",50),b(3,ti,1,1,"p-chip",52,V),a()),t&2){l(2);let e=f(0),o=l();i(),c(o.texts.fields.allowedTools),i(2),k(e.allowedTools)}}function ii(t,n){if(t&1&&(r(0,"p-card",30),m(1,ei,5,1),m(2,ni,5,1),a()),t&2){l();let e=f(0),o=l();p("header",o.texts.cards.tools),i(),_(e.tools!=null&&e.tools.length?1:-1),i(),_(e.allowedTools!=null&&e.allowedTools.length?2:-1)}}function oi(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd")(3,"a",54),d(4),a()()),t&2){l(2);let e=f(1),o=l();i(),c(o.texts.fields.source),i(2),p("href",e.source,q),i(),c(e.source)}}function ai(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd")(3,"a",54),d(4),a()()),t&2){l(2);let e=f(1),o=l();i(),c(o.texts.fields.docs),i(2),p("href",e.docsUrl,q),i(),c(e.docsUrl)}}function ri(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd")(3,"a",54),d(4),a()()),t&2){l(2);let e=f(1),o=l();i(),c(o.texts.fields.homepage),i(2),p("href",e.homepage,q),i(),c(e.homepage)}}function li(t,n){if(t&1&&(r(0,"dt"),d(1),a(),r(2,"dd")(3,"a",54),d(4),a()()),t&2){l(2);let e=f(1),o=l();i(),c(o.texts.fields.examples),i(2),p("href",e.examplesUrl,q),i(),c(e.examplesUrl)}}function di(t,n){if(t&1&&(r(0,"p-card",31)(1,"dl",29),m(2,oi,5,3),m(3,ai,5,3),m(4,ri,5,3),m(5,li,5,3),a()()),t&2){l();let e=f(1),o=l();p("header",o.texts.cards.external),i(2),_(e!=null&&e.source?2:-1),i(),_(e!=null&&e.docsUrl?3:-1),i(),_(e!=null&&e.homepage?4:-1),i(),_(e!=null&&e.examplesUrl?5:-1)}}function ci(t,n){if(t&1){let e=L();r(0,"div",55)(1,"h3",56),d(2),a(),r(3,"p-button",57),N("onClick",function(){M(e);let s=l(2);return O(s.refreshBody())}),a()()}if(t&2){let e=l(2);i(2),c(e.texts.cards.body),i(),p("rounded",!0)("text",!0)("ariaLabel",e.texts.body.refreshLabel)("pTooltip",e.texts.body.refreshLabel)("disabled",e.bodyState()==="loading"||!e.path())}}function si(t,n){if(t&1&&(r(0,"p",34),d(1),a()),t&2){let e=l(2);i(),c(e.texts.body.loading)}}function pi(t,n){if(t&1&&(r(0,"p",35),d(1),a()),t&2){let e=l(2);i(),c(e.texts.body.empty)}}function mi(t,n){if(t&1&&(r(0,"p",36),d(1),a()),t&2){let e=l(2);i(),c(e.texts.body.unavailable)}}function _i(t,n){if(t&1&&(r(0,"p",37),d(1),a()),t&2){let e=l(2);i(),c(e.texts.body.renderError)}}function ui(t,n){if(t&1&&y(0,"div",38),t&2){let e=l(2);p("innerHTML",e.bodyHtml(),Se)}}function xi(t,n){if(t&1){let e=L();he(0)(1),r(2,"section",1)(3,"header",10)(4,"div",11),y(5,"p-tag",12),m(6,Zt,1,3,"p-tag",13),r(7,"h2"),d(8),a()(),r(9,"a",14),d(10),a()(),r(11,"p",15)(12,"code"),d(13),a()(),r(14,"p",16),d(15),a(),r(16,"div",17),y(17,"sm-empty-state",18)(18,"sm-empty-state",19)(19,"sm-empty-state",20),m(20,en,7,3,"p-card",21),m(21,dn,4,3,"p-card",22),m(22,sn,16,8,"p-card",23),m(23,hn,3,3,"p-card",24),h(24,In,4,5,"ng-template",null,0,Fe),m(26,Hn,7,7,"p-card",25),r(27,"div",26)(28,"sm-linked-nodes-panel",27),N("openPath",function(s){M(e);let C=l();return O(C.openPath(s))}),a()(),r(29,"p-card",28)(30,"dl",29)(31,"dt"),d(32),a(),r(33,"dd")(34,"code"),d(35),a()(),m(36,qn,4,3),m(37,$n,4,2),m(38,jn,4,2),m(39,Un,4,2),m(40,Qn,4,2),m(41,Kn,4,2),m(42,Wn,4,2),m(43,Xn,4,2),m(44,Yn,5,2),a(),m(45,Jn,5,1),a(),m(46,ii,3,3,"p-card",30),m(47,di,6,5,"p-card",31),r(48,"p-card",32),h(49,ci,4,6,"ng-template",33),m(50,si,2,1,"p",34)(51,pi,2,1,"p",35)(52,mi,2,1,"p",36)(53,_i,2,1,"p",37)(54,ui,1,1,"div",38),a()()()}if(t&2){let e,o,s,C,x,g=l(),H=g.node(),I=J(H.frontmatter);i();let u=J(I.metadata);i(4),G(g.kindStyle(H.kind)),p("value",g.kindLabel(H.kind)),i(),_(u!=null&&u.stability?6:-1),i(2),c(I.name),i(2),c(g.texts.backToList),i(3),c(H.path),i(2),c(I.description),i(2),p("title",g.texts.placeholders.enrichmentTitle)("body",g.texts.placeholders.body),i(),p("title",g.texts.placeholders.summaryTitle)("body",g.texts.placeholders.body),i(),p("title",g.texts.placeholders.findingsTitle)("body",g.texts.placeholders.body),i(),_((e=g.asAgent())?20:-1,e),i(),_((o=g.asCommand())?21:-1,o),i(),_((s=g.asHook())?22:-1,s),i(),_((C=g.asSkill())?23:-1,C),i(3),_(!(u==null||u.supersedes==null)&&u.supersedes.length||u!=null&&u.supersededBy||!(u==null||u.requires==null)&&u.requires.length||!(u==null||u.related==null)&&u.related.length||!(u==null||u.provides==null)&&u.provides.length||!(u==null||u.conflictsWith==null)&&u.conflictsWith.length?26:-1),i(2),p("path",H.path),i(),p("header",g.texts.cards.metadata),i(3),c(g.texts.fields.version),i(3),c((u==null?null:u.version)??g.texts.missing),i(),_((u==null?null:u.priority)!=null?36:-1),i(),_(I.author?37:-1),i(),_(I.authors!=null&&I.authors.length?38:-1),i(),_(I.license?39:-1),i(),_(u!=null&&u.created?40:-1),i(),_(u!=null&&u.updated?41:-1),i(),_(u!=null&&u.released?42:-1),i(),_(u!=null&&u.category?43:-1),i(),_(u!=null&&u.specCompat?44:-1),i(),_(!(u==null||u.tags==null)&&u.tags.length?45:-1),i(),_(I.tools!=null&&I.tools.length||I.allowedTools!=null&&I.allowedTools.length?46:-1),i(),_(u!=null&&u.source||u!=null&&u.docsUrl||u!=null&&u.homepage||u!=null&&u.examplesUrl?47:-1),i(3),_((x=g.bodyState())==="loading"?50:x==="empty"?51:x==="unavailable"?52:x==="error"?53:x==="ready"?54:-1)}}var fi={stable:"success",experimental:"info",deprecated:"warn"},rt=class t{loader=v(Xe);router=v(ze);kindRegistry=v(Ye);dataSource=v(re);markdown=v(me);texts=nt;path=A(void 0);node=R(()=>{let n=this.path();return n?this.loader.nodes().find(e=>e.path===n)??null:null});pathSet=R(()=>{let n=new Set;for(let e of this.loader.nodes())n.add(e.path);return n});asAgent=R(()=>this.node()?.kind==="agent"?this.node().frontmatter:null);asCommand=R(()=>this.node()?.kind==="command"?this.node().frontmatter:null);asHook=R(()=>this.node()?.kind==="hook"?this.node().frontmatter:null);asSkill=R(()=>this.node()?.kind==="skill"?this.node().frontmatter:null);bodyState=T("idle");bodyHtml=T(null);fetchToken=0;verifiedAlive=T(new Set);verifiedDead=T(new Set);verifyInFlight=T(new Set);constructor(){W(()=>{let n=this.path(),e=++this.fetchToken;if(this.bodyHtml.set(null),this.verifiedAlive.set(new Set),this.verifiedDead.set(new Set),this.verifyInFlight.set(new Set),!n){this.bodyState.set("idle");return}this.bodyState.set("loading"),this.fetchAndRenderBody(n,e)})}ngOnInit(){this.loader.nodes().length===0&&!this.loader.loading()&&this.loader.load()}kindLabel(n){return this.kindRegistry.labelOf(n)}kindStyle(n){return{background:`var(--sm-kind-${n}-bg)`,color:`var(--sm-kind-${n}-fg)`}}stabilitySeverity(n){return fi[n]}openPath(n){this.router.navigate(["/inspector"],{queryParams:{path:n}})}pathExists(n){return this.pathSet().has(n)}linkStatus(n){return this.pathSet().has(n)||this.verifiedAlive().has(n)?"live":this.verifiedDead().has(n)?"dead-confirmed":"dead-heuristic"}isVerifying(n){return this.verifyInFlight().has(n)}async verifyDeadLink(n){if(!(this.verifiedAlive().has(n)||this.verifiedDead().has(n))&&!this.verifyInFlight().has(n)){this.verifyInFlight.update(e=>new Set(e).add(n));try{await this.dataSource.getNode(n)===null?this.verifiedDead.update(o=>new Set(o).add(n)):this.verifiedAlive.update(o=>new Set(o).add(n))}catch{}finally{this.verifyInFlight.update(e=>{let o=new Set(e);return o.delete(n),o})}}}refreshBody(){let n=this.path();if(!n||this.bodyState()==="loading")return;let e=++this.fetchToken;this.bodyHtml.set(null),this.bodyState.set("loading"),this.fetchAndRenderBody(n,e)}async fetchAndRenderBody(n,e){try{let o=await this.dataSource.getNode(n,{includeBody:!0});if(e!==this.fetchToken)return;if(o===null){this.bodyState.set("unavailable");return}let s=o.item.body;if(s===null){this.bodyState.set("unavailable");return}if(s===void 0||s.trim().length===0){this.bodyState.set("empty");return}let C=await this.markdown.render(s);if(e!==this.fetchToken)return;this.bodyHtml.set(C),this.bodyState.set("ready")}catch{if(e!==this.fetchToken)return;this.bodyState.set("error")}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=B({type:t,selectors:[["app-inspector-view"]],inputs:{path:[1,"path"]},decls:3,vars:1,consts:[["pathChip",""],["data-testid","inspector-view",1,"inspector"],["data-testid","inspector-empty-no-selection",1,"empty-state"],[1,"empty-state__icon","pi","pi-eye"],[1,"empty-state__title"],[1,"empty-state__desc"],["routerLink","/list",1,"inspector__back"],["routerLink","/graph",1,"inspector__back"],["data-testid","inspector-empty-not-found",1,"empty-state"],[1,"empty-state__icon","pi","pi-question-circle",2,"color","var(--sm-severity-warn)","opacity","1"],[1,"inspector__header"],["data-testid","inspector-title",1,"inspector__title"],[3,"value"],[3,"value","severity","rounded"],["routerLink","/list","data-testid","inspector-back",1,"inspector__back"],["data-testid","inspector-path",1,"inspector__path"],["data-testid","inspector-description",1,"inspector__desc"],[1,"inspector__grid"],["icon","pi pi-sparkles","testId","inspector-empty-enrichment",3,"title","body"],["icon","pi pi-file","testId","inspector-empty-summary",3,"title","body"],["icon","pi pi-search","testId","inspector-empty-findings",3,"title","body"],["styleClass","inspector__card","data-testid","inspector-card-agent",3,"header"],["styleClass","inspector__card","data-testid","inspector-card-command",3,"header"],["styleClass","inspector__card","data-testid","inspector-card-hook",3,"header"],["styleClass","inspector__card","data-testid","inspector-card-skill",3,"header"],["styleClass","inspector__card inspector__card--full","data-testid","inspector-card-relations",3,"header"],["data-testid","inspector-card-linked-nodes",1,"inspector__card","inspector__card--full"],[3,"openPath","path"],["styleClass","inspector__card","data-testid","inspector-card-metadata",3,"header"],[1,"kv"],["styleClass","inspector__card","data-testid","inspector-card-tools",3,"header"],["styleClass","inspector__card","data-testid","inspector-card-external",3,"header"],["styleClass","inspector__card inspector__card--full inspector__body","data-testid","inspector-card-body"],["pTemplate","header"],["data-testid","inspector-body-loading",1,"inspector__body-status"],["data-testid","inspector-body-empty",1,"inspector__body-status"],["data-testid","inspector-body-unavailable",1,"inspector__body-status","inspector__body-status--warn"],["data-testid","inspector-body-error",1,"inspector__body-status","inspector__body-status--warn"],["data-testid","inspector-body-rendered",1,"inspector__body-rendered",3,"innerHTML"],[1,"args"],[1,"args__type"],[1,"args__req"],[1,"cond"],[1,"rel-chip"],[3,"click","label","styleClass"],["type","button",1,"rel-chip__verify",3,"rel-chip__verify--confirmed","disabled","pTooltip"],["type","button",1,"rel-chip__verify",3,"click","disabled","pTooltip"],["aria-hidden","true",1,"pi","pi-spin","pi-spinner"],["aria-hidden","true",1,"pi","pi-times-circle"],["aria-hidden","true",1,"pi","pi-question-circle"],[1,"chips"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label"],["styleClass","chip--warn",3,"label"],["target","_blank","rel","noopener",3,"href"],[1,"inspector__body-header"],[1,"inspector__body-title"],["icon","pi pi-refresh","severity","secondary","data-testid","inspector-body-refresh",3,"onClick","rounded","text","ariaLabel","pTooltip","disabled"]],template:function(e,o){e&1&&m(0,Gt,13,6,"section",1)(1,Jt,12,5,"section",1)(2,xi,55,38,"section",1),e&2&&_(o.path()?o.node()?2:1:0)},dependencies:[He,Z,ce,de,z,le,Ge,pe,Q,ie,ne,ae,oe,_e,ue],styles:["[_nghost-%COMP%]{display:block}.inspector[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.inspector--empty[_ngcontent-%COMP%]{padding:2rem;color:var(--p-text-muted-color)}.inspector--empty[_ngcontent-%COMP%]   code[_ngcontent-%COMP%]{background:var(--sm-bg-hover);padding:.1rem .35rem;border-radius:.25rem;font-size:.85rem}.inspector__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem}.inspector__title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.inspector__title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:600;letter-spacing:-.01em}.inspector__back[_ngcontent-%COMP%]{font-size:.9rem;color:var(--p-primary-color)}.inspector__path[_ngcontent-%COMP%]{margin:0}.inspector__path[_ngcontent-%COMP%]   code[_ngcontent-%COMP%]{background:var(--sm-bg-hover);padding:.15rem .5rem;border-radius:.25rem;font-size:.85rem;color:var(--p-text-muted-color)}.inspector__desc[_ngcontent-%COMP%]{margin:0;color:var(--p-text-color);font-size:1rem;line-height:1.5;max-width:70ch}.inspector__grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.inspector__card--full[_ngcontent-%COMP%]{grid-column:1 / -1}[_nghost-%COMP%]     .inspector__card--hero .p-card{border-left:3px solid var(--p-primary-color)}.inspector__body[_ngcontent-%COMP%]{display:block}.inspector__body-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.75rem 1rem 0}.inspector__body-title[_ngcontent-%COMP%]{margin:0;font-size:.95rem;font-weight:600}.inspector__body-status[_ngcontent-%COMP%]{margin:0;font-size:.85rem;color:var(--p-text-muted-color);font-style:italic}.inspector__body-status--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn);font-style:normal}.inspector__body-rendered[_ngcontent-%COMP%]{font-size:.9rem;line-height:1.55;max-height:600px;overflow:auto}.inspector__body-rendered[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{margin-top:0}.inspector__body-rendered[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child{margin-bottom:0}.inspector__body-rendered[_ngcontent-%COMP%]   pre[_ngcontent-%COMP%]{background:var(--p-content-background);border:1px solid var(--p-content-border-color);border-radius:4px;padding:.75rem;margin:.75rem 0;white-space:pre-wrap;word-wrap:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.85rem;line-height:1.5;overflow-x:auto}.inspector__body-rendered[_ngcontent-%COMP%]   code[_ngcontent-%COMP%]{background:var(--p-content-background);padding:.1rem .3rem;border-radius:3px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.85em}.inspector__body-rendered[_ngcontent-%COMP%]   pre[_ngcontent-%COMP%]   code[_ngcontent-%COMP%]{background:transparent;padding:0;border-radius:0}.kv[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;gap:.25rem .75rem;margin:0 0 .5rem;font-size:.9rem}.kv[_ngcontent-%COMP%]   dt[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-weight:500}.kv[_ngcontent-%COMP%]   dd[_ngcontent-%COMP%]{margin:0;word-break:break-word}.kv[_ngcontent-%COMP%]   code[_ngcontent-%COMP%]{background:var(--sm-bg-hover);padding:.1rem .35rem;border-radius:.25rem;font-size:.85rem}.kv[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--p-primary-color);word-break:break-all}h4[_ngcontent-%COMP%]{margin:1rem 0 .5rem;font-size:.85rem;text-transform:uppercase;letter-spacing:.04em;color:var(--p-text-muted-color);font-weight:600}h4[_ngcontent-%COMP%]:first-child{margin-top:0}.chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.4rem}[_nghost-%COMP%]     .chip--link .p-chip{cursor:pointer;background:var(--p-primary-50);color:var(--p-primary-color);transition:background .15s ease}[_nghost-%COMP%]     .chip--link:hover .p-chip{background:var(--p-primary-100)}[_nghost-%COMP%]     .chip--dead .p-chip{background:var(--sm-bg-hover);color:var(--p-text-muted-color);text-decoration:line-through;cursor:not-allowed}[_nghost-%COMP%]     .chip--warn .p-chip{background:var(--sm-kind-command-bg);color:var(--sm-kind-command-fg)}[_nghost-%COMP%]     .chip--dead-confirmed .p-chip{background:var(--sm-bg-hover);color:var(--sm-severity-error);border:1px dashed var(--sm-severity-error)}.rel-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.2rem}.rel-chip__verify[_ngcontent-%COMP%]{background:none;border:none;padding:.15rem;cursor:pointer;color:var(--p-text-muted-color);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;transition:color .15s ease,background .15s ease}.rel-chip__verify[_ngcontent-%COMP%]:hover:not(:disabled){color:var(--p-primary-color);background:var(--sm-bg-hover)}.rel-chip__verify[_ngcontent-%COMP%]:disabled{cursor:wait;opacity:.6}.rel-chip__verify--confirmed[_ngcontent-%COMP%]{color:var(--sm-severity-error)}.rel-chip__verify--confirmed[_ngcontent-%COMP%]:hover:not(:disabled){color:var(--sm-severity-error)}.args[_ngcontent-%COMP%]{margin:0;padding-left:1.25rem;display:flex;flex-direction:column;gap:.35rem;font-size:.9rem}.args[_ngcontent-%COMP%]   code[_ngcontent-%COMP%]{background:var(--sm-bg-hover);padding:.1rem .35rem;border-radius:.25rem;font-size:.8rem;font-weight:500}.args__type[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-style:italic;margin-left:.25rem}.args__req[_ngcontent-%COMP%]{display:inline-block;margin-left:.5rem;padding:0 .4rem;font-size:.7rem;background:var(--sm-kind-command-bg);color:var(--sm-kind-command-fg);border-radius:.25rem;text-transform:uppercase;letter-spacing:.04em;font-weight:600}.cond[_ngcontent-%COMP%]{font-size:.8rem;word-break:break-all}.inspector__actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}@media(max-width:1280px){.inspector__grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}"],changeDetection:0})};export{rt as InspectorView};
