@valbuild/server 0.144.1 → 0.144.3

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.
@@ -3599,6 +3599,13 @@ class ValOps {
3599
3599
  * {@link siteSourcesUnderSnapshot}, and only where there is a snapshot.
3600
3600
  */
3601
3601
  siteSourcesBeforeSnapshot = null;
3602
+ /**
3603
+ * The same modules as the bundle evaluated them, imports and all: where a
3604
+ * `.jsonValues()` entry the snapshot did not save is read from. Not
3605
+ * {@link siteSourcesBeforeSnapshot}, whose markers may have come as JSON
3606
+ * from a content version, with no import behind them.
3607
+ */
3608
+ bundleSourcesBeforeSnapshot = null;
3602
3609
  /**
3603
3610
  * What a save has told us each `.jsonValues()` entry now holds.
3604
3611
  *
@@ -3657,7 +3664,7 @@ class ValOps {
3657
3664
  // #region initTree
3658
3665
  async initSources() {
3659
3666
  if (this.baseSha === null || this.sourcesSha === null || this.configSha === null || this.schemaSha === null || this.sources === null || this.schemas === null || this.modulesErrors === null) {
3660
- var _this$options;
3667
+ var _this$options, _this$options2;
3661
3668
  const extracted = await extractValModules(this.valModules);
3662
3669
  const moduleErrors = extracted.moduleErrors.concat(findNestedJsonValuesModuleErrors(extracted.schemas));
3663
3670
  this.sources = extracted.sources;
@@ -3675,16 +3682,45 @@ class ValOps {
3675
3682
  * being served, and a base SHA that still described the bundle would
3676
3683
  * say the snapshot's content was the bundle's.
3677
3684
  */
3678
- if ((_this$options = this.options) !== null && _this$options !== void 0 && _this$options.snapshotSources) {
3685
+ const siteLayer = (_this$options = this.options) === null || _this$options === void 0 ? void 0 : _this$options.siteSnapshotSources;
3686
+ const snapshotLayer = (_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.snapshotSources;
3687
+ /*
3688
+ * The bundle's own Source for every module either layer replaces: a
3689
+ * replaced `.jsonValues()` module's markers came as JSON, and an entry
3690
+ * neither layer saved is read through the bundle's marker, which still
3691
+ * has its `import()`.
3692
+ */
3693
+ if (siteLayer || snapshotLayer) {
3694
+ const bundle = {};
3695
+ for (const moduleFilePath of Object.keys({
3696
+ ...siteLayer,
3697
+ ...snapshotLayer
3698
+ })) {
3699
+ const path = moduleFilePath;
3700
+ const bundled = extracted.sources[path];
3701
+ if (bundled !== undefined) {
3702
+ bundle[path] = bundled;
3703
+ }
3704
+ }
3705
+ this.bundleSourcesBeforeSnapshot = bundle;
3706
+ }
3707
+ // What a proposal is compared against: the site, only where there is a proposal.
3708
+ if (snapshotLayer) {
3679
3709
  const site = {};
3680
- for (const moduleFilePath of Object.keys(this.options.snapshotSources)) {
3681
- const source = extracted.sources[moduleFilePath];
3710
+ for (const moduleFilePath of Object.keys(snapshotLayer)) {
3711
+ const path = moduleFilePath;
3712
+ const source = (siteLayer === null || siteLayer === void 0 ? void 0 : siteLayer[path]) ?? extracted.sources[path];
3682
3713
  if (source !== undefined) {
3683
- site[moduleFilePath] = source;
3714
+ site[path] = source;
3684
3715
  }
3685
3716
  }
3686
3717
  this.siteSourcesBeforeSnapshot = site;
3687
- this.promoteCommittedSources(this.options.snapshotSources);
3718
+ }
3719
+ if (siteLayer || snapshotLayer) {
3720
+ this.promoteCommittedSources({
3721
+ ...siteLayer,
3722
+ ...snapshotLayer
3723
+ });
3688
3724
  }
3689
3725
  return {
3690
3726
  baseSha: this.baseSha,
@@ -3714,8 +3750,8 @@ class ValOps {
3714
3750
  * both, so it is not sent. `null` anywhere that is not a proposal.
3715
3751
  */
3716
3752
  async siteSourcesUnderSnapshot() {
3717
- var _this$options2;
3718
- if (!((_this$options2 = this.options) !== null && _this$options2 !== void 0 && _this$options2.snapshotSources)) return null;
3753
+ var _this$options3;
3754
+ if (!((_this$options3 = this.options) !== null && _this$options3 !== void 0 && _this$options3.snapshotSources)) return null;
3719
3755
  await this.initSources();
3720
3756
  return this.siteSourcesBeforeSnapshot;
3721
3757
  }
@@ -4022,7 +4058,7 @@ class ValOps {
4022
4058
  }
4023
4059
  }
4024
4060
  const loaded = await Promise.all([...requestedKeys, ...sourceKeys].map(async entryKey => {
4025
- var _this$adoptedJsonEntr, _this$siteSourcesBefo;
4061
+ var _this$adoptedJsonEntr, _this$bundleSourcesBe;
4026
4062
  const marker = record[entryKey];
4027
4063
  if (marker !== undefined && !Internal.isJson(marker)) {
4028
4064
  // Not a jsonValues entry — return the inlined value as-is (defensive).
@@ -4069,7 +4105,7 @@ class ValOps {
4069
4105
  * entry the proposal did not save is the build's, behind the marker
4070
4106
  * the module evaluated to.
4071
4107
  */
4072
- const siteMarker = (_this$siteSourcesBefo = this.siteSourcesBeforeSnapshot) === null || _this$siteSourcesBefo === void 0 || (_this$siteSourcesBefo = _this$siteSourcesBefo[moduleFilePath]) === null || _this$siteSourcesBefo === void 0 ? void 0 : _this$siteSourcesBefo[entryKey];
4108
+ const siteMarker = (_this$bundleSourcesBe = this.bundleSourcesBeforeSnapshot) === null || _this$bundleSourcesBe === void 0 || (_this$bundleSourcesBe = _this$bundleSourcesBe[moduleFilePath]) === null || _this$bundleSourcesBe === void 0 ? void 0 : _this$bundleSourcesBe[entryKey];
4073
4109
  const thunk = Internal.getJsonImport(marker) ?? (Internal.isJson(siteMarker) ? Internal.getJsonImport(siteMarker) : undefined);
4074
4110
  if (!thunk) {
4075
4111
  return {
@@ -5328,9 +5364,9 @@ class ValOps {
5328
5364
  // https://github.com/microsoft/TypeScript/issues/36174
5329
5365
  let sourceFileText = null;
5330
5366
  if (tsChanged) {
5331
- var _this$options3;
5367
+ var _this$options4;
5332
5368
  sourceFileText = unescape(tsSourceFile.getText(tsSourceFile).replace(/\\u/g, "%u"));
5333
- if ((_this$options3 = this.options) !== null && _this$options3 !== void 0 && _this$options3.formatter) {
5369
+ if ((_this$options4 = this.options) !== null && _this$options4 !== void 0 && _this$options4.formatter) {
5334
5370
  try {
5335
5371
  sourceFileText = await this.options.formatter(sourceFileText, path);
5336
5372
  } catch (err) {
@@ -5342,13 +5378,13 @@ class ValOps {
5342
5378
  }
5343
5379
  const extraFiles = {};
5344
5380
  for (const [jsonPath, content] of Array.from(jsonEntryContents)) {
5345
- var _this$options4;
5381
+ var _this$options5;
5346
5382
  if (content === null) {
5347
5383
  extraFiles[jsonPath] = null;
5348
5384
  continue;
5349
5385
  }
5350
5386
  let jsonText = JSON.stringify(content, null, 2);
5351
- if ((_this$options4 = this.options) !== null && _this$options4 !== void 0 && _this$options4.formatter) {
5387
+ if ((_this$options5 = this.options) !== null && _this$options5 !== void 0 && _this$options5.formatter) {
5352
5388
  try {
5353
5389
  jsonText = await this.options.formatter(jsonText, jsonPath);
5354
5390
  } catch (err) {
@@ -8967,6 +9003,182 @@ function proposalFromEnv(env) {
8967
9003
  };
8968
9004
  }
8969
9005
 
9006
+ /**
9007
+ * A content version: the site's content, served by a build that bundles an
9008
+ * older one. valbuild/home `docs/hosted-publishing.md`, step 2.
9009
+ *
9010
+ * The platform hands over only what differs from the bundle -- the modules
9011
+ * whose Source changed and the Val files whose text did -- the way it hands a
9012
+ * proposal's address its saved content, and it is read the same way: the
9013
+ * snapshot source provider, over the bundle. What differs is the position: a
9014
+ * version names the publish that made it (`job`, or its `commit`), and that is
9015
+ * where this server says it sits, never at the build it runs in.
9016
+ */
9017
+
9018
+ /**
9019
+ * The content version a platform hands over in its runtime env
9020
+ * (`VAL_CONTENT`), or `undefined` when it hands over none.
9021
+ *
9022
+ * Throws on one it cannot read rather than serving the bundle as though it
9023
+ * were the version: the site would show content older than what was
9024
+ * published, and nothing would say so.
9025
+ *
9026
+ * A version too large for one variable names others under `refs`: a module's
9027
+ * Source (JSON) or a file's text, each in a variable of its own --
9028
+ * `{ "refs": { "modules": { "/a.val.ts": "env://VAL_CONTENT_1" } } }`. Flat:
9029
+ * a referenced variable holds the value itself and is never read for further
9030
+ * references. Only `refs` is resolved, never a string inside Source, and only
9031
+ * `VAL_CONTENT_<n>` is ever read: Source is text editors write, and a
9032
+ * reference resolved in there would read any variable the isolate holds,
9033
+ * `VAL_SECRET` included, into a page. The scheme leaves room for another
9034
+ * place to read from; one this does not know is refused, not skipped.
9035
+ */
9036
+ function contentFromEnv(env) {
9037
+ if (!env.VAL_CONTENT) {
9038
+ return undefined;
9039
+ }
9040
+ let parsed;
9041
+ try {
9042
+ parsed = JSON.parse(env.VAL_CONTENT);
9043
+ } catch (err) {
9044
+ throw new Error(`Val: VAL_CONTENT is not JSON (${err instanceof Error ? err.message : String(err)})`, {
9045
+ cause: err
9046
+ });
9047
+ }
9048
+ if (!isObject$1(parsed) || Array.isArray(parsed)) {
9049
+ throw new Error("Val: VAL_CONTENT is not an object");
9050
+ }
9051
+ const id = parsed["id"];
9052
+ if (typeof id !== "string" || id === "") {
9053
+ throw new Error("Val: VAL_CONTENT has no id");
9054
+ }
9055
+ const job = parsed["job"] ?? null;
9056
+ const commit = parsed["commit"] ?? null;
9057
+ if (job !== null && typeof job !== "string") {
9058
+ throw new Error(`Val: content version ${id}: job must be a string or null`);
9059
+ }
9060
+ if (commit !== null && typeof commit !== "string") {
9061
+ throw new Error(`Val: content version ${id}: commit must be a string or null`);
9062
+ }
9063
+ const modulesIn = parsed["modules"] ?? {};
9064
+ const filesIn = parsed["files"] ?? {};
9065
+ if (!isObject$1(modulesIn) || Array.isArray(modulesIn) || !isObject$1(filesIn) || Array.isArray(filesIn)) {
9066
+ throw new Error(`Val: content version ${id}: modules and files must be objects`);
9067
+ }
9068
+ const files = {};
9069
+ for (const [path, text] of Object.entries(filesIn)) {
9070
+ if (typeof text === "string") {
9071
+ files[path] = text;
9072
+ }
9073
+ }
9074
+ const modules = {
9075
+ ...modulesIn
9076
+ };
9077
+ const refs = parsed["refs"] ?? {};
9078
+ if (!isObject$1(refs) || Array.isArray(refs)) {
9079
+ throw new Error(`Val: content version ${id}: refs must be an object`);
9080
+ }
9081
+ const read = (kind, path, ref) => {
9082
+ const where = `Val: content version ${id}: refs.${kind}["${path}"]`;
9083
+ if (typeof ref !== "string") {
9084
+ throw new Error(`${where} must be a string`);
9085
+ }
9086
+ if (!ref.startsWith(ENV_REF)) {
9087
+ throw new Error(`${where} is ${ref}: only ${ENV_REF}VAL_CONTENT_<n> is read`);
9088
+ }
9089
+ const name = ref.slice(ENV_REF.length);
9090
+ if (!CONTENT_VARIABLE.test(name)) {
9091
+ throw new Error(`${where} names ${name}: only VAL_CONTENT_<n> is read`);
9092
+ }
9093
+ const value = env[name];
9094
+ if (value === undefined) {
9095
+ throw new Error(`${where} names ${name}, which is not set`);
9096
+ }
9097
+ return {
9098
+ where,
9099
+ name,
9100
+ value
9101
+ };
9102
+ };
9103
+ const refModules = refs["modules"] ?? {};
9104
+ const refFiles = refs["files"] ?? {};
9105
+ if (!isObject$1(refModules) || Array.isArray(refModules) || !isObject$1(refFiles) || Array.isArray(refFiles)) {
9106
+ throw new Error(`Val: content version ${id}: refs.modules and refs.files must be objects`);
9107
+ }
9108
+ for (const [path, ref] of Object.entries(refModules)) {
9109
+ const {
9110
+ where,
9111
+ name,
9112
+ value
9113
+ } = read("modules", path, ref);
9114
+ if (Object.prototype.hasOwnProperty.call(modules, path)) {
9115
+ throw new Error(`${where}: ${path} is also in modules`);
9116
+ }
9117
+ try {
9118
+ modules[path] = JSON.parse(value);
9119
+ } catch (err) {
9120
+ throw new Error(`${where}: ${name} is not JSON (${err instanceof Error ? err.message : String(err)})`, {
9121
+ cause: err
9122
+ });
9123
+ }
9124
+ }
9125
+ for (const [path, ref] of Object.entries(refFiles)) {
9126
+ const {
9127
+ where,
9128
+ value
9129
+ } = read("files", path, ref);
9130
+ // The handed object, not `files`: an inline value that is not text was
9131
+ // dropped from `files`, and is still a second naming of the path.
9132
+ if (Object.prototype.hasOwnProperty.call(filesIn, path)) {
9133
+ throw new Error(`${where}: ${path} is also in files`);
9134
+ }
9135
+ files[path] = value;
9136
+ }
9137
+ if (job === null && commit === null) {
9138
+ // Placed nowhere, Val would place it at the build it runs in -- the one
9139
+ // position a version must never take: its own changes would be replayed
9140
+ // over a snapshot that already holds them.
9141
+ throw new Error(`Val: content version ${id} must name a job or a commit, or it would be placed at the build it runs in`);
9142
+ }
9143
+ return {
9144
+ id,
9145
+ job,
9146
+ commit,
9147
+ modules,
9148
+ files
9149
+ };
9150
+ }
9151
+
9152
+ /** The one scheme a content version's `refs` may use, for now. */
9153
+ const ENV_REF = "env://";
9154
+ /** The only variables a reference may name. */
9155
+ const CONTENT_VARIABLE = /^VAL_CONTENT_[0-9]+$/;
9156
+
9157
+ /**
9158
+ * What a server or reader renders over the bundle: a proposal's saves over the
9159
+ * content version the site serves, either alone, or nothing.
9160
+ *
9161
+ * Layered rather than chosen. At a proposal's address the platform hands both
9162
+ * when the base the proposal was opened from serves content its build does not
9163
+ * bundle (a content-only publish), and the proposal saves only the modules it
9164
+ * changed: choosing the proposal alone would show every other module as the
9165
+ * build bundles it -- older than the site it was opened from.
9166
+ */
9167
+ function layeredSnapshot(proposal, contentVersion) {
9168
+ if (proposal === undefined) return contentVersion;
9169
+ if (contentVersion === undefined) return proposal;
9170
+ return {
9171
+ modules: {
9172
+ ...contentVersion.modules,
9173
+ ...proposal.modules
9174
+ },
9175
+ files: {
9176
+ ...contentVersion.files,
9177
+ ...proposal.files
9178
+ }
9179
+ };
9180
+ }
9181
+
8970
9182
  /**
8971
9183
  * The proposal's saved Source, as Source: every module whose value is JSON.
8972
9184
  * One place, so the server and the readers that render without it agree on
@@ -9461,6 +9673,8 @@ class ValOpsHttp extends ValOps {
9461
9673
  publishBuild;
9462
9674
  /** See `proposal` on {@link ValApiOptions}; `null` on the site. */
9463
9675
  proposal;
9676
+ /** See `contentVersion` on {@link ValApiOptions}; `null` at a proposal's address. */
9677
+ contentVersion;
9464
9678
 
9465
9679
  /** Did the host hand over the running build's source? See `projectSource`. */
9466
9680
  embedsSource() {
@@ -9533,10 +9747,22 @@ class ValOpsHttp extends ValOps {
9533
9747
  * getSettings / uploadRemoteFile / getPresignedAuthNonce.
9534
9748
  */
9535
9749
  auth, valModules, options) {
9536
- super(valModules, options !== null && options !== void 0 && options.proposal ? {
9750
+ /*
9751
+ * What replaces the bundle's Source: the content version the site serves,
9752
+ * and a proposal's saves over it at its address. Two layers rather than
9753
+ * one, because the version is the SITE -- what a proposal is compared
9754
+ * against -- and the proposal is what is being proposed.
9755
+ */
9756
+ const snapshot = layeredSnapshot(options === null || options === void 0 ? void 0 : options.proposal, options === null || options === void 0 ? void 0 : options.contentVersion);
9757
+ super(valModules, options && snapshot ? {
9537
9758
  ...options,
9538
- snapshotSources: proposalSnapshot(options.proposal),
9539
- snapshotJsonEntries: proposalJsonEntries(options.proposal, options.projectSource)
9759
+ ...(options.proposal !== undefined ? {
9760
+ snapshotSources: proposalSnapshot(options.proposal)
9761
+ } : {}),
9762
+ ...(options.contentVersion !== undefined ? {
9763
+ siteSnapshotSources: proposalSnapshot(options.contentVersion)
9764
+ } : {}),
9765
+ snapshotJsonEntries: proposalJsonEntries(snapshot, options.projectSource)
9540
9766
  } : options);
9541
9767
  this.contentUrl = contentUrl;
9542
9768
  this.project = project;
@@ -9548,16 +9774,25 @@ class ValOpsHttp extends ValOps {
9548
9774
  };
9549
9775
  this.root = (options === null || options === void 0 ? void 0 : options.root) ?? "";
9550
9776
  this.proposal = (options === null || options === void 0 ? void 0 : options.proposal) ?? null;
9777
+ this.contentVersion = this.proposal === null ? (options === null || options === void 0 ? void 0 : options.contentVersion) ?? null : null;
9551
9778
  /*
9552
9779
  * In a proposal, the text its saves wrote over the text the build was made
9553
9780
  * from: the next save patches the last one's `.val.ts`, not the base's.
9781
+ * The same for a content version: the next publish patches what the last
9782
+ * one published, not what the build bundles.
9554
9783
  */
9555
- this.projectSource = this.proposal !== null ? {
9784
+ this.projectSource = snapshot !== undefined ? {
9556
9785
  ...((options === null || options === void 0 ? void 0 : options.projectSource) ?? {}),
9557
- ...this.proposal.files
9786
+ ...snapshot.files
9558
9787
  } : (options === null || options === void 0 ? void 0 : options.projectSource) ?? null;
9559
9788
  this.publishJob = (options === null || options === void 0 ? void 0 : options.publishJob) ?? null;
9560
- this.publishBuild = (options === null || options === void 0 ? void 0 : options.publishBuild) ?? null;
9789
+ /*
9790
+ * Not with a content version: the content service places a build by the
9791
+ * build first (`getApplicablePatchesAndCommits`), and this build bundles an
9792
+ * older version than it serves -- placed there, the version's own changes
9793
+ * would be replayed over a snapshot that already holds them.
9794
+ */
9795
+ this.publishBuild = this.contentVersion === null ? (options === null || options === void 0 ? void 0 : options.publishBuild) ?? null : null;
9561
9796
  this.mirrorsSourceFiles = git !== null || this.projectSource !== null;
9562
9797
  }
9563
9798
  /**
@@ -10231,6 +10466,22 @@ class ValOpsHttp extends ValOps {
10231
10466
  } : {})
10232
10467
  };
10233
10468
  }
10469
+ /*
10470
+ * A content version sits where the publish that made it does: its job,
10471
+ * which content places exactly, or its commit, once nothing else says.
10472
+ */
10473
+ if (this.contentVersion !== null) {
10474
+ if (this.contentVersion.job !== null) {
10475
+ return {
10476
+ job: this.contentVersion.job
10477
+ };
10478
+ }
10479
+ if (this.contentVersion.commit !== null) {
10480
+ return {
10481
+ commit: this.contentVersion.commit
10482
+ };
10483
+ }
10484
+ }
10234
10485
  if (this.git) {
10235
10486
  return {
10236
10487
  branch: this.git.branch,
@@ -13491,6 +13742,9 @@ async function initHandlerOptions(route, opts, config) {
13491
13742
  ...(opts.proposal !== undefined ? {
13492
13743
  proposal: opts.proposal
13493
13744
  } : {}),
13745
+ ...(opts.contentVersion !== undefined ? {
13746
+ contentVersion: opts.contentVersion
13747
+ } : {}),
13494
13748
  project: maybeValProject,
13495
13749
  valEnableRedirectUrl,
13496
13750
  valDisableRedirectUrl,
@@ -13569,6 +13823,9 @@ function createValOps(valModules, options) {
13569
13823
  } : {}),
13570
13824
  ...(options.proposal !== undefined ? {
13571
13825
  proposal: options.proposal
13826
+ } : {}),
13827
+ ...(options.contentVersion !== undefined ? {
13828
+ contentVersion: options.contentVersion
13572
13829
  } : {})
13573
13830
  });
13574
13831
  }
@@ -24042,4 +24299,4 @@ function readCapturedReport(snapshotDir) {
24042
24299
  return JSON.parse(fs.readFileSync(reportPath, "utf-8"));
24043
24300
  }
24044
24301
 
24045
- export { APP_MODE_REQUIRES_REMOTE_FILES, DEFAULT_LOGIN_EXPIRES_IN_SECONDS, DEFAULT_LOGIN_HOST, DEFAULT_LOGIN_POLL_INTERVAL_SECONDS, EXTERNAL_RESULT, InMemoryPatchStore, Service, ValFSHost, ValLoginError, ValModuleLoader, ValOpsFS, ValOpsHttp, ValOpsMemory, ValSourceFileHandler, analyzeValModule, awaitValLoginConfirmation, checkRemoteRef, classifyJsonValuesOp, compareWithCapturedReport, createDefaultValFSHost, createFixPatch, createJsonEntryPathMap, createModulePathMap, createPrettierFormatter, createService, createValApiRouter, createValModuleFileInspector, createValOps, createValServer, currentFixHandlers, decodeJwtWithoutVerifying, defineExternal, describePatchStoreProblems, downloadFileFromRemote, encodeJwt, err, evalValConfigFile, extractFileMetadata, extractImageMetadata, extractJsonValuesEntry, extractVideoMetadata, extractVideoMetadataFromFile, filesOfVideo, filesOfVideosetEntry, findAndEvalValConfigFile, findDefaultExport, findJsonEntryFilePath, fixHandlers, formatPatchSourceError, formatSyntaxErrorTree, getCachedRemoteFileDir, getCachedRemoteFilePath, getCompilerOptions, getExpire, getFileExt, getModulePathRange, getPersonalAccessTokenPath, getSettings, getValidationErrorFileRef, handleCheckAllFiles, handleExternalUpload, handleFileMetadata, handleJsonValuesExtractEntry, handleRemoteFileCheck, handleRemoteFileDownload, handleRemoteFileUpload, handleRemoteGalleryFileUpload, handleUniqueFolderCheck, handleVideosetCheckAllFiles, handleVideosetCheckRemote, handleVideosetMetadata, handleVideosetUploadRemote, initHandlerOptions, isExternalResult, loadValModules, ok, parsePersonalAccessTokenFile, patchSourceFile, persistPersonalAccessToken, planJsonValuesEntryExtraction, proposalFromEnv, proposalSnapshot, proposalSnapshotForReaders, readCapturedReport, readPatchStore, rebaseContentOp, replaySnapshot, resolveRemoteFileAuth, safeReadGit, startValLogin, uploadRemoteFile, validateMetadata, verifyJwt, videosetEntryVideoSchema };
24302
+ export { APP_MODE_REQUIRES_REMOTE_FILES, DEFAULT_LOGIN_EXPIRES_IN_SECONDS, DEFAULT_LOGIN_HOST, DEFAULT_LOGIN_POLL_INTERVAL_SECONDS, EXTERNAL_RESULT, InMemoryPatchStore, Service, ValFSHost, ValLoginError, ValModuleLoader, ValOpsFS, ValOpsHttp, ValOpsMemory, ValSourceFileHandler, analyzeValModule, awaitValLoginConfirmation, checkRemoteRef, classifyJsonValuesOp, compareWithCapturedReport, contentFromEnv, createDefaultValFSHost, createFixPatch, createJsonEntryPathMap, createModulePathMap, createPrettierFormatter, createService, createValApiRouter, createValModuleFileInspector, createValOps, createValServer, currentFixHandlers, decodeJwtWithoutVerifying, defineExternal, describePatchStoreProblems, downloadFileFromRemote, encodeJwt, err, evalValConfigFile, extractFileMetadata, extractImageMetadata, extractJsonValuesEntry, extractVideoMetadata, extractVideoMetadataFromFile, filesOfVideo, filesOfVideosetEntry, findAndEvalValConfigFile, findDefaultExport, findJsonEntryFilePath, fixHandlers, formatPatchSourceError, formatSyntaxErrorTree, getCachedRemoteFileDir, getCachedRemoteFilePath, getCompilerOptions, getExpire, getFileExt, getModulePathRange, getPersonalAccessTokenPath, getSettings, getValidationErrorFileRef, handleCheckAllFiles, handleExternalUpload, handleFileMetadata, handleJsonValuesExtractEntry, handleRemoteFileCheck, handleRemoteFileDownload, handleRemoteFileUpload, handleRemoteGalleryFileUpload, handleUniqueFolderCheck, handleVideosetCheckAllFiles, handleVideosetCheckRemote, handleVideosetMetadata, handleVideosetUploadRemote, initHandlerOptions, isExternalResult, layeredSnapshot, loadValModules, ok, parsePersonalAccessTokenFile, patchSourceFile, persistPersonalAccessToken, planJsonValuesEntryExtraction, proposalFromEnv, proposalSnapshot, proposalSnapshotForReaders, readCapturedReport, readPatchStore, rebaseContentOp, replaySnapshot, resolveRemoteFileAuth, safeReadGit, startValLogin, uploadRemoteFile, validateMetadata, verifyJwt, videosetEntryVideoSchema };
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "./package.json": "./package.json"
17
17
  },
18
18
  "types": "dist/valbuild-server.cjs.d.ts",
19
- "version": "0.144.1",
19
+ "version": "0.144.3",
20
20
  "devDependencies": {
21
21
  "@prettier/sync": "^0.6.1",
22
22
  "@types/jest": "^30.0.0",
@@ -30,9 +30,9 @@
30
30
  "typescript": "^6.0.3",
31
31
  "zod": "^4.4.3",
32
32
  "zod-validation-error": "^5.0.0",
33
- "@valbuild/shared": "0.144.0",
34
- "@valbuild/ui": "0.144.0",
35
- "@valbuild/core": "0.144.0"
33
+ "@valbuild/core": "0.144.0",
34
+ "@valbuild/shared": "0.144.2",
35
+ "@valbuild/ui": "0.144.3"
36
36
  },
37
37
  "engines": {
38
38
  "node": "^20.19.0 || >=22"