@microtronics/studio-cli 0.14.0 → 0.15.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/CHANGELOG.md +7 -0
- package/dist/studio-cli.d.ts +12 -10
- package/out/manifest.js +7 -0
- package/out/package/apm.js +3 -6
- package/out/package/package.js +1 -5
- package/package.json +76 -76
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## 0.15.0 (2025-01-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **studio-cli:** removed `allowedBackends` and `target` from manifest.registry ([99398ae](https://bitbucket.org/microtronics-core/vscode-studio/commits/99398ae8e475946204d49045b8fff83c2f013e6d))
|
|
9
|
+
|
|
3
10
|
## 0.14.0 (2025-01-29)
|
|
4
11
|
|
|
5
12
|
|
package/dist/studio-cli.d.ts
CHANGED
|
@@ -175,15 +175,11 @@ declare interface components {
|
|
|
175
175
|
targetSystem: components["schemas"]["TargetSystem"];
|
|
176
176
|
/** @description ONE specific parameter for the organizationId */
|
|
177
177
|
organizationId?: string;
|
|
178
|
-
/**
|
|
179
|
-
|
|
180
|
-
* @default null
|
|
181
|
-
*/
|
|
182
|
-
allowedBackends: ("*" | string[]) | null;
|
|
178
|
+
/** @description Defines which servers are allowed to see this application. If null, the application wont be shared with anyone */
|
|
179
|
+
allowedBackends?: ("*" | string[]) | null;
|
|
183
180
|
};
|
|
184
181
|
ApplicationInformationBase: {
|
|
185
|
-
|
|
186
|
-
version: number;
|
|
182
|
+
version: components["parameters"]["ApplicationVersion"];
|
|
187
183
|
publisherId: components["parameters"]["PublisherId"];
|
|
188
184
|
} & components["schemas"]["NewApplication"];
|
|
189
185
|
ApplicationListInformation: {
|
|
@@ -200,8 +196,7 @@ declare interface components {
|
|
|
200
196
|
ApplicationVersion: {
|
|
201
197
|
/** @description The name of the application when this version wos released */
|
|
202
198
|
name: string;
|
|
203
|
-
|
|
204
|
-
version: number;
|
|
199
|
+
version: components["parameters"]["ApplicationVersion"];
|
|
205
200
|
/**
|
|
206
201
|
* Format: date-time
|
|
207
202
|
* @description Date when this version was published
|
|
@@ -2049,7 +2044,14 @@ export declare namespace Manifest {
|
|
|
2049
2044
|
};
|
|
2050
2045
|
registry?: {
|
|
2051
2046
|
id?: string;
|
|
2052
|
-
|
|
2047
|
+
/**
|
|
2048
|
+
* @deprecated
|
|
2049
|
+
*/
|
|
2050
|
+
allowedBackends?: Registry.ApiNewApplication['allowedBackends'];
|
|
2051
|
+
/**
|
|
2052
|
+
* @deprecated
|
|
2053
|
+
*/
|
|
2054
|
+
target?: Registry.ApiNewApplication['targetSystem'];
|
|
2053
2055
|
};
|
|
2054
2056
|
pov?: {
|
|
2055
2057
|
details?: ApmPartScripts;
|
package/out/manifest.js
CHANGED
|
@@ -90,6 +90,7 @@ var Manifest;
|
|
|
90
90
|
manifestCache.clear();
|
|
91
91
|
// patch the options if they are not valid for a specific device profile
|
|
92
92
|
patchDloCompileOptionsBasedOnDpid(manifest);
|
|
93
|
+
removeDeprecatedOptions(manifest);
|
|
93
94
|
return fs.writeFile(vscode_uri_1.Utils.joinPath(cwd, STUDIO_JSON_NAME), JSON.stringify(manifest, null, '\t'));
|
|
94
95
|
}
|
|
95
96
|
Manifest.write = write;
|
|
@@ -328,4 +329,10 @@ function patchDloCompileOptionsBasedOnDpid(manifest) {
|
|
|
328
329
|
});
|
|
329
330
|
}
|
|
330
331
|
}
|
|
332
|
+
function removeDeprecatedOptions(manifest) {
|
|
333
|
+
if (manifest.registry) {
|
|
334
|
+
delete manifest.registry.allowedBackends;
|
|
335
|
+
delete manifest.registry.target;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
331
338
|
//# sourceMappingURL=manifest.js.map
|
package/out/package/apm.js
CHANGED
|
@@ -173,12 +173,12 @@ var APM;
|
|
|
173
173
|
async function registerNew(cwd, fs, token, manifest, env) {
|
|
174
174
|
// only myDatanet -> ONE support not needed.
|
|
175
175
|
const backendTarget = 'myDatanet';
|
|
176
|
-
const { publisher, name, description
|
|
176
|
+
const { publisher, name, description } = manifest;
|
|
177
177
|
const newApplication = {
|
|
178
178
|
name: name,
|
|
179
179
|
targetSystem: backendTarget,
|
|
180
180
|
description: description || '',
|
|
181
|
-
allowedBackends:
|
|
181
|
+
allowedBackends: null
|
|
182
182
|
};
|
|
183
183
|
// create new application
|
|
184
184
|
const projectId = await registryAPI_1.Registry.createNewApplication(token, publisher, newApplication, env);
|
|
@@ -186,8 +186,7 @@ var APM;
|
|
|
186
186
|
throw new Error('Failed to initialize application');
|
|
187
187
|
}
|
|
188
188
|
manifest.registry = {
|
|
189
|
-
id: projectId
|
|
190
|
-
allowedBackends: newApplication.allowedBackends
|
|
189
|
+
id: projectId
|
|
191
190
|
};
|
|
192
191
|
// write the updated manifest to disk
|
|
193
192
|
await manifest_1.Manifest.write(cwd, fs, manifest);
|
|
@@ -206,8 +205,6 @@ var APM;
|
|
|
206
205
|
const { name, publisher, description, registry } = await manifest_1.Manifest.read(cwd, fs);
|
|
207
206
|
const applicationId = registry?.id;
|
|
208
207
|
await registryAPI_1.Registry.updateExistingApplication(token, publisher, applicationId, {
|
|
209
|
-
// @ts-ignore
|
|
210
|
-
allowedBackends: registry.allowedBackends,
|
|
211
208
|
description: description,
|
|
212
209
|
name: name,
|
|
213
210
|
targetSystem: 'myDatanet'
|
package/out/package/package.js
CHANGED
|
@@ -154,7 +154,7 @@ var Package;
|
|
|
154
154
|
*/
|
|
155
155
|
async function validatePublishSettings(cwd, fs, token) {
|
|
156
156
|
const manifest = await manifest_1.Manifest.read(cwd, fs);
|
|
157
|
-
const { name, publisher, description
|
|
157
|
+
const { name, publisher, description } = manifest;
|
|
158
158
|
const invalidName = manifest_1.Manifest.validateProjectName(name, manifest_1.Manifest.isLibraryProject(manifest));
|
|
159
159
|
if (invalidName) {
|
|
160
160
|
throw new Error(`name: ${invalidName}`);
|
|
@@ -171,10 +171,6 @@ var Package;
|
|
|
171
171
|
if (!manifest_1.Manifest.isLibraryProject(manifest)) {
|
|
172
172
|
await manifest_1.Manifest.validateApplicationIcon(cwd, fs, manifest);
|
|
173
173
|
manifest_1.Manifest.validateEngineSettings(manifest);
|
|
174
|
-
const invalidBackends = await manifest_1.Manifest.validateRegistryAllowedBackends(registry?.allowedBackends);
|
|
175
|
-
if (invalidBackends) {
|
|
176
|
-
throw new Error(`registry: ${invalidBackends}`);
|
|
177
|
-
}
|
|
178
174
|
}
|
|
179
175
|
}
|
|
180
176
|
Package.validatePublishSettings = validatePublishSettings;
|
package/package.json
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microtronics/studio-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Microtronics Studio CLI Tool",
|
|
5
|
-
"main": "./out/api.js",
|
|
6
|
-
"typings": "./dist/studio-cli.d.ts",
|
|
7
|
-
"bin": {
|
|
8
|
-
"studio-cli": "studio-cli"
|
|
9
|
-
},
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"release": "release-it --ci",
|
|
15
|
-
"compile": "npm run build:registryApiTypings && tsc",
|
|
16
|
-
"api": "api-extractor run --local --verbose",
|
|
17
|
-
"build": "npm run compile && npm run api",
|
|
18
|
-
"watch:build": "npm run compile -- --watch",
|
|
19
|
-
"test": "cross-env STUDIO_ENV=lucky mocha",
|
|
20
|
-
"test-ci": "cross-env STUDIO_ENV=lucky mocha --reporter mocha-junit-reporter",
|
|
21
|
-
"watch:test": "npm run test -- --watch",
|
|
22
|
-
"prepublishOnly": "npm run build",
|
|
23
|
-
"build:registryApiTypings": "npx openapi-typescript https://api.registry.stage.microtronics.com/v1/openapi.yaml -o ./src/typings/registry.ts"
|
|
24
|
-
},
|
|
25
|
-
"author": "Microtronics",
|
|
26
|
-
"license": "ISC",
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"ajv": "^8.17.1",
|
|
29
|
-
"ajv-formats": "^3.0.1",
|
|
30
|
-
"ajv-keywords": "^5.1.0",
|
|
31
|
-
"commander": "^12.1.0",
|
|
32
|
-
"cross-fetch": "^4.0.0",
|
|
33
|
-
"glob": "^11.0.1",
|
|
34
|
-
"iconv-lite": "^0.6.3",
|
|
35
|
-
"minimatch": "^10.0.1",
|
|
36
|
-
"ini": "^5.0.0",
|
|
37
|
-
"openapi-fetch": "^0.13.0",
|
|
38
|
-
"pako": "^2.1.0",
|
|
39
|
-
"semver": "^7.6.3",
|
|
40
|
-
"tarballjs": "github:ankitrohatgi/tarballjs",
|
|
41
|
-
"tinytar-fix": "^0.1.1",
|
|
42
|
-
"vscode-uri": "^3.0.8",
|
|
43
|
-
"yaml": "^2.6.1",
|
|
44
|
-
"image-dimensions": "^2.3.0",
|
|
45
|
-
"file-type-checker": "^1.1.2"
|
|
46
|
-
},
|
|
47
|
-
"engines": {
|
|
48
|
-
"node": ">= 22"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@microsoft/api-extractor": "^7.47.11",
|
|
52
|
-
"@types/chai": "^4.3.6",
|
|
53
|
-
"@types/chai-as-promised": "^7.1.5",
|
|
54
|
-
"@types/ini": "^4.1.1",
|
|
55
|
-
"@types/mocha": "^10.0.9",
|
|
56
|
-
"@types/node": "^22.9.1",
|
|
57
|
-
"@types/semver": "^7.5.6",
|
|
58
|
-
"@types/vscode": "^1.86.2",
|
|
59
|
-
"chai": "^4.3.8",
|
|
60
|
-
"chai-as-promised": "^7.1.2",
|
|
61
|
-
"cross-env": "^7.0.3",
|
|
62
|
-
"mocha": "^10.8.2",
|
|
63
|
-
"mocha-junit-reporter": "^2.2.1",
|
|
64
|
-
"openapi-typescript": "^7.
|
|
65
|
-
"ts-node": "^10.9.2",
|
|
66
|
-
"typescript": "^5.6.3"
|
|
67
|
-
},
|
|
68
|
-
"mocha": {
|
|
69
|
-
"require": [
|
|
70
|
-
"ts-node/register"
|
|
71
|
-
],
|
|
72
|
-
"watch-files": "src/**",
|
|
73
|
-
"spec": "./test/**/*.spec.ts",
|
|
74
|
-
"recursive": true
|
|
75
|
-
}
|
|
76
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@microtronics/studio-cli",
|
|
3
|
+
"version": "0.15.0",
|
|
4
|
+
"description": "Microtronics Studio CLI Tool",
|
|
5
|
+
"main": "./out/api.js",
|
|
6
|
+
"typings": "./dist/studio-cli.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"studio-cli": "studio-cli"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"release": "release-it --ci",
|
|
15
|
+
"compile": "npm run build:registryApiTypings && tsc",
|
|
16
|
+
"api": "api-extractor run --local --verbose",
|
|
17
|
+
"build": "npm run compile && npm run api",
|
|
18
|
+
"watch:build": "npm run compile -- --watch",
|
|
19
|
+
"test": "cross-env STUDIO_ENV=lucky mocha",
|
|
20
|
+
"test-ci": "cross-env STUDIO_ENV=lucky mocha --reporter mocha-junit-reporter",
|
|
21
|
+
"watch:test": "npm run test -- --watch",
|
|
22
|
+
"prepublishOnly": "npm run build",
|
|
23
|
+
"build:registryApiTypings": "npx openapi-typescript https://api.registry.stage.microtronics.com/v1/openapi.yaml -o ./src/typings/registry.ts"
|
|
24
|
+
},
|
|
25
|
+
"author": "Microtronics",
|
|
26
|
+
"license": "ISC",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"ajv": "^8.17.1",
|
|
29
|
+
"ajv-formats": "^3.0.1",
|
|
30
|
+
"ajv-keywords": "^5.1.0",
|
|
31
|
+
"commander": "^12.1.0",
|
|
32
|
+
"cross-fetch": "^4.0.0",
|
|
33
|
+
"glob": "^11.0.1",
|
|
34
|
+
"iconv-lite": "^0.6.3",
|
|
35
|
+
"minimatch": "^10.0.1",
|
|
36
|
+
"ini": "^5.0.0",
|
|
37
|
+
"openapi-fetch": "^0.13.0",
|
|
38
|
+
"pako": "^2.1.0",
|
|
39
|
+
"semver": "^7.6.3",
|
|
40
|
+
"tarballjs": "github:ankitrohatgi/tarballjs",
|
|
41
|
+
"tinytar-fix": "^0.1.1",
|
|
42
|
+
"vscode-uri": "^3.0.8",
|
|
43
|
+
"yaml": "^2.6.1",
|
|
44
|
+
"image-dimensions": "^2.3.0",
|
|
45
|
+
"file-type-checker": "^1.1.2"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">= 22"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@microsoft/api-extractor": "^7.47.11",
|
|
52
|
+
"@types/chai": "^4.3.6",
|
|
53
|
+
"@types/chai-as-promised": "^7.1.5",
|
|
54
|
+
"@types/ini": "^4.1.1",
|
|
55
|
+
"@types/mocha": "^10.0.9",
|
|
56
|
+
"@types/node": "^22.9.1",
|
|
57
|
+
"@types/semver": "^7.5.6",
|
|
58
|
+
"@types/vscode": "^1.86.2",
|
|
59
|
+
"chai": "^4.3.8",
|
|
60
|
+
"chai-as-promised": "^7.1.2",
|
|
61
|
+
"cross-env": "^7.0.3",
|
|
62
|
+
"mocha": "^10.8.2",
|
|
63
|
+
"mocha-junit-reporter": "^2.2.1",
|
|
64
|
+
"openapi-typescript": "^7.6.0",
|
|
65
|
+
"ts-node": "^10.9.2",
|
|
66
|
+
"typescript": "^5.6.3"
|
|
67
|
+
},
|
|
68
|
+
"mocha": {
|
|
69
|
+
"require": [
|
|
70
|
+
"ts-node/register"
|
|
71
|
+
],
|
|
72
|
+
"watch-files": "src/**",
|
|
73
|
+
"spec": "./test/**/*.spec.ts",
|
|
74
|
+
"recursive": true
|
|
75
|
+
}
|
|
76
|
+
}
|