@classytic/arc 2.46.0 → 2.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/{EventTransport-DNgD9NP4.mjs → EventTransport-BWwg5YAU.mjs} +4 -4
  2. package/dist/{HookSystem-DRbPzEcP.mjs → HookSystem-B9x-Y_k7.mjs} +2 -2
  3. package/dist/{ResourceRegistry-Douk51fa.mjs → ResourceRegistry-BcvEJoZd.mjs} +2 -2
  4. package/dist/{acquire-RbtvDg9s.mjs → acquire-D2yj6Zzl.mjs} +1 -1
  5. package/dist/{actionPermissions-De0AJ7hm.mjs → actionPermissions-Dha8sAz2.mjs} +13 -13
  6. package/dist/audit/index.d.mts +1 -1
  7. package/dist/audit/index.mjs +4 -4
  8. package/dist/auth/audit.mjs +1 -1
  9. package/dist/auth/index.d.mts +1 -1
  10. package/dist/auth/index.mjs +7 -7
  11. package/dist/auth/redis-session.mjs +1 -1
  12. package/dist/{authorizationDecision-DeZMrHcm.mjs → authorizationDecision-BZSJcPNE.mjs} +4 -4
  13. package/dist/{boundedMap-2WBh3gM9.mjs → boundedMap-o2KZDCWy.mjs} +1 -1
  14. package/dist/{buildHandler-DxVOOBpw.mjs → buildHandler-G3k59KY2.mjs} +4 -4
  15. package/dist/cache/index.mjs +4 -4
  16. package/dist/{caching-BYRwYrUo.mjs → caching-CJIDPZOv.mjs} +2 -2
  17. package/dist/{claimed-DYlELdnm.mjs → claimed-D0A43wjT.mjs} +1 -1
  18. package/dist/cleanup/index.d.mts +1 -1
  19. package/dist/cleanup/index.mjs +4 -4
  20. package/dist/cli/commands/describe.d.mts +1 -1
  21. package/dist/cli/commands/describe.mjs +3 -3
  22. package/dist/cli/commands/docs.mjs +3 -3
  23. package/dist/cli/commands/doctor.mjs +1 -1
  24. package/dist/cli/commands/generate.mjs +2 -2
  25. package/dist/cli/commands/init.mjs +2 -2
  26. package/dist/cli/commands/introspect.mjs +2 -2
  27. package/dist/cli/index.mjs +3 -3
  28. package/dist/{constants-CHZMUwBW.mjs → constants-D-faL5SX.mjs} +1 -1
  29. package/dist/context/index.mjs +5 -5
  30. package/dist/core/index.d.mts +2 -2
  31. package/dist/core/index.mjs +7 -7
  32. package/dist/{core-D9rS2BxO.mjs → core-NSu1peyq.mjs} +3 -3
  33. package/dist/{createActionRouter-0qkCRzTL.mjs → createActionRouter-DTSVv1VK.mjs} +6 -6
  34. package/dist/{createAggregationRouter-CUf5Esd9.mjs → createAggregationRouter-zEasm-ax.mjs} +7 -7
  35. package/dist/{createApp-DZIXfDKD.mjs → createApp-CjqhkX1x.mjs} +29 -29
  36. package/dist/{createMcpServer-DeVpqQF-.d.mts → createMcpServer-hSFeqRUb.d.mts} +9 -10
  37. package/dist/{defineAggregation-bmKQ4NmC.mjs → defineAggregation-DH2L6_v9.mjs} +1 -1
  38. package/dist/{defineResource-CGmdmGwh.mjs → defineResource-zYCrhNaN.mjs} +10 -8
  39. package/dist/discovery/index.mjs +1 -1
  40. package/dist/docs/index.d.mts +1 -1
  41. package/dist/docs/index.mjs +3 -3
  42. package/dist/{elevation-CzhqAyVN.mjs → elevation-z--rFcZ5.mjs} +5 -5
  43. package/dist/encryption/index.mjs +3 -3
  44. package/dist/{errorHandler-dFyGOEoB.mjs → errorHandler-3_3oN-Uc.mjs} +3 -3
  45. package/dist/{errors-BY8vzlP4.mjs → errors-DyY48oRi.mjs} +1 -1
  46. package/dist/{eventPlugin-eMhAPtQA.mjs → eventPlugin-Co9sABCg.mjs} +8 -8
  47. package/dist/{eventTypes-Do2KYeJx.mjs → eventTypes-HmAFyJmJ.mjs} +2 -2
  48. package/dist/events/index.d.mts +2 -2
  49. package/dist/events/index.mjs +8 -7
  50. package/dist/events/transports/redis-stream-entry.mjs +4 -4
  51. package/dist/events/transports/redis.mjs +2 -2
  52. package/dist/factory/index.d.mts +3 -3
  53. package/dist/factory/index.mjs +6 -6
  54. package/dist/{fastify-augmentation-Dtn0IIRn.d.mts → fastify-augmentation-bzkWPt1f.d.mts} +2 -2
  55. package/dist/{fields-LnbCcvsw.mjs → fields-rfsl26Ov.mjs} +1 -1
  56. package/dist/{filter-merge-BAWi019Q.mjs → filter-merge-8glLr7Dk.mjs} +1 -1
  57. package/dist/{generate-oXoDnpJf.mjs → generate-BOfBueRt.mjs} +2 -2
  58. package/dist/{headers-DBd3Qheo.mjs → headers-CHSOqpcY.mjs} +2 -2
  59. package/dist/{health-BlJu9GXS.mjs → health-DHvAIVmM.mjs} +1 -1
  60. package/dist/{health-Dp-3EC9o.mjs → health-ezwTHQh2.mjs} +1 -1
  61. package/dist/hooks/index.d.mts +1 -1
  62. package/dist/hooks/index.mjs +2 -2
  63. package/dist/http-cache/index.d.mts +211 -0
  64. package/dist/http-cache/index.mjs +605 -0
  65. package/dist/http-cache/purgers/cloudflare.d.mts +13 -0
  66. package/dist/http-cache/purgers/cloudflare.mjs +46 -0
  67. package/dist/http-cache/purgers/fastly.d.mts +12 -0
  68. package/dist/http-cache/purgers/fastly.mjs +47 -0
  69. package/dist/http-cache/testing/index.d.mts +68 -0
  70. package/dist/http-cache/testing/index.mjs +168 -0
  71. package/dist/idempotency/index.mjs +8 -8
  72. package/dist/idempotency/redis.mjs +2 -2
  73. package/dist/{index-BTxzJ_MN.d.mts → index-BxZS-8So.d.mts} +2 -2
  74. package/dist/{index-DyJFTJLA.d.mts → index-Cy2-QffW.d.mts} +9 -0
  75. package/dist/{index-CUdaoCYt.d.mts → index-D1X_C_qz.d.mts} +2 -2
  76. package/dist/{index-Bqfo8hLz.d.mts → index-DFCCQ9AE.d.mts} +1 -1
  77. package/dist/index.d.mts +3 -3
  78. package/dist/index.mjs +11 -11
  79. package/dist/{init-BOaNkLYb.mjs → init-MoE3eZNR.mjs} +1 -1
  80. package/dist/integrations/event-gateway.mjs +2 -2
  81. package/dist/integrations/index.d.mts +1 -1
  82. package/dist/integrations/index.mjs +1 -1
  83. package/dist/integrations/jobs/index.mjs +3 -3
  84. package/dist/integrations/mcp/index.d.mts +4 -36
  85. package/dist/integrations/mcp/index.mjs +2 -2
  86. package/dist/integrations/mcp/testing.d.mts +11 -15
  87. package/dist/integrations/mcp/testing.mjs +22 -42
  88. package/dist/integrations/streamline.mjs +3 -3
  89. package/dist/integrations/webhooks.d.mts +1 -1
  90. package/dist/integrations/webhooks.mjs +4 -3
  91. package/dist/integrations/websocket-pushref-redis.mjs +1 -1
  92. package/dist/integrations/websocket-redis.mjs +1 -1
  93. package/dist/integrations/websocket.mjs +2 -2
  94. package/dist/{jsonBody-DpRpKR_K.mjs → jsonBody-DZGiCawf.mjs} +2 -2
  95. package/dist/{keys-FBz6Ull-.mjs → keys-CrMOZuk6.mjs} +1 -1
  96. package/dist/{loadResources-Bx1sKPnF.mjs → loadResources-CVQvYUhN.mjs} +3 -3
  97. package/dist/{loadResourcesFromEntry-b_jcqbxh.mjs → loadResourcesFromEntry-D0naccV2.mjs} +2 -2
  98. package/dist/logger/index.mjs +2 -2
  99. package/dist/{logger-CbFcIEBZ.mjs → logger-VyMcSmVG.mjs} +1 -1
  100. package/dist/{mcpPlugin-yix548XX.mjs → mcpPlugin-DQACaqVu.mjs} +210 -373
  101. package/dist/{memory-Bgw5dn8N.mjs → memory-Lpfu8Hga.mjs} +3 -3
  102. package/dist/{metrics-CZDQWVjS.mjs → metrics-DjVj1sg5.mjs} +3 -3
  103. package/dist/middleware/index.d.mts +1 -1
  104. package/dist/middleware/index.mjs +3 -3
  105. package/dist/migrations/index.mjs +2 -2
  106. package/dist/{module-Dsc_nKL5.mjs → module-BqPJpZ_L.mjs} +1 -1
  107. package/dist/{multiTenant-XCxAUlru.d.mts → multiTenant-KZj8j1uJ.d.mts} +1 -1
  108. package/dist/{multipartBody-B85ek8Kj.mjs → multipartBody-BNgNv7r0.mjs} +1 -1
  109. package/dist/{observeSend-BK-JN1jK.mjs → observeSend-BKJHibJz.mjs} +1 -1
  110. package/dist/{openapi-Co7hl073.mjs → openapi-T90KrPR6.mjs} +6 -6
  111. package/dist/outbox-admin/index.mjs +5 -5
  112. package/dist/{outbox-module-XvUThpqn.d.mts → outbox-module-5Mnwcycy.d.mts} +1 -1
  113. package/dist/outbox-module-C874VgBr.mjs +297 -0
  114. package/dist/permissions/index.mjs +7 -7
  115. package/dist/{permissions-A1oKtpiC.mjs → permissions-R9T2G1PH.mjs} +9 -9
  116. package/dist/{pipe-Czpw9U2n.mjs → pipe-DzqbsZy-.mjs} +2 -2
  117. package/dist/pipeline/index.d.mts +1 -1
  118. package/dist/pipeline/index.mjs +2 -2
  119. package/dist/{plan-KVseuBCL.mjs → plan-C0gkeABY.mjs} +1 -1
  120. package/dist/{plugin-DTWt_8C3.mjs → plugin-BJcVOX5r.mjs} +48 -24
  121. package/dist/plugins/index.d.mts +2 -2
  122. package/dist/plugins/index.mjs +17 -17
  123. package/dist/plugins/response-cache.mjs +4 -4
  124. package/dist/plugins/tracing-entry.mjs +2 -2
  125. package/dist/{pluralize-msB9X3yw.mjs → pluralize-CrCpyoZs.mjs} +1 -1
  126. package/dist/policy.types-DPqToKG1.d.mts +50 -0
  127. package/dist/presets/filesUpload.d.mts +1 -1
  128. package/dist/presets/filesUpload.mjs +5 -5
  129. package/dist/presets/index.d.mts +2 -2
  130. package/dist/presets/index.mjs +2 -2
  131. package/dist/presets/multiTenant.d.mts +1 -1
  132. package/dist/presets/multiTenant.mjs +5 -5
  133. package/dist/presets/search.d.mts +1 -1
  134. package/dist/presets/search.mjs +2 -2
  135. package/dist/{presets-qKCehiJM.mjs → presets-CNDvNYsz.mjs} +4 -4
  136. package/dist/{projection-ClBqtsIw.mjs → projection-CIUe8b59.mjs} +2 -2
  137. package/dist/purger.types-DvPp4-yd.d.mts +26 -0
  138. package/dist/purger.types-f83fTzGy.mjs +24 -0
  139. package/dist/{queryCachePlugin-3gJj5Rbz.mjs → queryCachePlugin-B2jpwFcv.mjs} +6 -6
  140. package/dist/{rateLimitKey-Kro---xl.mjs → rateLimitKey-BWx-qep0.mjs} +1 -1
  141. package/dist/{realtime-Ber8uJN2.mjs → realtime-D2tqi3d2.mjs} +11 -11
  142. package/dist/registry/index.d.mts +2 -2
  143. package/dist/registry/index.mjs +3 -3
  144. package/dist/{registry-BA-_vFYk.mjs → registry-Dl0k6UXy.mjs} +2 -2
  145. package/dist/{outbox-module-mg9kDYkd.mjs → relay-ZYvS4xyW.mjs} +5 -299
  146. package/dist/{renewingLease-CMY8YOcc.mjs → renewingLease-DT4yLb29.mjs} +1 -1
  147. package/dist/{replyHelpers-DK9P_XSz.mjs → replyHelpers-BJFN5AW7.mjs} +2 -2
  148. package/dist/{requestContext-GYO_0gEw.mjs → requestContext-Ct5la-SA.mjs} +1 -1
  149. package/dist/{requirement-DeNjZIH3.mjs → requirement-CxDxjB6V.mjs} +1 -1
  150. package/dist/{resourceRateLimit-tHLbrtWc.mjs → resourceRateLimit-D1oH2obv.mjs} +2 -2
  151. package/dist/{rolldown-runtime-Kv1fZdLg.mjs → rolldown-runtime-BdTN42uL.mjs} +1 -1
  152. package/dist/{routeValidator-C_H5NanI.mjs → routeValidator-DclDl5WJ.mjs} +1 -1
  153. package/dist/{runtimeCapabilities-DWqbxkyw.mjs → runtimeCapabilities-ClWr60El.mjs} +1 -1
  154. package/dist/{schedules-eO_RzhCU.mjs → schedules-gVkRcs-9.mjs} +5 -5
  155. package/dist/{schemaConverter-DBJrPZN4.mjs → schemaConverter-CIwB5wPO.mjs} +2 -2
  156. package/dist/{schemaIR-CEScKT2v.mjs → schemaIR-A0IoD05P.mjs} +2 -2
  157. package/dist/schemas/index.mjs +1 -1
  158. package/dist/scim/index.mjs +2 -2
  159. package/dist/scope/index.mjs +5 -5
  160. package/dist/{scope-B-Sm9m_E.mjs → scope-VMZhdkbT.mjs} +4 -4
  161. package/dist/{shutdown-DzLFbe27.mjs → shutdown-Bi19vH0z.mjs} +1 -1
  162. package/dist/{simpleEqualityMatcher-DOJhwQ8g.mjs → simpleEqualityMatcher-CaCS09fh.mjs} +1 -1
  163. package/dist/{sse-2972pVwV.mjs → sse-BqM359f1.mjs} +7 -7
  164. package/dist/{sseStream-AWLEeNV-.mjs → sseStream-qSa-F2Qm.mjs} +2 -2
  165. package/dist/{store-helpers-VzjgVTkM.mjs → store-helpers-rx-F2ZGR.mjs} +1 -1
  166. package/dist/{streaming-DvraWW6x.mjs → streaming-CPChx3A7.mjs} +1 -1
  167. package/dist/{subscriberIdentity-Bya56jsg.mjs → subscriberIdentity-CYNYw8p_.mjs} +1 -1
  168. package/dist/{tenancy-DSa_0hhw.mjs → tenancy-BoWImS3K.mjs} +2 -2
  169. package/dist/{tenantPreparation-BrpkQre3.mjs → tenantPreparation-oqKCZQZM.mjs} +4 -4
  170. package/dist/testing/cleanupStoreContract.mjs +1 -1
  171. package/dist/testing/index.d.mts +3 -3
  172. package/dist/testing/index.mjs +11 -11
  173. package/dist/testing/outboxStoreContract.mjs +2 -2
  174. package/dist/testing/requiredPorts.mjs +2 -2
  175. package/dist/testing/storageContract.mjs +1 -1
  176. package/dist/{timing-6rQTuCwg.mjs → timing-Dsteq59c.mjs} +1 -1
  177. package/dist/{transactionContext-DaxYUEgH.mjs → transactionContext-C1OgH-hW.mjs} +1 -1
  178. package/dist/{typeGuards-UKnX8wPX.mjs → typeGuards-DNlpASzd.mjs} +1 -1
  179. package/dist/types/index.d.mts +1 -1
  180. package/dist/types/index.mjs +1 -1
  181. package/dist/types/storage.mjs +1 -1
  182. package/dist/{types-BYEb_dLW.d.mts → types-DduBiYaI.d.mts} +19 -30
  183. package/dist/{types-CuGjhn83.mjs → types-HFFSwF_K.mjs} +4 -4
  184. package/dist/usage/index.mjs +4 -4
  185. package/dist/{userHelpers-oX5_mOVs.mjs → userHelpers-N-k-8dNF.mjs} +1 -1
  186. package/dist/utils/index.d.mts +1 -1
  187. package/dist/utils/index.mjs +12 -12
  188. package/dist/{utils-CjjGOT4E.mjs → utils-C7w_RVlx.mjs} +5 -5
  189. package/dist/{validate-4RlTKOJb.mjs → validate-Brr4b_fH.mjs} +3 -3
  190. package/dist/{versioning-Dk2-19La.mjs → versioning-CE5kdWOY.mjs} +3 -3
  191. package/dist/{workScope-DoBsoVo4.mjs → workScope-A3XBpYTa.mjs} +2 -2
  192. package/package.json +47 -27
  193. package/skills/arc/references/mcp-custom-tools.md +1 -1
  194. package/skills/arc/references/mcp-setup.md +11 -10
  195. package/skills/arc/references/mcp-testing.md +3 -3
