@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.
Files changed (36) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/browser/dist/valbuild-server-browser.cjs.dev.js +3 -3
  3. package/browser/dist/valbuild-server-browser.cjs.prod.js +3 -3
  4. package/browser/dist/valbuild-server-browser.esm.js +3 -3
  5. package/dist/{ValOpsMemory-e534f2ff.esm.js → ValOpsMemory-26ac24fc.esm.js} +2 -2
  6. package/dist/{ValOpsMemory-56cd8c26.cjs.dev.js → ValOpsMemory-429bc61c.cjs.dev.js} +2 -1
  7. package/dist/{ValOpsMemory-9470f349.cjs.prod.js → ValOpsMemory-9efeb0ff.cjs.prod.js} +2 -1
  8. package/dist/{ValRouterCore-f7d6394e.esm.js → ValRouterCore-345a2899.esm.js} +78 -1
  9. package/dist/{ValRouterCore-adb69698.cjs.dev.js → ValRouterCore-4b44cbe4.cjs.dev.js} +77 -0
  10. package/dist/{ValRouterCore-65bb6323.cjs.prod.js → ValRouterCore-ec4c58d2.cjs.prod.js} +77 -0
  11. package/dist/{createValRuntime-0de65330.cjs.dev.js → createValRuntime-0096508d.cjs.dev.js} +2 -2
  12. package/dist/{createValRuntime-ff609f66.esm.js → createValRuntime-3eb37414.esm.js} +2 -2
  13. package/dist/{createValRuntime-aff8e536.cjs.prod.js → createValRuntime-53bfd9b1.cjs.prod.js} +2 -2
  14. package/dist/declarations/src/index.d.ts +4 -0
  15. package/dist/declarations/src/siteErrors.d.ts +90 -0
  16. package/dist/declarations/src/siteLogs.d.ts +136 -0
  17. package/dist/declarations/src/valBuildRead.d.ts +44 -0
  18. package/dist/{inTabFetch-b1001caf.cjs.prod.js → inTabFetch-7cc9afac.cjs.prod.js} +2 -2
  19. package/dist/{inTabFetch-7cbaa9de.cjs.dev.js → inTabFetch-953d074b.cjs.dev.js} +2 -2
  20. package/dist/{inTabFetch-8278c58e.esm.js → inTabFetch-e0ddaec8.esm.js} +2 -2
  21. package/dist/{publishKit-9b32f7f6.cjs.prod.js → publishKit-036459db.cjs.prod.js} +1 -1
  22. package/dist/{publishKit-a90d22ad.cjs.dev.js → publishKit-0413c918.cjs.dev.js} +1 -1
  23. package/dist/{publishKit-bbca36c0.esm.js → publishKit-8447bdec.esm.js} +1 -1
  24. package/dist/{valRuntime-9ac56da5.cjs.prod.js → valRuntime-02944d4c.cjs.prod.js} +3 -3
  25. package/dist/{valRuntime-26ed874d.esm.js → valRuntime-433321f5.esm.js} +3 -3
  26. package/dist/{valRuntime-3e709d67.cjs.dev.js → valRuntime-9b12c6c0.cjs.dev.js} +3 -3
  27. package/dist/valbuild-server.cjs.dev.js +234 -5
  28. package/dist/valbuild-server.cjs.prod.js +234 -5
  29. package/dist/valbuild-server.esm.js +244 -18
  30. package/internal/browser/dist/valbuild-server-internal-browser.cjs.dev.js +3 -3
  31. package/internal/browser/dist/valbuild-server-internal-browser.cjs.prod.js +3 -3
  32. package/internal/browser/dist/valbuild-server-internal-browser.esm.js +3 -3
  33. package/internal/dist/valbuild-server-internal.cjs.dev.js +1 -1
  34. package/internal/dist/valbuild-server-internal.cjs.prod.js +1 -1
  35. package/internal/dist/valbuild-server-internal.esm.js +1 -1
  36. package/package.json +4 -4
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var valRuntime = require('./valRuntime-9ac56da5.cjs.prod.js');
3
+ var valRuntime = require('./valRuntime-02944d4c.cjs.prod.js');
4
4
  require('@valbuild/core');
