stitchkit 0.36.1 → 0.37.0
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 -2
- package/dist/browser/http.d.ts +2 -2
- package/dist/browser/http.d.ts.map +1 -1
- package/dist/cli.js +3 -3
- package/dist/contract/define.d.ts +28 -2
- package/dist/contract/define.d.ts.map +1 -1
- package/dist/contract/errors.d.ts.map +1 -1
- package/dist/contract/index.js +1 -1
- package/dist/{index-dvrn81q4.js → index-4pvtq6h2.js} +83 -34
- package/dist/{index-0ed3bx43.js → index-frfyw9fa.js} +2 -2
- package/dist/{index-pmftwk2a.js → index-g3jrbd0z.js} +26 -0
- package/dist/{index-82gncajj.js → index-s6yhmg1k.js} +555 -337
- package/dist/{index-bx49hskg.js → index-xq45akyd.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +7 -3
- package/dist/observability/index.js +3 -3
- package/dist/server/bun.d.ts +32 -0
- package/dist/server/bun.d.ts.map +1 -0
- package/dist/server/context.d.ts +1 -1
- package/dist/server/context.d.ts.map +1 -1
- package/dist/server/create.d.ts +2 -3
- package/dist/server/create.d.ts.map +1 -1
- package/dist/server/implement.d.ts.map +1 -1
- package/dist/server/index.d.ts +3 -2
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +25 -5
- package/dist/server/logger.d.ts +5 -5
- package/dist/server/logger.d.ts.map +1 -1
- package/dist/server/logging.d.ts +4 -1
- package/dist/server/logging.d.ts.map +1 -1
- package/dist/server/middleware/auth.d.ts +2 -2
- package/dist/server/middleware/auth.d.ts.map +1 -1
- package/dist/server/request-body.d.ts +4 -0
- package/dist/server/request-body.d.ts.map +1 -0
- package/dist/server/router.d.ts +3 -3
- package/dist/server/router.d.ts.map +1 -1
- package/dist/server/socket-io-config.d.ts +20 -0
- package/dist/server/socket-io-config.d.ts.map +1 -0
- package/dist/server/socket-io-node.d.ts +14 -0
- package/dist/server/socket-io-node.d.ts.map +1 -0
- package/dist/server/socket-io.d.ts +5 -32
- package/dist/server/socket-io.d.ts.map +1 -1
- package/dist/server/types.d.ts +54 -49
- package/dist/server/types.d.ts.map +1 -1
- package/dist/tools/agent.d.ts.map +1 -1
- package/dist/tools/execute.d.ts +46 -16
- package/dist/tools/execute.d.ts.map +1 -1
- package/dist/tools/flatten-join.d.ts +8 -0
- package/dist/tools/flatten-join.d.ts.map +1 -0
- package/dist/tools/flatten.d.ts +7 -44
- package/dist/tools/flatten.d.ts.map +1 -1
- package/dist/tools/json-schema.d.ts +1 -1
- package/dist/tools/json-schema.d.ts.map +1 -1
- package/dist/tools/manifest.d.ts.map +1 -1
- package/dist/tools/mcp-handler.d.ts +7 -13
- package/dist/tools/mcp-handler.d.ts.map +1 -1
- package/dist/tools/mcp.d.ts +61 -24
- package/dist/tools/mcp.d.ts.map +1 -1
- package/dist/tools/mount.d.ts +9 -6
- package/dist/tools/mount.d.ts.map +1 -1
- package/dist/tools/names.d.ts +1 -1
- package/dist/tools/native-mcp.d.ts +57 -0
- package/dist/tools/native-mcp.d.ts.map +1 -0
- package/dist/tools/portable-formats.d.ts +15 -0
- package/dist/tools/portable-formats.d.ts.map +1 -0
- package/dist/tools/presentation.d.ts +15 -0
- package/dist/tools/presentation.d.ts.map +1 -0
- package/dist/tools/remote.d.ts.map +1 -1
- package/dist/tools/schema.d.ts +3 -8
- package/dist/tools/schema.d.ts.map +1 -1
- package/dist/tools/tool-logger.d.ts.map +1 -1
- package/dist/tools/view-file.d.ts +5 -3
- package/dist/tools/view-file.d.ts.map +1 -1
- package/dist/tools.d.ts +7 -4
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +357 -95
- package/llms-full.txt +371 -77
- package/package.json +14 -11
- /package/dist/{index-17rdjw68.js → index-e497hxcy.js} +0 -0
package/dist/index.js
CHANGED
package/dist/node.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export { createHandler } from './server/create';
|
|
|
9
9
|
export { createImplement, implement } from './server/implement';
|
|
10
10
|
export type { LogFormat } from './server/logger';
|
|
11
11
|
export { type NodeServerConfig, type NodeServerHandle, serveNode } from './server/node';
|
|
12
|
-
export { createSocketIOServer, type
|
|
12
|
+
export { createNodeSocketIOServer as createSocketIOServer, type NodeSocketIOServerHandle as SocketIOServerHandle, type SocketIOServerConfig, } from './server/socket-io-node';
|
|
13
13
|
export type { FetchComposition, FetchHandler, HandlerConfig, LoggingConfig, LogOutcome, RawRoute, RawRouteContext, ServiceDef, } from './server/types';
|
|
14
14
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EACL,oBAAoB,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EACL,wBAAwB,IAAI,oBAAoB,EAChD,KAAK,wBAAwB,IAAI,oBAAoB,EACrD,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,UAAU,EACV,QAAQ,EACR,eAAe,EACf,UAAU,GACX,MAAM,gBAAgB,CAAC"}
|
package/dist/node.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createImplement,
|
|
4
4
|
createSocketIOServer,
|
|
5
5
|
implement
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-4pvtq6h2.js";
|
|
7
7
|
import"./index-czmqks7r.js";
|
|
8
8
|
import"./index-x3fcszf8.js";
|
|
9
9
|
import {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
notFound,
|
|
16
16
|
rateLimited,
|
|
17
17
|
unauthorized
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-e497hxcy.js";
|
|
19
19
|
// src/server/node.ts
|
|
20
20
|
import { serve } from "srvx";
|
|
21
21
|
async function serveNode(config) {
|
|
@@ -40,6 +40,10 @@ async function serveNode(config) {
|
|
|
40
40
|
close: (closeActive) => server.close(closeActive)
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
+
// src/server/socket-io-node.ts
|
|
44
|
+
async function createNodeSocketIOServer(config) {
|
|
45
|
+
return createSocketIOServer(config);
|
|
46
|
+
}
|
|
43
47
|
export {
|
|
44
48
|
unauthorized,
|
|
45
49
|
serveNode,
|
|
@@ -47,7 +51,7 @@ export {
|
|
|
47
51
|
notFound,
|
|
48
52
|
implement,
|
|
49
53
|
forbidden,
|
|
50
|
-
createSocketIOServer,
|
|
54
|
+
createNodeSocketIOServer as createSocketIOServer,
|
|
51
55
|
createImplement,
|
|
52
56
|
createHandler,
|
|
53
57
|
conflict,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
setRequestError,
|
|
17
17
|
setRequestUser,
|
|
18
18
|
wrapInRequestContext
|
|
19
|
-
} from "../index-
|
|
19
|
+
} from "../index-e497hxcy.js";
|
|
20
20
|
|
|
21
21
|
// src/observability/sanitize.ts
|
|
22
22
|
var DEFAULT_SENSITIVE_KEYS = /(password|passwd|pwd|secret|token|apikey|api[-_ ]?key|auth|authorization|bearer|session|cookie|init[-_ ]?data|credential|private[-_ ]?key)/i;
|
|
@@ -171,7 +171,7 @@ function createAuditHook(config) {
|
|
|
171
171
|
};
|
|
172
172
|
};
|
|
173
173
|
const toolCall = {
|
|
174
|
-
afterToolCall: (toolName, args, result, durationMs, context, endpoint,
|
|
174
|
+
afterToolCall: ({ toolName, args, result, durationMs, context, endpoint, error }) => {
|
|
175
175
|
const requestCtx = getRequestContext();
|
|
176
176
|
const span = requestCtx ? childSpan(requestCtx.trace) : createTraceContext();
|
|
177
177
|
const measure = result.ok ? measureSize(result.data) : { resultSize: null, responseBytes: 0 };
|
|
@@ -191,7 +191,7 @@ function createAuditHook(config) {
|
|
|
191
191
|
statusCode: result.ok ? 200 : 400,
|
|
192
192
|
durationMs,
|
|
193
193
|
errorCode: result.ok ? undefined : result.code,
|
|
194
|
-
errorMessage: result.ok ? undefined : auditErrorMessage(result,
|
|
194
|
+
errorMessage: result.ok ? undefined : auditErrorMessage(result, error),
|
|
195
195
|
...!result.ok && result.details !== undefined && {
|
|
196
196
|
errorDetail: sanitizePayload(result.details, sanitize)
|
|
197
197
|
},
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { FetchComposition, FetchHandler, HandlerConfig, RawRoute, RawRouteContext } from './types';
|
|
2
|
+
/** The concrete `Bun.serve` server instance passed to Bun raw routes. */
|
|
3
|
+
export type BunServer = ReturnType<typeof Bun.serve>;
|
|
4
|
+
export type BunRawRoute = RawRoute<BunServer>;
|
|
5
|
+
export type BunRawRouteContext = RawRouteContext<BunServer>;
|
|
6
|
+
export type BunFetchHandler = FetchHandler<BunServer>;
|
|
7
|
+
export type BunFetchComposition = FetchComposition<BunServer>;
|
|
8
|
+
export type BunHandlerConfig = HandlerConfig<BunServer>;
|
|
9
|
+
type BunServeOptions = Parameters<typeof Bun.serve>[0];
|
|
10
|
+
type BunWebSocketHandlers = BunServeOptions extends {
|
|
11
|
+
websocket?: infer T;
|
|
12
|
+
} ? T : never;
|
|
13
|
+
type BunRoutes = BunServeOptions extends {
|
|
14
|
+
routes?: infer T;
|
|
15
|
+
} ? T : never;
|
|
16
|
+
type BunDevelopmentOptions = BunServeOptions extends {
|
|
17
|
+
development?: infer T;
|
|
18
|
+
} ? T : never;
|
|
19
|
+
export type ServerPassthrough = Omit<BunServeOptions, 'fetch' | 'port' | 'hostname' | 'unix' | 'routes' | 'websocket' | 'development'>;
|
|
20
|
+
/** Bun-specific server config layered over the Fetch-clean handler config. */
|
|
21
|
+
export interface BunServerConfig extends BunHandlerConfig, BunFetchComposition {
|
|
22
|
+
port?: number;
|
|
23
|
+
hostname?: string;
|
|
24
|
+
routes?: BunRoutes;
|
|
25
|
+
websocket?: BunWebSocketHandlers;
|
|
26
|
+
development?: BunDevelopmentOptions;
|
|
27
|
+
bun?: ServerPassthrough;
|
|
28
|
+
}
|
|
29
|
+
/** Start the contract router through `Bun.serve`. */
|
|
30
|
+
export declare function createServer(config: BunServerConfig): BunServer;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=bun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bun.d.ts","sourceRoot":"","sources":["../../src/server/bun.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB,yEAA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qB,CAAC;IACpC,GAAG,CAAC,EAAE,iBAAiB,CAAC;CACzB;AAED,qDAAqD;AACrD,wBAAgB,YAAY,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,CAuB/D"}
|
package/dist/server/context.d.ts
CHANGED
|
@@ -22,6 +22,6 @@ export declare function buildBaseContext(req: Request, url: URL, pathParams: Rec
|
|
|
22
22
|
* already-assembled base context. A validation failure throws a `ZodError`
|
|
23
23
|
* here — the base context (path params, request) is preserved for `onError`.
|
|
24
24
|
*/
|
|
25
|
-
export declare function parseRequestInto(ctx: RuntimeContext, req: Request, url: URL, method: MethodDef, maxUploadBytes?: number): Promise<void>;
|
|
25
|
+
export declare function parseRequestInto(ctx: RuntimeContext, req: Request, url: URL, method: MethodDef, maxUploadBytes?: number, maxJsonBodyBytes?: number): Promise<void>;
|
|
26
26
|
export declare function buildErrorContext(req: Request, url: URL, traceId: string, clientIp: ClientIpOptions): RuntimeContext;
|
|
27
27
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/server/context.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAG9D,OAAO,EAAE,KAAK,eAAe,EAAmC,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/server/context.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAG9D,OAAO,EAAE,KAAK,eAAe,EAAmC,MAAM,WAAW,CAAC;AAElF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAmCzC;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,eAAe,GACxB,cAAc,CAmBhB;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,cAAc,EACnB,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,SAAS,EACjB,cAAc,CAAC,EAAE,MAAM,EACvB,gBAAgB,CAAC,EAAE,MAAM,GACxB,OAAO,CAAC,IAAI,CAAC,CA8Bf;AAED,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,eAAe,GACxB,cAAc,CAWhB"}
|
package/dist/server/create.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function createHandler(config: HandlerConfig): FetchHandler
|
|
3
|
-
export declare function createServer(config: BunServerConfig): Bun.Server<unknown>;
|
|
1
|
+
import type { FetchHandler, HandlerConfig } from './types';
|
|
2
|
+
export declare function createHandler<TServer = unknown>(config: HandlerConfig<TServer>): FetchHandler<TServer>;
|
|
4
3
|
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/server/create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/server/create.ts"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAA2B,MAAM,SAAS,CAAC;AAEpF,wBAAgB,aAAa,CAAC,OAAO,GAAG,OAAO,EAC7C,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,GAC7B,YAAY,CAAC,OAAO,CAAC,CA2avB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"implement.d.ts","sourceRoot":"","sources":["../../src/server/implement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG5E,OAAO,KAAK,EAAE,QAAQ,EAAa,UAAU,EAAE,MAAM,SAAS,CAAC;AAK/D;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EACrC,IAAI,SAAS,cAAc,GAAG,cAAc,EAC5C,QAAQ,EAAE,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"implement.d.ts","sourceRoot":"","sources":["../../src/server/implement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG5E,OAAO,KAAK,EAAE,QAAQ,EAAa,UAAU,EAAE,MAAM,SAAS,CAAC;AAK/D;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EACrC,IAAI,SAAS,cAAc,GAAG,cAAc,EAC5C,QAAQ,EAAE,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,UAAU,CA2D3E;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,SAAS,cAAc,MACjD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YACjC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,YACtB,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,KAC1B,UAAU,CACd"}
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { AppError, appError, badRequest, conflict, forbidden, isStitchErrorCode, notFound, rateLimited, STITCH_ERROR_STATUS, type StitchErrorCode, unauthorized, } from '../contract';
|
|
2
2
|
export { errorCode, formatZodError, normalizeError, type ZodIssueSummary, zodIssues, } from '../internal/errors';
|
|
3
3
|
export { isWithinDir } from '../internal/within-dir';
|
|
4
|
+
export { type BunFetchComposition as FetchComposition, type BunFetchHandler as FetchHandler, type BunHandlerConfig as HandlerConfig, type BunRawRoute as RawRoute, type BunRawRouteContext as RawRouteContext, type BunServer, type BunServerConfig, createServer, type ServerPassthrough, } from './bun';
|
|
4
5
|
export { cacheHeaders, createCache } from './cache';
|
|
5
|
-
export { createHandler
|
|
6
|
+
export { createHandler } from './create';
|
|
6
7
|
export { createErrorHook, type ErrorHookConfig, type ResolvedError, } from './error-hook';
|
|
7
8
|
export { createEventBus, type DefaultEventMap, type EventBus, type EventBusOptions, type EventHandler, } from './event-bus';
|
|
8
9
|
export { type ByteRange, parseByteRange, type ServeFileOptions, serveFile, weakETag, } from './file';
|
|
@@ -21,6 +22,6 @@ export { staticRoute } from './router';
|
|
|
21
22
|
export type { SocketIOServerConfig, SocketIOServerHandle } from './socket-io';
|
|
22
23
|
export { createSocketIOServer, socketIoLane } from './socket-io';
|
|
23
24
|
export { type ParseSSEOptions, parseSSE, streamSSE } from './stream';
|
|
24
|
-
export type {
|
|
25
|
+
export type { Handlers, LifecycleHooks, LoggingConfig, LogOutcome, MethodDef, OperationIdentity, RouteGroup, ServiceDef, StitchLogger, } from './types';
|
|
25
26
|
export { type ComposedLane, composeWebSocketHandlers, type WebSocketComposeConfig, type WebSocketLane, webSocketLane, } from './websocket';
|
|
26
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,KAAK,eAAe,E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,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,KAAK,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrE,YAAY,EACV,QAAQ,EACR,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,KAAK,YAAY,EACjB,wBAAwB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,aAAa,GACd,MAAM,aAAa,CAAC"}
|
package/dist/server/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import {
|
|
|
2
2
|
composeWebSocketHandlers,
|
|
3
3
|
createHandler,
|
|
4
4
|
createImplement,
|
|
5
|
-
createServer,
|
|
6
5
|
createSocketIOServer,
|
|
7
6
|
implement,
|
|
8
7
|
mimeForPath,
|
|
@@ -10,7 +9,7 @@ import {
|
|
|
10
9
|
socketIoLane,
|
|
11
10
|
staticRoute,
|
|
12
11
|
webSocketLane
|
|
13
|
-
} from "../index-
|
|
12
|
+
} from "../index-4pvtq6h2.js";
|
|
14
13
|
import {
|
|
15
14
|
createAuthHook,
|
|
16
15
|
createBearerResolver,
|
|
@@ -23,7 +22,7 @@ import {
|
|
|
23
22
|
signJwt,
|
|
24
23
|
verifyJwt,
|
|
25
24
|
verifyPkce
|
|
26
|
-
} from "../index-
|
|
25
|
+
} from "../index-xq45akyd.js";
|
|
27
26
|
import {
|
|
28
27
|
DEFAULT_CORS_ALLOW_HEADERS,
|
|
29
28
|
DEFAULT_CORS_EXPOSE_HEADERS,
|
|
@@ -33,7 +32,7 @@ import {
|
|
|
33
32
|
import {
|
|
34
33
|
jsonSchemaFields,
|
|
35
34
|
toJsonSchema
|
|
36
|
-
} from "../index-
|
|
35
|
+
} from "../index-frfyw9fa.js";
|
|
37
36
|
import {
|
|
38
37
|
isWithinDir
|
|
39
38
|
} from "../index-x3fcszf8.js";
|
|
@@ -59,7 +58,28 @@ import {
|
|
|
59
58
|
resolveTraceId,
|
|
60
59
|
unauthorized,
|
|
61
60
|
zodIssues
|
|
62
|
-
} from "../index-
|
|
61
|
+
} from "../index-e497hxcy.js";
|
|
62
|
+
// src/server/bun.ts
|
|
63
|
+
function createServer(config) {
|
|
64
|
+
const { routes, websocket, development, bun: bunExtra, port = 3000, hostname } = config;
|
|
65
|
+
const handler = createHandler(config);
|
|
66
|
+
const fetch = config.wrapFetch ? config.wrapFetch(handler) : handler;
|
|
67
|
+
return websocket ? Bun.serve({
|
|
68
|
+
...bunExtra,
|
|
69
|
+
...routes && { routes },
|
|
70
|
+
...development && { development },
|
|
71
|
+
port,
|
|
72
|
+
hostname,
|
|
73
|
+
websocket,
|
|
74
|
+
fetch
|
|
75
|
+
}) : Bun.serve({
|
|
76
|
+
...bunExtra,
|
|
77
|
+
...development && { development },
|
|
78
|
+
port,
|
|
79
|
+
hostname,
|
|
80
|
+
fetch
|
|
81
|
+
});
|
|
82
|
+
}
|
|
63
83
|
// src/server/swept-map.ts
|
|
64
84
|
function createSweptMap(options) {
|
|
65
85
|
const store = new Map;
|
package/dist/server/logger.d.ts
CHANGED
|
@@ -10,10 +10,10 @@ export declare function elapsedMs(startTime: number): number;
|
|
|
10
10
|
/** Map an HTTP status to a log level. */
|
|
11
11
|
export declare function levelForStatus(status: number): 'error' | 'warn' | 'info';
|
|
12
12
|
/**
|
|
13
|
-
* The structured fields shared by every completed-request log line.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* The structured fields shared by every completed-request log line. A missing
|
|
14
|
+
* framework error code is omitted only for an error response, where `enrich`
|
|
15
|
+
* may supply the code a raw `Response` cannot communicate to the framework.
|
|
16
|
+
* Successes retain `errorCode: undefined`, so enrichment cannot forge a failure.
|
|
17
17
|
*/
|
|
18
18
|
export declare function buildLogFields(method: string, path: string, status: number, durationMs: number, traceId: string, errorCode?: string): {
|
|
19
19
|
traceId: string;
|
|
@@ -21,7 +21,7 @@ export declare function buildLogFields(method: string, path: string, status: num
|
|
|
21
21
|
path: string;
|
|
22
22
|
status: number;
|
|
23
23
|
durationMs: number;
|
|
24
|
-
errorCode
|
|
24
|
+
errorCode?: string;
|
|
25
25
|
};
|
|
26
26
|
export interface RequestLog {
|
|
27
27
|
traceId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/server/logger.ts"],"names":[],"mappings":"AAqCA,0CAA0C;AAC1C,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE1C;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,CAGlE;AAaD,6DAA6D;AAC7D,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEnD;AAoBD,yCAAyC;AACzC,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAIxE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM,GACjB;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/server/logger.ts"],"names":[],"mappings":"AAqCA,0CAA0C;AA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;AAED,uDAAuD;AACvD,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,UAAU,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,UAAU,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAyBzD"}
|
package/dist/server/logging.d.ts
CHANGED
|
@@ -16,5 +16,8 @@ export declare function shouldSkipLog(config: LoggingConfig, req: Request, url:
|
|
|
16
16
|
* the cost of observability that was never wired is one `AsyncLocalStorage`
|
|
17
17
|
* lookup.
|
|
18
18
|
*/
|
|
19
|
-
export declare function collectExtraLogFields(config: LoggingConfig, req: Request, url: URL, outcome: LogOutcome):
|
|
19
|
+
export declare function collectExtraLogFields(config: LoggingConfig, req: Request, url: URL, outcome: LogOutcome): {
|
|
20
|
+
fields: Record<string, unknown>;
|
|
21
|
+
enrichKeys: string[];
|
|
22
|
+
};
|
|
20
23
|
//# sourceMappingURL=logging.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/server/logging.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAmBzD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,GAAG,aAAa,GAAG,IAAI,CAU3F;AAED,wEAAwE;AACxE,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAQpF;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,aAAa,EACrB,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,UAAU,GAClB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/server/logging.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAmBzD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,GAAG,aAAa,GAAG,IAAI,CAU3F;AAED,wEAAwE;AACxE,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAQpF;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,aAAa,EACrB,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,UAAU,GAClB;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,CA6B3D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RuntimeContext } from '../../contract';
|
|
2
|
-
import type {
|
|
2
|
+
import type { OperationIdentity } from '../types';
|
|
3
3
|
export interface JwtPayload {
|
|
4
4
|
[key: string]: unknown;
|
|
5
5
|
}
|
|
@@ -62,7 +62,7 @@ export interface AuthHookConfig<TIdentity> {
|
|
|
62
62
|
/** Thrown when an identity is present but the rule rejects it. */
|
|
63
63
|
onForbidden?: () => never;
|
|
64
64
|
}
|
|
65
|
-
export type AuthHook = (ctx: RuntimeContext, endpoint:
|
|
65
|
+
export type AuthHook = (ctx: RuntimeContext, endpoint: OperationIdentity) => Promise<void>;
|
|
66
66
|
/**
|
|
67
67
|
* Build a `beforeHandle` hook that enforces `endpoint.scope`.
|
|
68
68
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/server/middleware/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAKrD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/server/middleware/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAKrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGlD,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,8BAA8B;AAC9B,MAAM,WAAW,gBAAgB;IAC/B,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAKD,wBAAsB,SAAS,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,UAAU,CAAC,CAgErB;AAED,4BAA4B;AAC5B,MAAM,WAAW,cAAc;IAC7B,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mBAAmB;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAsB,OAAO,CAC3B,OA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F;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,QAAQ,CAgCrF;AAID;;;;GAIG;AACH,MAAM,WAAW,oBAAoB,CAAC,SAAS;IAC7C,4EAA4E;IAC5E,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;CACpE;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAC5C,MAAM,EAAE,oBAAoB,CAAC,SAAS,CAAC,GACtC,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAM7C"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function assertJsonBodyLimit(maxBytes: number | undefined, owner: string): void;
|
|
2
|
+
/** Read UTF-8 request text, optionally stopping before a configured byte cap is exceeded. */
|
|
3
|
+
export declare function readRequestText(req: Request, maxBytes?: number): Promise<string>;
|
|
4
|
+
//# sourceMappingURL=request-body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-body.d.ts","sourceRoot":"","sources":["../../src/server/request-body.ts"],"names":[],"mappings":"AAEA,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAIrF;AAED,6FAA6F;AAC7F,wBAAsB,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BtF"}
|
package/dist/server/router.d.ts
CHANGED
|
@@ -53,9 +53,9 @@ export interface ShadowedRoute {
|
|
|
53
53
|
* built from each contract route, so it can never disagree with what the
|
|
54
54
|
* dispatcher actually does.
|
|
55
55
|
*/
|
|
56
|
-
export declare function findShadowedRoutes(routeMap: RouteMap, rawRoutes: RawRoute[] | undefined): ShadowedRoute[];
|
|
57
|
-
export declare function matchRawRoute(rawRoutes: RawRoute[], httpMethod: string, pathname: string): {
|
|
58
|
-
route: RawRoute
|
|
56
|
+
export declare function findShadowedRoutes<TServer>(routeMap: RouteMap, rawRoutes: RawRoute<TServer>[] | undefined): ShadowedRoute[];
|
|
57
|
+
export declare function matchRawRoute<TServer>(rawRoutes: RawRoute<TServer>[], httpMethod: string, pathname: string): {
|
|
58
|
+
route: RawRoute<TServer>;
|
|
59
59
|
params: Record<string, string>;
|
|
60
60
|
} | null;
|
|
61
61
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/server/router.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE/E,4EAA4E;AAC5E,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAED,UAAU,UAAU;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,+EAA+E;AAC/E,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;AAEjD,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAqCD,wBAAgB,aAAa,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,CAmCjE;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EA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|
|
1
|
+
/** Runtime-neutral Socket.IO configuration shared by Bun and Node adapters. */
|
|
2
|
+
import type { ServerOptions } from 'socket.io';
|
|
3
|
+
export interface SocketIOServerConfig {
|
|
4
|
+
/** CORS — the browser origin(s) allowed to open a socket. */
|
|
5
|
+
cors: {
|
|
6
|
+
origin: string | string[];
|
|
7
|
+
credentials?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/** Socket.IO endpoint path. Default `/socket.io/`. */
|
|
10
|
+
path?: string;
|
|
11
|
+
/** Transports offered to clients; the runtime supplies its own default. */
|
|
12
|
+
transports?: Array<'websocket' | 'polling'>;
|
|
13
|
+
/** Heartbeat: ms without a pong before the connection is dropped. */
|
|
14
|
+
pingTimeout?: number;
|
|
15
|
+
/** Heartbeat: ms between pings. */
|
|
16
|
+
pingInterval?: number;
|
|
17
|
+
/** Typed Socket.IO options not owned by this wrapper. */
|
|
18
|
+
serverOptions?: Partial<ServerOptions>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=socket-io-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"socket-io-config.d.ts","sourceRoot":"","sources":["../../src/server/socket-io-config.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,oBAAoB;IACnC,6DAA6D;IAC7D,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAC3D,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,UAAU,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAC5C,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Node-facing Socket.IO surface without Bun engine declarations. */
|
|
2
|
+
import type { Server as HttpServer } from 'node:http';
|
|
3
|
+
import type { Server as SocketIOServer } from 'socket.io';
|
|
4
|
+
import type { SocketEventMap } from '../browser/socket-io';
|
|
5
|
+
import type { SocketIOServerConfig } from './socket-io-config';
|
|
6
|
+
export type { SocketIOServerConfig } from './socket-io-config';
|
|
7
|
+
/** The runtime-neutral part of a Socket.IO handle used by `serveNode`. */
|
|
8
|
+
export interface NodeSocketIOServerHandle<TServerEvents extends SocketEventMap, TClientEvents extends SocketEventMap> {
|
|
9
|
+
io: SocketIOServer<TClientEvents, TServerEvents>;
|
|
10
|
+
attach(server: HttpServer): void;
|
|
11
|
+
}
|
|
12
|
+
/** Create a Socket.IO handle typed only for the Node capabilities it exposes. */
|
|
13
|
+
export declare function createNodeSocketIOServer<TServerEvents extends SocketEventMap, TClientEvents extends SocketEventMap>(config: SocketIOServerConfig): Promise<NodeSocketIOServerHandle<TServerEvents, TClientEvents>>;
|
|
14
|
+
//# sourceMappingURL=socket-io-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"socket-io-node.d.ts","sourceRoot":"","sources":["../../src/server/socket-io-node.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,0EAA0E;AAC1E,MAAM,WAAW,wBAAwB,CACvC,aAAa,SAAS,cAAc,EACpC,aAAa,SAAS,cAAc;IAEpC,EAAE,EAAE,cAAc,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IACjD,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;CAClC;AAED,iFAAiF;AACjF,wBAAsB,wBAAwB,CAC5C,aAAa,SAAS,cAAc,EACpC,aAAa,SAAS,cAAc,EAEpC,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,wBAAwB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,CAEjE"}
|
|
@@ -17,40 +17,13 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import type { Server as HttpServer } from 'node:http';
|
|
19
19
|
import type { Server as BunEngine } from '@socket.io/bun-engine';
|
|
20
|
-
import type {
|
|
20
|
+
import type { Server as SocketIOServer } from 'socket.io';
|
|
21
21
|
import type { SocketEventMap } from '../browser/socket-io';
|
|
22
|
+
import type { BunServer } from './bun';
|
|
23
|
+
import type { SocketIOServerConfig } from './socket-io-config';
|
|
22
24
|
import type { RawRoute } from './types';
|
|
23
25
|
import { type ComposedLane } from './websocket';
|
|
24
|
-
export
|
|
25
|
-
/** CORS — the browser origin(s) allowed to open a socket. */
|
|
26
|
-
cors: {
|
|
27
|
-
origin: string | string[];
|
|
28
|
-
credentials?: boolean;
|
|
29
|
-
};
|
|
30
|
-
/** Socket.IO endpoint path. Default `/socket.io/`. */
|
|
31
|
-
path?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Transports offered to clients. Default `['websocket', 'polling']` on Bun;
|
|
34
|
-
* on Node the default is `['websocket']` — Socket.IO shares the HTTP server
|
|
35
|
-
* with srvx there, so its polling request-handler would collide with srvx's;
|
|
36
|
-
* WebSocket uses the separate `upgrade` event and does not. Configure the
|
|
37
|
-
* client with `transports: ['websocket']` to match.
|
|
38
|
-
*/
|
|
39
|
-
transports?: Array<'websocket' | 'polling'>;
|
|
40
|
-
/** Heartbeat: ms without a pong before the connection is dropped. Default `20000`. */
|
|
41
|
-
pingTimeout?: number;
|
|
42
|
-
/** Heartbeat: ms between pings. Default `10000`. */
|
|
43
|
-
pingInterval?: number;
|
|
44
|
-
/**
|
|
45
|
-
* Typed passthrough for any other Socket.IO `ServerOptions` the wrapper does
|
|
46
|
-
* not own — `maxHttpBufferSize` (raise above the 1 MB default for large
|
|
47
|
-
* emits), `connectionStateRecovery`, `perMessageDeflate`, `connectTimeout`, …
|
|
48
|
-
* Mirrors the `bun` passthrough on `createServer`. The wrapper-owned fields
|
|
49
|
-
* (`cors` / `path` / `transports` / `pingTimeout` / `pingInterval`) take
|
|
50
|
-
* precedence over the same keys here, so transport integration stays correct.
|
|
51
|
-
*/
|
|
52
|
-
serverOptions?: Partial<ServerOptions>;
|
|
53
|
-
}
|
|
26
|
+
export type { SocketIOServerConfig } from './socket-io-config';
|
|
54
27
|
export interface SocketIOServerHandle<TServerEvents extends SocketEventMap, TClientEvents extends SocketEventMap> {
|
|
55
28
|
/** The typed Socket.IO server — attach `io.on('connection', ...)` handlers. */
|
|
56
29
|
io: SocketIOServer<TClientEvents, TServerEvents>;
|
|
@@ -67,7 +40,7 @@ export interface SocketIOServerHandle<TServerEvents extends SocketEventMap, TCli
|
|
|
67
40
|
* and throws if it is ever mounted — so it is safe to spread into `rawRoutes`
|
|
68
41
|
* unconditionally on either runtime.
|
|
69
42
|
*/
|
|
70
|
-
route: RawRoute
|
|
43
|
+
route: RawRoute<BunServer>;
|
|
71
44
|
/**
|
|
72
45
|
* Node only — attach the Socket.IO server to the `node:http.Server` from
|
|
73
46
|
* `serveNode`. A no-op on Bun (the engine + route handle transport there).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socket-io.d.ts","sourceRoot":"","sources":["../../src/server/socket-io.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,KAAK,EACV,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