@void/platform 0.20.1 → 0.20.3
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/README.md +10 -1
- package/dist/email-protocol.d.mts +48 -0
- package/dist/email-protocol.mjs +278 -0
- package/dist/index.d.mts +154 -15
- package/dist/index.mjs +349 -22
- package/dist/installer.d.mts +5 -3
- package/dist/installer.mjs +14 -5
- package/dist/runtime/api/README.md +1 -1
- package/dist/runtime/api/index.js +79311 -65332
- package/dist/runtime/api/index.js.map +4 -4
- package/dist/runtime/dispatch/README.md +1 -1
- package/dist/runtime/dispatch/index.js +35 -13
- package/dist/runtime/dispatch/index.js.map +2 -2
- package/dist/runtime/drizzle/0041_military_beyonder.sql +119 -0
- package/dist/runtime/drizzle/0042_dark_the_anarchist.sql +1 -0
- package/dist/runtime/drizzle/0043_nostalgic_meggan.sql +21 -0
- package/dist/runtime/drizzle/0044_smart_mentor.sql +15 -0
- package/dist/runtime/drizzle/0045_platform_settings.sql +5 -0
- package/dist/runtime/drizzle/0046_email_domains_platform_credential.sql +8 -0
- package/dist/runtime/drizzle/0047_email_gateway.sql +226 -0
- package/dist/runtime/drizzle/0048_project_teams.sql +133 -0
- package/dist/runtime/drizzle/compatibility.json +4 -0
- package/dist/runtime/drizzle/meta/_journal.json +56 -0
- package/dist/runtime/emailGateway/README.md +1 -0
- package/dist/runtime/emailGateway/index.js +5893 -0
- package/dist/runtime/emailGateway/index.js.map +8 -0
- package/dist/runtime/manifest.json +71 -12
- package/dist/runtime/proxy/README.md +1 -1
- package/dist/runtime/proxy/index.js +1646 -2240
- package/dist/runtime/proxy/index.js.map +4 -4
- package/dist/runtime/tail/README.md +1 -1
- package/package.json +5 -1
package/dist/installer.mjs
CHANGED
|
@@ -19,13 +19,19 @@ function platformDatabaseSchemaDigest(lineage, migrations) {
|
|
|
19
19
|
function parsePlatformRuntimeManifest(value) {
|
|
20
20
|
const root = record(value, "runtime manifest");
|
|
21
21
|
if (root.schemaVersion !== 2) throw new Error("runtime manifest schemaVersion must be 2");
|
|
22
|
+
if (root.authenticationProtocolVersion !== void 0 && root.authenticationProtocolVersion !== 1) throw new Error("Unsupported authentication protocol version.");
|
|
23
|
+
if (root.emailProtocolVersion !== void 0 && root.emailProtocolVersion !== 1) throw new Error("Unsupported email protocol version.");
|
|
22
24
|
const artifactsValue = record(root.artifacts, "runtime manifest artifacts");
|
|
23
|
-
|
|
25
|
+
if (root.emailProtocolVersion === 1 && artifactsValue.emailGateway === void 0) throw new Error("Email protocol version 1 requires an emailGateway runtime artifact.");
|
|
26
|
+
if (artifactsValue.emailGateway !== void 0 && root.emailProtocolVersion !== 1) throw new Error("An emailGateway runtime artifact requires email protocol version 1.");
|
|
27
|
+
const artifactNames = [
|
|
24
28
|
"api",
|
|
25
29
|
"dispatch",
|
|
26
30
|
"proxy",
|
|
27
|
-
"tail"
|
|
28
|
-
|
|
31
|
+
"tail",
|
|
32
|
+
...artifactsValue.emailGateway === void 0 ? [] : ["emailGateway"]
|
|
33
|
+
];
|
|
34
|
+
const artifacts = Object.fromEntries(artifactNames.map((name) => [name, parseArtifact(artifactsValue[name], name)]));
|
|
29
35
|
const databaseValue = record(root.database, "runtime manifest database");
|
|
30
36
|
if (databaseValue.protocolVersion !== 1) throw new Error("runtime manifest database protocolVersion must be 1");
|
|
31
37
|
const lineage = nonemptyString(databaseValue.lineage, "database lineage");
|
|
@@ -59,6 +65,8 @@ function parsePlatformRuntimeManifest(value) {
|
|
|
59
65
|
if (rollbackSafeFrom.some((entry) => !prefixDigests.has(entry.schemaDigest))) throw new Error("runtime manifest database rollback compatibility must reference this migration lineage");
|
|
60
66
|
return {
|
|
61
67
|
artifacts,
|
|
68
|
+
...root.authenticationProtocolVersion === 1 ? { authenticationProtocolVersion: 1 } : {},
|
|
69
|
+
...root.emailProtocolVersion === 1 ? { emailProtocolVersion: 1 } : {},
|
|
62
70
|
...root.applicationRoutingVersion === 1 ? { applicationRoutingVersion: 1 } : {},
|
|
63
71
|
database: {
|
|
64
72
|
journalSha256: sha256(databaseValue.journalSha256, "database journal digest"),
|
|
@@ -78,13 +86,14 @@ function parsePlatformRuntimeManifest(value) {
|
|
|
78
86
|
function parseSafetyProtocols(value) {
|
|
79
87
|
if (value === void 0) return { sandboxDrain: 0 };
|
|
80
88
|
const protocols = record(value, "runtime manifest safetyProtocols");
|
|
81
|
-
if (protocols.sandboxDrain !== 0 && protocols.sandboxDrain !== 1 && protocols.sandboxDrain !== 2) throw new Error("runtime manifest safetyProtocols.sandboxDrain must be 0, 1, or
|
|
89
|
+
if (protocols.sandboxDrain !== 0 && protocols.sandboxDrain !== 1 && protocols.sandboxDrain !== 2 && protocols.sandboxDrain !== 3) throw new Error("runtime manifest safetyProtocols.sandboxDrain must be 0, 1, 2, or 3");
|
|
82
90
|
return { sandboxDrain: protocols.sandboxDrain };
|
|
83
91
|
}
|
|
84
92
|
function usageProtocolVersion(value) {
|
|
85
93
|
if (value === void 0 || value === 0) return 0;
|
|
86
94
|
if (value === 1) return 1;
|
|
87
|
-
|
|
95
|
+
if (value === 2) return 2;
|
|
96
|
+
throw new Error("runtime manifest usageProtocolVersion must be 0, 1, or 2");
|
|
88
97
|
}
|
|
89
98
|
function getPlatformRuntimeDirectory() {
|
|
90
99
|
return join(dirname(fileURLToPath(import.meta.url)), "runtime");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
This folder contains the built output assets for the worker "void-runtime-build-api" generated at 2026-09-
|
|
1
|
+
This folder contains the built output assets for the worker "void-runtime-build-api" generated at 2026-09-24T06:17:05.394Z.
|