@valbuild/server 0.154.3 → 0.154.4

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/browser/dist/valbuild-server-browser.cjs.dev.js +4 -4
  3. package/browser/dist/valbuild-server-browser.cjs.prod.js +4 -4
  4. package/browser/dist/valbuild-server-browser.esm.js +4 -4
  5. package/dist/{ValOpsMemory-972616ae.esm.js → ValOpsMemory-82af54c9.esm.js} +33 -14
  6. package/dist/{ValOpsMemory-45ba05ad.cjs.dev.js → ValOpsMemory-88633e0f.cjs.dev.js} +32 -12
  7. package/dist/{ValOpsMemory-18337353.cjs.prod.js → ValOpsMemory-a1a58597.cjs.prod.js} +32 -12
  8. package/dist/{ValPatchStore-df8cdbe7.cjs.dev.js → ValPatchStore-457b166f.cjs.prod.js} +37 -59
  9. package/dist/{ValPatchStore-e23070df.esm.js → ValPatchStore-9ccc09e7.esm.js} +38 -60
  10. package/dist/{ValPatchStore-2f92eced.cjs.prod.js → ValPatchStore-b53db740.cjs.dev.js} +37 -59
  11. package/dist/{ValRouterCore-86757d56.cjs.dev.js → ValRouterCore-65bb6323.cjs.prod.js} +11 -2
  12. package/dist/{ValRouterCore-5b747abb.cjs.prod.js → ValRouterCore-adb69698.cjs.dev.js} +11 -2
  13. package/dist/{ValRouterCore-73eb843d.esm.js → ValRouterCore-f7d6394e.esm.js} +11 -2
  14. package/dist/{createPrettierFormatter-851fcf99.cjs.dev.js → createPrettierFormatter-5d830bdf.cjs.dev.js} +6 -14
  15. package/dist/{createPrettierFormatter-05ad7480.cjs.prod.js → createPrettierFormatter-b31bfbe5.cjs.prod.js} +6 -14
  16. package/dist/{createPrettierFormatter-1edca494.esm.js → createPrettierFormatter-ce478de1.esm.js} +7 -15
  17. package/dist/{createValRuntime-472df6e8.cjs.prod.js → createValRuntime-07bf43dd.cjs.prod.js} +5 -5
  18. package/dist/{createValRuntime-5cebf459.cjs.dev.js → createValRuntime-858474b4.cjs.dev.js} +5 -5
  19. package/dist/{createValRuntime-c77ee010.esm.js → createValRuntime-d34c69e8.esm.js} +5 -5
  20. package/dist/declarations/src/draftReads.d.ts +5 -0
  21. package/dist/declarations/src/head.d.ts +7 -7
  22. package/dist/{draftReads-3f7dcda5.cjs.prod.js → draftReads-1f256502.cjs.dev.js} +5 -0
  23. package/dist/{draftReads-a300a02f.cjs.dev.js → draftReads-27351e97.cjs.prod.js} +5 -0
  24. package/dist/{draftReads-bca0d49c.esm.js → draftReads-7f0f0eb3.esm.js} +5 -0
  25. package/dist/{inTabFetch-0c997998.esm.js → inTabFetch-54c1cb83.esm.js} +2 -2
  26. package/dist/{inTabFetch-c2efa1bd.cjs.prod.js → inTabFetch-e9a48fac.cjs.prod.js} +2 -2
  27. package/dist/{inTabFetch-db6d6425.cjs.dev.js → inTabFetch-fb9cf5e0.cjs.dev.js} +2 -2
  28. package/dist/{proposalJsonEntries-0669f027.esm.js → proposalJsonEntries-2cd6f6fe.esm.js} +1 -1
  29. package/dist/{proposalJsonEntries-26f397bd.cjs.dev.js → proposalJsonEntries-d21900d4.cjs.dev.js} +1 -1
  30. package/dist/{proposalJsonEntries-9e537244.cjs.prod.js → proposalJsonEntries-d4623810.cjs.prod.js} +1 -1
  31. package/dist/{publishKit-ac0af189.esm.js → publishKit-4e7a1516.esm.js} +7 -7
  32. package/dist/{publishKit-38d46a51.cjs.dev.js → publishKit-6b88a02e.cjs.dev.js} +5 -5
  33. package/dist/{publishKit-7aca03bb.cjs.prod.js → publishKit-cf3858a0.cjs.prod.js} +5 -5
  34. package/dist/{valRuntime-70ee2dc2.cjs.dev.js → valRuntime-5cadce34.cjs.dev.js} +41 -23
  35. package/dist/{valRuntime-2a3cc887.cjs.prod.js → valRuntime-ae69b225.cjs.prod.js} +41 -23
  36. package/dist/{valRuntime-e4d26702.esm.js → valRuntime-ca9958fc.esm.js} +42 -24
  37. package/dist/valbuild-server.cjs.dev.js +6 -6
  38. package/dist/valbuild-server.cjs.prod.js +6 -6
  39. package/dist/valbuild-server.esm.js +9 -9
  40. package/internal/browser/dist/valbuild-server-internal-browser.cjs.dev.js +5 -5
  41. package/internal/browser/dist/valbuild-server-internal-browser.cjs.prod.js +5 -5
  42. package/internal/browser/dist/valbuild-server-internal-browser.esm.js +5 -5
  43. package/internal/dist/valbuild-server-internal.cjs.dev.js +4 -4
  44. package/internal/dist/valbuild-server-internal.cjs.prod.js +4 -4
  45. package/internal/dist/valbuild-server-internal.esm.js +4 -4
  46. package/package.json +3 -3
