@valbuild/tanstack-build 0.140.1 → 0.144.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var regeneratorValues = require('./regeneratorValues-637c3146.cjs.prod.js');
5
+ var regeneratorValues = require('./regeneratorValues-295cad22.cjs.prod.js');
6
6
  var browser = require('@rolldown/browser');
7
7
  var projectPaths = require('./projectPaths-9cbecebf.cjs.prod.js');
8
8
  var parseAst = require('@rolldown/browser/parseAst');
@@ -374,32 +374,6 @@ function _transformServerFns() {
374
374
  return _transformServerFns.apply(this, arguments);
375
375
  }
376
376
 
377
- // One sha256, used by the build hash and by asset content-addressing.
378
- //
379
- // `crypto.subtle` rather than node:crypto: the builder runs in a browser tab as
380
- // well as in Node, and this is the only digest available in both.
381
- function sha256Hex(_x) {
382
- return _sha256Hex.apply(this, arguments);
383
- }
384
- function _sha256Hex() {
385
- _sha256Hex = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee(text) {
386
- var digest;
387
- return regeneratorValues._regenerator().w(function (_context) {
388
- while (1) switch (_context.n) {
389
- case 0:
390
- _context.n = 1;
391
- return crypto.subtle.digest("SHA-256", new TextEncoder().encode(text));
392
- case 1:
393
- digest = _context.v;
394
- return _context.a(2, regeneratorValues._toConsumableArray(new Uint8Array(digest)).map(function (_byte) {
395
- return _byte.toString(16).padStart(2, "0");
396
- }).join(""));
397
- }
398
- }, _callee);
399
- }));
400
- return _sha256Hex.apply(this, arguments);
401
- }
402
-
403
377
  var isCssModule = function isCssModule(path) {
404
378
  return /\.module\.css$/.test(path.split("?")[0]);
405
379
  };
