@oml/cli 0.14.1 → 0.14.3
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/out/auth/auth.d.ts +3 -3
- package/out/auth/auth.js +232 -97
- package/out/auth/auth.js.map +1 -1
- package/out/auth/platform.d.ts +1 -1
- package/out/auth/platform.js +14 -11
- package/out/auth/platform.js.map +1 -1
- package/out/cli.js +59 -78
- package/out/cli.js.map +1 -1
- package/out/commands/server/actions.d.ts +3 -3
- package/out/commands/server/actions.js +87 -22
- package/out/commands/server/actions.js.map +1 -1
- package/out/commands/server/require.js +1 -1
- package/out/commands/server/require.js.map +1 -1
- package/out/commands/server/rest.js +103 -31
- package/out/commands/server/rest.js.map +1 -1
- package/package.json +5 -4
- package/src/auth/auth.ts +261 -115
- package/src/auth/platform.ts +14 -13
- package/src/cli.ts +62 -84
- package/src/commands/server/actions.ts +107 -26
- package/src/commands/server/require.ts +1 -1
- package/src/commands/server/rest.ts +119 -32
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// Copyright (c) 2026 Modelware. All rights reserved.
|
|
2
|
+
import * as http from 'node:http';
|
|
2
3
|
import * as fs from 'node:fs/promises';
|
|
3
4
|
import * as os from 'node:os';
|
|
4
5
|
import * as path from 'node:path';
|
|
5
6
|
import { createHash } from 'node:crypto';
|
|
7
|
+
import { URL } from 'node:url';
|
|
6
8
|
const DEFAULT_HOST = '127.0.0.1';
|
|
7
9
|
function workspaceHash(workspaceRoot) {
|
|
8
10
|
return createHash('sha256').update(path.resolve(workspaceRoot)).digest('hex');
|
|
@@ -55,63 +57,133 @@ async function readRunningState(workspaceRoot = process.cwd()) {
|
|
|
55
57
|
return undefined;
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
|
-
function createHeaders(token) {
|
|
59
|
-
const headers = new Headers();
|
|
60
|
-
headers.set('content-type', 'application/json');
|
|
61
|
-
if (token && token.trim().length > 0) {
|
|
62
|
-
headers.set('authorization', `Bearer ${token.trim()}`);
|
|
63
|
-
}
|
|
64
|
-
return headers;
|
|
65
|
-
}
|
|
66
60
|
function ensureServerBaseUrl(state) {
|
|
67
61
|
if (!state) {
|
|
68
|
-
throw new Error(
|
|
62
|
+
throw new Error("OML server is not running. Start it with 'oml start'.");
|
|
69
63
|
}
|
|
70
64
|
return `http://${DEFAULT_HOST}:${state.port}`;
|
|
71
65
|
}
|
|
72
|
-
|
|
73
|
-
const text = await response.text();
|
|
66
|
+
function parseJsonResponse(status, statusText, text) {
|
|
74
67
|
if (!text.trim()) {
|
|
75
|
-
throw new Error(`Server returned HTTP ${
|
|
68
|
+
throw new Error(`Server returned HTTP ${status} ${statusText} with empty response body.`);
|
|
76
69
|
}
|
|
77
70
|
try {
|
|
78
71
|
return JSON.parse(text);
|
|
79
72
|
}
|
|
80
73
|
catch {
|
|
81
|
-
throw new Error(`Server returned HTTP ${
|
|
74
|
+
throw new Error(`Server returned HTTP ${status} ${statusText} with invalid JSON response.`);
|
|
82
75
|
}
|
|
83
76
|
}
|
|
77
|
+
function requestJson(method, url, body) {
|
|
78
|
+
const target = new URL(url);
|
|
79
|
+
return new Promise((resolve, reject) => {
|
|
80
|
+
const req = http.request({
|
|
81
|
+
protocol: target.protocol,
|
|
82
|
+
hostname: target.hostname,
|
|
83
|
+
port: target.port,
|
|
84
|
+
path: `${target.pathname}${target.search}`,
|
|
85
|
+
method,
|
|
86
|
+
headers: {
|
|
87
|
+
'content-type': 'application/json',
|
|
88
|
+
accept: 'application/json',
|
|
89
|
+
},
|
|
90
|
+
}, (res) => {
|
|
91
|
+
let payload = '';
|
|
92
|
+
res.setEncoding('utf-8');
|
|
93
|
+
res.on('data', (chunk) => {
|
|
94
|
+
payload += chunk;
|
|
95
|
+
});
|
|
96
|
+
res.on('end', () => {
|
|
97
|
+
resolve({
|
|
98
|
+
status: res.statusCode ?? 0,
|
|
99
|
+
statusText: res.statusMessage ?? '',
|
|
100
|
+
body: payload,
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
req.once('error', reject);
|
|
105
|
+
if (body !== undefined) {
|
|
106
|
+
req.write(body, 'utf-8');
|
|
107
|
+
}
|
|
108
|
+
req.end();
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
function buildResponseLike(response) {
|
|
112
|
+
return {
|
|
113
|
+
ok: response.status >= 200 && response.status < 300,
|
|
114
|
+
status: response.status,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
84
117
|
export async function restGet(route, authToken) {
|
|
118
|
+
void authToken;
|
|
85
119
|
const baseUrl = ensureServerBaseUrl(await readRunningState());
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
120
|
+
let response;
|
|
121
|
+
try {
|
|
122
|
+
response = await requestJson('GET', `${baseUrl}${route}`);
|
|
123
|
+
}
|
|
124
|
+
catch {
|
|
125
|
+
throw new Error(`OML server is unreachable at ${baseUrl}. Start it with 'oml start' or check connectivity.`);
|
|
126
|
+
}
|
|
127
|
+
const responseLike = buildResponseLike(response);
|
|
128
|
+
const payload = parseJsonResponse(response.status, response.statusText, response.body);
|
|
129
|
+
if (!responseLike.ok) {
|
|
130
|
+
const message = normalizeServerError(payload.error);
|
|
131
|
+
throw new Error(message ?? `Server request failed: GET ${route} (${responseLike.status}).`);
|
|
94
132
|
}
|
|
95
133
|
return payload;
|
|
96
134
|
}
|
|
97
135
|
export async function restPost(route, body, authToken) {
|
|
136
|
+
void authToken;
|
|
98
137
|
const baseUrl = ensureServerBaseUrl(await readRunningState());
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
138
|
+
let response;
|
|
139
|
+
try {
|
|
140
|
+
response = await requestJson('POST', `${baseUrl}${route}`, JSON.stringify(body));
|
|
141
|
+
}
|
|
142
|
+
catch {
|
|
143
|
+
throw new Error(`OML server is unreachable at ${baseUrl}. Start it with 'oml start' or check connectivity.`);
|
|
144
|
+
}
|
|
145
|
+
const responseLike = buildResponseLike(response);
|
|
146
|
+
const payload = parseJsonResponse(response.status, response.statusText, response.body);
|
|
147
|
+
if (!responseLike.ok) {
|
|
148
|
+
const message = normalizeServerError(payload.error);
|
|
149
|
+
throw new Error(message ?? `Server request failed: POST ${route} (${responseLike.status}).`);
|
|
108
150
|
}
|
|
109
151
|
if (payload.ok === false) {
|
|
110
|
-
|
|
152
|
+
const message = normalizeServerError(payload.error);
|
|
153
|
+
throw new Error(message ?? `Server request failed: POST ${route}.`);
|
|
111
154
|
}
|
|
112
155
|
if (payload.result === undefined) {
|
|
113
156
|
throw new Error(`Server request failed: POST ${route} did not return a result.`);
|
|
114
157
|
}
|
|
115
158
|
return payload.result;
|
|
116
159
|
}
|
|
160
|
+
function normalizeServerError(error) {
|
|
161
|
+
if (typeof error === 'string' && error.trim().length > 0) {
|
|
162
|
+
return error.trim();
|
|
163
|
+
}
|
|
164
|
+
if (error && typeof error === 'object') {
|
|
165
|
+
const code = typeof error.code === 'string' ? error.code.trim().toLowerCase() : '';
|
|
166
|
+
if (code === 'auth_required') {
|
|
167
|
+
return "OML server authentication is required. Sign in and restart the server with 'oml start'.";
|
|
168
|
+
}
|
|
169
|
+
if (code === 'entitlements_pending') {
|
|
170
|
+
return 'OML entitlements are still loading. Retry in a moment.';
|
|
171
|
+
}
|
|
172
|
+
if (code === 'entitlements_unavailable') {
|
|
173
|
+
return "OML entitlements are unavailable. Sign in again with 'oml login' and restart the server.";
|
|
174
|
+
}
|
|
175
|
+
if (code === 'not_entitled') {
|
|
176
|
+
const message = typeof error.message === 'string' ? error.message.trim() : '';
|
|
177
|
+
return message.length > 0 ? message : 'This command is not enabled for your account.';
|
|
178
|
+
}
|
|
179
|
+
const message = typeof error.message === 'string' ? error.message.trim() : '';
|
|
180
|
+
if (message.length > 0) {
|
|
181
|
+
return message;
|
|
182
|
+
}
|
|
183
|
+
if (code.length > 0) {
|
|
184
|
+
return code;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return undefined;
|
|
188
|
+
}
|
|
117
189
|
//# sourceMappingURL=rest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest.js","sourceRoot":"","sources":["../../../src/commands/server/rest.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"rest.js","sourceRoot":"","sources":["../../../src/commands/server/rest.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,MAAM,YAAY,GAAG,WAAW,CAAC;AA4BjC,SAAS,aAAa,CAAC,aAAqB;IACxC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAClF,CAAC;AAED,SAAS,0BAA0B,CAAC,aAAqB;IACrD,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC,CAAC;AACtG,CAAC;AAED,SAAS,cAAc,CAAC,GAAW;IAC/B,IAAI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ACnF,IAAI,IAAI,KAAK,eAAe,EAAE,CAAC;YAC3B,OAAO,yFAAyF,CAAC;QACrG,CAAC;QACD,IAAI,IAAI,KAAK,sBAAsB,EAAE,CAAC;YAClC,OAAO,wDAAwD,CAAC;QACpE,CAAC;QACD,IAAI,IAAI,KAAK,0BAA0B,EAAE,CAAC;YACtC,OAAO,0FAA0F,CAAC;QACtG,CAAC;QACD,IAAI,IAAI,KAAK,cAAc,EAAE,CAAC;YAC1B,MAAM,OAAO,GAAG,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9E,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,+CAA+C,CAAC;QAC1F,CAAC;QACD,MAAM,OAAO,GAAG,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9E,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrB,OAAO,OAAO,CAAC;QACnB,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAClB,OAAO,IAAI,CAAC;QAChB,CAAC;IACL,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oml/cli",
|
|
3
3
|
"description": "The cli specific package",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.10.0",
|
|
@@ -21,11 +21,12 @@
|
|
|
21
21
|
"build:clean": "npm run clean && npm run build"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@oml/platform": "^0.
|
|
25
|
-
"@oml/server": "0.14.
|
|
24
|
+
"@oml/platform": "^0.7.0",
|
|
25
|
+
"@oml/server": "0.14.3",
|
|
26
26
|
"chalk": "~5.3.0",
|
|
27
|
-
"chevrotain": "
|
|
27
|
+
"chevrotain": "11.1.2",
|
|
28
28
|
"commander": "~11.1.0",
|
|
29
|
+
"keytar": "^7.9.0",
|
|
29
30
|
"langium-cli": "^4.2.0",
|
|
30
31
|
"n3": "^2.0.1"
|
|
31
32
|
},
|