@efraindrummer/ghostdeps 0.0.0-stage → 0.3.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,30 @@
1
+ # Changelog
2
+
3
+ Formato basado en [Keep a Changelog](https://keepachangelog.com/es-ES/1.1.0/) y [SemVer](https://semver.org/lang/es/).
4
+
5
+ ## [0.3.0] - 2026-11-25
6
+
7
+ ### Añadido
8
+ - **Asesor de Ciberseguridad con IA (`--ai`)**: Integración nativa sin dependencias pesadas con **Google Gemini**, **Anthropic Claude** y **OpenAI ChatGPT**. Detecta automáticamente claves de API (`GEMINI_API_KEY`, `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`) y genera recomendaciones concretas de migración, alternativas seguras y plan de mitigación priorizado.
9
+ - **Servidor MCP (Model Context Protocol) (`--mcp`)**: Permite a agentes de IA (Claude Desktop, Cursor, Gemini CLI, etc.) invocar a GhostDeps como una herramienta (`ghostdeps_audit`) mediante stdio (JSON-RPC 2.0).
10
+ - Flags `--ai-provider <gemini|anthropic|openai>` y `--ai-model <model>`.
11
+
12
+ ## [0.2.0] - 2026-11-24
13
+
14
+ ### Añadido
15
+ - **Dependencias transitivas** (`--transitive`, `--depth <n>`) leyendo `package-lock.json` / `npm-shrinkwrap.json` (lockfile v2/v3) y `yarn.lock` (Yarn v1). Cada transitiva muestra el camino más corto por el que llega (`↳ express › debug`).
16
+ - **Formato SARIF 2.1.0** (`--format sarif`): exportación estándar para integración directa con **GitHub Code Scanning** (`github/codeql-action/upload-sarif`), GitLab Security y visores SARIF, clasificando riesgos en reglas tipadas (`GD001`–`GD010`).
17
+ - **Archivo de configuración**: `.ghostdepsrc.json`, `.ghostdepsrc` o clave `"ghostdeps"` en `package.json` (o `--config <file>`). Permite ajustar pesos, umbrales, `ignore`, `failUnder`, `dev`, `transitive`, `depth` y `concurrency`. Validación estricta con mensajes claros y JSON Schema para autocompletado (`schema/ghostdepsrc.schema.json`).
18
+ - **Ignorar paquetes**: `--ignore a,b,"@types/*"` y `"ignore"` en la configuración (admite `*`).
19
+ - **Salida Markdown** (`--format markdown`) para comentarios de PR y `$GITHUB_STEP_SUMMARY`.
20
+ - `--format table|json|markdown|sarif` (`--json` se mantiene como atajo) y `-o, --output <file>`.
21
+ - Workflow de CI (Linux/Windows/macOS × Node 20/22/24) y análisis de las propias dependencias del proyecto.
22
+
23
+ ### Cambiado
24
+ - `computeScore` y `categorize` aceptan umbrales personalizados.
25
+ - El JSON incluye `config`, `thresholds`, `ignored`, y por paquete `depth` y `via`.
26
+
27
+ ## [0.1.0] - 2026-11-19
28
+
29
+ ### Añadido
30
+ - MVP: análisis de `dependencies`/`devDependencies`, cliente npm y GitHub, Health Score explicable, tabla con colores, `--json`, `--fail-under`, `--concurrency`, caché con TTL, manejo de rate limits y reintentos.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 GhostDeps contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.