@tokenoftrust/storefront-runner 2.4.16 → 2.4.18

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.
@@ -155,7 +155,13 @@ export async function resolvePublicationRuntimeSourceV1(input: {
155
155
  channel: input.channel,
156
156
  bucket: input.bucket,
157
157
  });
158
- if (!opened.ok) return { status: "unavailable", code: opened.code };
158
+ if (!opened.ok) {
159
+ // A root this channel never selected stays on the legacy adapter whatever the tenant's other
160
+ // spaces select; a mounted space has no legacy adapter to fall back to.
161
+ return isRoot && opened.code === "publication_channel_unselected"
162
+ ? { status: "legacy-root" }
163
+ : { status: "unavailable", code: opened.code };
164
+ }
159
165
  const { selection } = opened.value;
160
166
  let clock: PublicationRuntimeClockV1 | null = null;
161
167
  if (selection.manifest.visibility === "public") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/storefront-runner",
3
- "version": "2.4.16",
3
+ "version": "2.4.18",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "World-shareable storefront runner: multi-tenant renderer on Astro/Cloudflare. No control plane.",
6
6
  "packageManager": "pnpm@11.9.0",
@@ -205,6 +205,9 @@ export function publicationArtifactKeyV1(
205
205
  return `publications/${tenant}/${spaceId}/${versionId}/${lane}/${relativePath}`;
206
206
  }
207
207
 
208
+ /** The largest `bundle.json` marker review admission reads; a larger one is never built. */
209
+ export const PUBLICATION_ARTIFACT_MARKER_MAX_BYTES = 16 * 1024 * 1024;
210
+
208
211
  /** Marker address for one immutable tenant+space+version bundle. */
209
212
  export function publicationArtifactBundleKeyV1(
210
213
  tenant: string,