@finesoft/front 0.5.1 → 0.5.2
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/README.md +4 -4
- package/dist/Outlet.svelte +39 -0
- package/dist/Outlet.svelte.d.ts +7 -0
- package/dist/browser-DIU6Sxl3.mjs +1237 -0
- package/dist/browser-kFMjlLGT.d.mts +262 -0
- package/dist/browser.d.mts +7 -2
- package/dist/browser.mjs +9 -1
- package/dist/controller-types-CgmJ6-le.d.mts +16 -0
- package/dist/cookies-Bpf9VayB.d.mts +779 -0
- package/dist/fetch-policy-BHT8RtrL.mjs +82 -0
- package/dist/host-guard-DDWxLpFL.mjs +222 -0
- package/dist/http-B6CJqDyf.d.mts +46 -0
- package/dist/http-CaxrMD1A.d.mts +1 -0
- package/dist/http-D70PL72H.mjs +257 -0
- package/dist/http.d.mts +3 -0
- package/dist/http.mjs +2 -0
- package/dist/index-node.d.mts +15 -0
- package/dist/index-node.mjs +15 -0
- package/dist/index.d.mts +48 -697
- package/dist/index.mjs +44 -261
- package/dist/load-node.d.mts +5 -0
- package/dist/load-node.mjs +10 -0
- package/dist/load-portable.d.mts +5 -0
- package/dist/load-portable.mjs +8 -0
- package/dist/lru-map-BKoUAySU.mjs +50 -0
- package/dist/messages-CAt2QdGr.mjs +140 -0
- package/dist/native-contract-DuR25hYB.d.mts +14 -0
- package/dist/native-contract.d.mts +2 -0
- package/dist/native-contract.mjs +1 -0
- package/dist/node-D9hB4dsz.d.mts +35 -0
- package/dist/node.d.mts +2 -0
- package/dist/node.mjs +59 -0
- package/dist/path-CGFl2w7D.mjs +113 -0
- package/dist/path-CXT6xGPO.d.mts +261 -0
- package/dist/portable-CaxrMD1A.d.mts +1 -0
- package/dist/portable.d.mts +11 -0
- package/dist/portable.mjs +12 -0
- package/dist/proxy-1SphZ7x7.mjs +436 -0
- package/dist/proxy-2dSWO-Xw.d.mts +53 -0
- package/dist/public-types-BcJM-AYc.mjs +835 -0
- package/dist/react-DhwBRw01.d.mts +16 -0
- package/dist/react.d.mts +3 -0
- package/dist/react.mjs +29 -0
- package/dist/rolldown-runtime-B4iAMlE-.mjs +35 -0
- package/dist/secure-fetch-Xlht2jd7.d.mts +30 -0
- package/dist/server-controller-proxy-BkVuVWVD.d.mts +38 -0
- package/dist/session-DnB4ZC3x.d.mts +1279 -0
- package/dist/src-Ftl_0rhu.mjs +28 -0
- package/dist/src-qwx7Vw8g.mjs +3807 -0
- package/dist/ssr-BEUNDvbj.d.mts +210 -0
- package/dist/ssr-C8xnYXoY.mjs +357 -0
- package/dist/ssr.d.mts +3 -0
- package/dist/ssr.mjs +3 -0
- package/dist/svelte-Dr5to3SE.d.mts +16 -0
- package/dist/svelte.d.mts +3 -0
- package/dist/svelte.mjs +13 -0
- package/dist/typegen-C-WeJCtf.d.mts +12 -0
- package/dist/typegen-cli.d.mts +1 -0
- package/dist/typegen-cli.mjs +11 -0
- package/dist/typegen.d.mts +3 -0
- package/dist/typegen.mjs +2 -0
- package/dist/types-BuaZHRG7.mjs +402 -0
- package/dist/undici-CPfL25Hr.mjs +22262 -0
- package/dist/vite-Cj4SPA8D.d.mts +277 -0
- package/dist/vite.d.mts +4 -0
- package/dist/vite.mjs +2354 -0
- package/dist/vue-DGmzuKho.d.mts +32 -0
- package/dist/vue.d.mts +3 -0
- package/dist/vue.mjs +56 -0
- package/dist/web.d.mts +6 -0
- package/dist/web.mjs +8 -0
- package/dist/worker.d.mts +2 -0
- package/dist/worker.mjs +2 -0
- package/docs/01-getting-started.md +67 -199
- package/docs/02-routing-and-controllers.md +163 -241
- package/docs/03-middleware.md +10 -212
- package/docs/04-rendering-and-hydration.md +6 -333
- package/docs/05-i18n.md +7 -237
- package/docs/06-http-client.md +20 -263
- package/docs/07-di-container.md +23 -257
- package/docs/08-observability.md +6 -286
- package/docs/09-server-and-deployment.md +59 -219
- package/docs/10-features-platform-pwa.md +7 -231
- package/docs/11-navigation.md +143 -288
- package/docs/12-session-restoration.md +6 -214
- package/docs/README.md +7 -7
- package/docs/advanced/custom-action-handler.md +29 -229
- package/docs/advanced/custom-adapter.md +7 -259
- package/docs/advanced/custom-event-recorder.md +7 -312
- package/docs/advanced/inline-proxy-codegen.md +6 -185
- package/docs/advanced/multi-tenant-scopes.md +10 -323
- package/docs/engineering/ci-release-flow.md +35 -222
- package/docs/engineering/project-structure.md +34 -277
- package/docs/engineering/testing.md +8 -310
- package/docs/pitfalls/container-scope-leak.md +2 -214
- package/docs/pitfalls/i18n-bundle-size.md +6 -176
- package/docs/pitfalls/proxy-binary-payloads.md +8 -12
- package/docs/pitfalls/ssr-hydration-mismatch.md +4 -160
- package/docs/pitfalls/ssr-vs-csr-globals.md +9 -170
- package/docs/zh/01-getting-started.md +67 -199
- package/docs/zh/02-routing-and-controllers.md +166 -244
- package/docs/zh/03-middleware.md +10 -212
- package/docs/zh/04-rendering-and-hydration.md +6 -333
- package/docs/zh/05-i18n.md +7 -237
- package/docs/zh/06-http-client.md +20 -263
- package/docs/zh/07-di-container.md +23 -257
- package/docs/zh/08-observability.md +6 -283
- package/docs/zh/09-server-and-deployment.md +59 -219
- package/docs/zh/10-features-platform-pwa.md +7 -231
- package/docs/zh/11-navigation.md +130 -290
- package/docs/zh/12-session-restoration.md +6 -214
- package/docs/zh/README.md +4 -4
- package/docs/zh/advanced/custom-action-handler.md +29 -229
- package/docs/zh/advanced/custom-adapter.md +7 -259
- package/docs/zh/advanced/custom-event-recorder.md +7 -312
- package/docs/zh/advanced/inline-proxy-codegen.md +6 -185
- package/docs/zh/advanced/multi-tenant-scopes.md +10 -323
- package/docs/zh/engineering/ci-release-flow.md +35 -222
- package/docs/zh/engineering/project-structure.md +34 -277
- package/docs/zh/engineering/testing.md +8 -310
- package/docs/zh/pitfalls/container-scope-leak.md +2 -214
- package/docs/zh/pitfalls/i18n-bundle-size.md +6 -176
- package/docs/zh/pitfalls/proxy-binary-payloads.md +8 -12
- package/docs/zh/pitfalls/ssr-hydration-mismatch.md +4 -160
- package/docs/zh/pitfalls/ssr-vs-csr-globals.md +9 -170
- package/package.json +118 -20
- package/dist/browser-BHhVWXik.mjs +0 -2
- package/dist/browser-BV2BBXm7.d.mts +0 -2811
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { y as RuntimeHandle } from "./path-CXT6xGPO.mjs";
|
|
2
|
+
import { r as DnsLookup, t as SecureFetchOptions } from "./secure-fetch-Xlht2jd7.mjs";
|
|
3
|
+
import { r as HttpHandler } from "./http-B6CJqDyf.mjs";
|
|
4
|
+
import { Server } from "node:http";
|
|
5
|
+
import { Http2SecureServer, Http2Server } from "node:http2";
|
|
6
|
+
//#region ../server/src/node/dns.d.ts
|
|
7
|
+
/** Uses the OS resolver, including hosts-file entries, matching Node fetch. */
|
|
8
|
+
declare const nodeDnsLookup: DnsLookup;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ../server/src/node/fetch-policy.d.ts
|
|
11
|
+
/** Node fetch policy: validate DNS at socket creation, retaining hostname/TLS SNI. */
|
|
12
|
+
declare const nodeSafeFetchOptions: SecureFetchOptions;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region ../server/src/node.d.ts
|
|
15
|
+
type ServerType = Server | Http2Server | Http2SecureServer;
|
|
16
|
+
interface NodeHandlerOptions {
|
|
17
|
+
handler: HttpHandler;
|
|
18
|
+
port?: number;
|
|
19
|
+
hostname?: string;
|
|
20
|
+
bindings?: Readonly<Record<string, unknown>>;
|
|
21
|
+
/** Passing a runtime explicitly transfers its shutdown responsibility to this host. */
|
|
22
|
+
runtime?: RuntimeHandle;
|
|
23
|
+
disposeApp?: () => Promise<void>;
|
|
24
|
+
/** Explicit full-error observer, awaited during drain. Default/fallback diagnostics contain only a safe failure code. */
|
|
25
|
+
onTaskError?: (error: unknown) => void | Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
interface NodeHandlerServer {
|
|
28
|
+
server: ServerType;
|
|
29
|
+
dispose(): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
/** Node only listener and managed-task drain; execution remains in the portable handler. */
|
|
32
|
+
declare function startNodeHandler(options: NodeHandlerOptions): Promise<NodeHandlerServer>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { nodeDnsLookup as a, nodeSafeFetchOptions as i, NodeHandlerServer as n, startNodeHandler as r, NodeHandlerOptions as t };
|
|
35
|
+
//# sourceMappingURL=node-D9hB4dsz.d.mts.map
|
package/dist/node.d.mts
ADDED
package/dist/node.mjs
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { n as nodeDnsLookup, r as dynamicImport, t as nodeSafeFetchOptions } from "./fetch-policy-BHT8RtrL.mjs";
|
|
2
|
+
//#region ../server/src/node.ts
|
|
3
|
+
/** Node only listener and managed-task drain; execution remains in the portable handler. */
|
|
4
|
+
async function startNodeHandler(options) {
|
|
5
|
+
const { serve } = await dynamicImport("@hono/node-server");
|
|
6
|
+
const fetch = options.handler.fetch.bind(options.handler);
|
|
7
|
+
const tasks = /* @__PURE__ */ new Set();
|
|
8
|
+
const requests = /* @__PURE__ */ new Set();
|
|
9
|
+
const trackRequest = (work) => {
|
|
10
|
+
const completed = work.then(() => {}, () => {}).finally(() => requests.delete(completed));
|
|
11
|
+
requests.add(completed);
|
|
12
|
+
};
|
|
13
|
+
const reportTaskError = options.onTaskError ?? (() => console.error("[Node managed task]", { code: "failure" }));
|
|
14
|
+
const server = await new Promise((resolve, reject) => {
|
|
15
|
+
const listener = serve({
|
|
16
|
+
fetch: (request) => {
|
|
17
|
+
const invocation = Promise.resolve().then(() => fetch(request, options.bindings, {
|
|
18
|
+
trackRequest,
|
|
19
|
+
waitUntil(work) {
|
|
20
|
+
const observed = work.then(() => {}, async (error) => {
|
|
21
|
+
try {
|
|
22
|
+
await reportTaskError(error);
|
|
23
|
+
} catch {
|
|
24
|
+
console.error("[Node managed task]", {
|
|
25
|
+
code: "failure",
|
|
26
|
+
reporterFailed: true
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}).finally(() => tasks.delete(observed));
|
|
30
|
+
tasks.add(observed);
|
|
31
|
+
}
|
|
32
|
+
}));
|
|
33
|
+
trackRequest(invocation);
|
|
34
|
+
return invocation;
|
|
35
|
+
},
|
|
36
|
+
port: options.port ?? 3e3,
|
|
37
|
+
hostname: options.hostname
|
|
38
|
+
}, () => resolve(listener));
|
|
39
|
+
listener.once("error", reject);
|
|
40
|
+
});
|
|
41
|
+
let closing;
|
|
42
|
+
return {
|
|
43
|
+
server,
|
|
44
|
+
dispose: () => closing ??= (async () => {
|
|
45
|
+
await new Promise((resolve, reject) => server.close((error) => error ? reject(error) : resolve()));
|
|
46
|
+
while (requests.size) await Promise.all(requests);
|
|
47
|
+
while (tasks.size) await Promise.all(tasks);
|
|
48
|
+
try {
|
|
49
|
+
await options.disposeApp?.();
|
|
50
|
+
} finally {
|
|
51
|
+
await options.runtime?.dispose();
|
|
52
|
+
}
|
|
53
|
+
})()
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { nodeDnsLookup, nodeSafeFetchOptions, startNodeHandler };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=node.mjs.map
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
//#region ../core/src/application/types.ts
|
|
2
|
+
const errors = {
|
|
3
|
+
validation: [400, "Invalid input"],
|
|
4
|
+
unauthenticated: [401, "Authentication required"],
|
|
5
|
+
denied: [403, "Access denied"],
|
|
6
|
+
not_found: [404, "Not found"],
|
|
7
|
+
conflict: [409, "Request conflicts with current state"],
|
|
8
|
+
rate_limited: [429, "Too many requests"],
|
|
9
|
+
cancelled: [499, "Execution cancelled"],
|
|
10
|
+
failure: [500, "Execution failed"],
|
|
11
|
+
capability: [503, "Required capability unavailable"],
|
|
12
|
+
configuration: [500, "Invalid application configuration"]
|
|
13
|
+
};
|
|
14
|
+
var ExecutionError = class extends Error {
|
|
15
|
+
code;
|
|
16
|
+
status;
|
|
17
|
+
constructor(code, message, options) {
|
|
18
|
+
super(message ?? errors[code][1], options);
|
|
19
|
+
this.code = code;
|
|
20
|
+
this.name = "ExecutionError";
|
|
21
|
+
this.status = errors[code][0];
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
/** Convert a known upstream HTTP failure to the safe public execution vocabulary. */
|
|
25
|
+
function executionErrorFromHttp(error) {
|
|
26
|
+
return new ExecutionError(error.status === 400 ? "validation" : error.status === 401 ? "unauthenticated" : error.status === 403 ? "denied" : error.status === 404 ? "not_found" : error.status === 409 ? "conflict" : error.status === 429 ? "rate_limited" : "failure", void 0, { cause: error });
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region ../core/src/routing/path.ts
|
|
30
|
+
const PARAMETER_SEGMENT = /^:([A-Za-z0-9_]+)(\?)?$/;
|
|
31
|
+
function createParams() {
|
|
32
|
+
return Object.create(null);
|
|
33
|
+
}
|
|
34
|
+
function stringify(value) {
|
|
35
|
+
if (value === void 0 || value === null) return void 0;
|
|
36
|
+
if (typeof value === "string") return value;
|
|
37
|
+
if (typeof value === "number") return Number.isFinite(value) ? String(value) : void 0;
|
|
38
|
+
if (typeof value === "boolean") return String(value);
|
|
39
|
+
}
|
|
40
|
+
/** Compile the small, segment-oriented `/:name` / `/:name?` path language. */
|
|
41
|
+
function compilePath(pattern) {
|
|
42
|
+
if (!pattern.startsWith("/") || pattern.includes("#")) throw new Error(`Invalid path pattern "${pattern}"`);
|
|
43
|
+
const parameters = [];
|
|
44
|
+
const names = /* @__PURE__ */ new Set();
|
|
45
|
+
const segments = pattern.split("/");
|
|
46
|
+
const source = segments.map((segment, index) => {
|
|
47
|
+
if (index === 0) return "";
|
|
48
|
+
const parameter = PARAMETER_SEGMENT.exec(segment);
|
|
49
|
+
if (!parameter) {
|
|
50
|
+
if (segment.includes("?")) throw new Error(`Invalid path pattern "${pattern}"`);
|
|
51
|
+
return `/${segment.replace(/[.+^${}()|[\]\\]/g, "\\$&")}`;
|
|
52
|
+
}
|
|
53
|
+
const [, name, optional] = parameter;
|
|
54
|
+
if (names.has(name)) throw new Error(`Duplicate parameter name ":${name}" in pattern "${pattern}"`);
|
|
55
|
+
names.add(name);
|
|
56
|
+
parameters.push({
|
|
57
|
+
name,
|
|
58
|
+
optional: optional === "?"
|
|
59
|
+
});
|
|
60
|
+
return optional ? "(?:/([^/]+))?" : "/([^/]+)";
|
|
61
|
+
}).join("");
|
|
62
|
+
const regex = new RegExp(`^${source || "/"}/?$`);
|
|
63
|
+
const descriptor = Object.freeze({
|
|
64
|
+
pattern,
|
|
65
|
+
parameters: Object.freeze(parameters.map((parameter) => Object.freeze(parameter))),
|
|
66
|
+
shape: segments.map((segment, index) => {
|
|
67
|
+
if (index === 0) return "";
|
|
68
|
+
const parameter = PARAMETER_SEGMENT.exec(segment);
|
|
69
|
+
return parameter ? `/:${parameter[2] ? "?" : ""}` : `/${segment}`;
|
|
70
|
+
}).join("")
|
|
71
|
+
});
|
|
72
|
+
return Object.freeze({
|
|
73
|
+
descriptor,
|
|
74
|
+
match(pathname) {
|
|
75
|
+
const result = regex.exec(pathname);
|
|
76
|
+
if (!result) return null;
|
|
77
|
+
const params = createParams();
|
|
78
|
+
for (let index = 0; index < parameters.length; index++) {
|
|
79
|
+
const raw = result[index + 1];
|
|
80
|
+
if (raw === void 0 && parameters[index].optional) continue;
|
|
81
|
+
try {
|
|
82
|
+
params[parameters[index].name] = decodeURIComponent(raw);
|
|
83
|
+
} catch {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return params;
|
|
88
|
+
},
|
|
89
|
+
reverse(params) {
|
|
90
|
+
const segments = pattern.split("/");
|
|
91
|
+
const output = [];
|
|
92
|
+
for (let index = 1; index < segments.length; index++) {
|
|
93
|
+
const segment = segments[index];
|
|
94
|
+
const parameter = PARAMETER_SEGMENT.exec(segment);
|
|
95
|
+
if (!parameter) {
|
|
96
|
+
output.push(segment);
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
const value = stringify(params[parameter[1]]);
|
|
100
|
+
if (value === void 0) {
|
|
101
|
+
if (parameter[2]) continue;
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
output.push(encodeURIComponent(value));
|
|
105
|
+
}
|
|
106
|
+
return `/${output.join("/")}`;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
export { ExecutionError as n, executionErrorFromHttp as r, compilePath as t };
|
|
112
|
+
|
|
113
|
+
//# sourceMappingURL=path-CGFl2w7D.mjs.map
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
//#region ../core/src/dependencies/token.d.ts
|
|
2
|
+
/** A service reference carries its value type without a string-based assertion. */
|
|
3
|
+
interface Token<T = unknown> {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly _value?: T;
|
|
6
|
+
}
|
|
7
|
+
declare function createToken<T>(id: string): Token<T>;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region ../core/src/dependencies/providers.d.ts
|
|
10
|
+
interface ProviderContext {
|
|
11
|
+
readonly bindings: Readonly<Record<string, unknown>>;
|
|
12
|
+
get<T>(token: Token<T>): Promise<T>;
|
|
13
|
+
}
|
|
14
|
+
interface Provider<T = unknown> {
|
|
15
|
+
readonly token: Token<T>;
|
|
16
|
+
readonly lifetime: "runtime" | "scope" | "transient";
|
|
17
|
+
readonly dependencies?: readonly Token[];
|
|
18
|
+
readonly capabilities?: readonly string[];
|
|
19
|
+
readonly create?: (context: ProviderContext) => T | Promise<T>;
|
|
20
|
+
readonly value?: T;
|
|
21
|
+
/** Created resources are owned. Supplied values are external unless owned is true. */
|
|
22
|
+
readonly owned?: boolean;
|
|
23
|
+
readonly dispose?: (value: T) => void | Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
declare function provide<T>(provider: Provider<T>): Provider<T>;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region ../core/src/dependencies/container.d.ts
|
|
28
|
+
declare class Container {
|
|
29
|
+
private parent?;
|
|
30
|
+
private children;
|
|
31
|
+
private providers;
|
|
32
|
+
private values;
|
|
33
|
+
private pending;
|
|
34
|
+
private cleanups;
|
|
35
|
+
private closed;
|
|
36
|
+
private disposal?;
|
|
37
|
+
private bindings;
|
|
38
|
+
registerProvider<T>(provider: Provider<T>): this;
|
|
39
|
+
onDispose(cleanup: () => void | Promise<void>): void;
|
|
40
|
+
hasProvider(token: Token): boolean;
|
|
41
|
+
private assertOpen;
|
|
42
|
+
get<T>(token: Token<T>): Promise<T>;
|
|
43
|
+
private findProvider;
|
|
44
|
+
private getProvider;
|
|
45
|
+
/** Sort owned cleanup by dependencies, retaining creation order for unrelated resources. */
|
|
46
|
+
private orderedCleanups;
|
|
47
|
+
/**
|
|
48
|
+
* 创建子容器(请求级 scope)
|
|
49
|
+
*
|
|
50
|
+
* 子容器可覆写父容器的依赖(如每请求的 locale、user),
|
|
51
|
+
* 未覆写的 key 自动回退到父容器解析。子容器会被父容器跟踪,
|
|
52
|
+
* 父容器 dispose 时一并销毁所有未独立 dispose 的子容器。
|
|
53
|
+
*/
|
|
54
|
+
createScope(bindings?: Readonly<Record<string, unknown>>): Container;
|
|
55
|
+
/**
|
|
56
|
+
* 销毁容器,清除所有缓存。
|
|
57
|
+
*
|
|
58
|
+
* - 递归 dispose 所有 createScope() 创建的未 dispose 子容器
|
|
59
|
+
* - 自身被 dispose 后从父容器移除引用,允许 GC
|
|
60
|
+
* - 重复 dispose 安全(幂等)
|
|
61
|
+
*/
|
|
62
|
+
dispose(): Promise<void>;
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region ../core/src/schema/standard.d.ts
|
|
66
|
+
/**
|
|
67
|
+
* Standard Schema v1 接口的最小本地声明 + 运行助手。
|
|
68
|
+
* 纯 type-level 规范 + 运行时鸭子类型,不依赖 @standard-schema/spec 运行时包。
|
|
69
|
+
* https://standardschema.dev
|
|
70
|
+
*/
|
|
71
|
+
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
72
|
+
readonly "~standard": {
|
|
73
|
+
readonly version: 1;
|
|
74
|
+
readonly vendor: string;
|
|
75
|
+
readonly validate: (value: unknown) => StandardResult<Output> | Promise<StandardResult<Output>>;
|
|
76
|
+
readonly types?: {
|
|
77
|
+
readonly input: Input;
|
|
78
|
+
readonly output: Output;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
type StandardResult<Output> = {
|
|
83
|
+
readonly value: Output;
|
|
84
|
+
readonly issues?: undefined;
|
|
85
|
+
} | {
|
|
86
|
+
readonly issues: ReadonlyArray<StandardIssue>;
|
|
87
|
+
};
|
|
88
|
+
interface StandardIssue {
|
|
89
|
+
readonly message: string;
|
|
90
|
+
readonly path?: ReadonlyArray<PropertyKey | {
|
|
91
|
+
readonly key: PropertyKey;
|
|
92
|
+
}>;
|
|
93
|
+
}
|
|
94
|
+
/** 提取 Standard Schema 的输出类型 */
|
|
95
|
+
type InferOutput<S extends StandardSchemaV1> = NonNullable<S["~standard"]["types"]>["output"];
|
|
96
|
+
/** 路由参数 codec:输入恒为 string(缺失时 undefined),输出为目标类型 T */
|
|
97
|
+
type ParamSchema<T = unknown> = StandardSchemaV1<string, T>;
|
|
98
|
+
/** 工厂:从一个 validate 函数构造实现了 ~standard 的 codec */
|
|
99
|
+
declare function makeSchema<T>(validate: (value: unknown) => StandardResult<T> | Promise<StandardResult<T>>): ParamSchema<T>;
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region ../core/src/metrics/types.d.ts
|
|
102
|
+
/**
|
|
103
|
+
* Metrics — 类型定义
|
|
104
|
+
*
|
|
105
|
+
* 框架级埋点基础设施的核心接口。
|
|
106
|
+
*/
|
|
107
|
+
/** 事件记录器 — 所有 metrics 后端实现此接口 */
|
|
108
|
+
interface EventRecorder {
|
|
109
|
+
/** 记录一条事件 */
|
|
110
|
+
record(type: string, fields?: Record<string, unknown>): void;
|
|
111
|
+
/** 刷新待发送的事件队列 */
|
|
112
|
+
flush?(): Promise<void>;
|
|
113
|
+
/** 销毁记录器,释放资源 */
|
|
114
|
+
destroy?(): void;
|
|
115
|
+
}
|
|
116
|
+
/** 字段提供者 — 每次记录前自动注入公共字段 */
|
|
117
|
+
interface MetricsFieldsProvider {
|
|
118
|
+
/** 返回需要附加到每条事件的字段 */
|
|
119
|
+
getFields(): Record<string, unknown>;
|
|
120
|
+
}
|
|
121
|
+
/** Impression 条目 */
|
|
122
|
+
interface ImpressionEntry {
|
|
123
|
+
/** 被追踪元素的唯一标识 */
|
|
124
|
+
id: string;
|
|
125
|
+
/** 元素进入视口的时间戳 */
|
|
126
|
+
timestamp: number;
|
|
127
|
+
/** 附加数据 */
|
|
128
|
+
metadata?: Record<string, unknown>;
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region ../core/src/application/types.d.ts
|
|
132
|
+
interface Invocation {
|
|
133
|
+
readonly fetch?: typeof globalThis.fetch;
|
|
134
|
+
readonly signal?: AbortSignal;
|
|
135
|
+
readonly traceId?: string;
|
|
136
|
+
readonly bindings?: Readonly<Record<string, unknown>>;
|
|
137
|
+
readonly locale?: string;
|
|
138
|
+
readonly identity?: string;
|
|
139
|
+
}
|
|
140
|
+
interface ExecutionContext {
|
|
141
|
+
readonly applicationId: string;
|
|
142
|
+
readonly runtimeId: string;
|
|
143
|
+
readonly executionId: string;
|
|
144
|
+
readonly traceId: string;
|
|
145
|
+
readonly signal: AbortSignal;
|
|
146
|
+
readonly container: Container;
|
|
147
|
+
readonly bindings: Readonly<Record<string, unknown>>;
|
|
148
|
+
readonly locale?: string;
|
|
149
|
+
readonly identity?: string;
|
|
150
|
+
readonly fetch: typeof globalThis.fetch;
|
|
151
|
+
get<T>(token: Token<T>): Promise<T>;
|
|
152
|
+
execute<I, O>(operation: Operation<I, O>, input: I): Promise<O>;
|
|
153
|
+
invalidate(tags: readonly string[]): void;
|
|
154
|
+
record(type: string, fields?: Record<string, unknown>): void;
|
|
155
|
+
onDispose(cleanup: () => void | Promise<void>): void;
|
|
156
|
+
}
|
|
157
|
+
type OperationHandler<I, O> = (input: I, context: ExecutionContext) => O | Promise<O>;
|
|
158
|
+
type OperationPolicy<I = unknown> = (input: I, context: ExecutionContext) => void | Promise<void>;
|
|
159
|
+
interface QueryCache<I> {
|
|
160
|
+
readonly scope?: "runtime" | "execution";
|
|
161
|
+
readonly ttlMs: number;
|
|
162
|
+
readonly key?: (input: I) => string;
|
|
163
|
+
readonly tags?: readonly string[];
|
|
164
|
+
}
|
|
165
|
+
interface Operation<I = unknown, O = unknown> {
|
|
166
|
+
readonly id: string;
|
|
167
|
+
readonly kind: "query" | "command";
|
|
168
|
+
readonly input?: StandardSchemaV1<unknown, I>;
|
|
169
|
+
readonly output?: StandardSchemaV1<unknown, O>;
|
|
170
|
+
readonly handler?: OperationHandler<I, O>;
|
|
171
|
+
readonly policies?: readonly OperationPolicy<I>[];
|
|
172
|
+
readonly cache?: QueryCache<I>;
|
|
173
|
+
readonly capabilities?: readonly string[];
|
|
174
|
+
}
|
|
175
|
+
type AnyOperation = Operation<any, any>;
|
|
176
|
+
interface Implementation<I = any, O = any> {
|
|
177
|
+
readonly operation: Operation<I, O>;
|
|
178
|
+
readonly handler: OperationHandler<I, O>;
|
|
179
|
+
}
|
|
180
|
+
interface ModuleDefinition {
|
|
181
|
+
readonly id: string;
|
|
182
|
+
readonly dependsOn?: readonly ModuleDefinition[];
|
|
183
|
+
readonly operations?: readonly AnyOperation[];
|
|
184
|
+
readonly implementations?: readonly Implementation[];
|
|
185
|
+
readonly providers?: readonly Provider<any>[];
|
|
186
|
+
readonly policies?: readonly OperationPolicy<any>[];
|
|
187
|
+
}
|
|
188
|
+
interface AppDefinition extends Omit<ModuleDefinition, "dependsOn"> {
|
|
189
|
+
readonly modules?: readonly ModuleDefinition[];
|
|
190
|
+
}
|
|
191
|
+
interface RuntimeOptions {
|
|
192
|
+
/** Capabilities the host promises to supply per invocation, checked before operation policies. */
|
|
193
|
+
readonly invocationCapabilities?: readonly "fetch"[];
|
|
194
|
+
readonly app: AppDefinition;
|
|
195
|
+
readonly implementations?: readonly Implementation[];
|
|
196
|
+
readonly providers?: readonly Provider<any>[];
|
|
197
|
+
readonly capabilities?: Readonly<Record<string, unknown>> & {
|
|
198
|
+
readonly fetch?: typeof globalThis.fetch;
|
|
199
|
+
};
|
|
200
|
+
readonly recorder?: EventRecorder;
|
|
201
|
+
/** Maximum number of completed query results retained per cache scope. */
|
|
202
|
+
readonly cacheCapacity?: number;
|
|
203
|
+
}
|
|
204
|
+
interface ExecutionHandle {
|
|
205
|
+
readonly context: ExecutionContext;
|
|
206
|
+
/** Abort this execution without disposing its scope; the owner still calls dispose(). */
|
|
207
|
+
cancel(reason?: unknown): void;
|
|
208
|
+
execute<I, O>(operation: Operation<I, O>, input: I): Promise<O>;
|
|
209
|
+
dispose(): Promise<void>;
|
|
210
|
+
}
|
|
211
|
+
interface RuntimeHandle {
|
|
212
|
+
readonly applicationId: string;
|
|
213
|
+
readonly runtimeId: string;
|
|
214
|
+
execute<I, O>(operation: Operation<I, O>, input: I, invocation?: Invocation): Promise<O>;
|
|
215
|
+
createExecution(invocation?: Invocation): ExecutionHandle;
|
|
216
|
+
invalidate(tags: readonly string[]): void;
|
|
217
|
+
onInvalidate(listener: (tags: readonly string[]) => void): () => void;
|
|
218
|
+
/** Record a host/application event without making recorder failures observable. */
|
|
219
|
+
record(type: string, fields?: Record<string, unknown>): void;
|
|
220
|
+
dispose(): Promise<void>;
|
|
221
|
+
}
|
|
222
|
+
type ExecutionErrorCode = "validation" | "unauthenticated" | "denied" | "not_found" | "conflict" | "rate_limited" | "cancelled" | "failure" | "capability" | "configuration";
|
|
223
|
+
declare class ExecutionError extends Error {
|
|
224
|
+
readonly code: ExecutionErrorCode;
|
|
225
|
+
readonly status: number;
|
|
226
|
+
constructor(code: ExecutionErrorCode, message?: string, options?: ErrorOptions);
|
|
227
|
+
}
|
|
228
|
+
/** Convert a known upstream HTTP failure to the safe public execution vocabulary. */
|
|
229
|
+
declare function executionErrorFromHttp(error: {
|
|
230
|
+
readonly status: number;
|
|
231
|
+
}): ExecutionError;
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region ../core/src/routing/path.d.ts
|
|
234
|
+
/**
|
|
235
|
+
* Portable pathname patterns shared by browser-facing routers and HTTP hosts.
|
|
236
|
+
* A pathname is matched while still encoded, then each captured segment is
|
|
237
|
+
* decoded exactly once. This keeps an encoded slash inside one parameter.
|
|
238
|
+
*/
|
|
239
|
+
type PathParams = Record<string, string | undefined>;
|
|
240
|
+
interface PathParameterDescriptor {
|
|
241
|
+
readonly name: string;
|
|
242
|
+
readonly optional: boolean;
|
|
243
|
+
}
|
|
244
|
+
interface PathDescriptor {
|
|
245
|
+
readonly pattern: string;
|
|
246
|
+
readonly parameters: readonly PathParameterDescriptor[];
|
|
247
|
+
/** Parameter names are deliberately excluded so equivalent route shapes compare equal. */
|
|
248
|
+
readonly shape: string;
|
|
249
|
+
}
|
|
250
|
+
interface CompiledPath {
|
|
251
|
+
readonly descriptor: PathDescriptor;
|
|
252
|
+
/** Returns null for a structural mismatch or malformed percent encoding. */
|
|
253
|
+
match(pathname: string): PathParams | null;
|
|
254
|
+
/** Returns undefined when a required parameter cannot be represented. */
|
|
255
|
+
reverse(params: Readonly<Record<string, unknown>>): string | undefined;
|
|
256
|
+
}
|
|
257
|
+
/** Compile the small, segment-oriented `/:name` / `/:name?` path language. */
|
|
258
|
+
declare function compilePath(pattern: string): CompiledPath;
|
|
259
|
+
//#endregion
|
|
260
|
+
export { makeSchema as A, ImpressionEntry as C, StandardIssue as D, ParamSchema as E, Token as F, createToken as I, Provider as M, ProviderContext as N, StandardResult as O, provide as P, EventRecorder as S, InferOutput as T, OperationPolicy as _, compilePath as a, RuntimeOptions as b, ExecutionContext as c, ExecutionHandle as d, Implementation as f, OperationHandler as g, Operation as h, PathParams as i, Container as j, StandardSchemaV1 as k, ExecutionError as l, ModuleDefinition as m, PathDescriptor as n, AnyOperation as o, Invocation as p, PathParameterDescriptor as r, AppDefinition as s, CompiledPath as t, ExecutionErrorCode as u, QueryCache as v, MetricsFieldsProvider as w, executionErrorFromHttp as x, RuntimeHandle as y };
|
|
261
|
+
//# sourceMappingURL=path-CXT6xGPO.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { A as makeSchema, C as ImpressionEntry, D as StandardIssue, E as ParamSchema, F as Token, I as createToken, M as Provider, N as ProviderContext, O as StandardResult, P as provide, S as EventRecorder, T as InferOutput, _ as OperationPolicy, a as compilePath, b as RuntimeOptions, c as ExecutionContext, d as ExecutionHandle, f as Implementation, g as OperationHandler, h as Operation, i as PathParams, j as Container, k as StandardSchemaV1, l as ExecutionError, m as ModuleDefinition, n as PathDescriptor, o as AnyOperation, p as Invocation, r as PathParameterDescriptor, s as AppDefinition, t as CompiledPath, u as ExecutionErrorCode, v as QueryCache, w as MetricsFieldsProvider, x as executionErrorFromHttp, y as RuntimeHandle } from "./path-CXT6xGPO.mjs";
|
|
2
|
+
import { $ as createActiveLeafCodec, $n as list, $t as MiddlewareResult, A as SessionStore, An as PlatformInfo, At as isCompoundAction, B as ControllerContext, Bn as ConsoleLoggerFactory, Bt as NavigationPath, C as SessionFailure, Cn as Storage, Ct as ACTION_KINDS, D as SessionSlice, Dn as LocaleInfo, Dt as ExternalUrlAction, E as SessionRestoreResult, En as LocaleAttributes, Et as CompoundAction, F as WebRuntime, Fn as ReportCallback, Ft as LeafNode, G as controllerContext, Gn as InferParams, Gt as SplitColumn, H as SERVER_CONTROLLER, Hn as Logger, Ht as NavigationSnapshot, I as WebRuntimeOptions, In as ReportingLogger, It as NAVIGATION_NODE_KINDS, J as resolveConfiguredMessages, Jn as QuerySchemaMap, Jt as StackNode, K as MessagesLoader, Kn as InferQuery, Kt as SplitNode, L as createWebRuntime, Ln as ReportingLoggerFactory, Lt as NavigationError, M as SessionWriteResult, Mn as BaseController, Mt as isFlowAction, N as StorageUnavailableError, Nn as ControllerFailure, Nt as makeExternalUrlAction, O as SessionSnapshot, On as TextDirection, Ot as FlowAction, P as WebConfiguration, Pn as ControllerInput, Pt as makeFlowAction, Q as NavigationRouterLike, Qn as isMultiValueSchema, Qt as DenyResult, R as PageControllerDefinition, Rn as ReportingLoggerOptions, Rt as NavigationNode, S as SessionErrorContext, Sn as FeatureFlagsProvider, St as ActionHandler, T as SessionNavigation, Tn as resolveMessages, Tt as ActionInvocation, U as SERVER_REQUEST, Un as LoggerFactory, Ut as ResolvedDestination, V as PageControllerInput, Vn as LogFilter, Vt as NavigationPathStep, W as ServerRequestState, Wn as ExtractParamNames, Wt as SPLIT_VISIBILITIES, X as FullStateCodecOptions, Xn as ListOptions, Xt as AfterLoadGuard, Y as DEFAULT_NAV_PARAM, Yn as StripOptional, Yt as TabsNode, Z as NavigationCodec, Zn as MultiValueSchema, Zt as BeforeLoadGuard, _ as AsyncStorage, _n as RouteInput, _t as PrefetchedIntents, a as NavigationCommitContext, an as deny, at as SerializedSplit, b as SESSION_DEFAULT_VERSION, bn as DEP_KEYS, bt as Router, c as NavigationTransactionContext, cn as rewrite, ct as SerializedTabs, d as createWebSession, dn as FINESOFT_PUBLIC, dt as serializeNavigationStable, en as NavigationContext, er as Intent, et as createFullStateCodec, f as AppSnapshot, fn as PublicProjection, ft as PageRoute, g as WebAppView, gn as markPublic, gt as PrefetchedIntent, h as ViewProps, hn as isPublicMarked, ht as route, i as BeforeNavigateResult, in as RewriteResult, it as SerializedNavigation, j as SessionStoreOptions, jn as detectPlatform, jt as isExternalUrlAction, k as SessionStateProvider, kn as Translator, kt as TreeAction, l as WebSession, ln as BASE_PAGE_FIELDS, lt as deserializeNavigation, m as ViewEntry, mn as getPublicFields, mt as RouteDefinition, n as BeforeCommitResult, nn as PostLoadContext, nt as encodeNavigationTreeParam, o as NavigationCommitError, on as next, ot as SerializedSplitColumn, p as NavigationSummary, pn as PublicValueCodec, pt as RenderMode, q as MessagesLoaderContext, qn as ParamsFor, qt as SplitVisibility, r as BeforeNavigatePolicy, rn as RedirectResult, rt as SerializedLeaf, s as NavigationContextInput, sn as redirect, st as SerializedStack, t as BeforeCommitPolicy, tn as NextResult, tt as decodeNavigationTreeParam, u as WebSessionOptions, un as BasePage, ut as serializeNavigation, v as NavigationScopedState, vn as RouteIntent, vt as RouteAddOptions, w as SessionLoadResult, wn as TranslationMessages, wt as Action, x as SessionError, xn as FeatureFlags, xt as ActionDispatcher, y as SESSION_DEFAULT_KEY, yn as RouteParams, yt as RouteMatch, z as WebAppDefinition, zn as ConsoleLogger, zt as NavigationNodeKind } from "./session-DnB4ZC3x.mjs";
|
|
3
|
+
import { $ as SimpleTranslatorOptions, $t as uuid, A as setVisibility, At as fetchWithRedirects, B as split, Bt as HttpError, C as popTo, Ct as isSome, D as resolveActivePath, Dt as mapEach, E as replaceTop, Et as Mapper, F as isLeafNode, Ft as HttpClientConfig, G as safeErrorPage, Gt as withDefault, H as tabs, Ht as CompositeLogger, I as isSplitNode, It as HttpRequestOptions, J as defineModule, Jt as bool, K as createRuntime, Kt as NumOptions, L as isStackNode, Lt as RequestInterceptor, M as resourceKey, Mt as classifyHost, N as SplitColumnInit, Nt as classifyUrl, O as selectColumn, Ot as pipe, P as TabsInit, Pt as HttpClient, Q as SimpleTranslator, Qt as str, R as isTabsNode, Rt as ResponseInterceptor, S as pop, St as isNone, T as push, Tt as AsyncMapper, U as RouteInputFor, Ut as CompositeLoggerFactory, V as stack, Vt as stableStringify, W as SafeErrorPageOptions, Wt as optional, X as implementController, Xt as num, Y as defineOperation, Yt as int, Z as implementOperation, Zt as oneOf, _ as collectAllLeaves, _t as removeHost, a as LoadPageOptions, at as PluralCategory, b as findNode, bt as None, c as defineWebApp, ct as interpolate, d as runBeforeLoadGuards, dt as VoidEventRecorder, et as getLocaleAttributes, f as createSessionStore, ft as ConsoleEventRecorder, g as encodeSnapshot, gt as getBaseUrl, h as decodeSnapshot, ht as buildUrl, i as resolveInitialNavigation, it as resolveLocaleFromUrl, j as visibleSplitColumns, jt as HostCheckResult, k as selectTab, kt as pipeAsync, l as getWebPlan, lt as resolvePluralKey, m as createNavigationScopedState, mt as generateUuid, n as PageReference, nt as isRtl, o as PageLoadResult, ot as PluralRuleProvider, p as collectLeafKeys, pt as CompositeEventRecorder, q as defineApp, qt as StrOptions, r as definePage, rt as makeLocaleInfo, s as loadPage, st as englishPlural, t as parseCookieString, tt as getTextDirection, u as runAfterLoadGuards, ut as WithFieldsRecorder, v as collectVisibleDestinations, vt as removeQueryParams, w as popToRoot, wt as LruMap, x as mapNavigationLeaves, xt as Optional, y as findNearestStack, yt as removeScheme, z as leaf, zt as HostGuardError } from "./cookies-Bpf9VayB.mjs";
|
|
4
|
+
import { a as enforceHostGuard, i as TargetGuardOptions, n as secureFetch, r as DnsLookup, t as SecureFetchOptions } from "./secure-fetch-Xlht2jd7.mjs";
|
|
5
|
+
import { a as WebHydration, c as decodeWireEnvelope, i as FRAMEWORK_PROTOCOL_VERSION, l as getFrameworkBuildId, n as ServerControllerProxy, o as WireDecodeResult, r as ServerControllerRequest, s as WireEnvelope, t as SERVER_CONTROLLER_PATH } from "./server-controller-proxy-BkVuVWVD.mjs";
|
|
6
|
+
import { A as createBrowserApp, C as defaultShouldRestore, D as BrowserAppConfig, E as createNavigationBridge, O as BrowserAppHandle, S as createSessionBridge, T as NavigationBridgeDependencies, _ as createDomRestore, a as IntersectionImpressionObserver, b as SESSION_DEFAULT_DEBOUNCE_MS, c as getPWADisplayMode, d as createPrefetchedIntentsFromDom, f as deserializeServerData, g as DomRestoreOptions, h as DomRestore, i as ImpressionObserverOptions, k as BrowserSessionConfig, l as resetFilterCache, m as History, n as createBrowserContext, o as ImpressionObserver, p as tryScroll, r as setHtmlLocaleAttributes, s as PWADisplayMode, t as BrowserContextOptions, u as shouldLog, v as createWebStorage, w as NavigationBridge, x as SessionBridgeOptions, y as BrowserSession } from "./browser-kFMjlLGT.mjs";
|
|
7
|
+
import { a as HttpHost, c as defineEndpoint, i as HttpHandlerOptions, l as runManagedTask, n as HttpEndpoint, o as ManagedTask, r as HttpHandler, s as createHttpHandler, t as EndpointOptions } from "./http-B6CJqDyf.mjs";
|
|
8
|
+
import { C as createSSRRender, E as SSRRenderResult, S as SSRRenderConfig, T as SSRContext, _ as serializeServerData, a as SSRRequestContext, b as injectCSRShell, c as matchRenderModeOverride, d as ServerControllerContext, f as ServerControllerInput, g as materializeServerData, h as SerializeServerDataOptions, i as SSRModule, l as BaseServerController, m as createServerContext, n as SSRHandler, o as SSRResponseResult, p as ServerContextOptions, r as SSRHandlerOptions, s as createSSRHandler, t as SSRCache, u as CookieOptions, v as InjectSSROptions, w as SSRAppResult, x as injectSSRContent, y as SSR_PLACEHOLDERS } from "./ssr-BEUNDvbj.mjs";
|
|
9
|
+
import { a as registerProxyRoutes, n as ProxyRouteConfig, r as ProxyRouter, t as ProxyAuthConfig } from "./proxy-2dSWO-Xw.mjs";
|
|
10
|
+
import "./portable-CaxrMD1A.mjs";
|
|
11
|
+
export { ACTION_KINDS, type Action, ActionDispatcher, type ActionHandler, type ActionInvocation, type AfterLoadGuard, AnyOperation, AppDefinition, AppSnapshot, type AsyncMapper, type AsyncStorage, BASE_PAGE_FIELDS, BaseController, type BasePage, BaseServerController, type BeforeCommitPolicy, type BeforeCommitResult, type BeforeLoadGuard, type BeforeNavigatePolicy, type BeforeNavigateResult, type BrowserAppConfig, type BrowserAppHandle, type BrowserContextOptions, type BrowserSession, type BrowserSessionConfig, type CompiledPath, CompositeEventRecorder, CompositeLogger, CompositeLoggerFactory, type CompoundAction, ConsoleEventRecorder, ConsoleLogger, ConsoleLoggerFactory, Container, ControllerContext, type ControllerFailure, type ControllerInput, type CookieOptions, DEFAULT_NAV_PARAM, DEP_KEYS, type DenyResult, type DnsLookup, type DomRestore, type DomRestoreOptions, EndpointOptions, type EventRecorder, ExecutionContext, ExecutionError, ExecutionErrorCode, ExecutionHandle, type ExternalUrlAction, type ExtractParamNames, FINESOFT_PUBLIC, FRAMEWORK_PROTOCOL_VERSION, type FeatureFlags, type FeatureFlagsProvider, type FlowAction, type FullStateCodecOptions, History, type HostCheckResult, HostGuardError, HttpClient, type HttpClientConfig, HttpEndpoint, HttpError, HttpHandler, HttpHandlerOptions, HttpHost, type HttpRequestOptions, Implementation, type ImpressionEntry, type ImpressionObserver, type ImpressionObserverOptions, type InferOutput, type InferParams, type InferQuery, type InjectSSROptions, type Intent, IntersectionImpressionObserver, Invocation, type LeafNode, type ListOptions, type LoadPageOptions, type LocaleAttributes, type LocaleInfo, type LogFilter, type Logger, type LoggerFactory, LruMap, ManagedTask, type Mapper, type MessagesLoader, type MessagesLoaderContext, type MetricsFieldsProvider, type MiddlewareResult, ModuleDefinition, type MultiValueSchema, NAVIGATION_NODE_KINDS, type NavigationBridge, type NavigationBridgeDependencies, type NavigationCodec, type NavigationCommitContext, NavigationCommitError, type NavigationContext, type NavigationContextInput, NavigationError, type NavigationNode, type NavigationNodeKind, type NavigationPath, type NavigationPathStep, type NavigationRouterLike, type NavigationScopedState, type NavigationSnapshot, NavigationSummary, type NavigationTransactionContext, type NextResult, type None, type NumOptions, Operation, OperationHandler, OperationPolicy, type Optional, type PWADisplayMode, type PageControllerDefinition, PageControllerInput, type PageLoadResult, type PageReference, type PageRoute, type ParamSchema, type ParamsFor, type PathDescriptor, type PathParameterDescriptor, type PathParams, type PlatformInfo, type PluralCategory, type PluralRuleProvider, type PostLoadContext, type PrefetchedIntent, PrefetchedIntents, type Provider, type ProviderContext, type ProxyAuthConfig, type ProxyRouteConfig, type ProxyRouter, type PublicProjection, type PublicValueCodec, QueryCache, type QuerySchemaMap, type RedirectResult, type RenderMode, type ReportCallback, ReportingLogger, ReportingLoggerFactory, type ReportingLoggerOptions, type RequestInterceptor, type ResolvedDestination, type ResponseInterceptor, type RewriteResult, type RouteAddOptions, type RouteDefinition, type RouteInput, type RouteInputFor, type RouteIntent, type RouteMatch, type RouteParams, Router, RuntimeHandle, RuntimeOptions, SERVER_CONTROLLER, SERVER_CONTROLLER_PATH, SERVER_REQUEST, SESSION_DEFAULT_DEBOUNCE_MS, SESSION_DEFAULT_KEY, SESSION_DEFAULT_VERSION, SPLIT_VISIBILITIES, type SSRAppResult, SSRCache, type SSRContext, SSRHandler, SSRHandlerOptions, SSRModule, type SSRRenderConfig, type SSRRenderResult, SSRRequestContext, SSRResponseResult, SSR_PLACEHOLDERS, type SafeErrorPageOptions, type SecureFetchOptions, type SerializeServerDataOptions, type SerializedLeaf, type SerializedNavigation, type SerializedSplit, type SerializedSplitColumn, type SerializedStack, type SerializedTabs, type ServerContextOptions, type ServerControllerContext, type ServerControllerInput, ServerControllerProxy, type ServerControllerRequest, ServerRequestState, type SessionBridgeOptions, SessionError, type SessionErrorContext, type SessionFailure, type SessionLoadResult, type SessionNavigation, type SessionRestoreResult, type SessionSlice, type SessionSnapshot, type SessionStateProvider, type SessionStore, type SessionStoreOptions, type SessionWriteResult, SimpleTranslator, type SimpleTranslatorOptions, type SplitColumn, type SplitColumnInit, type SplitNode, type SplitVisibility, type StackNode, type StandardIssue, type StandardResult, type StandardSchemaV1, type Storage, StorageUnavailableError, type StrOptions, type StripOptional, type TabsInit, type TabsNode, type TargetGuardOptions, type TextDirection, type Token, type TranslationMessages, type Translator, type TreeAction, ViewEntry, ViewProps, VoidEventRecorder, type WebAppDefinition, WebAppView, type WebConfiguration, type WebHydration, type WebRuntime, type WebRuntimeOptions, type WebSession, type WebSessionOptions, type WireDecodeResult, type WireEnvelope, WithFieldsRecorder, bool, buildUrl, classifyHost, classifyUrl, collectAllLeaves, collectLeafKeys, collectVisibleDestinations, compilePath, controllerContext, createActiveLeafCodec, createBrowserApp, createBrowserContext, createDomRestore, createFullStateCodec, createHttpHandler, createNavigationBridge, createNavigationScopedState, createPrefetchedIntentsFromDom, createRuntime, createSSRHandler, createSSRRender, createServerContext, createSessionBridge, createSessionStore, createToken, createWebRuntime, createWebSession, createWebStorage, decodeNavigationTreeParam, decodeSnapshot, decodeWireEnvelope, defaultShouldRestore, defineApp, defineEndpoint, defineModule, defineOperation, definePage, defineWebApp, deny, deserializeNavigation, deserializeServerData, detectPlatform, encodeNavigationTreeParam, encodeSnapshot, enforceHostGuard, englishPlural, executionErrorFromHttp, fetchWithRedirects, findNearestStack, findNode, generateUuid, getBaseUrl, getFrameworkBuildId, getLocaleAttributes, getPWADisplayMode, getPublicFields, getTextDirection, getWebPlan, implementController, implementOperation, injectCSRShell, injectSSRContent, int, interpolate, isCompoundAction, isExternalUrlAction, isFlowAction, isLeafNode, isMultiValueSchema, isNone, isPublicMarked, isRtl, isSome, isSplitNode, isStackNode, isTabsNode, leaf, list, loadPage, makeExternalUrlAction, makeFlowAction, makeLocaleInfo, makeSchema, mapEach, mapNavigationLeaves, markPublic, matchRenderModeOverride, materializeServerData, next, num, oneOf, optional, parseCookieString, pipe, pipeAsync, pop, popTo, popToRoot, provide, push, redirect, registerProxyRoutes, removeHost, removeQueryParams, removeScheme, replaceTop, resetFilterCache, resolveActivePath, resolveConfiguredMessages, resolveInitialNavigation, resolveLocaleFromUrl, resolveMessages, resolvePluralKey, resourceKey, rewrite, route, runAfterLoadGuards, runBeforeLoadGuards, runManagedTask, safeErrorPage, secureFetch, selectColumn, selectTab, serializeNavigation, serializeNavigationStable, serializeServerData, setHtmlLocaleAttributes, setVisibility, shouldLog, split, stableStringify, stack, str, tabs, tryScroll, uuid, visibleSplitColumns, withDefault };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { $ as isLeafNode, A as createActiveLeafCodec, At as getTextDirection, B as findNode, Bt as fetchWithRedirects, C as runBeforeLoadGuards, Ct as defineModule, D as SERVER_REQUEST, Dt as SimpleTranslator, E as SERVER_CONTROLLER, Et as implementOperation, F as serializeNavigation, Ft as interpolate, G as push, Gt as ConsoleLogger, H as pop, Ht as stableStringify, I as serializeNavigationStable, It as resolvePluralKey, J as selectColumn, Jt as CompositeLoggerFactory, K as replaceTop, Kt as ConsoleLoggerFactory, L as collectAllLeaves, Lt as generateUuid, M as decodeNavigationTreeParam, Mt as makeLocaleInfo, N as encodeNavigationTreeParam, Nt as resolveLocaleFromUrl, O as controllerContext, Ot as resolveMessages, P as deserializeNavigation, Pt as englishPlural, Q as resourceKey, R as collectVisibleDestinations, Rt as detectPlatform, S as runAfterLoadGuards, St as defineApp, T as getWebPlan, Tt as implementController, U as popTo, Ut as ReportingLogger, V as mapNavigationLeaves, Vt as enforceHostGuard, W as popToRoot, Wt as ReportingLoggerFactory, X as setVisibility, Xt as list, Y as selectTab, Yt as isMultiValueSchema, Z as visibleSplitColumns, Zt as Container, _ as SERVER_CONTROLLER_PATH, _t as isFlowAction, a as createSessionStore, at as stack, b as decodeWireEnvelope, bt as provide, c as decodeSnapshot, ct as NavigationError, d as createWebSession, dt as PrefetchedIntents, et as isSplitNode, f as SESSION_DEFAULT_KEY, ft as Router, g as loadPage, gt as isExternalUrlAction, h as StorageUnavailableError, ht as isCompoundAction, i as createWebRuntime, it as split, j as createFullStateCodec, jt as isRtl, k as DEFAULT_NAV_PARAM, kt as getLocaleAttributes, l as encodeSnapshot, lt as SPLIT_VISIBILITIES, m as SessionError, mt as ACTION_KINDS, n as definePage, nt as isTabsNode, o as collectLeafKeys, ot as tabs, p as SESSION_DEFAULT_VERSION, pt as ActionDispatcher, q as resolveActivePath, qt as CompositeLogger, r as resolveInitialNavigation, rt as leaf, s as createNavigationScopedState, st as NAVIGATION_NODE_KINDS, t as parseCookieString, tt as isStackNode, u as NavigationCommitError, ut as route, v as ServerControllerProxy, vt as makeExternalUrlAction, w as defineWebApp, wt as defineOperation, x as getFrameworkBuildId, xt as createRuntime, y as FRAMEWORK_PROTOCOL_VERSION, yt as makeFlowAction, z as findNearestStack, zt as secureFetch } from "./src-qwx7Vw8g.mjs";
|
|
2
|
+
import { C as bool, D as str, E as oneOf, O as uuid, S as withDefault, T as num, _ as mapEach, a as safeErrorPage, b as HttpClient, c as ConsoleEventRecorder, d as getBaseUrl, f as removeHost, g as isSome, h as isNone, i as rewrite, k as makeSchema, l as CompositeEventRecorder, m as removeScheme, n as next, o as WithFieldsRecorder, p as removeQueryParams, r as redirect, s as VoidEventRecorder, t as deny, u as buildUrl, v as pipe, w as int, x as optional, y as pipeAsync } from "./types-BuaZHRG7.mjs";
|
|
3
|
+
import { i as HttpError, n as classifyUrl, r as HostGuardError, t as classifyHost } from "./host-guard-DDWxLpFL.mjs";
|
|
4
|
+
import { n as ExecutionError, r as executionErrorFromHttp, t as compilePath } from "./path-CGFl2w7D.mjs";
|
|
5
|
+
import { a as isPublicMarked, i as getPublicFields, n as BASE_PAGE_FIELDS, o as markPublic, r as FINESOFT_PUBLIC, s as BaseController, t as resolveConfiguredMessages } from "./messages-CAt2QdGr.mjs";
|
|
6
|
+
import { t as LruMap } from "./lru-map-BKoUAySU.mjs";
|
|
7
|
+
import { n as createToken, t as DEP_KEYS } from "./src-Ftl_0rhu.mjs";
|
|
8
|
+
import { _ as tryScroll, a as shouldLog, c as createDomRestore, d as createSessionBridge, f as defaultShouldRestore, g as History, h as createNavigationBridge, i as resetFilterCache, l as createWebStorage, m as deserializeServerData, n as IntersectionImpressionObserver, o as createBrowserApp, p as createPrefetchedIntentsFromDom, r as getPWADisplayMode, s as createBrowserContext, t as setHtmlLocaleAttributes, u as SESSION_DEFAULT_DEBOUNCE_MS } from "./browser-DIU6Sxl3.mjs";
|
|
9
|
+
import { a as serializeServerData, i as materializeServerData, n as createServerContext, r as createSSRRender, t as BaseServerController } from "./ssr-C8xnYXoY.mjs";
|
|
10
|
+
import { c as injectSSRContent, i as matchRenderModeOverride, n as registerProxyRoutes, o as SSR_PLACEHOLDERS, r as createSSRHandler, s as injectCSRShell } from "./proxy-1SphZ7x7.mjs";
|
|
11
|
+
import { n as defineEndpoint, r as runManagedTask, t as createHttpHandler } from "./http-D70PL72H.mjs";
|
|
12
|
+
export { ACTION_KINDS, ActionDispatcher, BASE_PAGE_FIELDS, BaseController, BaseServerController, CompositeEventRecorder, CompositeLogger, CompositeLoggerFactory, ConsoleEventRecorder, ConsoleLogger, ConsoleLoggerFactory, Container, DEFAULT_NAV_PARAM, DEP_KEYS, ExecutionError, FINESOFT_PUBLIC, FRAMEWORK_PROTOCOL_VERSION, History, HostGuardError, HttpClient, HttpError, IntersectionImpressionObserver, LruMap, NAVIGATION_NODE_KINDS, NavigationCommitError, NavigationError, PrefetchedIntents, ReportingLogger, ReportingLoggerFactory, Router, SERVER_CONTROLLER, SERVER_CONTROLLER_PATH, SERVER_REQUEST, SESSION_DEFAULT_DEBOUNCE_MS, SESSION_DEFAULT_KEY, SESSION_DEFAULT_VERSION, SPLIT_VISIBILITIES, SSR_PLACEHOLDERS, ServerControllerProxy, SessionError, SimpleTranslator, StorageUnavailableError, VoidEventRecorder, WithFieldsRecorder, bool, buildUrl, classifyHost, classifyUrl, collectAllLeaves, collectLeafKeys, collectVisibleDestinations, compilePath, controllerContext, createActiveLeafCodec, createBrowserApp, createBrowserContext, createDomRestore, createFullStateCodec, createHttpHandler, createNavigationBridge, createNavigationScopedState, createPrefetchedIntentsFromDom, createRuntime, createSSRHandler, createSSRRender, createServerContext, createSessionBridge, createSessionStore, createToken, createWebRuntime, createWebSession, createWebStorage, decodeNavigationTreeParam, decodeSnapshot, decodeWireEnvelope, defaultShouldRestore, defineApp, defineEndpoint, defineModule, defineOperation, definePage, defineWebApp, deny, deserializeNavigation, deserializeServerData, detectPlatform, encodeNavigationTreeParam, encodeSnapshot, enforceHostGuard, englishPlural, executionErrorFromHttp, fetchWithRedirects, findNearestStack, findNode, generateUuid, getBaseUrl, getFrameworkBuildId, getLocaleAttributes, getPWADisplayMode, getPublicFields, getTextDirection, getWebPlan, implementController, implementOperation, injectCSRShell, injectSSRContent, int, interpolate, isCompoundAction, isExternalUrlAction, isFlowAction, isLeafNode, isMultiValueSchema, isNone, isPublicMarked, isRtl, isSome, isSplitNode, isStackNode, isTabsNode, leaf, list, loadPage, makeExternalUrlAction, makeFlowAction, makeLocaleInfo, makeSchema, mapEach, mapNavigationLeaves, markPublic, matchRenderModeOverride, materializeServerData, next, num, oneOf, optional, parseCookieString, pipe, pipeAsync, pop, popTo, popToRoot, provide, push, redirect, registerProxyRoutes, removeHost, removeQueryParams, removeScheme, replaceTop, resetFilterCache, resolveActivePath, resolveConfiguredMessages, resolveInitialNavigation, resolveLocaleFromUrl, resolveMessages, resolvePluralKey, resourceKey, rewrite, route, runAfterLoadGuards, runBeforeLoadGuards, runManagedTask, safeErrorPage, secureFetch, selectColumn, selectTab, serializeNavigation, serializeNavigationStable, serializeServerData, setHtmlLocaleAttributes, setVisibility, shouldLog, split, stableStringify, stack, str, tabs, tryScroll, uuid, visibleSplitColumns, withDefault };
|