@skill-map/cli 0.47.1 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/tutorial/sm-master/SKILL.md +3 -2
- package/dist/cli/tutorial/sm-tutorial/SKILL.md +2 -2
- package/dist/cli.js +441 -108
- package/dist/index.js +7 -5
- package/dist/kernel/index.d.ts +23 -28
- package/dist/kernel/index.js +7 -5
- package/dist/ui/{chunk-UV3QRBRR.js → chunk-2GTH7ZLV.js} +1 -1
- package/dist/ui/chunk-5K5WASS7.js +315 -0
- package/dist/ui/{chunk-WPUUCIS3.js → chunk-AVGEDQNI.js} +1 -1
- package/dist/ui/chunk-AWNZZYAU.js +1 -0
- package/dist/ui/{chunk-7K36273M.js → chunk-BKU4RCQK.js} +1 -1
- package/dist/ui/{chunk-RT7E4S5B.js → chunk-FSJSSLYD.js} +1 -1
- package/dist/ui/{chunk-CRWK2NFZ.js → chunk-IDZ7ZQXM.js} +1 -1
- package/dist/ui/chunk-K2LHWJKO.js +2190 -0
- package/dist/ui/chunk-L56QU7EF.js +2 -0
- package/dist/ui/chunk-NPK64R5H.js +123 -0
- package/dist/ui/chunk-OBYZDEVO.js +1 -0
- package/dist/ui/{chunk-UIUGLD7F.js → chunk-Q747VBQL.js} +3 -3
- package/dist/ui/{chunk-3HLMBEDX.js → chunk-QNFHGPFR.js} +1 -1
- package/dist/ui/chunk-Y6VK27P4.js +1 -0
- package/dist/ui/{chunk-CO2ZOUSD.js → chunk-YQ7ZKAFY.js} +1 -1
- package/dist/ui/index.html +2 -2
- package/dist/ui/{main-M4W7H6RY.js → main-KXXADOQV.js} +3 -3
- package/dist/ui/{styles-HI4A6IWA.css → styles-HWRPHKTJ.css} +1 -1
- package/package.json +5 -3
- package/dist/ui/chunk-3AKR33GE.js +0 -1
- package/dist/ui/chunk-EPBUSS3I.js +0 -2
- package/dist/ui/chunk-K365TVPA.js +0 -1
- package/dist/ui/chunk-QCMLB44L.js +0 -123
- package/dist/ui/chunk-VNA3TMIO.js +0 -1
- package/dist/ui/chunk-XWU3YFSM.js +0 -315
- package/dist/ui/chunk-YOF6HQCQ.js +0 -2190
- package/dist/ui/chunk-ZZJ7XWDX.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as _n,B as hn,C as Y,Ca as Se,Da as Jt,E as Ee,Fa as Et,Ja as S,L as fn,M as gn,O as mn,Q as bn,S as yn,T as ht,U as vn,V as Zt,Y as st,Z as Qt,_ as _t,a as yt,aa as Cn,b as ve,c as rn,d as vt,da as Xt,e as sn,ea as $,f as an,h as ln,ha as Ct,i as dn,j as cn,m as W,p as _e,q as un,r as Mt,s as pn,u as Yt,y as Ce}from"./chunk-4SG4352Z.js";import{a as be,
|
|
1
|
+
import{$ as _n,B as hn,C as Y,Ca as Se,Da as Jt,E as Ee,Fa as Et,Ja as S,L as fn,M as gn,O as mn,Q as bn,S as yn,T as ht,U as vn,V as Zt,Y as st,Z as Qt,_ as _t,a as yt,aa as Cn,b as ve,c as rn,d as vt,da as Xt,e as sn,ea as $,f as an,h as ln,ha as Ct,i as dn,j as cn,m as W,p as _e,q as un,r as Mt,s as pn,u as Yt,y as Ce}from"./chunk-4SG4352Z.js";import{a as be,g as en,h as nn,i as on,j as et,k as pt,l as ye}from"./chunk-L56QU7EF.js";import{$ as it,$a as C,Ab as fe,Bb as jt,C as je,Cb as Wt,Db as Ze,Ec as Kt,F as We,Hb as Qe,I as Rt,Ib as Gt,Ic as _,Jc as rt,K as de,Ka as B,Kb as q,L as g,Lb as J,M as V,Mb as tt,Nb as Xe,O as y,Pb as At,Q as c,Qa as ze,Qb as It,R as Ge,Sa as ct,Ta as w,Ua as qe,Vb as Je,Wb as ge,Xb as tn,Y as Bt,Yb as H,Za as U,Zb as zt,_ as Ht,_a as P,_b as qt,aa as Q,ab as bt,bb as v,c as kt,ca as ot,cb as ut,d as G,da as Ut,f as Be,fb as Ke,gb as Ye,h as He,ha as f,ic as N,ja as M,ka as $t,la as m,lb as z,lc as me,n as Ue,na as X,ra as mt,t as $e,tc as K,ub as A,uc as E,v as le,vb as ce,wb as ue,xb as Tt,yb as pe,yc as T,zb as he}from"./chunk-HAWX5WNM.js";import{a as d,b as I,d as Re}from"./chunk-WCABR6TI.js";function at(...n){if(n){let i=[];for(let t=0;t<n.length;t++){let e=n[t];if(!e)continue;let o=typeof e;if(o==="string"||o==="number")i.push(e);else if(o==="object"){let r=Array.isArray(e)?[at(...e)]:Object.entries(e).map(([s,a])=>a?s:void 0);i=r.length?i.concat(r.filter(s=>!!s)):i}}return i.join(" ").trim()}}var Ai=Object.defineProperty,En=Object.getOwnPropertySymbols,Ii=Object.prototype.hasOwnProperty,Mi=Object.prototype.propertyIsEnumerable,Sn=(n,i,t)=>i in n?Ai(n,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[i]=t,Dn=(n,i)=>{for(var t in i||(i={}))Ii.call(i,t)&&Sn(n,t,i[t]);if(En)for(var t of En(i))Mi.call(i,t)&&Sn(n,t,i[t]);return n};function wn(...n){if(n){let i=[];for(let t=0;t<n.length;t++){let e=n[t];if(!e)continue;let o=typeof e;if(o==="string"||o==="number")i.push(e);else if(o==="object"){let r=Array.isArray(e)?[wn(...e)]:Object.entries(e).map(([s,a])=>a?s:void 0);i=r.length?i.concat(r.filter(s=>!!s)):i}}return i.join(" ").trim()}}function Oi(n){return typeof n=="function"&&"call"in n&&"apply"in n}function Ni({skipUndefined:n=!1},...i){return i?.reduce((t,e={})=>{for(let o in e){let r=e[o];if(!(n&&r===void 0))if(o==="style")t.style=Dn(Dn({},t.style),e.style);else if(o==="class"||o==="className")t[o]=wn(t[o],e[o]);else if(Oi(r)){let s=t[o];t[o]=s?(...a)=>{s(...a),r(...a)}:r}else t[o]=r}return t},{})}function De(...n){return Ni({skipUndefined:!1},...n)}var te={};function ft(n="pui_id_"){return Object.hasOwn(te,n)||(te[n]=0),te[n]++,`${n}${te[n]}`}var Tn=["*"],xi=(function(n){return n[n.ACCEPT=0]="ACCEPT",n[n.REJECT=1]="REJECT",n[n.CANCEL=2]="CANCEL",n})(xi||{}),nr=(()=>{class n{requireConfirmationSource=new G;acceptConfirmationSource=new G;requireConfirmation$=this.requireConfirmationSource.asObservable();accept=this.acceptConfirmationSource.asObservable();confirm(t){return this.requireConfirmationSource.next(t),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=g({token:n,factory:n.\u0275fac})}return n})();var L=(()=>{class n{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return n})(),ir=(()=>{class n{static AND="and";static OR="or"}return n})(),or=(()=>{class n{filter(t,e,o,r,s){let a=[];if(t)for(let l of t)for(let u of e){let p=vn(l,u);if(this.filters[r](p,o,s)){a.push(l);break}}return a}filters={startsWith:(t,e,o)=>{if(e==null||e.trim()==="")return!0;if(t==null)return!1;let r=$(e.toString()).toLocaleLowerCase(o);return $(t.toString()).toLocaleLowerCase(o).slice(0,r.length)===r},contains:(t,e,o)=>{if(e==null||typeof e=="string"&&e.trim()==="")return!0;if(t==null)return!1;let r=$(e.toString()).toLocaleLowerCase(o);return $(t.toString()).toLocaleLowerCase(o).indexOf(r)!==-1},notContains:(t,e,o)=>{if(e==null||typeof e=="string"&&e.trim()==="")return!0;if(t==null)return!1;let r=$(e.toString()).toLocaleLowerCase(o);return $(t.toString()).toLocaleLowerCase(o).indexOf(r)===-1},endsWith:(t,e,o)=>{if(e==null||e.trim()==="")return!0;if(t==null)return!1;let r=$(e.toString()).toLocaleLowerCase(o),s=$(t.toString()).toLocaleLowerCase(o);return s.indexOf(r,s.length-r.length)!==-1},equals:(t,e,o)=>e==null||typeof e=="string"&&e.trim()===""?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()===e.getTime():t==e?!0:$(t.toString()).toLocaleLowerCase(o)==$(e.toString()).toLocaleLowerCase(o),notEquals:(t,e,o)=>e==null||typeof e=="string"&&e.trim()===""?!1:t==null?!0:t.getTime&&e.getTime?t.getTime()!==e.getTime():t==e?!1:$(t.toString()).toLocaleLowerCase(o)!=$(e.toString()).toLocaleLowerCase(o),in:(t,e)=>{if(e==null||e.length===0)return!0;for(let o=0;o<e.length;o++)if(Zt(t,e[o]))return!0;return!1},between:(t,e)=>e==null||e[0]==null||e[1]==null?!0:t==null?!1:t.getTime?e[0].getTime()<=t.getTime()&&t.getTime()<=e[1].getTime():e[0]<=t&&t<=e[1],lt:(t,e,o)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()<e.getTime():t<e,lte:(t,e,o)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()<=e.getTime():t<=e,gt:(t,e,o)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()>e.getTime():t>e,gte:(t,e,o)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()>=e.getTime():t>=e,is:(t,e,o)=>this.filters.equals(t,e,o),isNot:(t,e,o)=>this.filters.notEquals(t,e,o),before:(t,e,o)=>this.filters.lt(t,e,o),after:(t,e,o)=>this.filters.gt(t,e,o),dateIs:(t,e)=>e==null?!0:t==null?!1:t.toDateString()===e.toDateString(),dateIsNot:(t,e)=>e==null?!0:t==null?!1:t.toDateString()!==e.toDateString(),dateBefore:(t,e)=>e==null?!0:t==null?!1:t.getTime()<e.getTime(),dateAfter:(t,e)=>e==null?!0:t==null?!1:(t.setHours(0,0,0,0),t.getTime()>e.getTime())};register(t,e){this.filters[t]=e}static \u0275fac=function(e){return new(e||n)};static \u0275prov=g({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var rr=(()=>{class n{clickSource=new G;parentDragSource=new G;clickObservable=this.clickSource.asObservable();parentDragObservable=this.parentDragSource.asObservable();add(t){t&&this.clickSource.next(t)}emitParentDrag(t){this.parentDragSource.next(t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=g({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var sr=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=U({type:n,selectors:[["p-header"]],standalone:!1,ngContentSelectors:Tn,decls:1,vars:0,template:function(e,o){e&1&&(J(),tt(0))},encapsulation:2})}return n})(),ar=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=U({type:n,selectors:[["p-footer"]],standalone:!1,ngContentSelectors:Tn,decls:1,vars:0,template:function(e,o){e&1&&(J(),tt(0))},encapsulation:2})}return n})(),An=(()=>{class n{template;type;name;constructor(t){this.template=t}getType(){return this.name}static \u0275fac=function(e){return new(e||n)(w(ze))};static \u0275dir=C({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]}})}return n})(),lt=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=P({type:n});static \u0275inj=V({imports:[et]})}return n})(),lr=(()=>{class n{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return n})();var In=`
|
|
2
2
|
*,
|
|
3
3
|
::before,
|
|
4
4
|
::after {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as S}from"./chunk-Y6VK27P4.js";import{$ as b,L as d,O as A,Q as u,ha as l,uc as y}from"./chunk-HAWX5WNM.js";var F=new Set(["stale-body","stale-frontmatter","stale-both"]);function g(t){return t?F.has(t.status??null):!1}function h(t){let i=t.metadata;return i&&typeof i=="object"&&!Array.isArray(i)?i:null}function Q(t){if(!t)return null;let i=t.sidecar?.annotations;if(i&&typeof i.version=="number")return`v${i.version}`;let e=h(t.frontmatter)?.version;return typeof e=="string"&&e.length>0?`v${e}`:null}function _(t){if(!t)return null;let e=t.sidecar?.annotations?.stability;if(e==="stable"||e==="experimental"||e==="deprecated")return e;let s=h(t.frontmatter)?.stability;return s==="stable"||s==="experimental"||s==="deprecated"?s:null}function ee(t){if(!t)return[];let i=t.frontmatter,e=[];if(t.kind==="agent"&&Array.isArray(i.tools))for(let s of i.tools)typeof s=="string"&&s.length>0&&e.push(s);if(t.kind==="skill"||t.kind==="command"){let s=i["allowed-tools"];if(Array.isArray(s))for(let n of s)typeof n=="string"&&n.length>0&&e.push(n);else typeof s=="string"&&s.length>0&&e.push(s)}return e}function te(t){return g(t?.sidecar)}function I(t){if(!t)return null;let e=t.sidecar?.annotations?.supersededBy;if(typeof e=="string"&&e.length>0)return e;let s=h(t.frontmatter)?.supersededBy;return typeof s=="string"&&s.length>0?s:null}function O(t){if(!t)return[];let e=t.sidecar?.annotations?.tags;if(Array.isArray(e))return e.filter(n=>typeof n=="string"&&n.length>0);let s=h(t.frontmatter)?.tags;return Array.isArray(s)?s.filter(n=>typeof n=="string"&&n.length>0):[]}function se(t,i){switch(t?.sidecar?.status){case"stale-body":return i.staleBody;case"stale-frontmatter":return i.staleFrontmatter;case"stale-both":return i.staleBoth;default:return""}}function ie(t){return t<1e3?`${t}`:t<1e4?`${(t/1e3).toFixed(1).replace(/\.0$/,"")}k`:`${Math.round(t/1e3)}k`}function ne(t){let i=new Date(t);if(isNaN(i.getTime()))return t;let e=Date.now()-i.getTime(),s=Math.floor(e/1e3);if(s<60)return"just now";let n=Math.floor(s/60);if(n<60)return`${n} minute${n===1?"":"s"} ago`;let r=Math.floor(n/60);if(r<24)return`${r} hour${r===1?"":"s"} ago`;let a=Math.floor(r/24);if(a<30)return`${a} day${a===1?"":"s"} ago`;let o=Math.floor(a/30);if(o<12)return`${o} month${o===1?"":"s"} ago`;let c=Math.floor(a/365);return`${c} year${c===1?"":"s"} ago`}var fe=["stable","experimental","deprecated"],N=["invokes","references","mentions","supersedes"],de=(()=>{class t{_searchText=l("");_selectedKinds=l([]);_kindToggleExplicitEmpty=l(!1);_selectedStabilities=l([]);_hasIssuesOnly=l(!1);_staleOnly=l(!1);_favoritesOnly=l(!1);_selectedLinkKinds=l([]);_severityErrorActive=l(!1);_severityWarnActive=l(!1);searchText=this._searchText.asReadonly();selectedKinds=this._selectedKinds.asReadonly();selectedStabilities=this._selectedStabilities.asReadonly();hasIssuesOnly=this._hasIssuesOnly.asReadonly();staleOnly=this._staleOnly.asReadonly();favoritesOnly=this._favoritesOnly.asReadonly();selectedLinkKinds=this._selectedLinkKinds.asReadonly();severityErrorActive=this._severityErrorActive.asReadonly();severityWarnActive=this._severityWarnActive.asReadonly();kindToggleExplicitEmpty=this._kindToggleExplicitEmpty.asReadonly();isActive=y(()=>this._searchText().trim().length>0||this._selectedKinds().length>0||this._kindToggleExplicitEmpty()||this._selectedStabilities().length>0||this._hasIssuesOnly()||this._staleOnly()||this._favoritesOnly()||this._selectedLinkKinds().length>0||this._severityErrorActive()||this._severityWarnActive());setSearchText(e){this._searchText.set(e)}setKinds(e){this._kindToggleExplicitEmpty.set(!1),this._selectedKinds.set([...e])}toggleKind(e,s){let n=this._selectedKinds(),r=s,o=this._kindToggleExplicitEmpty()?new Set:n.length===0?new Set(r):new Set(n);o.has(e)?o.delete(e):o.add(e),o.size===r.length?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1)):o.size===0?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!0)):(this._selectedKinds.set([...o]),this._kindToggleExplicitEmpty.set(!1))}isKindActive(e){if(this._kindToggleExplicitEmpty())return!1;let s=this._selectedKinds();return s.length===0?!0:s.includes(e)}setStabilities(e){this._selectedStabilities.set([...e])}setHasIssuesOnly(e){this._hasIssuesOnly.set(e)}setStaleOnly(e){this._staleOnly.set(e)}setFavoritesOnly(e){this._favoritesOnly.set(e)}setLinkKinds(e){this._selectedLinkKinds.set([...e])}toggleLinkKind(e){let s=this._selectedLinkKinds(),n=s.length===0?new Set(N):new Set(s);n.has(e)?n.delete(e):n.add(e),n.size===N.length?this._selectedLinkKinds.set([]):this._selectedLinkKinds.set([...n])}isLinkKindActive(e){let s=this._selectedLinkKinds();return s.length===0?!0:s.includes(e)}toggleSeverity(e){e==="error"?this._severityErrorActive.set(!this._severityErrorActive()):this._severityWarnActive.set(!this._severityWarnActive())}isSeverityActive(e){return e==="error"?this._severityErrorActive():this._severityWarnActive()}setSeverityFilters(e){let s=new Set(e);this._severityErrorActive.set(s.has("error")),this._severityWarnActive.set(s.has("warn"))}reset(){this._searchText.set(""),this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1),this._selectedStabilities.set([]),this._hasIssuesOnly.set(!1),this._staleOnly.set(!1),this._favoritesOnly.set(!1),this._selectedLinkKinds.set([]),this._severityErrorActive.set(!1),this._severityWarnActive.set(!1)}apply(e,s){let n=this.searchText().trim().toLowerCase(),r=this.selectedKinds(),a=this._kindToggleExplicitEmpty(),o=this.selectedStabilities(),c=this.hasIssuesOnly(),R=this.staleOnly(),B=this.favoritesOnly(),E=this._severityErrorActive(),T=this._severityWarnActive(),W=(E||T)&&s!==void 0;return e.filter(f=>{if(n){let p=O(f).join(" ");if(![f.path,f.frontmatter.name??"",f.frontmatter.description??"",p].join(" ").toLowerCase().includes(n))return!1}if(a||r.length>0&&!r.includes(f.kind))return!1;if(o.length>0){let p=_(f);if(!p||!o.includes(p))return!1}return!(c&&!P(f,s)||R&&!g(f.sidecar)||B&&f.isFavorite!==!0||W&&(E&&!s.errors.has(f.path)||T&&!s.warns.has(f.path)))})}static \u0275fac=function(s){return new(s||t)};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function P(t,i){return!!(_(t)==="deprecated"||I(t)!==null||i&&(i.errors.has(t.path)||i.warns.has(t.path)))}var H=(()=>{class t{router=u(S);open(e){this.router.navigate(["/map"],{queryParams:{path:e}})}static \u0275fac=function(s){return new(s||t)};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ge=new A("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>u(H)});var K={invalidHex:t=>`deriveTints: invalid hex color "${t}" (expected #RRGGBB)`};function m(t,i,e){return[Math.round(t[0]+(i[0]-t[0])*e),Math.round(t[1]+(i[1]-t[1])*e),Math.round(t[2]+(i[2]-t[2])*e)]}function z(t){let i=/^#([0-9a-f]{6})$/i.exec(t);if(!i)throw new Error(K.invalidHex(t));let e=parseInt(i[1],16);return[e>>16&255,e>>8&255,e&255]}function v([t,i,e]){let s=n=>Math.max(0,Math.min(255,n)).toString(16).padStart(2,"0");return`#${s(t)}${s(i)}${s(e)}`}var D=[255,255,255],L=[0,0,0];function k(t,i){let e=z(t);return i==="light"?{bg:v(m(e,D,.85)),fg:v(m(e,L,.5))}:{bg:v(m(e,L,.7)),fg:v(m(e,D,.6))}}var C=/^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/,M=/^#[0-9a-f]{6}$/i,be=(()=>{class t{doc=u(b);_entries=l([]);kinds=this._entries.asReadonly();index=y(()=>{let e=new Map;for(let s of this._entries())e.set(s.name,s);return e});ingest(e){if(!e)return;let s=[];for(let[r,a]of Object.entries(e)){if(!C.test(r))continue;let o=a.providers[a.primaryProviderId];if(!o)continue;let c={name:r,primaryProviderId:a.primaryProviderId,providers:a.providers,label:o.label,color:o.color};o.colorDark!==void 0&&(c.colorDark=o.colorDark),o.emoji!==void 0&&(c.emoji=o.emoji),o.icon!==void 0&&(c.icon=o.icon),s.push(c)}let n=this._entries();V(n,s)||(this._entries.set(s),this.applyCssVars())}lookup(e){return this.index().get(e)}labelOf(e){return this.lookup(e)?.label??e}colorOf(e,s="light"){let n=this.lookup(e);return n?s==="dark"?n.colorDark??n.color:n.color:"#9ca3af"}iconOf(e){return this.lookup(e)?.icon}emojiOf(e){return this.lookup(e)?.emoji}providersOf(e){return this.lookup(e)?.providers}applyCssVars(){if(!this.doc.head)return;let e=U(this.doc),s=[],n=[];for(let r of this._entries()){if(!M.test(r.color))continue;let a=r.colorDark??r.color;if(M.test(a))try{let o=k(r.color,"light"),c=k(a,"dark");s.push(`--sm-kind-${r.name}: ${r.color};`),s.push(`--sm-kind-${r.name}-bg: ${o.bg};`),s.push(`--sm-kind-${r.name}-fg: ${o.fg};`),n.push(`--sm-kind-${r.name}: ${a};`),n.push(`--sm-kind-${r.name}-bg: ${c.bg};`),n.push(`--sm-kind-${r.name}-fg: ${c.fg};`)}catch{continue}}e.textContent=`:root { ${s.join(" ")} } .app-dark { ${n.join(" ")} }`}static \u0275fac=function(s){return new(s||t)};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),w="sm-kind-vars";function U(t){let i=t.getElementById(w);return i||(i=t.createElement("style"),i.id=w,t.head.appendChild(i)),i}function V(t,i){if(t.length!==i.length)return!1;for(let e=0;e<t.length;e++){let s=t[e],n=i[e];if(s.name!==n.name||s.primaryProviderId!==n.primaryProviderId||JSON.stringify(s.providers)!==JSON.stringify(n.providers))return!1}return!0}function x(t){let i=t.normalize("NFD");return i=i.replace(new RegExp("\\p{Mn}+","gu"),""),i=i.toLowerCase(),i=i.replace(/[-_\s]+/g," "),i=i.replace(/\s+/g," "),i.trim()}function Ie(t){let i=new Map;return X(t,i),G(t,i),i}function X(t,i){for(let e of t){let s=j(e);if(s===null)continue;let n=x(s);i.has(n)||i.set(n,e.path)}}function G(t,i){for(let e of t){if(j(e)!==null)continue;let s=J(e.path);if(s.length===0)continue;let n=x(s);i.has(n)||i.set(n,e.path)}}function j(t){let i=t.frontmatter?.name;return typeof i!="string"||i.length===0?null:i}function J(t){let i=t.split("/").filter(s=>s.length>0);if(i.length===0)return t;let e=i[i.length-1];return e==="SKILL.md"&&i.length>=2?i[i.length-2]:e.replace(/\.md$/,"")}function Oe(t,i,e){let s=t.charAt(0);if(s!=="/"&&s!=="@")return t;let n=i!==null?i.replace(/^[/@]/,"").trim():x(t.slice(1));return e.get(n)??t}export{g as a,Q as b,_ as c,ee as d,te as e,I as f,O as g,se as h,ie as i,ne as j,fe as k,N as l,de as m,be as n,Ie as o,J as p,Oe as q,ge as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ni}from"./chunk-
|
|
1
|
+
import{a as ni}from"./chunk-YQ7ZKAFY.js";import{a as Xe,b as Yt,d as tt,e as ot,f as ii}from"./chunk-2GTH7ZLV.js";import{A as Oe,B as Zt,C as et,F as Ke,H as it,I as Jt,S as nt,V as Xt,W as ei,X as ti,a as Ye,f as Kt,g as Qt,j as ve,k as D,l as Je,m as te,p as Y,q as le,t as qt,u as Gt,v as Wt,w as b,x as we,z as Ut}from"./chunk-AVGEDQNI.js";import{A as Rt,E as Le,G as pt,J as ze,N as Ht,Q as ut,R as $t,T as Ze,U as ye,V as Be,X as mt,b as Mt,ca as jt,d as Lt,k as zt,m as Bt,n as Dt,o as At,p as dt,u as Se,v as pe,w as Nt,x as Pt,y as Me}from"./chunk-4SG4352Z.js";import{d as Ft,f as Ue,g as Ie,h as $e,i as de,j as Z,k as je}from"./chunk-L56QU7EF.js";import{$a as Ct,$b as ct,Ab as Ce,Bb as N,Cb as P,Db as O,Ga as bt,Gb as H,Hb as St,Ib as M,Ic as x,Jc as Pe,K as Ge,Ka as c,Kb as r,L as X,Lb as fe,M as ie,Mb as re,Nb as ge,O as q,Ob as Ae,Pb as u,Q as C,Qb as m,Ta as Te,Ub as oe,Vb as We,W as y,Wb as Ot,X as v,Xb as ke,Y as R,Yb as h,Za as z,Zb as xe,_a as ne,_b as Fe,ab as ee,bb as F,ca as _,cb as p,cc as Et,da as De,dc as Vt,ec as kt,ha as he,ic as U,ja as vt,jc as Ne,kc as B,la as T,lb as I,lc as _e,mb as xt,nb as It,ob as G,pb as W,rc as $,sb as wt,tb as Tt,ub as l,uc as ce,vb as f,wb as g,xb as Q,yb as at,yc as L,zb as rt}from"./chunk-HAWX5WNM.js";import{a as K,b as He}from"./chunk-WCABR6TI.js";var Ni=["data-p-icon","blank"],oi=(()=>{class t extends Oe{static \u0275fac=(()=>{let e;return function(n){return(e||(e=T(t)))(n||t)}})();static \u0275cmp=z({type:t,selectors:[["","data-p-icon","blank"]],features:[F],attrs:Ni,decls:1,vars:0,consts:[["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(i,n){i&1&&(R(),Ce(0,"rect",0))},encapsulation:2})}return t})();var Pi=["data-p-icon","check"],si=(()=>{class t extends Oe{static \u0275fac=(()=>{let e;return function(n){return(e||(e=T(t)))(n||t)}})();static \u0275cmp=z({type:t,selectors:[["","data-p-icon","check"]],features:[F],attrs:Pi,decls:1,vars:0,consts:[["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,n){i&1&&(R(),Ce(0,"path",0))},encapsulation:2})}return t})();var Ri=["data-p-icon","chevron-down"],li=(()=>{class t extends Oe{static \u0275fac=(()=>{let e;return function(n){return(e||(e=T(t)))(n||t)}})();static \u0275cmp=z({type:t,selectors:[["","data-p-icon","chevron-down"]],features:[F],attrs:Ri,decls:1,vars:0,consts:[["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(i,n){i&1&&(R(),Ce(0,"path",0))},encapsulation:2})}return t})();var Hi=["data-p-icon","search"],ai=(()=>{class t extends Oe{pathId;onInit(){this.pathId="url(#"+Ye()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=T(t)))(n||t)}})();static \u0275cmp=z({type:t,selectors:[["","data-p-icon","search"]],features:[F],attrs:Hi,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(R(),at(0,"g"),Ce(1,"path",0),rt(),at(2,"defs")(3,"clipPath",1),Ce(4,"rect",2),rt()()),i&2&&(I("clip-path",n.pathId),c(3),St("id",n.pathId))},encapsulation:2})}return t})();var ri=`
|
|
2
2
|
.p-message {
|
|
3
3
|
display: grid;
|
|
4
4
|
grid-template-rows: 1fr;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as tm,b as nm,c as rm,d as om,e as im,i as sm}from"./chunk-
|
|
1
|
+
import{a as tm,b as nm,c as rm,d as om,e as im,i as sm}from"./chunk-Y6VK27P4.js";import{o as em}from"./chunk-L56QU7EF.js";import{$a as Zd,G as Ra,H as fl,L as pl,M as Kd,P as dl,Ta as Xd,_a as Qd,a as Vd,na as Jd,v as va}from"./chunk-HAWX5WNM.js";import{a as p,b as E,d as qt,f as Yd}from"./chunk-WCABR6TI.js";var b=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var C=globalThis;var Pt="10.55.0";function pt(){return pr(C),C}function pr(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Pt,t[Pt]=t[Pt]||{}}function sn(e,t,n=C){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[Pt]=r[Pt]||{};return o[e]||(o[e]=t())}var dr=["debug","info","warn","error","log","assert","trace"],Wy="Sentry Logger ",Wr={};function Fe(e){if(!("console"in C))return e();let t=C.console,n={},r=Object.keys(Wr);r.forEach(o=>{let i=Wr[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function jy(){_l().enabled=!0}function zy(){_l().enabled=!1}function am(){return _l().enabled}function qy(...e){ml("log",...e)}function Yy(...e){ml("warn",...e)}function Vy(...e){ml("error",...e)}function ml(e,...t){b&&am()&&Fe(()=>{C.console[e](`${Wy}[${e}]:`,...t)})}function _l(){return b?sn("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var h={enable:jy,disable:zy,isEnabled:am,log:qy,warn:Yy,error:Vy};var cm=/\(error: (.*)\)/,um=/captureMessage|captureException/;function zi(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let i=[],s=n.split(`
|
|
2
2
|
`);for(let a=r;a<s.length;a++){let c=s[a];c.length>1024&&(c=c.slice(0,1024));let u=cm.test(c)?c.replace(cm,"$1"):c;if(!u.includes("Error: ")){for(let f of t){let l=f(u);if(l){i.push(l);break}}if(i.length>=50+o)break}}return gl(i.slice(o))}}function Ca(e){return Array.isArray(e)?zi(...e):e}function gl(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Na(t).function||"")&&t.pop(),t.reverse(),um.test(Na(t).function||"")&&(t.pop(),um.test(Na(t).function||"")&&t.pop()),t.slice(0,50).map(n=>E(p({},n),{filename:n.filename||Na(t).filename,function:n.function||"?"}))}function Na(e){return e[e.length-1]||{}}var hl="<anonymous>";function dt(e){try{return!e||typeof e!="function"?hl:e.name||hl}catch{return hl}}function jr(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function lm(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}var qi={},fm={};function rt(e,t){return qi[e]=qi[e]||[],qi[e].push(t),()=>{let n=qi[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}function ot(e,t){if(!fm[e]){fm[e]=!0;try{t()}catch(n){b&&h.error(`Error while instrumenting ${e}`,n)}}}function $e(e,t){let n=e&&qi[e];if(n)for(let r of n)try{r(t)}catch(o){b&&h.error(`Error while triggering instrumentation handler.
|
|
3
3
|
Type: ${e}
|
|
4
4
|
Name: ${dt(r)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as l,N as d,R as p}from"./chunk-
|
|
1
|
+
import{M as l,N as d,R as p}from"./chunk-AVGEDQNI.js";import{L as a,Q as s,ha as o,uc as r}from"./chunk-HAWX5WNM.js";import{a as c}from"./chunk-WCABR6TI.js";var S={triggerLabel:"Settings",triggerTooltip:"Settings",modalTitle:"Settings",closeLabel:"Close",sections:{plugins:"Plugins",general:"General",project:"Project",changelog:"Changelog",about:"About"},general:{heading:"General",intro:"Per-machine preferences.",loadErrorPrefix:"Could not load preferences:",saveErrorPrefix:"Could not save preferences:",toggles:{"updateCheck.enabled":{label:"Check for updates",description:"Check npm for newer @skill-map/cli releases."},telemetry:{label:"Send anonymous error & usage reports",description:"Report crashes and which features you use. No file contents or paths.",hint:"Restart sm for this to take effect."}},extraTheme:{label:"Theme",description:"Pick a specialty theme.",options:{none:{label:"None",description:"Use the topbar dark/light toggle."}}},storageHintLabel:"Settings are stored in:",storageHintPath:"~/.skill-map/settings.json"},project:{heading:"Project",introPrefix:"These settings apply only to this project and are saved in",introPath:".skill-map/settings.local.json",introSuffix:".",loadErrorPrefix:"Could not load project settings:",saveErrorPrefix:"Could not save project settings:",referencePathsLabel:"Folders for link validation",referencePathsDescription:"If your notes link to files outside this project, list those folders here. Skill-map checks them only to confirm the links work, nothing from these folders shows up in the map.",referencePathsPlaceholder:"~/Documents/research",commaForbidden:"Add one path at a time, without commas.",addPathLabel:"Add path",removePathLabel:"Remove",confirmDialogHeader:"Allow access to folders outside this project?",confirmDialogIntro:"This change lets the scan read files in:",confirmDialogAccept:"Allow access",confirmDialogReject:"Cancel",ignorePatternsLabel:"Ignored patterns",ignorePatternsDescriptionPrefix:"Patterns that exclude files and folders from the scan, stored in",ignorePatternsDescriptionFile:".skillmapignore",ignorePatternsDescriptionMiddle:"at the project root. Same syntax as",ignorePatternsDescriptionGitignore:".gitignore",ignorePatternsDescriptionSuffix:"(one pattern per line).",ignorePatternsPlaceholder:"secrets.md",ignorePatternEmpty:"Pattern cannot be empty or whitespace-only.",ignorePatternHasControlChar:"Pattern must be a single line without control characters.",ignorePatternDuplicate:"This pattern is already in the list.",addIgnorePatternLabel:"Add pattern",removeIgnorePatternLabel:"Remove",activeProviderLabel:"Active provider",activeProviderDescription:"Selects which provider sees this project. The map reflects how the chosen provider interprets your files.",activeProviderSourceAutodetect:"Auto-detected from your files (no value saved yet).",activeProviderSourceNone:"No provider detected. Install or enable a provider to start.",activeProviderDetectedPrefix:"Detected:",activeProviderEmptyOption:"(none)",activeProviderConfirmHeader:"Switch the active provider?",activeProviderConfirmIntro:"Switching will clear the persisted scan (nodes, links, issues). Jobs and history are kept. You will need to run `sm scan` after the switch.",activeProviderConfirmAccept:"Switch and clear scan",activeProviderConfirmReject:"Cancel",activeProviderSwitchedPrefix:"Lens switched. Cleared",activeProviderSwitchedSuffix:"scan table(s). Run `sm scan` to repopulate.",activeProviderSwitchedNoDb:"Lens switched. Run `sm scan` to populate the map under the new lens."},changelogHeading:"Changelog",changelogIntro:"What's new in skill-map. Each entry covers a release of @skill-map/cli (the CLI + bundled UI) and lists the user-facing changes plus the workspace(s) each one affects.",changelogEmpty:"No release notes yet. Future releases will populate this list automatically from the changesets shipped in each PR.",changelogInternalRelease:"Internal release. Focus on stability, infra, and refactors. No user-facing changes this time.",changelogAffectedPackages:"Affected packages",changelogFooterText:"Want the full changelog?",changelogFooterLinkLabel:"See it on GitHub \u2192",changelogFooterUrl:"https://github.com/crystian/skill-map/blob/main/src/CHANGELOG.md",aboutHeading:"About",aboutIntro:"Version information for the running CLI / server.",aboutCliLabel:"skill-map CLI",aboutSpecLabel:"Spec version",aboutSchemaLabel:"Schema version",aboutFolderLabel:"Project folder",aboutDbLabel:"Project DB",aboutDbValue:(e,i)=>e==="present"?i:`${e} \xB7 ${i}`,aboutLoading:"Loading\u2026",aboutUnknown:"-",aboutErrorPrefix:"Could not read health endpoint:",aboutLinksHeading:"Links",aboutWebsiteLabel:"Website",aboutGithubLabel:"GitHub",aboutWebsiteUrl:"https://skill-map.ai/",aboutGithubUrl:"https://github.com/crystian/skill-map",aboutStarHeading:"Enjoying skill-map?",aboutStarBody:"If it's useful to you, drop us a star on GitHub, it helps a lot and keeps the project alive.",aboutStarCta:"Star on GitHub",aboutStarA11y:"Open the skill-map repository on GitHub to give it a star",pluginsHeading:"Plugins",pluginsIntro:"Enable or disable installed plugins.",pluginsSearchPlaceholder:"Filter by name\u2026",pluginsSearchA11y:"Filter plugins by name",pluginsSearchEmpty:e=>`No plugins match "${e}".`,pluginsKindFilterAll:"All",pluginsKindFilterOptionA11y:(e,i)=>i?`Show only ${e} extensions`:"Show all kinds",pluginsSourceFilterOptionA11y:(e,i)=>i?`Show only ${e} plugins`:"Show all sources",pluginsFilterA11y:"Filter plugins by source and kind",pluginsFilterAllA11y:"Show every plugin (clear the source and kind filters)",pluginsProjectEmpty:"No project plugins yet. Drop one under .skill-map/plugins/ or create it with sm plugins create <id>.",unsavedChangesMessage:e=>e===1?'1 unsaved change. Click "Apply" to persist it.':`${e} unsaved changes. Click "Apply" to persist them.`,startsAsDisabledRowHint:"This plugin started disabled and is not loaded in memory. Restart `sm serve` for the change to take effect.",startsAsDisabledFooterHint:"Some plugins were disabled when the server started. Consider restarting `sm serve` so they take effect.",discardChanges:"Discard",applyAndClose:"Apply",discardA11y:"Discard pending plugin changes",applyA11y:"Apply pending plugin changes and refresh the map",confirmCloseTitle:"Apply pending changes?",confirmCloseBody:e=>e===1?"You have 1 unsaved change.":`You have ${e} unsaved changes.`,keepEditing:"Keep editing",sourceBuiltIn:"Built-in",sourceProject:"Project",enabledLabel:"Enabled",disabledLabel:"Disabled",lockedLabel:"Locked",lockedTooltip:"Locked by the host (cannot be toggled).",expandLabel:"Show extensions",collapseLabel:"Hide extensions",statusFailure:{"incompatible-spec":"Incompatible spec version","invalid-manifest":"Invalid manifest","load-error":"Failed to load","id-collision":"Plugin id collision"},loading:"Loading plugins\u2026",empty:"No plugins installed.",errorPrefix:"Could not load plugins:",toggleErrorPrefix:"Toggle failed:",a11y:{triggerLabel:"Open settings",pluginToggle:(e,i)=>i?`Enable plugin ${e}`:`Disable plugin ${e}`,extensionToggle:(e,i)=>i?`Enable ${e}`:`Disable ${e}`,pluginRow:e=>`Plugin ${e} row`,extensionRow:e=>`Extension ${e} row`}};var y="#9ca3af",k="#6b7280",A=(()=>{class e{_entries=o([]);providers=this._entries.asReadonly();index=r(()=>{let t=new Map;for(let n of this._entries())t.set(n.id,n);return t});ingest(t){if(!t)return;let n=[];for(let[b,v]of Object.entries(t))n.push(c({id:b},v));P(this._entries(),n)||this._entries.set(n)}lookup(t){return this.index().get(t)}cardChip(t){if(!t)return null;let n=this.lookup(t);return n?n.hideChip?null:u(n):g(t)}lensChip(t){if(!t)return null;let n=this.lookup(t);return n?u(n):g(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function u(e){let i={label:e.label,color:e.color};return e.colorDark!==void 0&&(i.colorDark=e.colorDark),i}function g(e){return{label:e,color:y,colorDark:k}}function P(e,i){if(e.length!==i.length)return!1;for(let t=0;t<e.length;t++)if(JSON.stringify(e[t])!==JSON.stringify(i[t]))return!1;return!0}var f={available:"Update available",copiedLabel:"Copied!",tooltip:e=>`v${e} is available. Click to copy the install command.`,copyCommand:"npm i -g @skill-map/cli@latest",copiedTooltip:"Copied! Paste it in your terminal.",npmLinkUrl:"https://www.npmjs.com/package/@skill-map/cli",npmLinkTooltip:"Open on npm",npmLinkA11y:"Open the @skill-map/cli package page on npm",a11yLabel:e=>`Update available: version ${e}, click to copy the install command`,versionLabel:e=>`v${e}`,versionTooltip:e=>`skill-map CLI v${e}`,versionA11yLabel:e=>`Running version ${e}`,fetchFailed:e=>`UpdateCheckService: fetch failed (${e})`};var R=(()=>{class e{dataSource=s(l);status=o(null);isOutdated=r(()=>this.status()?.isOutdated===!0);latest=r(()=>this.status()?.latest??null);current=r(()=>this.status()?.current??null);async load(){try{let t=await this.dataSource.getUpdateStatus();this.status.set(t)}catch(t){let n=t instanceof Error?t.message:String(t);console.warn(f.fetchFailed(n))}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var m={scanFailed:e=>`scan-trigger failed: ${e}`};var M=(()=>{class e{dataSource=s(l);loader=s(p);scanning=o(!1);scanError=o(null);async run(){if(!this.scanning()){this.scanning.set(!0),this.scanError.set(null);try{await this.dataSource.runScan(),await this.loader.load()}catch(t){let n=t instanceof d||t instanceof Error?t.message:String(t);this.scanError.set(n),console.warn(m.scanFailed(n))}finally{this.scanning.set(!1)}}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{A as a,f as b,R as c,S as d,M as e};
|