5
- require('./ValOpsMemory-9470f349.cjs.prod.js');
5
+ require('./ValOpsMemory-9efeb0ff.cjs.prod.js');
6
6
  require('zod');
7
7
  require('@valbuild/shared/internal');
8
8
  require('./jsonValuesPatch-92798812.cjs.prod.js');
@@ -10,6 +10,10 @@ export { valRuntime, type ValRuntime } from "./valRuntime.js";
10
10
  export { resolveRemoteFileAuth } from "./valServerConfig.js";
11
11
  export { APP_MODE_REQUIRES_REMOTE_FILES } from "./valServerConfig.js";
12
12
  export type { RemoteFileAuth, ResolveRemoteFileAuthResult, } from "./valServerConfig.js";
13
+ export { fetchSiteErrors } from "./siteErrors.js";
14
+ export type { FetchSiteErrorsOptions, FetchSiteErrorsResult, SiteError, SiteErrorsAnswer, SiteErrorsFailureReason, } from "./siteErrors.js";
15
+ export { fetchSiteLogs, siteLogRequestLevel } from "./siteLogs.js";
16
+ export type { FetchSiteLogsOptions, FetchSiteLogsResult, SiteLogLine, SiteLogRequest, SiteLogRequestLevel, SiteLogsAnswer, SiteLogsFailureReason, } from "./siteLogs.js";
13
17
  export { ValModuleLoader } from "./ValModuleLoader.js";
14
18
  export { getCompilerOptions } from "./getCompilerOptions.js";
15
19
  export { ValSourceFileHandler } from "./ValSourceFileHandler.js";
