@astrale-os/kernel-server 0.5.0-beta.5 → 0.5.0-beta.50

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.
Files changed (185) hide show
  1. package/dist/capture.d.ts +0 -1
  2. package/dist/capture.js +0 -1
  3. package/dist/cors/cors.d.ts +0 -1
  4. package/dist/cors/cors.js +2 -1
  5. package/dist/cors/index.d.ts +0 -1
  6. package/dist/cors/index.js +0 -1
  7. package/dist/cors/types.d.ts +0 -1
  8. package/dist/cors/types.js +0 -1
  9. package/dist/errors/availability.d.ts +0 -1
  10. package/dist/errors/availability.js +0 -1
  11. package/dist/errors/classify.d.ts +0 -1
  12. package/dist/errors/classify.js +0 -1
  13. package/dist/errors/index.d.ts +0 -1
  14. package/dist/errors/index.js +0 -1
  15. package/dist/errors/request-body.d.ts +0 -1
  16. package/dist/errors/request-body.js +0 -1
  17. package/dist/errors/response-body.d.ts +0 -1
  18. package/dist/errors/response-body.js +0 -1
  19. package/dist/index.d.ts +0 -1
  20. package/dist/index.js +0 -1
  21. package/dist/invocation/context.d.ts +1 -2
  22. package/dist/invocation/context.js +0 -1
  23. package/dist/invocation/identity.d.ts +1 -2
  24. package/dist/invocation/identity.js +1 -2
  25. package/dist/invocation/index.d.ts +0 -1
  26. package/dist/invocation/index.js +0 -1
  27. package/dist/invocation/publication-route.d.ts +1 -4
  28. package/dist/invocation/publication-route.js +2 -12
  29. package/dist/invocation/types.d.ts +3 -4
  30. package/dist/invocation/types.js +0 -1
  31. package/dist/issuer/exchange.d.ts +0 -1
  32. package/dist/issuer/exchange.js +9 -1
  33. package/dist/issuer/index.d.ts +0 -1
  34. package/dist/issuer/index.js +0 -1
  35. package/dist/issuer/routes.d.ts +0 -1
  36. package/dist/issuer/routes.js +0 -1
  37. package/dist/issuer/types.d.ts +0 -1
  38. package/dist/issuer/types.js +0 -1
  39. package/dist/lifecycle/active.d.ts +2 -1
  40. package/dist/lifecycle/active.js +5 -3
  41. package/dist/lifecycle/index.d.ts +0 -1
  42. package/dist/lifecycle/index.js +0 -1
  43. package/dist/publication/delivery/handler.d.ts +0 -1
  44. package/dist/publication/delivery/handler.js +2 -2
  45. package/dist/publication/delivery/index.d.ts +0 -1
  46. package/dist/publication/delivery/index.js +0 -1
  47. package/dist/publication/delivery/types.d.ts +1 -2
  48. package/dist/publication/delivery/types.js +0 -1
  49. package/dist/publication/index.d.ts +0 -1
  50. package/dist/publication/index.js +0 -1
  51. package/dist/publication/snapshot.d.ts +4 -4
  52. package/dist/publication/snapshot.js +6 -8
  53. package/dist/publication/table.d.ts +4 -4
  54. package/dist/publication/table.js +3 -4
  55. package/dist/publication/types.d.ts +4 -5
  56. package/dist/publication/types.js +0 -1
  57. package/dist/routes/index.d.ts +0 -1
  58. package/dist/routes/index.js +0 -1
  59. package/dist/routes/routes.d.ts +0 -1
  60. package/dist/routes/routes.js +68 -4
  61. package/dist/server.d.ts +0 -1
  62. package/dist/server.js +1 -2
  63. package/dist/transport/body.d.ts +0 -1
  64. package/dist/transport/body.js +0 -1
  65. package/dist/transport/codecs.d.ts +0 -1
  66. package/dist/transport/codecs.js +0 -1
  67. package/dist/transport/credential.d.ts +0 -1
  68. package/dist/transport/credential.js +0 -1
  69. package/dist/transport/http/handler.d.ts +0 -1
  70. package/dist/transport/http/handler.js +0 -1
  71. package/dist/transport/http/index.d.ts +0 -1
  72. package/dist/transport/http/index.js +0 -1
  73. package/dist/transport/http/render.d.ts +5 -4
  74. package/dist/transport/http/render.js +70 -2
  75. package/dist/transport/index.d.ts +0 -1
  76. package/dist/transport/index.js +0 -1
  77. package/dist/transport/router.d.ts +0 -1
  78. package/dist/transport/router.js +0 -1
  79. package/dist/transport/stream-error.d.ts +0 -1
  80. package/dist/transport/stream-error.js +0 -1
  81. package/dist/transport/types.d.ts +1 -2
  82. package/dist/transport/types.js +0 -1
  83. package/dist/transport/websocket/index.d.ts +0 -1
  84. package/dist/transport/websocket/index.js +0 -1
  85. package/dist/transport/websocket/session.d.ts +0 -1
  86. package/dist/transport/websocket/session.js +12 -2
  87. package/dist/transport/websocket/upgrade.d.ts +0 -1
  88. package/dist/transport/websocket/upgrade.js +0 -1
  89. package/dist/types.d.ts +1 -2
  90. package/dist/types.js +0 -1
  91. package/package.json +10 -12
  92. package/dist/capture.d.ts.map +0 -1
  93. package/dist/capture.js.map +0 -1
  94. package/dist/cors/cors.d.ts.map +0 -1
  95. package/dist/cors/cors.js.map +0 -1
  96. package/dist/cors/index.d.ts.map +0 -1
  97. package/dist/cors/index.js.map +0 -1
  98. package/dist/cors/types.d.ts.map +0 -1
  99. package/dist/cors/types.js.map +0 -1
  100. package/dist/errors/availability.d.ts.map +0 -1
  101. package/dist/errors/availability.js.map +0 -1
  102. package/dist/errors/classify.d.ts.map +0 -1
  103. package/dist/errors/classify.js.map +0 -1
  104. package/dist/errors/index.d.ts.map +0 -1
  105. package/dist/errors/index.js.map +0 -1
  106. package/dist/errors/request-body.d.ts.map +0 -1
  107. package/dist/errors/request-body.js.map +0 -1
  108. package/dist/errors/response-body.d.ts.map +0 -1
  109. package/dist/errors/response-body.js.map +0 -1
  110. package/dist/index.d.ts.map +0 -1
  111. package/dist/index.js.map +0 -1
  112. package/dist/invocation/context.d.ts.map +0 -1
  113. package/dist/invocation/context.js.map +0 -1
  114. package/dist/invocation/identity.d.ts.map +0 -1
  115. package/dist/invocation/identity.js.map +0 -1
  116. package/dist/invocation/index.d.ts.map +0 -1
  117. package/dist/invocation/index.js.map +0 -1
  118. package/dist/invocation/publication-route.d.ts.map +0 -1
  119. package/dist/invocation/publication-route.js.map +0 -1
  120. package/dist/invocation/types.d.ts.map +0 -1
  121. package/dist/invocation/types.js.map +0 -1
  122. package/dist/issuer/exchange.d.ts.map +0 -1
  123. package/dist/issuer/exchange.js.map +0 -1
  124. package/dist/issuer/index.d.ts.map +0 -1
  125. package/dist/issuer/index.js.map +0 -1
  126. package/dist/issuer/routes.d.ts.map +0 -1
  127. package/dist/issuer/routes.js.map +0 -1
  128. package/dist/issuer/types.d.ts.map +0 -1
  129. package/dist/issuer/types.js.map +0 -1
  130. package/dist/lifecycle/active.d.ts.map +0 -1
  131. package/dist/lifecycle/active.js.map +0 -1
  132. package/dist/lifecycle/index.d.ts.map +0 -1
  133. package/dist/lifecycle/index.js.map +0 -1
  134. package/dist/publication/delivery/handler.d.ts.map +0 -1
  135. package/dist/publication/delivery/handler.js.map +0 -1
  136. package/dist/publication/delivery/index.d.ts.map +0 -1
  137. package/dist/publication/delivery/index.js.map +0 -1
  138. package/dist/publication/delivery/types.d.ts.map +0 -1
  139. package/dist/publication/delivery/types.js.map +0 -1
  140. package/dist/publication/index.d.ts.map +0 -1
  141. package/dist/publication/index.js.map +0 -1
  142. package/dist/publication/snapshot.d.ts.map +0 -1
  143. package/dist/publication/snapshot.js.map +0 -1
  144. package/dist/publication/table.d.ts.map +0 -1
  145. package/dist/publication/table.js.map +0 -1
  146. package/dist/publication/types.d.ts.map +0 -1
  147. package/dist/publication/types.js.map +0 -1
  148. package/dist/publication/validator.d.ts +0 -4
  149. package/dist/publication/validator.d.ts.map +0 -1
  150. package/dist/publication/validator.js +0 -17
  151. package/dist/publication/validator.js.map +0 -1
  152. package/dist/routes/index.d.ts.map +0 -1
  153. package/dist/routes/index.js.map +0 -1
  154. package/dist/routes/routes.d.ts.map +0 -1
  155. package/dist/routes/routes.js.map +0 -1
  156. package/dist/server.d.ts.map +0 -1
  157. package/dist/server.js.map +0 -1
  158. package/dist/transport/body.d.ts.map +0 -1
  159. package/dist/transport/body.js.map +0 -1
  160. package/dist/transport/codecs.d.ts.map +0 -1
  161. package/dist/transport/codecs.js.map +0 -1
  162. package/dist/transport/credential.d.ts.map +0 -1
  163. package/dist/transport/credential.js.map +0 -1
  164. package/dist/transport/http/handler.d.ts.map +0 -1
  165. package/dist/transport/http/handler.js.map +0 -1
  166. package/dist/transport/http/index.d.ts.map +0 -1
  167. package/dist/transport/http/index.js.map +0 -1
  168. package/dist/transport/http/render.d.ts.map +0 -1
  169. package/dist/transport/http/render.js.map +0 -1
  170. package/dist/transport/index.d.ts.map +0 -1
  171. package/dist/transport/index.js.map +0 -1
  172. package/dist/transport/router.d.ts.map +0 -1
  173. package/dist/transport/router.js.map +0 -1
  174. package/dist/transport/stream-error.d.ts.map +0 -1
  175. package/dist/transport/stream-error.js.map +0 -1
  176. package/dist/transport/types.d.ts.map +0 -1
  177. package/dist/transport/types.js.map +0 -1
  178. package/dist/transport/websocket/index.d.ts.map +0 -1
  179. package/dist/transport/websocket/index.js.map +0 -1
  180. package/dist/transport/websocket/session.d.ts.map +0 -1
  181. package/dist/transport/websocket/session.js.map +0 -1
  182. package/dist/transport/websocket/upgrade.d.ts.map +0 -1
  183. package/dist/transport/websocket/upgrade.js.map +0 -1
  184. package/dist/types.d.ts.map +0 -1
  185. package/dist/types.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import * as codecs from '@astrale-os/kernel-protocol/codecs';
