openskillmd 0.3.1 → 0.3.3

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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "openskillmd",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "The OpenSkill CLI (osm) — search, add, score, and explore AI agent skills from your terminal",
5
5
  "type": "module",
6
6
  "bin": {
7
- "openskillmd": "./dist/index.js",
8
- "openskill": "./dist/index.js",
9
- "osm": "./dist/index.js"
7
+ "openskillmd": "dist/index.js",
8
+ "openskill": "dist/index.js",
9
+ "osm": "dist/index.js"
10
10
  },
11
11
  "files": [
12
12
  "dist"
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
3
- import{f as c,g as e,h as o,i,l as u}from"./chunk-OVTYCRA4.js";function a(r){return r?.verificationStatus==="verified"?e(" \u2713 verified"):""}function d(r,n){let t=r/n;return t>=.8?e(String(r)):t>=.6?o(String(r)):i(String(r))}function l(r,n){let t=Math.round(r/n*20),f=20-t,s=r/n;return(s>=.8?e:s>=.6?o:i)("\u2588".repeat(t))+u("\u2591".repeat(f))}function m(r){return r?r>=1e3?`${(r/1e3).toFixed(1)}k`:String(r):"0"}function x(r){return c.bold(`
4
- ${r}
5
- ${"\u2500".repeat(r.length)}
6
- `)}function b(r,n){let t=i(` \u2716 ${r}`);return n&&(t+=u(`
7
- \u2192 ${n}`)),t}function S(r){return e(` \u2714 ${r}`)}function v(r){process.stdout.write(JSON.stringify(r)+`
8
- `)}export{a,d as b,l as c,m as d,x as e,b as f,S as g,v as h};
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
3
- var k=Object.create;var O=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty;var se=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var le=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ie=(r,e)=>{for(var t in e)O(r,t,{get:e[t],enumerable:!0})},D=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of P(e))!Y.call(r,n)&&n!==t&&O(r,n,{get:()=>e[n],enumerable:!(o=L(e,n))||o.enumerable});return r};var ce=(r,e,t)=>(t=r!=null?k(G(r)):{},D(e||!r||!r.__esModule?O(t,"default",{value:r,enumerable:!0}):t,r));var v=(r=0)=>e=>`\x1B[${e+r}m`,E=(r=0)=>e=>`\x1B[${38+r};5;${e}m`,N=(r=0)=>(e,t,o)=>`\x1B[${38+r};2;${e};${t};${o}m`,l={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},ue=Object.keys(l.modifier),$=Object.keys(l.color),U=Object.keys(l.bgColor),fe=[...$,...U];function V(){let r=new Map;for(let[e,t]of Object.entries(l)){for(let[o,n]of Object.entries(t))l[o]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},t[o]=l[o],r.set(n[0],n[1]);Object.defineProperty(l,e,{value:t,enumerable:!1})}return Object.defineProperty(l,"codes",{value:r,enumerable:!1}),l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",l.color.ansi=v(),l.color.ansi256=E(),l.color.ansi16m=N(),l.bgColor.ansi=v(10),l.bgColor.ansi256=E(10),l.bgColor.ansi16m=N(10),Object.defineProperties(l,{rgbToAnsi256:{value(e,t,o){return e===t&&t===o?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(o/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[o]=t;o.length===3&&(o=[...o].map(c=>c+c).join(""));let n=Number.parseInt(o,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:e=>l.rgbToAnsi256(...l.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,o,n;if(e>=232)t=((e-232)*10+8)/255,o=t,n=t;else{e-=16;let A=e%36;t=Math.floor(e/36)/5,o=Math.floor(A/6)/5,n=A%6/5}let c=Math.max(t,o,n)*2;if(c===0)return 30;let a=30+(Math.round(n)<<2|Math.round(o)<<1|Math.round(t));return c===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,o)=>l.ansi256ToAnsi(l.rgbToAnsi256(e,t,o)),enumerable:!1},hexToAnsi:{value:e=>l.ansi256ToAnsi(l.hexToAnsi256(e)),enumerable:!1}}),l}var K=V(),f=K;import T from"process";import W from"os";import B from"tty";function u(r,e=globalThis.Deno?globalThis.Deno.args:T.argv){let t=r.startsWith("-")?"":r.length===1?"-":"--",o=e.indexOf(t+r),n=e.indexOf("--");return o!==-1&&(n===-1||o<n)}var{env:i}=T,g;u("no-color")||u("no-colors")||u("color=false")||u("color=never")?g=0:(u("color")||u("colors")||u("color=true")||u("color=always"))&&(g=1);function z(){if("FORCE_COLOR"in i)return i.FORCE_COLOR==="true"?1:i.FORCE_COLOR==="false"?0:i.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(i.FORCE_COLOR,10),3)}function H(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function q(r,{streamIsTTY:e,sniffFlags:t=!0}={}){let o=z();o!==void 0&&(g=o);let n=t?g:o;if(n===0)return 0;if(t){if(u("color=16m")||u("color=full")||u("color=truecolor"))return 3;if(u("color=256"))return 2}if("TF_BUILD"in i&&"AGENT_NAME"in i)return 1;if(r&&!e&&n===void 0)return 0;let c=n||0;if(i.TERM==="dumb")return c;if(T.platform==="win32"){let a=W.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in i)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in i)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in i)||i.CI_NAME==="codeship"?1:c;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor"||i.TERM==="xterm-kitty"||i.TERM==="xterm-ghostty"||i.TERM==="wezterm")return 3;if("TERM_PROGRAM"in i){let a=Number.parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:c}function M(r,e={}){let t=q(r,{streamIsTTY:r&&r.isTTY,...e});return H(t)}var J={stdout:M({isTTY:B.isatty(1)}),stderr:M({isTTY:B.isatty(2)})},I=J;function S(r,e,t){let o=r.indexOf(e);if(o===-1)return r;let n=e.length,c=0,a="";do a+=r.slice(c,o)+e+t,c=o+n,o=r.indexOf(e,c);while(o!==-1);return a+=r.slice(c),a}function F(r,e,t,o){let n=0,c="";do{let a=r[o-1]==="\r";c+=r.slice(n,a?o-1:o)+e+(a?`\r
4
- `:`
5
- `)+t,n=o+1,o=r.indexOf(`
6
- `,n)}while(o!==-1);return c+=r.slice(n),c}var{stdout:_,stderr:w}=I,C=Symbol("GENERATOR"),b=Symbol("STYLER"),d=Symbol("IS_EMPTY"),j=["ansi","ansi","ansi256","ansi16m"],p=Object.create(null),Q=(r,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let t=_?_.level:0;r.level=e.level===void 0?t:e.level};var X=r=>{let e=(...t)=>t.join(" ");return Q(e,r),Object.setPrototypeOf(e,m.prototype),e};function m(r){return X(r)}Object.setPrototypeOf(m.prototype,Function.prototype);for(let[r,e]of Object.entries(f))p[r]={get(){let t=x(this,y(e.open,e.close,this[b]),this[d]);return Object.defineProperty(this,r,{value:t}),t}};p.visible={get(){let r=x(this,this[b],!0);return Object.defineProperty(this,"visible",{value:r}),r}};var R=(r,e,t,...o)=>r==="rgb"?e==="ansi16m"?f[t].ansi16m(...o):e==="ansi256"?f[t].ansi256(f.rgbToAnsi256(...o)):f[t].ansi(f.rgbToAnsi(...o)):r==="hex"?R("rgb",e,t,...f.hexToRgb(...o)):f[t][r](...o),Z=["rgb","hex","ansi256"];for(let r of Z){p[r]={get(){let{level:t}=this;return function(...o){let n=y(R(r,j[t],"color",...o),f.color.close,this[b]);return x(this,n,this[d])}}};let e="bg"+r[0].toUpperCase()+r.slice(1);p[e]={get(){let{level:t}=this;return function(...o){let n=y(R(r,j[t],"bgColor",...o),f.bgColor.close,this[b]);return x(this,n,this[d])}}}}var ee=Object.defineProperties(()=>{},{...p,level:{enumerable:!0,get(){return this[C].level},set(r){this[C].level=r}}}),y=(r,e,t)=>{let o,n;return t===void 0?(o=r,n=e):(o=t.openAll+r,n=e+t.closeAll),{open:r,close:e,openAll:o,closeAll:n,parent:t}},x=(r,e,t)=>{let o=(...n)=>re(o,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(o,ee),o[C]=r,o[b]=e,o[d]=t,o},re=(r,e)=>{if(r.level<=0||!e)return r[d]?"":e;let t=r[b];if(t===void 0)return e;let{openAll:o,closeAll:n}=t;if(e.includes("\x1B"))for(;t!==void 0;)e=S(e,t.close,t.open),t=t.parent;let c=e.indexOf(`
7
- `);return c!==-1&&(e=F(e,n,o,c)),o+e+n};Object.defineProperties(m.prototype,p);var te=m(),Ce=m({level:w?w.level:0});var s=te;var h={rosewater:s.hex("#f5e0dc"),flamingo:s.hex("#f2cdcd"),pink:s.hex("#f5c2e7"),mauve:s.hex("#cba6f7"),red:s.hex("#f38ba8"),maroon:s.hex("#eba0ac"),peach:s.hex("#fab387"),yellow:s.hex("#f9e2af"),green:s.hex("#a6e3a1"),teal:s.hex("#94e2d5"),sky:s.hex("#89dceb"),sapphire:s.hex("#74c7ec"),blue:s.hex("#89b4fa"),lavender:s.hex("#b4befe"),text:s.hex("#cdd6f4"),subtext1:s.hex("#bac2de"),subtext0:s.hex("#a6adc8"),overlay2:s.hex("#9399b2"),overlay1:s.hex("#7f849c"),overlay0:s.hex("#6c7086"),surface2:s.hex("#585b70"),surface1:s.hex("#45475a"),surface0:s.hex("#313244"),base:s.hex("#1e1e2e"),mantle:s.hex("#181825"),crust:s.hex("#11111b")},oe=h.mauve,Ae=h.green,ve=h.yellow,Ee=h.red,Ne=h.teal,Be=h.text,Me=h.overlay1,Ie=h.overlay0,Se=h.surface2,ne=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],Fe={interval:80,frames:ne.map(r=>oe(r))};export{se as a,le as b,ie as c,ce as d,s as e,oe as f,Ae as g,ve as h,Ee as i,Ne as j,Be as k,Me as l,Se as m,Fe as n};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
3
- import{a}from"./chunk-IZJHFL7T.js";import{b as m}from"./chunk-5CDG6OB7.js";import"./chunk-YAZPI4SK.js";import{f as c,g as d}from"./chunk-ONVELHE6.js";import{f as t,k as l,l as o,n as i}from"./chunk-OVTYCRA4.js";import u from"fs";import p from"path";async function I(){let s=a({text:"Downloading OpenSkill router...",spinner:i,color:!1}).start();try{let r=await m(),e=await fetch(`${r}/skills/router/SKILL.md`);if(!e.ok)throw new Error(`Failed to download router SKILL.md (HTTP ${e.status})`);let f=await e.text(),n=p.join(process.cwd(),".skills");u.mkdirSync(n,{recursive:!0});let h=p.join(n,"openskill-router.md");u.writeFileSync(h,f,"utf-8"),s.stop(),console.error(d("Installed OpenSkill router to .skills/openskill-router.md")),console.error(""),console.error(t.bold(" What is the router?")),console.error(o(" The router skill teaches your AI agent how to discover and install")),console.error(o(" skills on-demand from the OpenSkill registry.")),console.error(""),console.error(t.bold(" How to use:")),console.error(l(' Point your agent at the file: "Read .skills/openskill-router.md"')),console.error(o(" The agent will then automatically search for relevant skills as needed.")),console.error("")}catch(r){s.fail("Failed to install router"),console.error(c(r instanceof Error?r.message:"Unknown error"))}}export{I as routerInstallCommand};