@void/platform 1.3.0 → 1.5.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.
@@ -1,4 +1,3 @@
1
- //#region src/browser-page.d.ts
2
1
  /** Shared, dependency-free presentation for browser onboarding and authentication pages. */
3
2
  export declare const browserPageLogo: string;
4
3
  export declare const browserPageStyles: string;
@@ -15,5 +14,4 @@ export declare function renderBrowserPage({ title, platformName, content }: {
15
14
  platformName?: string;
16
15
  content: string;
17
16
  }): string;
18
- export declare function browserPageLead(title: string, description: string): string;
19
- //#endregion
17
+ export declare function browserPageLead(title: string, description: string): string;
@@ -1,4 +1,4 @@
1
- //#region src/browser-page.ts
1
+ // src/browser-page.ts
2
2
  /** Shared, dependency-free presentation for browser onboarding and authentication pages. */
3
3
  const browserPageLogo = "<svg role=\"img\" aria-label=\"Void\" viewBox=\"0 0 270 58\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<circle cx=\"262\" cy=\"48.96\" r=\"8\" fill=\"currentColor\"/>\n<path d=\"M20.72 0.959999L35.52 41.28L50.08 0.959999H70L47.92 56.96H22.32L0.24 0.959999H20.72ZM106.542 57.92C82.9419 57.92 70.6219 48 70.6219 28.96C70.6219 9.92 82.9419 1.90735e-06 106.542 1.90735e-06C130.142 1.90735e-06 142.542 9.92 142.542 28.96C142.542 48 130.142 57.92 106.542 57.92ZM106.542 44.08C117.662 44.08 122.862 39.36 122.862 28.96C122.862 18.48 117.662 13.76 106.542 13.76C95.4219 13.76 90.2219 18.48 90.2219 28.96C90.2219 39.36 95.4219 44.08 106.542 44.08ZM152.265 56.96V0.959999H171.465V56.96H152.265ZM184.687 56.96V0.959999H219.887C239.327 0.959999 250.447 9.84 250.447 28.96C250.447 48.16 239.247 56.96 219.807 56.96H184.687ZM230.767 28.96C230.767 18.48 226.287 14.56 217.167 14.56H203.887V43.36H217.167C226.287 43.36 230.767 39.44 230.767 28.96Z\" fill=\"currentColor\"/>\n</svg>";