@@ -0,0 +1,90 @@
1
+ import { z } from "zod";
2
+ import type { RemoteFileAuth } from "./valServerConfig.js";
3
+ import { type ValBuildReadFailureReason, type ValBuildReadResult } from "./valBuildRead.js";
4
+ /**
5
+ * A hosted site's recent errors, from Val Build:
6
+ * `GET {valContentUrl}/v1/{org}/{project}/site-errors`. What `val errors` and
7
+ * the MCP tool `get_site_errors` read. The Studio reads the same answer through
8
+ * its admin proxy, as a web component served by Val Build.
9
+ *
10
+ * Errors are kept only for sites Val Build hosts: the platform's tail is what
11
+ * sees them. A site served anywhere else answers `not-hosted`, which is said
12
+ * rather than shown as an empty list, so "no errors" never means "nobody is
13
+ * watching". See `docs/site-errors.md` in valbuild/home.
14
+ *
15
+ * Either credential `resolveRemoteFileAuth` gives works: the project's API key
16
+ * or a developer's `val login` token.
17
+ */
18
+ declare const SiteErrorSchema: z.ZodObject<{
19
+ fingerprint: z.ZodString;
20
+ kind: z.ZodEnum<{
21
+ status: "status";
22
+ limit: "limit";
23
+ exception: "exception";
24
+ console: "console";
25
+ }>;
26
+ level: z.ZodEnum<{
27
+ error: "error";
28
+ warn: "warn";
29
+ }>;
30
+ message: z.ZodString;
31
+ stack: z.ZodNullable<z.ZodString>;
32
+ path: z.ZodNullable<z.ZodString>;
33
+ method: z.ZodNullable<z.ZodString>;
34
+ status: z.ZodNullable<z.ZodNumber>;
35
+ count: z.ZodNumber;
36
+ firstSeen: z.ZodString;
37
+ lastSeen: z.ZodString;
38
+ firstBuild: z.ZodNullable<z.ZodString>;
39
+ lastBuild: z.ZodNullable<z.ZodString>;
40
+ proposal: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$strip>;
42
+ export type SiteError = z.infer<typeof SiteErrorSchema>;
43
+ declare const SiteErrorsAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
44
+ status: z.ZodLiteral<"ok">;
45
+ errors: z.ZodArray<z.ZodObject<{
46
+ fingerprint: z.ZodString;
47
+ kind: z.ZodEnum<{
48
+ status: "status";
49
+ limit: "limit";
50
+ exception: "exception";
51
+ console: "console";
52
+ }>;
53
+ level: z.ZodEnum<{
54
+ error: "error";
55
+ warn: "warn";
56
+ }>;
57
+ message: z.ZodString;
58
+ stack: z.ZodNullable<z.ZodString>;
59
+ path: z.ZodNullable<z.ZodString>;
60
+ method: z.ZodNullable<z.ZodString>;
61
+ status: z.ZodNullable<z.ZodNumber>;
62
+ count: z.ZodNumber;
63
+ firstSeen: z.ZodString;
64
+ lastSeen: z.ZodString;
65
+ firstBuild: z.ZodNullable<z.ZodString>;
66
+ lastBuild: z.ZodNullable<z.ZodString>;
67
+ proposal: z.ZodNullable<z.ZodString>;
68
+ }, z.core.$strip>>;
69
+ retentionDays: z.ZodNumber;
70
+ liveBuild: z.ZodNullable<z.ZodString>;
71
+ dropped: z.ZodBoolean;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ status: z.ZodLiteral<"not-hosted">;
74
+ }, z.core.$strip>], "status">;
75
+ export type SiteErrorsAnswer = z.infer<typeof SiteErrorsAnswerSchema>;
76
+ export type SiteErrorsFailureReason = ValBuildReadFailureReason;
77
+ export type FetchSiteErrorsResult = ValBuildReadResult<SiteErrorsAnswer>;
78
+ export type FetchSiteErrorsOptions = {
79
+ /** `valContentUrl`, e.g. `https://content.val.build`. */
80
+ contentUrl: string;
81
+ /** `org/name`, as `project` in val.config. */
82
+ project: string;
83
+ credential: RemoteFileAuth;
84
+ /** 1–200. Val Build's default when absent. */
85
+ limit?: number;
86
+ fetchImpl?: typeof fetch;
87
+ timeoutMs?: number;
88
+ };
89
+ export declare function fetchSiteErrors({ limit, ...options }: FetchSiteErrorsOptions): Promise<FetchSiteErrorsResult>;
90
+ export {};
@@ -0,0 +1,136 @@
1
+ import { z } from "zod";
2
+ import type { RemoteFileAuth } from "./valServerConfig.js";
3
+ import { type ValBuildReadFailureReason, type ValBuildReadResult } from "./valBuildRead.js";
4
+ /**
5
+ * A hosted site's last hour of requests, from Val Build:
6
+ * `GET {valContentUrl}/v1/{org}/{project}/logs`. What `val logs` and the MCP
7
+ * tool `get_logs` read. The Studio reads the same answer through its admin
8
+ * proxy, as a web component served by Val Build.
9
+ *
10
+ * Each request is what the site's server did with one visit: where, how it
11
+ * ended, how long it took, and every line it printed. Kept for an hour, for
12
+ * sites Val Build hosts; a site served anywhere else answers `not-hosted`.
13
+ * `after` asks for what arrived since an earlier answer's `cursor`, and `live`
14
+ * tells Val Build someone is watching, so it gathers new requests every few
15
+ * seconds instead of once a minute. See `docs/site-errors.md` in valbuild/home.
16
+ */
17
+ declare const LineSchema: z.ZodObject<{
18
+ time: z.ZodString;
19
+ level: z.ZodEnum<{
20
+ error: "error";
21
+ warn: "warn";
22
+ info: "info";
23
+ debug: "debug";
24
+ }>;
25
+ message: z.ZodString;
26
+ stack: z.ZodNullable<z.ZodString>;
27
+ }, z.core.$strip>;
28
+ declare const RequestSchema: z.ZodObject<{
29
+ id: z.ZodString;
30
+ time: z.ZodString;
31
+ method: z.ZodNullable<z.ZodString>;
32
+ path: z.ZodNullable<z.ZodString>;
33
+ status: z.ZodNullable<z.ZodNumber>;
34
+ durationMs: z.ZodNullable<z.ZodNumber>;
35
+ cpuMs: z.ZodNullable<z.ZodNumber>;
36
+ outcome: z.ZodEnum<{
37
+ ok: "ok";
38
+ memory: "memory";
39
+ exception: "exception";
40
+ cpu: "cpu";
41
+ canceled: "canceled";
42
+ }>;
43
+ build: z.ZodNullable<z.ZodString>;
44
+ proposal: z.ZodNullable<z.ZodString>;
45
+ lines: z.ZodArray<z.ZodObject<{
46
+ time: z.ZodString;
47
+ level: z.ZodEnum<{
48
+ error: "error";
49
+ warn: "warn";
50
+ info: "info";
51
+ debug: "debug";
52
+ }>;
53
+ message: z.ZodString;
54
+ stack: z.ZodNullable<z.ZodString>;
55
+ }, z.core.$strip>>;
56
+ errorFingerprint: z.ZodNullable<z.ZodString>;
57
+ }, z.core.$strip>;
58
+ export type SiteLogRequest = z.infer<typeof RequestSchema>;
59
+ export type SiteLogLine = z.infer<typeof LineSchema>;
60
+ declare const SiteLogsAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
61
+ status: z.ZodLiteral<"ok">;
62
+ requests: z.ZodArray<z.ZodObject<{
63
+ id: z.ZodString;
64
+ time: z.ZodString;
65
+ method: z.ZodNullable<z.ZodString>;
66
+ path: z.ZodNullable<z.ZodString>;
67
+ status: z.ZodNullable<z.ZodNumber>;
68
+ durationMs: z.ZodNullable<z.ZodNumber>;
69
+ cpuMs: z.ZodNullable<z.ZodNumber>;
70
+ outcome: z.ZodEnum<{
71
+ ok: "ok";
72
+ memory: "memory";
73
+ exception: "exception";
74
+ cpu: "cpu";
75
+ canceled: "canceled";
76
+ }>;
77
+ build: z.ZodNullable<z.ZodString>;
78
+ proposal: z.ZodNullable<z.ZodString>;
79
+ lines: z.ZodArray<z.ZodObject<{
80
+ time: z.ZodString;
81
+ level: z.ZodEnum<{
82
+ error: "error";
83
+ warn: "warn";
84
+ info: "info";
85
+ debug: "debug";
86
+ }>;
87
+ message: z.ZodString;
88
+ stack: z.ZodNullable<z.ZodString>;
89
+ }, z.core.$strip>>;
90
+ errorFingerprint: z.ZodNullable<z.ZodString>;
91
+ }, z.core.$strip>>;
92
+ cursor: z.ZodString;
93
+ histogram: z.ZodObject<{
94
+ start: z.ZodString;
95
+ bucketMs: z.ZodNumber;
96
+ buckets: z.ZodArray<z.ZodObject<{
97
+ error: z.ZodNumber;
98
+ warn: z.ZodNumber;
99
+ info: z.ZodNumber;
100
+ }, z.core.$strip>>;
101
+ }, z.core.$strip>;
102
+ liveBuild: z.ZodNullable<z.ZodString>;
103
+ retentionHours: z.ZodNumber;
104
+ truncated: z.ZodBoolean;
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ status: z.ZodLiteral<"not-hosted">;
107
+ }, z.core.$strip>], "status">;
108
+ export type SiteLogsAnswer = z.infer<typeof SiteLogsAnswerSchema>;
109
+ export type SiteLogsFailureReason = ValBuildReadFailureReason;
110
+ export type FetchSiteLogsResult = ValBuildReadResult<SiteLogsAnswer>;
111
+ /** A request's level: the worst thing about it, as Val Build filters by. */
112
+ export type SiteLogRequestLevel = "error" | "warn" | "info";
113
+ export type FetchSiteLogsOptions = {
114
+ /** `valContentUrl`, e.g. `https://content.val.build`. */
115
+ contentUrl: string;
116
+ /** `org/name`, as `project` in val.config. */
117
+ project: string;
118
+ credential: RemoteFileAuth;
119
+ /** Requests that arrived at or after this time. An hour back at most. */
120
+ since?: Date;
121
+ /** Only what arrived after an earlier answer's `cursor`. */
122
+ after?: string;
123
+ /** Val Build's search: words, and `status:5xx`, `path:/blog/*`, `method:`, `level:`, `build:live`, `is:stopped`. */
124
+ q?: string;
125
+ levels?: readonly SiteLogRequestLevel[];
126
+ /** 1–1000. 200 when absent. */
127
+ limit?: number;
128
+ /** Someone is watching: gather new requests every few seconds for the next 30. */
129
+ live?: boolean;
130
+ fetchImpl?: typeof fetch;
131
+ timeoutMs?: number;
132
+ };
133
+ export declare function fetchSiteLogs({ since, after, q, levels, limit, live, ...options }: FetchSiteLogsOptions): Promise<FetchSiteLogsResult>;
134
+ /** The worst thing about a request: how it ended, its status, its worst line. */
135
+ export declare function siteLogRequestLevel(request: Pick<SiteLogRequest, "outcome" | "status" | "lines">): SiteLogRequestLevel;
136
+ export {};
@@ -0,0 +1,44 @@
1
+ import type { z } from "zod";
2
+ import type { RemoteFileAuth } from "./valServerConfig.js";
3
+ /**
4
+ * One GET to Val Build's `/v1/{org}/{project}/…` with a developer's `val login`
5
+ * token or the project's API key, read against a schema: what `fetchSiteErrors`
6
+ * and `fetchSiteLogs` share, so both say the same things about the same
7
+ * failures.
8
+ */
9
+ export type ValBuildReadFailureReason =
10
+ /** The credential was refused: a `val login` that ran out, or a wrong API key. */
11
+ "unauthenticated"
12
+ /** The credential is good, and does not reach this project. */
13
+ | "forbidden"
14
+ /** No such project, as `project` in val.config names it. */
15
+ | "not-found"
16
+ /** Val Build answered that it could not read it just now. */
17
+ | "unavailable"
18
+ /** Val Build did not answer at all. */
19
+ | "unreachable"
20
+ /** Val Build answered with something that is not the answer. */
21
+ | "invalid-response";
22
+ export type ValBuildReadResult<T> = {
23
+ status: "ok";
24
+ answer: T;
25
+ } | {
26
+ status: "error";
27
+ reason: ValBuildReadFailureReason;
28
+ /** Val Build's own sentence where it gave one, for Details. */
29
+ message: string;
30
+ };
31
+ export declare function readFromValBuild<S extends z.ZodTypeAny>({ contentUrl, project, resource, query, credential, schema, invalid, fetchImpl, timeoutMs, }: {
32
+ contentUrl: string;
33
+ /** `org/name`, as `project` in val.config. */
34
+ project: string;
35
+ /** What follows the project: `site-errors`, `logs`. */
36
+ resource: string;
37
+ query: Record<string, string>;
38
+ credential: RemoteFileAuth;
39
+ schema: S;
40
+ /** What to say when the answer is not one. */
41
+ invalid: string;
42
+ fetchImpl?: typeof fetch;
43
+ timeoutMs?: number;
44
+ }): Promise<ValBuildReadResult<z.infer<S>>>;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var core = require('@valbuild/core');
4
- var ValOpsMemory = require('./ValOpsMemory-9470f349.cjs.prod.js');
5
- var ValRouterCore = require('./ValRouterCore-65bb6323.cjs.prod.js');
4
+ var ValOpsMemory = require('./ValOpsMemory-9efeb0ff.cjs.prod.js');
5
+ var ValRouterCore = require('./ValRouterCore-ec4c58d2.cjs.prod.js');
6
6
 