@@ -1,18 +1,18 @@
1
1
  import { Internal, deserializeSchema, DEFAULT_CONTENT_HOST } from '@valbuild/core';
2
- import { q as summaryOf, t as matchesFilter, w as byUpdatedAt, x as newSketchpad, y as isSketchpadId, z as applySketchpadChange, A as ValOps, h as VAL_CLIENT_HEADERS, B as isSafePatchId, C as isMediaFilePath, M as MEDIA_FILE_PATH_ACCEPTS, D as bufferFromDataUrl, d as getFieldsForType, u as uploadRemoteFile, g as getFileExt, E as isPublicFilePath, F as guessMimeTypeFromPath, G as createMetadataFromBuffer, H as DEFAULT_ANALYTICS_INGEST_URL, o as ValOpsMemory, I as sessionAuth, J as isHttpOps } from './ValOpsMemory-972616ae.esm.js';
2
+ import { q as summaryOf, t as matchesFilter, w as byUpdatedAt, x as newSketchpad, y as isSketchpadId, z as applySketchpadChange, A as ValOps, h as VAL_CLIENT_HEADERS, B as isSafePatchId, C as isMediaFilePath, M as MEDIA_FILE_PATH_ACCEPTS, D as bufferFromDataUrl, d as getFieldsForType, u as uploadRemoteFile, g as getFileExt, E as isPublicFilePath, F as guessMimeTypeFromPath, G as createMetadataFromBuffer, H as fetchFresh, I as DEFAULT_ANALYTICS_INGEST_URL, o as ValOpsMemory, J as sessionAuth, K as isHttpOps } from './ValOpsMemory-82af54c9.esm.js';
3
3
  import path from 'path';
4
4
  import ts from 'typescript';
5
5
  import { z } from 'zod';
6
6
  import fs from 'fs';
7
7
  import { fromError } from 'zod-validation-error';
8
8
  import { pipe, result } from '@valbuild/core/fp';
9
- import { a as analyzeValModule, e as findObjectPropertyAssignment, g as findObjectPropertyAssignmentToRemove, h as evaluateExpression, s as shallowValidateExpression, v as validateInitializers, c as analyzeJsonValuesEntries, i as proposalJsonEntries } from './proposalJsonEntries-0669f027.esm.js';
9
+ import { a as analyzeValModule, e as findObjectPropertyAssignment, g as findObjectPropertyAssignmentToRemove, h as evaluateExpression, s as shallowValidateExpression, v as validateInitializers, c as analyzeJsonValuesEntries, i as proposalJsonEntries } from './proposalJsonEntries-2cd6f6fe.esm.js';
10
10
  import { r as resolveExistingJsonPath } from './jsonValuesPatch-13acc674.esm.js';
11
- import { Patch, Sketchpad, schemaErrorsOf, PatchSets, joinSharedChanges, schemaTypesOfPath, sideFiles, sideSource, JSONValue, SketchpadSummary, getErrorMessageFromUnknownJson, PlanRefusalError, PatchId as PatchId$1, SerializedSchema, valModulesEntryPath, newestCommitSha } from '@valbuild/shared/internal';
11
+ import { Patch, Sketchpad, schemaErrorsOf, PatchSets, joinSharedChanges, schemaTypesOfPath, sideFiles, sideSource, JSONValue, SketchpadSummary, getErrorMessageFromUnknownJson, PlanRefusalError, PatchId as PatchId$1, SerializedSchema, valModulesEntryPath, newestCommitSha, isCrossRequestError } from '@valbuild/shared/internal';
12
12
  import os from 'os';
13
13
  import crypto$1, { randomBytes, createHash } from 'crypto';
14
14
  import { Buffer as Buffer$1 } from 'buffer';
15
- import { l as layeredSnapshot, s as stagedAfterBuild, e as servingBuildOf, a as proposalSnapshot, n as namedMode, f as selectsHttpMode } from './createPrettierFormatter-1edca494.esm.js';
15
+ import { l as layeredSnapshot, s as stagedAfterBuild, e as servingBuildOf, a as proposalSnapshot, n as namedMode, f as selectsHttpMode } from './createPrettierFormatter-ce478de1.esm.js';
16
16
  import { PatchError, deepEqual, isNotRoot, parseAndValidateArrayIndex, applyPatch, deepClone, JSONOps } from '@valbuild/core/patch';
17
17
  import 'node:vm';
18
18
  import 'node:module';
@@ -1861,7 +1861,7 @@ function createFsSketchpadStore(rootDir, now = () => new Date()) {
1861
1861
  * as a bundler does.
1862
1862
  */
1863
1863
  function loadTypeScriptKit() {
1864
- return import('./publishKit-ac0af189.esm.js');
1864
+ return import('./publishKit-4e7a1516.esm.js');
1865
1865
  }
1866
1866
 
1867
1867
  /** Serializes a schema, or gives up quietly — serialization errors are reported elsewhere. */
@@ -4164,7 +4164,7 @@ async function stagedModuleSources(files) {
4164
4164
  parseValFile,
4165
4165
  analyzeValModule,
4166
4166
  evaluateModuleSource
4167
- } = await import('./publishKit-ac0af189.esm.js');
4167
+ } = await import('./publishKit-4e7a1516.esm.js');
4168
4168
  const sources = {};
