mlgym-deploy 3.0.6 → 3.0.7

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.
Files changed (2) hide show
  1. package/index.js +5 -5
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -17,7 +17,7 @@ import crypto from 'crypto';
17
17
  const execAsync = promisify(exec);
18
18
 
19
19
  // Current version of this MCP server - INCREMENT FOR WORKFLOW FIXES
20
- const CURRENT_VERSION = '3.0.6'; // Added debug logging with colored terminal output
20
+ const CURRENT_VERSION = '3.0.7'; // Fixed Dockerfile generation path bug
21
21
  const PACKAGE_NAME = 'mlgym-deploy';
22
22
 
23
23
  // Debug logging configuration - ENABLED BY DEFAULT
@@ -1531,13 +1531,13 @@ class DeploymentWorkflow {
1531
1531
  }
1532
1532
  }
1533
1533
 
1534
- async prepareProject(projectType, framework, packageManager) {
1534
+ async prepareProject(localPath, projectType, framework, packageManager) {
1535
1535
  this.currentStep = 'preparation';
1536
1536
  this.addStep('prepare_project', 'running');
1537
1537
 
1538
1538
  try {
1539
1539
  // Check if Dockerfile exists
1540
- const analysis = this.projectAnalysis || await analyzeProject('.');
1540
+ const analysis = this.projectAnalysis || await analyzeProject(localPath);
1541
1541
 
1542
1542
  if (analysis.has_dockerfile) {
1543
1543
  this.updateLastStep('skipped', 'Dockerfile already exists');
@@ -1546,7 +1546,7 @@ class DeploymentWorkflow {
1546
1546
 
1547
1547
  // Generate Dockerfile
1548
1548
  const prepResult = await prepareProject({
1549
- local_path: '.',
1549
+ local_path: localPath,
1550
1550
  project_type: projectType || analysis.project_type,
1551
1551
  framework: framework || analysis.framework,
1552
1552
  package_manager: packageManager || 'npm'
@@ -1664,7 +1664,7 @@ async function deployProject(args) {
1664
1664
  const analysis = await workflow.analyzeProject(local_path);
1665
1665
 
1666
1666
  // Step 4: Prepare project (generate Dockerfile if needed)
1667
- await workflow.prepareProject(project_type, framework, package_manager);
1667
+ await workflow.prepareProject(local_path, project_type, framework, package_manager);
1668
1668
 
1669
1669
  // Step 5: Create GitLab project and deploy
1670
1670
  const deployResult = await workflow.createAndDeployProject({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mlgym-deploy",
3
- "version": "3.0.6",
4
- "description": "MCP server for MLGym - Added debug logging with colored terminal output",
3
+ "version": "3.0.7",
4
+ "description": "MCP server for MLGym - Fixed Dockerfile generation path bug",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "bin": {