@@ -443,7 +417,7 @@ function _transformCssModule() {
443
417
  while (1) switch (_context.n) {
444
418
  case 0:
445
419
  _context.n = 1;
446
- return sha256Hex(path);
420
+ return regeneratorValues.sha256Hex(path);
447
421
  case 1:
448
422
  suffix = _context.v.slice(0, 8);
449
423
  warnings = [];
@@ -480,6 +454,93 @@ var cssModuleExports = function cssModuleExports(names) {
480
454
  return "export default ".concat(JSON.stringify(names, null, 2), "\n");
481
455
  };
482
456
 
457
+ // `@import` inside a stylesheet.
458
+ /**
459
+ * A comment, or an `@import` with a quoted target -- `@import "x";`,
460
+ * `@import 'x' layer(base);`, `@import url("x") screen;`.
461
+ *
462
+ * Comments are matched so they can be skipped: an `@import` inside one is
463
+ * documentation, not an import. An unquoted `url(x)` is left for the browser,
464
+ * which is also what it does with one.
465
+ */
466
+ var IMPORT_OR_COMMENT = /\/\*[\s\S]*?\*\/|@import\s+(?:url\(\s*)?(["'])([^"']+)\1\s*\)?\s*([^;]*);/g;
467
+ var isTailwind = function isTailwind(specifier) {
468
+ return /^tailwindcss(\/|$)/.test(specifier);
469
+ };
470
+ var isUrl = function isUrl(specifier) {
471
+ return /^([a-z]+:)?\/\//i.test(specifier) || specifier.startsWith("data:");
472
+ };
473
+ var isRelative = function isRelative(specifier) {
474
+ return specifier.startsWith("./") || specifier.startsWith("../") || specifier.startsWith("/");
475
+ };
476
+
477
+ /**
478
+ * What an `@import`'s conditions do to the sheet it pulls in.
479
+ *
480
+ * `layer(name)` puts it in a cascade layer, `supports(...)` behind a feature
481
+ * query and anything left over is a media query -- so inlining has to keep
482
+ * each as the block it would have been, or the rules would apply everywhere.
483
+ */
484
+ function wrap(css, conditions) {
485
+ var rest = conditions.trim();
486
+ var layer = null;
487
+ var supports = null;
488
+ var layerMatch = /^layer(?:\(([^)]*)\))?/.exec(rest);
489
+ if (layerMatch) {
490
+ var _layerMatch$;
491
+ layer = ((_layerMatch$ = layerMatch[1]) !== null && _layerMatch$ !== void 0 ? _layerMatch$ : "").trim();
492
+ rest = rest.slice(layerMatch[0].length).trim();
493
+ }
494
+ var supportsMatch = /^supports\(((?:[^()]|\([^()]*\))*)\)/.exec(rest);
495
+ if (supportsMatch) {
496
+ supports = supportsMatch[1].trim();
497
+ rest = rest.slice(supportsMatch[0].length).trim();
498
+ }
499
+ var out = css;
500
+ if (layer !== null) out = "@layer".concat(layer ? " ".concat(layer) : "", " {\n").concat(out, "\n}");
501
+ if (supports !== null) out = "@supports (".concat(supports, ") {\n").concat(out, "\n}");
502
+ if (rest) out = "@media ".concat(rest, " {\n").concat(out, "\n}");
503
+ return out;
504
+ }
505
+
506
+ /**
507
+ * The stylesheet at `path`, with every `@import` it can resolve inlined.
508
+ *
509
+ * `path` is the project path of the sheet, or the specifier of a dependency's
510
+ * sheet. A dependency's own relative imports were flattened when it was read
511
+ * (see `collectDependencyCss`), so what is left in one is bare, if anything.
512
+ */
513
+ function expandCssImports(path, css, context) {
514
+ var fromDependency = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
515
+ return css.replace(IMPORT_OR_COMMENT, function (match, quote, specifier, conditions) {
516
+ if (quote === undefined || specifier === undefined) return match;
517
+ if (isTailwind(specifier) || isUrl(specifier)) return match;
518
+ if (isRelative(specifier)) {
519
+ if (fromDependency) {
520
+ context.warnings.push("'".concat(path, "' imports '").concat(specifier, "', which was not carried with it. ") + "Its own stylesheets are read when the vendor layer is built; " + "publish again from the CLI.");
521
+ return "";
522
+ }
523
+ var target = resolve(dirname(path), specifier);
524
+ var _text = context.files[target];
525
+ if (_text === undefined) {
526
+ context.warnings.push("'".concat(path, "' imports '").concat(specifier, "', and there is no '").concat(target, "' in the project."));
527
+ return "";
528
+ }
529
+ if (context.seen.has(target)) return "";
530
+ context.seen.add(target);
531
+ return wrap(expandCssImports(target, _text, context).trim(), conditions !== null && conditions !== void 0 ? conditions : "");
532
+ }
533
+ var text = context.dependencyCss[specifier];
534
+ if (text === undefined) {
535
+ context.warnings.push("'".concat(path, "' imports '").concat(specifier, "', a stylesheet this build does not carry. ") + "Is '".concat(specifier.startsWith("@") ? specifier.split("/").slice(0, 2).join("/") : specifier.split("/")[0], "' ") + "in package.json's dependencies?");
536
+ return "";
537
+ }
538
+ if (context.seen.has(specifier)) return "";
539
+ context.seen.add(specifier);
540
+ return wrap(expandCssImports(specifier, text, context, true).trim(), conditions !== null && conditions !== void 0 ? conditions : "");
541
+ });
542
+ }
543
+
483
544
  var CSS_EXTENSIONS = [".css"];
484
545
 
485
546
  /**
@@ -560,6 +621,7 @@ function _collectCss() {
560
621
  contributing,
561
622
  modules,
562
623
  warnings,
624
+ imports,
563
625
  walk,
564
626
  _walk,
565
627
  _args3 = arguments;
@@ -599,7 +661,7 @@ function _collectCss() {
599
661
  _context2.n = 4;
600
662
  break;
601
663
  case 3:
602
- sheets.push(text);
664
+ sheets.push(expandCssImports(bare, text, imports));
603
665
  case 4:
604
666
  contributing.push(bare);
605
667
  return _context2.a(2);
@@ -643,7 +705,7 @@ function _collectCss() {
643
705
  break;
644
706
  }
645
707
  visited.add(_bare);
646
- sheets.push(dependencyCss[_bare]);
708
+ sheets.push(expandCssImports(_bare, dependencyCss[_bare], imports, true));
647
709
  contributing.push(_bare);
648
710
  return _context2.a(3, 21);
649
711
  case 11:
@@ -723,7 +785,15 @@ function _collectCss() {
723
785
  sheets = [];
724
786
  contributing = [];
725
787
  modules = {};
726
- warnings = [];
788
+ warnings = []; // `@import`s inside the sheets. `seen` is the walk's own `visited`, so a
789
+ // stylesheet reached both from a module and from another sheet is emitted
790
+ // once, wherever it is reached first.
791
+ imports = {
792
+ files: files,
793
+ dependencyCss: dependencyCss,
794
+ seen: visited,
795
+ warnings: warnings
796
+ };
727
797
  _context3.n = 1;
728
798
  return walk(entry);
729
799
  case 1:
@@ -943,109 +1013,6 @@ function _compileTailwind() {
943
1013
  return _compileTailwind.apply(this, arguments);
944
1014
  }
945
1015
 
946
- /**
947
- * Extensions treated as assets.
948
- *
949
- * Deliberately a list rather than "anything not JS or CSS": an unknown
950
- * extension should fail as an unresolved import naming the file, not silently
951
- * become a URL to something the browser cannot use.
952
- */
953
- var ASSET_TYPES = {
954
- ".png": "image/png",
955
- ".jpg": "image/jpeg",
956
- ".jpeg": "image/jpeg",
957
- ".gif": "image/gif",
958
- ".webp": "image/webp",
959
- ".avif": "image/avif",
960
- ".svg": "image/svg+xml",
961
- ".ico": "image/x-icon",
962
- ".woff": "font/woff",
963
- ".woff2": "font/woff2",
964
- ".ttf": "font/ttf",
965
- ".otf": "font/otf",
966
- ".mp4": "video/mp4",
967
- ".webm": "video/webm",
968
- ".mp3": "audio/mpeg",
969
- ".wav": "audio/wav",
970
- ".pdf": "application/pdf",
971
- ".txt": "text/plain"
972
- };
973
- var extensionOf = function extensionOf(path) {
974
- var at = path.lastIndexOf(".");
975
- return at === -1 ? "" : path.slice(at).toLowerCase();
976
- };
977
- var isAsset = function isAsset(path) {
978
- return extensionOf(path) in ASSET_TYPES;
979
- };
980
- var mimeOf = function mimeOf(path) {
981
- var _ASSET_TYPES$extensio;
982
- return (_ASSET_TYPES$extensio = ASSET_TYPES[extensionOf(path)]) !== null && _ASSET_TYPES$extensio !== void 0 ? _ASSET_TYPES$extensio : "application/octet-stream";
983
- };
984
-
985
- /**
986
- * Below this many decoded bytes, an asset is inlined as a data URI.
987
- *
988
- * 4 kB, matching Vite's `assetsInlineLimit` default. The trade is the same one
989
- * Vite is making: an extra request costs more than 4 kB of base64 does, and
990
- * above that it stops being true.
991
- */
992
- var INLINE_LIMIT = 4096;
993
-
994
- /** Decoded byte length of base64, without decoding it. */
995
- function base64Bytes(base64) {
996
- var clean = base64.replace(/=+$/, "");
997
- return Math.floor(clean.length * 3 / 4);
998
- }
999
- /**
1000
- * Where an asset import resolves to, for one target.
1001
- *
1002
- * Server and client get the *same* URL. An asset is a URL in both, and SSR has
1003
- * to emit the same `src` the browser will hydrate against -- a server bundle
1004
- * with a different URL would be a hydration mismatch on every image.
1005
- */
1006
- function resolveAsset(_x, _x2) {
1007
- return _resolveAsset.apply(this, arguments);
1008
- }
1009
-
1010
- /** Where published assets are served from. Matched by the loader. */
1011
- function _resolveAsset() {
1012
- _resolveAsset = regeneratorValues._asyncToGenerator(/*#__PURE__*/regeneratorValues._regenerator().m(function _callee(path, base64) {
1013
- var hash, name;
1014
- return regeneratorValues._regenerator().w(function (_context) {
1015
- while (1) switch (_context.n) {
1016
- case 0:
1017
- if (!(base64Bytes(base64) <= INLINE_LIMIT)) {
1018
- _context.n = 1;
1019
- break;
1020
- }
1021
- return _context.a(2, {
1022
- url: "data:".concat(mimeOf(path), ";base64,").concat(base64)
1023
- });
1024
- case 1:
1025
- _context.n = 2;
1026
- return sha256Hex(base64);
1027
- case 2:
1028
- hash = _context.v.slice(0, 16);
1029
- name = "".concat(hash).concat(extensionOf(path));
1030
- return _context.a(2, {
1031
- url: "".concat(ASSET_BASE).concat(name),
1032
- file: {
1033
- name: name,
1034
- base64: base64
1035
- }
1036
- });
1037
- }
1038
- }, _callee);
1039
- }));
1040
- return _resolveAsset.apply(this, arguments);
1041
- }
1042
- var ASSET_BASE = "/_app/a/";
1043
-
1044
- /** The module a resolved asset import becomes. */
1045
- var assetModule = function assetModule(url) {
1046
- return "export default ".concat(JSON.stringify(url), "\n");
1047
- };
1048
-
1049
1016
  /** Cheap pre-filter: skip the parse unless one of these appears in the source. */
1050
1017
  var MARKERS = ["createIsomorphicFn", "createServerOnlyFn", "createClientOnlyFn", "createMiddleware", "ClientOnly"];
1051
1018
 
@@ -2747,7 +2714,7 @@ function projectPlugin(files, projectSource, splitter, cssModules, aliases, asse
2747
2714
  // Assets are resolved against their own map: they are not text, so they
2748
2715
  // never entered `files`. Checked first because an asset path would not
2749
2716
  // resolve there anyway, and the error would name the wrong thing.
2750
- if (isAsset(base) && base in assets) return ASSET_PREFIX + base;
2717
+ if (regeneratorValues.isAsset(base) && base in assets) return ASSET_PREFIX + base;
2751
2718
  // A CSS module's *import* is its name mapping. The stylesheet half was
2752
2719
  // produced by the CSS pass; this is the object the module returns.
2753
2720
  var bareCss = withoutCssQuery(base);
@@ -2837,9 +2804,9 @@ function projectPlugin(files, projectSource, splitter, cssModules, aliases, asse
2837
2804
  }
2838
2805
  // Resolved ahead of the build, because `load` cannot be async here and
2839
2806
  // because the URL has to be identical across targets -- see resolveAsset.
2840
- if (id === CSS_URL_ID) return assetModule(CSS_URL);
2807
+ if (id === CSS_URL_ID) return regeneratorValues.assetModule(CSS_URL);
2841
2808
  if (id.startsWith(ASSET_PREFIX)) {
2842
- return assetModule(assetUrls.get(id.slice(ASSET_PREFIX.length)));
2809
+ return regeneratorValues.assetModule(assetUrls.get(id.slice(ASSET_PREFIX.length)));
2843
2810
  }
2844
2811
  if (!(id in files)) return null;
2845
2812
 
@@ -3205,7 +3172,7 @@ function _buildUserApp() {
3205
3172
  }
3206
3173
  _Object$entries3$_i = regeneratorValues._slicedToArray(_Object$entries3[_i3], 2), path = _Object$entries3$_i[0], base64 = _Object$entries3$_i[1];
3207
3174
  _context3.n = 5;
3208
- return resolveAsset(path, base64);
3175
+ return regeneratorValues.resolveAsset(path, base64);
3209
3176
  case 5:
3210
3177
  resolved = _context3.v;
3211
3178
  assetUrls.set(path, resolved.url);
@@ -3215,6 +3182,8 @@ function _buildUserApp() {
3215
3182
  _context3.n = 4;
3216
3183
  break;
3217
3184
  case 7:
3185
+ Object.assign(assetFiles, input.dependencyAssets);
3186
+
3218
3187
  // Collected once rather than per target: the stylesheet is the same either
3219
3188
  // way, and only the client ever uses it. Whether a build produced one is
3220
3189
  // recorded in the head pointer at publish time, because the loader -- not the
@@ -3308,7 +3277,7 @@ function _buildUserApp() {
3308
3277
  _t11 = input.rsc ? clientModules : undefined;
3309
3278
  _t12 = input.target.base.rev;
3310
3279
  _context3.n = 16;
3311
- return sha256Hex([input.target.base.rev, rev, styles].concat(regeneratorValues._toConsumableArray(Object.entries(assetFiles).flat()), regeneratorValues._toConsumableArray(Object.entries(publicFiles).flat()), regeneratorValues._toConsumableArray([serverBuild, clientBuild, rscBuild].flatMap(function (built) {
3280
+ return regeneratorValues.sha256Hex([input.target.base.rev, rev, styles].concat(regeneratorValues._toConsumableArray(Object.entries(assetFiles).flat()), regeneratorValues._toConsumableArray(Object.entries(publicFiles).flat()), regeneratorValues._toConsumableArray([serverBuild, clientBuild, rscBuild].flatMap(function (built) {
3312
3281
  return built ? [built.code].concat(regeneratorValues._toConsumableArray(Object.entries(built.chunks).flat())) : [];
3313
3282
  }))).join("\0"));
3314
3283
  case 16:
@@ -3435,7 +3404,7 @@ function _publishArtifacts() {
3435
3404
  _t = key;
3436
3405
  _t2 = body;
3437
3406
  _context.n = 1;
3438
- return sha256Hex(body);
3407
+ return regeneratorValues.sha256Hex(body);
3439
3408
  case 1:
3440
3409
  _t3 = _context.v;
3441
3410
  _t4 = encoder.encode(body).length;
@@ -3835,9 +3804,22 @@ var LEGACY_CONTROL_HOST = "platform.internal";
3835
3804
  * these are fetched. Credentials stop being what EDITING needs and become what
3836
3805
  * running needs.
3837
3806
  */
3807
+ /**
3808
+ * What reads the proposal a platform says this isolate serves, in the
3809
+ * generated file. A constant rather than inline in the template so
3810
+ * {@link rebakeProposal} can add the same text to a file wired before it
3811
+ * existed -- which is every project already published, since a build in a tab
3812
+ * rewrites single lines of its `val.server.ts` and never regenerates it.
3813
+ */
3814
+ var PROPOSAL_BLOCK = "/*\n * THE PROPOSAL this isolate serves the address of, when it does: its name and\n * content branch, and the content it has saved (`VAL_OVERLAY`: the save's\n * commit, its Source by module and its `.val.ts` text by path). Val reads\n * that Source instead of the bundle's, commits a save to the proposal, and\n * names the save as its position. valbuild/home `docs/proposals.md`,\n * \"Saving\".\n *\n * Parsed here rather than with `proposalFromEnv` from @valbuild/server,\n * because this file is compiled against whatever @valbuild/tanstack the\n * PROJECT installed, and one from before proposals has no such export -- it\n * also ignores the `proposal` key below, and serves the base build, which\n * is the best an old app can do. A snapshot that does not parse is thrown,\n * not served as the base: a reviewer must not be shown the wrong content as\n * though it were the proposal.\n */\nconst proposal = (() => {\n const name = secret(\"VAL_PROPOSAL\");\n const branch = secret(\"VAL_BRANCH\");\n if (!name || !branch) return undefined;\n const overlay: {\n commit?: string | null;\n modules?: Record<string, unknown>;\n files?: Record<string, string>;\n } = JSON.parse(secret(\"VAL_OVERLAY\") ?? \"{}\");\n return {\n name,\n branch,\n commit: overlay.commit ?? null,\n modules: overlay.modules ?? {},\n files: overlay.files ?? {},\n };\n})();\n";
3815
+ /** Where {@link PROPOSAL_BLOCK} goes: right after this line. */
3816
+ var SERVED_BUILD_LINE = 'const servedBuild = secret("VAL_BUILD");\n';
3817
+ /** And the option that hands it to Val, after the build's. */
3818
+ var PROPOSAL_OPTION = " ...(proposal !== undefined ? { proposal } : {}),\n";
3819
+ var PUBLISH_BUILD_OPTION = " ...(servedBuild !== undefined ? { publishBuild: servedBuild } : {}),\n";
3838
3820
  var valServerSource = function valServerSource(_ref) {
3839
3821
  var git = _ref.git;
3840
- return "".concat(WIRED_MARKER, "\nimport {\n initValContent,\n initValServer,\n} from \"@valbuild/tanstack/server\";\nimport { config } from \"../../val.config\";\nimport valModules from \"../../val.modules\";\n/*\n * This build's own source, which a publish patches. A project with no\n * repository has no other copy of its `.val.ts` text: content keeps its\n * content as data. Ignored by a @valbuild/tanstack that predates it.\n */\nimport { FILES } from \"platform:project-source\";\n\n/**\n * A secret, as the platform hands it over at RUNTIME.\n *\n * Preferred over `process.env`, which the builder inlines as a literal into\n * this bundle: that puts the value in storage inside the code, copies it into\n * every isolate that loads it, and makes rotating it a republish.\n *\n * Falls back to the build-time value, so an app published before secrets\n * existed keeps working.\n */\nfunction secret(name: string): string | undefined {\n return (globalThis.__PLATFORM_SECRETS ?? {})[name] ?? process.env[name];\n}\n\n/**\n * The commit this build was made from, and the branch it commits to.\n *\n * Baked in rather than handed over at runtime, unlike a secret, because it is\n * not configuration -- it is a property OF THIS BUILD. Every read of a\n * `.val.ts` in http mode fetches that path from the content service at this\n * sha, so a build served with somebody else's commit renders and edits a\n * version of its files it was not compiled from. A secret can be rotated under\n * a running build; this cannot, and publishing again is how it changes.\n *\n * WHAT THIS IS NOT. It is not every read: a committed render reads the source\n * bundled into this build and asks the content service nothing. It is the\n * PUBLISH path -- turning pending patches into new `.val.ts` text means\n * fetching the current text to patch, and that is the read that happens at\n * this sha. The docblock used to say \"every read\", which sent readers looking\n * for a content call on the serving path that is not there.\n *\n * `null` when the source came from no commit -- a record assembled in a tab,\n * a fixture, or ANY build this platform makes, which is the common case rather\n * than the exception. Such a build has no repository to mirror commits into,\n * and does not need one: the content service is the store of record for\n * content and mints its own commit shas. Val is in http mode on credentials\n * alone.\n */\nconst BUILT_FROM = ").concat(git ? JSON.stringify(git) : "null", ";\n\n/**\n * The publish job this build was made for, when a Studio built it in a tab.\n *\n * A tab's build has no commit to bake -- the job's is minted at the seal, after\n * the build -- so this is how it says where it sits in the content service's\n * chain. Without it the service places it at whatever build is live, which is\n * a different build for a request this one is still serving when the pointer\n * moves. Set by the Studio (`rebakeGit`), `null` for any other build.\n */\nconst BUILT_FOR_JOB = null;\n\n/**\n * What puts Val in http mode: its content service owns the content.\n *\n * The same three things any deployed Val app is configured with. Note what is\n * NOT here: no `sourceFiles`, so patches are relayed to the content service\n * instead of being kept by this platform, and the browser uploads an image\n * straight there on a presigned URL instead of streaming it through here.\n *\n * `undefined` when a credential or the commit is missing, and deliberately not\n * a throw at module scope: that would take the isolate down with it, page\n * renders included. Val is left to refuse the request and name what it wanted\n * -- `VAL_ENV=app` is set on this build precisely so that a missing credential\n * is an error instead of a fall-through to `fs` mode, looking for a working\n * tree that is not in here.\n */\nconst apiKey = secret(\"VAL_API_KEY\");\nconst valSecret = secret(\"VAL_SECRET\");\n/*\n * Which content service, for a project that is not pointed at the real one.\n *\n * A secret rather than a baked literal, because unlike the commit this IS\n * configuration: the same build should be servable against a stand-in and\n * against production. It is what makes the editing path testable at all --\n * Val's own `e2e/mock-content-host` implements this wire protocol with no git\n * repository behind it -- and without it a build could only ever talk to\n * content.val.build.\n *\n * It does NOT redirect everything, and the gap is in Val rather than here:\n * `getSettings`, which remote FILES use, reads `process.env.VAL_CONTENT_URL`\n * at module scope inside @valbuild/server. This platform bundles its\n * dependencies separately from the app, so nothing it sets reaches that read --\n * the same reason `apiKey` has to be passed in rather than found. So patches,\n * commits and source reads go where this says, and remote file uploads still\n * address the real host.\n */\nconst valContentUrl = secret(\"VAL_CONTENT_URL\");\n/*\n * WHICH project's content this is, at the content service.\n *\n * Val's own name for the project (`org/name`), which is not the platform's\n * project id and cannot be derived from it. A repository that is deployed\n * anywhere else puts it in `val.config.ts`; one imported here need not have,\n * so it is configuration the platform can supply -- and it goes through\n * `secret` rather than `--env` for a second reason: a build-time literal\n * would have to be baked into the shared dependency layer, where\n * @valbuild/server reads `process.env.VAL_PROJECT`, and that layer is reused\n * by every project with the same dependencies.\n *\n * What the app configured wins over nothing at all, so a repository that does\n * name its project keeps working with no secret set.\n */\nconst valProject = secret(\"VAL_PROJECT\");\n/*\n * WHICH BUILD this is, as the platform running it says.\n *\n * Not baked like `BUILT_FROM`, because it cannot be: a build's hash is taken\n * of its output, this file included. The platform hands it over at runtime,\n * and Val sends it to the content service, which places this build's overlay\n * by it -- the one answer that holds for the minute after a publish in which\n * the edge still serves this build while the pointer already names the next.\n * Ignored by a @valbuild/tanstack that predates it.\n */\nconst servedBuild = secret(\"VAL_BUILD\");\nconst valConfig = {\n ...config,\n ...(valProject !== undefined ? { project: valProject } : {}),\n};\n/*\n * CREDENTIALS ALONE. A commit is not part of what puts Val in http mode.\n *\n * It used to be: `GIT !== null` was in this condition, and a build with no\n * commit fell through to `undefined` -- which meant every site this platform\n * seeded was silently unable to edit, because a shared build cannot know a\n * commit. The binding that worked around it (`VAL_GIT_COMMIT` /\n * `VAL_GIT_BRANCH` out of the project's secrets) is gone with it: it named a\n * commit in the TEMPLATE's repository, which was true only for as long as\n * seeding and repository creation shared a template, and it was one more thing\n * in KV that could go stale.\n *\n * The commit is optional NOW, and it is still sent where there is one -- see\n * the note at the spread below. What is gone is the binding that supplied one\n * from KV, so there is one source per environment and no precedence rule\n * between a baked value and a bound one.\n */\nconst http =\n apiKey !== undefined && valSecret !== undefined\n ? {\n apiKey,\n valSecret,\n /*\n * BOTH SPELLINGS OF THE COMMIT, because the APP decides which one is\n * read and this file cannot know which app it is being written into.\n *\n * `ValHttpMode` has been renamed in both directions. Up to 0.132 it\n * took `gitCommit`/`gitBranch`; 0.133.0 replaced that pair with a\n * nested `git`; the version this package ships beside flattens it\n * back again. The generated file is compiled against whatever\n * `@valbuild/tanstack` the PROJECT installed -- the starter pins\n * 0.133.0 -- and a platform writing this file has no say in that. So\n * this is not one rename behind or ahead: it is on both sides of one at\n * once, and will be until every app it publishes has moved.\n *\n * Sending only the wrong one is SILENT, which is why this is belt and\n * braces rather than a version check. An unknown key on the options\n * object is ignored, so the commit is simply dropped and a build wired\n * FROM A COMMIT runs as though it had none -- which means a publish\n * produces no mirrored `.val.ts`, so a save commits and hands over\n * nothing, and the site keeps serving its old content with the patches\n * already consumed. Nothing reports it. valbuild/home's loop is the one\n * thing that sees it, and it was bisected there: 25/25 with the key the\n * installed version reads, 21/23 without, failing at exactly \"the save\n * left the file it rewrote pending\".\n *\n * Whichever version is installed reads its own key and ignores the\n * other two. Drop this to one spelling when every app this platform\n * publishes is past the rename -- not before, and not on the say-so of\n * a compiler in the Val repository, which is looking at a different\n * version of `@valbuild/tanstack` than the app is.\n */\n ...(BUILT_FROM !== null\n ? {\n git: BUILT_FROM,\n gitCommit: BUILT_FROM.commit,\n gitBranch: BUILT_FROM.branch,\n }\n : {}),\n ...(valContentUrl !== undefined ? { valContentUrl } : {}),\n projectSource: FILES,\n ...(BUILT_FOR_JOB !== null ? { publishJob: BUILT_FOR_JOB } : {}),\n ...(servedBuild !== undefined ? { publishBuild: servedBuild } : {}),\n }\n : undefined;\n\nconst { valApiHandler, draftMode } = initValServer(\n valModules,\n valConfig,\n {\n ...(http ? { http } : {}),\n },\n);\n\nconst content = initValContent(valConfig, valModules, {\n draftMode,\n /*\n * The SAME object the API got.\n *\n * These readers resolve content through a Val server of their own rather than\n * by calling the API over HTTP, so the mode question is put to them\n * separately -- configuring only `initValServer` left them inferring `fs`\n * mode, looking for a working tree that is not in here. `gitCommit` is the\n * field that would be silently wrong rather than loudly missing: two\n * different shas means the API edits one version of a file while the page\n * renders another.\n */\n ...(http ? { http } : {}),\n});\n\nconst {\n fetchValStega: fetchVal,\n fetchValKeyStega: fetchValKey,\n fetchValRouteStega: fetchValRoute,\n fetchValRouteUrl,\n} = content;\n\n/**\n * The draft a page renders with in preview: `<ValProvider draft>`, read in the\n * site layout's loader. The starter imports it from this file, so a file\n * without it fails the build with a missing export.\n *\n * Asked of the result rather than destructured, because this file is compiled\n * against whatever `@valbuild/tanstack` the PROJECT installed, and one from\n * before 0.140 has no such reader. There it is \"no draft\", which is the\n * render that version had anyway -- and it is still a function either way, so\n * a page that calls it compiles against both.\n */\nconst fetchValDraft = async () =>\n \"fetchValDraft\" in content && typeof content.fetchValDraft === \"function\"\n ? content.fetchValDraft()\n : null;\n\n/**\n * A build that is MEANT to edit and cannot, refusing instead of pretending to.\n *\n * `BUILT_FROM` being non-null says this build came from a commit, so it was\n * made to edit against a content service. If the credentials for that service are not\n * here, the configuration is broken -- and the failure that was reaching people\n * was not an error at all. Val picks its storage mode by inference, so an\n * isolate with no api key lands in a mode that ACCEPTS the write and keeps it\n * in the isolate. Cloudflare starts an isolate per concurrent request, so the\n * save answers 200 and the next request, served by a different isolate, has\n * never heard of it. The edit is simply gone, and nothing anywhere said so.\n *\n * That is the worst available outcome: a person is told their work is saved\n * when it is not. Refusing is strictly better, and naming the missing secret\n * turns an evening of reading logs into one line in a response body.\n *\n * WHY HERE rather than relying on `VAL_ENV=app`: that is a build-time\n * substitution into the shared dependency layer, so whether a build fails\n * loudly depends on which layer it happens to be pinned to. This file is\n * written on every build, by the platform, and cannot be missing from one.\n *\n * Only the editing API. Page renders do not come through here, and a site whose\n * content cannot be edited should still serve the content it has.\n */\nconst editingApiHandler =\n http === undefined\n ? async () => {\n const missing = [\n apiKey === undefined ? \"VAL_API_KEY\" : null,\n valSecret === undefined ? \"VAL_SECRET\" : null,\n /*\n * A build from no commit is listed the same way, because from the\n * outside the two are one state. It is not a secret somebody can set\n * -- a commit is a property OF THE BUILD, and the only cure is\n * publishing this project's own repository over whatever is serving\n * it. Named anyway, because \"it was built from no commit\" is the\n * sentence that ends the search.\n */\n BUILT_FROM === null ? \"a commit (this build was made from none)\" : null,\n ].filter(Boolean);\n return Response.json(\n {\n error:\n \"This site cannot be edited. Its content lives in a content service, and \" +\n missing.join(\", \") +\n \" \" +\n (missing.length > 1 ? \"are\" : \"is\") +\n \" missing, so there is nothing to edit against. Editing is refused rather \" +\n \"than kept in this isolate's memory, where it would be lost without being \" +\n \"reported.\" +\n (BUILT_FROM === null\n ? \" A build made from no commit is usually one SEEDED from a template: \" +\n \"publish this project's own repository to replace it.\"\n : \" This build was made from commit \" + BUILT_FROM.commit.slice(0, 8) + \".\"),\n missing,\n },\n { status: 503 },\n );\n }\n : valApiHandler;\n\nexport {\n editingApiHandler as valApiHandler,\n draftMode,\n fetchVal,\n fetchValKey,\n fetchValRoute,\n fetchValRouteUrl,\n fetchValDraft,\n};\n");
3822
+ return "".concat(WIRED_MARKER, "\nimport {\n initValContent,\n initValServer,\n} from \"@valbuild/tanstack/server\";\nimport { config } from \"../../val.config\";\nimport valModules from \"../../val.modules\";\n/*\n * This build's own source, which a publish patches. A project with no\n * repository has no other copy of its `.val.ts` text: content keeps its\n * content as data. Ignored by a @valbuild/tanstack that predates it.\n */\nimport { FILES } from \"platform:project-source\";\n\n/**\n * A secret, as the platform hands it over at RUNTIME.\n *\n * Preferred over `process.env`, which the builder inlines as a literal into\n * this bundle: that puts the value in storage inside the code, copies it into\n * every isolate that loads it, and makes rotating it a republish.\n *\n * Falls back to the build-time value, so an app published before secrets\n * existed keeps working.\n */\nfunction secret(name: string): string | undefined {\n return (globalThis.__PLATFORM_SECRETS ?? {})[name] ?? process.env[name];\n}\n\n/**\n * The commit this build was made from, and the branch it commits to.\n *\n * Baked in rather than handed over at runtime, unlike a secret, because it is\n * not configuration -- it is a property OF THIS BUILD. Every read of a\n * `.val.ts` in http mode fetches that path from the content service at this\n * sha, so a build served with somebody else's commit renders and edits a\n * version of its files it was not compiled from. A secret can be rotated under\n * a running build; this cannot, and publishing again is how it changes.\n *\n * WHAT THIS IS NOT. It is not every read: a committed render reads the source\n * bundled into this build and asks the content service nothing. It is the\n * PUBLISH path -- turning pending patches into new `.val.ts` text means\n * fetching the current text to patch, and that is the read that happens at\n * this sha. The docblock used to say \"every read\", which sent readers looking\n * for a content call on the serving path that is not there.\n *\n * `null` when the source came from no commit -- a record assembled in a tab,\n * a fixture, or ANY build this platform makes, which is the common case rather\n * than the exception. Such a build has no repository to mirror commits into,\n * and does not need one: the content service is the store of record for\n * content and mints its own commit shas. Val is in http mode on credentials\n * alone.\n */\nconst BUILT_FROM = ").concat(git ? JSON.stringify(git) : "null", ";\n\n/**\n * The publish job this build was made for, when a Studio built it in a tab.\n *\n * A tab's build has no commit to bake -- the job's is minted at the seal, after\n * the build -- so this is how it says where it sits in the content service's\n * chain. Without it the service places it at whatever build is live, which is\n * a different build for a request this one is still serving when the pointer\n * moves. Set by the Studio (`rebakeGit`), `null` for any other build.\n */\nconst BUILT_FOR_JOB = null;\n\n/**\n * What puts Val in http mode: its content service owns the content.\n *\n * The same three things any deployed Val app is configured with. Note what is\n * NOT here: no `sourceFiles`, so patches are relayed to the content service\n * instead of being kept by this platform, and the browser uploads an image\n * straight there on a presigned URL instead of streaming it through here.\n *\n * `undefined` when a credential or the commit is missing, and deliberately not\n * a throw at module scope: that would take the isolate down with it, page\n * renders included. Val is left to refuse the request and name what it wanted\n * -- `VAL_ENV=app` is set on this build precisely so that a missing credential\n * is an error instead of a fall-through to `fs` mode, looking for a working\n * tree that is not in here.\n */\nconst apiKey = secret(\"VAL_API_KEY\");\nconst valSecret = secret(\"VAL_SECRET\");\n/*\n * Which content service, for a project that is not pointed at the real one.\n *\n * A secret rather than a baked literal, because unlike the commit this IS\n * configuration: the same build should be servable against a stand-in and\n * against production. It is what makes the editing path testable at all --\n * Val's own `e2e/mock-content-host` implements this wire protocol with no git\n * repository behind it -- and without it a build could only ever talk to\n * content.val.build.\n *\n * It does NOT redirect everything, and the gap is in Val rather than here:\n * `getSettings`, which remote FILES use, reads `process.env.VAL_CONTENT_URL`\n * at module scope inside @valbuild/server. This platform bundles its\n * dependencies separately from the app, so nothing it sets reaches that read --\n * the same reason `apiKey` has to be passed in rather than found. So patches,\n * commits and source reads go where this says, and remote file uploads still\n * address the real host.\n */\nconst valContentUrl = secret(\"VAL_CONTENT_URL\");\n/*\n * WHICH project's content this is, at the content service.\n *\n * Val's own name for the project (`org/name`), which is not the platform's\n * project id and cannot be derived from it. A repository that is deployed\n * anywhere else puts it in `val.config.ts`; one imported here need not have,\n * so it is configuration the platform can supply -- and it goes through\n * `secret` rather than `--env` for a second reason: a build-time literal\n * would have to be baked into the shared dependency layer, where\n * @valbuild/server reads `process.env.VAL_PROJECT`, and that layer is reused\n * by every project with the same dependencies.\n *\n * What the app configured wins over nothing at all, so a repository that does\n * name its project keeps working with no secret set.\n */\nconst valProject = secret(\"VAL_PROJECT\");\n/*\n * WHICH BUILD this is, as the platform running it says.\n *\n * Not baked like `BUILT_FROM`, because it cannot be: a build's hash is taken\n * of its output, this file included. The platform hands it over at runtime,\n * and Val sends it to the content service, which places this build's overlay\n * by it -- the one answer that holds for the minute after a publish in which\n * the edge still serves this build while the pointer already names the next.\n * Ignored by a @valbuild/tanstack that predates it.\n */\nconst servedBuild = secret(\"VAL_BUILD\");\n").concat(PROPOSAL_BLOCK, "const valConfig = {\n ...config,\n ...(valProject !== undefined ? { project: valProject } : {}),\n};\n/*\n * CREDENTIALS ALONE. A commit is not part of what puts Val in http mode.\n *\n * It used to be: `GIT !== null` was in this condition, and a build with no\n * commit fell through to `undefined` -- which meant every site this platform\n * seeded was silently unable to edit, because a shared build cannot know a\n * commit. The binding that worked around it (`VAL_GIT_COMMIT` /\n * `VAL_GIT_BRANCH` out of the project's secrets) is gone with it: it named a\n * commit in the TEMPLATE's repository, which was true only for as long as\n * seeding and repository creation shared a template, and it was one more thing\n * in KV that could go stale.\n *\n * The commit is optional NOW, and it is still sent where there is one -- see\n * the note at the spread below. What is gone is the binding that supplied one\n * from KV, so there is one source per environment and no precedence rule\n * between a baked value and a bound one.\n */\nconst http =\n apiKey !== undefined && valSecret !== undefined\n ? {\n apiKey,\n valSecret,\n /*\n * BOTH SPELLINGS OF THE COMMIT, because the APP decides which one is\n * read and this file cannot know which app it is being written into.\n *\n * `ValHttpMode` has been renamed in both directions. Up to 0.132 it\n * took `gitCommit`/`gitBranch`; 0.133.0 replaced that pair with a\n * nested `git`; the version this package ships beside flattens it\n * back again. The generated file is compiled against whatever\n * `@valbuild/tanstack` the PROJECT installed -- the starter pins\n * 0.133.0 -- and a platform writing this file has no say in that. So\n * this is not one rename behind or ahead: it is on both sides of one at\n * once, and will be until every app it publishes has moved.\n *\n * Sending only the wrong one is SILENT, which is why this is belt and\n * braces rather than a version check. An unknown key on the options\n * object is ignored, so the commit is simply dropped and a build wired\n * FROM A COMMIT runs as though it had none -- which means a publish\n * produces no mirrored `.val.ts`, so a save commits and hands over\n * nothing, and the site keeps serving its old content with the patches\n * already consumed. Nothing reports it. valbuild/home's loop is the one\n * thing that sees it, and it was bisected there: 25/25 with the key the\n * installed version reads, 21/23 without, failing at exactly \"the save\n * left the file it rewrote pending\".\n *\n * Whichever version is installed reads its own key and ignores the\n * other two. Drop this to one spelling when every app this platform\n * publishes is past the rename -- not before, and not on the say-so of\n * a compiler in the Val repository, which is looking at a different\n * version of `@valbuild/tanstack` than the app is.\n */\n ...(BUILT_FROM !== null\n ? {\n git: BUILT_FROM,\n gitCommit: BUILT_FROM.commit,\n gitBranch: BUILT_FROM.branch,\n }\n : {}),\n ...(valContentUrl !== undefined ? { valContentUrl } : {}),\n projectSource: FILES,\n ...(BUILT_FOR_JOB !== null ? { publishJob: BUILT_FOR_JOB } : {}),\n ...(servedBuild !== undefined ? { publishBuild: servedBuild } : {}),\n").concat(PROPOSAL_OPTION, " }\n : undefined;\n\nconst { valApiHandler, draftMode } = initValServer(\n valModules,\n valConfig,\n {\n ...(http ? { http } : {}),\n },\n);\n\nconst content = initValContent(valConfig, valModules, {\n draftMode,\n /*\n * The SAME object the API got.\n *\n * These readers resolve content through a Val server of their own rather than\n * by calling the API over HTTP, so the mode question is put to them\n * separately -- configuring only `initValServer` left them inferring `fs`\n * mode, looking for a working tree that is not in here. `gitCommit` is the\n * field that would be silently wrong rather than loudly missing: two\n * different shas means the API edits one version of a file while the page\n * renders another.\n */\n ...(http ? { http } : {}),\n});\n\nconst {\n fetchValStega: fetchVal,\n fetchValKeyStega: fetchValKey,\n fetchValRouteStega: fetchValRoute,\n fetchValRouteUrl,\n} = content;\n\n/**\n * The draft a page renders with in preview: `<ValProvider draft>`, read in the\n * site layout's loader. The starter imports it from this file, so a file\n * without it fails the build with a missing export.\n *\n * Asked of the result rather than destructured, because this file is compiled\n * against whatever `@valbuild/tanstack` the PROJECT installed, and one from\n * before 0.140 has no such reader. There it is \"no draft\", which is the\n * render that version had anyway -- and it is still a function either way, so\n * a page that calls it compiles against both.\n */\nconst fetchValDraft = async () =>\n \"fetchValDraft\" in content && typeof content.fetchValDraft === \"function\"\n ? content.fetchValDraft()\n : null;\n\n/**\n * A build that is MEANT to edit and cannot, refusing instead of pretending to.\n *\n * `BUILT_FROM` being non-null says this build came from a commit, so it was\n * made to edit against a content service. If the credentials for that service are not\n * here, the configuration is broken -- and the failure that was reaching people\n * was not an error at all. Val picks its storage mode by inference, so an\n * isolate with no api key lands in a mode that ACCEPTS the write and keeps it\n * in the isolate. Cloudflare starts an isolate per concurrent request, so the\n * save answers 200 and the next request, served by a different isolate, has\n * never heard of it. The edit is simply gone, and nothing anywhere said so.\n *\n * That is the worst available outcome: a person is told their work is saved\n * when it is not. Refusing is strictly better, and naming the missing secret\n * turns an evening of reading logs into one line in a response body.\n *\n * WHY HERE rather than relying on `VAL_ENV=app`: that is a build-time\n * substitution into the shared dependency layer, so whether a build fails\n * loudly depends on which layer it happens to be pinned to. This file is\n * written on every build, by the platform, and cannot be missing from one.\n *\n * Only the editing API. Page renders do not come through here, and a site whose\n * content cannot be edited should still serve the content it has.\n */\nconst editingApiHandler =\n http === undefined\n ? async () => {\n const missing = [\n apiKey === undefined ? \"VAL_API_KEY\" : null,\n valSecret === undefined ? \"VAL_SECRET\" : null,\n /*\n * A build from no commit is listed the same way, because from the\n * outside the two are one state. It is not a secret somebody can set\n * -- a commit is a property OF THE BUILD, and the only cure is\n * publishing this project's own repository over whatever is serving\n * it. Named anyway, because \"it was built from no commit\" is the\n * sentence that ends the search.\n */\n BUILT_FROM === null ? \"a commit (this build was made from none)\" : null,\n ].filter(Boolean);\n return Response.json(\n {\n error:\n \"This site cannot be edited. Its content lives in a content service, and \" +\n missing.join(\", \") +\n \" \" +\n (missing.length > 1 ? \"are\" : \"is\") +\n \" missing, so there is nothing to edit against. Editing is refused rather \" +\n \"than kept in this isolate's memory, where it would be lost without being \" +\n \"reported.\" +\n (BUILT_FROM === null\n ? \" A build made from no commit is usually one SEEDED from a template: \" +\n \"publish this project's own repository to replace it.\"\n : \" This build was made from commit \" + BUILT_FROM.commit.slice(0, 8) + \".\"),\n missing,\n },\n { status: 503 },\n );\n }\n : valApiHandler;\n\nexport {\n editingApiHandler as valApiHandler,\n draftMode,\n fetchVal,\n fetchValKey,\n fetchValRoute,\n fetchValRouteUrl,\n fetchValDraft,\n};\n");
3841
3823
  };
3842
3824
 
3843
3825
  /**
@@ -3914,6 +3896,26 @@ function bakedJob(files) {
3914
3896
  }
3915
3897
  }
3916
3898
 
3899
+ /**
3900
+ * `source` able to serve a proposal's address: {@link PROPOSAL_BLOCK} and its
3901
+ * option added to a file wired before they existed. Idempotent, and only
3902
+ * where both places are exactly as generated -- a file somebody edited is left
3903
+ * as it is, and serves a proposal's address as its base build.
3904
+ */
3905
+ function rebakeProposal(source) {
3906
+ if (source.includes("const proposal = (() => {")) return source;
3907
+ var once = function once(needle) {
3908
+ var at = source.indexOf(needle);
3909
+ return at !== -1 && source.indexOf(needle, at + 1) === -1;
3910
+ };
3911
+ if (!once(SERVED_BUILD_LINE) || !once(PUBLISH_BUILD_OPTION)) return source;
3912
+ return source.replace(SERVED_BUILD_LINE, function () {
3913
+ return SERVED_BUILD_LINE + PROPOSAL_BLOCK;
3914
+ }).replace(PUBLISH_BUILD_OPTION, function () {
3915
+ return PUBLISH_BUILD_OPTION + PROPOSAL_OPTION;
3916
+ });
3917
+ }
3918
+
3917
3919
  /** `source` with its job set, or `source` itself when it cannot carry one. */
3918
3920
  function rebakeJob(source, job) {
3919
3921
  var line = "const BUILT_FOR_JOB = ".concat(job === null ? "null" : JSON.stringify(job), ";");
@@ -3996,7 +3998,8 @@ job) {
3996
3998
  if (source === undefined) return files;
3997
3999
  if (!BUILT_FROM_LINE.test(source)) return files;
3998
4000
  var withGit = source.replace(BUILT_FROM_LINE, "const BUILT_FROM = ".concat(git === null ? "null" : JSON.stringify(git), ";"));
3999
- return regeneratorValues._objectSpread2(regeneratorValues._objectSpread2({}, files), {}, regeneratorValues._defineProperty({}, VAL_SERVER, job === undefined ? withGit : rebakeJob(withGit, job)));
4001
+ var withJob = job === undefined ? withGit : rebakeJob(withGit, job);
4002
+ return regeneratorValues._objectSpread2(regeneratorValues._objectSpread2({}, files), {}, regeneratorValues._defineProperty({}, VAL_SERVER, rebakeProposal(withJob)));
4000
4003
  }
4001
4004
 
4002
4005
  /** Is this a Val project at all? */
@@ -4106,25 +4109,25 @@ function wireUp(files, options) {
4106
4109
  };
4107
4110
  }
4108
4111
 
4112
+ exports.INLINE_LIMIT = regeneratorValues.INLINE_LIMIT;
4113
+ exports.base64Bytes = regeneratorValues.base64Bytes;
4114
+ exports.isAsset = regeneratorValues.isAsset;
4109
4115
  exports.ENTRY = projectPaths.ENTRY;
4110
4116
  exports.ROUTES_DIR = projectPaths.ROUTES_DIR;
4111
4117
  exports.TREE = projectPaths.TREE;
4112
4118
  exports.ARTIFACT_KEYS = artifactKeys.ARTIFACT_KEYS;
4113
4119
  exports.ARTIFACT_PREFIXES = artifactKeys.ARTIFACT_PREFIXES;
4114
4120
  exports.ENTRY_CHUNK = ENTRY_CHUNK;
4115
- exports.INLINE_LIMIT = INLINE_LIMIT;
4116
4121
  exports.PROJECT_SOURCE = PROJECT_SOURCE;
4117
4122
  exports.PUBLIC_PREFIX = PUBLIC_PREFIX;
4118
4123
  exports.VAL_SERVER_PATH = VAL_SERVER_PATH;
4119
4124
  exports.aliasMap = aliasMap;
4120
4125
  exports.bakedGit = bakedGit;
4121
4126
  exports.bakedJob = bakedJob;
4122
- exports.base64Bytes = base64Bytes;
4123
4127
  exports.blobSha = blobSha;
4124
4128
  exports.buildUserApp = buildUserApp;
4125
4129
  exports.fetchBuildTarget = fetchBuildTarget;
4126
4130
  exports.fetchBuildTargetRev = fetchBuildTargetRev;
4127
- exports.isAsset = isAsset;
4128
4131
  exports.isValProject = isValProject;
4129
4132
  exports.isWired = isWired;
4130
4133
  exports.publishArtifacts = publishArtifacts;