orquestra-mcp 1.18.0 → 1.18.1
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 +1 -1
- package/src/setup.mjs +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orquestra-mcp",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.1",
|
|
4
4
|
"description": "Servidor MCP de Orquestra -- 89 tools para leer y escribir tareas, ideas, changelog, infraestructura, contenido, QA y más desde un agente de IA",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/setup.mjs
CHANGED
|
@@ -92,15 +92,16 @@ export async function runSetup() {
|
|
|
92
92
|
if (created) {
|
|
93
93
|
defaultProjectId = body.projectId
|
|
94
94
|
console.log(`Se creó un workspace y un proyecto default para ti ("${projects[0].name}") -- puedes renombrarlos cuando quieras desde orquestra-web.`)
|
|
95
|
-
} else if (projects.length === 1) {
|
|
96
|
-
defaultProjectId = projects[0].id
|
|
97
|
-
console.log(`Usando tu proyecto "${projects[0].name}" como default.`)
|
|
98
95
|
} else {
|
|
99
96
|
console.log('\nElige el proyecto que este MCP va a usar por default:')
|
|
100
97
|
console.log(' 0. (crear un proyecto nuevo)')
|
|
101
98
|
projects.forEach((p, i) => console.log(` ${i + 1}. ${p.name}`))
|
|
102
|
-
const
|
|
103
|
-
const
|
|
99
|
+
const singleDefaultIdx = projects.length === 1 ? 1 : null
|
|
100
|
+
const answer = await prompt(
|
|
101
|
+
singleDefaultIdx ? `Número [Enter para usar "${projects[0].name}"]: ` : 'Número: '
|
|
102
|
+
)
|
|
103
|
+
const trimmed = answer.trim()
|
|
104
|
+
const idx = trimmed === '' && singleDefaultIdx !== null ? singleDefaultIdx : parseInt(trimmed, 10)
|
|
104
105
|
if (Number.isNaN(idx) || idx < 0 || idx > projects.length) throw new Error('Selección inválida')
|
|
105
106
|
|
|
106
107
|
if (idx === 0) {
|
|
@@ -117,6 +118,7 @@ export async function runSetup() {
|
|
|
117
118
|
console.log(`Proyecto "${newProject.name}" creado y configurado como default.`)
|
|
118
119
|
} else {
|
|
119
120
|
defaultProjectId = projects[idx - 1].id
|
|
121
|
+
console.log(`Usando tu proyecto "${projects[idx - 1].name}" como default.`)
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
|