@octanejs/app-core 0.0.50 → 0.0.51

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.
@@ -20,6 +20,33 @@ export interface ClientAssetEntry {
20
20
  css: string[];
21
21
  }
22
22
 
23
+ export interface IndependentHydrationBuildEntry {
24
+ readonly version: 1;
25
+ readonly boundaryId: string;
26
+ readonly moduleId: string;
27
+ readonly exportName: string;
28
+ readonly captureSchema: readonly { readonly name: string; readonly type: 'json' }[];
29
+ readonly hookSeed: number;
30
+ readonly idSeed: number;
31
+ readonly signalSites: readonly string[];
32
+ readonly styles: readonly string[];
33
+ readonly parentDependencies: false;
34
+ }
35
+
36
+ export interface IndependentHydrationBuildManifest {
37
+ readonly version: 1;
38
+ readonly buildId: string;
39
+ readonly widgets: Readonly<Record<string, IndependentHydrationBuildEntry>>;
40
+ }
41
+
42
+ /** Identity embedded in the executing client entry before its assets are hashed. */
43
+ export interface ClientBuildManifest {
44
+ readonly version: 1;
45
+ readonly buildId: string;
46
+ readonly mode: 'production' | 'development';
47
+ readonly capabilities: { readonly independentHydration: boolean };
48
+ }
49
+
23
50
  export interface ServerManifest {
24
51
  routes: Route[];
25
52
  /** RenderRoute entry module path → module namespace (export picked per-route) */
@@ -51,6 +78,10 @@ export interface ServerManifest {
51
78
  runtime?: RuntimePrimitives;
52
79
  /** Route entry module path → built client asset paths (preload tags) */
53
80
  clientAssets?: Record<string, ClientAssetEntry>;
81
+ /** Completed client-compilation identity used by automatic signal hydration. */
82
+ clientBuild?: ClientBuildManifest | null;
83
+ /** Client-build records used to complete strict independent Hydrate sidecars. */
84
+ independentHydration?: IndependentHydrationBuildManifest | null;
54
85
  }
55
86
 
56
87
  export interface HandlerOptions {
@@ -69,7 +100,15 @@ export interface HandlerOptions {
69
100
  /** The BUILT dist client index.html (moved to dist/server by the build) */
70
101
  htmlTemplate: string;
71
102
  /** RPC executor from 'octane/server' */
72
- executeServerFunction: (fn: Function, body: string) => Promise<string>;
103
+ executeServerFunction: (
104
+ fn: Function,
105
+ body: string,
106
+ context?: import('octane/server').ServerCallContext,
107
+ ) => Promise<string>;
108
+ /** Optional streamed RPC executor from 'octane/server'. */
109
+ streamServerFunction?: import('@octanejs/app-core').RpcRequestOptions['streamServerFunction'];
110
+ batchServerFunctions?: import('@octanejs/app-core').RpcRequestOptions['batchServerFunctions'];
111
+ signalOwners?: import('@octanejs/app-core').SignalRequestHooks;
73
112
  /** Boundary primitives from 'octane/server'. */
74
113
  Suspense: Component;
75
114
  ErrorBoundary: Component;