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.
- package/index.js +7 -9
- 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.
|
|
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
|
|
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
|
|
962
|
-
projectData.
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
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);
|