rook-cli 1.3.11 → 1.3.12

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": "rook-cli",
3
- "version": "1.3.11",
3
+ "version": "1.3.12",
4
4
  "description": "CLI para instalar componentes Shopify",
5
5
  "repository": {
6
6
  "type": "git",
package/src/mcp/server.js CHANGED
@@ -45,6 +45,7 @@ import { FileMapper } from '../filesystem/FileMapper.js';
45
45
  import { ConflictResolver } from '../filesystem/ConflictResolver.js';
46
46
  import { FrameworkInstaller } from '../services/FrameworkInstaller.js';
47
47
  import { generateNames } from '../utils/stringUtils.js';
48
+ import { REMOTE_PATHS } from '../config/constants.js';
48
49
 
49
50
  import path from 'path';
50
51
  import os from 'os';
@@ -206,7 +207,7 @@ async function handleInstallComponent(args) {
206
207
 
207
208
  // Instala cada componente do manifesto
208
209
  for (const nomeComponente of kit.componentes) {
209
- const copiados = await baixarEDistribuir(`components/${nomeComponente}`, diretorioAtual);
210
+ const copiados = await baixarEDistribuir(`${REMOTE_PATHS.COMPONENTS}/${nomeComponente}`, diretorioAtual);
210
211
  totalArquivos += copiados;
211
212
  totalComponentes++;
212
213
  }
@@ -229,7 +230,7 @@ async function handleInstallComponent(args) {
229
230
 
230
231
  } else {
231
232
  // --- Instalação de Componente Individual ---
232
- const caminhoRemoto = `components/${name}`;
233
+ const caminhoRemoto = `${REMOTE_PATHS.COMPONENTS}/${name}`;
233
234
  const copiados = await baixarEDistribuir(caminhoRemoto, diretorioAtual);
234
235
 
235
236
  return {
@@ -59,7 +59,7 @@ export class Logger {
59
59
  console.log(bold(white(' ██║ ██║╚██████╔╝╚██████╔╝██║ ██╗')));
60
60
  console.log(bold(white(' ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝')));
61
61
  console.log('');
62
- console.log(dim(' v1.3.11 — Shopify Component Tool'));
62
+ console.log(dim(' v1.3.12 — Shopify Component Tool'));
63
63
  console.log('');
64
64
  }
65
65