@skill-map/cli 0.48.0 → 0.49.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.js +3 -3
- package/dist/index.js +3 -3
- package/dist/kernel/index.js +3 -3
- package/dist/ui/chunk-7EVKMO5A.js +1110 -0
- package/dist/ui/chunk-FDJ5FDGM.js +2 -0
- package/dist/ui/{chunk-NPK64R5H.js → chunk-LBYK5DLL.js} +4 -4
- package/dist/ui/chunk-MO37AU3M.js +1 -0
- package/dist/ui/{chunk-HAWX5WNM.js → chunk-NV5DRQPL.js} +2 -2
- package/dist/ui/chunk-OUNBYGMY.js +1 -0
- package/dist/ui/{chunk-IDZ7ZQXM.js → chunk-QKL5B4RS.js} +1 -1
- package/dist/ui/chunk-RDYHTZW7.js +1066 -0
- package/dist/ui/{chunk-FSJSSLYD.js → chunk-YA64YJXF.js} +1 -1
- package/dist/ui/chunk-YRBZKMG6.js +2610 -0
- package/dist/ui/{chunk-22CKFAEU.js → chunk-YV7KWLC4.js} +1 -1
- package/dist/ui/index.html +1 -1
- package/dist/ui/main-EVGVBPDA.js +4 -0
- package/package.json +1 -1
- package/dist/ui/chunk-2GTH7ZLV.js +0 -135
- package/dist/ui/chunk-5K5WASS7.js +0 -315
- package/dist/ui/chunk-AVGEDQNI.js +0 -1021
- package/dist/ui/chunk-AWNZZYAU.js +0 -1
- package/dist/ui/chunk-BKU4RCQK.js +0 -809
- package/dist/ui/chunk-K2LHWJKO.js +0 -2190
- package/dist/ui/chunk-L56QU7EF.js +0 -2
- package/dist/ui/chunk-OBYZDEVO.js +0 -1
- package/dist/ui/chunk-Q747VBQL.js +0 -107
- package/dist/ui/chunk-QNFHGPFR.js +0 -124
- package/dist/ui/chunk-VW2A6WZ3.js +0 -1
- package/dist/ui/chunk-Y6VK27P4.js +0 -1
- package/dist/ui/chunk-YQ7ZKAFY.js +0 -90
- package/dist/ui/main-KXXADOQV.js +0 -4
|
@@ -1 +0,0 @@
|
|
|
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};
|