openskillmd 0.3.1 → 0.3.2

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/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/openskillmd/.github/main/profile/osm-banner.png" alt="OSM — OpenSkill.md, the npm for AI skills" width="440">
3
+ </p>
4
+
1
5
  # osm — the OpenSkill CLI
2
6
 
3
7
  Search, add, score, and explore AI agent skills, blueprints, and MCP servers from
package/dist/index.js CHANGED
@@ -27,5 +27,5 @@ Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[t]?this._life
27
27
  Expecting one of '${i.join("', '")}'`);let n=`${t}Help`;return this.on(n,s=>{let r;typeof e=="function"?r=e({error:s.error,command:s.command}):r=e,r&&s.write(`${r}
28
28
  `)}),this}_outputHelpIfRequested(t){let e=this._getHelpOption();e&&t.find(n=>e.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function X(l){return l.map(t=>{if(!t.startsWith("--inspect"))return t;let e,i="127.0.0.1",n="9229",s;return(s=t.match(/^(--inspect(-brk)?)$/))!==null?e=s[1]:(s=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(e=s[1],/^\d+$/.test(s[3])?n=s[3]:i=s[3]):(s=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(e=s[1],i=s[3],n=s[4]),e&&n!=="0"?`${e}=${i}:${parseInt(n)+1}`:t})}function I(){if(m.env.NO_COLOR||m.env.FORCE_COLOR==="0"||m.env.FORCE_COLOR==="false")return!1;if(m.env.FORCE_COLOR||m.env.CLICOLOR_FORCE!==void 0)return!0}N.Command=F;N.useColor=I});var nt=g(d=>{"use strict";var{Argument:tt}=A(),{Command:q}=Z(),{CommanderError:wt,InvalidArgumentError:et}=C(),{Help:yt}=k(),{Option:it}=P();d.program=new q;d.createCommand=l=>new q(l);d.createOption=(l,t)=>new it(l,t);d.createArgument=(l,t)=>new tt(l,t);d.Command=q;d.Option=it;d.Argument=tt;d.Help=yt;d.CommanderError=wt;d.InvalidArgumentError=et;d.InvalidOptionArgumentError=et});var st=lt(nt(),1),{program:Wt,createCommand:Dt,createArgument:Ft,createOption:It,CommanderError:Nt,InvalidArgumentError:qt,InvalidOptionArgumentError:jt,Command:rt,Argument:Mt,Option:Lt,Help:Rt}=st.default;var xt=[" \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557","\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551","\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551","\u2588\u2588\u2551 \u2588\u2588\u2551\u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551\u255A\u2588\u2588\u2554\u255D\u2588\u2588\u2551","\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551 \u255A\u2550\u255D \u2588\u2588\u2551"," \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D"],Et="OpenSkill.md \u2014 the npm for AI skills";function j(){return["",...xt.map(l=>R(l)),B(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"),U.bold(` ${Et}`),""].join(`
29
29
  `)}function _(){process.stderr.write(j()+`
30
- `)}var St="0.3.1",M=class l extends rt{createCommand(t){return new l(t)}helpInformation(){return`${j()}
30
+ `)}var St="0.3.2",M=class l extends rt{createCommand(t){return new l(t)}helpInformation(){return`${j()}
31
31
  ${super.helpInformation()}`}};function ot(){let l=new M;function t(n,s,r){l.command(n).description(s).action(async(...a)=>{_(),await(await r())(...a.slice(0,-1))})}l.name("osm").description("The CLI for OpenSkill.md \u2014 search, add, score, and explore AI agent skills").version(St),t("search <query>","Search skills and blueprints by keyword",async()=>(await import("./search-JQMXVSCW.js")).searchCommand),t("info <slug>","Show details about a skill or blueprint",async()=>(await import("./info-5GSXNJ5W.js")).infoCommand),l.command("add <source>").alias("install").description("Add a skill from a source repo (owner/repo or owner/repo@skill)").option("-a, --agent <agent...>","Target coding agent(s) \u2014 may repeat. If omitted, auto-detects installed agents.").option("-g, --global","Add at user scope (~/) instead of project").option("--copy","Copy files instead of symlinking to agent directories").option("--json","Emit a single-line JSON result on stdout (machine-readable)").action(async(n,s)=>{_();let{addCommand:r}=await import("./add-77ZPOLTV.js");await r(n,s)}),t("list","Show installed skills and blueprints in this project",async()=>(await import("./list-SMKTYTII.js")).listCommand),t("score <filepath>","Score a local SKILL.md file for quality",async()=>(await import("./score-CPVOUARV.js")).scoreCommand),t("init <type>","Scaffold a new skill or blueprint (type: skill | blueprint)",async()=>(await import("./init-ZDBNGFX7.js")).initCommand),t("browse","Explore skills by category (interactive)",async()=>(await import("./browse-P7RXLMMF.js")).browseCommand),t("remove <slug>","Remove an installed skill or blueprint from the project",async()=>(await import("./remove-QKFHXT73.js")).removeCommand),l.command("router").description("Manage the OpenSkill router skill").command("install").description("Download the OpenSkill router SKILL.md into .skills/").action(async()=>{_();let{routerInstallCommand:n}=await import("./router-AVHY4U3G.js");await n()});let i=l.command("mcp").description("Explore and configure MCP servers");return i.command("setup").description("Print MCP configuration for Claude/Cursor").action(async()=>{_();let{mcpSetupCommand:n}=await import("./mcp-UHV7L4RE.js");await n()}),i.command("info <slug>").description("Show details about an MCP server").action(async n=>{_();let{mcpInfoCommand:s}=await import("./mcp-UHV7L4RE.js");await s(n)}),l.configureOutput({writeOut:n=>process.stderr.write(n),writeErr:n=>process.stderr.write(n)}),l.action(()=>{l.outputHelp()}),l}ot().parseAsync(process.argv).catch(l=>{console.error(l),process.exit(1)});
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "openskillmd",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
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"