@@ -1,25 +1,22 @@
1
1
 
2
- import { c as McpAuthResult, u as McpPluginOptions } from "../../types-BYEb_dLW.mjs";
3
- import { n as McpServerInstance } from "../../createMcpServer-DeVpqQF-.mjs";
2
+ import { c as McpAuthResult, u as McpPluginOptions } from "../../types-DduBiYaI.mjs";
3
+ import { n as McpServerInstance } from "../../createMcpServer-hSFeqRUb.mjs";
4
4
  import { Client } from "@modelcontextprotocol/client";
5
- /** An MCP client bound to a live loopback server, plus its teardown. */
5
+ /** An MCP client bound to a server, plus its teardown. */
6
6
  export interface ConnectedMcpTestClient {
7
7
  /** The connected SDK client — full `listTools` / `callTool` / `listPrompts` surface. */
8
8
  client: Client;
9
- /** Closes the client and the HTTP server. Always await it. */
9
+ /** Closes the client and the server's connection. Always await it. */
10
10
  close: () => Promise<void>;
11
11
  }
12
12
  /**
13
- * Serve an already-built `McpServer` on an ephemeral loopback port and connect
14
- * a client to it.
13
+ * Connect a 2026-07-28 client to an already-built `McpServer`.
15
14
  *
16
15
  * Split out from {@link createTestMcpClient} because arc's own MCP suites build
17
- * a server directly and only need the connection — five of them had each grown a
18
- * private copy of the same connect helper against the v1 in-memory transport.
19
- * One implementation, two entry points: this for a server you built, that for
20
- * one built from resources.
16
+ * a server directly and only need the connection. The server serves this one
17
+ * connection; build a fresh one per test.
21
18
  */
