@magpiecloud/mags 1.8.15 → 1.8.16
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 +2 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -103,6 +103,7 @@ class Mags {
|
|
|
103
103
|
* @param {object} options.environment - Environment variables
|
|
104
104
|
* @param {string[]} options.fileIds - File IDs from uploadFiles()
|
|
105
105
|
* @param {number} options.diskGb - Custom disk size in GB (default 2)
|
|
106
|
+
* @param {string} options.rootfsType - VM rootfs type: standard, claude, pi
|
|
106
107
|
* @returns {Promise<{request_id: string, status: string}>}
|
|
107
108
|
*/
|
|
108
109
|
async run(script, options = {}) {
|
|
@@ -131,6 +132,7 @@ class Mags {
|
|
|
131
132
|
if (options.environment) payload.environment = options.environment;
|
|
132
133
|
if (options.fileIds && options.fileIds.length > 0) payload.file_ids = options.fileIds;
|
|
133
134
|
if (options.diskGb) payload.disk_gb = options.diskGb;
|
|
135
|
+
if (options.rootfsType) payload.rootfs_type = options.rootfsType;
|
|
134
136
|
|
|
135
137
|
return this._request('POST', '/api/v1/mags-jobs', payload);
|
|
136
138
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magpiecloud/mags",
|
|
3
|
-
"version": "1.8.
|
|
4
|
-
"description": "Mags CLI & SDK - Execute scripts on
|
|
3
|
+
"version": "1.8.16",
|
|
4
|
+
"description": "Mags CLI & SDK - Execute commands and scripts on Mags Sandboxes",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mags": "./bin/mags.js"
|