@qodalis/cli 2.0.0-beta.2 → 2.0.0-beta.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/package.json +2 -2
- package/public-api.d.mts +1 -1
- package/public-api.d.ts +1 -1
- package/public-api.js +8 -8
- package/public-api.js.map +1 -1
- package/public-api.mjs +8 -8
- package/public-api.mjs.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qodalis/cli",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.3",
|
|
4
4
|
"description": "Framework-agnostic CLI engine for @qodalis terminal applications.",
|
|
5
5
|
"author": "Nicolae Lupei, Qodalis Solutions",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@qodalis/cli-core": "2.0.0-beta.
|
|
32
|
+
"@qodalis/cli-core": "2.0.0-beta.3",
|
|
33
33
|
"@xterm/xterm": "^5.5.0",
|
|
34
34
|
"@xterm/addon-fit": "^0.10.0",
|
|
35
35
|
"@xterm/addon-web-links": "^0.11.0",
|
package/public-api.d.mts
CHANGED
|
@@ -140,7 +140,7 @@ declare const CliBackgroundServiceRegistry_TOKEN = "cli-background-service-regis
|
|
|
140
140
|
*/
|
|
141
141
|
declare const CliPackageManagerService_TOKEN = "cli-package-manager-service";
|
|
142
142
|
|
|
143
|
-
declare const LIBRARY_VERSION = "2.0.0-beta.
|
|
143
|
+
declare const LIBRARY_VERSION = "2.0.0-beta.3";
|
|
144
144
|
declare const API_VERSION = 2;
|
|
145
145
|
|
|
146
146
|
declare class CliAliasCommandProcessor implements ICliCommandProcessor {
|
package/public-api.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ declare const CliBackgroundServiceRegistry_TOKEN = "cli-background-service-regis
|
|
|
140
140
|
*/
|
|
141
141
|
declare const CliPackageManagerService_TOKEN = "cli-package-manager-service";
|
|
142
142
|
|
|
143
|
-
declare const LIBRARY_VERSION = "2.0.0-beta.
|
|
143
|
+
declare const LIBRARY_VERSION = "2.0.0-beta.3";
|
|
144
144
|
declare const API_VERSION = 2;
|
|
145
145
|
|
|
146
146
|
declare class CliAliasCommandProcessor implements ICliCommandProcessor {
|
package/public-api.js
CHANGED
|
@@ -411,7 +411,7 @@ var CliBackgroundServiceRegistry_TOKEN = "cli-background-service-registry";
|
|
|
411
411
|
var CliPackageManagerService_TOKEN = "cli-package-manager-service";
|
|
412
412
|
|
|
413
413
|
// src/lib/version.ts
|
|
414
|
-
var LIBRARY_VERSION = "2.0.0-beta.
|
|
414
|
+
var LIBRARY_VERSION = "2.0.0-beta.3";
|
|
415
415
|
var API_VERSION = 2;
|
|
416
416
|
var CliAliasCommandProcessor = class {
|
|
417
417
|
constructor() {
|
|
@@ -6288,7 +6288,7 @@ var CliServerConnection = class {
|
|
|
6288
6288
|
this.closeEventSocket();
|
|
6289
6289
|
}
|
|
6290
6290
|
async fetchCommands() {
|
|
6291
|
-
const url = `${this.normalizeUrl(this._config.url)}/api/v1/
|
|
6291
|
+
const url = `${this.normalizeUrl(this._config.url)}/api/v1/qcli/commands`;
|
|
6292
6292
|
const response = await this.httpFetch(url);
|
|
6293
6293
|
if (!response.ok) {
|
|
6294
6294
|
throw new Error(
|
|
@@ -6299,7 +6299,7 @@ var CliServerConnection = class {
|
|
|
6299
6299
|
}
|
|
6300
6300
|
async fetchCapabilities() {
|
|
6301
6301
|
try {
|
|
6302
|
-
const url = `${this.normalizeUrl(this._config.url)}/api/v1/
|
|
6302
|
+
const url = `${this.normalizeUrl(this._config.url)}/api/v1/qcli/capabilities`;
|
|
6303
6303
|
const response = await this.httpFetch(url);
|
|
6304
6304
|
if (!response.ok) return null;
|
|
6305
6305
|
return response.json();
|
|
@@ -6308,7 +6308,7 @@ var CliServerConnection = class {
|
|
|
6308
6308
|
}
|
|
6309
6309
|
}
|
|
6310
6310
|
async execute(command2) {
|
|
6311
|
-
const url = `${this.normalizeUrl(this._config.url)}/api/v1/
|
|
6311
|
+
const url = `${this.normalizeUrl(this._config.url)}/api/v1/qcli/execute`;
|
|
6312
6312
|
const response = await this.httpFetch(url, {
|
|
6313
6313
|
method: "POST",
|
|
6314
6314
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6330,7 +6330,7 @@ var CliServerConnection = class {
|
|
|
6330
6330
|
}
|
|
6331
6331
|
async ping() {
|
|
6332
6332
|
try {
|
|
6333
|
-
const url = `${this.normalizeUrl(this._config.url)}/api/v1/
|
|
6333
|
+
const url = `${this.normalizeUrl(this._config.url)}/api/v1/qcli/version`;
|
|
6334
6334
|
const response = await this.httpFetch(url);
|
|
6335
6335
|
return response.ok;
|
|
6336
6336
|
} catch {
|
|
@@ -6350,7 +6350,7 @@ var CliServerConnection = class {
|
|
|
6350
6350
|
type: "daemon",
|
|
6351
6351
|
onStart: async (ctx) => {
|
|
6352
6352
|
const baseUrl = this.normalizeUrl(this._config.url);
|
|
6353
|
-
const wsUrl = this.toWebSocketUrl(baseUrl) + "/ws/v1/
|
|
6353
|
+
const wsUrl = this.toWebSocketUrl(baseUrl) + "/ws/v1/qcli/events";
|
|
6354
6354
|
ctx.log(`Connecting to ${wsUrl}`);
|
|
6355
6355
|
this._eventSocket = new WebSocket(wsUrl);
|
|
6356
6356
|
this._eventSocket.onmessage = (event) => {
|
|
@@ -6391,7 +6391,7 @@ var CliServerConnection = class {
|
|
|
6391
6391
|
connectEventSocketDirect() {
|
|
6392
6392
|
try {
|
|
6393
6393
|
const baseUrl = this.normalizeUrl(this._config.url);
|
|
6394
|
-
const wsUrl = this.toWebSocketUrl(baseUrl) + "/ws/v1/
|
|
6394
|
+
const wsUrl = this.toWebSocketUrl(baseUrl) + "/ws/v1/qcli/events";
|
|
6395
6395
|
this._eventSocket = new WebSocket(wsUrl);
|
|
6396
6396
|
this._eventSocket.onmessage = (event) => {
|
|
6397
6397
|
try {
|
|
@@ -15345,7 +15345,7 @@ var CliSshCommandProcessor = class {
|
|
|
15345
15345
|
buildShellUrl(connection, cols, rows, cmd) {
|
|
15346
15346
|
const baseUrl = connection.config.url.endsWith("/") ? connection.config.url.slice(0, -1) : connection.config.url;
|
|
15347
15347
|
const wsBase = baseUrl.replace(/^https:/, "wss:").replace(/^http:/, "ws:");
|
|
15348
|
-
let url = `${wsBase}/ws/v1/
|
|
15348
|
+
let url = `${wsBase}/ws/v1/qcli/shell?cols=${cols}&rows=${rows}`;
|
|
15349
15349
|
if (cmd) {
|
|
15350
15350
|
url += `&cmd=${encodeURIComponent(cmd)}`;
|
|
15351
15351
|
}
|