22
- export declare function connectMcpTestClient(server: McpServerInstance | unknown): Promise<ConnectedMcpTestClient>;
19
+ export declare function connectMcpTestClient(server: McpServerInstance): Promise<ConnectedMcpTestClient>;
23
20
  export interface TestMcpClientOptions {
24
21
  /** MCP plugin options (resources, overrides, etc.) — same as mcpPlugin config */
25
22
  pluginOptions?: Pick<McpPluginOptions, "resources" | "overrides" | "expose" | "exclude" | "toolNamePrefix" | "extraTools" | "extraPrompts" | "instructions">;
@@ -46,10 +43,9 @@ export interface TestMcpClient {
46
43
  close(): Promise<void>;
47
44
  }
48
45
  /**
49
- * Create an in-process MCP test client connected to an Arc MCP server.
50
- *
51
- * Pass resources and tools directly — no running Fastify server needed.
52
- * For HTTP-level integration tests against a running server, use `app.inject()` instead.
46
+ * Create a 2026-07-28 MCP test client connected, in memory, to an Arc MCP
47
+ * server built from resources. No Fastify app needed; for plugin-level
48
+ * behaviour use `app.inject()`.
53
49
  *
54
50
  * @example
55
51
  * ```typescript
@@ -1,63 +1,43 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { g as createMcpServer, r as resourceToTools, t as filterResourcesForMcp } from "../../mcpPlugin-yix548XX.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { _ as createMcpServer, i as resourceToTools, n as filterResourcesForMcp, t as MCP_PROTOCOL_VERSION } from "../../mcpPlugin-DQACaqVu.mjs";
3
3
  // src/integrations/mcp/testing.ts
4
4
  /**
5
- * Serve an already-built `McpServer` on an ephemeral loopback port and connect
6
- * a client to it.
5
+ * Connect a 2026-07-28 client to an already-built `McpServer`.
7
6
  *
8
7
  * Split out from {@link createTestMcpClient} because arc's own MCP suites build
9
- * a server directly and only need the connection — five of them had each grown a
10
- * private copy of the same connect helper against the v1 in-memory transport.
11
- * One implementation, two entry points: this for a server you built, that for
12
- * one built from resources.
8
+ * a server directly and only need the connection. The server serves this one
9
+ * connection; build a fresh one per test.
13
10
  */
14
11
  async function connectMcpTestClient(server) {
15
- const { randomUUID } = await import("node:crypto");
16
- const { createServer } = await import("node:http");
17
- const { NodeStreamableHTTPServerTransport } = await import("@modelcontextprotocol/node");
18
- const { Client, StreamableHTTPClientTransport } = await import("@modelcontextprotocol/client");
19
- const serverTransport = new NodeStreamableHTTPServerTransport({ sessionIdGenerator: () => randomUUID() });
20
- await server.connect(serverTransport);
21
- const httpServer = createServer((req, res) => {
22
- serverTransport.handleRequest(req, res);
12
+ const { Client, InMemoryTransport } = await import("@modelcontextprotocol/client");
13
+ const { serveStdio } = await import("@modelcontextprotocol/server/stdio");
14
+ const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
15
+ const handle = serveStdio(() => server, {
16
+ transport: serverTransport,
17
+ legacy: "reject"
23
18
  });
24
- await new Promise((resolve, reject) => {
25
- httpServer.once("error", reject);
26
- httpServer.listen(0, "127.0.0.1", resolve);
27
- });
28
- const address = httpServer.address();
29
- if (address === null || typeof address === "string") {
30
- httpServer.close();
31
- throw new Error("[arc] MCP test harness: HTTP server did not bind a TCP port");
32
- }
33
19
  const client = new Client({
34
20
  name: "test-client",
35
21
  version: "1.0"
36
- });
37
- await client.connect(new StreamableHTTPClientTransport(new URL(`http://127.0.0.1:${address.port}/`)));
22
+ }, { versionNegotiation: { mode: { pin: MCP_PROTOCOL_VERSION } } });
23
+ try {
24
+ await client.connect(clientTransport);
25
+ } catch (err) {
26
+ await handle.close();
27
+ throw err;
28
+ }
38
29
  return {
39
30
  client,
40
- /**
41
- * Client first, THEN the socket. Reversed, the client's in-flight request
42
- * hangs on a dead server until its own timeout — which reads as a slow test
43
- * rather than a teardown bug. `httpServer.close()` only stops NEW
44
- * connections, so keep-alive sockets are destroyed explicitly; without that
45
- * vitest hangs at end-of-file with no failing assertion.
46
- */
47
31
  async close() {
48
32
  await client.close();
49
- httpServer.closeAllConnections?.();
50
- await new Promise((resolve, reject) => {
51
- httpServer.close((err) => err ? reject(err) : resolve());
52
- });
33
+ await handle.close();
53
34
  }
54
35
  };
55
36
  }
56
37
  /**
57
- * Create an in-process MCP test client connected to an Arc MCP server.
58
- *
59
- * Pass resources and tools directly — no running Fastify server needed.
60
- * For HTTP-level integration tests against a running server, use `app.inject()` instead.
38
+ * Create a 2026-07-28 MCP test client connected, in memory, to an Arc MCP
39
+ * server built from resources. No Fastify app needed; for plugin-level
40
+ * behaviour use `app.inject()`.
61
41
  *
62
42
  * @example
63
43
  * ```typescript
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { f as createError, i as NotFoundError, r as ForbiddenError } from "../errors-BY8vzlP4.mjs";
3
- import { a as promoteStreamTokenToHeader, n as forwardedStreamHeaders } from "../streaming-DvraWW6x.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { f as createError, i as NotFoundError, r as ForbiddenError } from "../errors-DyY48oRi.mjs";
3
+ import { a as promoteStreamTokenToHeader, n as forwardedStreamHeaders } from "../streaming-CPChx3A7.mjs";
4
4
  import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
5
5
  import fp from "fastify-plugin";
6
6
  // src/integrations/streamline.ts
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { a as EventTransport, n as DomainEvent } from "../EventTransport-CYEoCJGe.mjs";
3
- import { i as createOutboxModule, r as OutboxModuleOptions } from "../outbox-module-XvUThpqn.mjs";
3
+ import { i as createOutboxModule, r as OutboxModuleOptions } from "../outbox-module-5Mnwcycy.mjs";
4
4
  import { FastifyPluginAsync } from "fastify";
5
5
  import { OutboxFailurePolicy, OutboxStore } from "@classytic/primitives/outbox";
6
6
  export interface WebhookSubscription {
@@ -1,6 +1,7 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-DWqbxkyw.mjs";
3
- import { i as exponentialBackoff, t as createOutboxModule } from "../outbox-module-mg9kDYkd.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-ClWr60El.mjs";
3
+ import { r as exponentialBackoff } from "../relay-ZYvS4xyW.mjs";
4
+ import { t as createOutboxModule } from "../outbox-module-C874VgBr.mjs";
4
5
  import { createHmac, timingSafeEqual } from "node:crypto";
5
6
  import fp from "fastify-plugin";
6
7
  import { createChildEvent, matchEventPattern } from "@classytic/primitives/events";
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/integrations/websocket-pushref-redis.ts
3
3
  /**
4
4
  * Lua script for atomic claim. Runs server-side, single-roundtrip.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/integrations/websocket-redis.ts
3
3
  /**
4
4
  * Redis Pub/Sub adapter for cross-instance WebSocket broadcast.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-DWqbxkyw.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-ClWr60El.mjs";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import sjson from "secure-json-parse";
5
5
  import fp from "fastify-plugin";
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as ArcError } from "./errors-BY8vzlP4.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as ArcError } from "./errors-DyY48oRi.mjs";
3
3
  import sjson from "secure-json-parse";
4
4
  // src/utils/jsonBody.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  import { contentHash } from "@classytic/repo-core/hash";
3
3
  // src/cache/keys.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Kv1fZdLg.mjs";
3
- import { t as arcLog } from "./logger-CbFcIEBZ.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BdTN42uL.mjs";
3
+ import { t as arcLog } from "./logger-VyMcSmVG.mjs";
4
4
  import { readdir } from "node:fs/promises";
5
5
  import { dirname, join, resolve } from "node:path";
6
6
  import { fileURLToPath, pathToFileURL } from "node:url";
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- import { t as ResourceRegistry } from "./ResourceRegistry-Douk51fa.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as ResourceRegistry } from "./ResourceRegistry-BcvEJoZd.mjs";
3
3
  import { resolve } from "node:path";
4
4
  import { pathToFileURL } from "node:url";
5
5
  // src/cli/utils/loadResourcesFromEntry.ts
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
- export { t as arcLog, n as configureArcLogger, r as createPinoWriter, i as runWithArcLogger } from "../logger-CbFcIEBZ.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ export { t as arcLog, n as configureArcLogger, r as createPinoWriter, i as runWithArcLogger } from "../logger-VyMcSmVG.mjs";
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  // src/logger/scope.ts
4
4
  /**