@lace-cloud/host 0.19.0 → 0.20.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/dist/index.cjs +11 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.mjs +11 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -46,7 +46,7 @@ type EngineInitialize = {
|
|
|
46
46
|
commandPaths: readonly string[];
|
|
47
47
|
};
|
|
48
48
|
type EngineCredential = {
|
|
49
|
-
apiKey: string;
|
|
49
|
+
apiKey: string | undefined;
|
|
50
50
|
apiBaseUrl: string;
|
|
51
51
|
};
|
|
52
52
|
type ServerState = 'stopped' | 'starting' | 'running' | 'error';
|
|
@@ -670,8 +670,12 @@ interface ShutdownResponse {
|
|
|
670
670
|
}
|
|
671
671
|
declare const ShutdownResponse: MessageFns<ShutdownResponse>;
|
|
672
672
|
interface ReadCredentialResponse {
|
|
673
|
-
/**
|
|
674
|
-
|
|
673
|
+
/**
|
|
674
|
+
* Present exactly when the developer is signed in. A present key is never
|
|
675
|
+
* empty, so the bytes are those of a plain string field: field 1 is
|
|
676
|
+
* omitted while signed out and carries the key otherwise.
|
|
677
|
+
*/
|
|
678
|
+
api_key?: string | undefined;
|
|
675
679
|
/** the API the engine's own commands call */
|
|
676
680
|
api_base_url: string;
|
|
677
681
|
}
|
|
@@ -1377,7 +1381,7 @@ declare const LaceEngineService: {
|
|
|
1377
1381
|
/**
|
|
1378
1382
|
* Answers the credential this engine holds: the API key `lace login`
|
|
1379
1383
|
* saved or `LACE_TOKEN` supplies, read fresh on every call so a `lace
|
|
1380
|
-
* login` or `lace logout` takes effect at once (
|
|
1384
|
+
* login` or `lace logout` takes effect at once (absent when signed out),
|
|
1381
1385
|
* beside the base URL of the API that key is for, the one the engine's
|
|
1382
1386
|
* own commands call (the CLI's `config.ResolveBaseURL`). The host
|
|
1383
1387
|
* that spawned the engine builds its own authenticated transport to
|
|
@@ -1568,7 +1572,7 @@ interface LaceEngineClient extends Client {
|
|
|
1568
1572
|
/**
|
|
1569
1573
|
* Answers the credential this engine holds: the API key `lace login`
|
|
1570
1574
|
* saved or `LACE_TOKEN` supplies, read fresh on every call so a `lace
|
|
1571
|
-
* login` or `lace logout` takes effect at once (
|
|
1575
|
+
* login` or `lace logout` takes effect at once (absent when signed out),
|
|
1572
1576
|
* beside the base URL of the API that key is for, the one the engine's
|
|
1573
1577
|
* own commands call (the CLI's `config.ResolveBaseURL`). The host
|
|
1574
1578
|
* that spawned the engine builds its own authenticated transport to
|
package/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ type EngineInitialize = {
|
|
|
46
46
|
commandPaths: readonly string[];
|
|
47
47
|
};
|
|
48
48
|
type EngineCredential = {
|
|
49
|
-
apiKey: string;
|
|
49
|
+
apiKey: string | undefined;
|
|
50
50
|
apiBaseUrl: string;
|
|
51
51
|
};
|
|
52
52
|
type ServerState = 'stopped' | 'starting' | 'running' | 'error';
|
|
@@ -670,8 +670,12 @@ interface ShutdownResponse {
|
|
|
670
670
|
}
|
|
671
671
|
declare const ShutdownResponse: MessageFns<ShutdownResponse>;
|
|
672
672
|
interface ReadCredentialResponse {
|
|
673
|
-
/**
|
|
674
|
-
|
|
673
|
+
/**
|
|
674
|
+
* Present exactly when the developer is signed in. A present key is never
|
|
675
|
+
* empty, so the bytes are those of a plain string field: field 1 is
|
|
676
|
+
* omitted while signed out and carries the key otherwise.
|
|
677
|
+
*/
|
|
678
|
+
api_key?: string | undefined;
|
|
675
679
|
/** the API the engine's own commands call */
|
|
676
680
|
api_base_url: string;
|
|
677
681
|
}
|
|
@@ -1377,7 +1381,7 @@ declare const LaceEngineService: {
|
|
|
1377
1381
|
/**
|
|
1378
1382
|
* Answers the credential this engine holds: the API key `lace login`
|
|
1379
1383
|
* saved or `LACE_TOKEN` supplies, read fresh on every call so a `lace
|
|
1380
|
-
* login` or `lace logout` takes effect at once (
|
|
1384
|
+
* login` or `lace logout` takes effect at once (absent when signed out),
|
|
1381
1385
|
* beside the base URL of the API that key is for, the one the engine's
|
|
1382
1386
|
* own commands call (the CLI's `config.ResolveBaseURL`). The host
|
|
1383
1387
|
* that spawned the engine builds its own authenticated transport to
|
|
@@ -1568,7 +1572,7 @@ interface LaceEngineClient extends Client {
|
|
|
1568
1572
|
/**
|
|
1569
1573
|
* Answers the credential this engine holds: the API key `lace login`
|
|
1570
1574
|
* saved or `LACE_TOKEN` supplies, read fresh on every call so a `lace
|
|
1571
|
-
* login` or `lace logout` takes effect at once (
|
|
1575
|
+
* login` or `lace logout` takes effect at once (absent when signed out),
|
|
1572
1576
|
* beside the base URL of the API that key is for, the one the engine's
|
|
1573
1577
|
* own commands call (the CLI's `config.ResolveBaseURL`). The host
|
|
1574
1578
|
* that spawned the engine builds its own authenticated transport to
|
package/dist/index.mjs
CHANGED
|
@@ -3956,11 +3956,11 @@ var ShutdownResponse = {
|
|
|
3956
3956
|
}
|
|
3957
3957
|
};
|
|
3958
3958
|
function createBaseReadCredentialResponse() {
|
|
3959
|
-
return { api_key:
|
|
3959
|
+
return { api_key: void 0, api_base_url: "" };
|
|
3960
3960
|
}
|
|
3961
3961
|
var ReadCredentialResponse = {
|
|
3962
3962
|
encode(message, writer = new BinaryWriter4()) {
|
|
3963
|
-
if (message.api_key !==
|
|
3963
|
+
if (message.api_key !== void 0) {
|
|
3964
3964
|
writer.uint32(10).string(message.api_key);
|
|
3965
3965
|
}
|
|
3966
3966
|
if (message.api_base_url !== "") {
|
|
@@ -3999,13 +3999,13 @@ var ReadCredentialResponse = {
|
|
|
3999
3999
|
},
|
|
4000
4000
|
fromJSON(object) {
|
|
4001
4001
|
return {
|
|
4002
|
-
api_key: isSet3(object.apiKey) ? globalThis.String(object.apiKey) : isSet3(object.api_key) ? globalThis.String(object.api_key) :
|
|
4002
|
+
api_key: isSet3(object.apiKey) ? globalThis.String(object.apiKey) : isSet3(object.api_key) ? globalThis.String(object.api_key) : void 0,
|
|
4003
4003
|
api_base_url: isSet3(object.apiBaseUrl) ? globalThis.String(object.apiBaseUrl) : isSet3(object.api_base_url) ? globalThis.String(object.api_base_url) : ""
|
|
4004
4004
|
};
|
|
4005
4005
|
},
|
|
4006
4006
|
toJSON(message) {
|
|
4007
4007
|
const obj = {};
|
|
4008
|
-
if (message.api_key !==
|
|
4008
|
+
if (message.api_key !== void 0) {
|
|
4009
4009
|
obj.apiKey = message.api_key;
|
|
4010
4010
|
}
|
|
4011
4011
|
if (message.api_base_url !== "") {
|
|
@@ -4018,7 +4018,7 @@ var ReadCredentialResponse = {
|
|
|
4018
4018
|
},
|
|
4019
4019
|
fromPartial(object) {
|
|
4020
4020
|
const message = createBaseReadCredentialResponse();
|
|
4021
|
-
message.api_key = object.api_key ??
|
|
4021
|
+
message.api_key = object.api_key ?? void 0;
|
|
4022
4022
|
message.api_base_url = object.api_base_url ?? "";
|
|
4023
4023
|
return message;
|
|
4024
4024
|
}
|
|
@@ -9919,7 +9919,7 @@ var LaceEngineService = {
|
|
|
9919
9919
|
/**
|
|
9920
9920
|
* Answers the credential this engine holds: the API key `lace login`
|
|
9921
9921
|
* saved or `LACE_TOKEN` supplies, read fresh on every call so a `lace
|
|
9922
|
-
* login` or `lace logout` takes effect at once (
|
|
9922
|
+
* login` or `lace logout` takes effect at once (absent when signed out),
|
|
9923
9923
|
* beside the base URL of the API that key is for, the one the engine's
|
|
9924
9924
|
* own commands call (the CLI's `config.ResolveBaseURL`). The host
|
|
9925
9925
|
* that spawned the engine builds its own authenticated transport to
|
|
@@ -10651,10 +10651,11 @@ var LaceTransport = class {
|
|
|
10651
10651
|
// The credential the engine holds: the API key `lace login` saved or
|
|
10652
10652
|
// `LACE_TOKEN` supplies, which the engine loads fresh on every call — so a
|
|
10653
10653
|
// host that reads it per request sees a `lace login` or `lace logout` at
|
|
10654
|
-
// once —
|
|
10655
|
-
//
|
|
10656
|
-
//
|
|
10657
|
-
//
|
|
10654
|
+
// once — absent when the developer is signed out, and passed on as the
|
|
10655
|
+
// answer states it, beside the base URL of the API the key is for, the
|
|
10656
|
+
// one the engine's own commands call: a host builds its transport from
|
|
10657
|
+
// the two and never restates which API. Every failure is the call's
|
|
10658
|
+
// own: an engine that cannot serve the call speaks
|
|
10658
10659
|
// an older protocol, and `ServerManager` refused it at the handshake
|
|
10659
10660
|
// (`checkEngineProtocol`) before any RPC was sent. A host call, never a
|
|
10660
10661
|
// bridge row: `ReadCredential` is outside `BRIDGE_METHODS`
|