| ... | @@ -67,8 +67,7 @@ import * as MobileRegistrations from "./agentActivity/MobileRegistrations.ts"; | ... | @@ -67,8 +67,7 @@ import * as MobileRegistrations from "./agentActivity/MobileRegistrations.ts"; |
| 67 | import * as HookForwarder from "./hooks/HookForwarder.ts"; | 67 | import * as HookForwarder from "./hooks/HookForwarder.ts"; |
| 68 | import * as HeldHooks from "./hooks/HeldHooks.ts"; | 68 | import * as HeldHooks from "./hooks/HeldHooks.ts"; |
| 69 | import * as HookInbox from "./hooks/HookInbox.ts"; | 69 | import * as HookInbox from "./hooks/HookInbox.ts"; |
| 70 | import { HookInboxObject } from "./hooks/HookInboxObject.ts"; | 70 | import * as HookInboxObject from "./hooks/HookInboxObject.ts"; |
| 71 | import * as HookInboxObjectLayer from "./hooks/HookInboxObject.ts"; | | |
| 72 | | 71 | |
| 73 | const layerWebcrypto = Layer.succeed( | 72 | const layerWebcrypto = Layer.succeed( |
| 74 | Crypto.Crypto, | 73 | Crypto.Crypto, |
| ... | @@ -201,7 +200,7 @@ export const layer = Api.make( | ... | @@ -201,7 +200,7 @@ export const layer = Api.make( |
| 201 | period: HookForwarder.RELAY_HOOK_ENDPOINT_RATE_LIMIT.periodSeconds, | 200 | period: HookForwarder.RELAY_HOOK_ENDPOINT_RATE_LIMIT.periodSeconds, |
| 202 | }, | 201 | }, |
| 203 | }); | 202 | }); |
| 204 | const hookInboxes = yield* HookInboxObject; | 203 | const hookInboxes = yield* HookInboxObject.HookInboxObject; |
| 205 | | 204 | |
| 206 | // | 205 | // |
| 207 | // 3. Runtime layers and app construction | 206 | // 3. Runtime layers and app construction |
| ... | @@ -470,7 +469,7 @@ export const layer = Api.make( | ... | @@ -470,7 +469,7 @@ export const layer = Api.make( |
| 470 | Layer.provideMerge(Cloudflare.Tunnel.ReadWriteTunnelBinding), | 469 | Layer.provideMerge(Cloudflare.Tunnel.ReadWriteTunnelBinding), |
| 471 | Layer.provideMerge(Cloudflare.DNS.ReadWriteDnsHttp), | 470 | Layer.provideMerge(Cloudflare.DNS.ReadWriteDnsHttp), |
| 472 | Layer.provideMerge(Cloudflare.Workers.RateLimitBinding), | 471 | Layer.provideMerge(Cloudflare.Workers.RateLimitBinding), |
| 473 | Layer.provideMerge(HookInboxObjectLayer.layer), | 472 | Layer.provideMerge(HookInboxObject.layer), |
| 474 | // The worker runtime opens its own HTTP span around ours. For webhook | 473 | // The worker runtime opens its own HTTP span around ours. For webhook |
| 475 | // paths it would record the raw URL, token included, and adopt the | 474 | // paths it would record the raw URL, token included, and adopt the |
| 476 | // sender's traceparent, so only our redacted span covers those. | 475 | // sender's traceparent, so only our redacted span covers those. |