@casual-simulation/aux-vm 3.5.3 → 3.6.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.
|
@@ -37,12 +37,18 @@ export declare const DEFAULT_SCRIPT_PREFIXES: ScriptPrefix[];
|
|
|
37
37
|
*/
|
|
38
38
|
export declare class PortalManager implements SubscriptionLike {
|
|
39
39
|
private _prefixes;
|
|
40
|
+
private _portals;
|
|
41
|
+
private _portalLoaded;
|
|
40
42
|
private _prefixesDiscovered;
|
|
41
43
|
private _prefixesRemoved;
|
|
42
44
|
private _globalBotsDiscovered;
|
|
43
45
|
private _globalBots;
|
|
44
46
|
private _vm;
|
|
45
47
|
private _sub;
|
|
48
|
+
/**
|
|
49
|
+
* Gets an observable that resolves whenever a portal has been loaded.
|
|
50
|
+
*/
|
|
51
|
+
get portalLoaded(): Observable<string>;
|
|
46
52
|
/**
|
|
47
53
|
* Gets an observable that resolves when a script prefix has been discovered.
|
|
48
54
|
*/
|
|
@@ -66,6 +72,11 @@ export declare class PortalManager implements SubscriptionLike {
|
|
|
66
72
|
*/
|
|
67
73
|
get portalBots(): Map<string, DefineGlobalBotAction>;
|
|
68
74
|
constructor(vm: AuxVM);
|
|
75
|
+
/**
|
|
76
|
+
* Notifies that the given portal has been loaded.
|
|
77
|
+
* @param portal The name of the portal that has been loaded.
|
|
78
|
+
*/
|
|
79
|
+
notifyPortalLoaded(portal: string): void;
|
|
69
80
|
getScriptPrefix(value: string): string;
|
|
70
81
|
private _onLocalEvents;
|
|
71
82
|
unsubscribe(): void;
|
|
@@ -25,6 +25,12 @@ export const DEFAULT_SCRIPT_PREFIXES = [
|
|
|
25
25
|
* Defines a class that is able to manage portals and their interactions.
|
|
26
26
|
*/
|
|
27
27
|
export class PortalManager {
|
|
28
|
+
/**
|
|
29
|
+
* Gets an observable that resolves whenever a portal has been loaded.
|
|
30
|
+
*/
|
|
31
|
+
get portalLoaded() {
|
|
32
|
+
return this._portalLoaded.pipe(startWith(...this._portals));
|
|
33
|
+
}
|
|
28
34
|
/**
|
|
29
35
|
* Gets an observable that resolves when a script prefix has been discovered.
|
|
30
36
|
*/
|
|
@@ -66,18 +72,30 @@ export class PortalManager {
|
|
|
66
72
|
return this._globalBots;
|
|
67
73
|
}
|
|
68
74
|
constructor(vm) {
|
|
75
|
+
this._portals = [];
|
|
69
76
|
this._globalBots = new Map();
|
|
70
77
|
this._vm = vm;
|
|
71
78
|
this._prefixes = new Map();
|
|
72
79
|
this._prefixesDiscovered = new Subject();
|
|
73
80
|
this._prefixesRemoved = new Subject();
|
|
74
81
|
this._globalBotsDiscovered = new Subject();
|
|
82
|
+
this._portalLoaded = new Subject();
|
|
75
83
|
this._sub = new Subscription();
|
|
76
84
|
for (let p of DEFAULT_SCRIPT_PREFIXES) {
|
|
77
85
|
this._prefixes.set(p.prefix, p);
|
|
78
86
|
}
|
|
79
87
|
this._sub.add(vm.localEvents.pipe(tap((e) => this._onLocalEvents(e))).subscribe());
|
|
80
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* Notifies that the given portal has been loaded.
|
|
91
|
+
* @param portal The name of the portal that has been loaded.
|
|
92
|
+
*/
|
|
93
|
+
notifyPortalLoaded(portal) {
|
|
94
|
+
if (!this._portals.includes(portal)) {
|
|
95
|
+
this._portals.push(portal);
|
|
96
|
+
this._portalLoaded.next(portal);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
81
99
|
getScriptPrefix(value) {
|
|
82
100
|
var _a;
|
|
83
101
|
return ((_a = getScriptPrefix(KNOWN_TAG_PREFIXES, value)) !== null && _a !== void 0 ? _a : getScriptPrefix(this.scriptPrefixes.map((p) => p.prefix), value));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PortalManager.js","sourceRoot":"","sources":["PortalManager.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,SAAS,EA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/aux-common';
|
|
2
2
|
import type { AuxVM } from '../vm/AuxVM';
|
|
3
3
|
import type { SubscriptionLike, Observable } from 'rxjs';
|
|
4
4
|
/**
|
|
@@ -7,9 +7,10 @@ import type { SubscriptionLike, Observable } from 'rxjs';
|
|
|
7
7
|
export declare class ProgressManager implements SubscriptionLike {
|
|
8
8
|
private _progress;
|
|
9
9
|
private _vm;
|
|
10
|
+
private _onPortalLoaded;
|
|
10
11
|
private _sub;
|
|
11
12
|
get updates(): Observable<ProgressMessage>;
|
|
12
|
-
constructor(vm: AuxVM);
|
|
13
|
+
constructor(vm: AuxVM, onPortalLoaded: Observable<string>);
|
|
13
14
|
unsubscribe(): void;
|
|
14
15
|
get closed(): boolean;
|
|
15
16
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { asyncResult, hasValue, LOAD_PORTALS, } from '@casual-simulation/aux-common';
|
|
2
|
+
import { BehaviorSubject, merge } from 'rxjs';
|
|
3
|
+
import { tap, takeWhile, map, filter, first, mergeMap, skipWhile, take, } from 'rxjs/operators';
|
|
3
4
|
/**
|
|
4
5
|
* Defines a class that can manage the current loading progress state of a simulation.
|
|
5
6
|
*/
|
|
@@ -7,50 +8,66 @@ export class ProgressManager {
|
|
|
7
8
|
get updates() {
|
|
8
9
|
return this._progress;
|
|
9
10
|
}
|
|
10
|
-
constructor(vm) {
|
|
11
|
+
constructor(vm, onPortalLoaded) {
|
|
11
12
|
this._vm = vm;
|
|
13
|
+
this._onPortalLoaded = onPortalLoaded;
|
|
12
14
|
this._progress = new BehaviorSubject({
|
|
13
15
|
type: 'progress',
|
|
14
16
|
progress: 0,
|
|
15
17
|
message: 'Starting...',
|
|
16
18
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
// loading is only done when a portal is opened
|
|
20
|
+
const vmProgress = this._vm.connectionStateChanged.pipe(takeWhile((m) => m.type !== 'init'), filter((m) => m.type === 'progress' ||
|
|
21
|
+
m.type === 'authorization' ||
|
|
22
|
+
m.type === 'authentication'), map((m) => {
|
|
23
|
+
if (m.type === 'progress') {
|
|
24
|
+
return {
|
|
25
|
+
...m,
|
|
26
|
+
done: false,
|
|
27
|
+
};
|
|
21
28
|
}
|
|
22
|
-
else if (
|
|
23
|
-
if (
|
|
24
|
-
|
|
29
|
+
else if (m.type === 'authorization') {
|
|
30
|
+
if (!m.authorized) {
|
|
31
|
+
return {
|
|
25
32
|
type: 'progress',
|
|
26
33
|
progress: 1,
|
|
27
34
|
message: 'You are not authorized.',
|
|
28
35
|
error: true,
|
|
29
|
-
}
|
|
36
|
+
};
|
|
30
37
|
}
|
|
31
38
|
}
|
|
32
|
-
else if (
|
|
33
|
-
if (
|
|
34
|
-
|
|
39
|
+
else if (m.type === 'authentication') {
|
|
40
|
+
if (!m.authenticated) {
|
|
41
|
+
return {
|
|
35
42
|
type: 'progress',
|
|
36
43
|
progress: 1,
|
|
37
44
|
message: 'You are not authenticated.',
|
|
38
45
|
done: true,
|
|
39
|
-
}
|
|
46
|
+
};
|
|
40
47
|
}
|
|
41
48
|
}
|
|
42
|
-
|
|
43
|
-
|
|
49
|
+
return null;
|
|
50
|
+
}), filter((m) => !!m), tap({
|
|
44
51
|
error: (err) => console.error(err),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
}));
|
|
53
|
+
const portalProgress = this._onPortalLoaded.pipe(first((b) => LOAD_PORTALS.includes(b)), map(() => ({
|
|
54
|
+
type: 'progress',
|
|
55
|
+
message: 'Done.',
|
|
56
|
+
progress: 1,
|
|
57
|
+
done: true,
|
|
58
|
+
})));
|
|
59
|
+
const hideProgress = this._vm.localEvents.pipe(mergeMap((e) => e), skipWhile((e) => e.type !== 'hide_loading_screen'), take(1), tap((e) => {
|
|
60
|
+
if (hasValue(e.taskId)) {
|
|
61
|
+
this._vm.sendEvents([asyncResult(e.taskId, null)]);
|
|
62
|
+
}
|
|
63
|
+
}), map(() => ({
|
|
64
|
+
type: 'progress',
|
|
65
|
+
message: 'Done.',
|
|
66
|
+
progress: 1,
|
|
67
|
+
done: true,
|
|
68
|
+
})));
|
|
69
|
+
const allProgress = merge(vmProgress, portalProgress, hideProgress).pipe(takeWhile((m) => !m.done && !m.error, true));
|
|
70
|
+
this._sub = allProgress.subscribe(this._progress);
|
|
54
71
|
}
|
|
55
72
|
unsubscribe() {
|
|
56
73
|
this._sub.unsubscribe();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressManager.js","sourceRoot":"","sources":["ProgressManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProgressManager.js","sourceRoot":"","sources":["ProgressManager.ts"],"names":[],"mappings":"AAkBA,OAAO,EACH,WAAW,EACX,QAAQ,EACR,YAAY,GAEf,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,EACH,GAAG,EACH,SAAS,EACT,GAAG,EACH,MAAM,EACN,KAAK,EACL,QAAQ,EACR,SAAS,EACT,IAAI,GACP,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,OAAO,eAAe;IAMxB,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,YAAY,EAAS,EAAE,cAAkC;QACrD,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;QAEtC,IAAI,CAAC,SAAS,GAAG,IAAI,eAAe,CAAkB;YAClD,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,CAAC;YACX,OAAO,EAAE,aAAa;SACzB,CAAC,CAAC;QAEH,+CAA+C;QAC/C,MAAM,UAAU,GACZ,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI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,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC5B,CAAC;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IAC5B,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casual-simulation/aux-vm",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "A set of abstractions required to securely run an AUX.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aux"
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"url": "https://github.com/casual-simulation/casualos/issues"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@casual-simulation/aux-common": "^3.
|
|
43
|
-
"@casual-simulation/aux-records": "^3.
|
|
44
|
-
"@casual-simulation/aux-runtime": "^3.
|
|
42
|
+
"@casual-simulation/aux-common": "^3.6.0",
|
|
43
|
+
"@casual-simulation/aux-records": "^3.6.0",
|
|
44
|
+
"@casual-simulation/aux-runtime": "^3.6.0",
|
|
45
45
|
"@casual-simulation/crypto": "^3.5.0",
|
|
46
46
|
"@casual-simulation/fast-json-stable-stringify": "^3.5.0",
|
|
47
47
|
"@casual-simulation/timesync": "^3.5.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"rxjs": "8.0.0-alpha.14",
|
|
57
57
|
"uuid": "10.0.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "11d0f0e7b39bb282dc8f483e3ed809dc5a1d9495"
|
|
60
60
|
}
|