@valbuild/server 0.157.0 → 0.158.1
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.
- package/CHANGELOG.md +63 -0
- package/browser/dist/valbuild-server-browser.cjs.dev.js +3 -3
- package/browser/dist/valbuild-server-browser.cjs.prod.js +3 -3
- package/browser/dist/valbuild-server-browser.esm.js +3 -3
- package/dist/{ValOpsMemory-e534f2ff.esm.js → ValOpsMemory-26ac24fc.esm.js} +2 -2
- package/dist/{ValOpsMemory-56cd8c26.cjs.dev.js → ValOpsMemory-429bc61c.cjs.dev.js} +2 -1
- package/dist/{ValOpsMemory-9470f349.cjs.prod.js → ValOpsMemory-9efeb0ff.cjs.prod.js} +2 -1
- package/dist/{ValRouterCore-f7d6394e.esm.js → ValRouterCore-345a2899.esm.js} +78 -1
- package/dist/{ValRouterCore-adb69698.cjs.dev.js → ValRouterCore-4b44cbe4.cjs.dev.js} +77 -0
- package/dist/{ValRouterCore-65bb6323.cjs.prod.js → ValRouterCore-ec4c58d2.cjs.prod.js} +77 -0
- package/dist/{createValRuntime-0de65330.cjs.dev.js → createValRuntime-0096508d.cjs.dev.js} +2 -2
- package/dist/{createValRuntime-ff609f66.esm.js → createValRuntime-3eb37414.esm.js} +2 -2
- package/dist/{createValRuntime-aff8e536.cjs.prod.js → createValRuntime-53bfd9b1.cjs.prod.js} +2 -2
- package/dist/declarations/src/index.d.ts +4 -0
- package/dist/declarations/src/siteErrors.d.ts +90 -0
- package/dist/declarations/src/siteLogs.d.ts +136 -0
- package/dist/declarations/src/valBuildRead.d.ts +44 -0
- package/dist/{inTabFetch-b1001caf.cjs.prod.js → inTabFetch-7cc9afac.cjs.prod.js} +2 -2
- package/dist/{inTabFetch-7cbaa9de.cjs.dev.js → inTabFetch-953d074b.cjs.dev.js} +2 -2
- package/dist/{inTabFetch-8278c58e.esm.js → inTabFetch-e0ddaec8.esm.js} +2 -2
- package/dist/{publishKit-9b32f7f6.cjs.prod.js → publishKit-036459db.cjs.prod.js} +1 -1
- package/dist/{publishKit-a90d22ad.cjs.dev.js → publishKit-0413c918.cjs.dev.js} +1 -1
- package/dist/{publishKit-bbca36c0.esm.js → publishKit-8447bdec.esm.js} +1 -1
- package/dist/{valRuntime-9ac56da5.cjs.prod.js → valRuntime-02944d4c.cjs.prod.js} +3 -3
- package/dist/{valRuntime-26ed874d.esm.js → valRuntime-433321f5.esm.js} +3 -3
- package/dist/{valRuntime-3e709d67.cjs.dev.js → valRuntime-9b12c6c0.cjs.dev.js} +3 -3
- package/dist/valbuild-server.cjs.dev.js +234 -5
- package/dist/valbuild-server.cjs.prod.js +234 -5
- package/dist/valbuild-server.esm.js +244 -18
- package/internal/browser/dist/valbuild-server-internal-browser.cjs.dev.js +3 -3
- package/internal/browser/dist/valbuild-server-internal-browser.cjs.prod.js +3 -3
- package/internal/browser/dist/valbuild-server-internal-browser.esm.js +3 -3
- package/internal/dist/valbuild-server-internal.cjs.dev.js +1 -1
- package/internal/dist/valbuild-server-internal.cjs.prod.js +1 -1
- package/internal/dist/valbuild-server-internal.esm.js +1 -1
- package/package.json +4 -4
|
@@ -10,26 +10,26 @@ import ts from 'typescript';
|
|
|
10
10
|
import path from 'path';
|
|
11
11
|
import fs from 'fs';
|
|
12
12
|
import { r as resolveExistingJsonPath, f as findNestedJsonValuesRecords, g as getNewJsonEntryPaths } from './jsonValuesPatch-13acc674.esm.js';
|
|
13
|
-
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-
|
|
14
|
-
export { o as ValOpsMemory, j as askOncePerHost, e as formatPatchSourceError, g as getFileExt, k as getSettings, u as uploadRemoteFile } from './ValOpsMemory-
|
|
13
|
+
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-26ac24fc.esm.js';
|
|
14
|
+
export { o as ValOpsMemory, j as askOncePerHost, e as formatPatchSourceError, g as getFileExt, k as getSettings, u as uploadRemoteFile } from './ValOpsMemory-26ac24fc.esm.js';
|
|
15
15
|
import { isJsonValuesRootOp, rebaseContentOp, classifyJsonValuesOp, LOCAL_FILE_IN_REMOTE_PROJECT_WARNING, LOCAL_FILE_IN_REMOTE_PROJECT_HINT, traverseSchemaSource, richTextImageSchema, forEachRichTextImage, isStudioFix } from '@valbuild/shared/internal';
|
|
16
16
|
export { classifyJsonValuesOp, rebaseContentOp } from '@valbuild/shared/internal';
|
|
17
17
|
import { createUIRequestHandler } from '@valbuild/ui/server';
|
|
18
|
-
import { 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, V as ValOpsFS } from './valRuntime-
|
|
19
|
-
export { A as APP_MODE_REQUIRES_REMOTE_FILES, V as ValOpsFS, h as ValOpsHttp, f as createValOps, d as decodeJwtWithoutVerifying, k as describePatchStoreProblems, e as encodeJwt, b as getExpire, g as getPersonalAccessTokenPath, i as initHandlerOptions, l as loadTypeScriptKit, p as parsePersonalAccessTokenFile, j as readPatchStore, c as resolveRemoteFileAuth, v as valRuntime, a as verifyJwt } from './valRuntime-
|
|
18
|
+
import { 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, V as ValOpsFS } from './valRuntime-433321f5.esm.js';
|
|
19
|
+
export { A as APP_MODE_REQUIRES_REMOTE_FILES, V as ValOpsFS, h as ValOpsHttp, f as createValOps, d as decodeJwtWithoutVerifying, k as describePatchStoreProblems, e as encodeJwt, b as getExpire, g as getPersonalAccessTokenPath, i as initHandlerOptions, l as loadTypeScriptKit, p as parsePersonalAccessTokenFile, j as readPatchStore, c as resolveRemoteFileAuth, v as valRuntime, a as verifyJwt } from './valRuntime-433321f5.esm.js';
|
|
20
20
|
import http from 'node:http';
|
|
21
21
|
import https from 'node:https';
|
|
22
22
|
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-
|
|
26
|
+
import { s as setRequestGuard, p as parseAllowedHosts, c as createValRequestHandler } from './ValRouterCore-345a2899.esm.js';
|
|
27
27
|
export { c as contentFromEnv, b as createPrettierFormatter, l as layeredSnapshot, p as proposalFromEnv, a as proposalSnapshot } from './createPrettierFormatter-fb68e363.esm.js';
|
|
28
28
|
export { proposalSnapshotForReaders } from './proposalJsonEntries-e1b07915.esm.js';
|
|
29
|
+
import z$1, { z } from 'zod';
|
|
29
30
|
import { transform } from 'sucrase';
|
|
30
31
|
import fs$1 from 'fs/promises';
|
|
31
32
|
import vm from 'node:vm';
|
|
32
|
-
import z from 'zod';
|
|
33
33
|
import os from 'os';
|
|
34
34
|
export { I as InMemoryPatchStore } from './ValPatchStore-9ccc09e7.esm.js';
|
|
35
35
|
import 'crypto';
|
|
@@ -5573,6 +5573,232 @@ function createValApiRouter(route, valServerPromise, convert) {
|
|
|
5573
5573
|
return createValRequestHandler(route, valServerPromise, convert, uiRequestHandler);
|
|
5574
5574
|
}
|
|
5575
5575
|
|
|
5576
|
+
/**
|
|
5577
|
+
* One GET to Val Build's `/v1/{org}/{project}/…` with a developer's `val login`
|
|
5578
|
+
* token or the project's API key, read against a schema: what `fetchSiteErrors`
|
|
5579
|
+
* and `fetchSiteLogs` share, so both say the same things about the same
|
|
5580
|
+
* failures.
|
|
5581
|
+
*/
|
|
5582
|
+
|
|
5583
|
+
async function readFromValBuild({
|
|
5584
|
+
contentUrl,
|
|
5585
|
+
project,
|
|
5586
|
+
resource,
|
|
5587
|
+
query,
|
|
5588
|
+
credential,
|
|
5589
|
+
schema,
|
|
5590
|
+
invalid,
|
|
5591
|
+
fetchImpl = fetch,
|
|
5592
|
+
timeoutMs = 15_000
|
|
5593
|
+
}) {
|
|
5594
|
+
const [org, name] = project.split("/");
|
|
5595
|
+
const url = new URL(`v1/${encodeURIComponent(org ?? "")}/${encodeURIComponent(name ?? "")}/${resource}`, contentUrl.endsWith("/") ? contentUrl : `${contentUrl}/`);
|
|
5596
|
+
for (const [key, value] of Object.entries(query)) {
|
|
5597
|
+
url.searchParams.set(key, value);
|
|
5598
|
+
}
|
|
5599
|
+
let res;
|
|
5600
|
+
try {
|
|
5601
|
+
res = await fetchImpl(url, {
|
|
5602
|
+
headers: {
|
|
5603
|
+
accept: "application/json",
|
|
5604
|
+
...("pat" in credential ? {
|
|
5605
|
+
"x-val-pat": credential.pat
|
|
5606
|
+
} : {
|
|
5607
|
+
authorization: `Bearer ${credential.apiKey}`
|
|
5608
|
+
})
|
|
5609
|
+
},
|
|
5610
|
+
// A credential goes to the host it was meant for, and nowhere a
|
|
5611
|
+
// redirect would send it.
|
|
5612
|
+
redirect: "manual",
|
|
5613
|
+
signal: AbortSignal.timeout(timeoutMs)
|
|
5614
|
+
});
|
|
5615
|
+
} catch (err) {
|
|
5616
|
+
return {
|
|
5617
|
+
status: "error",
|
|
5618
|
+
reason: "unreachable",
|
|
5619
|
+
message: err instanceof Error ? err.message : String(err)
|
|
5620
|
+
};
|
|
5621
|
+
}
|
|
5622
|
+
const body = await res.json().catch(() => null);
|
|
5623
|
+
if (!res.ok) {
|
|
5624
|
+
return {
|
|
5625
|
+
status: "error",
|
|
5626
|
+
reason: reasonOf(res.status),
|
|
5627
|
+
message: messageOf(body) ?? `Val Build answered ${res.status}.`
|
|
5628
|
+
};
|
|
5629
|
+
}
|
|
5630
|
+
const parsed = schema.safeParse(body);
|
|
5631
|
+
if (!parsed.success) {
|
|
5632
|
+
return {
|
|
5633
|
+
status: "error",
|
|
5634
|
+
reason: "invalid-response",
|
|
5635
|
+
message: invalid
|
|
5636
|
+
};
|
|
5637
|
+
}
|
|
5638
|
+
return {
|
|
5639
|
+
status: "ok",
|
|
5640
|
+
answer: parsed.data
|
|
5641
|
+
};
|
|
5642
|
+
}
|
|
5643
|
+
function reasonOf(status) {
|
|
5644
|
+
if (status === 401) return "unauthenticated";
|
|
5645
|
+
if (status === 403) return "forbidden";
|
|
5646
|
+
if (status === 404) return "not-found";
|
|
5647
|
+
if (status >= 500) return "unavailable";
|
|
5648
|
+
return "invalid-response";
|
|
5649
|
+
}
|
|
5650
|
+
function messageOf(body) {
|
|
5651
|
+
if (typeof body === "object" && body !== null && "message" in body && typeof body.message === "string") {
|
|
5652
|
+
return body.message;
|
|
5653
|
+
}
|
|
5654
|
+
return null;
|
|
5655
|
+
}
|
|
5656
|
+
|
|
5657
|
+
/**
|
|
5658
|
+
* A hosted site's recent errors, from Val Build:
|
|
5659
|
+
* `GET {valContentUrl}/v1/{org}/{project}/site-errors`. What `val errors` and
|
|
5660
|
+
* the MCP tool `get_site_errors` read. The Studio reads the same answer through
|
|
5661
|
+
* its admin proxy, as a web component served by Val Build.
|
|
5662
|
+
*
|
|
5663
|
+
* Errors are kept only for sites Val Build hosts: the platform's tail is what
|
|
5664
|
+
* sees them. A site served anywhere else answers `not-hosted`, which is said
|
|
5665
|
+
* rather than shown as an empty list, so "no errors" never means "nobody is
|
|
5666
|
+
* watching". See `docs/site-errors.md` in valbuild/home.
|
|
5667
|
+
*
|
|
5668
|
+
* Either credential `resolveRemoteFileAuth` gives works: the project's API key
|
|
5669
|
+
* or a developer's `val login` token.
|
|
5670
|
+
*/
|
|
5671
|
+
|
|
5672
|
+
const SiteErrorSchema = z.object({
|
|
5673
|
+
fingerprint: z.string(),
|
|
5674
|
+
kind: z.enum(["exception", "console", "limit", "status"]),
|
|
5675
|
+
level: z.enum(["error", "warn"]),
|
|
5676
|
+
message: z.string(),
|
|
5677
|
+
stack: z.string().nullable(),
|
|
5678
|
+
path: z.string().nullable(),
|
|
5679
|
+
method: z.string().nullable(),
|
|
5680
|
+
status: z.number().nullable(),
|
|
5681
|
+
count: z.number(),
|
|
5682
|
+
firstSeen: z.string(),
|
|
5683
|
+
lastSeen: z.string(),
|
|
5684
|
+
firstBuild: z.string().nullable(),
|
|
5685
|
+
lastBuild: z.string().nullable(),
|
|
5686
|
+
proposal: z.string().nullable()
|
|
5687
|
+
});
|
|
5688
|
+
const SiteErrorsAnswerSchema = z.discriminatedUnion("status", [z.object({
|
|
5689
|
+
status: z.literal("ok"),
|
|
5690
|
+
errors: z.array(SiteErrorSchema),
|
|
5691
|
+
retentionDays: z.number(),
|
|
5692
|
+
liveBuild: z.string().nullable(),
|
|
5693
|
+
dropped: z.boolean()
|
|
5694
|
+
}), z.object({
|
|
5695
|
+
status: z.literal("not-hosted")
|
|
5696
|
+
})]);
|
|
5697
|
+
function fetchSiteErrors({
|
|
5698
|
+
limit,
|
|
5699
|
+
...options
|
|
5700
|
+
}) {
|
|
5701
|
+
return readFromValBuild({
|
|
5702
|
+
...options,
|
|
5703
|
+
resource: "site-errors",
|
|
5704
|
+
query: limit !== undefined ? {
|
|
5705
|
+
limit: String(limit)
|
|
5706
|
+
} : {},
|
|
5707
|
+
schema: SiteErrorsAnswerSchema,
|
|
5708
|
+
invalid: "Val Build's answer was not a list of site errors."
|
|
5709
|
+
});
|
|
5710
|
+
}
|
|
5711
|
+
|
|
5712
|
+
/**
|
|
5713
|
+
* A hosted site's last hour of requests, from Val Build:
|
|
5714
|
+
* `GET {valContentUrl}/v1/{org}/{project}/logs`. What `val logs` and the MCP
|
|
5715
|
+
* tool `get_logs` read. The Studio reads the same answer through its admin
|
|
5716
|
+
* proxy, as a web component served by Val Build.
|
|
5717
|
+
*
|
|
5718
|
+
* Each request is what the site's server did with one visit: where, how it
|
|
5719
|
+
* ended, how long it took, and every line it printed. Kept for an hour, for
|
|
5720
|
+
* sites Val Build hosts; a site served anywhere else answers `not-hosted`.
|
|
5721
|
+
* `after` asks for what arrived since an earlier answer's `cursor`, and `live`
|
|
5722
|
+
* tells Val Build someone is watching, so it gathers new requests every few
|
|
5723
|
+
* seconds instead of once a minute. See `docs/site-errors.md` in valbuild/home.
|
|
5724
|
+
*/
|
|
5725
|
+
|
|
5726
|
+
const LineSchema = z.object({
|
|
5727
|
+
time: z.string(),
|
|
5728
|
+
level: z.enum(["error", "warn", "info", "debug"]),
|
|
5729
|
+
message: z.string(),
|
|
5730
|
+
stack: z.string().nullable()
|
|
5731
|
+
});
|
|
5732
|
+
const RequestSchema = z.object({
|
|
5733
|
+
id: z.string(),
|
|
5734
|
+
time: z.string(),
|
|
5735
|
+
method: z.string().nullable(),
|
|
5736
|
+
path: z.string().nullable(),
|
|
5737
|
+
status: z.number().nullable(),
|
|
5738
|
+
durationMs: z.number().nullable(),
|
|
5739
|
+
cpuMs: z.number().nullable(),
|
|
5740
|
+
outcome: z.enum(["ok", "exception", "cpu", "memory", "canceled"]),
|
|
5741
|
+
build: z.string().nullable(),
|
|
5742
|
+
proposal: z.string().nullable(),
|
|
5743
|
+
lines: z.array(LineSchema),
|
|
5744
|
+
errorFingerprint: z.string().nullable()
|
|
5745
|
+
});
|
|
5746
|
+
const SiteLogsAnswerSchema = z.discriminatedUnion("status", [z.object({
|
|
5747
|
+
status: z.literal("ok"),
|
|
5748
|
+
requests: z.array(RequestSchema),
|
|
5749
|
+
cursor: z.string(),
|
|
5750
|
+
histogram: z.object({
|
|
5751
|
+
start: z.string(),
|
|
5752
|
+
bucketMs: z.number(),
|
|
5753
|
+
buckets: z.array(z.object({
|
|
5754
|
+
error: z.number(),
|
|
5755
|
+
warn: z.number(),
|
|
5756
|
+
info: z.number()
|
|
5757
|
+
}))
|
|
5758
|
+
}),
|
|
5759
|
+
liveBuild: z.string().nullable(),
|
|
5760
|
+
retentionHours: z.number(),
|
|
5761
|
+
truncated: z.boolean()
|
|
5762
|
+
}), z.object({
|
|
5763
|
+
status: z.literal("not-hosted")
|
|
5764
|
+
})]);
|
|
5765
|
+
|
|
5766
|
+
/** A request's level: the worst thing about it, as Val Build filters by. */
|
|
5767
|
+
|
|
5768
|
+
function fetchSiteLogs({
|
|
5769
|
+
since,
|
|
5770
|
+
after,
|
|
5771
|
+
q,
|
|
5772
|
+
levels,
|
|
5773
|
+
limit,
|
|
5774
|
+
live,
|
|
5775
|
+
...options
|
|
5776
|
+
}) {
|
|
5777
|
+
const query = {};
|
|
5778
|
+
if (since !== undefined) query["since"] = since.toISOString();
|
|
5779
|
+
if (after !== undefined) query["after"] = after;
|
|
5780
|
+
if (q !== undefined && q.trim() !== "") query["q"] = q.trim();
|
|
5781
|
+
if (levels !== undefined) query["levels"] = levels.join(",");
|
|
5782
|
+
if (limit !== undefined) query["limit"] = String(limit);
|
|
5783
|
+
if (live === true) query["live"] = "1";
|
|
5784
|
+
return readFromValBuild({
|
|
5785
|
+
...options,
|
|
5786
|
+
resource: "logs",
|
|
5787
|
+
query,
|
|
5788
|
+
schema: SiteLogsAnswerSchema,
|
|
5789
|
+
invalid: "Val Build's answer was not the site's logs."
|
|
5790
|
+
});
|
|
5791
|
+
}
|
|
5792
|
+
|
|
5793
|
+
/** The worst thing about a request: how it ended, its status, its worst line. */
|
|
5794
|
+
function siteLogRequestLevel(request) {
|
|
5795
|
+
if (request.outcome !== "ok" && request.outcome !== "canceled" || request.status !== null && request.status >= 500 || request.lines.some(line => line.level === "error")) {
|
|
5796
|
+
return "error";
|
|
5797
|
+
}
|
|
5798
|
+
if (request.lines.some(line => line.level === "warn")) return "warn";
|
|
5799
|
+
return "info";
|
|
5800
|
+
}
|
|
5801
|
+
|
|
5576
5802
|
const JsFileLookupMapping = [
|
|
5577
5803
|
// NOTE: first one matching will be used
|
|
5578
5804
|
[".cjs.d.ts", [".esm.js", ".mjs.js"]], [".cjs.js", [".esm.js", ".mjs.js"]], [".cjs", [".mjs"]], [".d.ts", [".js", ".esm.js", ".mjs.js"]]];
|
|
@@ -6528,18 +6754,18 @@ function validateMetadata(actualMetadata, expectedMetadata) {
|
|
|
6528
6754
|
* which leaves `files` out: `files.remote` decides how the schemas are built,
|
|
6529
6755
|
* so it is read where `val.config.ts` is, not shared with the client.
|
|
6530
6756
|
*/
|
|
6531
|
-
const ValConfigSchema = z.object({
|
|
6532
|
-
project: z.string().optional(),
|
|
6533
|
-
root: z.string().optional(),
|
|
6534
|
-
files: z.object({
|
|
6535
|
-
remote: z.boolean().optional()
|
|
6757
|
+
const ValConfigSchema = z$1.object({
|
|
6758
|
+
project: z$1.string().optional(),
|
|
6759
|
+
root: z$1.string().optional(),
|
|
6760
|
+
files: z$1.object({
|
|
6761
|
+
remote: z$1.boolean().optional()
|
|
6536
6762
|
}).optional(),
|
|
6537
|
-
gitCommit: z.string().optional(),
|
|
6538
|
-
gitBranch: z.string().optional(),
|
|
6539
|
-
defaultTheme: z.union([z.literal("light"), z.literal("dark")]).optional(),
|
|
6540
|
-
ai: z.object({
|
|
6541
|
-
commitMessages: z.object({
|
|
6542
|
-
disabled: z.boolean().optional()
|
|
6763
|
+
gitCommit: z$1.string().optional(),
|
|
6764
|
+
gitBranch: z$1.string().optional(),
|
|
6765
|
+
defaultTheme: z$1.union([z$1.literal("light"), z$1.literal("dark")]).optional(),
|
|
6766
|
+
ai: z$1.object({
|
|
6767
|
+
commitMessages: z$1.object({
|
|
6768
|
+
disabled: z$1.boolean().optional()
|
|
6543
6769
|
}).optional()
|
|
6544
6770
|
}).optional()
|
|
6545
6771
|
});
|
|
@@ -7102,4 +7328,4 @@ function readCapturedReport(snapshotDir) {
|
|
|
7102
7328
|
return JSON.parse(fs.readFileSync(reportPath, "utf-8"));
|
|
7103
7329
|
}
|
|
7104
7330
|
|
|
7105
|
-
export { DEFAULT_LOGIN_EXPIRES_IN_SECONDS, DEFAULT_LOGIN_HOST, DEFAULT_LOGIN_POLL_INTERVAL_SECONDS, EXTERNAL_RESULT, Service, ValFSHost, ValLoginError, ValModuleLoader, ValSourceFileHandler, awaitValLoginConfirmation, checkRemoteRef, compareWithCapturedReport, createDefaultValFSHost, createFixPatch, createJsonEntryPathMap, createModulePathMap, createService, createValApiRouter, createValServer, currentFixHandlers, defineExternal, downloadFileFromRemote, err, evalValConfigFile, extractFileMetadata, extractImageMetadata, extractJsonValuesEntry, extractVideoMetadata, extractVideoMetadataFromFile, filesOfVideo, filesOfVideosetEntry, findAndEvalValConfigFile, findJsonEntryFilePath, fixHandlers, getCachedRemoteFileDir, getCachedRemoteFilePath, getModulePathRange, getValidationErrorFileRef, handleCheckAllFiles, handleExternalUpload, handleFileMetadata, handleJsonValuesExtractEntry, handleRemoteFileCheck, handleRemoteFileDownload, handleRemoteFileUpload, handleRemoteGalleryFileUpload, handleUniqueFolderCheck, handleVideosetCheckAllFiles, handleVideosetCheckRemote, handleVideosetMetadata, handleVideosetUploadRemote, isExternalResult, ok, patchSourceFile, persistPersonalAccessToken, planJsonValuesEntryExtraction, readCapturedReport, replaySnapshot, safeReadGit, startValLogin, validateMetadata, videosetEntryVideoSchema };
|
|
7331
|
+
export { DEFAULT_LOGIN_EXPIRES_IN_SECONDS, DEFAULT_LOGIN_HOST, DEFAULT_LOGIN_POLL_INTERVAL_SECONDS, EXTERNAL_RESULT, Service, ValFSHost, ValLoginError, ValModuleLoader, ValSourceFileHandler, awaitValLoginConfirmation, checkRemoteRef, compareWithCapturedReport, createDefaultValFSHost, createFixPatch, createJsonEntryPathMap, createModulePathMap, createService, createValApiRouter, createValServer, currentFixHandlers, defineExternal, downloadFileFromRemote, err, evalValConfigFile, extractFileMetadata, extractImageMetadata, extractJsonValuesEntry, extractVideoMetadata, extractVideoMetadataFromFile, fetchSiteErrors, fetchSiteLogs, filesOfVideo, filesOfVideosetEntry, findAndEvalValConfigFile, findJsonEntryFilePath, fixHandlers, getCachedRemoteFileDir, getCachedRemoteFilePath, getModulePathRange, getValidationErrorFileRef, handleCheckAllFiles, handleExternalUpload, handleFileMetadata, handleJsonValuesExtractEntry, handleRemoteFileCheck, handleRemoteFileDownload, handleRemoteFileUpload, handleRemoteGalleryFileUpload, handleUniqueFolderCheck, handleVideosetCheckAllFiles, handleVideosetCheckRemote, handleVideosetMetadata, handleVideosetUploadRemote, isExternalResult, ok, patchSourceFile, persistPersonalAccessToken, planJsonValuesEntryExtraction, readCapturedReport, replaySnapshot, safeReadGit, siteLogRequestLevel, startValLogin, validateMetadata, videosetEntryVideoSchema };
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var inTabFetch = require('../../../dist/inTabFetch-
|
|
5
|
+
var inTabFetch = require('../../../dist/inTabFetch-953d074b.cjs.dev.js');
|
|
6
6
|
var draftReads = require('../../../dist/draftReads-1f256502.cjs.dev.js');
|
|
7
7
|
require('@valbuild/core');
|
|
8
|
-
require('../../../dist/ValOpsMemory-
|
|
8
|
+
require('../../../dist/ValOpsMemory-429bc61c.cjs.dev.js');
|
|
9
9
|
require('zod');
|
|
10
10
|
require('@valbuild/shared/internal');
|
|
11
11
|
require('../../../dist/jsonValuesPatch-88bc661d.cjs.dev.js');
|
|
@@ -14,7 +14,7 @@ require('zod-validation-error');
|
|
|
14
14
|
require('../../../dist/ValPatchStore-b53db740.cjs.dev.js');
|
|
15
15
|
require('@valbuild/core/patch');
|
|
16
16
|
require('image-size');
|
|
17
|
-
require('../../../dist/ValRouterCore-
|
|
17
|
+
require('../../../dist/ValRouterCore-4b44cbe4.cjs.dev.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var inTabFetch = require('../../../dist/inTabFetch-
|
|
5
|
+
var inTabFetch = require('../../../dist/inTabFetch-7cc9afac.cjs.prod.js');
|
|
6
6
|
var draftReads = require('../../../dist/draftReads-27351e97.cjs.prod.js');
|
|
7
7
|
require('@valbuild/core');
|
|
8
|
-
require('../../../dist/ValOpsMemory-
|
|
8
|
+
require('../../../dist/ValOpsMemory-9efeb0ff.cjs.prod.js');
|
|
9
9
|
require('zod');
|
|
10
10
|
require('@valbuild/shared/internal');
|
|
11
11
|
require('../../../dist/jsonValuesPatch-92798812.cjs.prod.js');
|
|
@@ -14,7 +14,7 @@ require('zod-validation-error');
|
|
|
14
14
|
require('../../../dist/ValPatchStore-457b166f.cjs.prod.js');
|
|
15
15
|
require('@valbuild/core/patch');
|
|
16
16
|
require('image-size');
|
|
17
|
-
require('../../../dist/ValRouterCore-
|
|
17
|
+
require('../../../dist/ValRouterCore-ec4c58d2.cjs.prod.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as createInTabVal } from '../../../dist/inTabFetch-
|
|
1
|
+
export { a as createInTabVal } from '../../../dist/inTabFetch-e0ddaec8.esm.js';
|
|
2
2
|
export { s as serverDraftSource } from '../../../dist/draftReads-7f0f0eb3.esm.js';
|
|
3
3
|
import '@valbuild/core';
|
|
4
|
-
import '../../../dist/ValOpsMemory-
|
|
4
|
+
import '../../../dist/ValOpsMemory-26ac24fc.esm.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@valbuild/shared/internal';
|
|
7
7
|
import '../../../dist/jsonValuesPatch-13acc674.esm.js';
|
|
@@ -10,4 +10,4 @@ import 'zod-validation-error';
|
|
|
10
10
|
import '../../../dist/ValPatchStore-9ccc09e7.esm.js';
|
|
11
11
|
import '@valbuild/core/patch';
|
|
12
12
|
import 'image-size';
|
|
13
|
-
import '../../../dist/ValRouterCore-
|
|
13
|
+
import '../../../dist/ValRouterCore-345a2899.esm.js';
|
|
@@ -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-
|
|
40
|
+
} = await Promise.resolve().then(function () { return require('../../dist/createValRuntime-0096508d.cjs.dev.js'); });
|
|
41
41
|
return createValRuntime(valModules, route, opts, config);
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
@@ -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-
|
|
40
|
+
} = await Promise.resolve().then(function () { return require('../../dist/createValRuntime-53bfd9b1.cjs.prod.js'); });
|
|
41
41
|
return createValRuntime(valModules, route, opts, config);
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
@@ -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-
|
|
36
|
+
} = await import('../../dist/createValRuntime-3eb37414.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.
|
|
40
|
+
"version": "0.158.1",
|
|
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/core": "0.
|
|
55
|
-
"@valbuild/
|
|
56
|
-
"@valbuild/
|
|
54
|
+
"@valbuild/core": "0.158.0",
|
|
55
|
+
"@valbuild/shared": "0.158.0",
|
|
56
|
+
"@valbuild/ui": "0.158.1"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": "^20.19.0 || >=22"
|