@lace-cloud/host 0.19.0 → 0.21.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 +39 -113
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +35 -63
- package/dist/index.d.ts +35 -63
- package/dist/index.mjs +39 -113
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -45,10 +45,6 @@ type EngineInitialize = {
|
|
|
45
45
|
protocolVersion: string;
|
|
46
46
|
commandPaths: readonly string[];
|
|
47
47
|
};
|
|
48
|
-
type EngineCredential = {
|
|
49
|
-
apiKey: string;
|
|
50
|
-
apiBaseUrl: string;
|
|
51
|
-
};
|
|
52
48
|
type ServerState = 'stopped' | 'starting' | 'running' | 'error';
|
|
53
49
|
|
|
54
50
|
/**
|
|
@@ -615,6 +611,8 @@ declare enum Reason {
|
|
|
615
611
|
* REASON_CROSS_SCOPE - ApplyAction: a wire whose source and target are owned by different
|
|
616
612
|
* modules crosses a group's boundary, which no single-scope edit makes.
|
|
617
613
|
* It is a refusal of the batch's content, carried on its GraphError.
|
|
614
|
+
* ReadWiringCandidates: a read whose two scopes differ, refused
|
|
615
|
+
* (FailedPrecondition) as such a wire is.
|
|
618
616
|
*/
|
|
619
617
|
REASON_CROSS_SCOPE = 15,
|
|
620
618
|
/**
|
|
@@ -669,13 +667,6 @@ interface ShutdownResponse {
|
|
|
669
667
|
status: string;
|
|
670
668
|
}
|
|
671
669
|
declare const ShutdownResponse: MessageFns<ShutdownResponse>;
|
|
672
|
-
interface ReadCredentialResponse {
|
|
673
|
-
/** empty when signed out */
|
|
674
|
-
api_key: string;
|
|
675
|
-
/** the API the engine's own commands call */
|
|
676
|
-
api_base_url: string;
|
|
677
|
-
}
|
|
678
|
-
declare const ReadCredentialResponse: MessageFns<ReadCredentialResponse>;
|
|
679
670
|
interface SessionOpenRequest {
|
|
680
671
|
ephemeral?: EphemeralSession | undefined;
|
|
681
672
|
root?: RootSession | undefined;
|
|
@@ -856,10 +847,11 @@ interface CopyInstancesAction {
|
|
|
856
847
|
}
|
|
857
848
|
declare const CopyInstancesAction: MessageFns<CopyInstancesAction>;
|
|
858
849
|
/**
|
|
859
|
-
* CreateGroupAction creates a new
|
|
860
|
-
*
|
|
861
|
-
*
|
|
862
|
-
*
|
|
850
|
+
* CreateGroupAction creates a new group from selected nodes. The wire
|
|
851
|
+
* payload carries only membership: the engine names the group (the
|
|
852
|
+
* scope's next free group_<n>, its one name) and reports it in
|
|
853
|
+
* `BundleApplyResult.created`, and where the group is drawn and whether
|
|
854
|
+
* it is collapsed are consumer-owned arrangement state.
|
|
863
855
|
*/
|
|
864
856
|
interface CreateGroupAction {
|
|
865
857
|
node_ids: string[];
|
|
@@ -1003,6 +995,12 @@ interface WiringCandidate {
|
|
|
1003
995
|
score: number;
|
|
1004
996
|
}
|
|
1005
997
|
declare const WiringCandidate: MessageFns<WiringCandidate>;
|
|
998
|
+
/**
|
|
999
|
+
* A read names its two ends as a connect does: `scope` owns the targets and
|
|
1000
|
+
* `source_scope` the sources, both required. A read whose two scopes
|
|
1001
|
+
* differ is refused (FailedPrecondition, `REASON_CROSS_SCOPE`) as a wire
|
|
1002
|
+
* across them is: the matcher pairs the instances of one module only.
|
|
1003
|
+
*/
|
|
1006
1004
|
interface ReadWiringCandidatesRequest {
|
|
1007
1005
|
session_id: string;
|
|
1008
1006
|
/** The key of the module whose instances are matched (an action's `scope`). */
|
|
@@ -1017,6 +1015,8 @@ interface ReadWiringCandidatesRequest {
|
|
|
1017
1015
|
* every instance of the scope is a target.
|
|
1018
1016
|
*/
|
|
1019
1017
|
target_instance?: string | undefined;
|
|
1018
|
+
/** The key of the module that owns the sources (a wire's `source_scope`). */
|
|
1019
|
+
source_scope: string;
|
|
1020
1020
|
}
|
|
1021
1021
|
declare const ReadWiringCandidatesRequest: MessageFns<ReadWiringCandidatesRequest>;
|
|
1022
1022
|
interface ReadWiringCandidatesResponse {
|
|
@@ -1159,7 +1159,7 @@ declare const BundleStateEvent: MessageFns<BundleStateEvent>;
|
|
|
1159
1159
|
* tree. Consumers (VS Code extension, portal, tests) project this
|
|
1160
1160
|
* locally via the proto package's `projectCanvasView(bundle,
|
|
1161
1161
|
* arrangement?, meta)` to produce a renderable CanvasView —
|
|
1162
|
-
* `arrangement` (node positions, group collapse
|
|
1162
|
+
* `arrangement` (node positions, group collapse) is
|
|
1163
1163
|
* consumer-owned view state and never travels here.
|
|
1164
1164
|
*
|
|
1165
1165
|
* Not to be confused with the `bundle_snapshot` API entity, which is
|
|
@@ -1213,6 +1213,15 @@ interface BundleState {
|
|
|
1213
1213
|
* holds already shows a batch it applied.
|
|
1214
1214
|
*/
|
|
1215
1215
|
revision: number;
|
|
1216
|
+
/**
|
|
1217
|
+
* True while a Generate holds the session's one Generate: from the moment
|
|
1218
|
+
* SessionGenerate takes it until the call answers — the tree's write and
|
|
1219
|
+
* the module validate that certifies it. The session publishes a frame
|
|
1220
|
+
* when it is taken and when it is released, so a subscriber that joins
|
|
1221
|
+
* mid-Generate starts with it set, and a second SessionGenerate in that
|
|
1222
|
+
* window is refused (FailedPrecondition).
|
|
1223
|
+
*/
|
|
1224
|
+
generating: boolean;
|
|
1216
1225
|
}
|
|
1217
1226
|
declare const BundleState: MessageFns<BundleState>;
|
|
1218
1227
|
/**
|
|
@@ -1251,7 +1260,7 @@ declare const BundleApplyResult: MessageFns<BundleApplyResult>;
|
|
|
1251
1260
|
/**
|
|
1252
1261
|
* CreatedRef names one child created by an action (PlaceModule,
|
|
1253
1262
|
* CreateGroup, CopyInstances, ...). Clients key pending arrangement
|
|
1254
|
-
* writes (position, group
|
|
1263
|
+
* writes (position, group collapse) off these IDs instead of
|
|
1255
1264
|
* diffing BundleState frames.
|
|
1256
1265
|
*/
|
|
1257
1266
|
interface CreatedRef {
|
|
@@ -1374,28 +1383,6 @@ declare const LaceEngineService: {
|
|
|
1374
1383
|
readonly responseSerialize: (value: ShutdownResponse) => Buffer;
|
|
1375
1384
|
readonly responseDeserialize: (value: Buffer) => ShutdownResponse;
|
|
1376
1385
|
};
|
|
1377
|
-
/**
|
|
1378
|
-
* Answers the credential this engine holds: the API key `lace login`
|
|
1379
|
-
* saved or `LACE_TOKEN` supplies, read fresh on every call so a `lace
|
|
1380
|
-
* login` or `lace logout` takes effect at once (empty when signed out),
|
|
1381
|
-
* beside the base URL of the API that key is for, the one the engine's
|
|
1382
|
-
* own commands call (the CLI's `config.ResolveBaseURL`). The host
|
|
1383
|
-
* that spawned the engine builds its own authenticated transport to
|
|
1384
|
-
* Lace's API from the two, for the chat package, and never restates
|
|
1385
|
-
* which API; the engine knows nothing of what the host does with them. Served, like every RPC,
|
|
1386
|
-
* only to the bearer of the handshake's session token, and never
|
|
1387
|
-
* forwarded across the webview bridge (`BRIDGE_METHODS`,
|
|
1388
|
-
* @lace-cloud/proto's engine-bridge.ts).
|
|
1389
|
-
*/
|
|
1390
|
-
readonly readCredential: {
|
|
1391
|
-
readonly path: "/lace.engine.LaceEngine/ReadCredential";
|
|
1392
|
-
readonly requestStream: false;
|
|
1393
|
-
readonly responseStream: false;
|
|
1394
|
-
readonly requestSerialize: (value: Empty) => Buffer;
|
|
1395
|
-
readonly requestDeserialize: (value: Buffer) => Empty;
|
|
1396
|
-
readonly responseSerialize: (value: ReadCredentialResponse) => Buffer;
|
|
1397
|
-
readonly responseDeserialize: (value: Buffer) => ReadCredentialResponse;
|
|
1398
|
-
};
|
|
1399
1386
|
/**
|
|
1400
1387
|
* Session lifecycle. Never fails on a refused source tf — a refused tf
|
|
1401
1388
|
* opens the session source-refused (`BundleState.source_refused`) with
|
|
@@ -1499,8 +1486,9 @@ declare const LaceEngineService: {
|
|
|
1499
1486
|
* Reads the output → input pairs the engine's matcher scores between the
|
|
1500
1487
|
* instances of one module of a session's working IR: the pairs an
|
|
1501
1488
|
* `auto_connect` chooses among, with the scores it chooses by. The
|
|
1502
|
-
* matching rules have this one home; a client
|
|
1503
|
-
*
|
|
1489
|
+
* matching rules have this one home; a client lists these pairs, best
|
|
1490
|
+
* first, for a connect whose pins it does not settle, and sends the pair
|
|
1491
|
+
* it is given as a `connect`.
|
|
1504
1492
|
*/
|
|
1505
1493
|
readonly readWiringCandidates: {
|
|
1506
1494
|
readonly path: "/lace.engine.LaceEngine/ReadWiringCandidates";
|
|
@@ -1544,7 +1532,7 @@ declare const LaceEngineService: {
|
|
|
1544
1532
|
*
|
|
1545
1533
|
* Consumers (portal + extension canvas engines) project locally via
|
|
1546
1534
|
* `@lace-cloud/proto`'s `projectCanvasView(bundle, arrangement?, meta)`.
|
|
1547
|
-
* `arrangement` (node positions, group collapse
|
|
1535
|
+
* `arrangement` (node positions, group collapse) is consumer-owned
|
|
1548
1536
|
* view state — it never travels over this RPC.
|
|
1549
1537
|
*/
|
|
1550
1538
|
readonly subscribe: {
|
|
@@ -1565,22 +1553,6 @@ interface LaceEngineClient extends Client {
|
|
|
1565
1553
|
shutdown(request: Empty, callback: (error: ServiceError | null, response: ShutdownResponse) => void): ClientUnaryCall;
|
|
1566
1554
|
shutdown(request: Empty, metadata: Metadata, callback: (error: ServiceError | null, response: ShutdownResponse) => void): ClientUnaryCall;
|
|
1567
1555
|
shutdown(request: Empty, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ShutdownResponse) => void): ClientUnaryCall;
|
|
1568
|
-
/**
|
|
1569
|
-
* Answers the credential this engine holds: the API key `lace login`
|
|
1570
|
-
* saved or `LACE_TOKEN` supplies, read fresh on every call so a `lace
|
|
1571
|
-
* login` or `lace logout` takes effect at once (empty when signed out),
|
|
1572
|
-
* beside the base URL of the API that key is for, the one the engine's
|
|
1573
|
-
* own commands call (the CLI's `config.ResolveBaseURL`). The host
|
|
1574
|
-
* that spawned the engine builds its own authenticated transport to
|
|
1575
|
-
* Lace's API from the two, for the chat package, and never restates
|
|
1576
|
-
* which API; the engine knows nothing of what the host does with them. Served, like every RPC,
|
|
1577
|
-
* only to the bearer of the handshake's session token, and never
|
|
1578
|
-
* forwarded across the webview bridge (`BRIDGE_METHODS`,
|
|
1579
|
-
* @lace-cloud/proto's engine-bridge.ts).
|
|
1580
|
-
*/
|
|
1581
|
-
readCredential(request: Empty, callback: (error: ServiceError | null, response: ReadCredentialResponse) => void): ClientUnaryCall;
|
|
1582
|
-
readCredential(request: Empty, metadata: Metadata, callback: (error: ServiceError | null, response: ReadCredentialResponse) => void): ClientUnaryCall;
|
|
1583
|
-
readCredential(request: Empty, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ReadCredentialResponse) => void): ClientUnaryCall;
|
|
1584
1556
|
/**
|
|
1585
1557
|
* Session lifecycle. Never fails on a refused source tf — a refused tf
|
|
1586
1558
|
* opens the session source-refused (`BundleState.source_refused`) with
|
|
@@ -1642,8 +1614,9 @@ interface LaceEngineClient extends Client {
|
|
|
1642
1614
|
* Reads the output → input pairs the engine's matcher scores between the
|
|
1643
1615
|
* instances of one module of a session's working IR: the pairs an
|
|
1644
1616
|
* `auto_connect` chooses among, with the scores it chooses by. The
|
|
1645
|
-
* matching rules have this one home; a client
|
|
1646
|
-
*
|
|
1617
|
+
* matching rules have this one home; a client lists these pairs, best
|
|
1618
|
+
* first, for a connect whose pins it does not settle, and sends the pair
|
|
1619
|
+
* it is given as a `connect`.
|
|
1647
1620
|
*/
|
|
1648
1621
|
readWiringCandidates(request: ReadWiringCandidatesRequest, callback: (error: ServiceError | null, response: ReadWiringCandidatesResponse) => void): ClientUnaryCall;
|
|
1649
1622
|
readWiringCandidates(request: ReadWiringCandidatesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ReadWiringCandidatesResponse) => void): ClientUnaryCall;
|
|
@@ -1668,7 +1641,7 @@ interface LaceEngineClient extends Client {
|
|
|
1668
1641
|
*
|
|
1669
1642
|
* Consumers (portal + extension canvas engines) project locally via
|
|
1670
1643
|
* `@lace-cloud/proto`'s `projectCanvasView(bundle, arrangement?, meta)`.
|
|
1671
|
-
* `arrangement` (node positions, group collapse
|
|
1644
|
+
* `arrangement` (node positions, group collapse) is consumer-owned
|
|
1672
1645
|
* view state — it never travels over this RPC.
|
|
1673
1646
|
*/
|
|
1674
1647
|
subscribe(request: SubscribeRequest, options?: Partial<CallOptions>): ClientReadableStream<BundleStateEvent>;
|
|
@@ -1735,7 +1708,6 @@ declare class LaceTransport {
|
|
|
1735
1708
|
private unary;
|
|
1736
1709
|
initialize(clientVersion: string): Promise<EngineInitialize>;
|
|
1737
1710
|
shutdown(): Promise<void>;
|
|
1738
|
-
readCredential(): Promise<EngineCredential>;
|
|
1739
1711
|
subscribeStream(sessionId: string): grpc.ClientReadableStream<BundleStateEvent>;
|
|
1740
1712
|
dispose(): void;
|
|
1741
1713
|
}
|
|
@@ -1783,4 +1755,4 @@ declare class ServerManager extends EventEmitter {
|
|
|
1783
1755
|
private maybeRestart;
|
|
1784
1756
|
}
|
|
1785
1757
|
|
|
1786
|
-
export { Action, ApplyActionRequest, BundleApplyResult, BundleState, BundleStateEvent, type
|
|
1758
|
+
export { Action, ApplyActionRequest, BundleApplyResult, BundleState, BundleStateEvent, type EngineHandshake, type EngineInitialize, type EngineTransport, InitializeResponse, InvokeRequest, LaceTransport, ReadWiringCandidatesRequest, ReadWiringCandidatesResponse, ReasonDetail, RpcError, type RpcErrorCategory, ServerManager, type ServerState, SessionCloseResponse, SessionOpenResponse, Status, classifyRpcError, endEngine, requireClient, serveEngineBridge, spawnEngine };
|
package/dist/index.d.ts
CHANGED
|
@@ -45,10 +45,6 @@ type EngineInitialize = {
|
|
|
45
45
|
protocolVersion: string;
|
|
46
46
|
commandPaths: readonly string[];
|
|
47
47
|
};
|
|
48
|
-
type EngineCredential = {
|
|
49
|
-
apiKey: string;
|
|
50
|
-
apiBaseUrl: string;
|
|
51
|
-
};
|
|
52
48
|
type ServerState = 'stopped' | 'starting' | 'running' | 'error';
|
|
53
49
|
|
|
54
50
|
/**
|
|
@@ -615,6 +611,8 @@ declare enum Reason {
|
|
|
615
611
|
* REASON_CROSS_SCOPE - ApplyAction: a wire whose source and target are owned by different
|
|
616
612
|
* modules crosses a group's boundary, which no single-scope edit makes.
|
|
617
613
|
* It is a refusal of the batch's content, carried on its GraphError.
|
|
614
|
+
* ReadWiringCandidates: a read whose two scopes differ, refused
|
|
615
|
+
* (FailedPrecondition) as such a wire is.
|
|
618
616
|
*/
|
|
619
617
|
REASON_CROSS_SCOPE = 15,
|
|
620
618
|
/**
|
|
@@ -669,13 +667,6 @@ interface ShutdownResponse {
|
|
|
669
667
|
status: string;
|
|
670
668
|
}
|
|
671
669
|
declare const ShutdownResponse: MessageFns<ShutdownResponse>;
|
|
672
|
-
interface ReadCredentialResponse {
|
|
673
|
-
/** empty when signed out */
|
|
674
|
-
api_key: string;
|
|
675
|
-
/** the API the engine's own commands call */
|
|
676
|
-
api_base_url: string;
|
|
677
|
-
}
|
|
678
|
-
declare const ReadCredentialResponse: MessageFns<ReadCredentialResponse>;
|
|
679
670
|
interface SessionOpenRequest {
|
|
680
671
|
ephemeral?: EphemeralSession | undefined;
|
|
681
672
|
root?: RootSession | undefined;
|
|
@@ -856,10 +847,11 @@ interface CopyInstancesAction {
|
|
|
856
847
|
}
|
|
857
848
|
declare const CopyInstancesAction: MessageFns<CopyInstancesAction>;
|
|
858
849
|
/**
|
|
859
|
-
* CreateGroupAction creates a new
|
|
860
|
-
*
|
|
861
|
-
*
|
|
862
|
-
*
|
|
850
|
+
* CreateGroupAction creates a new group from selected nodes. The wire
|
|
851
|
+
* payload carries only membership: the engine names the group (the
|
|
852
|
+
* scope's next free group_<n>, its one name) and reports it in
|
|
853
|
+
* `BundleApplyResult.created`, and where the group is drawn and whether
|
|
854
|
+
* it is collapsed are consumer-owned arrangement state.
|
|
863
855
|
*/
|
|
864
856
|
interface CreateGroupAction {
|
|
865
857
|
node_ids: string[];
|
|
@@ -1003,6 +995,12 @@ interface WiringCandidate {
|
|
|
1003
995
|
score: number;
|
|
1004
996
|
}
|
|
1005
997
|
declare const WiringCandidate: MessageFns<WiringCandidate>;
|
|
998
|
+
/**
|
|
999
|
+
* A read names its two ends as a connect does: `scope` owns the targets and
|
|
1000
|
+
* `source_scope` the sources, both required. A read whose two scopes
|
|
1001
|
+
* differ is refused (FailedPrecondition, `REASON_CROSS_SCOPE`) as a wire
|
|
1002
|
+
* across them is: the matcher pairs the instances of one module only.
|
|
1003
|
+
*/
|
|
1006
1004
|
interface ReadWiringCandidatesRequest {
|
|
1007
1005
|
session_id: string;
|
|
1008
1006
|
/** The key of the module whose instances are matched (an action's `scope`). */
|
|
@@ -1017,6 +1015,8 @@ interface ReadWiringCandidatesRequest {
|
|
|
1017
1015
|
* every instance of the scope is a target.
|
|
1018
1016
|
*/
|
|
1019
1017
|
target_instance?: string | undefined;
|
|
1018
|
+
/** The key of the module that owns the sources (a wire's `source_scope`). */
|
|
1019
|
+
source_scope: string;
|
|
1020
1020
|
}
|
|
1021
1021
|
declare const ReadWiringCandidatesRequest: MessageFns<ReadWiringCandidatesRequest>;
|
|
1022
1022
|
interface ReadWiringCandidatesResponse {
|
|
@@ -1159,7 +1159,7 @@ declare const BundleStateEvent: MessageFns<BundleStateEvent>;
|
|
|
1159
1159
|
* tree. Consumers (VS Code extension, portal, tests) project this
|
|
1160
1160
|
* locally via the proto package's `projectCanvasView(bundle,
|
|
1161
1161
|
* arrangement?, meta)` to produce a renderable CanvasView —
|
|
1162
|
-
* `arrangement` (node positions, group collapse
|
|
1162
|
+
* `arrangement` (node positions, group collapse) is
|
|
1163
1163
|
* consumer-owned view state and never travels here.
|
|
1164
1164
|
*
|
|
1165
1165
|
* Not to be confused with the `bundle_snapshot` API entity, which is
|
|
@@ -1213,6 +1213,15 @@ interface BundleState {
|
|
|
1213
1213
|
* holds already shows a batch it applied.
|
|
1214
1214
|
*/
|
|
1215
1215
|
revision: number;
|
|
1216
|
+
/**
|
|
1217
|
+
* True while a Generate holds the session's one Generate: from the moment
|
|
1218
|
+
* SessionGenerate takes it until the call answers — the tree's write and
|
|
1219
|
+
* the module validate that certifies it. The session publishes a frame
|
|
1220
|
+
* when it is taken and when it is released, so a subscriber that joins
|
|
1221
|
+
* mid-Generate starts with it set, and a second SessionGenerate in that
|
|
1222
|
+
* window is refused (FailedPrecondition).
|
|
1223
|
+
*/
|
|
1224
|
+
generating: boolean;
|
|
1216
1225
|
}
|
|
1217
1226
|
declare const BundleState: MessageFns<BundleState>;
|
|
1218
1227
|
/**
|
|
@@ -1251,7 +1260,7 @@ declare const BundleApplyResult: MessageFns<BundleApplyResult>;
|
|
|
1251
1260
|
/**
|
|
1252
1261
|
* CreatedRef names one child created by an action (PlaceModule,
|
|
1253
1262
|
* CreateGroup, CopyInstances, ...). Clients key pending arrangement
|
|
1254
|
-
* writes (position, group
|
|
1263
|
+
* writes (position, group collapse) off these IDs instead of
|
|
1255
1264
|
* diffing BundleState frames.
|
|
1256
1265
|
*/
|
|
1257
1266
|
interface CreatedRef {
|
|
@@ -1374,28 +1383,6 @@ declare const LaceEngineService: {
|
|
|
1374
1383
|
readonly responseSerialize: (value: ShutdownResponse) => Buffer;
|
|
1375
1384
|
readonly responseDeserialize: (value: Buffer) => ShutdownResponse;
|
|
1376
1385
|
};
|
|
1377
|
-
/**
|
|
1378
|
-
* Answers the credential this engine holds: the API key `lace login`
|
|
1379
|
-
* saved or `LACE_TOKEN` supplies, read fresh on every call so a `lace
|
|
1380
|
-
* login` or `lace logout` takes effect at once (empty when signed out),
|
|
1381
|
-
* beside the base URL of the API that key is for, the one the engine's
|
|
1382
|
-
* own commands call (the CLI's `config.ResolveBaseURL`). The host
|
|
1383
|
-
* that spawned the engine builds its own authenticated transport to
|
|
1384
|
-
* Lace's API from the two, for the chat package, and never restates
|
|
1385
|
-
* which API; the engine knows nothing of what the host does with them. Served, like every RPC,
|
|
1386
|
-
* only to the bearer of the handshake's session token, and never
|
|
1387
|
-
* forwarded across the webview bridge (`BRIDGE_METHODS`,
|
|
1388
|
-
* @lace-cloud/proto's engine-bridge.ts).
|
|
1389
|
-
*/
|
|
1390
|
-
readonly readCredential: {
|
|
1391
|
-
readonly path: "/lace.engine.LaceEngine/ReadCredential";
|
|
1392
|
-
readonly requestStream: false;
|
|
1393
|
-
readonly responseStream: false;
|
|
1394
|
-
readonly requestSerialize: (value: Empty) => Buffer;
|
|
1395
|
-
readonly requestDeserialize: (value: Buffer) => Empty;
|
|
1396
|
-
readonly responseSerialize: (value: ReadCredentialResponse) => Buffer;
|
|
1397
|
-
readonly responseDeserialize: (value: Buffer) => ReadCredentialResponse;
|
|
1398
|
-
};
|
|
1399
1386
|
/**
|
|
1400
1387
|
* Session lifecycle. Never fails on a refused source tf — a refused tf
|
|
1401
1388
|
* opens the session source-refused (`BundleState.source_refused`) with
|
|
@@ -1499,8 +1486,9 @@ declare const LaceEngineService: {
|
|
|
1499
1486
|
* Reads the output → input pairs the engine's matcher scores between the
|
|
1500
1487
|
* instances of one module of a session's working IR: the pairs an
|
|
1501
1488
|
* `auto_connect` chooses among, with the scores it chooses by. The
|
|
1502
|
-
* matching rules have this one home; a client
|
|
1503
|
-
*
|
|
1489
|
+
* matching rules have this one home; a client lists these pairs, best
|
|
1490
|
+
* first, for a connect whose pins it does not settle, and sends the pair
|
|
1491
|
+
* it is given as a `connect`.
|
|
1504
1492
|
*/
|
|
1505
1493
|
readonly readWiringCandidates: {
|
|
1506
1494
|
readonly path: "/lace.engine.LaceEngine/ReadWiringCandidates";
|
|
@@ -1544,7 +1532,7 @@ declare const LaceEngineService: {
|
|
|
1544
1532
|
*
|
|
1545
1533
|
* Consumers (portal + extension canvas engines) project locally via
|
|
1546
1534
|
* `@lace-cloud/proto`'s `projectCanvasView(bundle, arrangement?, meta)`.
|
|
1547
|
-
* `arrangement` (node positions, group collapse
|
|
1535
|
+
* `arrangement` (node positions, group collapse) is consumer-owned
|
|
1548
1536
|
* view state — it never travels over this RPC.
|
|
1549
1537
|
*/
|
|
1550
1538
|
readonly subscribe: {
|
|
@@ -1565,22 +1553,6 @@ interface LaceEngineClient extends Client {
|
|
|
1565
1553
|
shutdown(request: Empty, callback: (error: ServiceError | null, response: ShutdownResponse) => void): ClientUnaryCall;
|
|
1566
1554
|
shutdown(request: Empty, metadata: Metadata, callback: (error: ServiceError | null, response: ShutdownResponse) => void): ClientUnaryCall;
|
|
1567
1555
|
shutdown(request: Empty, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ShutdownResponse) => void): ClientUnaryCall;
|
|
1568
|
-
/**
|
|
1569
|
-
* Answers the credential this engine holds: the API key `lace login`
|
|
1570
|
-
* saved or `LACE_TOKEN` supplies, read fresh on every call so a `lace
|
|
1571
|
-
* login` or `lace logout` takes effect at once (empty when signed out),
|
|
1572
|
-
* beside the base URL of the API that key is for, the one the engine's
|
|
1573
|
-
* own commands call (the CLI's `config.ResolveBaseURL`). The host
|
|
1574
|
-
* that spawned the engine builds its own authenticated transport to
|
|
1575
|
-
* Lace's API from the two, for the chat package, and never restates
|
|
1576
|
-
* which API; the engine knows nothing of what the host does with them. Served, like every RPC,
|
|
1577
|
-
* only to the bearer of the handshake's session token, and never
|
|
1578
|
-
* forwarded across the webview bridge (`BRIDGE_METHODS`,
|
|
1579
|
-
* @lace-cloud/proto's engine-bridge.ts).
|
|
1580
|
-
*/
|
|
1581
|
-
readCredential(request: Empty, callback: (error: ServiceError | null, response: ReadCredentialResponse) => void): ClientUnaryCall;
|
|
1582
|
-
readCredential(request: Empty, metadata: Metadata, callback: (error: ServiceError | null, response: ReadCredentialResponse) => void): ClientUnaryCall;
|
|
1583
|
-
readCredential(request: Empty, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ReadCredentialResponse) => void): ClientUnaryCall;
|
|
1584
1556
|
/**
|
|
1585
1557
|
* Session lifecycle. Never fails on a refused source tf — a refused tf
|
|
1586
1558
|
* opens the session source-refused (`BundleState.source_refused`) with
|
|
@@ -1642,8 +1614,9 @@ interface LaceEngineClient extends Client {
|
|
|
1642
1614
|
* Reads the output → input pairs the engine's matcher scores between the
|
|
1643
1615
|
* instances of one module of a session's working IR: the pairs an
|
|
1644
1616
|
* `auto_connect` chooses among, with the scores it chooses by. The
|
|
1645
|
-
* matching rules have this one home; a client
|
|
1646
|
-
*
|
|
1617
|
+
* matching rules have this one home; a client lists these pairs, best
|
|
1618
|
+
* first, for a connect whose pins it does not settle, and sends the pair
|
|
1619
|
+
* it is given as a `connect`.
|
|
1647
1620
|
*/
|
|
1648
1621
|
readWiringCandidates(request: ReadWiringCandidatesRequest, callback: (error: ServiceError | null, response: ReadWiringCandidatesResponse) => void): ClientUnaryCall;
|
|
1649
1622
|
readWiringCandidates(request: ReadWiringCandidatesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ReadWiringCandidatesResponse) => void): ClientUnaryCall;
|
|
@@ -1668,7 +1641,7 @@ interface LaceEngineClient extends Client {
|
|
|
1668
1641
|
*
|
|
1669
1642
|
* Consumers (portal + extension canvas engines) project locally via
|
|
1670
1643
|
* `@lace-cloud/proto`'s `projectCanvasView(bundle, arrangement?, meta)`.
|
|
1671
|
-
* `arrangement` (node positions, group collapse
|
|
1644
|
+
* `arrangement` (node positions, group collapse) is consumer-owned
|
|
1672
1645
|
* view state — it never travels over this RPC.
|
|
1673
1646
|
*/
|
|
1674
1647
|
subscribe(request: SubscribeRequest, options?: Partial<CallOptions>): ClientReadableStream<BundleStateEvent>;
|
|
@@ -1735,7 +1708,6 @@ declare class LaceTransport {
|
|
|
1735
1708
|
private unary;
|
|
1736
1709
|
initialize(clientVersion: string): Promise<EngineInitialize>;
|
|
1737
1710
|
shutdown(): Promise<void>;
|
|
1738
|
-
readCredential(): Promise<EngineCredential>;
|
|
1739
1711
|
subscribeStream(sessionId: string): grpc.ClientReadableStream<BundleStateEvent>;
|
|
1740
1712
|
dispose(): void;
|
|
1741
1713
|
}
|
|
@@ -1783,4 +1755,4 @@ declare class ServerManager extends EventEmitter {
|
|
|
1783
1755
|
private maybeRestart;
|
|
1784
1756
|
}
|
|
1785
1757
|
|
|
1786
|
-
export { Action, ApplyActionRequest, BundleApplyResult, BundleState, BundleStateEvent, type
|
|
1758
|
+
export { Action, ApplyActionRequest, BundleApplyResult, BundleState, BundleStateEvent, type EngineHandshake, type EngineInitialize, type EngineTransport, InitializeResponse, InvokeRequest, LaceTransport, ReadWiringCandidatesRequest, ReadWiringCandidatesResponse, ReasonDetail, RpcError, type RpcErrorCategory, ServerManager, type ServerState, SessionCloseResponse, SessionOpenResponse, Status, classifyRpcError, endEngine, requireClient, serveEngineBridge, spawnEngine };
|