7
7
  const NO_SESSIONS = "Val: sessions are not available here -- this server runs in the browser, " + "has no secret to sign them with, and serves without authenticating.";
8
8
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var core = require('@valbuild/core');
4
- var ValOpsMemory = require('./ValOpsMemory-56cd8c26.cjs.dev.js');
5
- var ValRouterCore = require('./ValRouterCore-adb69698.cjs.dev.js');
4
+ var ValOpsMemory = require('./ValOpsMemory-429bc61c.cjs.dev.js');
5
+ var ValRouterCore = require('./ValRouterCore-4b44cbe4.cjs.dev.js');
6
6
 
7
7
  const NO_SESSIONS = "Val: sessions are not available here -- this server runs in the browser, " + "has no secret to sign them with, and serves without authenticating.";
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_CONTENT_HOST } from '@valbuild/core';
2
- import { o as ValOpsMemory, L as bytesToBase64, V as ValServer } from './ValOpsMemory-e534f2ff.esm.js';
3
- import { c as createValRequestHandler } from './ValRouterCore-f7d6394e.esm.js';
2
+ import { o as ValOpsMemory, N as bytesToBase64, V as ValServer } from './ValOpsMemory-26ac24fc.esm.js';
3
+ import { c as createValRequestHandler } from './ValRouterCore-345a2899.esm.js';
4
4
 
