@arcote.tech/arc-cli 0.8.3 → 0.8.5

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.
@@ -23,6 +23,7 @@ import {
23
23
  type BuildCache,
24
24
  } from "../builder/build-cache";
25
25
  import { extractAccessMap } from "../builder/access-extractor";
26
+ import { assertSeedsServerGated } from "../builder/seed-guard";
26
27
  import { buildPeerShell, type PeerShellResult } from "../builder/peer-shell";
27
28
  import type { FederationConfig } from "@arcote.tech/platform";
28
29
  import {
@@ -172,9 +173,14 @@ export async function buildAll(
172
173
 
173
174
  log(`Building (concurrency parallel${noCache ? ", no-cache" : ""})...`);
174
175
 
175
- // Phase 0 — invariant check before any work: one module() per package,
176
- // else chunk grouping (per-package) silently mis-assigns the extra module.
176
+ // Phase 0 — invariant checks before any work.
177
+ // (a) one module() per package, else chunk grouping (per-package) silently
178
+ // mis-assigns the extra module.
177
179
  assertOneModulePerPackage(ws.packages);
180
+ // (b) seedy owinięte ONLY_SERVER — inaczej literał danych seed wycieka do
181
+ // publicznego bundla klienta (patrz seed-guard.ts). Rusza NAJWCZEŚNIEJ:
182
+ // przed drogim buildem serwera i access-extractorem — szybki, czytelny fail.
183
+ assertSeedsServerGated(ws.packages, ws.rootDir);
178
184
 
179
185
  // Phase 1 — per-package BROWSER context bundles + type declarations.
180
186
  await buildContextPackages(ws.rootDir, ws.packages, cache, noCache);