@sellable/mcp 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/skills.js +3 -6
  2. package/package.json +1 -1
package/dist/skills.js CHANGED
@@ -1,17 +1,14 @@
1
1
  import * as fs from "fs";
2
2
  import * as path from "path";
3
- import { fileURLToPath } from "url";
4
3
  export function resolveSkillsDir() {
5
4
  const candidates = [];
6
5
  if (process.env.SELLABLE_SKILLS_DIR) {
7
6
  candidates.push(path.resolve(process.env.SELLABLE_SKILLS_DIR));
8
7
  }
9
- // Works for both source execution (src/../skills) and npm package execution
10
- // (dist/../skills), including npx bin shims.
11
- const moduleDir = path.dirname(fileURLToPath(import.meta.url));
12
- candidates.push(path.resolve(moduleDir, "../skills"));
13
8
  if (process.argv[1]) {
14
- // When running as CLI, argv[1] is typically ".../dist/index.js".
9
+ // When running as CLI, argv[1] is typically ".../dist/index.js". When
10
+ // launched by npx, it can be a node_modules/.bin shim; realpath resolves
11
+ // that shim back into the package before we look for sibling skills.
15
12
  candidates.push(path.resolve(path.dirname(process.argv[1]), "../skills"));
16
13
  try {
17
14
  const realEntryPath = fs.realpathSync(process.argv[1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "Sellable MCP server for Claude Code and Codex campaign workflows",
6
6
  "main": "dist/index.js",