4
4
  const browserPageStyles = `
@@ -87,5 +87,4 @@ function renderBrowserPage({ title, platformName = "Void", content }) {
87
87
  function browserPageLead(title, description) {
88
88
  return "<div class=\"void-auth-lead\"><h1 id=\"void-auth-title\">" + escapeBrowserHtml(title) + "</h1><p>" + escapeBrowserHtml(description) + "</p></div>";
89
89
  }
90
- //#endregion
91
90
  export { browserPageIdentity, browserPageLead, browserPageLogo, browserPageStatus, browserPageStyles, escapeBrowserHtml, renderBrowserPage };
@@ -1,4 +1,3 @@
1
- //#region src/email-protocol.d.ts
2
1
  /** Worker-safe wire contract shared by the platform gateway and tenant entry. */
3
2
  export declare const EMAIL_PROTOCOL_VERSION = 1;
4
3
  export declare const EMAIL_RECEIPT_PATH = "/__void/email/receipt/v1";
@@ -44,5 +43,4 @@ export declare function signEmailReceipt(claims: EmailReceiptClaims, signingSecr
44
43
  export declare function verifyEmailReceipt(token: string, signingSecret: string, expected: Pick<EmailReceiptClaims, "projectId" | "deploymentId" | "recipient">, now?: number): Promise<EmailReceiptClaims | null>;
45
44
  export declare function encodeEmailActions(actions: ReadonlyArray<EmailWireAction>): ReadableStream<Uint8Array>;
46
45
  /** Read each frame with fixed ceilings before parsing metadata or allocating a reply. */
47
- export declare function readEmailActions(stream: ReadableStream<Uint8Array>, deadlineMs?: number): Promise<Array<EmailWireAction>>;
48
- //#endregion
46
+ export declare function readEmailActions(stream: ReadableStream<Uint8Array>, deadlineMs?: number): Promise<Array<EmailWireAction>>;
@@ -1,4 +1,4 @@
1
- //#region src/email-protocol.ts
1
+ // src/email-protocol.ts
2
2
  /** Worker-safe wire contract shared by the platform gateway and tenant entry. */
3
3
  const EMAIL_PROTOCOL_VERSION = 1;
4
4
  const EMAIL_RECEIPT_PATH = "/__void/email/receipt/v1";
@@ -268,5 +268,4 @@ async function withReader(stream, read) {
268
268
  } catch {}
269
269
  }
270
270
  }
271
- //#endregion
272
271
  export { EMAIL_MAX_ACTIONS, EMAIL_MAX_INBOUND_BYTES, EMAIL_MAX_INBOUND_HEADERS, EMAIL_MAX_INBOUND_HEADER_BYTES, EMAIL_MAX_METADATA_BYTES, EMAIL_MAX_REPLY_BYTES, EMAIL_MAX_RESPONSE_BYTES, EMAIL_PROTOCOL_VERSION, EMAIL_RECEIPT_PATH, encodeEmailActions, encodeEmailEnvelope, readEmailActions, readEmailEnvelope, signEmailReceipt, verifyEmailReceipt };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { BUILD_INSTANCE_FREE, BUILD_INSTANCE_LARGE, BuildInstanceType, BuiltinPlanId, EditablePlanLimit, PLAN_EDITABLE_LIMIT_KEYS, PLAN_LIMITS, PlanId, PlanLimits, PlanLimitsPatch, PlatformPlanCatalog, PlatformPlanDefinition, PlatformPlanReconciliation, createDefaultPlanCatalog, parseBuildInstanceType, parsePlanLimitsPatch, parsePlanName, parsePlatformPlanCatalog, parsePlatformPlanId, validatePlanLimits } from "./plans.mjs";
2
- //#region src/access-policy.d.ts
3
2
  /** An exact email domain, such as `example.com`, without wildcards or an `@`. */
4
3
  export declare function isPlatformAccessEmailDomain(value: unknown): value is string;
5
4
  /** Whether signing in with this Access identity provider proves a company identity. */
@@ -13,8 +12,6 @@ export declare function isPlatformAccessCompanyIdentityProvider(provider: Readon
13
12
  * names, so it counts only when `companyLoginMethod` accepts that provider ID.
14
13
  */
15
14
  export declare function isPlatformAccessIdentityRule(rule: Readonly<Record<string, unknown>>, companyLoginMethod: (identityProviderId: string) => boolean): boolean;
16
- //#endregion
17
- //#region src/app-access.d.ts
18
15
  export declare const PLATFORM_APP_ACCESS_SETUP_PROOF_PREFIX = "void-platform-app-access-v1";
19
16
  /** Uninstall handoff that turns off installer-managed project Zero Trust before any user exists. */
20
17
  export declare const PLATFORM_APP_ACCESS_TURN_OFF_PROOF_PREFIX = "void-platform-app-access-turn-off-v1";
@@ -29,8 +26,6 @@ type PlatformAppAccessSetup = Readonly<{
29
26
  policyIds: ReadonlyArray<string>;
30
27
  }>;
31
28
  export declare function parsePlatformAppAccessSetup(value: unknown): PlatformAppAccessSetup;
32
- //#endregion
33
- //#region src/authentication-recovery.d.ts
34
29
  /** Owner recovery capabilities authorize a provider test, never a platform session. */
35
30
  type PlatformAuthenticationRecovery = Readonly<{
36
31
  installationId: string;
@@ -43,8 +38,6 @@ type PlatformAuthenticationRecovery = Readonly<{
43
38
  signature: string;
44
39
  }>;
45
40
  export declare function platformAuthenticationRecoveryMessage(value: Omit<PlatformAuthenticationRecovery, "signature">): string;
46
- //#endregion
47
- //#region src/authentication.d.ts
48
41
  /** Platform login and perimeter configuration are independent of app authentication. */
49
42
  export declare const PLATFORM_LOGIN_KINDS: readonly ["github", "google", "oidc", "cloudflare-access"];
50
43
  type PlatformLoginKind = (typeof PLATFORM_LOGIN_KINDS)[number];
@@ -141,8 +134,6 @@ export declare function parsePlatformAccessProtection(value: unknown): PlatformA
141
134
  export declare function parsePlatformAdmissionPolicy(value: unknown): PlatformAdmissionPolicy;
142
135
  /** Run inside the settings mutation transaction, using the resulting enabled connections. */
143
136
  export declare function validatePlatformAdmissionPolicy(policy: PlatformAdmissionPolicy, enabledConnections: ReadonlyArray<PlatformLoginConfiguration>, protection: PlatformAccessProtection | null): void;
144
- //#endregion
145
- //#region src/application.d.ts
146
137
  /** Public application addressing, independent of the platform API's origin. */
147
138
  type PlatformApplication = Readonly<{
148
139
  baseDomain: string;
@@ -190,8 +181,6 @@ export declare const PLATFORM_HEALTH_HOSTNAME_LABEL = "void-platform-health";
190
181
  export declare function platformHealthHostname(application: PlatformApplication): string | null;
191
182
  export declare function platformProjectHostname(project: PlatformApplicationProject, application: PlatformApplication): string;
192
183
  export declare function platformProjectHostnames(project: PlatformApplicationProject, application: PlatformApplication): ReadonlyArray<string>;
193
- //#endregion
194
- //#region src/manifest.d.ts
195
184
  export declare const PLATFORM_DEPLOYMENT_SCHEMA_VERSION: 1;
196
185
  type PlatformCapabilities = Readonly<{
197
186
  ai: boolean;
@@ -285,8 +274,6 @@ export declare function createPlatformResourceNames(installationSlug: string): P
285
274
  export declare function createApplicationRoutes(application: PlatformDeploymentManifest["application"]): ReadonlyArray<PlatformApplicationRoute>;
286
275
  export declare function createPlatformDeploymentManifest(input: PlatformDeploymentManifestInput): PlatformDeploymentManifest;
287
276
  export declare function parsePlatformDeploymentManifest(value: unknown): PlatformDeploymentManifest;
288
- //#endregion
289
- //#region src/installation.d.ts
290
277
  export declare const PLATFORM_INSTALLATION_SCHEMA_VERSION: 1;
291
278
  export declare const PLATFORM_DISABLED_KEY = "__void/platform/disabled/v1";
292
279
  export declare const PLATFORM_DISABLED_VALUE = "disabled";
@@ -415,8 +402,6 @@ export declare function transitionInstallation(manifest: PlatformInstallationMan
415
402
  export declare function recordInstallationResource(manifest: PlatformInstallationManifest, resource: InstallationResource, updatedAt: string): PlatformInstallationManifest;
416
403
  export declare function recordInstallationStep(manifest: PlatformInstallationManifest, step: InstallationStep, updatedAt: string): PlatformInstallationManifest;
417
404
  export declare function parsePlatformInstallationManifest(value: unknown): PlatformInstallationManifest;
418
- //#endregion
419
- //#region src/discovery.d.ts
420
405
  export declare const PLATFORM_DISCOVERY_SCHEMA_VERSION: 1;
421
406
  type PlatformAuthenticationDiscovery = Readonly<{
422
407
  methods: ReadonlyArray<PlatformLoginDescriptor>;
@@ -452,8 +437,6 @@ type PlatformDiscoveryInput = Omit<PlatformDiscoveryDocument, "directWorkerUploa
452
437
  */
453
438
  export declare function createPlatformDiscoveryDocument(input: PlatformDiscoveryInput): PlatformDiscoveryDocument;
454
439
  export declare function parsePlatformDiscoveryDocument(value: unknown): PlatformDiscoveryDocument;
455
- //#endregion
456
- //#region src/worker-config.d.ts
457
440
  type PlatformProvisionedResourceIds = Readonly<{
458
441
  hyperdrive: string;
459
442
  isrCacheKv: string;
@@ -482,5 +465,4 @@ export declare function createPlatformWorkerConfigs(input: {
482
465
  runtimeApiAssetsDirectory?: string;
483
466
  trafficState?: "enabled" | "sandbox-drain" | "staging";
484
467
  }): PlatformWorkerConfigSet;
485
- //#endregion
486
468
  export { BUILD_INSTANCE_FREE, BUILD_INSTANCE_LARGE, BuildInstanceType, BuiltinPlanId, EditablePlanLimit, type InstallationResource, type InstallationResourceKind, type InstallationStatus, type InstallationStep, PLAN_EDITABLE_LIMIT_KEYS, PLAN_LIMITS, PlanId, PlanLimits, PlanLimitsPatch, type PlatformAccessProtection, type PlatformAdmissionPolicy, type PlatformAppAccess, type PlatformAppAccessSetup, type PlatformApplication, type PlatformApplicationProject, type PlatformApplicationRoute, type PlatformAuthenticationDiscovery, type PlatformAuthenticationRecovery, type PlatformAuthenticationSetup, type PlatformCapabilities, type PlatformControlPlane, type PlatformDeploymentManifest, type PlatformDeploymentManifestInput, type PlatformDiscoveryDocument, type PlatformInstallationEndpoints, type PlatformInstallationManifest, type PlatformLifecycleOperation, type PlatformLoginConfiguration, type PlatformLoginDescriptor, type PlatformLoginKind, PlatformPlanCatalog, PlatformPlanDefinition, PlatformPlanReconciliation, type PlatformProvisionedResourceIds, type PlatformResourceNames, type PlatformResourceOwnershipMarker, type PlatformRuntimeProvenance, type PlatformSignupAllowlistEntry, type PlatformSignupIdentity, type PlatformWorkerConfigSet, type ResourceOwnership, createDefaultPlanCatalog, parseBuildInstanceType, parsePlanLimitsPatch, parsePlanName, parsePlatformPlanCatalog, parsePlatformPlanId, validatePlanLimits };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { a as isSourceRevision, c as requiredString, i as isSandboxDrainProtocol, n as isPrintableText, o as isUsageProtocolVersion, s as record, t as assertRecord } from "./validate-DbJR7Q0Z.mjs";
1
+ import { a as isSourceRevision, c as requiredString, i as isSandboxDrainProtocol, n as isPrintableText, o as isUsageProtocolVersion, s as record, t as assertRecord } from "./validate-CTKcW3Vp.mjs";
2
2
  import { BUILD_INSTANCE_FREE, BUILD_INSTANCE_LARGE, PLAN_EDITABLE_LIMIT_KEYS, PLAN_LIMITS, createDefaultPlanCatalog, parseBuildInstanceType, parsePlanLimitsPatch, parsePlanName, parsePlatformPlanCatalog, parsePlatformPlanId, validatePlanLimits } from "./plans.mjs";
3
- //#region src/access-policy.ts
3
+ // src/access-policy.ts
4
4
  const COMPANY_IDENTITY_RULES = [
5
5
  "email_list",
6
6
  "gsuite",
@@ -52,8 +52,7 @@ function isPlatformAccessIdentityRule(rule, companyLoginMethod) {
52
52
  return plainObject(value) && Object.keys(value).length > 0;
53
53
  });
54
54
  }
55
- //#endregion
56
- //#region src/app-access.ts
55
+ // src/app-access.ts
57
56
  const PLATFORM_APP_ACCESS_SETUP_PROOF_PREFIX = "void-platform-app-access-v1";
58
57
  /** Uninstall handoff that turns off installer-managed project Zero Trust before any user exists. */
59
58
  const PLATFORM_APP_ACCESS_TURN_OFF_PROOF_PREFIX = "void-platform-app-access-turn-off-v1";
@@ -81,8 +80,7 @@ function parsePlatformAppAccessSetup(value) {
81
80
  policyIds
82
81
  };
83
82
  }
84
- //#endregion
85
- //#region src/authentication-recovery.ts
83
+ // src/authentication-recovery.ts
86
84
  function platformAuthenticationRecoveryMessage(value) {
87
85
  return JSON.stringify([
88
86
  "void-platform-auth-recovery-v1",
@@ -95,8 +93,7 @@ function platformAuthenticationRecoveryMessage(value) {
95
93
  value.expiresAt
96
94
  ]);
97
95
  }
98
- //#endregion
99
- //#region src/authentication.ts
96
+ // src/authentication.ts
100
97
  /** Platform login and perimeter configuration are independent of app authentication. */
101
98
  const PLATFORM_LOGIN_KINDS = [
102
99
  "github",
@@ -296,8 +293,7 @@ function validatePlatformAdmissionPolicy(policy, enabledConnections, protection)
296
293
  if (connection.kind === "github" || connection.kind === "google" && connection.allowedDomains.length === 0) throw new Error("Unrestricted social login does not establish company membership.");
297
294
  }
298
295
  }
299
- //#endregion
300
- //#region src/manifest.ts
296
+ // src/manifest.ts
301
297
  const PLATFORM_DEPLOYMENT_SCHEMA_VERSION = 1;
302
298
  const CORE_CAPABILITIES = {
303
299
  ai: true,
@@ -536,8 +532,7 @@ function parsePlatformDeploymentManifest(value) {
536
532
  resources
537
533
  });
538
534
  }
539
- //#endregion
540
- //#region src/installation.ts
535
+ // src/installation.ts
541
536
  const PLATFORM_INSTALLATION_SCHEMA_VERSION = 1;
542
537
  const PLATFORM_DISABLED_KEY = "__void/platform/disabled/v1";
543
538
  const PLATFORM_DISABLED_VALUE = "disabled";
@@ -909,8 +904,7 @@ function parsePlatformRuntimeProvenance(value) {
909
904
  sourceRevision
910
905
  };
911
906
  }
912
- //#endregion
913
- //#region src/application.ts
907
+ // src/application.ts
914
908
  /** Minimal public-origin adapter; request policy remains in the service-bound dispatcher. */
915
909
  const PLATFORM_PROJECT_INGRESS_SOURCE = `export default {
916
910
  fetch(request, env) {
@@ -987,8 +981,7 @@ function platformProjectHostname(project, application) {
987
981
  function platformProjectHostnames(project, application) {
988
982
  return [.../* @__PURE__ */ new Set([platformProjectHostname(project, application), ...application.workersDev ? [platformProjectWorkersDevHostname(project, application.workersDev)] : []])];
989
983
  }
990
- //#endregion
991
- //#region src/discovery.ts
984
+ // src/discovery.ts
992
985
  const PLATFORM_DISCOVERY_SCHEMA_VERSION = 1;
993
986
  function normalizeOrigin(value, name) {
994
987
  let url;
@@ -1111,8 +1104,7 @@ function parseAuthentication(value) {
1111
1104
  ...authentication.setupPending === true ? { setupPending: true } : {}
1112
1105
  };
1113
1106
  }
1114
- //#endregion
1115
- //#region src/worker-config.ts
1107
+ // src/worker-config.ts
1116
1108
  function createPlatformWorkerConfigs(input) {
1117
1109
  const { accountId, apiUrl, deployment, healthProbeToken, installationId, ownershipNonce, platformVersion, proxyUrl, emailGatewayUrl, resources, runtimeEntrypoints } = input;
1118
1110
  const publicEndpoints = input.publicEndpoints ?? true;
@@ -1420,5 +1412,4 @@ function createPlatformWorkerConfigs(input) {
1420
1412
  }
1421
1413
  };
1422
1414
  }
1423
- //#endregion
1424
1415
  export { BUILD_INSTANCE_FREE, BUILD_INSTANCE_LARGE, DEFAULT_PLATFORM_SESSION_SECONDS, GOOGLE_OIDC_ISSUER, PLAN_EDITABLE_LIMIT_KEYS, PLAN_LIMITS, PLATFORM_APPLICATION_KEY, PLATFORM_APP_ACCESS_SETUP_PROOF_PREFIX, PLATFORM_APP_ACCESS_TURN_OFF_PROOF_PREFIX, PLATFORM_AUTH_SETUP_PROOF_PREFIX, PLATFORM_DEPLOYMENT_SCHEMA_VERSION, PLATFORM_DISABLED_KEY, PLATFORM_DISABLED_VALUE, PLATFORM_DISCOVERY_SCHEMA_VERSION, PLATFORM_HEALTH_HOSTNAME_LABEL, PLATFORM_INSTALLATION_SCHEMA_VERSION, PLATFORM_LOGIN_KINDS, PLATFORM_PROJECT_INGRESS_SOURCE, PLATFORM_R2_OWNERSHIP_MARKER_KEY, PLATFORM_REMOTE_INSTALLATION_MANIFEST_KEY, PLATFORM_RESOURCE_OWNERSHIP_SCHEMA_VERSION, PLATFORM_SANDBOX_DRAIN_KEY, PLATFORM_USAGE_PROTOCOL_VERSION, createApplicationRoutes, createDefaultPlanCatalog, createPlatformDeploymentManifest, createPlatformDiscoveryDocument, createPlatformInstallationManifest, createPlatformResourceNames, createPlatformResourceOwnershipMarker, createPlatformWorkerConfigs, isPlatformAccessCompanyIdentityProvider, isPlatformAccessEmailDomain, isPlatformAccessIdentityRule, isPlatformSignupAllowed, normalizeApplicationDomain, normalizeInstallationSlug, normalizePlatformDashboardUrl, parseBuildInstanceType, parsePlanLimitsPatch, parsePlanName, parsePlatformAccessProtection, parsePlatformAdmissionPolicy, parsePlatformAppAccessSetup, parsePlatformAuthenticationSetup, parsePlatformDeploymentManifest, parsePlatformDiscoveryDocument, parsePlatformIdentityUrl, parsePlatformInstallationManifest, parsePlatformLifecycleOperation, parsePlatformLoginConfiguration, parsePlatformLoginDescriptor, parsePlatformLoginId, parsePlatformPlanCatalog, parsePlatformPlanId, parsePlatformResourceOwnershipMarker, parsePlatformSignupAllowlistEntry, platformAuthenticationRecoveryMessage, platformDashboardUrl, platformHealthHostname, platformProjectHostname, platformProjectHostnames, platformProjectIngressName, platformProjectIngressPrefix, platformProjectWorkersDevHostname, platformProtectionProofMessage, platformWorkersDevAliasKey, readPlatformApplication, recordInstallationResource, recordInstallationStep, resolvePlatformApplicationEnvironment, setInstallationDesiredState, setInstallationEndpoints, transitionInstallation, validatePlanLimits, validatePlatformAdmissionPolicy };
@@ -1,4 +1,3 @@
1
- //#region src/installer.d.ts
2
1
  export type PlatformRuntimeArtifact = Readonly<{
3
2
  path: string;
4
3
  sha256: string;
@@ -58,5 +57,4 @@ export declare function platformDatabaseSchemaDigest(lineage: string, migrations
58
57
  export declare function parsePlatformRuntimeManifest(value: unknown): PlatformRuntimeManifest;
59
58
  export declare function getPlatformRuntimeDirectory(): string;
60
59
  export declare function readPlatformRuntimeManifest(runtimeDirectory?: string): PlatformRuntimeManifest;
61
- export declare function resolvePlatformRuntime(customRuntimeDirectory?: string, baseDirectory?: string): PlatformRuntime;
62
- //#endregion
60
+ export declare function resolvePlatformRuntime(customRuntimeDirectory?: string, baseDirectory?: string): PlatformRuntime;
@@ -1,9 +1,9 @@
1
- import { a as isSourceRevision, i as isSandboxDrainProtocol, o as isUsageProtocolVersion, r as isRecord } from "./validate-DbJR7Q0Z.mjs";
1
+ import { a as isSourceRevision, i as isSandboxDrainProtocol, o as isUsageProtocolVersion, r as isRecord } from "./validate-CTKcW3Vp.mjs";
2
2
  import { createHash } from "node:crypto";
3
3
  import { readFileSync, realpathSync, statSync } from "node:fs";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { dirname, isAbsolute, join, resolve } from "pathslash";
6
- //#region src/installer.ts
6
+ // src/installer.ts
7
7
  const PLATFORM_ADMIN_ASSETS_DIRECTORY = "api/assets";
8
8
  const PLATFORM_ADMIN_CLIENT_ASSET_PATH = `${PLATFORM_ADMIN_ASSETS_DIRECTORY}/admin/client.js`;
9
9
  const PLATFORM_ADMIN_STYLE_ASSET_PATH = `${PLATFORM_ADMIN_ASSETS_DIRECTORY}/admin/style.css`;
@@ -203,5 +203,4 @@ function sha256(value, name) {
203
203
  if (typeof value !== "string" || !SHA256_PATTERN.test(value)) throw new Error(`${name} must be a lowercase SHA-256 digest`);
204
204
  return value;
205
205
  }
206
- //#endregion
207
206
  export { PLATFORM_ADMIN_ASSETS_DIRECTORY, PLATFORM_ADMIN_CLIENT_ASSET_PATH, PLATFORM_ADMIN_STYLE_ASSET_PATH, getPlatformRuntimeDirectory, parsePlatformRuntimeManifest, platformDatabaseSchemaDigest, readPlatformRuntimeManifest, resolvePlatformRuntime };
package/dist/plans.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/plans.d.ts
2
1
  /** Installation-defined plan IDs are stable even when a display name changes. */
3
2
  export type PlanId = string;
4
3
  export type BuiltinPlanId = "free" | "solo" | "pro" | "sponsored" | "custom";
@@ -73,5 +72,4 @@ export declare function parsePlanLimitsPatch(value: unknown): PlanLimitsPatch;
73
72
  export declare function validatePlanLimits(limits: PlanLimits): void;
74
73
  export declare function parseBuildInstanceType(value: unknown): BuildInstanceType;
75
74
  /** Strict saved-state validation: invalid configuration must not silently lift quotas. */
76
- export declare function parsePlatformPlanCatalog(value: unknown): PlatformPlanCatalog;
77
- //#endregion
75
+ export declare function parsePlatformPlanCatalog(value: unknown): PlatformPlanCatalog;
package/dist/plans.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { n as isPrintableText, s as record } from "./validate-DbJR7Q0Z.mjs";
2
- //#region src/plans.ts
1
+ import { n as isPrintableText, s as record } from "./validate-CTKcW3Vp.mjs";
2
+ // src/plans.ts
3
3
  const GB = 1073741824;
4
4
  const PLAN_LIMITS = {
5
5
  free: {
@@ -199,5 +199,4 @@ function parsePlatformPlanCatalog(value) {
199
199
  reconciliation
200
200
  };
201
201
  }
202
- //#endregion
203
202
  export { BUILD_INSTANCE_FREE, BUILD_INSTANCE_LARGE, PLAN_EDITABLE_LIMIT_KEYS, PLAN_LIMITS, createDefaultPlanCatalog, parseBuildInstanceType, parsePlanLimitsPatch, parsePlanName, parsePlatformPlanCatalog, parsePlatformPlanId, validatePlanLimits };