@sjcx/vorma 0.0.0-pre.2 → 0.0.0-pre.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.
Files changed (135) hide show
  1. package/dist/build/assemble-artifacts.d.ts +1 -1
  2. package/dist/build/bundle-client.d.ts +1 -1
  3. package/dist/build/cli.js +27 -37
  4. package/dist/build/compile-application.d.ts +2 -2
  5. package/dist/build/development-artifacts.d.ts +1 -1
  6. package/dist/build/development-build.d.ts +3 -6
  7. package/dist/build/development-work.d.ts +2 -3
  8. package/dist/build/generate-application.d.ts +2 -2
  9. package/dist/build/index.d.ts +2 -3
  10. package/dist/build/index.js +1 -1
  11. package/dist/build/inspect-projects.d.ts +3 -3
  12. package/dist/build/load-config.d.ts +0 -2
  13. package/dist/build/publish-artifacts.d.ts +1 -4
  14. package/dist/build/render-client-transport.d.ts +1 -1
  15. package/dist/build/render-server-generated.d.ts +1 -12
  16. package/dist/build/render-types.d.ts +1 -1
  17. package/dist/build/resolve-config.d.ts +2 -4
  18. package/dist/build/source-layout.d.ts +1 -1
  19. package/dist/{build-DcP5_DUV.js → build-sHSh5zaX.js} +67 -282
  20. package/package.json +5 -36
  21. package/dist/build/compile-server.d.ts +0 -42
  22. package/dist/client/assembly.d.ts +0 -40
  23. package/dist/client/browser-http-client.d.ts +0 -10
  24. package/dist/client/client-loaders.d.ts +0 -93
  25. package/dist/client/commit.d.ts +0 -41
  26. package/dist/client/contracts.d.ts +0 -192
  27. package/dist/client/core.d.ts +0 -45
  28. package/dist/client/development.d.ts +0 -16
  29. package/dist/client/document-recovery.d.ts +0 -4
  30. package/dist/client/endpoints.d.ts +0 -54
  31. package/dist/client/errors.d.ts +0 -87
  32. package/dist/client/freshness.d.ts +0 -51
  33. package/dist/client/head.d.ts +0 -14
  34. package/dist/client/history.d.ts +0 -25
  35. package/dist/client/index.d.ts +0 -80
  36. package/dist/client/index.js +0 -150
  37. package/dist/client/links.d.ts +0 -48
  38. package/dist/client/materialize.d.ts +0 -21
  39. package/dist/client/modules.d.ts +0 -2
  40. package/dist/client/navigation.d.ts +0 -47
  41. package/dist/client/payload.d.ts +0 -54
  42. package/dist/client/prefetch.d.ts +0 -28
  43. package/dist/client/prepare.d.ts +0 -47
  44. package/dist/client/projections.d.ts +0 -26
  45. package/dist/client/queries.d.ts +0 -33
  46. package/dist/client/react/application.d.ts +0 -87
  47. package/dist/client/react/hooks.d.ts +0 -36
  48. package/dist/client/react/index.d.ts +0 -5
  49. package/dist/client/react/index.js +0 -3237
  50. package/dist/client/react/link.d.ts +0 -27
  51. package/dist/client/react/view.d.ts +0 -86
  52. package/dist/client/request.d.ts +0 -16
  53. package/dist/client/route-context.d.ts +0 -31
  54. package/dist/client/route-matching.d.ts +0 -22
  55. package/dist/client/route-synchronization.d.ts +0 -30
  56. package/dist/client/route-url.d.ts +0 -5
  57. package/dist/client/runtime.d.ts +0 -82
  58. package/dist/client/scroll.d.ts +0 -16
  59. package/dist/client/services.d.ts +0 -34
  60. package/dist/client/state.d.ts +0 -102
  61. package/dist/client/static-assets.d.ts +0 -3
  62. package/dist/client/stylesheets.d.ts +0 -7
  63. package/dist/client/transport-type-entries.d.ts +0 -2
  64. package/dist/client/types.d.ts +0 -152
  65. package/dist/client/view-definition.d.ts +0 -24
  66. package/dist/client/work-indicator.d.ts +0 -18
  67. package/dist/compile-Me8EOyMK.js +0 -870
  68. package/dist/development-B_rxuwY7.js +0 -128
  69. package/dist/hash-set-BPx3iXec.js +0 -141
  70. package/dist/href-Cqyax8Y0.js +0 -357
  71. package/dist/materialize-DZ7VSLFk.js +0 -739
  72. package/dist/metadata-BoPKo-G2.js +0 -32
  73. package/dist/primitives/tasks/index.d.ts +0 -1
  74. package/dist/primitives/tasks/index.js +0 -1
  75. package/dist/route-context-CtY_9U_W.js +0 -559
  76. package/dist/route-matching-D_uSG2P9.js +0 -33
  77. package/dist/search-parse-0f7oqVsG.js +0 -375
  78. package/dist/server/config/index.d.ts +0 -36
  79. package/dist/server/config/index.js +0 -30
  80. package/dist/server/development/metadata.d.ts +0 -11
  81. package/dist/server/document.d.ts +0 -37
  82. package/dist/server/form-data.d.ts +0 -21
  83. package/dist/server/graph/compile.d.ts +0 -118
  84. package/dist/server/graph/declarations.d.ts +0 -117
  85. package/dist/server/graph/literal-error-tag.d.ts +0 -14
  86. package/dist/server/graph/pattern-conflicts.d.ts +0 -36
  87. package/dist/server/graph/search-schema.d.ts +0 -13
  88. package/dist/server/graph/transport-schema.d.ts +0 -11
  89. package/dist/server/index.d.ts +0 -310
  90. package/dist/server/index.js +0 -2311
  91. package/dist/server/public-assets.d.ts +0 -18
  92. package/dist/server/runtime/application.d.ts +0 -15
  93. package/dist/server/runtime/assets.d.ts +0 -15
  94. package/dist/server/runtime/context.d.ts +0 -96
  95. package/dist/server/runtime/domain-errors.d.ts +0 -11
  96. package/dist/server/runtime/effects.d.ts +0 -83
  97. package/dist/server/runtime/execute.d.ts +0 -13
  98. package/dist/server/runtime/finalize.d.ts +0 -44
  99. package/dist/server/runtime/handler.d.ts +0 -106
  100. package/dist/server/runtime/head.d.ts +0 -22
  101. package/dist/server/runtime/payload.d.ts +0 -50
  102. package/dist/server/runtime/pipeline.d.ts +0 -27
  103. package/dist/server/runtime/plan.d.ts +0 -98
  104. package/dist/server/runtime/render-document.d.ts +0 -16
  105. package/dist/server/runtime/startup-error.d.ts +0 -11
  106. package/dist/server/runtime/transport-type-entries.d.ts +0 -2
  107. package/dist/server/runtime/vercel-deployment.d.ts +0 -2
  108. package/dist/server/url-pathname.d.ts +0 -13
  109. package/dist/static-assets-BrH3O0M8.js +0 -199
  110. package/dist/universal/generated-types.d.ts +0 -9
  111. package/dist/universal/href.d.ts +0 -17
  112. package/dist/universal/http-method.d.ts +0 -4
  113. package/dist/universal/json-transport.d.ts +0 -14
  114. package/dist/universal/null-prototype-record.d.ts +0 -7
  115. package/dist/universal/path-wire.d.ts +0 -71
  116. package/dist/universal/pattern-language.d.ts +0 -4
  117. package/dist/universal/protocol-schemas.d.ts +0 -99
  118. package/dist/universal/protocol.d.ts +0 -162
  119. package/dist/universal/search-grammar.d.ts +0 -7
  120. package/dist/universal/search-parse.d.ts +0 -22
  121. package/dist/universal/search-serialize.d.ts +0 -16
  122. package/dist/universal/search-shape.d.ts +0 -32
  123. package/dist/universal/static-assets.d.ts +0 -2
  124. package/dist/universal/transport-types/big-decimal.d.ts +0 -13
  125. package/dist/universal/transport-types/chunk.d.ts +0 -8
  126. package/dist/universal/transport-types/date-time-utc.d.ts +0 -13
  127. package/dist/universal/transport-types/date-time-zoned.d.ts +0 -13
  128. package/dist/universal/transport-types/duration.d.ts +0 -13
  129. package/dist/universal/transport-types/hash-map.d.ts +0 -8
  130. package/dist/universal/transport-types/hash-set.d.ts +0 -8
  131. package/dist/universal/transport-types/option.d.ts +0 -10
  132. package/dist/universal/transport-types/redacted.d.ts +0 -9
  133. package/dist/universal/value-transport.d.ts +0 -117
  134. package/dist/value-transport-Bst4Hk-n.js +0 -864
  135. /package/dist/{universal → build}/content-digest.d.ts +0 -0
