@sellable/mcp 0.1.2 → 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.
package/dist/index-dev.js CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
package/dist/skills.js CHANGED
@@ -6,8 +6,17 @@ export function resolveSkillsDir() {
6
6
  candidates.push(path.resolve(process.env.SELLABLE_SKILLS_DIR));
7
7
  }
8
8
  if (process.argv[1]) {
9
- // 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.
10
12
  candidates.push(path.resolve(path.dirname(process.argv[1]), "../skills"));
13
+ try {
14
+ const realEntryPath = fs.realpathSync(process.argv[1]);
15
+ candidates.push(path.resolve(path.dirname(realEntryPath), "../skills"));
16
+ }
17
+ catch {
18
+ // Ignore unreadable argv paths; module-relative and cwd fallbacks remain.
19
+ }
11
20
  }
12
21
  // Local repo execution and test contexts.
13
22
  candidates.push(path.resolve(process.cwd(), "mcp/sellable/skills"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/mcp",
3
- "version": "0.1.2",
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",