@casual-simulation/aux-vm-browser 2.0.29 → 2.0.34
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/managers/BotManager.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bot, BotTags } from '@casual-simulation/aux-common';
|
|
2
|
-
import { AuxUser, BaseSimulation, LoginManager, AuxConfig } from '@casual-simulation/aux-vm';
|
|
2
|
+
import { AuxUser, AuxVM, BaseSimulation, LoginManager, AuxConfig, RecordsManager } from '@casual-simulation/aux-vm';
|
|
3
3
|
import { BotPanelManager } from './BotPanelManager';
|
|
4
4
|
import { BrowserSimulation } from './BrowserSimulation';
|
|
5
5
|
import { PortalManager, ProgressManager } from '@casual-simulation/aux-vm';
|
|
@@ -30,10 +30,11 @@ export declare class BotManager extends BaseSimulation implements BrowserSimulat
|
|
|
30
30
|
get login(): LoginManager;
|
|
31
31
|
get progress(): ProgressManager;
|
|
32
32
|
get auth(): AuthHelper;
|
|
33
|
+
get records(): RecordsManager;
|
|
33
34
|
get consoleMessages(): Observable<ConsoleMessages>;
|
|
34
35
|
get portals(): PortalManager;
|
|
35
|
-
constructor(user: AuxUser, id: string, config: AuxConfig['config'], defaultHost?: string);
|
|
36
|
+
constructor(user: AuxUser, id: string, config: AuxConfig['config'], defaultHost?: string, createVm?: (user: AuxUser, config: AuxConfig) => AuxVM);
|
|
36
37
|
editBot(bot: Bot | BotTags, tag: string, value: any, space?: string): Promise<void>;
|
|
37
|
-
protected
|
|
38
|
+
protected _beforeVmInit(): void;
|
|
38
39
|
}
|
|
39
40
|
//# sourceMappingURL=BotManager.d.ts.map
|
package/managers/BotManager.js
CHANGED
|
@@ -11,7 +11,7 @@ import { parseSimulationId, createBot, TEMPORARY_BOT_PARTITION_ID, COOKIE_BOT_PA
|
|
|
11
11
|
import { BaseSimulation, LoginManager, RecordsManager, } from '@casual-simulation/aux-vm';
|
|
12
12
|
import { BotPanelManager } from './BotPanelManager';
|
|
13
13
|
import { AuxVMImpl } from '../vm/AuxVMImpl';
|
|
14
|
-
import { PortalManager, ProgressManager
|
|
14
|
+
import { PortalManager, ProgressManager } from '@casual-simulation/aux-vm';
|
|
15
15
|
import { filter, tap } from 'rxjs/operators';
|
|
16
16
|
import { getFinalUrl } from '@casual-simulation/aux-vm-client';
|
|
17
17
|
import { LocalStoragePartitionImpl } from '../partitions/LocalStoragePartition';
|
|
@@ -24,20 +24,22 @@ import { SystemPortalManager } from './SystemPortalManager';
|
|
|
24
24
|
* to reactively edit bots.
|
|
25
25
|
*/
|
|
26
26
|
export class BotManager extends BaseSimulation {
|
|
27
|
-
constructor(user, id, config, defaultHost = location.origin) {
|
|
28
|
-
super(id, config, createPartitions(), (config) =>
|
|
27
|
+
constructor(user, id, config, defaultHost = location.origin, createVm = (user, config) => new AuxVMImpl(user, config)) {
|
|
28
|
+
super(id, config, createPartitions(), (config) => createVm(user, config));
|
|
29
29
|
this.helper.userId = user ? user.id : null;
|
|
30
30
|
this._authHelper = new AuthHelper(config.authOrigin);
|
|
31
31
|
this._login = new LoginManager(this._vm);
|
|
32
32
|
this._progress = new ProgressManager(this._vm);
|
|
33
33
|
function createPartitions() {
|
|
34
|
+
var _a;
|
|
34
35
|
const parsedId = parseSimulationId(id);
|
|
35
36
|
const host = getFinalUrl(defaultHost, parsedId.host);
|
|
36
37
|
const causalRepoHost = getFinalUrl(config.causalRepoConnectionUrl || defaultHost, parsedId.host);
|
|
37
38
|
const protocol = config.causalRepoConnectionProtocol;
|
|
38
39
|
const versions = config.sharedPartitionsVersion;
|
|
39
40
|
const isV2 = versions === 'v2';
|
|
40
|
-
|
|
41
|
+
const isCollaborative = !!((_a = config.device) === null || _a === void 0 ? void 0 : _a.isCollaborative);
|
|
42
|
+
if (!isCollaborative) {
|
|
41
43
|
console.log('[BotManager] Disabling Collaboration Features');
|
|
42
44
|
}
|
|
43
45
|
else {
|
|
@@ -48,7 +50,7 @@ export class BotManager extends BaseSimulation {
|
|
|
48
50
|
let partitions = {
|
|
49
51
|
// Use a memory partition instead of a shared partition
|
|
50
52
|
// when collaboration is disabled.
|
|
51
|
-
shared:
|
|
53
|
+
shared: isCollaborative
|
|
52
54
|
? isV2
|
|
53
55
|
? {
|
|
54
56
|
type: 'remote_yjs',
|
|
@@ -83,7 +85,7 @@ export class BotManager extends BaseSimulation {
|
|
|
83
85
|
}),
|
|
84
86
|
},
|
|
85
87
|
},
|
|
86
|
-
[TEMPORARY_SHARED_PARTITION_ID]:
|
|
88
|
+
[TEMPORARY_SHARED_PARTITION_ID]: isCollaborative
|
|
87
89
|
? isV2
|
|
88
90
|
? {
|
|
89
91
|
type: 'remote_yjs',
|
|
@@ -105,8 +107,7 @@ export class BotManager extends BaseSimulation {
|
|
|
105
107
|
type: 'memory',
|
|
106
108
|
initialState: {},
|
|
107
109
|
},
|
|
108
|
-
[REMOTE_TEMPORARY_SHARED_PARTITION_ID]:
|
|
109
|
-
.isCollaborative
|
|
110
|
+
[REMOTE_TEMPORARY_SHARED_PARTITION_ID]: isCollaborative
|
|
110
111
|
? {
|
|
111
112
|
type: 'other_players_repo',
|
|
112
113
|
branch: parsedId.channel,
|
|
@@ -125,10 +126,10 @@ export class BotManager extends BaseSimulation {
|
|
|
125
126
|
private: true,
|
|
126
127
|
},
|
|
127
128
|
};
|
|
128
|
-
// Enable the admin partition and error partition when using the
|
|
129
|
+
// Enable the admin partition and error partition when using the websocket protocol.
|
|
129
130
|
if (!config.causalRepoConnectionProtocol ||
|
|
130
|
-
config.causalRepoConnectionProtocol === '
|
|
131
|
-
partitions[ADMIN_PARTITION_ID] =
|
|
131
|
+
config.causalRepoConnectionProtocol === 'websocket') {
|
|
132
|
+
partitions[ADMIN_PARTITION_ID] = isCollaborative
|
|
132
133
|
? {
|
|
133
134
|
type: 'remote_causal_repo',
|
|
134
135
|
branch: ADMIN_BRANCH_NAME,
|
|
@@ -163,6 +164,9 @@ export class BotManager extends BaseSimulation {
|
|
|
163
164
|
get auth() {
|
|
164
165
|
return this._authHelper;
|
|
165
166
|
}
|
|
167
|
+
get records() {
|
|
168
|
+
return this._recordsManager;
|
|
169
|
+
}
|
|
166
170
|
get consoleMessages() {
|
|
167
171
|
return (this._vm.connectionStateChanged.pipe(filter((m) => m.type === 'log' ||
|
|
168
172
|
m.type === 'error' ||
|
|
@@ -182,24 +186,20 @@ export class BotManager extends BaseSimulation {
|
|
|
182
186
|
}
|
|
183
187
|
});
|
|
184
188
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
this.
|
|
198
|
-
|
|
199
|
-
this._subscriptions.push(this._vm.localEvents
|
|
200
|
-
.pipe(tap((e) => this._recordsManager.handleEvents(e)))
|
|
201
|
-
.subscribe());
|
|
202
|
-
});
|
|
189
|
+
_beforeVmInit() {
|
|
190
|
+
super._beforeVmInit();
|
|
191
|
+
this._portals = new PortalManager(this._vm);
|
|
192
|
+
this._botPanel = new BotPanelManager(this._watcher, this._helper);
|
|
193
|
+
this._idePortal = new IdePortalManager(this._watcher, this.helper);
|
|
194
|
+
this._systemPortal = new SystemPortalManager(this._watcher, this.helper);
|
|
195
|
+
this._recordsManager = new RecordsManager(this._config, this._helper, this._authHelper);
|
|
196
|
+
this._subscriptions.push(this._portals);
|
|
197
|
+
this._subscriptions.push(this._botPanel);
|
|
198
|
+
this._subscriptions.push(this._idePortal);
|
|
199
|
+
this._subscriptions.push(this._systemPortal);
|
|
200
|
+
this._subscriptions.push(this._vm.localEvents
|
|
201
|
+
.pipe(tap((e) => this._recordsManager.handleEvents(e)))
|
|
202
|
+
.subscribe());
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
//# sourceMappingURL=BotManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BotManager.js","sourceRoot":"","sources":["Bot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CAAC,cAAc,CAAC,IAAI,CACpB,IAAI,CAAC,GAAG,CAAC,WAAW;aACf,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;aACtD,SAAS,EAAE,CACnB,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BotPanelManager } from './BotPanelManager';
|
|
2
|
-
import { ProgressManager } from '@casual-simulation/aux-vm';
|
|
2
|
+
import { ProgressManager, RecordsManager } from '@casual-simulation/aux-vm';
|
|
3
3
|
import { RemoteSimulation } from '@casual-simulation/aux-vm-client';
|
|
4
4
|
import { ConsoleMessages } from '@casual-simulation/causal-trees';
|
|
5
5
|
import { Bot } from '@casual-simulation/aux-common';
|
|
@@ -35,6 +35,10 @@ export interface BrowserSimulation extends RemoteSimulation {
|
|
|
35
35
|
* The observable list of console messages from the simulation.
|
|
36
36
|
*/
|
|
37
37
|
consoleMessages: Observable<ConsoleMessages>;
|
|
38
|
+
/**
|
|
39
|
+
* Gets the records manager.
|
|
40
|
+
*/
|
|
41
|
+
records: RecordsManager;
|
|
38
42
|
/**
|
|
39
43
|
* Edits the given bot and tag as if the user edited it manually.
|
|
40
44
|
* This means adding the correct recent bot record in addition to actually updating the bot.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casual-simulation/aux-vm-browser",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.34",
|
|
4
4
|
"description": "A set of utilities required to securely run an AUX in a web browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aux"
|
|
@@ -41,19 +41,17 @@
|
|
|
41
41
|
"url": "https://github.com/casual-simulation/casualos/issues"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@casual-simulation/aux-common": "^2.0.
|
|
45
|
-
"@casual-simulation/aux-records": "^2.0.
|
|
46
|
-
"@casual-simulation/aux-vm": "^2.0.
|
|
47
|
-
"@casual-simulation/aux-vm-client": "^2.0.
|
|
48
|
-
"@casual-simulation/causal-tree-client-socketio": "^2.0.22",
|
|
44
|
+
"@casual-simulation/aux-common": "^2.0.34",
|
|
45
|
+
"@casual-simulation/aux-records": "^2.0.34",
|
|
46
|
+
"@casual-simulation/aux-vm": "^2.0.34",
|
|
47
|
+
"@casual-simulation/aux-vm-client": "^2.0.34",
|
|
49
48
|
"@casual-simulation/causal-trees": "^2.0.22",
|
|
50
49
|
"@casual-simulation/crypto": "^2.0.22",
|
|
51
50
|
"@casual-simulation/crypto-browser": "^2.0.22",
|
|
52
51
|
"comlink": "^4.0.1",
|
|
53
52
|
"lodash": "4.17.21",
|
|
54
53
|
"rxjs": "^6.5.2",
|
|
55
|
-
"socket.io-client": "2.1.1",
|
|
56
54
|
"uuid": "^8.3.2"
|
|
57
55
|
},
|
|
58
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "964c230d49195946f361300aabd29c3ca7da0b66"
|
|
59
57
|
}
|