@@ -1,5 +1,5 @@
1
+ import { type ProductionBuildMetadata } from "@vorma/protocol";
1
2
  import { Effect } from "effect";
2
- import { type ProductionBuildMetadata } from "../universal/protocol.ts";
3
3
  import type { ClientBundle } from "./bundle-client.ts";
4
4
  import type { ApplicationGeneration } from "./generate-application.ts";
5
5
  export type ApplicationArtifact = {
@@ -1,7 +1,7 @@
1
+ import { type ClientModule, type ClientViewModule } from "@vorma/protocol";
1
2
  import { Effect } from "effect";
2
3
  import * as FileSystem from "effect/FileSystem";
3
4
  import * as Path from "effect/Path";
4
- import { type ClientModule, type ClientViewModule } from "../universal/protocol.ts";
5
5
  import type { ApplicationGeneration } from "./generate-application.ts";
6
6
  export type ClientBundleIssue = {
7
7
  readonly _tag: "ClientBundleIssue";
package/dist/build/cli.js CHANGED
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
- import { C as encodeCanonicalJson, S as projectBrowserContracts, _ as createClientPublicUrlPlugin, a as acquireOutputOwnership, b as CLIENT_SHARED_PACKAGES, c as writeAndCheckApplicationGeneration, d as readTypescriptProjectRoots, f as runTypescriptOperation, g as createCssPublicAssets, h as resolveVormaConfig, i as publishApplicationArtifacts, l as collectPublicAssets, m as getGeneratedSourceDirectories, n as loadApplicationSourceLayout, o as checkOutputPath, p as withTypescriptProjects, r as preparePublicOutput, s as assembleApplicationGeneration, t as buildApplication, u as inspectProjects, v as compileServerApplication, w as toContentDigest, x as getClientViewEntries, y as containsRelativePath } from "../build-DcP5_DUV.js";
3
- import { g as DEVELOPMENT_PROTOCOL, y as FRAMEWORK_IDENTITY_PROTOCOL } from "../value-transport-Bst4Hk-n.js";
2
+ import { C as projectBrowserContracts, S as getClientViewEntries, _ as createCssPublicAssets, a as acquireOutputOwnership, b as toContentDigest, c as writeAndCheckApplicationGeneration, d as readTypescriptProjectRoots, f as runTypescriptOperation, g as containsRelativePath, h as resolveVormaConfig, i as publishApplicationArtifacts, l as collectPublicAssets, m as getGeneratedSourceDirectories, n as loadApplicationSourceLayout, o as checkOutputPath, p as withTypescriptProjects, r as preparePublicOutput, s as assembleApplicationGeneration, t as buildApplication, u as inspectProjects, v as createClientPublicUrlPlugin, x as CLIENT_SHARED_PACKAGES, y as encodeCanonicalJson } from "../build-sHSh5zaX.js";
4
3
  import { t as VORMA_BUILD_PLUGIN_NAME } from "../build-invocation-D7Fu8gBK.js";
5
- import { VormaConfigSchema } from "../server/config/index.js";
6
4
  import { NodeChildProcessSpawner, NodeCrypto, NodeFileSystem, NodePath, NodeRuntime, NodeSocketServer, NodeStdio, NodeTerminal } from "@effect/platform-node-shared";
7
5
  import { Cause, Console, Deferred, Effect, Exit, Fiber, FileSystem, Layer, Path, Queue, Result, Schedule, Schema, ScopedRef, Stream } from "effect";
8
6
  import { Command, Flag } from "effect/unstable/cli";
9
7
  import { createFilter, createServer, loadConfigFromFile, normalizePath } from "vite";
10
- import { dirname, isAbsolute, posix, relative, sep } from "node:path";
8
+ import { DEVELOPMENT_PROTOCOL, FRAMEWORK_IDENTITY_PROTOCOL } from "@vorma/protocol";
11
9
  import { RolldownMagicString } from "rolldown";
10
+ import { dirname, isAbsolute, posix, relative, sep } from "node:path";
12
11
  import { createServer as createServer$1 } from "node:http";
12
+ import { VormaConfigSchema } from "@vorma/server/config";
13
13
  import { FetchHttpClient, HttpClient } from "effect/unstable/http";
14
14
  import { ChildProcess } from "effect/unstable/process";
15
15
  import { watch } from "chokidar";
@@ -136,7 +136,7 @@ function readDevelopmentStylesheet(input) {
136
136
  }
137
137
  //#endregion
138
138
  //#region src/build/development-build.ts
139
- /** Prepares server bytes and native CSS concurrently after their generated inputs exist. */
139
+ /** Prepares native CSS after the generation's public-asset inputs exist. */
140
140
  function prepareDevelopmentBuild(input) {
141
141
  return Effect.gen(function* () {
142
142
  const { generation, client, previous } = input;
@@ -144,24 +144,18 @@ function prepareDevelopmentBuild(input) {
144
144
  const inputsChanged = previous === void 0 || previous.work.inspectSources || previous.work.capturePublicAssets;
145
145
  return {
146
146
  generation,
147
- ...yield* Effect.all({
148
- server: previous === void 0 || previous.work.compileServer ? compileServerApplication({
149
- generation: application,
150
- sourcemap: "inline"
151
- }) : Effect.succeed(previous.build.server),
152
- stylesheet: Effect.gen(function* () {
153
- if (previous !== void 0 && inputsChanged) client.updateInputsFn(toDevelopmentClientInputs(application, generation.sources));
154
- if (previous !== void 0 && !previous.work.prepareCriticalCss) return previous.build.stylesheet;
155
- const filePath = application.config.criticalCssEntryFilePath;
156
- return filePath === void 0 ? {
157
- css: "",
158
- inputFilePaths: []
159
- } : yield* readDevelopmentStylesheet({
160
- server: client.server,
161
- filePath
162
- });
163
- })
164
- }, { concurrency: 2 })
147
+ stylesheet: yield* Effect.gen(function* () {
148
+ if (previous !== void 0 && inputsChanged) client.updateInputsFn(toDevelopmentClientInputs(application, generation.sources));
149
+ if (previous !== void 0 && !previous.work.prepareCriticalCss) return previous.build.stylesheet;
150
+ const filePath = application.config.criticalCssEntryFilePath;
151
+ return filePath === void 0 ? {
152
+ css: "",
153
+ inputFilePaths: []
154
+ } : yield* readDevelopmentStylesheet({
155
+ server: client.server,
156
+ filePath
157
+ });
158
+ })
165
159
  };
166
160
  });
167
161
  }
@@ -639,7 +633,7 @@ function getDevelopmentServerPort() {
639
633
  /** Runs the authored server entry; its Effect scope owns process termination. */
640
634
  function startDevelopmentServerProcess(input) {
641
635
  return Effect.gen(function* () {
642
- const process = yield* ChildProcess.make(globalThis.process.execPath, ["--enable-source-maps", input.layout.compiledServerEntryFilePath], {
636
+ const process = yield* ChildProcess.make(globalThis.process.execPath, ["--enable-source-maps", input.layout.serverEntryFilePath], {
643
637
  env: { [DEVELOPMENT_PROTOCOL.serverPortEnvironmentVariable]: String(input.port) },
644
638
  extendEnv: true,
645
639
  stdin: "ignore",
@@ -823,7 +817,7 @@ function classifyDevelopmentChanges(input) {
823
817
  const revalidate = compileDevelopmentPatterns(layout.dev?.revalidateClientOnChange ?? []);
824
818
  let restartConfiguration = false;
825
819
  let inspectSources = false;
826
- let compileServer = false;
820
+ let restartServer = false;
827
821
  let capturePublicAssets = false;
828
822
  let prepareCriticalCss = false;
829
823
  let revalidateClient = false;
@@ -835,7 +829,7 @@ function classifyDevelopmentChanges(input) {
835
829
  const clientSource = inputs.sources.clientFiles.has(filePath) || inputs.sources.clientRootFiles.has(filePath);
836
830
  const resolutionSource = inputs.sources.resolutionFiles.has(filePath);
837
831
  inspectSources ||= serverSource || clientSource || resolutionSource;
838
- compileServer ||= serverSource || resolutionSource || inputs.serverFiles.has(filePath);
832
+ restartServer ||= serverSource || resolutionSource;
839
833
  capturePublicAssets ||= containsFilePath({
840
834
  path,
841
835
  directory: layout.publicAssetsSourceDirectory,
@@ -855,12 +849,12 @@ function classifyDevelopmentChanges(input) {
855
849
  const serverMembershipChanged = differsFromPreviousFiles(inputs.sources.serverRootFiles, roots.server);
856
850
  const clientMembershipChanged = differsFromPreviousFiles(inputs.sources.clientRootFiles, roots.client);
857
851
  inspectSources ||= serverMembershipChanged || clientMembershipChanged;
858
- compileServer ||= serverMembershipChanged;
852
+ restartServer ||= serverMembershipChanged;
859
853
  }
860
854
  return {
861
855
  restartConfiguration,
862
856
  inspectSources,
863
- compileServer,
857
+ restartServer,
864
858
  capturePublicAssets,
865
859
  prepareCriticalCss: layout.criticalCssEntryFilePath !== void 0 && (prepareCriticalCss || capturePublicAssets),
866
860
  revalidateClient
@@ -1096,7 +1090,6 @@ function runDevelopmentSession(input) {
1096
1090
  return Effect.gen(function* () {
1097
1091
  inputs = {
1098
1092
  sources: next.generation.sources,
1099
- serverFiles: new Set(next.server.inputFilePaths.map(normalizePath)),
1100
1093
  criticalCssFiles: new Set(next.stylesheet.inputFilePaths.map(normalizePath)),
1101
1094
  configurationFiles: new Set(input.loaded.dependencies.map(normalizePath)),
1102
1095
  viteConfigurationFiles: new Set(client.server.config.configFileDependencies)
@@ -1109,7 +1102,6 @@ function runDevelopmentSession(input) {
1109
1102
  yield* input.watcher.watchPathsFn({
1110
1103
  paths: [
1111
1104
  ...sourcePaths,
1112
- ...inputs.serverFiles,
1113
1105
  ...inputs.criticalCssFiles,
1114
1106
  ...inputs.configurationFiles,
1115
1107
  layout.configFilePath,
@@ -1123,7 +1115,6 @@ function runDevelopmentSession(input) {
1123
1115
  }
1124
1116
  yield* publishApplicationArtifacts({
1125
1117
  generation: generation.application,
1126
- server: build.server,
1127
1118
  artifacts
1128
1119
  });
1129
1120
  yield* startApplication;
@@ -1150,7 +1141,7 @@ function runDevelopmentSession(input) {
1150
1141
  if (preparingRevision === revision) pendingPaths.clear();
1151
1142
  return;
1152
1143
  }
1153
- if (work.compileServer || work.restartConfiguration) notifyFn({ kind: "rebuilding" });
1144
+ if (work.restartServer || work.restartConfiguration) notifyFn({ kind: "rebuilding" });
1154
1145
  if (work.restartConfiguration) {
1155
1146
  const next = yield* loadDevelopmentConfig(layout.configFilePath);
1156
1147
  const nextLayout = yield* resolveVormaConfig(next).pipe(Effect.flatMap(loadApplicationSourceLayout));
@@ -1174,7 +1165,7 @@ function runDevelopmentSession(input) {
1174
1165
  work
1175
1166
  }
1176
1167
  });
1177
- })), work.compileServer ? stopApplication : Effect.void], { concurrency: 2 });
1168
+ })), work.restartServer ? stopApplication : Effect.void], { concurrency: 2 });
1178
1169
  const previousArtifacts = artifacts;
1179
1170
  head = yield* client.readHeadHtml;
1180
1171
  const nextArtifacts = assembleDevelopmentArtifacts({
@@ -1182,14 +1173,13 @@ function runDevelopmentSession(input) {
1182
1173
  client,
1183
1174
  developmentHeadHtml: head
1184
1175
  });
1185
- const restartVite = work.compileServer || JSON.stringify(previousArtifacts.metadata.clientViews) !== JSON.stringify(nextArtifacts.metadata.clientViews);
1176
+ const restartVite = work.restartServer || JSON.stringify(previousArtifacts.metadata.clientViews) !== JSON.stringify(nextArtifacts.metadata.clientViews);
1186
1177
  const reload = restartVite || previousArtifacts.metadata.clientBuildId !== nextArtifacts.metadata.clientBuildId;
1187
1178
  yield* publishApplicationArtifacts({
1188
1179
  generation: next.generation.application,
1189
- artifacts: nextArtifacts,
1190
- ...work.compileServer ? { server: next.server } : {}
1180
+ artifacts: nextArtifacts
1191
1181
  });
1192
- if (work.compileServer) yield* startApplication;
1182
+ if (work.restartServer) yield* startApplication;
1193
1183
  client.resumeInspectionFn(reload);
1194
1184
  if (restartVite) {
1195
1185
  yield* client.restart;
@@ -1,7 +1,7 @@
1
1
  import type { CompiledNestedPattern, PatternCompileError } from "@vorma/primitives/matcher";
2
+ import { type ConflictingDynamicParameterNameError } from "@vorma/protocol/path";
3
+ import { type PathWireError } from "@vorma/protocol/path";
2
4
  import { Result } from "effect";
3
- import { type ConflictingDynamicParameterNameError } from "../server/graph/pattern-conflicts.ts";
4
- import { type PathWireError } from "../universal/path-wire.ts";
5
5
  import type { DeclarationSource, InspectedClientView, InspectedEndpoint, InspectedProjects, InspectedServerDeclaration, InspectedUiLoader } from "./inspect-projects.ts";
6
6
  export type ApplicationSegment = {
7
7
  /** The authored pattern, as the loader or the view wrote it. */
@@ -1,4 +1,4 @@
1
- import type { ClientModule } from "../universal/protocol.ts";
1
+ import type { ClientModule } from "@vorma/protocol";
2
2
  import type { DevelopmentBuild, DevelopmentClient } from "./development-build.ts";
3
3
  export declare function toDevelopmentModuleUrl(input: {
4
4
  readonly origin: string;
@@ -1,18 +1,16 @@
1
1
  import { Effect } from "effect";
2
- import { type CompiledServer } from "./compile-server.ts";
3
2
  import type { startDevelopmentClient } from "./development-client.ts";
4
3
  import type { DevelopmentGeneration } from "./development-generation.ts";
5
4
  import type { DevelopmentWork } from "./development-work.ts";
6
5
  export type DevelopmentClient = Effect.Success<ReturnType<typeof startDevelopmentClient>>;
7
6
  export type DevelopmentBuild = {
8
7
  readonly generation: DevelopmentGeneration;
9
- readonly server: CompiledServer;
10
8
  readonly stylesheet: {
11
9
  readonly css: string;
12
10
  readonly inputFilePaths: ReadonlyArray<string>;
13
11
  };
14
12
  };
15
- /** Prepares server bytes and native CSS concurrently after their generated inputs exist. */
13
+ /** Prepares native CSS after the generation's public-asset inputs exist. */
16
14
  export declare function prepareDevelopmentBuild(input: {
17
15
  readonly generation: DevelopmentGeneration;
18
16
  readonly client: DevelopmentClient;
@@ -21,10 +19,9 @@ export declare function prepareDevelopmentBuild(input: {
21
19
  readonly work: DevelopmentWork;
22
20
  };
23
21
  }): Effect.Effect<{
24
- server: CompiledServer;
22
+ generation: DevelopmentGeneration;
25
23
  stylesheet: {
26
24
  readonly css: string;
27
25
  readonly inputFilePaths: ReadonlyArray<string>;
28
26
  };
29
- generation: DevelopmentGeneration;
30
- }, import("./development-stylesheet.ts").DevelopmentStylesheetIssue | import("./compile-server.ts").ServerCompilationIssue, never>;
27
+ }, import("./development-stylesheet.ts").DevelopmentStylesheetIssue, never>;
@@ -5,14 +5,13 @@ import type { ApplicationSourceLayout } from "./source-layout.ts";
5
5
  export type DevelopmentWork = {
6
6
  readonly restartConfiguration: boolean;
7
7
  readonly inspectSources: boolean;
8
- readonly compileServer: boolean;
8
+ readonly restartServer: boolean;
9
9
  readonly capturePublicAssets: boolean;
10
10
  readonly prepareCriticalCss: boolean;
11
11
  readonly revalidateClient: boolean;
12
12
  };
13
13
  export type DevelopmentInputs = {
14
14
  readonly sources: DevelopmentSourceInputs;
15
- readonly serverFiles: ReadonlySet<string>;
16
15
  readonly configurationFiles: ReadonlySet<string>;
17
16
  readonly viteConfigurationFiles: ReadonlySet<string>;
18
17
  readonly criticalCssFiles: ReadonlySet<string>;
@@ -25,7 +24,7 @@ export declare function classifyDevelopmentChanges(input: {
25
24
  }): Effect.Effect<{
26
25
  restartConfiguration: boolean;
27
26
  inspectSources: boolean;
28
- compileServer: boolean;
27
+ restartServer: boolean;
29
28
  capturePublicAssets: boolean;
30
29
  prepareCriticalCss: boolean;
31
30
  revalidateClient: boolean;
@@ -29,7 +29,7 @@ export type ApplicationGeneration = {
29
29
  readonly config: ApplicationSourceLayout;
30
30
  readonly model: ApplicationModel;
31
31
  readonly inspection: InspectedProjects;
32
- /** The declaration augmenting `vorma/client` with this application's contracts: types only. */
32
+ /** The declaration augmenting `@vorma/client` with this application's contracts: types only. */
33
33
  readonly clientContracts: GeneratedSource;
34
34
  /** Runtime adapters for the Effect data types that occur in this application's contracts. */
35
35
  readonly clientTransport: GeneratedSource;
@@ -55,7 +55,7 @@ export declare function assembleApplicationGeneration(input: {
55
55
  export declare function writeApplicationGeneration(generation: ApplicationGeneration): Effect.Effect<void, GeneratedApplicationWriteError, FileSystem.FileSystem | Path.Path>;
56
56
  /**
57
57
  * Writes the internal registration module and the application
58
- * contract types before server compilation.
58
+ * contract types before application startup.
59
59
  */
60
60
  export declare function writeGeneratedServerApplication(input: {
61
61
  readonly generation: ApplicationGeneration;
@@ -1,5 +1,5 @@
1
+ import type { VormaConfig } from "@vorma/server/config";
1
2
  import { Effect } from "effect";
2
- import type { VormaConfig } from "../server/config/index.ts";
3
3
  /**
4
4
  * Builds and publishes one production application while holding all generated
5
5
  * output ownership. `configFilePath` is the absolute path of the configuration
@@ -11,5 +11,4 @@ export declare function buildApplication(input: {
11
11
  }): Effect.Effect<{
12
12
  clientBuildId: string;
13
13
  publicDirectory: string;
14
- serverEntryPath: string;
15
- }, import("./assemble-artifacts.ts").ArtifactAssemblyIssue | import("./publish-artifacts.ts").ArtifactPublicationIssue | import("./bundle-client.ts").ClientBundleIssue | import("./generate-application.ts").GeneratedApplicationWriteError | import("./output-ownership.ts").OutputOwnershipIssue | import("effect/PlatformError").PlatformError | import("./compile-server.ts").ServerCompilationIssue | import("./generate-application.ts").ApplicationGenerationError, import("effect/FileSystem").FileSystem | import("effect/Path").Path>;
14
+ }, import("./assemble-artifacts.ts").ArtifactAssemblyIssue | import("./publish-artifacts.ts").ArtifactPublicationIssue | import("./bundle-client.ts").ClientBundleIssue | import("./generate-application.ts").GeneratedApplicationWriteError | import("./output-ownership.ts").OutputOwnershipIssue | import("effect/PlatformError").PlatformError | import("./generate-application.ts").ApplicationGenerationError, import("effect/FileSystem").FileSystem | import("effect/Path").Path>;
@@ -1,2 +1,2 @@
1
- import { t as buildApplication } from "../build-DcP5_DUV.js";
1
+ import { t as buildApplication } from "../build-sHSh5zaX.js";
2
2
  export { buildApplication };
@@ -1,7 +1,7 @@
1
+ import type { HttpMethod, InputTransportKind } from "@vorma/protocol";
2
+ import type { EffectTransportMarkKind } from "@vorma/protocol/transport";
1
3
  import { Effect } from "effect";
2
4
  import * as Path from "effect/Path";
3
- import type { HttpMethod, InputTransport } from "../server/graph/declarations.ts";
4
- import type { EffectTransportMarkKind } from "../universal/value-transport.ts";
5
5
  import type { ApplicationSourceLayout } from "./source-layout.ts";
6
6
  import { type TypescriptProjectError, type TypescriptProjects } from "./typescript-projects.ts";
7
7
  export type DeclarationSource = {
@@ -26,7 +26,7 @@ export type InspectedEndpoint = DeclarationSource & {
26
26
  readonly method: HttpMethod;
27
27
  readonly pattern: string;
28
28
  readonly input: string | undefined;
29
- readonly inputTransport: InputTransport["kind"];
29
+ readonly inputTransport: InputTransportKind;
30
30
  readonly output: string | undefined;
31
31
  readonly event: string | undefined;
32
32
  readonly errors: ReadonlyArray<InspectedEndpointError>;
@@ -17,7 +17,6 @@ export declare function loadDevelopmentConfig(configPath: string): Effect.Effect
17
17
  readonly publicAssetsDir: string;
18
18
  readonly viteConfigFile: string;
19
19
  readonly criticalCssEntry?: string;
20
- readonly serverExternalPackages?: readonly string[];
21
20
  readonly publicAssetsBasePath: string;
22
21
  readonly bodySsr?: boolean;
23
22
  readonly dev?: {
@@ -44,7 +43,6 @@ export declare function loadVormaConfig(configPath: string): Effect.Effect<{
44
43
  readonly publicAssetsDir: string;
45
44
  readonly viteConfigFile: string;
46
45
  readonly criticalCssEntry?: string;
47
- readonly serverExternalPackages?: readonly string[];
48
46
  readonly publicAssetsBasePath: string;
49
47
  readonly bodySsr?: boolean;
50
48
  readonly dev?: {
@@ -2,7 +2,6 @@ import { Effect } from "effect";
2
2
  import * as FileSystem from "effect/FileSystem";
3
3
  import * as Path from "effect/Path";
4
4
  import type { ApplicationArtifacts } from "./assemble-artifacts.ts";
5
- import type { CompiledServer } from "./compile-server.ts";
6
5
  import type { ApplicationGeneration } from "./generate-application.ts";
7
6
  import type { ApplicationSourceLayout } from "./source-layout.ts";
8
7
  export type ArtifactPublicationIssue = {
@@ -11,13 +10,11 @@ export type ArtifactPublicationIssue = {
11
10
  };
12
11
  /** Prepares one public output before Vite adds its browser files to it. */
13
12
  export declare function preparePublicOutput(config: ApplicationSourceLayout): Effect.Effect<void, import("./output-ownership.ts").OutputOwnershipIssue | import("effect/PlatformError").PlatformError, FileSystem.FileSystem | Path.Path>;
14
- /** Publishes compiled server modules and private metadata for the completed browser build. */
13
+ /** Publishes private metadata for the completed browser build. */
15
14
  export declare function publishApplicationArtifacts(input: {
16
15
  readonly artifacts: ApplicationArtifacts;
17
- readonly server?: CompiledServer;
18
16
  readonly generation: ApplicationGeneration;
19
17
  }): Effect.Effect<{
20
18
  clientBuildId: string;
21
19
  publicDirectory: string;
22
- serverEntryPath: string;
23
20
  }, ArtifactPublicationIssue, FileSystem.FileSystem | Path.Path>;
@@ -1,4 +1,4 @@
1
- import { type EffectTransportMarkKind } from "../universal/value-transport.ts";
1
+ import { type EffectTransportMarkKind } from "@vorma/protocol/transport";
2
2
  import type { GeneratedSource } from "./render-source-text.ts";
3
3
  /**
4
4
  * Selects generic value adapters without generating application schemas or route
@@ -3,24 +3,13 @@ import type { ApplicationModel } from "./compile-application.ts";
3
3
  import type { DeclarationSource } from "./inspect-projects.ts";
4
4
  import { type PublicAssetProjection } from "./public-assets.ts";
5
5
  import { type GeneratedSource } from "./render-source-text.ts";
6
- /**
7
- * The URL of the published public directory relative to a compiled server
8
- * module. Every compiled module sits directly in the server entry's Vorma
9
- * directory, so one relative URL locates the bytes from all of them.
10
- */
11
- export declare function getPublicDirectoryRelativeUrl(input: {
12
- readonly path: Path.Path;
13
- readonly serverGeneratedDirectory: string;
14
- readonly publicDirectory: string;
15
- }): string;
16
6
  /** Renders registration imports independently of final browser output. */
17
7
  export declare function renderGeneratedBuildModule(input: {
18
8
  readonly declarations: ReadonlyArray<DeclarationSource>;
19
- readonly publicDirectoryRelativeUrl: string;
20
9
  readonly filePath: string;
21
10
  readonly path: Path.Path;
22
11
  }): GeneratedSource;
23
- /** Renders the declaration that augments `vorma/server` with this application's patterns, search types, and asset keys. */
12
+ /** Renders the declaration that augments `@vorma/server` with this application's patterns, search types, and asset keys. */
24
13
  export declare function renderGeneratedServerContracts(input: {
25
14
  readonly model: ApplicationModel;
26
15
  readonly publicAssets: PublicAssetProjection;
@@ -1,6 +1,6 @@
1
+ import type { EffectTransportMarkKind } from "@vorma/protocol/transport";
1
2
  import { Result } from "effect";
2
3
  import { type Checker, type Emitter, type Program, type Symbol as TypeSymbol, type Type } from "typescript/unstable/async";
3
- import type { EffectTransportMarkKind } from "../universal/value-transport.ts";
4
4
  export type TypeRenderIssue = {
5
5
  readonly _tag: "UnrenderableContractType";
6
6
  readonly reason: string;
@@ -1,6 +1,6 @@
1
+ import { type VormaConfig } from "@vorma/server/config";
1
2
  import { Effect } from "effect";
2
3
  import * as Path from "effect/Path";
3
- import { type VormaConfig } from "../server/config/index.ts";
4
4
  export type PublicAssetsBasePath = "/" | `/${string}/`;
5
5
  export type ResolvedVormaConfig = {
6
6
  readonly configFilePath: string;
@@ -15,7 +15,6 @@ export type ResolvedVormaConfig = {
15
15
  readonly publicAssetsSourceDirectory: string;
16
16
  readonly viteConfigFilePath: string;
17
17
  readonly criticalCssEntryFilePath?: string;
18
- readonly serverExternalPackages: ReadonlyArray<string>;
19
18
  readonly publicAssetsBasePath: PublicAssetsBasePath;
20
19
  readonly bodySsr: VormaConfig["bodySsr"];
21
20
  readonly dev: VormaConfig["dev"];
@@ -25,9 +24,8 @@ export type VormaOwnedPaths = {
25
24
  readonly ignoreFilePaths: ReadonlyArray<string>;
26
25
  readonly serverGeneratedDirectory: string;
27
26
  readonly clientGeneratedDirectory: string;
28
- readonly generatedBuildFilePath: string;
27
+ readonly generatedRegistrationFilePath: string;
29
28
  readonly generatedServerContractsFilePath: string;
30
- readonly compiledServerEntryFilePath: string;
31
29
  };
32
30
  /** The build reads no Vorma directory, in either entry directory, as application source. */
33
31
  export declare function getGeneratedSourceDirectories(config: VormaOwnedPaths): ReadonlyArray<string>;
@@ -1,7 +1,7 @@
1
1
  import { Effect } from "effect";
2
2
  import * as FileSystem from "effect/FileSystem";
3
3
  import * as Path from "effect/Path";
4
- import { type ResolvedVormaConfig } from "./resolve-config.ts";
4
+ import type { ResolvedVormaConfig } from "./resolve-config.ts";
5
5
  declare const APPLICATION_SOURCE_LAYOUT_BRAND: unique symbol;
6
6
  export type ApplicationSourceLayout = ResolvedVormaConfig & {
7
7
  readonly [APPLICATION_SOURCE_LAYOUT_BRAND]: true;