stitchkit 0.90.7 → 0.91.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/CHANGELOG.md +107 -0
- package/dist/agent-runtime-coding-tools.js +4 -4
- package/dist/agent-runtime-harness.js +6 -6
- package/dist/agent-runtime-sandbox.js +4 -4
- package/dist/agent-runtime.js +18 -17
- package/dist/application-grammy.js +1 -1
- package/dist/application.js +3 -3
- package/dist/cli.js +7 -7
- package/dist/contract/errors-factory.d.ts +12 -0
- package/dist/contract/errors-factory.d.ts.map +1 -1
- package/dist/contract/errors.d.ts +35 -1
- package/dist/contract/errors.d.ts.map +1 -1
- package/dist/contract/index.d.ts +1 -1
- package/dist/contract/index.d.ts.map +1 -1
- package/dist/contract/index.js +4 -2
- package/dist/{index-nrqg8tks.js → index-0a349c33.js} +3 -3
- package/dist/index-0j3vcp5m.js +28 -0
- package/dist/{index-vy2nxwg8.js → index-137jjs4v.js} +2 -2
- package/dist/{index-2hryh65w.js → index-13cjtmrw.js} +54 -13
- package/dist/{index-7gqx71yd.js → index-13e1k7v9.js} +9 -3
- package/dist/{index-1bnkzq95.js → index-1qvdwnp2.js} +10 -3
- package/dist/{index-scs3f1eg.js → index-2vtcmrj9.js} +8 -2
- package/dist/{index-xbppf54a.js → index-6kyksz9y.js} +12 -7
- package/dist/{index-aj9geeez.js → index-709nh7z7.js} +37 -17
- package/dist/{index-zkcqhxx8.js → index-a11g2kry.js} +1 -1
- package/dist/{index-1txvygak.js → index-b971qjes.js} +1 -1
- package/dist/{index-tgh3ksfh.js → index-bh70rk41.js} +3 -3
- package/dist/{index-bva395we.js → index-bv7mytab.js} +2 -2
- package/dist/{index-s208wab5.js → index-bx6yq2m4.js} +23 -495
- package/dist/{index-83fafqw8.js → index-f4p4b8f6.js} +10 -11
- package/dist/index-kw9t5ayn.js +507 -0
- package/dist/{index-8pjqv3zh.js → index-mqhjmadk.js} +43 -21
- package/dist/{index-3yqgj323.js → index-qjeyx5t2.js} +2 -2
- package/dist/{index-gte38nbm.js → index-qmy6zq75.js} +1 -1
- package/dist/{index-zsdgd1tz.js → index-qrbdq8jk.js} +1 -1
- package/dist/{index-fqg5mfk7.js → index-ya611vx3.js} +4 -4
- package/dist/{index-640tz39q.js → index-zsqy3xfn.js} +5 -5
- package/dist/index.js +8 -6
- package/dist/internal/canonical-json.d.ts +20 -0
- package/dist/internal/canonical-json.d.ts.map +1 -0
- package/dist/internal/errors.d.ts +13 -4
- package/dist/internal/errors.d.ts.map +1 -1
- package/dist/node.js +6 -6
- package/dist/observability/bounded-logger.d.ts +2 -0
- package/dist/observability/bounded-logger.d.ts.map +1 -1
- package/dist/observability/index.js +7 -4
- package/dist/observability/sanitize.d.ts +15 -0
- package/dist/observability/sanitize.d.ts.map +1 -1
- package/dist/primitives.js +2 -2
- package/dist/realtime/rejected-frame.d.ts +6 -0
- package/dist/realtime/rejected-frame.d.ts.map +1 -1
- package/dist/remote.js +5 -5
- package/dist/server/implement.d.ts +33 -7
- package/dist/server/implement.d.ts.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +8 -8
- package/dist/testing/surface-manifest.d.ts +2 -1
- package/dist/testing/surface-manifest.d.ts.map +1 -1
- package/dist/testing.js +11 -27
- package/dist/tool-invoker.js +6 -6
- package/dist/tools/agent.d.ts +12 -0
- package/dist/tools/agent.d.ts.map +1 -1
- package/dist/tools/cli-format.d.ts +1 -1
- package/dist/tools/connections/index.js +1 -1
- package/dist/tools/durability-context.d.ts +1 -1
- package/dist/tools/durability-context.d.ts.map +1 -1
- package/dist/tools/durability-port.d.ts +55 -0
- package/dist/tools/durability-port.d.ts.map +1 -0
- package/dist/tools/execute.d.ts +59 -1
- package/dist/tools/execute.d.ts.map +1 -1
- package/dist/tools/mcp-catalog.d.ts +68 -0
- package/dist/tools/mcp-catalog.d.ts.map +1 -0
- package/dist/tools/mcp.d.ts +3 -0
- package/dist/tools/mcp.d.ts.map +1 -1
- package/dist/tools/mount.d.ts +2 -2
- package/dist/tools/mount.d.ts.map +1 -1
- package/dist/tools/native-mcp.d.ts +3 -0
- package/dist/tools/native-mcp.d.ts.map +1 -1
- package/dist/tools/runtime-tool.d.ts +1 -1
- package/dist/tools/runtime-tool.d.ts.map +1 -1
- package/dist/tools.d.ts +5 -0
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +99 -20
- package/dist/tracking.js +2 -2
- package/llms-full.txt +258 -8
- package/package.json +2 -2
- package/dist/index-7rkhw9ec.js +0 -34
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
} from "./index-sbdmyz75.js";
|
|
4
4
|
import {
|
|
5
5
|
collectToolSurface
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-qrbdq8jk.js";
|
|
7
7
|
import {
|
|
8
8
|
createToolRunner,
|
|
9
9
|
formatToolError
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-1qvdwnp2.js";
|
|
11
11
|
import {
|
|
12
12
|
toolErrorFromResult,
|
|
13
13
|
toolResultFromError
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-mqhjmadk.js";
|
|
15
15
|
import {
|
|
16
16
|
formatZodError,
|
|
17
17
|
validateDeclaredOutput
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-13cjtmrw.js";
|
|
19
19
|
import {
|
|
20
20
|
coerceJsonArgs
|
|
21
21
|
} from "./index-7zbps32p.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
createValidatedRealtimeSocket,
|
|
12
12
|
isModuleNotFound
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-13e1k7v9.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_PROCESS_SIGNALS,
|
|
16
16
|
RUNTIME_CONTEXT_RESERVED_KEYS,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
isOriginAllowed,
|
|
23
23
|
mediaTypeEssence,
|
|
24
24
|
reportSignalError
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-709nh7z7.js";
|
|
26
26
|
import {
|
|
27
27
|
getRequestContext,
|
|
28
28
|
runWithRequestContext,
|
|
@@ -41,12 +41,12 @@ import {
|
|
|
41
41
|
normalizeError,
|
|
42
42
|
recordedErrorMessage,
|
|
43
43
|
validateDeclaredOutput
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-13cjtmrw.js";
|
|
45
45
|
import {
|
|
46
46
|
DEFAULT_CONTRACT_STREAM_FRAME_BYTES,
|
|
47
47
|
joinRoutePath,
|
|
48
48
|
parseTrailingWildcard
|
|
49
|
-
} from "./index-
|
|
49
|
+
} from "./index-0a349c33.js";
|
|
50
50
|
import {
|
|
51
51
|
resolveTraceContext
|
|
52
52
|
} from "./index-zcgf3gqf.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
AppError,
|
|
55
55
|
badRequest,
|
|
56
56
|
forbidden
|
|
57
|
-
} from "./index-
|
|
57
|
+
} from "./index-2vtcmrj9.js";
|
|
58
58
|
import {
|
|
59
59
|
isUnsafeKey,
|
|
60
60
|
safeJsonParse
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
createUrlBuilder,
|
|
16
16
|
createUrlBuilders,
|
|
17
17
|
parseNDJSON
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-137jjs4v.js";
|
|
19
19
|
import {
|
|
20
20
|
REALTIME_REJECTION_KEY,
|
|
21
21
|
asRealtimeRejection,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isModuleNotFound,
|
|
24
24
|
parseRealtimeRequestAcknowledgement,
|
|
25
25
|
parseRealtimeRequestArguments
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-13e1k7v9.js";
|
|
27
27
|
import {
|
|
28
28
|
RealtimeRequestDisconnectedError,
|
|
29
29
|
RealtimeRequestInvalidAcknowledgementError,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
} from "./index-2qzskm8h.js";
|
|
35
35
|
import {
|
|
36
36
|
parseSSE
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-b971qjes.js";
|
|
38
38
|
import {
|
|
39
39
|
LiveStateControllerStatusSchema,
|
|
40
40
|
LiveStatePhaseSchema,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
import {
|
|
50
50
|
formatZodError,
|
|
51
51
|
zodIssues
|
|
52
|
-
} from "./index-
|
|
52
|
+
} from "./index-13cjtmrw.js";
|
|
53
53
|
import {
|
|
54
54
|
ALL_TRANSPORTS,
|
|
55
55
|
ContractStreamFrameSchema,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
defineErrors,
|
|
61
61
|
encodeCursor,
|
|
62
62
|
paginatedSchema
|
|
63
|
-
} from "./index-
|
|
63
|
+
} from "./index-0a349c33.js";
|
|
64
64
|
import"./index-rxfy4cq7.js";
|
|
65
65
|
import {
|
|
66
66
|
ManagedFilePathSchema,
|
|
@@ -80,11 +80,12 @@ import {
|
|
|
80
80
|
badRequest,
|
|
81
81
|
conflict,
|
|
82
82
|
forbidden,
|
|
83
|
+
isRetryableStatus,
|
|
83
84
|
isStitchErrorCode,
|
|
84
85
|
notFound,
|
|
85
86
|
rateLimited,
|
|
86
87
|
unauthorized
|
|
87
|
-
} from "./index-
|
|
88
|
+
} from "./index-2vtcmrj9.js";
|
|
88
89
|
import"./index-kzfs85xp.js";
|
|
89
90
|
import"./index-77fekveh.js";
|
|
90
91
|
// src/retained.ts
|
|
@@ -579,6 +580,7 @@ export {
|
|
|
579
580
|
paginatedSchema,
|
|
580
581
|
notFound,
|
|
581
582
|
isStitchErrorCode,
|
|
583
|
+
isRetryableStatus,
|
|
582
584
|
formatZodError,
|
|
583
585
|
formatTraceparent,
|
|
584
586
|
forbidden,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Codepoint order, not locale order.
|
|
3
|
+
*
|
|
4
|
+
* `Array.prototype.sort` without a comparator is codepoint order already, but
|
|
5
|
+
* `localeCompare` is what a reader reaches for — and it would make a digest
|
|
6
|
+
* depend on the machine's locale, which is the one input a fingerprint must
|
|
7
|
+
* never have.
|
|
8
|
+
*/
|
|
9
|
+
export declare function compareCodepoints(left: string, right: string): number;
|
|
10
|
+
/**
|
|
11
|
+
* Canonical bytes for a JSON value — object keys sorted, array order kept.
|
|
12
|
+
*
|
|
13
|
+
* The single serialisation behind every digest this repository takes of a
|
|
14
|
+
* declared surface: the committed manifest snapshot and the live MCP catalog
|
|
15
|
+
* stamp. Two implementations of "the same bytes" would eventually disagree,
|
|
16
|
+
* and a fingerprint that disagrees with itself reports drift that never
|
|
17
|
+
* happened.
|
|
18
|
+
*/
|
|
19
|
+
export declare function serializeCanonicalJson(value: unknown): string;
|
|
20
|
+
//# sourceMappingURL=canonical-json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canonical-json.d.ts","sourceRoot":"","sources":["../../src/internal/canonical-json.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAIrE;AAYD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAE7D"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type ZodType, z } from 'zod';
|
|
2
2
|
import { AppError } from '../contract/index.js';
|
|
3
|
-
export declare function formatZodError(error: z.ZodError): string;
|
|
4
3
|
/** One field-level validation issue — the structured sibling of `formatZodError`. */
|
|
5
4
|
export interface ZodIssueSummary {
|
|
6
5
|
/** Dotted path to the offending field (`(root)` for a top-level issue). */
|
|
@@ -9,14 +8,24 @@ export interface ZodIssueSummary {
|
|
|
9
8
|
code: string;
|
|
10
9
|
/** Human-readable message for this field. */
|
|
11
10
|
message: string;
|
|
11
|
+
/**
|
|
12
|
+
* 1-based index of the union branch that produced this issue, counted within
|
|
13
|
+
* the nearest enclosing union. Absent when no union was involved.
|
|
14
|
+
*/
|
|
15
|
+
branch?: number;
|
|
12
16
|
}
|
|
13
17
|
/**
|
|
14
18
|
* Project a `ZodError` into structured, wire-safe field issues — path / code /
|
|
15
|
-
* message
|
|
16
|
-
* fields rather than parsing the text
|
|
17
|
-
* that bounds response size slices it
|
|
19
|
+
* message (and a union branch, where one applies) — nothing server-internal.
|
|
20
|
+
* For a machine client that matches on fields rather than parsing the text
|
|
21
|
+
* `message`. Returns every issue; a caller that bounds response size slices it
|
|
22
|
+
* (see `normalizeError`).
|
|
23
|
+
*
|
|
24
|
+
* A failed union contributes its own issue AND one issue per branch failure, so
|
|
25
|
+
* the refusal names the branch and the path instead of only `(root)`.
|
|
18
26
|
*/
|
|
19
27
|
export declare function zodIssues(error: z.ZodError): ZodIssueSummary[];
|
|
28
|
+
export declare function formatZodError(error: z.ZodError): string;
|
|
20
29
|
/**
|
|
21
30
|
* The stable error code for a thrown value — `AppError.code`, `VALIDATION_ERROR`
|
|
22
31
|
* for a `ZodError`, else `undefined`. Side-effect-free (unlike `normalizeError`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/internal/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAQvC,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/internal/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAQvC,qFAAqF;AACrF,MAAM,WAAW,eAAe;IAC9B,2EAA2E;I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AAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAe9D"}
|
package/dist/node.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
createHandler,
|
|
6
6
|
createSocketIOServer,
|
|
7
7
|
createUnixClientTransport
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-zsqy3xfn.js";
|
|
9
9
|
import"./index-y91ry9h2.js";
|
|
10
10
|
import {
|
|
11
11
|
ShutdownOptionsSchema,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
ShutdownStatusSchema,
|
|
15
15
|
createServerLifecycle
|
|
16
16
|
} from "./index-3z73fh2c.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-13e1k7v9.js";
|
|
18
18
|
import"./index-2qzskm8h.js";
|
|
19
19
|
import {
|
|
20
20
|
createImplement,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
createScopedImplementRegistry,
|
|
25
25
|
implement,
|
|
26
26
|
implementRegistry
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-709nh7z7.js";
|
|
28
28
|
import"./index-vsbzgd7b.js";
|
|
29
29
|
import"./index-f9mb610r.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-13cjtmrw.js";
|
|
31
|
+
import"./index-0a349c33.js";
|
|
32
32
|
import"./index-rxfy4cq7.js";
|
|
33
33
|
import"./index-6k1937bx.js";
|
|
34
34
|
import"./index-zcgf3gqf.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
notFound,
|
|
42
42
|
rateLimited,
|
|
43
43
|
unauthorized
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-2vtcmrj9.js";
|
|
45
45
|
import"./index-kzfs85xp.js";
|
|
46
46
|
import"./index-77fekveh.js";
|
|
47
47
|
// src/server/node.ts
|
|
@@ -2,6 +2,8 @@ import type { StitchLogger } from '../logger.js';
|
|
|
2
2
|
export declare const DEFAULT_REDACT_PATHS: readonly string[];
|
|
3
3
|
export interface BoundedLoggerBounds {
|
|
4
4
|
readonly stringLength?: number;
|
|
5
|
+
/** A string bound for particular keys, wherever they sit — see `SanitizeOptions.maxStringLengthByKey`. */
|
|
6
|
+
readonly stringLengthByKey?: Readonly<Record<string, number>>;
|
|
5
7
|
readonly collectionLength?: number;
|
|
6
8
|
readonly depth?: number;
|
|
7
9
|
readonly entryBytes?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bounded-logger.d.ts","sourceRoot":"","sources":["../../src/observability/bounded-logger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAI9C,eAAO,MAAM,oBAAoB,mBAW/B,CAAC;AAEH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE;QAChB,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;QACnC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,QAAQ,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACnD;AAwDD,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"bounded-logger.d.ts","sourceRoot":"","sources":["../../src/observability/bounded-logger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAI9C,eAAO,MAAM,oBAAoB,mBAW/B,CAAC;AAEH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,0GAA0G;IAC1G,QAAQ,CAAC,iBAAiB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9D,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE;QAChB,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;QACnC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,QAAQ,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACnD;AAwDD,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,GAAG,YAAY,CAiD/E"}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
redact,
|
|
13
13
|
sanitizePayload,
|
|
14
14
|
truncatePreview
|
|
15
|
-
} from "../index-
|
|
15
|
+
} from "../index-6kyksz9y.js";
|
|
16
16
|
import {
|
|
17
17
|
getRequestContext,
|
|
18
18
|
getTraceId,
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
import"../index-f9mb610r.js";
|
|
28
28
|
import {
|
|
29
29
|
recordedErrorMessage
|
|
30
|
-
} from "../index-
|
|
31
|
-
import"../index-
|
|
30
|
+
} from "../index-13cjtmrw.js";
|
|
31
|
+
import"../index-0a349c33.js";
|
|
32
32
|
import"../index-rxfy4cq7.js";
|
|
33
33
|
import"../index-6k1937bx.js";
|
|
34
34
|
import {
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
resolvePropagationContext,
|
|
40
40
|
resolveTraceContext
|
|
41
41
|
} from "../index-zcgf3gqf.js";
|
|
42
|
-
import"../index-
|
|
42
|
+
import"../index-2vtcmrj9.js";
|
|
43
43
|
import"../index-kzfs85xp.js";
|
|
44
44
|
import {
|
|
45
45
|
isRecord
|
|
@@ -346,6 +346,9 @@ function createBoundedLogger(options) {
|
|
|
346
346
|
],
|
|
347
347
|
sensitiveUrlPatterns: options.sensitiveUrlPatterns,
|
|
348
348
|
maxStringLength: options.bounds?.stringLength ?? 4000,
|
|
349
|
+
...options.bounds?.stringLengthByKey !== undefined && {
|
|
350
|
+
maxStringLengthByKey: options.bounds.stringLengthByKey
|
|
351
|
+
},
|
|
349
352
|
maxCollectionLength: options.bounds?.collectionLength ?? 100,
|
|
350
353
|
maxDepth: options.bounds?.depth ?? 6,
|
|
351
354
|
maxBytes: entryBytes
|
|
@@ -23,6 +23,21 @@ export interface SanitizeOptions {
|
|
|
23
23
|
maxDepth?: number;
|
|
24
24
|
/** Maximum UTF-16 string length before an explicit truncation marker. */
|
|
25
25
|
maxStringLength?: number;
|
|
26
|
+
/**
|
|
27
|
+
* A string bound for particular KEYS, wherever they sit, without changing the
|
|
28
|
+
* bound for everything else.
|
|
29
|
+
*
|
|
30
|
+
* Keyed by name rather than by path on purpose: an error's `stack` is at the
|
|
31
|
+
* top of one record and under `errorDetail` in the next, and its ceiling is
|
|
32
|
+
* the same in both places — the question is "what is this field", not "where
|
|
33
|
+
* is it". One bound for the whole record cuts a stack from the bottom, which
|
|
34
|
+
* is exactly where the consumer's own frames are; a cheap fix is to raise the
|
|
35
|
+
* ceiling for `stack` alone. The byte ceiling (`maxBytes` in `sanitizePayload`,
|
|
36
|
+
* `entryBytes` in the bounded logger) remains the last word: a record that
|
|
37
|
+
* does not fit still collapses, but the decision is made for the record, not
|
|
38
|
+
* pre-empted by cutting one field short.
|
|
39
|
+
*/
|
|
40
|
+
maxStringLengthByKey?: Readonly<Record<string, number>>;
|
|
26
41
|
/** Maximum members retained from an array, map, set, or object. */
|
|
27
42
|
maxCollectionLength?: number;
|
|
28
43
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/observability/sanitize.ts"],"names":[],"mappings":"AAOA,8EAA8E;AAC9E,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEjC,+CAA+C;AAC/C,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wEAAwE;IACxE,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,8EAA8E;IAC9E,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,uFAAuF;IACvF,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,mCAAmC;AACnC,MAAM,WAAW,WAAW;IAC1B,wEAAwE;IACxE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,8BAA8B;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,wEAAwE;IACxE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,CAAC;CACvB;AAyED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAE,eAAoB,GAAG,SAAS,CAsM/E;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,SAAoB,GAAG,SAAS,CAgBzF;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,OAAO,EACd,OAAO,GAAE,eAAoB,GAC5B,SAAS,GAAG,IAAI,CAOlB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAqBvD"}
|
package/dist/primitives.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"./index-
|
|
1
|
+
import"./index-0a349c33.js";
|
|
2
2
|
import"./index-rxfy4cq7.js";
|
|
3
3
|
import {
|
|
4
4
|
ManagedFileRefSchema
|
|
5
5
|
} from "./index-6k1937bx.js";
|
|
6
|
-
import"./index-
|
|
6
|
+
import"./index-2vtcmrj9.js";
|
|
7
7
|
import"./index-kzfs85xp.js";
|
|
8
8
|
import"./index-77fekveh.js";
|
|
9
9
|
|
|
@@ -39,6 +39,12 @@ export interface RealtimeRejectionIssue {
|
|
|
39
39
|
path: string;
|
|
40
40
|
code: string;
|
|
41
41
|
message: string;
|
|
42
|
+
/**
|
|
43
|
+
* The union branch the issue came from, when the refused field was a union.
|
|
44
|
+
* Without it a refused union reports only its own position and the word
|
|
45
|
+
* `invalid_union`, which names no field at all.
|
|
46
|
+
*/
|
|
47
|
+
branch?: number;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* At most this many issues travel; a refusal is a signal, not a report.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rejected-frame.d.ts","sourceRoot":"","sources":["../../src/realtime/rejected-frame.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,iCAAiC,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC;;;;;;;;;GASG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;;;;OAWG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,yBAAyB;IACxC,CAAC,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;CACnD;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,uBAAuB,GAC9B,yBAAyB,CAE3B;AAED,gFAAgF;AAChF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,uBAAuB,GAAG,IAAI,CAgBlF"}
|
|
1
|
+
{"version":3,"file":"rejected-frame.d.ts","sourceRoot":"","sources":["../../src/realtime/rejected-frame.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,iCAAiC,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC;;;;;;;;;GASG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;;;;OAWG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,yBAAyB;IACxC,CAAC,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;CACnD;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,uBAAuB,GAC9B,yBAAyB,CAE3B;AAED,gFAAgF;AAChF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,uBAAuB,GAAG,IAAI,CAgBlF"}
|
package/dist/remote.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient
|
|
3
|
-
} from "./index-
|
|
4
|
-
import"./index-
|
|
3
|
+
} from "./index-137jjs4v.js";
|
|
4
|
+
import"./index-b971qjes.js";
|
|
5
5
|
import {
|
|
6
6
|
ApiError
|
|
7
7
|
} from "./index-3xwxfj4z.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-13cjtmrw.js";
|
|
9
9
|
import {
|
|
10
10
|
mergeMeta,
|
|
11
11
|
resolveRouteParamsSchema
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-0a349c33.js";
|
|
13
13
|
import"./index-rxfy4cq7.js";
|
|
14
14
|
import"./index-6k1937bx.js";
|
|
15
15
|
import"./index-zcgf3gqf.js";
|
|
16
16
|
import {
|
|
17
17
|
AppError
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-2vtcmrj9.js";
|
|
19
19
|
import"./index-kzfs85xp.js";
|
|
20
20
|
import {
|
|
21
21
|
isRecord
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ZodType } from 'zod';
|
|
2
|
-
import type
|
|
2
|
+
import { type ContractDef, type EndpointDef, type MultipartDescriptor, type RuntimeContext } from '../contract/index.js';
|
|
3
3
|
import type { EndpointHandlerContext, Handlers, MultipartReceiver, ScopeContexts, ScopedHandlers, ServiceDef, StreamingMultipartImplementation } from './types.js';
|
|
4
4
|
type StreamingEndpoint = EndpointDef & {
|
|
5
5
|
multipart: MultipartDescriptor & {
|
|
@@ -58,13 +58,39 @@ export declare function createMultipartStream<TCtx extends RuntimeContext>(): <c
|
|
|
58
58
|
* never drift from the mounted surface.
|
|
59
59
|
*/
|
|
60
60
|
export declare function contractOnlyService(contract: ContractDef): ServiceDef;
|
|
61
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Bind a contract to its typed `handlers`, producing a `ServiceDef` to mount on
|
|
63
|
+
* `createServer`. Every handler is type-checked against its endpoint's schemas.
|
|
64
|
+
* Pass `TCtx` for a typed handler context — or use `createImplement` to fix it
|
|
65
|
+
* once.
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* What to do when a contract endpoint has no handler.
|
|
69
|
+
*
|
|
70
|
+
* `'throw'` — the default, and the right answer in production: a contract
|
|
71
|
+
* without its handler is a lie about the surface, and a client sees an endpoint
|
|
72
|
+
* that is not there.
|
|
73
|
+
*
|
|
74
|
+
* `'stub'` — mount a refusal instead and keep the application up. This exists
|
|
75
|
+
* for one measured situation: a dev stand under a file watcher. Adding an
|
|
76
|
+
* endpoint is two edits by construction — the contract and the handler — and an
|
|
77
|
+
* editor saves one file at a time, so the watcher restarts on the first one.
|
|
78
|
+
* Between the two saves the whole stand is down, for everyone using it. A rule
|
|
79
|
+
* ("make both edits at once") cannot outrun the filesystem; this can.
|
|
80
|
+
*/
|
|
81
|
+
export type MissingHandlerPolicy = 'throw' | 'stub';
|
|
82
|
+
/** How a registry or contract binding treats an unimplemented endpoint. */
|
|
83
|
+
export interface ImplementOptions {
|
|
84
|
+
/** Default `'throw'`. `'stub'` refuses the call instead of refusing to start. */
|
|
85
|
+
onMissingHandler?: MissingHandlerPolicy;
|
|
86
|
+
}
|
|
87
|
+
export declare function implement<T extends Record<string, EndpointDef>, TCtx extends RuntimeContext = RuntimeContext>(contract: ContractDef<T, string>, handlers: Handlers<T, TCtx>, options?: ImplementOptions): ServiceDef;
|
|
62
88
|
/**
|
|
63
89
|
* Fix the handler context type once — `const implement =
|
|
64
90
|
* createImplement<MyContext>()` — so each `implement()` call site stays free of
|
|
65
91
|
* the generic. The application declares its context shape in a single place.
|
|
66
92
|
*/
|
|
67
|
-
export declare function createImplement<TCtx extends RuntimeContext>(): <T extends Record<string, EndpointDef>>(contract: ContractDef<T, string>, handlers: Handlers<T, TCtx
|
|
93
|
+
export declare function createImplement<TCtx extends RuntimeContext>(): <T extends Record<string, EndpointDef>>(contract: ContractDef<T, string>, handlers: Handlers<T, TCtx>, options?: ImplementOptions) => ServiceDef;
|
|
68
94
|
/**
|
|
69
95
|
* Fix one scope→context map for the application, then implement every contract
|
|
70
96
|
* with it — each handler typed by its endpoint's **effective** scope rather than
|
|
@@ -89,7 +115,7 @@ export declare function createImplement<TCtx extends RuntimeContext>(): <T exten
|
|
|
89
115
|
* puts in the context. The framework does not verify it — a scope whose fields
|
|
90
116
|
* are never injected still type-checks. → ADR 0075.
|
|
91
117
|
*/
|
|
92
|
-
export declare function createScopedImplement<TScopes extends ScopeContexts>(): (<const T extends Record<string, EndpointDef>, TContractScope extends Extract<keyof TScopes, string>>(contract: ContractDef<T, TContractScope>, handlers: ScopedHandlers<T, TContractScope, TScopes
|
|
118
|
+
export declare function createScopedImplement<TScopes extends ScopeContexts>(): (<const T extends Record<string, EndpointDef>, TContractScope extends Extract<keyof TScopes, string>>(contract: ContractDef<T, TContractScope>, handlers: ScopedHandlers<T, TContractScope, TScopes>, options?: ImplementOptions) => ServiceDef) & {
|
|
93
119
|
stream: <const E extends StreamingEndpoint, const R extends ReceiverMap<E>>(scope: StreamScope<E, TScopes>, endpoint: E, config: MultipartStreamConfig<E, R, RuntimeContext & TScopes[StreamScope<E, TScopes> & keyof TScopes]>) => StreamingMultipartImplementation;
|
|
94
120
|
declare: <const T extends Record<string, EndpointDef>, TContractScope extends Extract<keyof TScopes, string>>(_contract: ContractDef<T, TContractScope>) => <const THandlers extends ScopedHandlers<T, TContractScope, TScopes>>(handlers: THandlers & Record<Exclude<keyof THandlers, keyof T>, never>) => THandlers;
|
|
95
121
|
};
|
|
@@ -113,7 +139,7 @@ export type ExactScopedRegistryHandlers<TContracts extends ImplementationRegistr
|
|
|
113
139
|
* endpoint's effective scope. Missing, extra and endpoint-incompatible entries
|
|
114
140
|
* fail exactly as they do in `implementRegistry`.
|
|
115
141
|
*/
|
|
116
|
-
export declare function createScopedImplementRegistry<TScopes extends ScopeContexts>(): <const TContracts extends ScopedImplementationRegistry<TScopes>, const THandlers extends ScopedRegistryHandlers<TContracts, TScopes>>(contracts: TContracts, handlers: ExactScopedRegistryHandlers<TContracts, THandlers, TScopes
|
|
142
|
+
export declare function createScopedImplementRegistry<TScopes extends ScopeContexts>(): <const TContracts extends ScopedImplementationRegistry<TScopes>, const THandlers extends ScopedRegistryHandlers<TContracts, TScopes>>(contracts: TContracts, handlers: ExactScopedRegistryHandlers<TContracts, THandlers, TScopes>, options?: ImplementOptions) => KeyedServices<TContracts>;
|
|
117
143
|
export type ImplementationRegistry = Record<string, ContractDef<Record<string, EndpointDef>, string>>;
|
|
118
144
|
/** Exact handlers map derived from a literal contract registry. */
|
|
119
145
|
export type RegistryHandlers<TContracts extends ImplementationRegistry, TCtx extends RuntimeContext = RuntimeContext> = {
|
|
@@ -144,8 +170,8 @@ export type KeyedServices<TContracts extends ImplementationRegistry> = ServiceDe
|
|
|
144
170
|
* extra and endpoint-incompatible implementations fail at compile time; loose
|
|
145
171
|
* JavaScript callers receive the same checks at runtime.
|
|
146
172
|
*/
|
|
147
|
-
export declare function implementRegistry<const TContracts extends ImplementationRegistry, const THandlers extends RegistryHandlers<TContracts>>(contracts: TContracts, handlers: ExactRegistryHandlers<TContracts, THandlers, RuntimeContext
|
|
173
|
+
export declare function implementRegistry<const TContracts extends ImplementationRegistry, const THandlers extends RegistryHandlers<TContracts>>(contracts: TContracts, handlers: ExactRegistryHandlers<TContracts, THandlers, RuntimeContext>, options?: ImplementOptions): KeyedServices<TContracts>;
|
|
148
174
|
/** Fix one handler context type for every entry in an implementation registry. */
|
|
149
|
-
export declare function createImplementRegistry<TCtx extends RuntimeContext>(): <const TContracts extends ImplementationRegistry, const THandlers extends RegistryHandlers<TContracts, TCtx>>(contracts: TContracts, handlers: ExactRegistryHandlers<TContracts, THandlers, TCtx
|
|
175
|
+
export declare function createImplementRegistry<TCtx extends RuntimeContext>(): <const TContracts extends ImplementationRegistry, const THandlers extends RegistryHandlers<TContracts, TCtx>>(contracts: TContracts, handlers: ExactRegistryHandlers<TContracts, THandlers, TCtx>, options?: ImplementOptions) => KeyedServices<TContracts>;
|
|
150
176
|
export {};
|
|
151
177
|
//# sourceMappingURL=implement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"implement.d.ts","sourceRoot":"","sources":["../../src/server/implement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"implement.d.ts","sourceRoot":"","sources":["../../src/server/implement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AASrB,OAAO,KAAK,EACV,sBAAsB,EACtB,QAAQ,EAER,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,UAAU,EACV,gCAAgC,EACjC,MAAM,SAAS,CAAC;AAEjB,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACrC,SAAS,EAAE,mBAAmB,GAAG;QAAE,QAAQ,EAAE,QAAQ,CAAA;KAAE,CAAC;CACzD,CAAC;AACF,KAAK,WAAW,CAAC,CAAC,SAAS,iBAAiB,IAAI;KAC7C,CAAC,IAAI,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,GAAG,iBAAiB;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,MAAM,CAAC,OAAO,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;CAC1F,CAAC;AAEJ;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,CAAC,UAAU,SAAS,sBAAsB,IAAI,UAAU,EAAE,GAAG;IACpF;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,UAAU,GAAG,UAAU;KAAE,CAAC;CAClE,CAAC;AA0FF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,CAAC,UAAU,SAAS,sBAAsB,EAC/C,KAAK,CAAC,SAAS,SAAS,gBAAgB,CAAC,UAAU,CAAC,EAEpD,SAAS,EAAE,UAAU,EACrB,QAAQ,EAAE,qBAAqB,CAAC,UAAU,EAAE,SAAS,EAAE,cAAc,CAAC,EACtE,OAAO,CAAC,EAAE,gBAAgB,GACzB,aAAa,CAAC,UAAU,CAAC,CAO3B;AAED,kFAAkF;AAClF,wBAAgB,uBAAuB,CAAC,IAAI,SAAS,cAAc,MAE/D,KAAK,CAAC,UAAU,SAAS,sBAAsB,EAC/C,KAAK,CAAC,SAAS,SAAS,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,aAE/C,UAAU,YACX,qBAAqB,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,YAClD,gBAAgB,KACzB,aAAa,CAAC,UAAU,CAAC,CAG7B"}
|
package/dist/server/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { createErrorHook, type ErrorHookBase, type ErrorHookConfig, type ErrorHo
|
|
|
9
9
|
export { createEventBus, type DefaultEventMap, type EventBus, type EventBusOptions, type EventHandler, } from './event-bus.js';
|
|
10
10
|
export { type ByteRange, parseByteRange, type ServeFileOptions, serveFile, staticRoute, weakETag, } from './file.js';
|
|
11
11
|
export { createFileStateStore, type FileStateStoreCorruption, type FileStateStoreOptions, } from './file-state-store.js';
|
|
12
|
-
export { createImplement, createImplementRegistry, createMultipartStream, createScopedImplement, createScopedImplementRegistry, defineMultipartStream, type ExactRegistryHandlers, type ExactScopedRegistryHandlers, type ImplementationRegistry, implement, implementRegistry, type KeyedServices, type MultipartStreamConfig, type RegistryHandlers, type ScopedImplementationRegistry, type ScopedRegistryHandlers, type StreamScope, } from './implement.js';
|
|
12
|
+
export { createImplement, createImplementRegistry, createMultipartStream, createScopedImplement, createScopedImplementRegistry, defineMultipartStream, type ExactRegistryHandlers, type ExactScopedRegistryHandlers, type ImplementationRegistry, type ImplementOptions, implement, implementRegistry, type KeyedServices, type MissingHandlerPolicy, type MultipartStreamConfig, type RegistryHandlers, type ScopedImplementationRegistry, type ScopedRegistryHandlers, type StreamScope, } from './implement.js';
|
|
13
13
|
export { composeLifecycleHooks } from './lifecycle.js';
|
|
14
14
|
export type { LogFormat } from './logger.js';
|
|
15
15
|
export { type AuthHook, type AuthHookConfig, type AuthRule, type AuthRuleContribution, type AuthRules, type AuthScopes, type BearerResolverConfig, type ComposeAuthHooksConfig, type ComposedAuthScopes, composeAuthHooks, createAuthHook, createBearerResolver, extractToken, type JwtPayload, type RuleScopes, type ScopedAuthHook, type ScopedAuthRule, type SignJwtOptions, signJwt, type VerifyJwtOptions, verifyJwt, } from './middleware/auth.js';
|
|
@@ -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,EACpB,YAAY,GACb,MAAM,aAAa,CAAC;AAIrB,OAAO,EACL,SAAS,EACT,cAAc,EACd,cAAc,EACd,KAAK,eAAe,EACpB,SAAS,GACV,MAAM,oBAAoB,CAAC;AAG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AK,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EACL,2BAA2B,EAC3B,WAAW,EACX,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,QAAQ,EACR,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,QAAQ,EACR,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,aAAa,EACb,cAAc,EACd,UAAU,EACV,YAAY,EACZ,gCAAgC,GACjC,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,yBAAyB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,wBAAwB,EACxB,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,GAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,YAAY,EACjB,wBAAwB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,aAAa,GACd,MAAM,aAAa,CAAC"}
|
|
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,EACpB,YAAY,GACb,MAAM,aAAa,CAAC;AAIrB,OAAO,EACL,SAAS,EACT,cAAc,EACd,cAAc,EACd,KAAK,eAAe,EACpB,SAAS,GACV,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EACL,KAAK,oBAAoB,EACzB,kBAAkB,EAClB,KAAK,cAAc,E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ACL,2BAA2B,EAC3B,WAAW,EACX,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,QAAQ,EACR,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,QAAQ,EACR,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,aAAa,EACb,cAAc,EACd,UAAU,EACV,YAAY,EACZ,gCAAgC,GACjC,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,yBAAyB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,wBAAwB,EACxB,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,GAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,YAAY,EACjB,wBAAwB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,aAAa,GACd,MAAM,aAAa,CAAC"}
|
package/dist/server/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
sseRoute,
|
|
14
14
|
streamingRoute,
|
|
15
15
|
webSocketLane
|
|
16
|
-
} from "../index-
|
|
16
|
+
} from "../index-zsqy3xfn.js";
|
|
17
17
|
import"../index-y91ry9h2.js";
|
|
18
18
|
import {
|
|
19
19
|
withDeadline
|
|
@@ -25,13 +25,13 @@ import {
|
|
|
25
25
|
ShutdownStatusSchema,
|
|
26
26
|
createServerLifecycle
|
|
27
27
|
} from "../index-3z73fh2c.js";
|
|
28
|
-
import"../index-
|
|
28
|
+
import"../index-13e1k7v9.js";
|
|
29
29
|
import"../index-2qzskm8h.js";
|
|
30
30
|
import {
|
|
31
31
|
inputIsQuery,
|
|
32
32
|
parseSSE,
|
|
33
33
|
streamSSE
|
|
34
|
-
} from "../index-
|
|
34
|
+
} from "../index-b971qjes.js";
|
|
35
35
|
import {
|
|
36
36
|
composeAuthHooks,
|
|
37
37
|
createAuthHook,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
signJwt,
|
|
45
45
|
verifyJwt,
|
|
46
46
|
verifyPkce
|
|
47
|
-
} from "../index-
|
|
47
|
+
} from "../index-bv7mytab.js";
|
|
48
48
|
import {
|
|
49
49
|
deriveCodeChallenge
|
|
50
50
|
} from "../index-hr4tzbwq.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
defineMultipartStream,
|
|
62
62
|
implement,
|
|
63
63
|
implementRegistry
|
|
64
|
-
} from "../index-
|
|
64
|
+
} from "../index-709nh7z7.js";
|
|
65
65
|
import {
|
|
66
66
|
isWithinDir,
|
|
67
67
|
realPathWithinDir
|
|
@@ -82,12 +82,12 @@ import {
|
|
|
82
82
|
formatZodError,
|
|
83
83
|
normalizeError,
|
|
84
84
|
zodIssues
|
|
85
|
-
} from "../index-
|
|
85
|
+
} from "../index-13cjtmrw.js";
|
|
86
86
|
import {
|
|
87
87
|
DEFAULT_CONTRACT_STREAM_FRAME_BYTES,
|
|
88
88
|
joinRoutePath,
|
|
89
89
|
parseTrailingWildcard
|
|
90
|
-
} from "../index-
|
|
90
|
+
} from "../index-0a349c33.js";
|
|
91
91
|
import"../index-rxfy4cq7.js";
|
|
92
92
|
import"../index-6k1937bx.js";
|
|
93
93
|
import"../index-zcgf3gqf.js";
|
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
notFound,
|
|
107
107
|
rateLimited,
|
|
108
108
|
unauthorized
|
|
109
|
-
} from "../index-
|
|
109
|
+
} from "../index-2vtcmrj9.js";
|
|
110
110
|
import"../index-kzfs85xp.js";
|
|
111
111
|
import {
|
|
112
112
|
isRecord
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { serializeCanonicalJson } from '../internal/canonical-json.js';
|
|
2
3
|
import type { RealtimeContract, RealtimeEventRegistry } from '../realtime/contract.js';
|
|
3
4
|
import type { RouteGroup, ServiceDef } from '../server/types.js';
|
|
4
5
|
import type { CliCommandDefinition } from '../tools/cli-command.js';
|
|
@@ -248,7 +249,7 @@ export interface SurfaceManifestConfig {
|
|
|
248
249
|
extensions?: readonly SurfaceManifestExtension[];
|
|
249
250
|
}
|
|
250
251
|
/** Canonical bytes used by snapshots and schema digests. Arrays retain order. */
|
|
251
|
-
export declare
|
|
252
|
+
export declare const serializeSurfaceValue: typeof serializeCanonicalJson;
|
|
252
253
|
/** Build one versioned snapshot of the declared transport-specific surface. */
|
|
253
254
|
export declare function buildSurfaceManifest(config: SurfaceManifestConfig): SurfaceManifest;
|
|
254
255
|
export declare function assertSurfaceManifestSnapshot(manifest: SurfaceManifest, snapshot: SurfaceManifest): void;
|