stitchkit 0.110.6 → 0.111.1
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 +45 -0
- package/dist/agent-runtime/sandbox-broker.d.ts.map +1 -1
- package/dist/application/grammy-update-admission.d.ts.map +1 -1
- package/dist/browser/stream.d.ts +3 -2
- package/dist/browser/stream.d.ts.map +1 -1
- package/dist/contract/runtime-context.d.ts +3 -1
- package/dist/contract/runtime-context.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/sandbox.js +13 -27
- package/dist/entrypoints/application/grammy.js +11 -2
- package/dist/entrypoints/bin/upgrade-cli.d.ts.map +1 -1
- package/dist/entrypoints/bin/upgrade-cli.js +123 -29
- package/dist/entrypoints/cli/publish.js +1 -1
- package/dist/entrypoints/cli.js +2 -2
- package/dist/entrypoints/http.d.ts +2 -0
- package/dist/entrypoints/http.d.ts.map +1 -1
- package/dist/entrypoints/http.js +5 -1
- package/dist/entrypoints/index.d.ts +1 -0
- package/dist/entrypoints/index.d.ts.map +1 -1
- package/dist/entrypoints/index.js +5 -1
- package/dist/entrypoints/node.d.ts +1 -0
- package/dist/entrypoints/node.d.ts.map +1 -1
- package/dist/entrypoints/node.js +3 -1
- package/dist/entrypoints/observability.js +24 -9
- package/dist/entrypoints/remote.js +1 -1
- package/dist/entrypoints/server.d.ts +1 -0
- package/dist/entrypoints/server.d.ts.map +1 -1
- package/dist/entrypoints/server.js +24 -3
- package/dist/entrypoints/telegram.js +3 -3
- package/dist/entrypoints/testing.js +1 -1
- package/dist/entrypoints/tools/connections.js +16 -31
- package/dist/entrypoints/tools/mcp.js +1 -1
- package/dist/entrypoints/tools.js +40 -8
- package/dist/entrypoints/voice.js +17 -10
- package/dist/{index-s6d8zsha.js → index-2qymcsq2.js} +66 -121
- package/dist/index-5efrpfmj.js +55 -0
- package/dist/{index-s2eybn7b.js → index-c5374vpt.js} +10 -9
- package/dist/{index-jk44mbqb.js → index-c5at3ykd.js} +3 -57
- package/dist/index-cjbn98zt.js +68 -0
- package/dist/{index-3h0ztg0z.js → index-cxpcdswt.js} +5 -21
- package/dist/{index-s0xbnpfh.js → index-erv5shjq.js} +1 -1
- package/dist/{index-n7hrpngg.js → index-v2eyj2ws.js} +1 -1
- package/dist/internal/bounded-body.d.ts +44 -0
- package/dist/internal/bounded-body.d.ts.map +1 -0
- package/dist/internal/bounded-lines.d.ts +1 -2
- package/dist/internal/bounded-lines.d.ts.map +1 -1
- package/dist/internal/secure-fetch.d.ts.map +1 -1
- package/dist/internal/stream-chunks.d.ts +13 -0
- package/dist/internal/stream-chunks.d.ts.map +1 -0
- package/dist/internal/upgrade-affects.d.ts +5 -0
- package/dist/internal/upgrade-affects.d.ts.map +1 -1
- package/dist/internal/upgrade-plan.d.ts +18 -3
- package/dist/internal/upgrade-plan.d.ts.map +1 -1
- package/dist/internal/upgrade-usage.d.ts +21 -5
- package/dist/internal/upgrade-usage.d.ts.map +1 -1
- package/dist/observability/audit.d.ts +10 -0
- package/dist/observability/audit.d.ts.map +1 -1
- package/dist/observability/event.d.ts +5 -0
- package/dist/observability/event.d.ts.map +1 -1
- package/dist/server/contract-stream.d.ts.map +1 -1
- package/dist/server/multipart.d.ts.map +1 -1
- package/dist/server/oauth/endpoints.d.ts.map +1 -1
- package/dist/server/oauth/provider.d.ts +5 -0
- package/dist/server/oauth/provider.d.ts.map +1 -1
- package/dist/server/raw.d.ts +6 -3
- package/dist/server/raw.d.ts.map +1 -1
- package/dist/server/request-body.d.ts.map +1 -1
- package/dist/server/request-completion.d.ts.map +1 -1
- package/dist/server/request-ingress.d.ts +31 -0
- package/dist/server/request-ingress.d.ts.map +1 -0
- package/dist/server/unix-client-body.d.ts.map +1 -1
- package/dist/tools/connections/limits.d.ts.map +1 -1
- package/dist/tools/mcp/handler.d.ts.map +1 -1
- package/dist/voice/speech-queue.d.ts +6 -1
- package/dist/voice/speech-queue.d.ts.map +1 -1
- package/llms/http.txt +3 -0
- package/llms/observability.txt +19 -2
- package/llms/server.2.txt +4 -0
- package/llms/server.5.txt +2 -1
- package/llms/server.txt +42 -0
- package/llms/stitchkit.2.txt +28 -0
- package/llms/stitchkit.txt +3 -3
- package/llms/tools.3.txt +1 -1
- package/llms/tools.txt +4 -0
- package/llms/{upgrading-0.101.0-0.110.0.txt → upgrading-0.101.0-0.111.0.txt} +29 -3
- package/llms/upgrading.txt +8 -2
- package/llms-full.txt +136 -8
- package/llms.txt +6 -6
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-chunks.d.ts","sourceRoot":"","sources":["../../src/internal/stream-chunks.ts"],"names":[],"mappings":"AAEA,kGAAkG;AAClG,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,cAAc,CAAC,UAAU,CAAC,GAC1B,aAAa,CAAC,UAAU,CAAC,CAAC;AAE9B;;;;;;;;GAQG;AACH,wBAAuB,QAAQ,CAC7B,MAAM,EAAE,gBAAgB,EACxB,MAAM,CAAC,EAAE,WAAW,GACnB,cAAc,CAAC,UAAU,CAAC,CA+C5B"}
|
|
@@ -48,6 +48,11 @@ export declare class UpgradeAffectsError extends Error {
|
|
|
48
48
|
* it, and the next unindented line closes it.
|
|
49
49
|
*/
|
|
50
50
|
export declare function breakingItems(section: string): UpgradeBreakingItemText[];
|
|
51
|
+
/**
|
|
52
|
+
* The items of every `### Fixed` section of a release body; a release may hold more than one.
|
|
53
|
+
* A section ends at the next `### ` heading outside a fence.
|
|
54
|
+
*/
|
|
55
|
+
export declare function fixedSectionItems(releaseBody: string): UpgradeBreakingItemText[];
|
|
51
56
|
/**
|
|
52
57
|
* The text after `**Affects:**` in an item, or undefined when it declares none.
|
|
53
58
|
* An item carries at most one such line; a second is refused, never dropped.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-affects.d.ts","sourceRoot":"","sources":["../../src/internal/upgrade-affects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GA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IACzF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2EAA2E;AAC3E,MAAM,MAAM,oBAAoB,GAC5B;IACE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,SAAS,qBAAqB,EAAE,CAAC;CACpD,GACD;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,GAC3D;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC;AAEjE,gFAAgF;AAChF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAOD,yEAAyE;AACzE,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,SAAkB,IAAI,yBAAyB;CAChD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,uBAAuB,EAAE,CA6BxE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,uBAAuB,EAAE,CAmBhF;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAiBtE;AAyDD,+FAA+F;AAC/F,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,EAAE,CAGrE"}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* range by whoever cut the release.
|
|
9
9
|
*/
|
|
10
10
|
import { type UpgradeAffectsTarget } from './upgrade-affects.js';
|
|
11
|
-
/** One
|
|
12
|
-
export interface
|
|
11
|
+
/** One `- ` item of a release section, with its machine line when it declares one. */
|
|
12
|
+
export interface UpgradeItem {
|
|
13
13
|
version: string;
|
|
14
14
|
/** The backticked entrypoints the item leads with. */
|
|
15
15
|
entrypoints: string[];
|
|
@@ -17,9 +17,12 @@ export interface UpgradeBreakingItem {
|
|
|
17
17
|
title: string;
|
|
18
18
|
/** What the item touches; `undefined` for an item written before the `**Affects:**` line. */
|
|
19
19
|
affects: UpgradeAffectsTarget[] | undefined;
|
|
20
|
+
markdown: string;
|
|
21
|
+
}
|
|
22
|
+
/** One breaking item of a release. */
|
|
23
|
+
export interface UpgradeBreakingItem extends UpgradeItem {
|
|
20
24
|
/** The item's own `**Who must act:**`, or its section's. */
|
|
21
25
|
whoMustAct: string;
|
|
22
|
-
markdown: string;
|
|
23
26
|
}
|
|
24
27
|
export interface UpgradeBreakingChange {
|
|
25
28
|
version: string;
|
|
@@ -32,7 +35,19 @@ export interface UpgradeBreakingChange {
|
|
|
32
35
|
* read it through this one expression, so a heading one accepts is a heading the other finds.
|
|
33
36
|
*/
|
|
34
37
|
export declare const BREAKING_HEADING: RegExp;
|
|
38
|
+
/** The backticked `stitchkit` (or `stitchkit-…` package) entrypoints an item leads with, in order. */
|
|
39
|
+
export declare function leadingEntrypoints(item: string, accept?: (entrypoint: string) => boolean): string[];
|
|
35
40
|
/** Extract every breaking section crossed by an exact `from` (exclusive) → `to` (inclusive) upgrade. */
|
|
36
41
|
export declare function planUpgrade(changelog: string, from: string, to: string): UpgradeBreakingChange[];
|
|
42
|
+
/** The items of every `### Fixed` section of a release body. */
|
|
43
|
+
export declare function fixedItems(version: string, body: string): UpgradeItem[];
|
|
44
|
+
/** The fixes of an exact `from` (exclusive) → `to` (inclusive) upgrade, oldest first. */
|
|
45
|
+
export interface UpgradeFixes {
|
|
46
|
+
/** Fixes that name what they touch. */
|
|
47
|
+
declared: UpgradeItem[];
|
|
48
|
+
/** Fixes of the range that carry no machine line, before the rule that asks for one. */
|
|
49
|
+
withoutAffects: number;
|
|
50
|
+
}
|
|
51
|
+
export declare function planFixes(changelog: string, from: string, to: string): UpgradeFixes;
|
|
37
52
|
export declare function renderUpgradePlan(changes: readonly UpgradeBreakingChange[], from: string, to: string): string;
|
|
38
53
|
//# sourceMappingURL=upgrade-plan.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-plan.d.ts","sourceRoot":"","sources":["../../src/internal/upgrade-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"upgrade-plan.d.ts","sourceRoot":"","sources":["../../src/internal/upgrade-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAKL,KAAK,oBAAoB,EAC1B,MAAM,mBAAmB,CAAC;AAE3B,sFAAsF;AACtF,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,6FAA6F;IAC7F,OAAO,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC;IAC5C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,sCAAsC;AACtC,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAA2C,CAAC;AAIzE,sGAAsG;AACtG,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAoB,GACnD,MAAM,EAAE,CAcV;AA0GD,wGAAwG;AACxG,wBAAgB,WAAW,CACzB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,GACT,qBAAqB,EAAE,CAmBzB;AAED,gEAAgE;AAChE,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,CAEvE;AAED,yFAAyF;AACzF,MAAM,WAAW,YAAY;IAC3B,uCAAuC;IACvC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,wFAAwF;IACxF,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,YAAY,CASnF;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,SAAS,qBAAqB,EAAE,EACzC,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,GACT,MAAM,CASR"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* quote or a comment marker can hide what follows it.
|
|
13
13
|
*/
|
|
14
14
|
import type { UpgradeAffectsTarget } from './upgrade-affects.js';
|
|
15
|
-
import type { UpgradeBreakingItem } from './upgrade-plan.js';
|
|
15
|
+
import type { UpgradeBreakingItem, UpgradeItem } from './upgrade-plan.js';
|
|
16
16
|
/** One project file, by a path relative to the project root. */
|
|
17
17
|
export interface ProjectSource {
|
|
18
18
|
readonly path: string;
|
|
@@ -37,22 +37,38 @@ export type UpgradeVerdict = {
|
|
|
37
37
|
readonly kind: 'not-declared';
|
|
38
38
|
readonly files: readonly string[];
|
|
39
39
|
};
|
|
40
|
-
export interface UpgradeItemVerdict {
|
|
41
|
-
readonly item:
|
|
40
|
+
export interface UpgradeItemVerdict<TItem extends UpgradeItem = UpgradeBreakingItem> {
|
|
41
|
+
readonly item: TItem;
|
|
42
42
|
readonly verdict: UpgradeVerdict;
|
|
43
43
|
}
|
|
44
44
|
/** Every name the given sources import from a `stitchkit` entrypoint. */
|
|
45
45
|
export declare function scanStitchkitImports(sources: readonly ProjectSource[]): StitchkitImport[];
|
|
46
46
|
/** One verdict per item, in plan order. */
|
|
47
|
-
export declare function upgradeVerdicts(items: readonly
|
|
47
|
+
export declare function upgradeVerdicts<TItem extends UpgradeItem>(items: readonly TItem[], imports: readonly StitchkitImport[]): UpgradeItemVerdict<TItem>[];
|
|
48
48
|
/** The verdicts as the Markdown section `stitchkit upgrade` prints after the plan. */
|
|
49
49
|
export declare function renderUpgradeVerdicts(verdicts: readonly UpgradeItemVerdict[]): string;
|
|
50
|
+
/**
|
|
51
|
+
* The fixes of the range as the Markdown section `stitchkit upgrade` prints after the breaking
|
|
52
|
+
* verdicts. A fix of an earlier release carries no machine line and is only counted.
|
|
53
|
+
*/
|
|
54
|
+
export declare function renderUpgradeFixes(verdicts: readonly UpgradeItemVerdict<UpgradeItem>[], withoutAffects: number): string;
|
|
50
55
|
/** The verdicts as the `--json` document's items. */
|
|
51
56
|
export declare function upgradeVerdictsJson(verdicts: readonly UpgradeItemVerdict[]): {
|
|
52
57
|
version: string;
|
|
53
58
|
entrypoints: string[];
|
|
54
59
|
title: string;
|
|
55
|
-
whoMustAct
|
|
60
|
+
whoMustAct?: string | undefined;
|
|
61
|
+
affects: UpgradeAffectsTarget[] | null;
|
|
62
|
+
verdict: "affects" | "behavioural" | "not-declared" | "not-used";
|
|
63
|
+
uses?: readonly StitchkitImport[] | undefined;
|
|
64
|
+
files?: readonly string[] | undefined;
|
|
65
|
+
}[];
|
|
66
|
+
/** The fix verdicts as the `--json` document's `fixes`. */
|
|
67
|
+
export declare function upgradeFixesJson(verdicts: readonly UpgradeItemVerdict<UpgradeItem>[]): {
|
|
68
|
+
version: string;
|
|
69
|
+
entrypoints: string[];
|
|
70
|
+
title: string;
|
|
71
|
+
whoMustAct?: string | undefined;
|
|
56
72
|
affects: UpgradeAffectsTarget[] | null;
|
|
57
73
|
verdict: "affects" | "behavioural" | "not-declared" | "not-used";
|
|
58
74
|
uses?: readonly StitchkitImport[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-usage.d.ts","sourceRoot":"","sources":["../../src/internal/upgrade-usage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"upgrade-usage.d.ts","sourceRoot":"","sources":["../../src/internal/upgrade-usage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEvE,gEAAgE;AAChE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,0GAA0G;AAC1G,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,cAAc,GACtB;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,eAAe,EAAE,CAAA;CAAE,GACvE;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,GAC7B;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GACnE;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC;AAEzE,MAAM,WAAW,kBAAkB,CAAC,KAAK,SAAS,WAAW,GAAG,mBAAmB;IACjF,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;CAClC;AAsHD,yEAAyE;AACzE,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,GAAG,eAAe,EAAE,CA+BzF;AAyBD,2CAA2C;AAC3C,wBAAgB,eAAe,CAAC,KAAK,SAAS,WAAW,EACvD,KAAK,EAAE,SAAS,KAAK,EAAE,EACvB,OAAO,EAAE,SAAS,eAAe,EAAE,GAClC,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAiB7B;AA8BD,sFAAsF;AACtF,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GAAG,MAAM,CAGrF;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,SAAS,kBAAkB,CAAC,WAAW,CAAC,EAAE,EACpD,cAAc,EAAE,MAAM,GACrB,MAAM,CAWR;AAED,qDAAqD;AACrD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,SAAS,kBAAkB,EAAE;;;;;;;;;IAE1E;AAED,2DAA2D;AAC3D,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,SAAS,kBAAkB,CAAC,WAAW,CAAC,EAAE;;;;;;;;;IAEpF"}
|
|
@@ -42,6 +42,12 @@ export interface SinkDrop {
|
|
|
42
42
|
export interface RequestObservabilityConfig extends RequestEventSinkConfig {
|
|
43
43
|
/** Clone and record JSON request bodies. Default false. */
|
|
44
44
|
includePayload?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* The most bytes of a request body the audit row reads, a positive safe integer. A larger body
|
|
47
|
+
* is cancelled at the limit and the row carries `payloadTruncated: true`. Default: the
|
|
48
|
+
* handler's `maxJsonBodyBytes`, or 1 MiB when that is unset.
|
|
49
|
+
*/
|
|
50
|
+
payloadMaxBytes?: number;
|
|
45
51
|
/** Emit client-closed HTTP requests as `outcome: 'cancelled'`. Default false. */
|
|
46
52
|
includeCancelled?: boolean;
|
|
47
53
|
}
|
|
@@ -59,12 +65,16 @@ export interface HttpRequestCompletion {
|
|
|
59
65
|
statusCode?: number;
|
|
60
66
|
durationMs: number;
|
|
61
67
|
payload?: Promise<unknown>;
|
|
68
|
+
/** Settles `true` when the body was larger than the audit limit and `payload` is empty for that reason. */
|
|
69
|
+
payloadTruncated?: Promise<boolean>;
|
|
62
70
|
/** Framework-owned neutral cancellation; currently paired with HTTP 499. */
|
|
63
71
|
outcome?: 'cancelled';
|
|
64
72
|
}
|
|
65
73
|
/** Server-facing request projection returned by `createObservability`. */
|
|
66
74
|
export interface HttpRequestObserver {
|
|
67
75
|
includePayload: boolean;
|
|
76
|
+
/** The configured audit body limit; `undefined` follows the handler's `maxJsonBodyBytes`. */
|
|
77
|
+
payloadMaxBytes?: number | undefined;
|
|
68
78
|
complete(completion: HttpRequestCompletion): void;
|
|
69
79
|
}
|
|
70
80
|
/** What `createObservability` returns — one wiring point per enabled surface. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/observability/audit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/observability/audit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAIL,KAAK,uBAAuB,EAE7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,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SAAS,cAAc,EAAE,OAAO;IACjF,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,KAAK,mBAAmB,CAAC;IACtE,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,KAAK,mBAAmB,CAAC;IACtF,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,SAAS,KAAK,mBAAmB,CAAC;IACrF,kEAAkE;IAClE,SAAS,CAAC,EAAE,kBAAkB,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB,CAAC,QAAQ,SAAS,cAAc,EAAE,OAAO;IAC3E,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;IAClD,MAAM,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC;IACrE,KAAK,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAClE;AAgBD;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,SAAS,cAAc,GAAG,cAAc,EAChD,OAAO,GAAG,OAAO,EAEjB,MAAM,EAAE,yBAAyB,CAAC,QAAQ,EAAE,OAAO,CAAC,GACnD,mBAAmB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAcxC;AAwFD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,mBAAmB,GAAG,aAAa,CAqM9E"}
|
|
@@ -99,6 +99,11 @@ export interface RequestEvent {
|
|
|
99
99
|
errorDetail?: JsonValue;
|
|
100
100
|
/** Sanitised request payload — the HTTP body or the tool arguments. */
|
|
101
101
|
payload: JsonValue | null;
|
|
102
|
+
/**
|
|
103
|
+
* Set when an HTTP body was larger than the request sink's `payloadMaxBytes`: `payload` is
|
|
104
|
+
* `null` for that reason, not because there was no body.
|
|
105
|
+
*/
|
|
106
|
+
payloadTruncated?: true;
|
|
102
107
|
/** Item count of the result, when it is a list. */
|
|
103
108
|
resultSize: number | null;
|
|
104
109
|
/** Serialised byte length of the result. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/observability/event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,mCAAmC;IACnC,MAAM,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,IAAI,EAAE,kBAAkB,CAAC;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,WAAW,GAAG,aAAa,CAAC;IACxC,6EAA6E;IAC7E,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB,mEAAmE;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AC;IACxB,uEAAuE;IACvE,OAAO,EAAE,SAAS,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB,mDAAmD;IACnD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4EAA4E;IAC5E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-stream.d.ts","sourceRoot":"","sources":["../../src/server/contract-stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"contract-stream.d.ts","sourceRoot":"","sources":["../../src/server/contract-stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAWnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAS/C,gEAAgE;AAChE,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,EAC9B,UAAU,EAAE,wBAAwB,EACpC,cAAc,EAAE,eAAe,GAC9B,OAAO,CAAC,QAAQ,CAAC,CA+GnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipart.d.ts","sourceRoot":"","sources":["../../src/server/multipart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAuB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"multipart.d.ts","sourceRoot":"","sources":["../../src/server/multipart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAuB,MAAM,0BAA0B,CAAC;AASzF,OAAO,KAAK,EAAE,iBAAiB,EAA2B,MAAM,SAAS,CAAC;AAK1E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B;AAED,kFAAkF;AAClF,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,EAAE,OAAO,CAAC;CACjB;AAqFD;;;GAGG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,OAAO,EACZ,UAAU,EAAE,mBAAmB,EAC/B,YAAY,CAAC,EAAE;IAAE,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAA;CAAE,EACjD,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GAC5C,OAAO,CAAC,eAAe,CAAC,CAoH1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/server/oauth/endpoints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/server/oauth/endpoints.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAOzC,OAAO,KAAK,EAGV,6BAA6B,EAC7B,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;I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AuthProviderConfig {
|
|
|
85
85
|
scopesSupported?: string[];
|
|
86
86
|
/** Path prefix for the OAuth endpoints. Default `/oauth`. */
|
|
87
87
|
basePath?: string;
|
|
88
|
+
/**
|
|
89
|
+
* The most bytes `/token` and `/register` read of a request body, a positive safe integer; a
|
|
90
|
+
* larger body is answered `413` with `invalid_request`. Default 64 KiB.
|
|
91
|
+
*/
|
|
92
|
+
maxRequestBodyBytes?: number;
|
|
88
93
|
/** Client discovery policy. Default: CIMD enabled, DCR disabled. */
|
|
89
94
|
clientRegistration?: OAuthClientRegistrationConfig;
|
|
90
95
|
/** Single-use authorization-code store. `take` must atomically read+delete. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/server/oauth/provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/server/oauth/provider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAG/B,MAAM,QAAQ,CAAC;AAYhB;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE/C,6EAA6E;AAC7E,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,wEAAwE;IACxE,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,M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AAc,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,GAAG,QAAQ,CAAC,CAAC;CAC9E;AAMD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,GAAG,QAAQ,EAAE,CA6E1E"}
|
package/dist/server/raw.d.ts
CHANGED
|
@@ -18,8 +18,9 @@ export declare function respondJson(data: unknown): Response;
|
|
|
18
18
|
export declare function errorResponse(error: unknown): Response;
|
|
19
19
|
/**
|
|
20
20
|
* Parse and validate a JSON request body. Returns the typed value, or `null` for
|
|
21
|
-
* a non-JSON
|
|
22
|
-
* response). The
|
|
21
|
+
* a non-JSON, schema-invalid or too large body (never throws — the caller decides the
|
|
22
|
+
* error response). The body is read up to `options.maxBytes` (1 MiB by default, a positive
|
|
23
|
+
* safe integer — anything else throws, since a silent no-limit is worse) and not a byte further. The error helpers (`badRequest`, …) **throw**, so raise one inside a
|
|
23
24
|
* `try` and render it in the `catch` with `errorResponse(err)`:
|
|
24
25
|
*
|
|
25
26
|
* ```ts
|
|
@@ -32,5 +33,7 @@ export declare function errorResponse(error: unknown): Response;
|
|
|
32
33
|
* }
|
|
33
34
|
* ```
|
|
34
35
|
*/
|
|
35
|
-
export declare function parseBody<T>(req: Request, schema: ZodType<T
|
|
36
|
+
export declare function parseBody<T>(req: Request, schema: ZodType<T>, options?: {
|
|
37
|
+
maxBytes?: number;
|
|
38
|
+
}): Promise<T | null>;
|
|
36
39
|
//# sourceMappingURL=raw.d.ts.map
|
package/dist/server/raw.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raw.d.ts","sourceRoot":"","sources":["../../src/server/raw.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"raw.d.ts","sourceRoot":"","sources":["../../src/server/raw.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAMnC,kFAAkF;AAClF,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAGnD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAMtD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,SAAS,CAAC,CAAC,EAC/B,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GAClC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAMnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-body.d.ts","sourceRoot":"","sources":["../../src/server/request-body.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"request-body.d.ts","sourceRoot":"","sources":["../../src/server/request-body.ts"],"names":[],"mappings":"AAKA,6FAA6F;AAC7F,wBAAsB,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAWtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-completion.d.ts","sourceRoot":"","sources":["../../src/server/request-completion.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"request-completion.d.ts","sourceRoot":"","sources":["../../src/server/request-completion.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AA2CrE,gEAAgE;AAChE,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,GAAG,CAAC;IACT,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED,gFAAgF;AAChF,wBAAgB,qBAAqB,CAAC,OAAO,EAC3C,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,EAC5B,MAAM,EAAE,aAAa,GACpB,eAAe,CAoFjB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** What a context hands back about its request: the `Request` the handler of the core received. */
|
|
2
|
+
export interface RequestIngressSource {
|
|
3
|
+
readonly req?: Request | undefined;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* A typed channel for facts about a request that the request itself cannot carry: the code that
|
|
7
|
+
* built the `Request` (a local socket ingress, a relay, a test harness) attaches a value, and the
|
|
8
|
+
* endpoint reads it from its context.
|
|
9
|
+
*
|
|
10
|
+
* Nothing on the wire reaches it. A header, a body, `clone()` and `new Request(request)` are other
|
|
11
|
+
* channels or other objects, so a request from another ingress simply has no value. Only the code
|
|
12
|
+
* that holds the key can attach or read; two keys never meet, even with the same name.
|
|
13
|
+
*/
|
|
14
|
+
export interface RequestIngress<T> {
|
|
15
|
+
/** For messages only; the key is its own identity. */
|
|
16
|
+
readonly name: string;
|
|
17
|
+
/**
|
|
18
|
+
* Attach `value` to `request` before it is handed to the fetch handler of the core. A request
|
|
19
|
+
* carries one value per key: a second `attach` is refused, never merged or replaced.
|
|
20
|
+
*/
|
|
21
|
+
attach(request: Request, value: T): void;
|
|
22
|
+
/**
|
|
23
|
+
* The value attached to the request behind `source`, or `undefined` when there is none — in an
|
|
24
|
+
* endpoint handler, `authorize`, `beforeHandle` and `onError` (`ctx` is the source). `ctx.req`
|
|
25
|
+
* is the `Request` the handler of the core received, which is what makes this lookup sound.
|
|
26
|
+
*/
|
|
27
|
+
from(source: RequestIngressSource): T | undefined;
|
|
28
|
+
}
|
|
29
|
+
/** Define a key for request attributes an ingress attaches and an endpoint reads. */
|
|
30
|
+
export declare function defineRequestIngress<T>(name: string): RequestIngress<T>;
|
|
31
|
+
//# sourceMappingURL=request-ingress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-ingress.d.ts","sourceRoot":"","sources":["../../src/server/request-ingress.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACpC;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,sDAAsD;IACtD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IACzC;;;;OAIG;IACH,IAAI,CAAC,MAAM,EAAE,oBAAoB,GAAG,CAAC,GAAG,SAAS,CAAC;CACnD;AAED,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,CAgBvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unix-client-body.d.ts","sourceRoot":"","sources":["../../src/server/unix-client-body.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"unix-client-body.d.ts","sourceRoot":"","sources":["../../src/server/unix-client-body.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAIjD,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAejC;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,MAAM,EAAE,MAAM,IAAI,GACjB,cAAc,CAAC,UAAU,CAAC,CAsE5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../../src/tools/connections/limits.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../../src/tools/connections/limits.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,gFAAgF;AAChF,eAAO,MAAM,6BAA6B,QAAS,CAAC;AACpD,eAAO,MAAM,0BAA0B,QAAc,CAAC;AAEtD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAMrE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAI5E;AAED,8FAA8F;AAC9F,wBAAgB,eAAe,CAAC,CAAC,EAC/B,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EACnB,MAAM,EAAE,WAAW,GAAG,SAAS,GAC9B,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,qBAAqB,EAC9B,YAAY,EAAE,WAAW,GAAG,SAAS,EACrC,IAAI,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,OAAO,CAAC,CAAC,CAAC,GAClD,OAAO,CAAC,CAAC,CAAC,CAYZ;AAED,4EAA4E;AAC5E,wBAAsB,eAAe,CACnC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,CAejB;AAED,wBAAsB,eAAe,CACnC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,OAAO,CAAC,CAElB;AAED,gFAAgF;AAChF,wBAAsB,uBAAuB,CAC3C,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAejB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/tools/mcp/handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/tools/mcp/handler.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,KAAK,kBAAkB,EAGxB,MAAM,WAAW,CAAC;AAEnB,yEAAyE;AACzE,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEjD,2EAA2E;AAC3E,MAAM,WAAW,qBAAqB;IACpC,4EAA4E;IAC5E,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,+EAA+E;IAC/E,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa,CAAC,KAAK;IAClC,uEAAuE;IACvE,IAAI,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,KAAK,GAAG,IAAI,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IAC7D,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;IAC5C,wEAAwE;IACxE,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,sFAAsF;IACtF,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE;QAC5B,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,QAAQ,CAAC;KACpB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAC1B,KAAK,EACL,SAAS,SAAS,kBAAkB,GAAG,kBAAkB,IACvD,oBAAoB,CAAC,KAAK,EAAE,SAAS,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;AAElE,0EAA0E;AAC1E,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAgFD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EACL,KAAK,CAAC,SAAS,SAAS,kBAAkB,GAAG,kBAAkB,EAC/D,MAAM,EAAE,gBAAgB,CAAC,KAAK,EAAE,SAAS,CAAC,GAAG,cAAc,CAoF5D;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,cAAc,CAAC;CACzB,GAAG,QAAQ,CAMX"}
|
|
@@ -21,7 +21,6 @@ export declare class SpeechQueue<Prepared> {
|
|
|
21
21
|
private closed;
|
|
22
22
|
private cancelled;
|
|
23
23
|
private wake;
|
|
24
|
-
private stop;
|
|
25
24
|
private readonly stopped;
|
|
26
25
|
constructor(options: SpeechQueueOptions<Prepared>);
|
|
27
26
|
get isCancelled(): boolean;
|
|
@@ -32,6 +31,12 @@ export declare class SpeechQueue<Prepared> {
|
|
|
32
31
|
close(): void;
|
|
33
32
|
/** Interrupted: abort the sentence playing and every synthesis, drop the rest. */
|
|
34
33
|
cancel(): void;
|
|
34
|
+
/**
|
|
35
|
+
* `pending`, or `CANCELLED` once the queue is cancelled. The wait owns its listener and
|
|
36
|
+
* releases it when `pending` settles: a promise shared by every sentence would keep one
|
|
37
|
+
* reaction per sentence for as long as the queue lives. `pending` never rejects.
|
|
38
|
+
*/
|
|
39
|
+
private unlessStopped;
|
|
35
40
|
private notify;
|
|
36
41
|
/** Start synthesis up to the lookahead: the sentence playing or next, plus `lookahead`. */
|
|
37
42
|
private fill;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-queue.d.ts","sourceRoot":"","sources":["../../src/voice/speech-queue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"speech-queue.d.ts","sourceRoot":"","sources":["../../src/voice/speech-queue.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,kBAAkB,CAAC,QAAQ;IAC1C,oEAAoE;IACpE,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE,kFAAkF;IAClF,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjE,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,uFAAuF;IACvF,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CACxC;AAqBD,qBAAa,WAAW,CAAC,QAAQ;IAYnB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAXpC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;IACxC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAC9C,OAAO,CAAC,OAAO,CAA+B;IAC9C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,IAAI,CAA6B;IACzC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IAEjD,YAA6B,OAAO,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAOjE;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,sFAAsF;IACtF,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAKvB;IAED,yDAAyD;IACzD,KAAK,IAAI,IAAI,CAGZ;IAED,kFAAkF;IAClF,MAAM,IAAI,IAAI,CAgBb;IAED;;;;OAIG;YACW,aAAa;IAQ3B,OAAO,CAAC,MAAM;IAId,2FAA2F;IAC3F,OAAO,CAAC,IAAI;YAaE,GAAG;IAoCjB,OAAO,CAAC,MAAM;IAQd,OAAO,CAAC,OAAO;CAOhB"}
|
package/llms/http.txt
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Contains: API reference: `stitchkit/http` (docs/api/reference.md)
|
|
7
7
|
|
|
8
|
+
Also read:
|
|
9
|
+
- see `llms/stitchkit.txt` for the Typed client guide
|
|
10
|
+
|
|
8
11
|
==============================================================================
|
|
9
12
|
# API reference: `stitchkit/http` (docs/api/reference.md)
|
|
10
13
|
==============================================================================
|
package/llms/observability.txt
CHANGED
|
@@ -266,7 +266,7 @@ queryable across all three:
|
|
|
266
266
|
| `ok` / `statusCode` | legacy success bit plus real HTTP status, or `200`/`400` for a tool; an opted-in cancellation is `false` / `499`. `statusCode` is **absent** on a job — it had no transport to have a status on, and inventing one would be the same defect as the `method: 'AGENT'` this replaced. A job's outcome is `ok`, plus `errorCode` when it failed |
|
|
267
267
|
| `durationMs` / `startedAt` | timing |
|
|
268
268
|
| `errorCode` / `errorMessage` / `errorDetail` | failures only — `errorDetail` carries the structure the message flattens (e.g. Zod issues) |
|
|
269
|
-
| `payload` | sanitised tool arguments; HTTP is `null` unless request `includePayload` is enabled |
|
|
269
|
+
| `payload` | sanitised tool arguments; HTTP is `null` unless request `includePayload` is enabled, or when the body was larger than `payloadMaxBytes` (then `payloadTruncated: true`) |
|
|
270
270
|
| `resultSize` / `responseBytes` | result item count + serialised size |
|
|
271
271
|
| `userId` / `ipAddress` / `userAgent` | identity |
|
|
272
272
|
|
|
@@ -638,6 +638,23 @@ createObservability({
|
|
|
638
638
|
`redact`, `truncatePreview` and `measureSize` are exported on their own if you
|
|
639
639
|
need to sanitise something outside the audit path.
|
|
640
640
|
|
|
641
|
+
### How much of a body the audit row reads
|
|
642
|
+
|
|
643
|
+
With `includePayload: true` the row reads a clone of the request body, and it reads at most
|
|
644
|
+
`payloadMaxBytes` of it. Unset, the limit is the handler's `maxJsonBodyBytes`, or 1 MiB when the
|
|
645
|
+
handler has none, so one number bounds both. The clone is taken when the request opens, before
|
|
646
|
+
a route is matched, so an endpoint's own `maxJsonBodyBytes` is not known to it: set
|
|
647
|
+
`payloadMaxBytes` when endpoints accept more than the handler default. A body that is larger
|
|
648
|
+
is cancelled at the limit, its `payload` is `null`, and the row carries `payloadTruncated: true` — a `null` payload with that flag
|
|
649
|
+
means "too large to record", not "no body". Set `payloadMaxBytes` (a positive integer) to record
|
|
650
|
+
more or less than the handler accepts:
|
|
651
|
+
|
|
652
|
+
```ts
|
|
653
|
+
createObservability({
|
|
654
|
+
request: { write, includePayload: true, payloadMaxBytes: 256 * 1024 },
|
|
655
|
+
})
|
|
656
|
+
```
|
|
657
|
+
|
|
641
658
|
## The raw hooks
|
|
642
659
|
|
|
643
660
|
Tool observability is built on hooks you can also use directly — for a one-off
|
|
@@ -887,7 +904,7 @@ audit event. See the [Observability guide](../guide/observability.md).
|
|
|
887
904
|
| `ObservabilityDrainReport` | _type_ | final closed/drained snapshot, `durationMs` (the shared drain's age, not this call's wait), and `drained` — read from the counters, `false` only when `total.pending + total.preparing` is nonzero |
|
|
888
905
|
| `ObservabilitySinkStatusSchema` / `ObservabilityStatusSchema` / `ObservabilityDrainReportSchema` | schema | runtime schemas for status/report integration boundaries |
|
|
889
906
|
| `RequestEventSinkConfig` | _type_ | `write`, filter/sanitisation, `maxPending`, `onSinkError` and `onDrop` |
|
|
890
|
-
| `RequestObservabilityConfig` | _type_ | request sink plus opt-in payload capture and default-off `includeCancelled` rows |
|
|
907
|
+
| `RequestObservabilityConfig` | _type_ | request sink plus opt-in payload capture (`payloadMaxBytes` bounds the body read, `payloadTruncated` marks a cut one) and default-off `includeCancelled` rows |
|
|
891
908
|
| `SinkDropReason` | _type_ | `'capacity' \| 'closed'` |
|
|
892
909
|
| `SinkError` | _type_ | isolated sink/projection failure and optional event |
|
|
893
910
|
| `SinkDrop` | _type_ | rejected event, reason and current pending count |
|
package/llms/server.2.txt
CHANGED
|
@@ -85,6 +85,10 @@ handler: async (req) => {
|
|
|
85
85
|
}
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
+
`parseBody` reads the body up to `{ maxBytes }` — 1 MiB when you pass none, as the third
|
|
89
|
+
argument — and returns `null` for a larger one without reading further, so a raw route
|
|
90
|
+
never holds an unbounded body in memory.
|
|
91
|
+
|
|
88
92
|
The error helpers (`badRequest`, `notFound`, …) **throw** an `AppError`, so raise
|
|
89
93
|
them inside the `try` and let `errorResponse(err)` render it — that runs any
|
|
90
94
|
thrown value through the framework's `normalizeError`, so a raw route returns the
|
package/llms/server.5.txt
CHANGED
|
@@ -62,9 +62,10 @@ Also re-exports the error helpers from `stitchkit/contract`.
|
|
|
62
62
|
| `formatZodError` | function | a `ZodError` → a readable, field-summarised string |
|
|
63
63
|
| `zodIssues` | function | a `ZodError` → structured `{ path, code, message }[]` — the machine-readable sibling of `formatZodError` |
|
|
64
64
|
| `ZodIssueSummary` | _type_ | one structured validation issue (`{ path, code, message }`) |
|
|
65
|
-
| `parseBody` | function | parse + Zod-validate a JSON body → `data` or `null` (no throw) |
|
|
65
|
+
| `parseBody` | function | parse + Zod-validate a JSON body → `data` or `null` (no throw); reads at most `options.maxBytes` (1 MiB by default) and is `null` for a larger body |
|
|
66
66
|
| `HandlerConfig` | _type_ | config for `createHandler`, including optional `maxJsonBodyBytes`; bound to `BunServer` on this entrypoint |
|
|
67
67
|
| `BunServerConfig` | _type_ | config for `createServer` (Bun); `unix` listens on a unix domain socket (mutually exclusive with `port`/`hostname`) — [details](../guide/server.md#local-daemon-over-a-unix-socket) |
|
|
68
|
+
| `defineRequestIngress` / `RequestIngress` / `RequestIngressSource` | function / _type_ | a typed key the code that builds a `Request` attaches a value to (`attach(request, value)`) and an endpoint, `authorize`, `beforeHandle` or `onError` reads from its `ctx` (`from(ctx)`); a header, `clone()` and `new Request(request)` carry nothing, a second `attach` is refused, and `ctx.req` is the very request the handler received — [guide](../guide/server.md#request-attributes-from-the-ingress) |
|
|
68
69
|
| `ProxyOriginConfig` | _type_ | explicit real-peer trust for Bun `createServer({ proxyOrigin })`; strict external-scheme normalization before composition — [details](../guide/server.md#external-origin-behind-a-trusted-proxy) |
|
|
69
70
|
| `UnixListenConfig` | _type_ | unix listener — a socket path, or `{ path, mode }` to tighten the file mode after listen |
|
|
70
71
|
| `BunServerHandle` | _type_ | managed Bun handle (`url`, `port`, `runtime`, `status`, `shutdown`) |
|
package/llms/server.txt
CHANGED
|
@@ -61,6 +61,48 @@ Every handler receives one `ctx` argument:
|
|
|
61
61
|
The same handler runs for HTTP, MCP and agent calls — `ctx.source` tells you
|
|
62
62
|
which. Anything an auth hook attaches (e.g. the resolved user) is also on `ctx`.
|
|
63
63
|
|
|
64
|
+
### Request attributes from the ingress
|
|
65
|
+
|
|
66
|
+
When your own code builds the `Request` — a local socket ingress, a relay, a test harness —
|
|
67
|
+
and calls the fetch handler of the core, it often knows something an endpoint needs and the
|
|
68
|
+
request cannot be allowed to say for itself: which authenticated peer sent it. A header can be
|
|
69
|
+
forged by any client. `defineRequestIngress` is the channel the request cannot carry:
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
import { createHandler, defineRequestIngress, implement } from 'stitchkit/server'
|
|
73
|
+
|
|
74
|
+
interface Peer {
|
|
75
|
+
node: string
|
|
76
|
+
}
|
|
77
|
+
export const peer = defineRequestIngress<Peer>('peer')
|
|
78
|
+
|
|
79
|
+
// The ingress, after it has authenticated the peer and built the request:
|
|
80
|
+
peer.attach(request, { node: 'node-7' })
|
|
81
|
+
const response = await handler(request)
|
|
82
|
+
|
|
83
|
+
// An endpoint, `authorize`, `beforeHandle` or `onError` — `ctx` is the source:
|
|
84
|
+
implement(contract, {
|
|
85
|
+
place: (ctx) => ({ node: peer.from(ctx)?.node ?? null }),
|
|
86
|
+
})
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
- The value belongs to the key. A header, a body, `request.clone()` and `new Request(request)`
|
|
90
|
+
carry nothing; a request from another ingress has no value, and `from` answers `undefined`.
|
|
91
|
+
Two keys never meet, even under one name, and a second `attach` of the same key to the same
|
|
92
|
+
request is an error.
|
|
93
|
+
- `ctx.req` is the `Request` the fetch handler of the core received, on every HTTP context: an
|
|
94
|
+
endpoint, `authorize`, `beforeHandle`, and the `onError` context of a validation failure, an
|
|
95
|
+
unknown path, a refused method or an `onRequest` that threw. That is the guarantee the lookup
|
|
96
|
+
stands on, and the ingress tests hold it.
|
|
97
|
+
- A raw route, `streamingRoute` and `onRequest` receive the request without a context: read with
|
|
98
|
+
`peer.from({ req })`. The MCP, agent and CLI lanes carry no `Request`, so there is nothing to
|
|
99
|
+
read.
|
|
100
|
+
- With `proxyOrigin` configured, the request is replaced before `wrapFetch`: attach in
|
|
101
|
+
`wrapFetch` or later, to the request you are handed.
|
|
102
|
+
- A Socket.IO handshake is routed before `wrapFetch` on Bun and rebuilt as a new `Request` on
|
|
103
|
+
Node: it never carries an attached value.
|
|
104
|
+
- `stitchkit/node` exports the same names.
|
|
105
|
+
|
|
64
106
|
### `createImplement` — a fixed context type
|
|
65
107
|
|
|
66
108
|
To type `ctx` with your app's extras (the user an auth hook injects), fix the
|
package/llms/stitchkit.2.txt
CHANGED
|
@@ -398,6 +398,33 @@ that ends inside a line throws `StreamTruncatedLineError` (`lineBytes`) instead
|
|
|
398
398
|
fragment as a value — the right policy for a socket or a child process, where a missing newline
|
|
399
399
|
means the writer died. Both errors extend the `RangeError` / `SyntaxError` they replace.
|
|
400
400
|
|
|
401
|
+
## Reading a body up to a byte limit
|
|
402
|
+
|
|
403
|
+
`readBoundedBody` (from `stitchkit` or `stitchkit/http`) reads a request or response body, a
|
|
404
|
+
`ReadableStream<Uint8Array>` or any `AsyncIterable<Uint8Array>`, and never reads past
|
|
405
|
+
`maxBytes` plus one chunk. Whoever owns the boundary picks the two errors, so a body that is too
|
|
406
|
+
large and a read that was cancelled stay different outcomes:
|
|
407
|
+
|
|
408
|
+
```ts
|
|
409
|
+
import { readBoundedBody } from 'stitchkit'
|
|
410
|
+
|
|
411
|
+
const bytes = await readBoundedBody(request.body, {
|
|
412
|
+
maxBytes: 64 * 1024,
|
|
413
|
+
signal: request.signal,
|
|
414
|
+
limitError: (observedBytes) => new PayloadTooLarge(observedBytes),
|
|
415
|
+
abortError: (reason) => new ClientGone({ cause: reason }),
|
|
416
|
+
})
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
- The source is cancelled when the limit is crossed and when `signal` aborts. A read that never
|
|
420
|
+
settles does not hold the call after an abort, and an abort is honoured before the first read
|
|
421
|
+
(even for a `null` body).
|
|
422
|
+
- A body of exactly `maxBytes` is read; one more byte calls `limitError` with the bytes seen so far
|
|
423
|
+
(the chunk that crossed the limit included).
|
|
424
|
+
- A `null` body, such as a request without one, is an empty result.
|
|
425
|
+
- Without `abortError` the signal's own reason is thrown.
|
|
426
|
+
- `maxBytes` is a positive safe integer.
|
|
427
|
+
|
|
401
428
|
## Resumable streams
|
|
402
429
|
|
|
403
430
|
A stream that survives a dropped connection needs four things beyond opening it:
|
|
@@ -554,6 +581,7 @@ The browser-and-server entrypoint. Re-exports everything from
|
|
|
554
581
|
| `parseSSE` | function | parse SSE from a `Response`, a web stream or an async byte iterable into an async generator — [guide](../guide/client.md#sse) |
|
|
555
582
|
| `parseNDJSON` | function | parse bounded fatal-UTF-8 NDJSON from a `Response`, a `ReadableStream<Uint8Array>` or an `AsyncIterable<Uint8Array>` (a child's stdout); blank keep-alives are skipped, `finalLine: 'require-newline'` makes the delimiter mandatory and `signal` cancels the source — [guide](../guide/client.md#any-byte-source) |
|
|
556
583
|
| `createNDJSONDecoder` / `NDJSONDecoder` | function / _type_ | the same bounded NDJSON reading driven by `push(chunk)` / `end()`, for a socket `data` callback |
|
|
584
|
+
| `readBoundedBody` / `BoundedBodyOptions` | function / _type_ | the whole body of a `ReadableStream<Uint8Array>` or async byte iterable as bytes, never reading past `maxBytes` plus one chunk; `limitError(observedBytes)` and `abortError(reason)` choose the two errors, the source is cancelled on both, a `null` body is empty — [guide](../guide/client.md#reading-a-body-up-to-a-byte-limit) |
|
|
557
585
|
| `StreamByteSource` | _type_ | `Response \| ReadableStream<Uint8Array> \| AsyncIterable<Uint8Array>`, what the NDJSON and SSE readers accept |
|
|
558
586
|
| `StreamLineLimitError` / `StreamTruncatedLineError` | class | a line past `maxLineBytes` (`limitBytes`, `lineBytes`; a `RangeError`) and a source ended inside a line under `require-newline` (`lineBytes`; a `SyntaxError`) |
|
|
559
587
|
| `resumableIterator` | function | re-open a long-lived stream from the last delivered cursor, with jittered backoff, a caller-owned terminal item and prompt abort — [guide](../guide/client.md#resumable-streams) |
|
package/llms/stitchkit.txt
CHANGED
|
@@ -85,12 +85,12 @@ own, recorded as an ADR.
|
|
|
85
85
|
| `stitchkit/geo` | server (Bun or Node) | evolving | managed GeoIP reader generations, last-known-good reload and the optional MaxMind adapter |
|
|
86
86
|
| `stitchkit/oauth` | browser **and** server | evolving | provider-neutral Authorization Code + PKCE request and one-shot callback transaction mechanics |
|
|
87
87
|
| `stitchkit/google` | server (Bun or Node) | evolving | optional Google code exchange and verified OIDC identity adapter |
|
|
88
|
-
| `stitchkit/observability` | server | stable<br>_redefined in 2 of the
|
|
88
|
+
| `stitchkit/observability` | server | stable<br>_redefined in 2 of the 56 minors since 0.56.2, most recently 0.92.0_ | request/tool event projections — `createObservability`, trace context, sanitisation |
|
|
89
89
|
| `stitchkit/testing` | tests on Bun or Node | stable | in-process generated clients over a real Fetch handler, the managed-resource conformance kit and manual time for schedules and retries |
|
|
90
90
|
| `stitchkit/declaration` | browser + build and deployment tooling (Bun or Node) | evolving | `ProjectDeclarationSchema` — the one machine-readable statement a repository makes about itself |
|
|
91
91
|
| `stitchkit/react` | browser + server rendering | stable | `createCursorQuery`, `createCacheBridge`, QueryClient and `ApiError` retry policy |
|
|
92
92
|
| `stitchkit/react/keyboard` | browser | evolving | which part of a screen gets a key — ordered layers, one Escape per level, list zones with real focus; see [keyboard guide](keyboard.md) |
|
|
93
|
-
| `stitchkit/agent-runtime` | server | evolving<br>_redefined in 23 of the
|
|
93
|
+
| `stitchkit/agent-runtime` | server | evolving<br>_redefined in 23 of the 56 minors since 0.56.2, most recently 0.105.0_ | optional durable conversation/run loop, history, models, prompts, fencing and events |
|
|
94
94
|
| `stitchkit/agent-runtime/sandbox` | server | evolving | optional Linux Bubblewrap sessions, durable workspaces and a host HTTP credential gateway; see [sandbox guide](sandbox.md) |
|
|
95
95
|
| `stitchkit/agent-runtime/testing` | tests on Bun or Node | evolving | credential-free replay, scripted provider faults, deterministic race controls and the agent-store conformance kit |
|
|
96
96
|
| `stitchkit/agent-runtime/harness` | server | evolving | resource-aware process-local facade over the canonical Agent runtime; supervision stays outside |
|
|
@@ -102,7 +102,7 @@ own, recorded as an ADR.
|
|
|
102
102
|
| `stitchkit/agent-runtime/sqlite/bun` | server (Bun) | evolving | durable built-in SQLite store for the agent runtime |
|
|
103
103
|
| `stitchkit/agent-runtime/sqlite/node` | server (Node ≥ 22.5) | evolving | durable built-in SQLite store for the agent runtime |
|
|
104
104
|
| `stitchkit-tui` | terminal (Bun) | evolving | optional official OpenTUI host over a caller-composed headless runtime |
|
|
105
|
-
| `stitchkit/application` | browser + server | evolving<br>_redefined in 14 of the
|
|
105
|
+
| `stitchkit/application` | browser + server | evolving<br>_redefined in 14 of the 56 minors since 0.56.2, most recently 0.110.0_ | managed resource graph, readiness, admission, schedules, subtree restart and bounded shutdown |
|
|
106
106
|
| `stitchkit/application/grammy` | server | evolving | a grammY bot as application resources — configuration, then polling with updates admitted by batch — and the webhook adapter |
|
|
107
107
|
| `stitchkit/application/opentelemetry` | server | evolving | maps application snapshots onto an injected OpenTelemetry `Meter` |
|
|
108
108
|
| `stitchkit/application/schemas` | browser + server | evolving | the application's snapshot, health and shutdown schemas alone, without the kernel |
|