mlgym-deploy 2.8.0 → 2.9.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.
Files changed (2) hide show
  1. package/index.js +7 -9
  2. package/package.json +1 -1
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 = '2.8.0'; // Fixed to match CLI workflow: nested API payload, git push, deployment monitoring
20
+ const CURRENT_VERSION = '2.9.0'; // Fixed to match CLI workflow: flat API payload structure, git push, deployment monitoring
21
21
  const PACKAGE_NAME = 'mlgym-deploy';
22
22
 
23
23
  // Version check state
@@ -945,7 +945,7 @@ async function initProject(args) {
945
945
 
946
946
  console.error(`Creating project: ${name}`);
947
947
 
948
- // Create project via backend API with CORRECT nested structure (matching CLI)
948
+ // Create project via backend API with FLAT structure (matching CLI)
949
949
  const projectData = {
950
950
  name: name,
951
951
  description: description
@@ -958,13 +958,11 @@ async function initProject(args) {
958
958
  byte => byte.toString(16).padStart(2, '0')
959
959
  ).join('');
960
960
 
961
- // Use nested deployment_info structure like CLI does
962
- projectData.deployment_info = {
963
- type: 'dockerfile',
964
- enabled: true,
965
- webhook_secret: webhookSecret,
966
- hostname: hostname
967
- };
961
+ // Use FLAT structure exactly like CLI does - no nested deployment_info
962
+ projectData.enable_deployment = true;
963
+ projectData.webhook_secret = webhookSecret;
964
+ projectData.hostname = hostname;
965
+ projectData.local_path = local_path;
968
966
  }
969
967
 
970
968
  const result = await apiRequest('POST', '/api/v1/projects', projectData, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mlgym-deploy",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "description": "MCP server for GitLab Backend - User creation and project deployment",
5
5
  "main": "index.js",
6
6
  "type": "module",