@casual-simulation/aux-records 3.4.6-alpha.14668890889 → 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/AIController.js +835 -890
- package/AIController.js.map +1 -1
- package/AIHumeInterface.js +43 -54
- package/AIHumeInterface.js.map +1 -1
- package/AIOpenAIRealtimeInterface.js +60 -71
- package/AIOpenAIRealtimeInterface.js.map +1 -1
- package/AnthropicAIChatInterface.js +96 -142
- package/AnthropicAIChatInterface.js.map +1 -1
- package/AuthController.d.ts +3 -2
- package/AuthController.js +1907 -1933
- package/AuthController.js.map +1 -1
- package/AuthStore.d.ts +1 -10
- package/BlockadeLabsGenerateSkyboxInterface.js +57 -72
- package/BlockadeLabsGenerateSkyboxInterface.js.map +1 -1
- package/CachingConfigStore.js +30 -45
- package/CachingConfigStore.js.map +1 -1
- package/CachingPolicyStore.d.ts +8 -2
- package/CachingPolicyStore.js +108 -135
- package/CachingPolicyStore.js.map +1 -1
- package/ComIdConfig.d.ts +18 -18
- package/ComIdConfig.js.map +1 -1
- package/ConsoleAuthMessenger.js +7 -20
- package/ConsoleAuthMessenger.js.map +1 -1
- package/DataRecordsController.d.ts +2 -2
- package/DataRecordsController.js +369 -377
- package/DataRecordsController.js.map +1 -1
- package/DataRecordsStore.d.ts +1 -1
- package/DataRecordsStore.js +1 -1
- package/DataRecordsStore.js.map +1 -1
- package/EventRecordsController.js +226 -240
- package/EventRecordsController.js.map +1 -1
- package/FileRecordsController.d.ts +13 -2
- package/FileRecordsController.js +458 -450
- package/FileRecordsController.js.map +1 -1
- package/GoogleAIChatInterface.js +133 -179
- package/GoogleAIChatInterface.js.map +1 -1
- package/LivekitController.js +43 -54
- package/LivekitController.js.map +1 -1
- package/LoomController.js +64 -75
- package/LoomController.js.map +1 -1
- package/MemoryAuthMessenger.js +10 -23
- package/MemoryAuthMessenger.js.map +1 -1
- package/MemoryCache.js +18 -35
- package/MemoryCache.js.map +1 -1
- package/MemoryFileRecordsLookup.js +105 -125
- package/MemoryFileRecordsLookup.js.map +1 -1
- package/MemoryModerationJobProvider.js +17 -30
- package/MemoryModerationJobProvider.js.map +1 -1
- package/MemoryRateLimiter.js +12 -27
- package/MemoryRateLimiter.js.map +1 -1
- package/MemoryStore.d.ts +18 -6
- package/MemoryStore.js +1879 -1997
- package/MemoryStore.js.map +1 -1
- package/MetricsStore.d.ts +2 -2
- package/ModerationController.js +186 -200
- package/ModerationController.js.map +1 -1
- package/OpenAIChatInterface.js +105 -135
- package/OpenAIChatInterface.js.map +1 -1
- package/OpenAIImageInterface.js +57 -51
- package/OpenAIImageInterface.js.map +1 -1
- package/PolicyController.d.ts +150 -10
- package/PolicyController.js +1546 -1299
- package/PolicyController.js.map +1 -1
- package/PolicyStore.d.ts +110 -2
- package/PolicyStore.js +36 -1
- package/PolicyStore.js.map +1 -1
- package/PrivoClient.js +398 -435
- package/PrivoClient.js.map +1 -1
- package/RateLimitController.js +25 -36
- package/RateLimitController.js.map +1 -1
- package/RecordsClient.js +51 -74
- package/RecordsClient.js.map +1 -1
- package/RecordsController.d.ts +2 -42
- package/RecordsController.js +1026 -1182
- package/RecordsController.js.map +1 -1
- package/RecordsServer.d.ts +196 -27
- package/RecordsServer.js +1701 -1343
- package/RecordsServer.js.map +1 -1
- package/RecordsStore.d.ts +1 -10
- package/RecordsStore.js.map +1 -1
- package/ServerConfig.d.ts +339 -195
- package/ServerConfig.js +13 -0
- package/ServerConfig.js.map +1 -1
- package/SloydInterface.js +62 -75
- package/SloydInterface.js.map +1 -1
- package/StabilityAIImageInterface.js +150 -167
- package/StabilityAIImageInterface.js.map +1 -1
- package/SubscriptionConfigBuilder.d.ts +6 -1
- package/SubscriptionConfigBuilder.js +22 -0
- package/SubscriptionConfigBuilder.js.map +1 -1
- package/SubscriptionConfiguration.d.ts +266 -169
- package/SubscriptionConfiguration.js +101 -79
- package/SubscriptionConfiguration.js.map +1 -1
- package/SubscriptionController.d.ts +2 -1
- package/SubscriptionController.js +643 -650
- package/SubscriptionController.js.map +1 -1
- package/SystemNotificationMessenger.d.ts +21 -4
- package/SystemNotificationMessenger.js +36 -30
- package/SystemNotificationMessenger.js.map +1 -1
- package/TestUtils.d.ts +9 -1
- package/TestUtils.js +105 -129
- package/TestUtils.js.map +1 -1
- package/Utils.d.ts +2 -16
- package/Utils.js +21 -22
- package/Utils.js.map +1 -1
- package/crud/CrudHelpers.js +17 -26
- package/crud/CrudHelpers.js.map +1 -1
- package/crud/CrudRecordsController.d.ts +1 -1
- package/crud/CrudRecordsController.js +259 -267
- package/crud/CrudRecordsController.js.map +1 -1
- package/crud/CrudRecordsControllerTests.js +174 -185
- package/crud/CrudRecordsControllerTests.js.map +1 -1
- package/crud/CrudRecordsStore.d.ts +7 -3
- package/crud/MemoryCrudRecordsStore.d.ts +4 -4
- package/crud/MemoryCrudRecordsStore.js +98 -118
- package/crud/MemoryCrudRecordsStore.js.map +1 -1
- package/crud/sub/MemorySubCrudRecordsStore.d.ts +24 -0
- package/crud/sub/MemorySubCrudRecordsStore.js +146 -0
- package/crud/sub/MemorySubCrudRecordsStore.js.map +1 -0
- package/crud/sub/SubCrudRecordsController.d.ts +182 -0
- package/crud/sub/SubCrudRecordsController.js +360 -0
- package/crud/sub/SubCrudRecordsController.js.map +1 -0
- package/crud/sub/SubCrudRecordsControllerTests.d.ts +39 -0
- package/crud/sub/SubCrudRecordsControllerTests.js +821 -0
- package/crud/sub/SubCrudRecordsControllerTests.js.map +1 -0
- package/crud/sub/SubCrudRecordsStore.d.ts +95 -0
- package/{forms/index.js → crud/sub/SubCrudRecordsStore.js} +2 -2
- package/crud/sub/SubCrudRecordsStore.js.map +1 -0
- package/crud/sub/index.d.ts +3 -0
- package/crud/sub/index.js +20 -0
- package/{forms → crud/sub}/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/notifications/MemoryNotificationRecordsStore.js +189 -198
- package/notifications/MemoryNotificationRecordsStore.js.map +1 -1
- package/notifications/NotificationRecordsController.js +438 -460
- package/notifications/NotificationRecordsController.js.map +1 -1
- package/notifications/NotificationRecordsStore.d.ts +2 -1
- package/notifications/WebPushInterface.d.ts +0 -1
- package/notifications/WebPushInterface.js +0 -1
- package/notifications/WebPushInterface.js.map +1 -1
- package/package.json +6 -6
- package/packages/MemoryPackageRecordsStore.d.ts +10 -0
- package/packages/MemoryPackageRecordsStore.js +38 -0
- package/packages/MemoryPackageRecordsStore.js.map +1 -0
- package/packages/PackageRecordsController.d.ts +26 -0
- package/packages/PackageRecordsController.js +49 -0
- package/packages/PackageRecordsController.js.map +1 -0
- package/packages/PackageRecordsStore.d.ts +32 -0
- package/packages/PackageRecordsStore.js +19 -0
- package/packages/PackageRecordsStore.js.map +1 -0
- package/packages/index.d.ts +4 -0
- package/packages/index.js +21 -0
- package/packages/index.js.map +1 -0
- package/packages/version/MemoryPackageVersionRecordsStore.d.ts +21 -0
- package/packages/version/MemoryPackageVersionRecordsStore.js +177 -0
- package/packages/version/MemoryPackageVersionRecordsStore.js.map +1 -0
- package/packages/version/PackageVersionRecordsController.d.ts +144 -0
- package/packages/version/PackageVersionRecordsController.js +656 -0
- package/packages/version/PackageVersionRecordsController.js.map +1 -0
- package/packages/version/PackageVersionRecordsStore.d.ts +342 -0
- package/packages/version/PackageVersionRecordsStore.js +126 -0
- package/packages/version/PackageVersionRecordsStore.js.map +1 -0
- package/packages/version/index.d.ts +4 -0
- package/packages/version/index.js +21 -0
- package/packages/version/index.js.map +1 -0
- package/tracing/TracingDecorators.js +31 -40
- package/tracing/TracingDecorators.js.map +1 -1
- package/webhooks/MemoryWebhookRecordsStore.js +56 -72
- package/webhooks/MemoryWebhookRecordsStore.js.map +1 -1
- package/webhooks/WebhookEnvironment.d.ts +3 -3
- package/webhooks/WebhookRecordsController.d.ts +2 -1
- package/webhooks/WebhookRecordsController.js +389 -382
- package/webhooks/WebhookRecordsController.js.map +1 -1
- package/webhooks/WebhookRecordsStore.d.ts +2 -1
- package/websockets/InstRecordsStore.d.ts +50 -0
- package/websockets/InstRecordsStore.js +17 -0
- package/websockets/InstRecordsStore.js.map +1 -1
- package/websockets/MemoryTempInstRecordsStore.d.ts +5 -0
- package/websockets/MemoryTempInstRecordsStore.js +168 -179
- package/websockets/MemoryTempInstRecordsStore.js.map +1 -1
- package/websockets/MemoryWebsocketConnectionStore.js +98 -135
- package/websockets/MemoryWebsocketConnectionStore.js.map +1 -1
- package/websockets/MemoryWebsocketMessenger.js +29 -48
- package/websockets/MemoryWebsocketMessenger.js.map +1 -1
- package/websockets/SplitInstRecordsStore.d.ts +4 -1
- package/websockets/SplitInstRecordsStore.js +167 -185
- package/websockets/SplitInstRecordsStore.js.map +1 -1
- package/websockets/TemporaryInstRecordsStore.d.ts +19 -1
- package/websockets/TemporaryInstRecordsStore.js +17 -0
- package/websockets/TemporaryInstRecordsStore.js.map +1 -1
- package/websockets/WebsocketController.d.ts +147 -3
- package/websockets/WebsocketController.js +1735 -1391
- package/websockets/WebsocketController.js.map +1 -1
- package/websockets/index.d.ts +0 -1
- package/websockets/index.js +0 -1
- package/websockets/index.js.map +1 -1
- package/AAGUID.d.ts +0 -11
- package/AAGUID.js +0 -116
- package/AAGUID.js.map +0 -1
- package/AuthUtils.d.ts +0 -162
- package/AuthUtils.js +0 -327
- package/AuthUtils.js.map +0 -1
- package/forms/FormError.d.ts +0 -43
- package/forms/FormError.js +0 -56
- package/forms/FormError.js.map +0 -1
- package/forms/index.d.ts +0 -2
- package/websockets/Utils.d.ts +0 -33
- package/websockets/Utils.js +0 -82
- package/websockets/Utils.js.map +0 -1
|
@@ -1,23 +1,3 @@
|
|
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
11
|
-
var t = {};
|
|
12
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13
|
-
t[p] = s[p];
|
|
14
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
15
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
17
|
-
t[p[i]] = s[p[i]];
|
|
18
|
-
}
|
|
19
|
-
return t;
|
|
20
|
-
};
|
|
21
1
|
/* CasualOS is a set of web-based tools designed to facilitate the creation of real-time, multi-user, context-aware interactive experiences.
|
|
22
2
|
*
|
|
23
3
|
* Copyright (c) 2019-2025 Casual Simulation, Inc.
|
|
@@ -50,169 +30,173 @@ export class SplitInstRecordsStore {
|
|
|
50
30
|
this._temp = temporary;
|
|
51
31
|
this._permanent = permanent;
|
|
52
32
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
33
|
+
async saveLoadedPackage(loadedPackage) {
|
|
34
|
+
if (loadedPackage.recordName) {
|
|
35
|
+
await this._permanent.saveLoadedPackage(loadedPackage);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
await this._temp.saveLoadedPackage(loadedPackage);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
async listLoadedPackages(recordName, inst) {
|
|
42
|
+
if (recordName) {
|
|
43
|
+
return await this._permanent.listLoadedPackages(recordName, inst);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return await this._temp.listLoadedPackages(recordName, inst);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
async isPackageLoaded(recordName, inst, packageId) {
|
|
50
|
+
if (recordName) {
|
|
51
|
+
return await this._permanent.isPackageLoaded(recordName, inst, packageId);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
return await this._temp.isPackageLoaded(recordName, inst, packageId);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async getInstByName(recordName, inst) {
|
|
58
|
+
return await this._permanent.getInstByName(recordName, inst);
|
|
57
59
|
}
|
|
58
60
|
listInstsByRecord(recordName, startingInst) {
|
|
59
61
|
return this._permanent.listInstsByRecord(recordName, startingInst);
|
|
60
62
|
}
|
|
61
|
-
getBranchByName(recordName, inst, branch) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
async getBranchByName(recordName, inst, branch) {
|
|
64
|
+
const tempResult = await this._temp.getBranchByName(recordName, inst, branch);
|
|
65
|
+
if (tempResult) {
|
|
66
|
+
const { branchSizeInBytes, ...result } = tempResult;
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
else if (!recordName) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
const info = await this._permanent.getBranchByName(recordName, inst, branch);
|
|
73
|
+
if (info) {
|
|
74
|
+
await this._temp.saveBranchInfo(info);
|
|
75
|
+
}
|
|
76
|
+
return info;
|
|
77
|
+
}
|
|
78
|
+
async saveInst(inst) {
|
|
79
|
+
if (inst.recordName) {
|
|
80
|
+
const result = await this._permanent.saveInst(inst);
|
|
81
|
+
if (!result.success) {
|
|
66
82
|
return result;
|
|
67
83
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
yield this._temp.deleteAllInstBranchInfo(inst.recordName, inst.inst);
|
|
86
|
-
}
|
|
87
|
-
return {
|
|
88
|
-
success: true,
|
|
89
|
-
};
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
deleteInst(recordName, inst) {
|
|
93
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
-
yield Promise.all([
|
|
95
|
-
this._permanent.deleteInst(recordName, inst),
|
|
96
|
-
this._temp.deleteAllInstBranchInfo(recordName, inst),
|
|
97
|
-
]);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
saveBranch(branch) {
|
|
101
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
-
if (branch.recordName) {
|
|
103
|
-
const result = yield this._permanent.saveBranch(branch);
|
|
104
|
-
if (!result.success) {
|
|
105
|
-
return result;
|
|
106
|
-
}
|
|
107
|
-
const info = yield this._permanent.getBranchByName(branch.recordName, branch.inst, branch.branch);
|
|
108
|
-
if (info) {
|
|
109
|
-
yield this._temp.saveBranchInfo(info);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
yield this._temp.saveBranchInfo({
|
|
114
|
-
recordName: null,
|
|
115
|
-
inst: branch.inst,
|
|
116
|
-
branch: branch.branch,
|
|
117
|
-
linkedInst: null,
|
|
118
|
-
temporary: branch.temporary,
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
return {
|
|
122
|
-
success: true,
|
|
123
|
-
};
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
getCurrentUpdates(recordName, inst, branch) {
|
|
127
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
-
const tempUpdates = yield this._temp.getUpdates(recordName, inst, branch);
|
|
129
|
-
if (tempUpdates && tempUpdates.updates.length > 0) {
|
|
130
|
-
const { branchSizeInBytes } = tempUpdates, result = __rest(tempUpdates, ["branchSizeInBytes"]);
|
|
84
|
+
await this._temp.deleteAllInstBranchInfo(inst.recordName, inst.inst);
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
success: true,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
async deleteInst(recordName, inst) {
|
|
91
|
+
await Promise.all([
|
|
92
|
+
this._permanent.deleteInst(recordName, inst),
|
|
93
|
+
this._temp.deleteAllInstBranchInfo(recordName, inst),
|
|
94
|
+
]);
|
|
95
|
+
}
|
|
96
|
+
async saveBranch(branch) {
|
|
97
|
+
if (branch.recordName) {
|
|
98
|
+
const result = await this._permanent.saveBranch(branch);
|
|
99
|
+
if (!result.success) {
|
|
131
100
|
return result;
|
|
132
101
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
const updates = yield this._permanent.getCurrentUpdates(recordName, inst, branch);
|
|
137
|
-
if (updates && updates.updates.length > 0) {
|
|
138
|
-
yield this._temp.addUpdates(recordName, inst, branch, updates.updates, updates.instSizeInBytes);
|
|
139
|
-
}
|
|
140
|
-
return updates;
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
getAllUpdates(recordName, inst, branch) {
|
|
144
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
-
const tempUpdates = yield this._temp.getUpdates(recordName, inst, branch);
|
|
146
|
-
const permUpdates = yield this._permanent.getAllUpdates(recordName, inst, branch);
|
|
147
|
-
if (!tempUpdates) {
|
|
148
|
-
return permUpdates;
|
|
149
|
-
}
|
|
150
|
-
else if (!permUpdates) {
|
|
151
|
-
return tempUpdates;
|
|
152
|
-
}
|
|
153
|
-
let allUpdates = new Set();
|
|
154
|
-
let merged = [];
|
|
155
|
-
for (let i = 0; i < permUpdates.updates.length; i++) {
|
|
156
|
-
let u = permUpdates.updates[i];
|
|
157
|
-
let t = permUpdates.timestamps[i];
|
|
158
|
-
allUpdates.add(u);
|
|
159
|
-
merged.push({
|
|
160
|
-
u,
|
|
161
|
-
t,
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
for (let i = 0; i < tempUpdates.updates.length; i++) {
|
|
165
|
-
let u = tempUpdates.updates[i];
|
|
166
|
-
let t = tempUpdates.timestamps[i];
|
|
167
|
-
if (allUpdates.has(u)) {
|
|
168
|
-
continue;
|
|
169
|
-
}
|
|
170
|
-
allUpdates.add(u);
|
|
171
|
-
merged.push({
|
|
172
|
-
u,
|
|
173
|
-
t,
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
const sorted = sortBy(merged, (m) => m.t);
|
|
177
|
-
let updates = [];
|
|
178
|
-
let timestamps = [];
|
|
179
|
-
for (let i = 0; i < sorted.length; i++) {
|
|
180
|
-
let m = sorted[i];
|
|
181
|
-
updates.push(m.u);
|
|
182
|
-
timestamps.push(m.t);
|
|
102
|
+
const info = await this._permanent.getBranchByName(branch.recordName, branch.inst, branch.branch);
|
|
103
|
+
if (info) {
|
|
104
|
+
await this._temp.saveBranchInfo(info);
|
|
183
105
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
await this._temp.saveBranchInfo({
|
|
109
|
+
recordName: null,
|
|
110
|
+
inst: branch.inst,
|
|
111
|
+
branch: branch.branch,
|
|
112
|
+
linkedInst: null,
|
|
113
|
+
temporary: branch.temporary,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
return {
|
|
117
|
+
success: true,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
async getCurrentUpdates(recordName, inst, branch) {
|
|
121
|
+
const tempUpdates = await this._temp.getUpdates(recordName, inst, branch);
|
|
122
|
+
if (tempUpdates && tempUpdates.updates.length > 0) {
|
|
123
|
+
const { branchSizeInBytes, ...result } = tempUpdates;
|
|
124
|
+
return result;
|
|
125
|
+
}
|
|
126
|
+
else if (!recordName) {
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
const updates = await this._permanent.getCurrentUpdates(recordName, inst, branch);
|
|
130
|
+
if (updates && updates.updates.length > 0) {
|
|
131
|
+
await this._temp.addUpdates(recordName, inst, branch, updates.updates, updates.instSizeInBytes);
|
|
132
|
+
}
|
|
133
|
+
return updates;
|
|
189
134
|
}
|
|
190
|
-
|
|
135
|
+
async getAllUpdates(recordName, inst, branch) {
|
|
136
|
+
const tempUpdates = await this._temp.getUpdates(recordName, inst, branch);
|
|
137
|
+
const permUpdates = await this._permanent.getAllUpdates(recordName, inst, branch);
|
|
138
|
+
if (!tempUpdates) {
|
|
139
|
+
return permUpdates;
|
|
140
|
+
}
|
|
141
|
+
else if (!permUpdates) {
|
|
142
|
+
return tempUpdates;
|
|
143
|
+
}
|
|
144
|
+
let allUpdates = new Set();
|
|
145
|
+
let merged = [];
|
|
146
|
+
for (let i = 0; i < permUpdates.updates.length; i++) {
|
|
147
|
+
let u = permUpdates.updates[i];
|
|
148
|
+
let t = permUpdates.timestamps[i];
|
|
149
|
+
allUpdates.add(u);
|
|
150
|
+
merged.push({
|
|
151
|
+
u,
|
|
152
|
+
t,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
for (let i = 0; i < tempUpdates.updates.length; i++) {
|
|
156
|
+
let u = tempUpdates.updates[i];
|
|
157
|
+
let t = tempUpdates.timestamps[i];
|
|
158
|
+
if (allUpdates.has(u)) {
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
allUpdates.add(u);
|
|
162
|
+
merged.push({
|
|
163
|
+
u,
|
|
164
|
+
t,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
const sorted = sortBy(merged, (m) => m.t);
|
|
168
|
+
let updates = [];
|
|
169
|
+
let timestamps = [];
|
|
170
|
+
for (let i = 0; i < sorted.length; i++) {
|
|
171
|
+
let m = sorted[i];
|
|
172
|
+
updates.push(m.u);
|
|
173
|
+
timestamps.push(m.t);
|
|
174
|
+
}
|
|
175
|
+
return {
|
|
176
|
+
updates,
|
|
177
|
+
timestamps,
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
async getInstSize(recordName, inst) {
|
|
191
181
|
var _a;
|
|
192
|
-
return
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
return
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
];
|
|
211
|
-
if (recordName) {
|
|
212
|
-
promises.push(this._permanent.deleteBranch(recordName, inst, branch));
|
|
213
|
-
}
|
|
214
|
-
yield Promise.all(promises);
|
|
215
|
-
});
|
|
182
|
+
return ((_a = (await this._temp.getInstSize(recordName, inst))) !== null && _a !== void 0 ? _a : (await this._permanent.getInstSize(recordName, inst)));
|
|
183
|
+
}
|
|
184
|
+
async addUpdates(recordName, inst, branch, updates, sizeInBytes) {
|
|
185
|
+
await this._temp.addUpdates(recordName, inst, branch, updates, sizeInBytes);
|
|
186
|
+
const size = await this._temp.getInstSize(recordName, inst);
|
|
187
|
+
return {
|
|
188
|
+
success: true,
|
|
189
|
+
instSizeInBytes: size,
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
async deleteBranch(recordName, inst, branch) {
|
|
193
|
+
let promises = [
|
|
194
|
+
this._temp.deleteBranch(recordName, inst, branch),
|
|
195
|
+
];
|
|
196
|
+
if (recordName) {
|
|
197
|
+
promises.push(this._permanent.deleteBranch(recordName, inst, branch));
|
|
198
|
+
}
|
|
199
|
+
await Promise.all(promises);
|
|
216
200
|
}
|
|
217
201
|
/**
|
|
218
202
|
* Replaces the current set of updates with a new update.
|
|
@@ -228,19 +212,17 @@ export class SplitInstRecordsStore {
|
|
|
228
212
|
* @param updateToAdd The update that should be added.
|
|
229
213
|
* @param sizeInBytes The size of the new update in bytes.
|
|
230
214
|
*/
|
|
231
|
-
replaceCurrentUpdates(recordName, inst, branch, updateToAdd, sizeInBytes) {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
};
|
|
243
|
-
});
|
|
215
|
+
async replaceCurrentUpdates(recordName, inst, branch, updateToAdd, sizeInBytes) {
|
|
216
|
+
const updateCount = await this._temp.countBranchUpdates(recordName, inst, branch);
|
|
217
|
+
const permanentReplaceResult = await this._permanent.replaceCurrentUpdates(recordName, inst, branch, updateToAdd, sizeInBytes);
|
|
218
|
+
if (permanentReplaceResult.success === false) {
|
|
219
|
+
return permanentReplaceResult;
|
|
220
|
+
}
|
|
221
|
+
await this._temp.addUpdates(recordName, inst, branch, [updateToAdd], sizeInBytes);
|
|
222
|
+
await this._temp.trimUpdates(recordName, inst, branch, updateCount);
|
|
223
|
+
return {
|
|
224
|
+
success: true,
|
|
225
|
+
};
|
|
244
226
|
}
|
|
245
227
|
}
|
|
246
228
|
//# sourceMappingURL=SplitInstRecordsStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitInstRecordsStore.js","sourceRoot":"","sources":["SplitInstRecordsStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SplitInstRecordsStore.js","sourceRoot":"","sources":["SplitInstRecordsStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAkBhC;;GAEG;AACH,MAAM,OAAO,qBAAqB;IAI9B,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,YACI,SAAoC,EACpC,SAA2B;QAE3B,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAChC,CAAC;IAED,KAAK,CA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AC;QACD,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CACvB,UAAU,EACV,IAAI,EACJ,MAAM,EACN,CAAC,WAAW,CAAC,EACb,WAAW,CACd,CAAC;QACF,MAAM,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;QACpE,OAAO;YACH,OAAO,EAAE,IAAI;SAChB,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BranchRecordWithInst, CurrentUpdates } from './InstRecordsStore';
|
|
1
|
+
import type { BranchRecordWithInst, CurrentUpdates, LoadedPackage } from './InstRecordsStore';
|
|
2
2
|
import type { LockStore } from '../LockStore';
|
|
3
3
|
/**
|
|
4
4
|
* Defines an interface for a store that keeps track of temporary inst records.
|
|
@@ -147,6 +147,24 @@ export interface TemporaryInstRecordsStore extends LockStore {
|
|
|
147
147
|
* @param string The generation that should be removed.
|
|
148
148
|
*/
|
|
149
149
|
clearDirtyBranches(generation: string): Promise<void>;
|
|
150
|
+
/**
|
|
151
|
+
* Saves the given loaded package.
|
|
152
|
+
* @param loadedPackage The package that should be saved.
|
|
153
|
+
*/
|
|
154
|
+
saveLoadedPackage(loadedPackage: LoadedPackage): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* Gets the list of loaded packages for the given record and inst.
|
|
157
|
+
* @param recordName The name of the record.
|
|
158
|
+
* @param inst The inst.
|
|
159
|
+
*/
|
|
160
|
+
listLoadedPackages(recordName: string | null, inst: string): Promise<LoadedPackage[]>;
|
|
161
|
+
/**
|
|
162
|
+
* Determines whether the package with the given ID is loaded into the given inst.
|
|
163
|
+
* @param recordName The name of the record that the inst is in.
|
|
164
|
+
* @param inst The inst.
|
|
165
|
+
* @param packageId The ID of the package.
|
|
166
|
+
*/
|
|
167
|
+
isPackageLoaded(recordName: string | null, inst: string, packageId: string): Promise<LoadedPackage | null>;
|
|
150
168
|
}
|
|
151
169
|
export interface BranchUpdates extends CurrentUpdates {
|
|
152
170
|
branchSizeInBytes: number;
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
+
/* CasualOS is a set of web-based tools designed to facilitate the creation of real-time, multi-user, context-aware interactive experiences.
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) 2019-2025 Casual Simulation, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This program is free software: you can redistribute it and/or modify
|
|
6
|
+
* it under the terms of the GNU Affero General Public License as
|
|
7
|
+
* published by the Free Software Foundation, either version 3 of the
|
|
8
|
+
* License, or (at your option) any later version.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
1
18
|
export {};
|
|
2
19
|
//# sourceMappingURL=TemporaryInstRecordsStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemporaryInstRecordsStore.js","sourceRoot":"","sources":["TemporaryInstRecordsStore.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"TemporaryInstRecordsStore.js","sourceRoot":"","sources":["TemporaryInstRecordsStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG"}
|