2
2
  import * as errors from '@astrale-os/kernel-protocol/errors';
3
3
  import * as protocol from '@astrale-os/kernel-protocol/invocation';
4
- import { PATH as PUBLICATION_PATH, url as publicationUrl, } from '@astrale-os/kernel-protocol/publication/publication';
4
+ import { mediaType as publicationMediaType, PATH as PUBLICATION_PATH, url as publicationUrl, } from '@astrale-os/kernel-protocol/publication/publication';
5
5
  import { reference as publicationReference } from '@astrale-os/kernel-protocol/publication/reference';
6
6
  import * as routes from '@astrale-os/kernel-protocol/routes';
7
7
  import { classifyError, RequestBodyInvalidError, RequestBodyTooLargeError, } from '../errors/index.js';
@@ -44,7 +44,7 @@ export function mountRoutes(app, source, deliveryProvider, handler, active, next
44
44
  status: 200,
45
45
  headers: {
46
46
  ...responseCors,
47
- 'content-type': 'application/json',
47
+ 'content-type': publicationMediaType(snapshot.publication),
48
48
  etag: quoteEtag(snapshot.publication.etag),
49
49
  'cache-control': 'public, max-age=0, must-revalidate, no-transform',
50
50
  },
@@ -117,7 +117,7 @@ export function mountRoutes(app, source, deliveryProvider, handler, active, next
117
117
  let handedOff = false;
118
118
  try {
119
119
  const body = await readBoundedBody(request, limits.maximumRequestBytes, operation.signal);
120
- const invocation = routes.decode(route, { url: request.url, method: request.method, headers: request.headers, body }, snapshot.validator, snapshot.table.publication);
120
+ const invocation = routes.decode(route, { url: request.url, method: request.method, headers: request.headers, body }, snapshot.domain, snapshot.table.publication);
121
121
  const idempotencyHeader = request.headers.get(protocol.HTTP_IDEMPOTENCY_KEY);
122
122
  const idempotencyKey = idempotencyHeader === null
123
123
  ? undefined
@@ -138,8 +138,13 @@ export function mountRoutes(app, source, deliveryProvider, handler, active, next
138
138
  });
139
139
  }
140
140
  if (result.kind === 'binary') {
141
+ if (isStreamingBinary(result.value)) {
142
+ handedOff = true;
143
+ return streamingBinaryResponse(result.value, operation, cors, request);
144
+ }
141
145
  const applicationHeaders = applicationBinaryHeaders(result.value.headers);
142
146
  return new Response(toBody(result.value.body), {
147
+ status: result.value.status ?? 200,
143
148
  headers: {
144
149
  ...cors.response(request, [
145
150
  protocol.http.BINARY_HEADERS_FIELD,
@@ -197,6 +202,66 @@ export function mountRoutes(app, source, deliveryProvider, handler, active, next
197
202
  }
198
203
  });
199
204
  }
205
+ function streamingBinaryResponse(binary, operation, cors, request) {
206
+ const iterator = binary.body[Symbol.asyncIterator]();
207
+ const applicationHeaders = applicationBinaryHeaders(binary.headers);
208
+ let terminal = false;
209
+ let stopping;
210
+ const stop = () => {
211
+ stopping ??= Promise.resolve().then(async () => {
212
+ if (terminal)
213
+ return;
214
+ terminal = true;
215
+ try {
216
+ await iterator.return?.();
217
+ }
218
+ finally {
219
+ operation.settle();
220
+ }
221
+ });
222
+ return stopping;
223
+ };
224
+ const body = new ReadableStream({
225
+ async pull(controller) {
226
+ if (terminal)
227
+ return;
228
+ try {
229
+ const next = await iterator.next();
230
+ if (terminal)
231
+ return;
232
+ if (next.done) {
233
+ terminal = true;
234
+ controller.close();
235
+ operation.settle();
236
+ return;
237
+ }
238
+ controller.enqueue(next.value);
239
+ }
240
+ catch (cause) {
241
+ terminal = true;
242
+ controller.error(cause);
243
+ operation.settle();
244
+ }
245
+ },
246
+ async cancel(reason) {
247
+ const message = typeof reason === 'string' ? reason : 'native binary response cancelled';
248
+ operation.cancel(message);
249
+ await stop();
250
+ },
251
+ });
252
+ operation.onCancel(stop);
253
+ return new Response(body, {
254
+ status: binary.status ?? 200,
255
+ headers: {
256
+ ...cors.response(request, Object.keys(applicationHeaders)),
257
+ ...applicationHeaders,
258
+ 'content-type': binary.mediaType,
259
+ },
260
+ });
261
+ }
262
+ function isStreamingBinary(input) {
263
+ return !(input.body instanceof Uint8Array);
264
+ }
200
265
  function publicationPreflight(cors, request, snapshot, externalOrigin) {
201
266
  if (sameRoute(request.url, snapshot.publication.schema.bundle.href, externalOrigin)) {
202
267
  return cors.preflight(request, { methods: ['GET'], headers: ['if-none-match'] });
@@ -446,4 +511,3 @@ function encodedBody(input) {
446
511
  function toBody(input) {
447
512
  return input.buffer.slice(input.byteOffset, input.byteOffset + input.byteLength);
448
513
  }
449
- //# sourceMappingURL=routes.js.map
package/dist/server.d.ts CHANGED
@@ -2,4 +2,3 @@ import type { Server, ServerConfig, ServerOptions, PreparedServer } from './type
2
2
  export declare function createServer(config: ServerConfig): Server;
3
3
  /** Validate all static transport configuration before a Host starts Runtime recovery/bootstrap. */
4
4
  export declare function prepareServer(options: ServerOptions): PreparedServer;
5
- //# sourceMappingURL=server.d.ts.map
package/dist/server.js CHANGED
@@ -68,7 +68,7 @@ function createPreparedServer(input, config) {
68
68
  app.all(config.path, (context) => handleHttp(context.req.raw, hosts.get(context.req.raw)));
69
69
  if (config.health !== undefined) {
70
70
  app.get(config.health.path, (context) => {
71
- const ready = active.isAccepting && config.health.probe.check();
71
+ const ready = active.isAvailable && config.health.probe.check();
72
72
  return context.json({ status: ready ? 'ready' : 'not-ready' }, ready ? 200 : 503, {
73
73
  ...config.cors.response(context.req.raw),
74
74
  'cache-control': 'no-store',
@@ -264,4 +264,3 @@ function admitRoute(path, label) {
264
264
  }
265
265
  return path;
266
266
  }
267
- //# sourceMappingURL=server.js.map
@@ -2,4 +2,3 @@ export { RequestBodyInvalidError, RequestBodyTooLargeError } from '../errors/ind
2
2
  /** Read a request body while enforcing the limit before retaining excess bytes. */
3
3
  export declare function readBoundedBody(request: Request, maximumBytes: number, signal: AbortSignal): Promise<Uint8Array>;
4
4
  export declare function byteLength(input: string | Uint8Array): number;
5
- //# sourceMappingURL=body.d.ts.map
@@ -48,4 +48,3 @@ export async function readBoundedBody(request, maximumBytes, signal) {
48
48
  export function byteLength(input) {
49
49
  return typeof input === 'string' ? new TextEncoder().encode(input).byteLength : input.byteLength;
50
50
  }
51
- //# sourceMappingURL=body.js.map
@@ -2,4 +2,3 @@ import * as codecs from '@astrale-os/kernel-protocol/codecs';
2
2
  export type LoadedCodec = codecs.Codec;
3
3
  /** Load the built-in Server representation set before pure Protocol binding selection. */
4
4
  export declare function loadCodecs(): Promise<readonly [codecs.Codec, codecs.Codec]>;
5
- //# sourceMappingURL=codecs.d.ts.map
@@ -3,4 +3,3 @@ import * as codecs from '@astrale-os/kernel-protocol/codecs';
3
3
  export async function loadCodecs() {
4
4
  return Object.freeze([codecs.json, await codecs.loadMsgpack()]);
5
5
  }
6
- //# sourceMappingURL=codecs.js.map
@@ -8,4 +8,3 @@ export type CredentialResult = {
8
8
  };
9
9
  /** Resolve exactly zero or one untrusted credential channel without authenticating it. */
10
10
  export declare function resolveCredential(envelope: string | undefined, authorization: string | null): CredentialResult;
11
- //# sourceMappingURL=credential.d.ts.map
@@ -26,4 +26,3 @@ function failure(message) {
26
26
  error: { code: errors.CODES.INVALID_REQUEST, message },
27
27
  };
28
28
  }
29
- //# sourceMappingURL=credential.js.map
@@ -15,4 +15,3 @@ export interface HttpHandlerConfig {
15
15
  readonly currentPublication?: (request: Request) => PublicationSnapshot | undefined;
16
16
  }
17
17
  export declare function createHttpHandler(config: HttpHandlerConfig): (request: Request, host?: ApplicationHost) => Promise<Response>;
18
- //# sourceMappingURL=handler.d.ts.map
@@ -178,4 +178,3 @@ function noStore(response) {
178
178
  headers.set('cache-control', 'no-store');
179
179
  return new Response(response.body, { status: response.status, headers });
180
180
  }
181
- //# sourceMappingURL=handler.js.map
@@ -1,3 +1,2 @@
1
1
  export { createHttpHandler, type HttpHandlerConfig } from './handler.js';
2
2
  export { encodeEnvelope, renderBinary, renderHttpError, renderHttpResult, renderHttpStale, renderRedirect, type CorsHeaders, type ErrorRenderOptions, type RenderContext, } from './render.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export { createHttpHandler } from './handler.js';
2
2
  export { encodeEnvelope, renderBinary, renderHttpError, renderHttpResult, renderHttpStale, renderRedirect, } from './render.js';
3
- //# sourceMappingURL=index.js.map
@@ -1,3 +1,4 @@
1
+ import type { BufferedBinaryResult, StreamingBinaryResult } from '@astrale-os/kernel-core/callable';
1
2
  import type { Codec } from '@astrale-os/kernel-protocol/codecs';
2
3
  import * as errors from '@astrale-os/kernel-protocol/errors';
3
4
  import * as protocol from '@astrale-os/kernel-protocol/invocation';
@@ -19,14 +20,14 @@ export interface ErrorRenderOptions {
19
20
  }
20
21
  type HandlerResult = Awaited<ReturnType<Handler['dispatch']>>;
21
22
  export declare function renderHttpResult(result: HandlerResult, context: RenderContext): Response;
22
- export declare function renderBinary(requestId: protocol.RequestId, invocation: protocol.InvocationId, binary: Extract<HandlerResult, {
23
- readonly kind: 'binary';
24
- }>['value']): protocol.BinaryResponse;
23
+ export declare function renderBinary(requestId: protocol.RequestId, invocation: protocol.InvocationId, binary: BufferedBinaryResult): protocol.BinaryResponse;
25
24
  export declare function renderRedirect(requestId: protocol.RequestId, invocation: protocol.InvocationId, redirect: Extract<HandlerResult, {
26
25
  readonly kind: 'redirect';
27
26
  }>['redirect']): protocol.RedirectResponse;
28
27
  export declare function renderHttpError(requestId: protocol.RequestId, invocation: protocol.InvocationId, error: errors.ErrorPayload, codec: Codec, cors: CorsHeaders, options?: ErrorRenderOptions): Response;
29
28
  export declare function renderHttpStale(requestId: protocol.RequestId, invocation: protocol.InvocationId, current: protocol.Stale['current'], codec: Codec, cors: CorsHeaders, maximumResponseBytes?: number): Response;
30
29
  export declare function encodeEnvelope(codec: Codec, input: unknown): string | Uint8Array;
30
+ export declare function isStreamingBinary(input: Extract<HandlerResult, {
31
+ readonly kind: 'binary';
32
+ }>['value']): input is StreamingBinaryResult;
31
33
  export {};
32
- //# sourceMappingURL=render.d.ts.map
@@ -19,6 +19,8 @@ export function renderHttpResult(result, context) {
19
19
  case 'miss':
20
20
  return settled(context.active, envelopeResponse(context.codec, protocol.miss(context.requestId, context.invocation), context.cors(), 200, true, context.maximumResponseBytes));
21
21
  case 'binary': {
22
+ if (isStreamingBinary(result.value))
23
+ return streamingBinaryHttpResponse(result.value, context);
22
24
  const binary = renderBinary(context.requestId, context.invocation, result.value);
23
25
  return settled(context.active, binaryHttpResponse(binary, context.cors, context.maximumResponseBytes));
24
26
  }
@@ -41,6 +43,7 @@ export function renderBinary(requestId, invocation, binary) {
41
43
  invocation,
42
44
  body: binary.body,
43
45
  mediaType: binary.mediaType,
46
+ status: binary.status ?? 200,
44
47
  ...(binary.headers === undefined ? {} : { headers: binary.headers }),
45
48
  });
46
49
  }
@@ -75,11 +78,74 @@ function envelopeResponse(codec, input, cors, status = 200, negotiated = true, m
75
78
  }
76
79
  function binaryHttpResponse(binary, cors, maximumResponseBytes) {
77
80
  requireResponseBound(binary.body, maximumResponseBytes);
81
+ const headers = binaryHttpHeaders(binary, cors, false);
82
+ return new Response(toBody(binary.body), { status: binary.status, headers });
83
+ }
84
+ function streamingBinaryHttpResponse(binary, context) {
85
+ const iterator = binary.body[Symbol.asyncIterator]();
86
+ const headers = binaryHttpHeaders(Object.freeze({
87
+ requestId: context.requestId,
88
+ invocation: context.invocation,
89
+ mediaType: binary.mediaType,
90
+ headers: binary.headers,
91
+ }), context.cors, true);
92
+ let terminal = false;
93
+ let stopping;
94
+ const stop = () => {
95
+ stopping ??= Promise.resolve().then(async () => {
96
+ if (terminal)
97
+ return;
98
+ terminal = true;
99
+ try {
100
+ await iterator.return?.();
101
+ }
102
+ finally {
103
+ context.active.settle();
104
+ }
105
+ });
106
+ return stopping;
107
+ };
108
+ const body = new ReadableStream({
109
+ async pull(controller) {
110
+ if (terminal)
111
+ return;
112
+ try {
113
+ const next = await iterator.next();
114
+ if (terminal)
115
+ return;
116
+ if (next.done) {
117
+ terminal = true;
118
+ controller.close();
119
+ context.active.settle();
120
+ return;
121
+ }
122
+ controller.enqueue(next.value);
123
+ }
124
+ catch (cause) {
125
+ terminal = true;
126
+ controller.error(cause);
127
+ context.active.settle();
128
+ }
129
+ },
130
+ async cancel(reason) {
131
+ const message = typeof reason === 'string' ? reason : 'binary response consumer cancelled';
132
+ context.active.cancel(message);
133
+ await stop();
134
+ },
135
+ });
136
+ context.active.onCancel(stop);
137
+ return new Response(body, { status: binary.status ?? 200, headers });
138
+ }
139
+ export function isStreamingBinary(input) {
140
+ return !(input.body instanceof Uint8Array);
141
+ }
142
+ function binaryHttpHeaders(binary, cors, streaming) {
78
143
  const applicationHeaders = Object.keys(binary.headers ?? {}).filter((name) => protocol.http.isApplicationBinaryHeader(name));
79
144
  const headers = new Headers(cors([
80
145
  protocol.http.REQUEST_ID_FIELD,
81
146
  protocol.http.INVOCATION_FIELD,
82
147
  protocol.http.BINARY_HEADERS_FIELD,
148
+ ...(streaming ? [protocol.http.BINARY_DELIVERY_FIELD] : []),
83
149
  ...applicationHeaders,
84
150
  ]));
85
151
  for (const [name, value] of Object.entries(binary.headers ?? {})) {
@@ -90,9 +156,12 @@ function binaryHttpResponse(binary, cors, maximumResponseBytes) {
90
156
  headers.set(protocol.http.BINARY_HEADERS_FIELD, protocol.http.encodeBinaryHeaderNames(binary.headers));
91
157
  headers.set(protocol.http.REQUEST_ID_FIELD, String(binary.requestId));
92
158
  headers.set(protocol.http.INVOCATION_FIELD, protocol.http.encodeInvocationId(binary.invocation));
159
+ if (streaming) {
160
+ headers.set(protocol.http.BINARY_DELIVERY_FIELD, protocol.http.STREAMING_BINARY_DELIVERY);
161
+ }
93
162
  headers.set('cache-control', 'no-store');
94
163
  appendVary(headers, 'accept');
95
- return new Response(toBody(binary.body), { status: 200, headers });
164
+ return headers;
96
165
  }
97
166
  function streamHttpResponse(stream, context) {
98
167
  const iterator = stream[Symbol.asyncIterator]();
@@ -286,4 +355,3 @@ function toBody(input) {
286
355
  const copy = new Uint8Array(input);
287
356
  return copy.buffer;
288
357
  }
289
- //# sourceMappingURL=render.js.map
@@ -7,4 +7,3 @@ export { interruptedStreamError } from './stream-error.js';
7
7
  export { createServerRouter, type ServerRouter } from './router.js';
8
8
  export { createWebSocketSession, handleWebSocketUpgrade, type WebSocketHandlerConfig, type WebSocketSessionConfig, } from './websocket/index.js';
9
9
  export type { Application, WebSocketAdapter, WebSocketHandlers, WebSocketLike, WebSocketUpgradeOptions, } from './types.js';
10
- //# sourceMappingURL=index.d.ts.map
@@ -6,4 +6,3 @@ export { encodeEnvelope, renderBinary, renderHttpError, renderHttpResult, render
6
6
  export { interruptedStreamError } from './stream-error.js';
7
7
  export { createServerRouter } from './router.js';
8
8
  export { createWebSocketSession, handleWebSocketUpgrade, } from './websocket/index.js';
9
- //# sourceMappingURL=index.js.map
@@ -2,4 +2,3 @@ import { type Hono as HonoType } from 'hono';
2
2
  /** Private Web-standard router capability shared by Server route-owning children. */
3
3
  export type ServerRouter = HonoType;
4
4
  export declare function createServerRouter(): ServerRouter;
5
- //# sourceMappingURL=router.d.ts.map
@@ -2,4 +2,3 @@ import { Hono } from 'hono';
2
2
  export function createServerRouter() {
3
3
  return new Hono();
4
4
  }
5
- //# sourceMappingURL=router.js.map
@@ -1,4 +1,3 @@
1
1
  import type { ErrorPayload } from '@astrale-os/kernel-protocol/errors';
2
2
  /** A transport cancellation after stream.start necessarily follows the Function effect boundary. */
3
3
  export declare function interruptedStreamError(timedOut: boolean): ErrorPayload;
4
- //# sourceMappingURL=stream-error.d.ts.map
@@ -11,4 +11,3 @@ export function interruptedStreamError(timedOut) {
11
11
  message: 'Function stream was cancelled after execution began; outcome is unknown.',
12
12
  };
13
13
  }
14
- //# sourceMappingURL=stream-error.js.map
@@ -1,4 +1,4 @@
1
- import type { invocation as protocol } from '@astrale-os/kernel-protocol';
1
+ import type * as protocol from '@astrale-os/kernel-protocol/invocation';
2
2
  import type { ApplicationHost } from '../invocation/index.js';
3
3
  /** Portable Fetch application; framework and listener APIs are adapter-owned. */
4
4
  export interface Application {
@@ -26,4 +26,3 @@ export interface WebSocketUpgradeOptions {
26
26
  export interface WebSocketAdapter {
27
27
  upgrade(request: Request, options: WebSocketUpgradeOptions): Response | Promise<Response>;
28
28
  }
29
- //# sourceMappingURL=types.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=types.js.map
@@ -1,3 +1,2 @@
1
1
  export { createWebSocketSession, type WebSocketSessionConfig } from './session.js';
2
2
  export { handleWebSocketUpgrade, type WebSocketHandlerConfig } from './upgrade.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export { createWebSocketSession } from './session.js';
2
2
  export { handleWebSocketUpgrade } from './upgrade.js';
3
- //# sourceMappingURL=index.js.map
@@ -18,4 +18,3 @@ export interface WebSocketSessionConfig {
18
18
  }
19
19
  /** Build one socket-pinned transport session. */
20
20
  export declare function createWebSocketSession(config: WebSocketSessionConfig): WebSocketHandlers;
21
- //# sourceMappingURL=session.d.ts.map
@@ -5,7 +5,7 @@ import { ResponseBodyTooLargeError } from '../../errors/index.js';
5
5
  import { invocationContext, publicationRouteDecision, } from '../../invocation/index.js';
6
6
  import { byteLength } from '../body.js';
7
7
  import { resolveCredential } from '../credential.js';
8
- import { renderBinary, renderRedirect } from '../http/render.js';
8
+ import { isStreamingBinary, renderBinary, renderRedirect } from '../http/render.js';
9
9
  import { interruptedStreamError } from '../stream-error.js';
10
10
  const WS_OPEN = 1;
11
11
  /** Build one socket-pinned transport session. */
@@ -211,6 +211,17 @@ async function sendResult(socket, codec, requestId, assigned, result, operation,
211
211
  await send(socket, codec, protocol.miss(requestId, assigned), sendOutput);
212
212
  return;
213
213
  case 'binary': {
214
+ if (isStreamingBinary(result.value)) {
215
+ const streaming = result.value;
216
+ await Promise.allSettled([
217
+ sendError(socket, codec, requestId, assigned, {
218
+ code: errors.CODES.UNSUPPORTED,
219
+ message: 'Streaming binary output requires the HTTP transport.',
220
+ }, sendOutput),
221
+ Promise.resolve().then(() => streaming.body[Symbol.asyncIterator]().return?.()),
222
+ ]);
223
+ return;
224
+ }
214
225
  const binary = renderBinary(requestId, assigned, result.value);
215
226
  if (socket.readyState === WS_OPEN) {
216
227
  await sendOutput(socket, protocol.websocket.encodeBinary(binary));
@@ -333,4 +344,3 @@ function isCancelRequest(input) {
333
344
  !Array.isArray(input) &&
334
345
  input.kind === 'cancel');
335
346
  }
336
- //# sourceMappingURL=session.js.map
@@ -18,4 +18,3 @@ export interface WebSocketHandlerConfig {
18
18
  readonly host?: ApplicationHost;
19
19
  }
20
20
  export declare function handleWebSocketUpgrade(config: WebSocketHandlerConfig): Promise<Response>;
21
- //# sourceMappingURL=upgrade.d.ts.map
@@ -44,4 +44,3 @@ function failure(status, input = {}) {
44
44
  headers: { ...input, 'cache-control': 'no-store' },
45
45
  });
46
46
  }
47
- //# sourceMappingURL=upgrade.js.map
package/dist/types.d.ts CHANGED
@@ -6,7 +6,7 @@ import type { PublicationSource } from './publication/index.js';
6
6
  import type { Application, WebSocketAdapter } from './transport/index.js';
7
7
  export interface ServerLimits {
8
8
  readonly maximumRequestBytes: number;
9
- /** Maximum bytes in one encoded envelope, finite-binary body, or stream frame. */
9
+ /** Maximum bytes in one encoded envelope, buffered binary body, or stream frame. */
10
10
  readonly maximumResponseBytes?: number;
11
11
  /** Maximum Server-owned active operations across all mounted protocol surfaces. */
12
12
  readonly maximumConcurrentOperations?: number;
@@ -63,4 +63,3 @@ export type { ApplicationHost, ExecutionControl, Handler, HandlerRequest, Handle
63
63
  export type { exchange, Issuer } from './issuer/index.js';
64
64
  export type { PublicationSnapshot, PublicationSnapshotInput, PublicationSource, } from './publication/index.js';
65
65
  export type { Application, WebSocketAdapter, WebSocketHandlers, WebSocketLike, WebSocketUpgradeOptions, } from './transport/index.js';
66
- //# sourceMappingURL=types.d.ts.map
package/dist/types.js CHANGED
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/kernel-server",
3
- "version": "0.5.0-beta.5",
3
+ "version": "0.5.0-beta.50",
4
4
  "description": "Portable HTTP and WebSocket boundary for Astrale invocation, publication, installation, and issuer protocols",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -33,25 +33,23 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@astrale-os/kernel-core": ">=0.9.0-beta.3 <1.0.0",
37
- "@astrale-os/kernel-protocol": ">=0.5.0-beta.3 <1.0.0",
36
+ "@astrale-os/kernel-core": "0.9.0-beta.44",
37
+ "@astrale-os/kernel-dsl": "0.2.0-beta.32",
38
+ "@astrale-os/kernel-protocol": "0.5.0-beta.48",
38
39
  "hono": "^4.6.20",
39
- "msgpackr": "^1.11.0"
40
+ "msgpackr": "^2.0.5"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@astrale/typescript-config": "npm:@jsr/astrale__typescript-config@~1.1.0",
43
- "@typescript/native-preview": "latest",
44
- "typescript": "~6.0.1-rc",
45
- "vitest": "^3.0.0",
46
- "@astrale-os/kernel-dsl": "^0.2.0-beta.4"
44
+ "typescript": "7.0.2",
45
+ "vitest": "^4.1.10"
47
46
  },
48
47
  "scripts": {
49
- "build": "tsgo",
48
+ "build": "tsc",
50
49
  "clean": "rm -rf dist",
51
- "typecheck": "tsgo --noEmit",
50
+ "typecheck": "tsc --noEmit",
52
51
  "test": "vitest run",
53
52
  "test:boundary:protocol": "vitest run --config vitest.protocol-boundary.config.ts",
54
- "test:file": "vitest run",
55
- "preinstall": "node -e \"try{require('./.check-workspace.cjs')}catch{}\""
53
+ "test:file": "vitest run"
56
54
  }
57
55
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../capture.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,wBAAgB,aAAa,CAAC,QAAQ,SAAS,MAAM,EAAE,IAAI,SAAS,MAAM,QAAQ,EAChF,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,GACrB,QAAQ,CAAC,IAAI,CAAC,CAKhB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"capture.js","sourceRoot":"","sources":["../capture.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,MAAM,UAAU,aAAa,CAC3B,KAAe,EACf,IAAU,EACV,cAAsB;IAEtB,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,MAAM,IAAI,SAAS,CAAC,cAAc,CAAC,CAAA;IACpF,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA;IAC1B,IAAI,OAAO,MAAM,KAAK,UAAU;QAAE,MAAM,IAAI,SAAS,CAAC,cAAc,CAAC,CAAA;IACrE,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAmB,CAAA;AAC7C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cors.d.ts","sourceRoot":"","sources":["../../cors/cors.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAE9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAI5C,MAAM,WAAW,SAAS;IACxB,mFAAmF;IACnF,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IACnC,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC,oFAAoF;IACpF,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,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;IAChD,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAED,SAAS,UAAU,CAAC,KAAa,EAAE,KAAa;IAC9C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;QACjD,MAAM,IAAI,SAAS,CAAC,GAAG,KAAK,yBAAyB,CAAC,CAAA;IACxD,OAAO,KAAK,CAAA;AACd,CAAC;AAED,SAAS,UAAU,CAAC,OAAgB,EAAE,KAAa;IACjD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;IACnC,MAAM,KAAK,GAAG,IAAI,GAAG,CACnB,OAAO;QACL,EAAE,KAAK,CAAC,GAAG,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;SACxC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,CACzB,CAAA;IACD,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAChB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;AAC5C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../cors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAA;AACxE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../cors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmC,MAAM,WAAW,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../cors/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,6FAA6F;IAC7F,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC,gGAAgG;IAChG,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC,uEAAuE;IACvE,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC3C,2FAA2F;IAC3F,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAC/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../cors/types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"availability.d.ts","sourceRoot":"","sources":["../../errors/availability.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,SAAkB,IAAI,8BAA6B;IAEnD,YAAY,OAAO,SAA6B,EAAE,OAAO,CAAC,EAAE,YAAY,EAEvE;CACF;AAED,gFAAgF;AAChF,qBAAa,0BAA2B,SAAQ,KAAK;IACnD,SAAkB,IAAI,gCAA+B;IAErD,YAAY,OAAO,SAAiC,EAAE,OAAO,CAAC,EAAE,YAAY,EAE3E;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"availability.js","sourceRoot":"","sources":["../../errors/availability.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,MAAM,OAAO,wBAAyB,SAAQ,KAAK;IAC/B,IAAI,GAAG,0BAA0B,CAAA;IAEnD,YAAY,OAAO,GAAG,0BAA0B,EAAE,OAAsB;QACtE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACzB,CAAC;CACF;AAED,gFAAgF;AAChF,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IACjC,IAAI,GAAG,4BAA4B,CAAA;IAErD,YAAY,OAAO,GAAG,8BAA8B,EAAE,OAAsB;QAC1E,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACzB,CAAC;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../../errors/classify.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,oCAAoC,CAAA;AAK5D,kGAAkG;AAClG,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,YAAY,CAYjE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"classify.js","sourceRoot":"","sources":["../../errors/classify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,KAAK,MAAM,MAAM,oCAAoC,CAAA;AAE5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAE9D,kGAAkG;AAClG,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,IAAI,KAAK,YAAY,MAAM,CAAC,aAAa;QAAE,OAAO,KAAK,CAAC,OAAO,CAAA;IAC/D,IAAI,KAAK,YAAY,wBAAwB,EAAE,CAAC;QAC9C,OAAO,WAAW,CAAC,gBAAgB,EAAE,4CAA4C,CAAC,CAAA;IACpF,CAAC;IACD,IAAI,KAAK,YAAY,yBAAyB,EAAE,CAAC;QAC/C,OAAO,WAAW,CAAC,gBAAgB,EAAE,6CAA6C,CAAC,CAAA;IACrF,CAAC;IACD,IAAI,KAAK,YAAY,SAAS,EAAE,CAAC;QAC/B,OAAO,WAAW,CAAC,kBAAkB,EAAE,yBAAyB,CAAC,CAAA;IACnE,CAAC;IACD,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAA;AACxB,CAAC;AAED,SAAS,WAAW,CAAC,IAA+B,EAAE,OAAe;IACnE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;AAC9C,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,cAAc,CAAC,KAAK,CAAC,CAAA;IACrB,OAAO,WAAW,CAAC,gBAAgB,EAAE,6BAA6B,CAAC,CAAA;AACrE,CAAC;AAED,SAAS,UAAU,CAAC,KAAc;IAChC,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,EAAE,CAAC;QACnE,OAAO,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAA;IAChE,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AAED,SAAS,cAAc,CAAC,KAAc;IACpC,MAAM,KAAK,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAA;IACxD,iFAAiF;IACjF,sCAAsC;IACtC,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE;QAClD,IAAI,EAAE,KAAK,EAAE,WAAW,CAAC,IAAI,IAAI,OAAO,KAAK;QAC7C,IAAI,EAAE,UAAU,CAAC,KAAK,CAAC;KACxB,CAAC,CAAA;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"request-body.d.ts","sourceRoot":"","sources":["../../errors/request-body.ts"],"names":[],"mappings":"AAAA,qBAAa,wBAAyB,SAAQ,KAAK;IACrC,QAAQ,CAAC,YAAY,EAAE,MAAM;IAAzC,YAAqB,YAAY,EAAE,MAAM,EAGxC;CACF;AAED,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,YAAY,OAAO,EAAE,MAAM,EAG1B;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"request-body.js","sourceRoot":"","sources":["../../errors/request-body.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,wBAAyB,SAAQ,KAAK;IAC5B,YAAY;IAAjC,YAAqB,YAAoB;QACvC,KAAK,CAAC,wBAAwB,YAAY,SAAS,CAAC,CAAA;4BADjC,YAAY;QAE/B,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAA;IACxC,CAAC;CACF;AAED,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAChD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAA;IACvC,CAAC;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"response-body.d.ts","sourceRoot":"","sources":["../../errors/response-body.ts"],"names":[],"mappings":"AAAA,qBAAa,yBAA0B,SAAQ,KAAK;IACtC,QAAQ,CAAC,YAAY,EAAE,MAAM;IAAzC,YAAqB,YAAY,EAAE,MAAM,EAGxC;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"response-body.js","sourceRoot":"","sources":["../../errors/response-body.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAC7B,YAAY;IAAjC,YAAqB,YAAoB;QACvC,KAAK,CAAC,iDAAiD,YAAY,IAAI,CAAC,CAAA;4BADrD,YAAY;QAE/B,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAA;IACzC,CAAC;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAA;AACnE,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAA;AACrD,YAAY,EACV,WAAW,EACX,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,OAAO,EACP,cAAc,EACd,aAAa,EACb,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,EACjB,MAAM,EACN,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,uBAAuB,GACxB,MAAM,YAAY,CAAA"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAA;AACnE,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../invocation/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAEzE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEpE,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,QAAQ,CAAC,YAAY,EAC/B,SAAS,EAAE,eAAe,EAC1B,MAAM,EAAE,gBAAgB,EACxB,IAAI,CAAC,EAAE,eAAe,EACtB,WAAW,CAAC,EAAE,UAAU,EACxB,cAAc,CAAC,EAAE,QAAQ,CAAC,cAAc,GACvC,iBAAiB,CAanB;AAED,6FAA6F;AAC7F,wBAAsB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEpE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../invocation/context.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,iBAAiB,CAC/B,QAA+B,EAC/B,SAA0B,EAC1B,MAAwB,EACxB,IAAsB,EACtB,WAAwB,EACxB,cAAwC;IAExC,MAAM,IAAI,GAAG,WAAW,EAAE,KAAK,EAAE,CAAA;IACjC,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,UAAU,EAAE,QAAQ;QACpB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC;QACpF,UAAU,EAAE,CAAC,IAAuC,EAAE,EAAE,CACtD,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC;QAC1C,KAAK,EAAE,KAAK,EAAE,UAAkB,EAAE,EAAE;YAClC,MAAM,kBAAkB,CAAC,aAAa,CA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