4169
4169
  for (const {
4170
4170
  path,
@@ -5120,7 +5120,7 @@ class ValOpsHttp extends ValOps {
5120
5120
  branch
5121
5121
  })}` : "";
5122
5122
  try {
5123
- const res = await fetch(`${this.contentUrl}/v1/${this.project}/chain/version${query}`, {
5123
+ const res = await fetchFresh(`${this.contentUrl}/v1/${this.project}/chain/version${query}`, {
5124
5124
  headers: this.authHeaders
5125
5125
  });
5126
5126
  if (res.status === 404) {
@@ -5281,7 +5281,7 @@ class ValOpsHttp extends ValOps {
5281
5281
  * rather than letting the tab talk to content.
5282
5282
  */
5283
5283
  async mintPublishToken() {
5284
- const res = await fetch(`${this.contentUrl}/v1/${this.project}/publish-token`, {
5284
+ const res = await fetchFresh(`${this.contentUrl}/v1/${this.project}/publish-token`, {
5285
5285
  method: "POST",
5286
5286
  headers: this.authHeaders
5287
5287
  });
@@ -5565,7 +5565,7 @@ class ValOpsHttp extends ValOps {
5565
5565
  }
5566
5566
  // Staged module files go with the Source they declare.
5567
5567
  const body = (writes === null || writes === void 0 ? void 0 : writes.write) === "files" && init.body !== undefined ? await withStagedModuleSources(init.body) : init.body;
5568
- const res = await fetch(`${this.contentUrl}/v1/${this.project}/proposals${path}`, {
5568
+ const res = await fetchFresh(`${this.contentUrl}/v1/${this.project}/proposals${path}`, {
5569
5569
  method: init.method,
5570
5570
  headers: {
5571
5571
  ...this.authHeaders,
@@ -5632,7 +5632,7 @@ class ValOpsHttp extends ValOps {
5632
5632
  message: `Invalid update: ${fromError(request.error).toString()}`
5633
5633
  });
5634
5634
  }
5635
- const content = (path, init = {}) => fetch(`${this.contentUrl}/v1/${this.project}/proposals/${name}${path}`, {
5635
+ const content = (path, init = {}) => fetchFresh(`${this.contentUrl}/v1/${this.project}/proposals/${name}${path}`, {
5636
5636
  ...init,
5637
5637
  headers: {
5638
5638
  ...this.authHeaders,
@@ -5749,7 +5749,7 @@ class ValOpsHttp extends ValOps {
5749
5749
 
5750
5750
  /** Content's proposals API for one proposal, as the person asking. */
5751
5751
  proposalContent(name, profileId) {
5752
- return (path, init = {}) => fetch(`${this.contentUrl}/v1/${this.project}/proposals/${name}${path}`, {
5752
+ return (path, init = {}) => fetchFresh(`${this.contentUrl}/v1/${this.project}/proposals/${name}${path}`, {
5753
5753
  ...init,
5754
5754
  headers: {
5755
5755
  ...this.authHeaders,
@@ -5909,7 +5909,7 @@ class ValOpsHttp extends ValOps {
5909
5909
  message: `Invalid update: ${fromError(request.error).toString()}`
5910
5910
  });
5911
5911
  }
5912
- const content = (path, init = {}) => fetch(`${this.contentUrl}/v1/${this.project}/proposals/${name}${path}`, {
5912
+ const content = (path, init = {}) => fetchFresh(`${this.contentUrl}/v1/${this.project}/proposals/${name}${path}`, {
5913
5913
  ...init,
5914
5914
  headers: {
5915
5915
  ...this.authHeaders,
@@ -6019,7 +6019,7 @@ class ValOpsHttp extends ValOps {
6019
6019
  }
6020
6020
  async callPublishApi(path, init) {
6021
6021
  const json = "application/json";
6022
- const send = async token => fetch(`${this.contentUrl}/v1${path}`, {
6022
+ const send = async token => fetchFresh(`${this.contentUrl}/v1${path}`, {
6023
6023
  method: init.method,
6024
6024
  headers: {
6025
6025
  ...VAL_CLIENT_HEADERS,
@@ -6086,7 +6086,7 @@ class ValOpsHttp extends ValOps {
6086
6086
  async getPresignedAuthNonce(profileId, corsOrigin) {
6087
6087
  try {
6088
6088
  var _res$headers$get2;
6089
- const res = await fetch(`${this.contentUrl}/v1/${this.project}/presigned-auth-nonce`, {
6089
+ const res = await fetchFresh(`${this.contentUrl}/v1/${this.project}/presigned-auth-nonce`, {
6090
6090
  method: "POST",
6091
6091
  headers: {
6092
6092
  ...this.authHeaders,
@@ -6413,7 +6413,7 @@ class ValOpsHttp extends ValOps {
6413
6413
  * `applicable/patches`), so its `patches` messages and that stat agree.
6414
6414
  */
6415
6415
  relativeTo) {
6416
- return fetch(`${this.contentUrl}/v1/${this.project}/websocket/nonces`, {
6416
+ return fetchFresh(`${this.contentUrl}/v1/${this.project}/websocket/nonces`, {
6417
6417
  method: "POST",
6418
6418
  body: JSON.stringify({
6419
6419
  profileId,
@@ -6663,7 +6663,7 @@ class ValOpsHttp extends ValOps {
6663
6663
  }
6664
6664
  const searchParams = new URLSearchParams(params);
6665
6665
  try {
6666
- const patchesRes = await fetch(`${this.contentUrl}/v1/${this.project}/applicable/patches${searchParams.size > 0 ? `?${searchParams.toString()}` : ""}`, {
6666
+ const patchesRes = await fetchFresh(`${this.contentUrl}/v1/${this.project}/applicable/patches${searchParams.size > 0 ? `?${searchParams.toString()}` : ""}`, {
6667
6667
  headers: this.authHeaders
6668
6668
  });
6669
6669
  const patches = [];
@@ -6797,6 +6797,24 @@ class ValOpsHttp extends ValOps {
6797
6797
  }
6798
6798
  };
6799
6799
  } catch (err) {
6800
+ if (isCrossRequestError(err)) {
6801
+ /*
6802
+ * Not the network: workerd refused, at once, a promise or I/O object
6803
+ * of another request, so nothing was asked of the content service.
6804
+ * `fetchFresh` already tried once more. A server failure, then --
6805
+ * never `networkError`, which `/stat` answers as a 503 saying the
6806
+ * service could not be reached.
6807
+ */
6808
+ const details = err instanceof Error ? err.message : String(err);
6809
+ Internal.log.error(`Could not get patches. ${details}`);
6810
+ return {
6811
+ patches: [],
6812
+ error: {
6813
+ message: "Val's server could not load your changes, because of an error in Val itself. Trying again usually works.",
6814
+ details
6815
+ }
6816
+ };
6817
+ }
6800
6818
  const failure = contentServiceUnreachable(contentServiceName(this.contentUrl), "load your changes", err);
6801
6819
  Internal.log.error(`Could not get patches. ${failure.message} ${failure.details}`);
6802
6820
  return {
@@ -6811,7 +6829,7 @@ class ValOpsHttp extends ValOps {
6811
6829
  }
6812
6830
  async saveSourceFilePatch(path, patch, patchId, parentRef, authorId, sessionId) {
6813
6831
  const baseSha = await this.getBaseSha();
6814
- return fetch(`${this.contentUrl}/v1/${this.project}/patches`, {
6832
+ return fetchFresh(`${this.contentUrl}/v1/${this.project}/patches`, {
6815
6833
  method: "POST",
6816
6834
  headers: {
6817
6835
  ...this.authHeaders,
@@ -6921,7 +6939,7 @@ class ValOpsHttp extends ValOps {
6921
6939
  */
6922
6940
  async saveBase64EncodedBinaryFileFromPatch(filePathOrRef, parentRef, patchId, data, type, metadata) {
6923
6941
  const filePath = filePathOrRef;
6924
- return fetch(`${this.contentUrl}/v1/${this.project}/patches/${patchId}/files`, {
6942
+ return fetchFresh(`${this.contentUrl}/v1/${this.project}/patches/${patchId}/files`, {
6925
6943
  method: "POST",
6926
6944
  headers: {
6927
6945
  ...this.authHeaders,
@@ -6976,7 +6994,7 @@ class ValOpsHttp extends ValOps {
6976
6994
  params.set("body_sha",
6977
6995
  // We use this for cache invalidation
6978
6996
  Internal.getSHA256Hash(textEncoder.encode(stringifiedFiles)));
6979
- return fetch(`${this.contentUrl}/v1/${this.project}/files?${params}`, {
6997
+ return fetchFresh(`${this.contentUrl}/v1/${this.project}/files?${params}`, {
6980
6998
  method: "PUT",
6981
6999
  // Yes, PUT is weird. Weirder to have a body in a GET request.
6982
7000
  headers: {
@@ -7133,7 +7151,7 @@ class ValOpsHttp extends ValOps {
7133
7151
  params.set("file_path", filePath);
7134
7152
  params.set("remote", remote.toString());
7135
7153
  try {
7136
- const metadataRes = await fetch(`${this.contentUrl}/v1/${this.project}/patches/${patchId}/files?${params}`, {
7154
+ const metadataRes = await fetchFresh(`${this.contentUrl}/v1/${this.project}/patches/${patchId}/files?${params}`, {
7137
7155
  headers: {
7138
7156
  ...this.authHeaders,
7139
7157
  "Content-Type": "application/json"
@@ -7191,7 +7209,7 @@ class ValOpsHttp extends ValOps {
7191
7209
  };
7192
7210
  }
7193
7211
  async deletePatches(patchIds) {
7194
- return fetch(`${this.contentUrl}/v1/${this.project}/patches`, {
7212
+ return fetchFresh(`${this.contentUrl}/v1/${this.project}/patches`, {
7195
7213
  method: "DELETE",
7196
7214
  headers: {
7197
7215
  ...this.authHeaders,
@@ -7263,7 +7281,7 @@ class ValOpsHttp extends ValOps {
7263
7281
  */
7264
7282
  const proposalName = intoProposal ?? ((_this$proposal4 = this.proposal) === null || _this$proposal4 === void 0 ? void 0 : _this$proposal4.name);
7265
7283
  const commitUrl = proposalName !== undefined ? `${this.contentUrl}/v1/${this.project}/proposals/${proposalName}/save` : `${this.contentUrl}/v1/${this.project}/commit`;
7266
- const res = await fetch(commitUrl, {
7284
+ const res = await fetchFresh(commitUrl, {
7267
7285
  method: "POST",
7268
7286
  headers: {
7269
7287
  ...this.authHeaders,
@@ -7399,7 +7417,7 @@ class ValOpsHttp extends ValOps {
7399
7417
  async getHistory(path, schema, commitShaForErrors) {
7400
7418
  let res;
7401
7419
  try {
7402
- res = await fetch(`${this.contentUrl}/v1/${this.project}${path}`, {
7420
+ res = await fetchFresh(`${this.contentUrl}/v1/${this.project}${path}`, {
7403
7421
  headers: {
7404
7422
  ...this.authHeaders,
7405
7423
  "Content-Type": "application/json"
@@ -7550,7 +7568,7 @@ class ValOpsHttp extends ValOps {
7550
7568
  }
7551
7569
  let res;
7552
7570
  try {
7553
- res = await fetch(`${this.contentUrl}/v1/${this.project}/commits/${commitSha}/file?${params}`, {
7571
+ res = await fetchFresh(`${this.contentUrl}/v1/${this.project}/commits/${commitSha}/file?${params}`, {
7554
7572
  headers: {
7555
7573
  ...this.authHeaders
7556
7574
  }
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var proposalJsonEntries = require('./proposalJsonEntries-26f397bd.cjs.dev.js');
5
+ var proposalJsonEntries = require('./proposalJsonEntries-d21900d4.cjs.dev.js');
6
6
  var patch = require('@valbuild/core/patch');
7
- var valRuntime = require('./valRuntime-70ee2dc2.cjs.dev.js');
7
+ var valRuntime = require('./valRuntime-5cadce34.cjs.dev.js');
8
8
  var fp = require('@valbuild/core/fp');
9
9
  var core = require('@valbuild/core');
10
10
  var ts = require('typescript');
@@ -13,7 +13,7 @@ var fs = require('fs');
13
13
  var vm = require('node:vm');
14
14
  var node_module = require('node:module');
15
15
  var jsonValuesPatch = require('./jsonValuesPatch-88bc661d.cjs.dev.js');
16
- var ValOpsMemory = require('./ValOpsMemory-45ba05ad.cjs.dev.js');
16
+ var ValOpsMemory = require('./ValOpsMemory-88633e0f.cjs.dev.js');
17
17
  var internal = require('@valbuild/shared/internal');
18
18
  var server = require('@valbuild/ui/server');
19
19
  var http = require('node:http');
@@ -22,13 +22,13 @@ var net = require('node:net');
22
22
  var sizeOf = require('image-size');
23
23
  var http$1 = require('http');
24
24
  var https$1 = require('https');
25
- var ValRouterCore = require('./ValRouterCore-86757d56.cjs.dev.js');
26
- var createPrettierFormatter = require('./createPrettierFormatter-851fcf99.cjs.dev.js');
25
+ var ValRouterCore = require('./ValRouterCore-adb69698.cjs.dev.js');
26
+ var createPrettierFormatter = require('./createPrettierFormatter-5d830bdf.cjs.dev.js');
27
27
  var sucrase = require('sucrase');
28
28
  var fs$1 = require('fs/promises');
29
29
  var z = require('zod');
30
30
  var os = require('os');
31
- var ValPatchStore = require('./ValPatchStore-df8cdbe7.cjs.dev.js');
31
+ var ValPatchStore = require('./ValPatchStore-b53db740.cjs.dev.js');
32
32
  require('zod-validation-error');
33
33
  require('crypto');
34
34
  require('buffer');
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var proposalJsonEntries = require('./proposalJsonEntries-9e537244.cjs.prod.js');
5
+ var proposalJsonEntries = require('./proposalJsonEntries-d4623810.cjs.prod.js');
6
6
  var patch = require('@valbuild/core/patch');
7
- var valRuntime = require('./valRuntime-2a3cc887.cjs.prod.js');
7
+ var valRuntime = require('./valRuntime-ae69b225.cjs.prod.js');
8
8
  var fp = require('@valbuild/core/fp');
9
9
  var core = require('@valbuild/core');
10
10
  var ts = require('typescript');
@@ -13,7 +13,7 @@ var fs = require('fs');
13
13
  var vm = require('node:vm');
14
14
  var node_module = require('node:module');
15
15
  var jsonValuesPatch = require('./jsonValuesPatch-92798812.cjs.prod.js');
16
- var ValOpsMemory = require('./ValOpsMemory-18337353.cjs.prod.js');
16
+ var ValOpsMemory = require('./ValOpsMemory-a1a58597.cjs.prod.js');
17
17
  var internal = require('@valbuild/shared/internal');
18
18
  var server = require('@valbuild/ui/server');
19
19
  var http = require('node:http');
@@ -22,13 +22,13 @@ var net = require('node:net');
22
22
  var sizeOf = require('image-size');
23
23
  var http$1 = require('http');
24
24
  var https$1 = require('https');
25
- var ValRouterCore = require('./ValRouterCore-5b747abb.cjs.prod.js');
26
- var createPrettierFormatter = require('./createPrettierFormatter-05ad7480.cjs.prod.js');
25
+ var ValRouterCore = require('./ValRouterCore-65bb6323.cjs.prod.js');
26
+ var createPrettierFormatter = require('./createPrettierFormatter-b31bfbe5.cjs.prod.js');
27
27
  var sucrase = require('sucrase');
28
28
  var fs$1 = require('fs/promises');
29
29
  var z = require('zod');
30
30
  var os = require('os');
31
- var ValPatchStore = require('./ValPatchStore-2f92eced.cjs.prod.js');
31
+ var ValPatchStore = require('./ValPatchStore-457b166f.cjs.prod.js');
32
32
  require('zod-validation-error');
33
33
  require('crypto');
34
34
  require('buffer');
@@ -1,8 +1,8 @@
1
- import { a as analyzeValModule, f as flatMapErrors, b as formatSyntaxError, c as analyzeJsonValuesEntries } from './proposalJsonEntries-0669f027.esm.js';
2
- export { a as analyzeValModule, d as formatSyntaxErrorTree, p as proposalSnapshotForReaders } from './proposalJsonEntries-0669f027.esm.js';
1
+ import { a as analyzeValModule, f as flatMapErrors, b as formatSyntaxError, c as analyzeJsonValuesEntries } from './proposalJsonEntries-2cd6f6fe.esm.js';
2
+ export { a as analyzeValModule, d as formatSyntaxErrorTree, p as proposalSnapshotForReaders } from './proposalJsonEntries-2cd6f6fe.esm.js';
3
3
  import { applyPatch, PatchError, JSONOps, deepClone, sourceToPatchPath, isNotRoot } from '@valbuild/core/patch';
4
- import { T as TSOps, g as getPersonalAccessTokenPath, p as parsePersonalAccessTokenFile, v as valRuntime, a as verifyJwt, d as decodeJwtWithoutVerifying, e as encodeJwt, b as getExpire, r as readValLoginToken, c as resolveRemoteFileAuth, l as loadTypeScriptKit, i as initHandlerOptions, f as removeValJsonEntry, h as insertValJsonEntry, V as ValOpsFS } from './valRuntime-e4d26702.esm.js';
5
- export { A as APP_MODE_REQUIRES_REMOTE_FILES, V as ValOpsFS, k as ValOpsHttp, j as createValOps, d as decodeJwtWithoutVerifying, n as describePatchStoreProblems, e as encodeJwt, b as getExpire, g as getPersonalAccessTokenPath, i as initHandlerOptions, l as loadTypeScriptKit, p as parsePersonalAccessTokenFile, m as readPatchStore, c as resolveRemoteFileAuth, v as valRuntime, a as verifyJwt } from './valRuntime-e4d26702.esm.js';
4
+ import { T as TSOps, g as getPersonalAccessTokenPath, p as parsePersonalAccessTokenFile, v as valRuntime, a as verifyJwt, d as decodeJwtWithoutVerifying, e as encodeJwt, b as getExpire, r as readValLoginToken, c as resolveRemoteFileAuth, l as loadTypeScriptKit, i as initHandlerOptions, f as removeValJsonEntry, h as insertValJsonEntry, V as ValOpsFS } from './valRuntime-ca9958fc.esm.js';
5
+ export { A as APP_MODE_REQUIRES_REMOTE_FILES, V as ValOpsFS, k as ValOpsHttp, j as createValOps, d as decodeJwtWithoutVerifying, n as describePatchStoreProblems, e as encodeJwt, b as getExpire, g as getPersonalAccessTokenPath, i as initHandlerOptions, l as loadTypeScriptKit, p as parsePersonalAccessTokenFile, m as readPatchStore, c as resolveRemoteFileAuth, v as valRuntime, a as verifyJwt } from './valRuntime-ca9958fc.esm.js';
6
6
  import { pipe, result } from '@valbuild/core/fp';
7
7
  import { derefPatch, Internal, extractValModules, DEFAULT_VAL_REMOTE_HOST, DEFAULT_CONTENT_HOST } from '@valbuild/core';
8
8
  export { hasRemoteFileSchema } from '@valbuild/core';
@@ -12,8 +12,8 @@ import fs from 'fs';
12
12
  import vm from 'node:vm';
13
13
  import { Module } from 'node:module';
14
14
  import { r as resolveExistingJsonPath, f as findNestedJsonValuesRecords, g as getNewJsonEntryPaths } from './jsonValuesPatch-13acc674.esm.js';
15
- import { v as validateJsonValuesEntries, i as isHlsMasterPlaylist, s as sumHlsSegmentDurations, p as parseHlsMasterVariants, l as largestHlsVariant, g as getFileExt, f as fallbackRefOf, m as mapHlsUris, a as movedRemoteHost, n as needsHostCheck, r as rewriteRefHost, b as fallbackRemoteHost, c as checkRemoteFiles, d as getFieldsForType, V as ValServer, e as formatPatchSourceError, h as VAL_CLIENT_HEADERS } from './ValOpsMemory-972616ae.esm.js';
16
- export { o as ValOpsMemory, j as askOncePerHost, e as formatPatchSourceError, g as getFileExt, k as getSettings, u as uploadRemoteFile } from './ValOpsMemory-972616ae.esm.js';
15
+ import { v as validateJsonValuesEntries, i as isHlsMasterPlaylist, s as sumHlsSegmentDurations, p as parseHlsMasterVariants, l as largestHlsVariant, g as getFileExt, f as fallbackRefOf, m as mapHlsUris, a as movedRemoteHost, n as needsHostCheck, r as rewriteRefHost, b as fallbackRemoteHost, c as checkRemoteFiles, d as getFieldsForType, V as ValServer, e as formatPatchSourceError, h as VAL_CLIENT_HEADERS } from './ValOpsMemory-82af54c9.esm.js';
16
+ export { o as ValOpsMemory, j as askOncePerHost, e as formatPatchSourceError, g as getFileExt, k as getSettings, u as uploadRemoteFile } from './ValOpsMemory-82af54c9.esm.js';
17
17
  import { isJsonValuesRootOp, rebaseContentOp, classifyJsonValuesOp, LOCAL_FILE_IN_REMOTE_PROJECT_WARNING, LOCAL_FILE_IN_REMOTE_PROJECT_HINT, traverseSchemaSource, richTextImageSchema, forEachRichTextImage, isStudioFix } from '@valbuild/shared/internal';
18
18
  export { classifyJsonValuesOp, rebaseContentOp } from '@valbuild/shared/internal';
19
19
  import { createUIRequestHandler } from '@valbuild/ui/server';
@@ -23,13 +23,13 @@ import net from 'node:net';
23
23
  import sizeOf from 'image-size';
24
24
  import http$1 from 'http';
25
25
  import https$1 from 'https';
26
- import { s as setRequestGuard, p as parseAllowedHosts, c as createValRequestHandler } from './ValRouterCore-73eb843d.esm.js';
27
- export { c as contentFromEnv, b as createPrettierFormatter, l as layeredSnapshot, p as proposalFromEnv, a as proposalSnapshot } from './createPrettierFormatter-1edca494.esm.js';
26
+ import { s as setRequestGuard, p as parseAllowedHosts, c as createValRequestHandler } from './ValRouterCore-f7d6394e.esm.js';
27
+ export { c as contentFromEnv, b as createPrettierFormatter, l as layeredSnapshot, p as proposalFromEnv, a as proposalSnapshot } from './createPrettierFormatter-ce478de1.esm.js';
28
28
  import { transform } from 'sucrase';
29
29
  import fs$1 from 'fs/promises';
30
30
  import z from 'zod';
31
31
  import os from 'os';
32
- export { I as InMemoryPatchStore } from './ValPatchStore-e23070df.esm.js';
32
+ export { I as InMemoryPatchStore } from './ValPatchStore-9ccc09e7.esm.js';
33
33
  import 'zod-validation-error';
34
34
  import 'crypto';
35
35
  import 'buffer';
@@ -2,19 +2,19 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var inTabFetch = require('../../../dist/inTabFetch-db6d6425.cjs.dev.js');
6
- var draftReads = require('../../../dist/draftReads-a300a02f.cjs.dev.js');
5
+ var inTabFetch = require('../../../dist/inTabFetch-fb9cf5e0.cjs.dev.js');
6
+ var draftReads = require('../../../dist/draftReads-1f256502.cjs.dev.js');
7
7
  require('@valbuild/core');
8
- require('../../../dist/ValOpsMemory-45ba05ad.cjs.dev.js');
8
+ require('../../../dist/ValOpsMemory-88633e0f.cjs.dev.js');
9
9
  require('zod');
10
10
  require('@valbuild/shared/internal');
11
11
  require('../../../dist/jsonValuesPatch-88bc661d.cjs.dev.js');
12
12
  require('@valbuild/core/fp');
13
13
  require('zod-validation-error');
14
- require('../../../dist/ValPatchStore-df8cdbe7.cjs.dev.js');
14
+ require('../../../dist/ValPatchStore-b53db740.cjs.dev.js');
15
15
  require('@valbuild/core/patch');
16
16
  require('image-size');
17
- require('../../../dist/ValRouterCore-86757d56.cjs.dev.js');
17
+ require('../../../dist/ValRouterCore-adb69698.cjs.dev.js');
18
18
 
19
19
 
20
20
 
@@ -2,19 +2,19 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var inTabFetch = require('../../../dist/inTabFetch-c2efa1bd.cjs.prod.js');
6
- var draftReads = require('../../../dist/draftReads-3f7dcda5.cjs.prod.js');
5
+ var inTabFetch = require('../../../dist/inTabFetch-e9a48fac.cjs.prod.js');
6
+ var draftReads = require('../../../dist/draftReads-27351e97.cjs.prod.js');
7
7
  require('@valbuild/core');
8
- require('../../../dist/ValOpsMemory-18337353.cjs.prod.js');
8
+ require('../../../dist/ValOpsMemory-a1a58597.cjs.prod.js');
9
9
  require('zod');
10
10
  require('@valbuild/shared/internal');
11
11
  require('../../../dist/jsonValuesPatch-92798812.cjs.prod.js');
12
12
  require('@valbuild/core/fp');
13
13
  require('zod-validation-error');
14
- require('../../../dist/ValPatchStore-2f92eced.cjs.prod.js');
14
+ require('../../../dist/ValPatchStore-457b166f.cjs.prod.js');
15
15
  require('@valbuild/core/patch');
16
16
  require('image-size');
17
- require('../../../dist/ValRouterCore-5b747abb.cjs.prod.js');
17
+ require('../../../dist/ValRouterCore-65bb6323.cjs.prod.js');
18
18
 
19
19
 
20
20
 
@@ -1,13 +1,13 @@
1
- export { a as createInTabVal } from '../../../dist/inTabFetch-0c997998.esm.js';
2
- export { s as serverDraftSource } from '../../../dist/draftReads-bca0d49c.esm.js';
1
+ export { a as createInTabVal } from '../../../dist/inTabFetch-54c1cb83.esm.js';
2
+ export { s as serverDraftSource } from '../../../dist/draftReads-7f0f0eb3.esm.js';
3
3
  import '@valbuild/core';
4
- import '../../../dist/ValOpsMemory-972616ae.esm.js';
4
+ import '../../../dist/ValOpsMemory-82af54c9.esm.js';
5
5
  import 'zod';
6
6
  import '@valbuild/shared/internal';
7
7
  import '../../../dist/jsonValuesPatch-13acc674.esm.js';
8
8
  import '@valbuild/core/fp';
9
9
  import 'zod-validation-error';
10
- import '../../../dist/ValPatchStore-e23070df.esm.js';
10
+ import '../../../dist/ValPatchStore-9ccc09e7.esm.js';
11
11
  import '@valbuild/core/patch';
12
12
  import 'image-size';
13
- import '../../../dist/ValRouterCore-73eb843d.esm.js';
13
+ import '../../../dist/ValRouterCore-f7d6394e.esm.js';
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var draftReads = require('../../dist/draftReads-a300a02f.cjs.dev.js');
6
- var createPrettierFormatter = require('../../dist/createPrettierFormatter-851fcf99.cjs.dev.js');
7
- var ValPatchStore = require('../../dist/ValPatchStore-df8cdbe7.cjs.dev.js');
5
+ var draftReads = require('../../dist/draftReads-1f256502.cjs.dev.js');
6
+ var createPrettierFormatter = require('../../dist/createPrettierFormatter-5d830bdf.cjs.dev.js');
7
+ var ValPatchStore = require('../../dist/ValPatchStore-b53db740.cjs.dev.js');
8
8
  require('@valbuild/core');
9
9
  require('@valbuild/shared/internal');
10
10
  require('path');
@@ -37,7 +37,7 @@ require('path');
37
37
  async function createValRuntime(valModules, route, opts, config) {
38
38
  const {
39
39
  createValRuntime
40
- } = await Promise.resolve().then(function () { return require('../../dist/createValRuntime-5cebf459.cjs.dev.js'); });
40
+ } = await Promise.resolve().then(function () { return require('../../dist/createValRuntime-858474b4.cjs.dev.js'); });
41
41
  return createValRuntime(valModules, route, opts, config);
42
42
  }
43
43
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var draftReads = require('../../dist/draftReads-3f7dcda5.cjs.prod.js');
6
- var createPrettierFormatter = require('../../dist/createPrettierFormatter-05ad7480.cjs.prod.js');
7
- var ValPatchStore = require('../../dist/ValPatchStore-2f92eced.cjs.prod.js');
5
+ var draftReads = require('../../dist/draftReads-27351e97.cjs.prod.js');
6
+ var createPrettierFormatter = require('../../dist/createPrettierFormatter-b31bfbe5.cjs.prod.js');
7
+ var ValPatchStore = require('../../dist/ValPatchStore-457b166f.cjs.prod.js');
8
8
  require('@valbuild/core');
9
9
  require('@valbuild/shared/internal');
10
10
  require('path');
@@ -37,7 +37,7 @@ require('path');
37
37
  async function createValRuntime(valModules, route, opts, config) {
38
38
  const {
39
39
  createValRuntime
40
- } = await Promise.resolve().then(function () { return require('../../dist/createValRuntime-472df6e8.cjs.prod.js'); });
40
+ } = await Promise.resolve().then(function () { return require('../../dist/createValRuntime-07bf43dd.cjs.prod.js'); });
41
41
  return createValRuntime(valModules, route, opts, config);
42
42
  }
43
43
 
@@ -1,6 +1,6 @@
1
- export { d as draftForRequest, r as readDraftChanges, s as serverDraftSource } from '../../dist/draftReads-bca0d49c.esm.js';
2
- export { b as createPrettierFormatter, l as layeredSnapshot, g as proposalAsBuilt, r as readerSnapshot, h as serverCanStartLazily, e as servingBuildOf, s as stagedAfterBuild } from '../../dist/createPrettierFormatter-1edca494.esm.js';
3
- export { H as HEAD_BUDGET_BYTES, a as HEAD_VERSIONS_PER_MODULE, I as InMemoryPatchStore, V as ValHead, h as headWork } from '../../dist/ValPatchStore-e23070df.esm.js';
1
+ export { d as draftForRequest, r as readDraftChanges, s as serverDraftSource } from '../../dist/draftReads-7f0f0eb3.esm.js';
2
+ export { b as createPrettierFormatter, l as layeredSnapshot, g as proposalAsBuilt, r as readerSnapshot, h as serverCanStartLazily, e as servingBuildOf, s as stagedAfterBuild } from '../../dist/createPrettierFormatter-ce478de1.esm.js';
3
+ export { H as HEAD_BUDGET_BYTES, a as HEAD_VERSIONS_PER_MODULE, I as InMemoryPatchStore, V as ValHead, h as headWork } from '../../dist/ValPatchStore-9ccc09e7.esm.js';
4
4
  import '@valbuild/core';
5
5
  import '@valbuild/shared/internal';
6
6
  import 'path';
@@ -33,7 +33,7 @@ import 'path';
33
33
  async function createValRuntime(valModules, route, opts, config) {
34
34
  const {
35
35
  createValRuntime
36
- } = await import('../../dist/createValRuntime-c77ee010.esm.js');
36
+ } = await import('../../dist/createValRuntime-d34c69e8.esm.js');
37
37
  return createValRuntime(valModules, route, opts, config);
38
38
  }
39
39
 
package/package.json CHANGED
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "exports": true
39
39
  },
40
- "version": "0.154.3",
40
+ "version": "0.154.4",
41
41
  "devDependencies": {
42
42
  "@prettier/sync": "^0.6.1",
43
43
  "@types/jest": "^30.0.0",
@@ -51,9 +51,9 @@
51
51
  "typescript": "^6.0.3",
52
52
  "zod": "^4.6.6",
53
53
  "zod-validation-error": "^5.0.0",
54
- "@valbuild/shared": "0.154.3",
55
54
  "@valbuild/core": "0.154.2",
56
- "@valbuild/ui": "0.154.2"
55
+ "@valbuild/ui": "0.154.2",
56
+ "@valbuild/shared": "0.154.4"
57
57
  },
58
58
  "engines": {
59
59
  "node": "^20.19.0 || >=22"