5
5
  const NO_SESSIONS = "Val: sessions are not available here -- this server runs in the browser, " + "has no secret to sign them with, and serves without authenticating.";
6
6
 
@@ -5,7 +5,7 @@ var fp = require('@valbuild/core/fp');
5
5
  var merge = require('./merge-5a8fc685.cjs.prod.js');
6
6
  var jsonValuesModule = require('./jsonValuesModule-6cf73937.cjs.prod.js');
7
7
  var jsonValuesPatch = require('./jsonValuesPatch-92798812.cjs.prod.js');
8
- var ValOpsMemory = require('./ValOpsMemory-9470f349.cjs.prod.js');
8
+ var ValOpsMemory = require('./ValOpsMemory-9efeb0ff.cjs.prod.js');
9
9
  require('@valbuild/core/patch');
10
10
  require('@valbuild/shared/internal');
11
11
  require('path');
@@ -5,7 +5,7 @@ var fp = require('@valbuild/core/fp');
5
5
  var merge = require('./merge-a21a9c78.cjs.dev.js');
6
6
  var jsonValuesModule = require('./jsonValuesModule-ed68a9de.cjs.dev.js');
7
7
  var jsonValuesPatch = require('./jsonValuesPatch-88bc661d.cjs.dev.js');
8
- var ValOpsMemory = require('./ValOpsMemory-56cd8c26.cjs.dev.js');
8
+ var ValOpsMemory = require('./ValOpsMemory-429bc61c.cjs.dev.js');
9
9
  require('@valbuild/core/patch');
