@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/public-api.mjs
CHANGED
|
@@ -410,7 +410,7 @@ var CliBackgroundServiceRegistry_TOKEN = "cli-background-service-registry";
|
|
|
410
410
|
var CliPackageManagerService_TOKEN = "cli-package-manager-service";
|
|
411
411
|
|
|
412
412
|
// src/lib/version.ts
|
|
413
|
-
var LIBRARY_VERSION = "2.0.0-beta.
|
|
413
|
+
var LIBRARY_VERSION = "2.0.0-beta.3";
|
|
414
414
|
var API_VERSION = 2;
|
|
415
415
|
var CliAliasCommandProcessor = class {
|
|
416
416
|
constructor() {
|
|
@@ -6287,7 +6287,7 @@ var CliServerConnection = class {
|
|
|
6287
6287
|
this.closeEventSocket();
|
|
6288
6288
|
}
|
|
6289
6289
|
async fetchCommands() {
|
|
6290
|
-
const url = `${this.normalizeUrl(this._config.url)}/api/v1/
|
|
6290
|
+
const url = `${this.normalizeUrl(this._config.url)}/api/v1/qcli/commands`;
|
|
6291
6291
|
const response = await this.httpFetch(url);
|
|
6292
6292
|
if (!response.ok) {
|
|
6293
6293
|
throw new Error(
|
|
@@ -6298,7 +6298,7 @@ var CliServerConnection = class {
|
|
|
6298
6298
|
}
|
|
6299
6299
|
async fetchCapabilities() {
|
|
6300
6300
|
try {
|
|
6301
|
-
const url = `${this.normalizeUrl(this._config.url)}/api/v1/
|
|
6301
|
+
const url = `${this.normalizeUrl(this._config.url)}/api/v1/qcli/capabilities`;
|
|
6302
6302
|
const response = await this.httpFetch(url);
|
|
6303
6303
|
if (!response.ok) return null;
|
|
6304
6304
|
return response.json();
|
|
@@ -6307,7 +6307,7 @@ var CliServerConnection = class {
|
|
|
6307
6307
|
}
|
|
6308
6308
|
}
|
|
6309
6309
|
async execute(command2) {
|
|
6310
|
-
const url = `${this.normalizeUrl(this._config.url)}/api/v1/
|
|
6310
|
+
const url = `${this.normalizeUrl(this._config.url)}/api/v1/qcli/execute`;
|
|
6311
6311
|
const response = await this.httpFetch(url, {
|
|
6312
6312
|
method: "POST",
|
|
6313
6313
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6329,7 +6329,7 @@ var CliServerConnection = class {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
async ping() {
|
|
6331
6331
|
try {
|
|
6332
|
-
const url = `${this.normalizeUrl(this._config.url)}/api/v1/
|
|
6332
|
+
const url = `${this.normalizeUrl(this._config.url)}/api/v1/qcli/version`;
|
|
6333
6333
|
const response = await this.httpFetch(url);
|
|
6334
6334
|
return response.ok;
|
|
6335
6335
|
} catch {
|
|
@@ -6349,7 +6349,7 @@ var CliServerConnection = class {
|
|
|
6349
6349
|
type: "daemon",
|
|
6350
6350
|
onStart: async (ctx) => {
|
|
6351
6351
|
const baseUrl = this.normalizeUrl(this._config.url);
|
|
6352
|
-
const wsUrl = this.toWebSocketUrl(baseUrl) + "/ws/v1/
|
|
6352
|
+
const wsUrl = this.toWebSocketUrl(baseUrl) + "/ws/v1/qcli/events";
|
|
6353
6353
|
ctx.log(`Connecting to ${wsUrl}`);
|
|
6354
6354
|
this._eventSocket = new WebSocket(wsUrl);
|
|
6355
6355
|
this._eventSocket.onmessage = (event) => {
|
|
@@ -6390,7 +6390,7 @@ var CliServerConnection = class {
|
|
|
6390
6390
|
connectEventSocketDirect() {
|
|
6391
6391
|
try {
|
|
6392
6392
|
const baseUrl = this.normalizeUrl(this._config.url);
|
|
6393
|
-
const wsUrl = this.toWebSocketUrl(baseUrl) + "/ws/v1/
|
|
6393
|
+
const wsUrl = this.toWebSocketUrl(baseUrl) + "/ws/v1/qcli/events";
|
|
6394
6394
|
this._eventSocket = new WebSocket(wsUrl);
|
|
6395
6395
|
this._eventSocket.onmessage = (event) => {
|
|
6396
6396
|
try {
|
|
@@ -15344,7 +15344,7 @@ var CliSshCommandProcessor = class {
|
|
|
15344
15344
|
buildShellUrl(connection, cols, rows, cmd) {
|
|
15345
15345
|
const baseUrl = connection.config.url.endsWith("/") ? connection.config.url.slice(0, -1) : connection.config.url;
|
|
15346
15346
|
const wsBase = baseUrl.replace(/^https:/, "wss:").replace(/^http:/, "ws:");
|
|
15347
|
-
let url = `${wsBase}/ws/v1/
|
|
15347
|
+
let url = `${wsBase}/ws/v1/qcli/shell?cols=${cols}&rows=${rows}`;
|
|
15348
15348
|
if (cmd) {
|
|
15349
15349
|
url += `&cmd=${encodeURIComponent(cmd)}`;
|
|
15350
15350
|
}
|