@casual-simulation/aux-vm-browser 3.4.6-alpha.14601027727 → 3.5.0-alpha.15117651144
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/html/IFrameHelpers.js +28 -39
- package/html/IFrameHelpers.js.map +1 -1
- package/managers/AuthCoordinator.d.ts +9 -0
- package/managers/AuthCoordinator.js +369 -383
- package/managers/AuthCoordinator.js.map +1 -1
- package/managers/AuthEndpointHelper.d.ts +3 -2
- package/managers/AuthEndpointHelper.js +399 -462
- package/managers/AuthEndpointHelper.js.map +1 -1
- package/managers/AuthHelper.js +2 -2
- package/managers/AuthHelper.js.map +1 -1
- package/managers/BotManager.js +54 -58
- package/managers/BotManager.js.map +1 -1
- package/managers/BotPanelManager.js +2 -11
- package/managers/BotPanelManager.js.map +1 -1
- package/managers/BrowserSimulationCalculations.js +1 -1
- package/managers/BrowserSimulationCalculations.js.map +1 -1
- package/managers/IdePortalManager.js +2 -11
- package/managers/IdePortalManager.js.map +1 -1
- package/managers/LivekitManager.js +320 -324
- package/managers/LivekitManager.js.map +1 -1
- package/managers/SystemPortalCoordinator.js +74 -66
- package/managers/SystemPortalCoordinator.js.map +1 -1
- package/package.json +15 -12
- package/partitions/LocalStoragePartition.d.ts +6 -0
- package/partitions/LocalStoragePartition.js +45 -47
- package/partitions/LocalStoragePartition.js.map +1 -1
- package/partitions/ProxyClientPartition.js +28 -40
- package/partitions/ProxyClientPartition.js.map +1 -1
- package/vm/AuxVMImpl.js +120 -153
- package/vm/AuxVMImpl.js.map +1 -1
- package/vm/BrowserAuxChannel.js +9 -22
- package/vm/BrowserAuxChannel.js.map +1 -1
- package/vm/ConnectableAuxVM.js +54 -85
- package/vm/ConnectableAuxVM.js.map +1 -1
- package/vm/StaticAuxVMImpl.d.ts +91 -3
- package/vm/StaticAuxVMImpl.js +198 -108
- package/vm/StaticAuxVMImpl.js.map +1 -1
- package/vm/WorkerEntryHelpers.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectableAuxVM.js","sourceRoot":"","sources":["ConnectableAuxVM.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConnectableAuxVM.js","sourceRoot":"","sources":["ConnectableAuxVM.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAIlE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAG7C;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAwBzB,IAAI,EAAE;QACF,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED,YACI,EAAU,EACV,MAAwB,EACxB,WAAmB,EACnB,IAAiB;QAEjB,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,IAAI,OAAO,EAAoB,CAAC;QACpD,IAAI,CAAC,aAAa,GAAG,IAAI,OAAO,EAAkB,CAAC;QACnD,IAAI,CAAC,aAAa,GAAG,IAAI,OAAO,EAAqB,CAAC;QACtD,IAAI,CAAC,eAAe,GAAG,IAAI,OAAO,EAAuB,CAAC;QAC1D,IAAI,CAAC,uBAAuB,GAAG,IAAI,OAAO,EAAgB,CAAC;QAC3D,IAAI,CAAC,QAAQ,GAAG,IAAI,OAAO,EAAuB,CAAC;QACnD,IAAI,CAAC,WAAW,GAAG,IAAI,OAAO,EA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AmB,EACnB,OAA2B;QAE3B,OAAO,IAAI,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED,eAAe,CAAC,OAA6B;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IAEO,KAAK,CAAC,sBAAsB,CAAC,UAAyB;QAC1D,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC;QACvD,MAAM,OAAO,GACT,CAAC,MAAM,UAAU,CAAC,UAAU,EAAE,CAAkC,CAAC;QAErE,MAAM,KAAK,GAAG;YACV,EAAE;YACF,EAAE,EAAE,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC;YAC5D,OAAO;SACV,CAAC;QAEF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAEO,KAAK,CAAC,wBAAwB,CAAC,SAAiB;QACpD,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACzC,IAAI,EAAE,EAAE,CAAC;YACL,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YACjC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAChC,CAAC;IACL,CAAC;CACJ"}
|
package/vm/StaticAuxVMImpl.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { AuxChannel, AuxChannelErrorType, AuxConfig, AuxSubChannel, AuxSubVM, AuxVM, ChannelActionResult } from '@casual-simulation/aux-vm/vm';
|
|
2
|
+
import type { BotAction, DeviceAction, PartitionAuthMessage, StateUpdatedEvent, StatusUpdate, StoredAux } from '@casual-simulation/aux-common';
|
|
3
|
+
import type { Observable } from 'rxjs';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import type { AuxDevice, RuntimeActions, RuntimeStateVersion } from '@casual-simulation/aux-runtime';
|
|
6
|
+
import type { SimulationOrigin } from '@casual-simulation/aux-vm/managers';
|
|
2
7
|
export declare const DEFAULT_IFRAME_ALLOW_ATTRIBUTE = "accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking";
|
|
3
8
|
export declare const DEFAULT_IFRAME_SANDBOX_ATTRIBUTE = "allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts allow-downloads";
|
|
4
9
|
/**
|
|
@@ -7,9 +12,92 @@ export declare const DEFAULT_IFRAME_SANDBOX_ATTRIBUTE = "allow-forms allow-modal
|
|
|
7
12
|
*
|
|
8
13
|
* This implementation works similarly to the one in AuxVMImpl, but instead of using an iframe, it loads the web worker directly.
|
|
9
14
|
*/
|
|
10
|
-
export default class StaticAuxVMImpl
|
|
11
|
-
|
|
15
|
+
export default class StaticAuxVMImpl implements AuxVM {
|
|
16
|
+
protected _localEvents: Subject<RuntimeActions[]>;
|
|
17
|
+
protected _deviceEvents: Subject<DeviceAction[]>;
|
|
18
|
+
protected _connectionStateChanged: Subject<StatusUpdate>;
|
|
19
|
+
protected _stateUpdated: Subject<StateUpdatedEvent>;
|
|
20
|
+
protected _versionUpdated: Subject<RuntimeStateVersion>;
|
|
21
|
+
protected _onError: Subject<AuxChannelErrorType>;
|
|
22
|
+
protected _subVMAdded: Subject<AuxSubVM>;
|
|
23
|
+
protected _subVMRemoved: Subject<AuxSubVM>;
|
|
24
|
+
protected _subVMMap: Map<string, AuxSubVM & {
|
|
25
|
+
channel: AuxChannel;
|
|
26
|
+
}>;
|
|
27
|
+
protected _onAuthMessage: Subject<PartitionAuthMessage>;
|
|
28
|
+
protected _config: AuxConfig;
|
|
29
|
+
protected _channel: AuxChannel;
|
|
30
|
+
protected _id: string;
|
|
31
|
+
protected _relaxOrigin: boolean;
|
|
32
|
+
protected _origin: SimulationOrigin;
|
|
33
|
+
closed: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the simulation.
|
|
36
|
+
*/
|
|
37
|
+
get id(): string;
|
|
38
|
+
get configBotId(): string;
|
|
39
|
+
/**
|
|
40
|
+
* Creates a new Simulation VM.
|
|
41
|
+
* @param id The ID of the simulation.
|
|
42
|
+
* @param origin The origin of the simulation.
|
|
43
|
+
* @param config The config that should be used.
|
|
44
|
+
* @param relaxOrigin Whether to relax the origin of the VM.
|
|
45
|
+
*/
|
|
46
|
+
constructor(id: string, origin: SimulationOrigin, config: AuxConfig, relaxOrigin?: boolean);
|
|
47
|
+
get origin(): SimulationOrigin;
|
|
48
|
+
get subVMAdded(): Observable<AuxSubVM>;
|
|
49
|
+
get subVMRemoved(): Observable<AuxSubVM>;
|
|
50
|
+
get connectionStateChanged(): Observable<StatusUpdate>;
|
|
51
|
+
get onError(): Observable<AuxChannelErrorType>;
|
|
52
|
+
get onAuthMessage(): Observable<PartitionAuthMessage>;
|
|
53
|
+
/**
|
|
54
|
+
* The observable list of events that should be produced locally.
|
|
55
|
+
*/
|
|
56
|
+
get localEvents(): Observable<RuntimeActions[]>;
|
|
57
|
+
get deviceEvents(): Observable<DeviceAction[]>;
|
|
58
|
+
/**
|
|
59
|
+
* The observable list of bot state updates from this simulation.
|
|
60
|
+
*/
|
|
61
|
+
get stateUpdated(): Observable<StateUpdatedEvent>;
|
|
62
|
+
get versionUpdated(): Observable<RuntimeStateVersion>;
|
|
63
|
+
/**
|
|
64
|
+
* Initaializes the VM.
|
|
65
|
+
*/
|
|
66
|
+
init(): Promise<void>;
|
|
12
67
|
protected _init(): Promise<void>;
|
|
68
|
+
private _connect;
|
|
69
|
+
/**
|
|
70
|
+
* Sends the given list of events to the simulation.
|
|
71
|
+
* @param events The events to send to the simulation.
|
|
72
|
+
*/
|
|
73
|
+
sendEvents(events: BotAction[]): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Executes a shout with the given event name on the given bot IDs with the given argument.
|
|
76
|
+
* Also dispatches any actions and errors that occur.
|
|
77
|
+
* Returns the results from the event.
|
|
78
|
+
* @param eventName The name of the event.
|
|
79
|
+
* @param botIds The IDs of the bots that the shout is being sent to.
|
|
80
|
+
* @param arg The argument to include in the shout.
|
|
81
|
+
*/
|
|
82
|
+
shout(eventName: string, botIds?: string[], arg?: any): Promise<ChannelActionResult>;
|
|
83
|
+
formulaBatch(formulas: string[]): Promise<void>;
|
|
84
|
+
forkAux(newId: string): Promise<void>;
|
|
85
|
+
exportBots(botIds: string[]): Promise<StoredAux>;
|
|
86
|
+
/**
|
|
87
|
+
* Exports the causal tree for the simulation.
|
|
88
|
+
*/
|
|
89
|
+
export(): Promise<StoredAux>;
|
|
90
|
+
getTags(): Promise<string[]>;
|
|
91
|
+
updateDevice(device: AuxDevice): Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* Gets a new endpoint for the aux channel.
|
|
94
|
+
* Can then be used with a ConnectableAuxVM.
|
|
95
|
+
*/
|
|
96
|
+
createEndpoint(): Promise<MessagePort>;
|
|
97
|
+
sendAuthMessage(message: PartitionAuthMessage): Promise<void>;
|
|
13
98
|
unsubscribe(): void;
|
|
99
|
+
protected _createSubVM(id: string, origin: SimulationOrigin, configBotId: string, channel: AuxChannel): AuxVM;
|
|
100
|
+
protected _handleAddedSubChannel(subChannel: AuxSubChannel): Promise<void>;
|
|
101
|
+
protected _handleRemovedSubChannel(channelId: string): Promise<void>;
|
|
14
102
|
}
|
|
15
103
|
//# sourceMappingURL=StaticAuxVMImpl.d.ts.map
|
package/vm/StaticAuxVMImpl.js
CHANGED
|
@@ -1,35 +1,8 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
/* CasualOS is a set of web-based tools designed to facilitate the creation of real-time, multi-user, context-aware interactive experiences.
|
|
11
|
-
*
|
|
12
|
-
* Copyright (c) 2019-2025 Casual Simulation, Inc.
|
|
13
|
-
*
|
|
14
|
-
* This program is free software: you can redistribute it and/or modify
|
|
15
|
-
* it under the terms of the GNU Affero General Public License as
|
|
16
|
-
* published by the Free Software Foundation, either version 3 of the
|
|
17
|
-
* License, or (at your option) any later version.
|
|
18
|
-
*
|
|
19
|
-
* This program is distributed in the hope that it will be useful,
|
|
20
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
21
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
22
|
-
* GNU Affero General Public License for more details.
|
|
23
|
-
*
|
|
24
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
25
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
26
|
-
*/
|
|
27
|
-
import { wrap, proxy } from 'comlink';
|
|
28
|
-
import { setupChannel } from '../html/IFrameHelpers';
|
|
29
1
|
import { remapProgressPercent } from '@casual-simulation/aux-common';
|
|
30
2
|
// import Worker from './AuxWorker';
|
|
31
|
-
import Worker from './AuxChannel.worker?worker&inline';
|
|
32
|
-
import
|
|
3
|
+
// import Worker from './AuxChannel.worker?worker&inline';
|
|
4
|
+
import { BrowserAuxChannel } from './BrowserAuxChannel';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
33
6
|
export const DEFAULT_IFRAME_ALLOW_ATTRIBUTE = 'accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking';
|
|
34
7
|
export const DEFAULT_IFRAME_SANDBOX_ATTRIBUTE = 'allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts allow-downloads';
|
|
35
8
|
/**
|
|
@@ -38,91 +11,208 @@ export const DEFAULT_IFRAME_SANDBOX_ATTRIBUTE = 'allow-forms allow-modals allow-
|
|
|
38
11
|
*
|
|
39
12
|
* This implementation works similarly to the one in AuxVMImpl, but instead of using an iframe, it loads the web worker directly.
|
|
40
13
|
*/
|
|
41
|
-
export default class StaticAuxVMImpl
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
14
|
+
export default class StaticAuxVMImpl {
|
|
15
|
+
/**
|
|
16
|
+
* The ID of the simulation.
|
|
17
|
+
*/
|
|
18
|
+
get id() {
|
|
19
|
+
return this._id;
|
|
20
|
+
}
|
|
21
|
+
get configBotId() {
|
|
22
|
+
return this._config.configBotId;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Creates a new Simulation VM.
|
|
26
|
+
* @param id The ID of the simulation.
|
|
27
|
+
* @param origin The origin of the simulation.
|
|
28
|
+
* @param config The config that should be used.
|
|
29
|
+
* @param relaxOrigin Whether to relax the origin of the VM.
|
|
30
|
+
*/
|
|
31
|
+
constructor(id, origin, config, relaxOrigin = false) {
|
|
32
|
+
this._id = id;
|
|
33
|
+
this._origin = origin;
|
|
34
|
+
this._config = config;
|
|
35
|
+
this._relaxOrigin = relaxOrigin;
|
|
36
|
+
this._localEvents = new Subject();
|
|
37
|
+
this._deviceEvents = new Subject();
|
|
38
|
+
this._stateUpdated = new Subject();
|
|
39
|
+
this._versionUpdated = new Subject();
|
|
40
|
+
this._connectionStateChanged = new Subject();
|
|
41
|
+
this._onError = new Subject();
|
|
42
|
+
this._subVMAdded = new Subject();
|
|
43
|
+
this._subVMRemoved = new Subject();
|
|
44
|
+
this._subVMMap = new Map();
|
|
45
|
+
this._onAuthMessage = new Subject();
|
|
46
|
+
}
|
|
47
|
+
get origin() {
|
|
48
|
+
return this._origin;
|
|
49
|
+
}
|
|
50
|
+
get subVMAdded() {
|
|
51
|
+
return this._subVMAdded;
|
|
52
|
+
}
|
|
53
|
+
get subVMRemoved() {
|
|
54
|
+
return this._subVMRemoved;
|
|
55
|
+
}
|
|
56
|
+
get connectionStateChanged() {
|
|
57
|
+
return this._connectionStateChanged;
|
|
58
|
+
}
|
|
59
|
+
get onError() {
|
|
60
|
+
return this._onError;
|
|
61
|
+
}
|
|
62
|
+
get onAuthMessage() {
|
|
63
|
+
return this._onAuthMessage;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The observable list of events that should be produced locally.
|
|
67
|
+
*/
|
|
68
|
+
get localEvents() {
|
|
69
|
+
return this._localEvents;
|
|
70
|
+
}
|
|
71
|
+
get deviceEvents() {
|
|
72
|
+
return this._deviceEvents;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The observable list of bot state updates from this simulation.
|
|
76
|
+
*/
|
|
77
|
+
get stateUpdated() {
|
|
78
|
+
return this._stateUpdated;
|
|
79
|
+
}
|
|
80
|
+
get versionUpdated() {
|
|
81
|
+
return this._versionUpdated;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Initaializes the VM.
|
|
85
|
+
*/
|
|
86
|
+
async init() {
|
|
87
|
+
return await this._init();
|
|
88
|
+
}
|
|
89
|
+
async _init() {
|
|
90
|
+
this._connectionStateChanged.next({
|
|
91
|
+
type: 'progress',
|
|
92
|
+
message: 'Initializing web worker...',
|
|
93
|
+
progress: 0.1,
|
|
114
94
|
});
|
|
95
|
+
this._connectionStateChanged.next({
|
|
96
|
+
type: 'progress',
|
|
97
|
+
message: 'Creating VM...',
|
|
98
|
+
progress: 0.2,
|
|
99
|
+
});
|
|
100
|
+
if (!this._channel) {
|
|
101
|
+
this._channel = new BrowserAuxChannel(location.origin, this._config);
|
|
102
|
+
}
|
|
103
|
+
return await this._connect();
|
|
104
|
+
}
|
|
105
|
+
async _connect() {
|
|
106
|
+
let statusMapper = remapProgressPercent(0.2, 1);
|
|
107
|
+
return await this._channel.init((events) => this._localEvents.next(events), (events) => this._deviceEvents.next(events), (state) => this._stateUpdated.next(state), (version) => this._versionUpdated.next(version), (state) => this._connectionStateChanged.next(statusMapper(state)), (err) => this._onError.next(err), (channel) => this._handleAddedSubChannel(channel), (id) => this._handleRemovedSubChannel(id), (message) => this._onAuthMessage.next(message));
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Sends the given list of events to the simulation.
|
|
111
|
+
* @param events The events to send to the simulation.
|
|
112
|
+
*/
|
|
113
|
+
async sendEvents(events) {
|
|
114
|
+
if (!this._channel)
|
|
115
|
+
return null;
|
|
116
|
+
return await this._channel.sendEvents(events);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Executes a shout with the given event name on the given bot IDs with the given argument.
|
|
120
|
+
* Also dispatches any actions and errors that occur.
|
|
121
|
+
* Returns the results from the event.
|
|
122
|
+
* @param eventName The name of the event.
|
|
123
|
+
* @param botIds The IDs of the bots that the shout is being sent to.
|
|
124
|
+
* @param arg The argument to include in the shout.
|
|
125
|
+
*/
|
|
126
|
+
async shout(eventName, botIds, arg) {
|
|
127
|
+
if (!this._channel)
|
|
128
|
+
return null;
|
|
129
|
+
return await this._channel.shout(eventName, botIds, arg);
|
|
130
|
+
}
|
|
131
|
+
async formulaBatch(formulas) {
|
|
132
|
+
if (!this._channel)
|
|
133
|
+
return null;
|
|
134
|
+
return await this._channel.formulaBatch(formulas);
|
|
135
|
+
}
|
|
136
|
+
async forkAux(newId) {
|
|
137
|
+
if (!this._channel)
|
|
138
|
+
return null;
|
|
139
|
+
return await this._channel.forkAux(newId);
|
|
140
|
+
}
|
|
141
|
+
async exportBots(botIds) {
|
|
142
|
+
if (!this._channel)
|
|
143
|
+
return null;
|
|
144
|
+
return await this._channel.exportBots(botIds);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Exports the causal tree for the simulation.
|
|
148
|
+
*/
|
|
149
|
+
async export() {
|
|
150
|
+
if (!this._channel)
|
|
151
|
+
return null;
|
|
152
|
+
return await this._channel.export();
|
|
153
|
+
}
|
|
154
|
+
async getTags() {
|
|
155
|
+
if (!this._channel)
|
|
156
|
+
return null;
|
|
157
|
+
return await this._channel.getTags();
|
|
158
|
+
}
|
|
159
|
+
async updateDevice(device) {
|
|
160
|
+
if (!this._channel)
|
|
161
|
+
return null;
|
|
162
|
+
return await this._channel.updateDevice(device);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Gets a new endpoint for the aux channel.
|
|
166
|
+
* Can then be used with a ConnectableAuxVM.
|
|
167
|
+
*/
|
|
168
|
+
createEndpoint() {
|
|
169
|
+
return null;
|
|
170
|
+
// return this._channel[createEndpoint]();
|
|
171
|
+
}
|
|
172
|
+
sendAuthMessage(message) {
|
|
173
|
+
return this._channel.sendAuthMessage(message);
|
|
115
174
|
}
|
|
116
175
|
unsubscribe() {
|
|
117
176
|
if (this.closed) {
|
|
118
177
|
return;
|
|
119
178
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
this.
|
|
123
|
-
|
|
179
|
+
this.closed = true;
|
|
180
|
+
if (this._channel) {
|
|
181
|
+
this._channel.unsubscribe();
|
|
182
|
+
this._channel = null;
|
|
183
|
+
}
|
|
184
|
+
this._connectionStateChanged.unsubscribe();
|
|
185
|
+
this._connectionStateChanged = null;
|
|
186
|
+
this._localEvents.unsubscribe();
|
|
187
|
+
this._localEvents = null;
|
|
188
|
+
}
|
|
189
|
+
_createSubVM(id, origin, configBotId, channel) {
|
|
190
|
+
const vm = new StaticAuxVMImpl(id, origin, {
|
|
191
|
+
...this._config,
|
|
192
|
+
configBotId,
|
|
193
|
+
});
|
|
194
|
+
vm._channel = channel;
|
|
195
|
+
return vm;
|
|
196
|
+
// return null;
|
|
197
|
+
// return new RemoteAuxVM(id, origin, configBotId, channel);
|
|
198
|
+
}
|
|
199
|
+
async _handleAddedSubChannel(subChannel) {
|
|
200
|
+
const { id, configBotId } = await subChannel.getInfo();
|
|
201
|
+
const channel = (await subChannel.getChannel());
|
|
202
|
+
const subVM = {
|
|
203
|
+
id: id,
|
|
204
|
+
vm: this._createSubVM(id, this.origin, configBotId, channel),
|
|
205
|
+
channel,
|
|
206
|
+
};
|
|
207
|
+
this._subVMMap.set(id, subVM);
|
|
208
|
+
this._subVMAdded.next(subVM);
|
|
209
|
+
}
|
|
210
|
+
async _handleRemovedSubChannel(channelId) {
|
|
211
|
+
const vm = this._subVMMap.get(channelId);
|
|
212
|
+
if (vm) {
|
|
213
|
+
this._subVMMap.delete(channelId);
|
|
214
|
+
this._subVMRemoved.next(vm);
|
|
124
215
|
}
|
|
125
|
-
super.unsubscribe();
|
|
126
216
|
}
|
|
127
217
|
}
|
|
128
218
|
//# sourceMappingURL=StaticAuxVMImpl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StaticAuxVMImpl.js","sourceRoot":"","sources":["StaticAuxVMImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StaticAuxVMImpl.js","sourceRoot":"","sources":["StaticAuxVMImpl.ts"],"names":[],"mappings":"AAoCA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,oCAAoC;AACpC,0DAA0D;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAQ/B,MAAM,CAAC,MAAM,8BAA8B,GACvC,oJAAoJ,CAAC;AACzJ,MAAM,CAAC,MAAM,gCAAgC,GACzC,0GAA0G,CAAC;AAE/G;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,eAAe;IAwBhC;;OAEG;IACH,IAAI,EAAE;QACF,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAED,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;IACpC,CAAC;IAED;;;;;;OAMG;IACH,YACI,EAAU,EACV,MAAwB,EACxB,MAAiB,EACjB,cAAuB,KAAK;QAE5B,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,YAAY,GAAG,IAAI,OAAO,EAA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