ia-skills 0.1.1 → 0.1.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/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "ia-skills",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Busca e instala skills de ia-skills.com en Claude Code desde la terminal o como servidor MCP.",
5
+ "mcpName": "io.github.ericrodri/ia-skills",
5
6
  "homepage": "https://ia-skills.com",
6
7
  "repository": {
7
8
  "type": "git",
package/src/api.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { mkdir, writeFile, access } from 'node:fs/promises'
2
2
  import { homedir } from 'node:os'
3
3
  import { join } from 'node:path'
4
+ import { VERSION } from './version.mjs'
4
5
 
5
6
  /**
6
7
  * Cliente mínimo de la API pública de ia-skills (/api/v1) y de los SKILL.md
@@ -10,7 +11,7 @@ export const BASE_URL = (process.env.IA_SKILLS_URL || 'https://ia-skills.com').r
10
11
 
11
12
  async function request(path, { json = true } = {}) {
12
13
  const res = await fetch(BASE_URL + path, {
13
- headers: { Accept: json ? 'application/json' : 'text/markdown', 'User-Agent': 'ia-skills-cli/0.1' },
14
+ headers: { Accept: json ? 'application/json' : 'text/markdown', 'User-Agent': `ia-skills-cli/${VERSION}` },
14
15
  })
15
16
 
16
17
  if (res.status === 404) throw new Error('No encontrada. Revisa el slug de la skill.')
package/src/mcp.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { createInterface } from 'node:readline'
2
2
  import { getSkill, installSkill, searchSkills } from './api.mjs'
3
+ import { VERSION } from './version.mjs'
3
4
 
4
5
  /**
5
6
  * Servidor MCP por stdio (JSON-RPC 2.0, un mensaje por línea).
@@ -8,7 +9,7 @@ import { getSkill, installSkill, searchSkills } from './api.mjs'
8
9
  * cliente MCP: buscar skills, leer una y instalarla. Sin SDK para no arrastrar
9
10
  * dependencias en algo que es un puñado de métodos.
10
11
  */
11
- const SERVER_INFO = { name: 'ia-skills', version: '0.1.0' }
12
+ const SERVER_INFO = { name: 'ia-skills', version: VERSION }
12
13
  const DEFAULT_PROTOCOL = '2025-06-18'
13
14
 
14
15
  const TOOLS = [
@@ -0,0 +1,8 @@
1
+ import { createRequire } from 'node:module'
2
+
3
+ /**
4
+ * Versión del paquete, leída de package.json (npm siempre lo incluye en el
5
+ * tarball). Antes estaba escrita a mano en mcp.mjs y api.mjs y se quedó
6
+ * atrasada: la 0.1.1 publicada se anunciaba como 0.1.0.
7
+ */
8
+ export const VERSION = createRequire(import.meta.url)('../package.json').version