@frockbot/computer-core 0.2.3 → 0.2.5
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/src/core.ts +22 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frockbot/computer-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@frockbot/kernel-contracts": "0.2.
|
|
15
|
+
"@frockbot/kernel-contracts": "0.2.5",
|
|
16
16
|
"cordis": "4.0.0-rc.8"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
package/src/core.ts
CHANGED
|
@@ -254,6 +254,25 @@ export interface ComputerOperationOptions {
|
|
|
254
254
|
effectId?: string;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
+
/** One provider-neutral boundary crossed while opening a live viewer. */
|
|
258
|
+
export interface ComputerConnectionProgressV1 {
|
|
259
|
+
version: 1;
|
|
260
|
+
kind: "connect" | "update";
|
|
261
|
+
step: string;
|
|
262
|
+
label: string;
|
|
263
|
+
index: number;
|
|
264
|
+
total: number;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export interface ComputerConnectionOptionsV1 extends ComputerOperationOptions {
|
|
268
|
+
/**
|
|
269
|
+
* Reports boundaries the provider can observe while the caller's durable
|
|
270
|
+
* connect intent remains in flight. The authoritative caller persists each
|
|
271
|
+
* report; this callback is not itself durable state.
|
|
272
|
+
*/
|
|
273
|
+
onProgress?(progress: ComputerConnectionProgressV1): void | Promise<void>;
|
|
274
|
+
}
|
|
275
|
+
|
|
257
276
|
/**
|
|
258
277
|
* The Computer's Workspace surface.
|
|
259
278
|
*
|
|
@@ -538,7 +557,9 @@ export interface ComputerViewer {
|
|
|
538
557
|
* provider-specific viewer transport remains behind the Computer adapter.
|
|
539
558
|
*/
|
|
540
559
|
export interface ComputerPresence {
|
|
541
|
-
connect(
|
|
560
|
+
connect(
|
|
561
|
+
options?: ComputerConnectionOptionsV1,
|
|
562
|
+
): Promise<ComputerViewerSession>;
|
|
542
563
|
}
|
|
543
564
|
|
|
544
565
|
export interface ComputerControlLease {
|