10
10
  require('@valbuild/shared/internal');
11
11
  require('path');
@@ -5,7 +5,7 @@ export { i as insertValJsonEntry, r as removeValJsonEntry } from './merge-eca8ec
5
5
  import { a as analyzeValModule, c as analyzeJsonValuesEntries } from './jsonValuesModule-12fc4bb0.esm.js';
6
6
  export { c as analyzeJsonValuesEntries, a as analyzeValModule, i as evaluateModuleSource, j as jsonValuesRecordKeys } from './jsonValuesModule-12fc4bb0.esm.js';
7
7
  import { p as posixPath } from './jsonValuesPatch-13acc674.esm.js';
8
- import { N as bytesToUtf8 } from './ValOpsMemory-e534f2ff.esm.js';
8
+ import { O as bytesToUtf8 } from './ValOpsMemory-26ac24fc.esm.js';
9
9
  import '@valbuild/core/patch';
10
10
  import '@valbuild/shared/internal';
11
11
  import 'path';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var core = require('@valbuild/core');
4
- var ValOpsMemory = require('./ValOpsMemory-9470f349.cjs.prod.js');
4
+ var ValOpsMemory = require('./ValOpsMemory-9efeb0ff.cjs.prod.js');
5
5
  var path = require('path');
6
6
  var ts = require('typescript');
