refacil-sdd-ai 2.0.2 → 2.0.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "refacil-sdd-ai",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "SDD-AI: Specification-Driven Development with AI — metodologia de desarrollo con IA usando OpenSpec, Claude Code y Cursor",
5
5
  "bin": {
6
6
  "refacil-sdd-ai": "./bin/cli.js"
@@ -79,15 +79,31 @@ Ejecuta `git status` para verificar si hay cambios para subir.
79
79
 
80
80
  Ejecuta `git push -u origin [rama-actual]` para subir los cambios.
81
81
 
82
- ### Paso 6: Confirmar
82
+ ### Paso 6: Confirmar y crear PR
83
83
 
84
+ 1. Muestra el resumen del push:
84
85
  ```
85
86
  === Codigo subido ===
86
87
  Rama: [nombre-rama]
87
88
  Commit: [hash-corto] [mensaje]
88
89
  Remote: origin/[nombre-rama]
90
+ ```
91
+
92
+ 2. **Pregunta al usuario** hacia cual rama destino quiere crear el Pull Request. **No sugieras ni asumas** una rama por defecto. Simplemente pregunta:
93
+ ```
94
+ Hacia cual rama quieres crear el Pull Request?
95
+ ```
89
96
 
90
- Siguiente paso: Crear Pull Request hacia la rama destino.
97
+ 3. Una vez el usuario responda, obtén la URL del repositorio remoto con `git remote get-url origin` y determina el hosting para generar el link correcto de creación del PR:
98
+ - **GitHub** (url contiene `github.com`): `https://github.com/[owner]/[repo]/compare/[rama-destino]...[rama-actual]?expand=1`
99
+ - **Bitbucket** (url contiene `bitbucket.org`): `https://bitbucket.org/[workspace]/[repo]/pull-requests/new?source=[rama-actual]&dest=[rama-destino]`
100
+ - Si no se puede determinar el hosting, muestra ambos formatos para que el usuario elija.
101
+
102
+ Nota: para URLs SSH (`git@github.com:owner/repo.git` o `git@bitbucket.org:workspace/repo.git`), extrae owner/workspace y repo del path tras el `:`.
103
+
104
+ 4. Muestra el link al usuario:
105
+ ```
106
+ Crea tu PR aqui: [link]
91
107
  ```
92
108
 
93
109
  ## Reglas