@qodalis/cli-core 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 +1 -1
- package/public-api.d.mts +5 -5
- package/public-api.d.ts +5 -5
- package/public-api.js +3 -3
- package/public-api.js.map +1 -1
- package/public-api.mjs +3 -3
- package/public-api.mjs.map +1 -1
package/package.json
CHANGED
package/public-api.d.mts
CHANGED
|
@@ -363,7 +363,7 @@ type CliServerResponse = {
|
|
|
363
363
|
outputs: CliServerOutput[];
|
|
364
364
|
};
|
|
365
365
|
/**
|
|
366
|
-
* Metadata about a remote command processor, returned by GET /api/
|
|
366
|
+
* Metadata about a remote command processor, returned by GET /api/qcli/commands
|
|
367
367
|
*/
|
|
368
368
|
type CliServerCommandDescriptor = {
|
|
369
369
|
command: string;
|
|
@@ -380,7 +380,7 @@ type CliServerCommandDescriptor = {
|
|
|
380
380
|
processors?: CliServerCommandDescriptor[];
|
|
381
381
|
};
|
|
382
382
|
/**
|
|
383
|
-
* Server capabilities returned by GET /api/
|
|
383
|
+
* Server capabilities returned by GET /api/qcli/capabilities
|
|
384
384
|
*/
|
|
385
385
|
type CliServerCapabilities = {
|
|
386
386
|
/** Whether this server supports remote shell access */
|
|
@@ -2117,10 +2117,10 @@ interface ServerVersionInfo {
|
|
|
2117
2117
|
* Negotiates the API version between a frontend CLI client and a backend server.
|
|
2118
2118
|
*
|
|
2119
2119
|
* Flow:
|
|
2120
|
-
* 1. Client calls `discover(baseUrl)` which hits `GET /api/
|
|
2120
|
+
* 1. Client calls `discover(baseUrl)` which hits `GET /api/qcli/versions`
|
|
2121
2121
|
* 2. Server returns supported versions
|
|
2122
2122
|
* 3. Client picks the highest mutually supported version
|
|
2123
|
-
* 4. All subsequent calls use `/api/v{n}/
|
|
2123
|
+
* 4. All subsequent calls use `/api/v{n}/qcli/*`
|
|
2124
2124
|
*/
|
|
2125
2125
|
declare class ServerVersionNegotiator {
|
|
2126
2126
|
private static readonly CLIENT_SUPPORTED_VERSIONS;
|
|
@@ -2256,7 +2256,7 @@ declare const DefaultThemes: DefaultThemesType;
|
|
|
2256
2256
|
|
|
2257
2257
|
declare const DefaultThemeInfos: Record<string, CliThemeInfo>;
|
|
2258
2258
|
|
|
2259
|
-
declare const LIBRARY_VERSION = "2.0.0-beta.
|
|
2259
|
+
declare const LIBRARY_VERSION = "2.0.0-beta.3";
|
|
2260
2260
|
declare const API_VERSION = 2;
|
|
2261
2261
|
|
|
2262
2262
|
/**
|
package/public-api.d.ts
CHANGED
|
@@ -363,7 +363,7 @@ type CliServerResponse = {
|
|
|
363
363
|
outputs: CliServerOutput[];
|
|
364
364
|
};
|
|
365
365
|
/**
|
|
366
|
-
* Metadata about a remote command processor, returned by GET /api/
|
|
366
|
+
* Metadata about a remote command processor, returned by GET /api/qcli/commands
|
|
367
367
|
*/
|
|
368
368
|
type CliServerCommandDescriptor = {
|
|
369
369
|
command: string;
|
|
@@ -380,7 +380,7 @@ type CliServerCommandDescriptor = {
|
|
|
380
380
|
processors?: CliServerCommandDescriptor[];
|
|
381
381
|
};
|
|
382
382
|
/**
|
|
383
|
-
* Server capabilities returned by GET /api/
|
|
383
|
+
* Server capabilities returned by GET /api/qcli/capabilities
|
|
384
384
|
*/
|
|
385
385
|
type CliServerCapabilities = {
|
|
386
386
|
/** Whether this server supports remote shell access */
|
|
@@ -2117,10 +2117,10 @@ interface ServerVersionInfo {
|
|
|
2117
2117
|
* Negotiates the API version between a frontend CLI client and a backend server.
|
|
2118
2118
|
*
|
|
2119
2119
|
* Flow:
|
|
2120
|
-
* 1. Client calls `discover(baseUrl)` which hits `GET /api/
|
|
2120
|
+
* 1. Client calls `discover(baseUrl)` which hits `GET /api/qcli/versions`
|
|
2121
2121
|
* 2. Server returns supported versions
|
|
2122
2122
|
* 3. Client picks the highest mutually supported version
|
|
2123
|
-
* 4. All subsequent calls use `/api/v{n}/
|
|
2123
|
+
* 4. All subsequent calls use `/api/v{n}/qcli/*`
|
|
2124
2124
|
*/
|
|
2125
2125
|
declare class ServerVersionNegotiator {
|
|
2126
2126
|
private static readonly CLIENT_SUPPORTED_VERSIONS;
|
|
@@ -2256,7 +2256,7 @@ declare const DefaultThemes: DefaultThemesType;
|
|
|
2256
2256
|
|
|
2257
2257
|
declare const DefaultThemeInfos: Record<string, CliThemeInfo>;
|
|
2258
2258
|
|
|
2259
|
-
declare const LIBRARY_VERSION = "2.0.0-beta.
|
|
2259
|
+
declare const LIBRARY_VERSION = "2.0.0-beta.3";
|
|
2260
2260
|
declare const API_VERSION = 2;
|
|
2261
2261
|
|
|
2262
2262
|
/**
|
package/public-api.js
CHANGED
|
@@ -2319,14 +2319,14 @@ var ServerVersionNegotiator = class {
|
|
|
2319
2319
|
*/
|
|
2320
2320
|
static async discover(baseUrl) {
|
|
2321
2321
|
try {
|
|
2322
|
-
const response = await fetch(`${baseUrl}/api/
|
|
2322
|
+
const response = await fetch(`${baseUrl}/api/qcli/versions`);
|
|
2323
2323
|
if (!response.ok) return null;
|
|
2324
2324
|
const info = await response.json();
|
|
2325
2325
|
const version = this.negotiate(info);
|
|
2326
2326
|
if (version === null) return null;
|
|
2327
2327
|
return {
|
|
2328
2328
|
apiVersion: version,
|
|
2329
|
-
basePath: `${baseUrl}/api/v${version}/
|
|
2329
|
+
basePath: `${baseUrl}/api/v${version}/qcli`
|
|
2330
2330
|
};
|
|
2331
2331
|
} catch {
|
|
2332
2332
|
return null;
|
|
@@ -2460,7 +2460,7 @@ var utils = {
|
|
|
2460
2460
|
};
|
|
2461
2461
|
|
|
2462
2462
|
// src/lib/version.ts
|
|
2463
|
-
var LIBRARY_VERSION = "2.0.0-beta.
|
|
2463
|
+
var LIBRARY_VERSION = "2.0.0-beta.3";
|
|
2464
2464
|
var API_VERSION = 2;
|
|
2465
2465
|
|
|
2466
2466
|
// src/lib/modules/cli-module-registry.ts
|