7
7
  var z = require('zod');
@@ -1541,7 +1541,7 @@ function createFsSketchpadStore(rootDir, now = () => new Date()) {
1541
1541
  * as a bundler does.
1542
1542
  */
1543
1543
  function loadTypeScriptKit() {
1544
- return Promise.resolve().then(function () { return require('./publishKit-9b32f7f6.cjs.prod.js'); });
1544
+ return Promise.resolve().then(function () { return require('./publishKit-036459db.cjs.prod.js'); });
1545
1545
  }
1546
1546
 
1547
1547
  /** Serializes a schema, or gives up quietly — serialization errors are reported elsewhere. */
@@ -3221,7 +3221,7 @@ async function stagedModuleSources(files) {
3221
3221
  parseValFile,
3222
3222
  analyzeValModule,
3223
3223
  evaluateModuleSource
3224
- } = await Promise.resolve().then(function () { return require('./publishKit-9b32f7f6.cjs.prod.js'); });
3224
+ } = await Promise.resolve().then(function () { return require('./publishKit-036459db.cjs.prod.js'); });
3225
3225
  const sources = {};
3226
3226
  for (const {
3227
3227
  path,
@@ -1,5 +1,5 @@
1
1
  import { Internal, 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 fetchFresh, I as DEFAULT_ANALYTICS_INGEST_URL, o as ValOpsMemory, J as sessionAuth, K as isHttpOps } from './ValOpsMemory-e534f2ff.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-26ac24fc.esm.js';
3
3
  import path from 'path';
4
4
  import ts from 'typescript';
5
5
  import { z } from 'zod';
@@ -1513,7 +1513,7 @@ function createFsSketchpadStore(rootDir, now = () => new Date()) {
1513
1513
  * as a bundler does.
1514
1514
  */
1515
1515
  function loadTypeScriptKit() {
1516
- return import('./publishKit-bbca36c0.esm.js');
1516
+ return import('./publishKit-8447bdec.esm.js');
1517
1517
  }
1518
1518
 
1519
1519
  /** Serializes a schema, or gives up quietly — serialization errors are reported elsewhere. */
@@ -3193,7 +3193,7 @@ async function stagedModuleSources(files) {
3193
3193
  parseValFile,
3194
3194
  analyzeValModule,
3195
3195
  evaluateModuleSource
3196
- } = await import('./publishKit-bbca36c0.esm.js');
3196
+ } = await import('./publishKit-8447bdec.esm.js');
3197
3197
  const sources = {};
3198
3198
  for (const {
3199
3199
  path,
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var core = require('@valbuild/core');
4
- var ValOpsMemory = require('./ValOpsMemory-56cd8c26.cjs.dev.js');
4
+ var ValOpsMemory = require('./ValOpsMemory-429bc61c.cjs.dev.js');
5
5
  var path = require('path');
6
6
  var ts = require('typescript');
7
7
  var z = require('zod');
@@ -1541,7 +1541,7 @@ function createFsSketchpadStore(rootDir, now = () => new Date()) {
1541
1541
  * as a bundler does.
1542
1542
  */
1543
1543
  function loadTypeScriptKit() {
1544
- return Promise.resolve().then(function () { return require('./publishKit-a90d22ad.cjs.dev.js'); });
1544
+ return Promise.resolve().then(function () { return require('./publishKit-0413c918.cjs.dev.js'); });
1545
1545
  }
1546
1546
 
1547
1547
  /** Serializes a schema, or gives up quietly — serialization errors are reported elsewhere. */
@@ -3221,7 +3221,7 @@ async function stagedModuleSources(files) {
3221
3221
  parseValFile,
3222
3222
  analyzeValModule,
3223
3223
  evaluateModuleSource
3224
- } = await Promise.resolve().then(function () { return require('./publishKit-a90d22ad.cjs.dev.js'); });
3224
+ } = await Promise.resolve().then(function () { return require('./publishKit-0413c918.cjs.dev.js'); });
3225
3225
  const sources = {};
3226
3226
  for (const {
3227
3227
  path,