@classytic/arc 2.47.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 (160) hide show
  1. package/dist/{EventTransport-BHKy4_Bi.mjs → EventTransport-BWwg5YAU.mjs} +2 -2
  2. package/dist/{HookSystem-CAIDVoKC.mjs → HookSystem-B9x-Y_k7.mjs} +2 -2
  3. package/dist/{ResourceRegistry-23Ml6FNe.mjs → ResourceRegistry-BcvEJoZd.mjs} +2 -2
  4. package/dist/{acquire-DoFX06fm.mjs → acquire-D2yj6Zzl.mjs} +1 -1
  5. package/dist/{actionPermissions-DXrlWHHK.mjs → actionPermissions-Dha8sAz2.mjs} +13 -13
  6. package/dist/audit/index.mjs +4 -4
  7. package/dist/auth/audit.mjs +1 -1
  8. package/dist/auth/index.mjs +7 -7
  9. package/dist/auth/redis-session.mjs +1 -1
  10. package/dist/{authorizationDecision-DYiubkYw.mjs → authorizationDecision-BZSJcPNE.mjs} +4 -4
  11. package/dist/{boundedMap-CtdzpJ3X.mjs → boundedMap-o2KZDCWy.mjs} +1 -1
  12. package/dist/{buildHandler-CARdmPNo.mjs → buildHandler-G3k59KY2.mjs} +4 -4
  13. package/dist/cache/index.mjs +4 -4
  14. package/dist/{caching-QRiryDLs.mjs → caching-CJIDPZOv.mjs} +2 -2
  15. package/dist/{claimed-BLecr1j3.mjs → claimed-D0A43wjT.mjs} +1 -1
  16. package/dist/cleanup/index.mjs +4 -4
  17. package/dist/cli/commands/describe.mjs +3 -3
  18. package/dist/cli/commands/docs.mjs +3 -3
  19. package/dist/cli/commands/doctor.mjs +1 -1
  20. package/dist/cli/commands/generate.mjs +2 -2
  21. package/dist/cli/commands/init.mjs +2 -2
  22. package/dist/cli/commands/introspect.mjs +2 -2
  23. package/dist/cli/index.mjs +3 -3
  24. package/dist/{constants-Cx7BcnHT.mjs → constants-D-faL5SX.mjs} +1 -1
  25. package/dist/context/index.mjs +5 -5
  26. package/dist/core/index.mjs +7 -7
  27. package/dist/{core-0WyMuo0f.mjs → core-NSu1peyq.mjs} +3 -3
  28. package/dist/{createActionRouter-mLAGbpDV.mjs → createActionRouter-DTSVv1VK.mjs} +6 -6
  29. package/dist/{createAggregationRouter-BEAjn3dA.mjs → createAggregationRouter-zEasm-ax.mjs} +7 -7
  30. package/dist/{createApp-QDP4vYWH.mjs → createApp-CjqhkX1x.mjs} +29 -29
  31. package/dist/{createMcpServer-DzXHX0SO.d.mts → createMcpServer-hSFeqRUb.d.mts} +9 -10
  32. package/dist/{defineAggregation-CFNfvz-C.mjs → defineAggregation-DH2L6_v9.mjs} +1 -1
  33. package/dist/{defineResource-BROJmhzJ.mjs → defineResource-zYCrhNaN.mjs} +8 -8
  34. package/dist/discovery/index.mjs +1 -1
  35. package/dist/docs/index.mjs +3 -3
  36. package/dist/{elevation-DrXeEWWk.mjs → elevation-z--rFcZ5.mjs} +5 -5
  37. package/dist/encryption/index.mjs +3 -3
  38. package/dist/{errorHandler-BiBXtxj4.mjs → errorHandler-3_3oN-Uc.mjs} +3 -3
  39. package/dist/{errors-DnrUChAy.mjs → errors-DyY48oRi.mjs} +1 -1
  40. package/dist/{eventPlugin-BhKLUe7H.mjs → eventPlugin-Co9sABCg.mjs} +8 -8
  41. package/dist/{eventTypes-CCIRGakw.mjs → eventTypes-HmAFyJmJ.mjs} +2 -2
  42. package/dist/events/index.mjs +8 -8
  43. package/dist/events/transports/redis-stream-entry.mjs +4 -4
  44. package/dist/events/transports/redis.mjs +2 -2
  45. package/dist/factory/index.mjs +6 -6
  46. package/dist/{fields-CYdpcV73.mjs → fields-rfsl26Ov.mjs} +1 -1
  47. package/dist/{filter-merge-6kasezRH.mjs → filter-merge-8glLr7Dk.mjs} +1 -1
  48. package/dist/{generate-DUkcbc4r.mjs → generate-BOfBueRt.mjs} +2 -2
  49. package/dist/{headers-KxhrKevA.mjs → headers-CHSOqpcY.mjs} +2 -2
  50. package/dist/{health-CRJg3IIq.mjs → health-DHvAIVmM.mjs} +1 -1
  51. package/dist/{health-jkYNdobJ.mjs → health-ezwTHQh2.mjs} +1 -1
  52. package/dist/hooks/index.mjs +2 -2
  53. package/dist/http-cache/index.mjs +4 -4
  54. package/dist/http-cache/purgers/cloudflare.mjs +2 -2
  55. package/dist/http-cache/purgers/fastly.mjs +2 -2
  56. package/dist/http-cache/testing/index.mjs +1 -1
  57. package/dist/idempotency/index.mjs +7 -7
  58. package/dist/idempotency/redis.mjs +2 -2
  59. package/dist/index.mjs +11 -11
  60. package/dist/{init-CACwpktI.mjs → init-MoE3eZNR.mjs} +1 -1
  61. package/dist/integrations/event-gateway.mjs +2 -2
  62. package/dist/integrations/index.d.mts +1 -1
  63. package/dist/integrations/index.mjs +1 -1
  64. package/dist/integrations/jobs/index.mjs +3 -3
  65. package/dist/integrations/mcp/index.d.mts +3 -35
  66. package/dist/integrations/mcp/index.mjs +2 -2
  67. package/dist/integrations/mcp/testing.d.mts +11 -15
  68. package/dist/integrations/mcp/testing.mjs +22 -42
  69. package/dist/integrations/streamline.mjs +3 -3
  70. package/dist/integrations/webhooks.mjs +4 -4
  71. package/dist/integrations/websocket-pushref-redis.mjs +1 -1
  72. package/dist/integrations/websocket-redis.mjs +1 -1
  73. package/dist/integrations/websocket.mjs +2 -2
  74. package/dist/{jsonBody-CzDBkCme.mjs → jsonBody-DZGiCawf.mjs} +2 -2
  75. package/dist/{keys-Cbwf6r1B.mjs → keys-CrMOZuk6.mjs} +1 -1
  76. package/dist/{loadResources-Kr6vuljv.mjs → loadResources-CVQvYUhN.mjs} +3 -3
  77. package/dist/{loadResourcesFromEntry-D2e0qoDR.mjs → loadResourcesFromEntry-D0naccV2.mjs} +2 -2
  78. package/dist/logger/index.mjs +2 -2
  79. package/dist/{logger-C110X5Yz.mjs → logger-VyMcSmVG.mjs} +1 -1
  80. package/dist/{mcpPlugin-4lIPr9OJ.mjs → mcpPlugin-DQACaqVu.mjs} +210 -373
  81. package/dist/{memory-D9qkhXiB.mjs → memory-Lpfu8Hga.mjs} +3 -3
  82. package/dist/{metrics-B-qrrWfI.mjs → metrics-DjVj1sg5.mjs} +3 -3
  83. package/dist/middleware/index.mjs +3 -3
  84. package/dist/migrations/index.mjs +2 -2
  85. package/dist/{module-BD8xHgrz.mjs → module-BqPJpZ_L.mjs} +1 -1
  86. package/dist/{multipartBody-qU7KCn1l.mjs → multipartBody-BNgNv7r0.mjs} +1 -1
  87. package/dist/{observeSend-BnPtTotW.mjs → observeSend-BKJHibJz.mjs} +1 -1
  88. package/dist/{openapi-DoVa5SVP.mjs → openapi-T90KrPR6.mjs} +6 -6
  89. package/dist/outbox-admin/index.mjs +5 -5
  90. package/dist/{outbox-module-DyITEIop.mjs → outbox-module-C874VgBr.mjs} +7 -7
  91. package/dist/permissions/index.mjs +7 -7
  92. package/dist/{permissions-BBy4bOGi.mjs → permissions-R9T2G1PH.mjs} +9 -9
  93. package/dist/{pipe-BOm2o4UA.mjs → pipe-DzqbsZy-.mjs} +2 -2
  94. package/dist/pipeline/index.mjs +2 -2
  95. package/dist/{plan-DDIGwuxr.mjs → plan-C0gkeABY.mjs} +1 -1
  96. package/dist/{plugin-Bn4D_0XK.mjs → plugin-BJcVOX5r.mjs} +22 -22
  97. package/dist/plugins/index.mjs +17 -17
  98. package/dist/plugins/response-cache.mjs +4 -4
  99. package/dist/plugins/tracing-entry.mjs +2 -2
  100. package/dist/{pluralize-ClEjcKlG.mjs → pluralize-CrCpyoZs.mjs} +1 -1
  101. package/dist/presets/filesUpload.mjs +5 -5
  102. package/dist/presets/index.mjs +2 -2
  103. package/dist/presets/multiTenant.mjs +5 -5
  104. package/dist/presets/search.mjs +2 -2
  105. package/dist/{presets-DK2jh5YR.mjs → presets-CNDvNYsz.mjs} +4 -4
  106. package/dist/{projection-BHH-sXyS.mjs → projection-CIUe8b59.mjs} +2 -2
  107. package/dist/{purger.types-2wNJK_89.mjs → purger.types-f83fTzGy.mjs} +1 -1
  108. package/dist/{queryCachePlugin-Ckqe98AM.mjs → queryCachePlugin-B2jpwFcv.mjs} +6 -6
  109. package/dist/{rateLimitKey-CWAjlqcN.mjs → rateLimitKey-BWx-qep0.mjs} +1 -1
  110. package/dist/{realtime-BIJi9USY.mjs → realtime-D2tqi3d2.mjs} +11 -11
  111. package/dist/registry/index.mjs +3 -3
  112. package/dist/{registry-y9ZA-R_J.mjs → registry-Dl0k6UXy.mjs} +2 -2
  113. package/dist/{relay-BNrC1CEP.mjs → relay-ZYvS4xyW.mjs} +4 -4
  114. package/dist/{renewingLease-CS43br5E.mjs → renewingLease-DT4yLb29.mjs} +1 -1
  115. package/dist/{replyHelpers-oZDzakGb.mjs → replyHelpers-BJFN5AW7.mjs} +2 -2
  116. package/dist/{requestContext-fWb_YaV2.mjs → requestContext-Ct5la-SA.mjs} +1 -1
  117. package/dist/{requirement--2hWyyHi.mjs → requirement-CxDxjB6V.mjs} +1 -1
  118. package/dist/{resourceRateLimit-1WbcyMZY.mjs → resourceRateLimit-D1oH2obv.mjs} +2 -2
  119. package/dist/{rolldown-runtime-yH2lHMo_.mjs → rolldown-runtime-BdTN42uL.mjs} +1 -1
  120. package/dist/{routeValidator-BSlRIA5c.mjs → routeValidator-DclDl5WJ.mjs} +1 -1
  121. package/dist/{runtimeCapabilities-CYCEtU1W.mjs → runtimeCapabilities-ClWr60El.mjs} +1 -1
  122. package/dist/{schedules-B5WGlYIT.mjs → schedules-gVkRcs-9.mjs} +5 -5
  123. package/dist/{schemaConverter-DtNvts-6.mjs → schemaConverter-CIwB5wPO.mjs} +2 -2
  124. package/dist/{schemaIR-uS_RHqa3.mjs → schemaIR-A0IoD05P.mjs} +2 -2
  125. package/dist/schemas/index.mjs +1 -1
  126. package/dist/scim/index.mjs +2 -2
  127. package/dist/scope/index.mjs +5 -5
  128. package/dist/{scope-BwVLSyNG.mjs → scope-VMZhdkbT.mjs} +4 -4
  129. package/dist/{shutdown-BJiJN7FT.mjs → shutdown-Bi19vH0z.mjs} +1 -1
  130. package/dist/{simpleEqualityMatcher-DGRLq-1k.mjs → simpleEqualityMatcher-CaCS09fh.mjs} +1 -1
  131. package/dist/{sse-B_50llZu.mjs → sse-BqM359f1.mjs} +7 -7
  132. package/dist/{sseStream-BjSo9Ult.mjs → sseStream-qSa-F2Qm.mjs} +2 -2
  133. package/dist/{store-helpers-D-n5cwy5.mjs → store-helpers-rx-F2ZGR.mjs} +1 -1
  134. package/dist/{streaming-Dcgqa-hH.mjs → streaming-CPChx3A7.mjs} +1 -1
  135. package/dist/{subscriberIdentity-C9KhIXTF.mjs → subscriberIdentity-CYNYw8p_.mjs} +1 -1
  136. package/dist/{tenancy-COrhjPRZ.mjs → tenancy-BoWImS3K.mjs} +2 -2
  137. package/dist/{tenantPreparation-BElWHytd.mjs → tenantPreparation-oqKCZQZM.mjs} +4 -4
  138. package/dist/testing/cleanupStoreContract.mjs +1 -1
  139. package/dist/testing/index.mjs +11 -11
  140. package/dist/testing/outboxStoreContract.mjs +2 -2
  141. package/dist/testing/requiredPorts.mjs +2 -2
  142. package/dist/testing/storageContract.mjs +1 -1
  143. package/dist/{timing-CaxKbRk_.mjs → timing-Dsteq59c.mjs} +1 -1
  144. package/dist/{transactionContext-8qKON0Nk.mjs → transactionContext-C1OgH-hW.mjs} +1 -1
  145. package/dist/{typeGuards-DVjVSsXO.mjs → typeGuards-DNlpASzd.mjs} +1 -1
  146. package/dist/types/index.mjs +1 -1
  147. package/dist/types/storage.mjs +1 -1
  148. package/dist/{types-DeLiuaNv.d.mts → types-DduBiYaI.d.mts} +18 -29
  149. package/dist/{types-DZHqOuJE.mjs → types-HFFSwF_K.mjs} +4 -4
  150. package/dist/usage/index.mjs +4 -4
  151. package/dist/{userHelpers-_eGj6kf0.mjs → userHelpers-N-k-8dNF.mjs} +1 -1
  152. package/dist/utils/index.mjs +12 -12
  153. package/dist/{utils-Dd6MWpye.mjs → utils-C7w_RVlx.mjs} +5 -5
  154. package/dist/{validate-BaF5wd0x.mjs → validate-Brr4b_fH.mjs} +3 -3
  155. package/dist/{versioning-DyV7mwtK.mjs → versioning-CE5kdWOY.mjs} +3 -3
  156. package/dist/{workScope-CmCBUmPR.mjs → workScope-A3XBpYTa.mjs} +2 -2
  157. package/package.json +15 -23
  158. package/skills/arc/references/mcp-custom-tools.md +1 -1
  159. package/skills/arc/references/mcp-setup.md +11 -10
  160. package/skills/arc/references/mcp-testing.md +3 -3
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { r as workSeedFromEvent, t as runWorkScope } from "./workScope-CmCBUmPR.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { r as workSeedFromEvent, t as runWorkScope } from "./workScope-A3XBpYTa.mjs";
3
3
  import { createEvent as createEvent$1, createEventRouter } from "@classytic/primitives/events";
4
4
  // src/events/EventTransport.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { t as buildRequestScopeProjection } from "./projection-BHH-sXyS.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as buildRequestScopeProjection } from "./projection-CIUe8b59.mjs";
3
3
  // src/hooks/HookSystem.ts
4
4
  /**
5
5
  * Hook System
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import "./constants-Cx7BcnHT.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import "./constants-D-faL5SX.mjs";
3
3
  // src/registry/ResourceRegistry.ts
4
4
  /**
5
5
  * Resource Registry
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/idempotency/acquire.ts
3
3
  async function acquireIdempotencyKey(store, key, requestId, lockTtlMs) {
4
4
  if (typeof store.acquire === "function") return store.acquire(key, requestId, lockTtlMs);
@@ -1,16 +1,16 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { f as createError } from "./errors-DnrUChAy.mjs";
3
- import { n as getUserRoles } from "./userHelpers-_eGj6kf0.mjs";
4
- import { b as isElevated, n as PUBLIC_SCOPE, u as getRequestScope, x as isMember } from "./types-DZHqOuJE.mjs";
5
- import { a as resolveEffectiveRoles, r as deriveHiddenFieldPermissions, t as applyFieldReadPermissions } from "./fields-CYdpcV73.mjs";
6
- import { t as buildRequestScopeProjection } from "./projection-BHH-sXyS.mjs";
7
- import { n as requestContext } from "./requestContext-fWb_YaV2.mjs";
8
- import { n as isTenantPreparation } from "./tenantPreparation-BElWHytd.mjs";
9
- import { n as evaluateAndApplyPermission } from "./authorizationDecision-DYiubkYw.mjs";
10
- import { t as executePipeline } from "./pipe-BOm2o4UA.mjs";
11
- import { n as idempotencyConfigProblem, t as declaresIdempotencyFence } from "./requirement--2hWyyHi.mjs";
12
- import { i as resolveResourceRateLimiter, r as recordUnenforcedRateLimit } from "./resourceRateLimit-1WbcyMZY.mjs";
13
- import { n as arcRouteValidatorCompiler } from "./routeValidator-BSlRIA5c.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { f as createError } from "./errors-DyY48oRi.mjs";
3
+ import { n as getUserRoles } from "./userHelpers-N-k-8dNF.mjs";
4
+ import { b as isElevated, n as PUBLIC_SCOPE, u as getRequestScope, x as isMember } from "./types-HFFSwF_K.mjs";
5
+ import { a as resolveEffectiveRoles, r as deriveHiddenFieldPermissions, t as applyFieldReadPermissions } from "./fields-rfsl26Ov.mjs";
6
+ import { t as buildRequestScopeProjection } from "./projection-CIUe8b59.mjs";
7
+ import { n as requestContext } from "./requestContext-Ct5la-SA.mjs";
8
+ import { n as isTenantPreparation } from "./tenantPreparation-oqKCZQZM.mjs";
9
+ import { n as evaluateAndApplyPermission } from "./authorizationDecision-BZSJcPNE.mjs";
10
+ import { t as executePipeline } from "./pipe-DzqbsZy-.mjs";
11
+ import { n as idempotencyConfigProblem, t as declaresIdempotencyFence } from "./requirement-CxDxjB6V.mjs";
12
+ import { i as resolveResourceRateLimiter, r as recordUnenforcedRateLimit } from "./resourceRateLimit-D1oH2obv.mjs";
13
+ import { n as arcRouteValidatorCompiler } from "./routeValidator-DclDl5WJ.mjs";
14
14
  import { isPaginatedResult, toCanonicalList } from "@classytic/repo-core/pagination";
15
15
  // src/core/fastifyAdapter.ts
16
16
  /** Type guard for Mongoose-like documents with toObject() */
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { g as getUserId, i as getClientId } from "../types-DZHqOuJE.mjs";
3
- import { t as transactionContext } from "../transactionContext-8qKON0Nk.mjs";
4
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-CYCEtU1W.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { g as getUserId, i as getClientId } from "../types-HFFSwF_K.mjs";
3
+ import { t as transactionContext } from "../transactionContext-C1OgH-hW.mjs";
4
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-ClWr60El.mjs";
5
5
  import { and, anyOf, eq, gte, lt, lte } from "@classytic/repo-core/filter";
6
6
  import fp from "fastify-plugin";
7
7
  // src/audit/repository-audit-adapter.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/auth/audit.ts
3
3
  function compileGlobs(patterns) {
4
4
  if (patterns.length === 0) return () => false;
@@ -1,10 +1,10 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { d as createDomainError, l as UnauthorizedError, p as isArcError, t as ArcError } from "../errors-DnrUChAy.mjs";
3
- import { n as requireSingleHeaderValue } from "../headers-KxhrKevA.mjs";
4
- import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-_eGj6kf0.mjs";
5
- import { o as toJsonSchema } from "../schemaConverter-DtNvts-6.mjs";
6
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-CYCEtU1W.mjs";
7
- import { E as requireOrgRole, T as requireOrgMembership, k as requireTeamMembership } from "../permissions-BBy4bOGi.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { d as createDomainError, l as UnauthorizedError, p as isArcError, t as ArcError } from "../errors-DyY48oRi.mjs";
3
+ import { n as requireSingleHeaderValue } from "../headers-CHSOqpcY.mjs";
4
+ import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-N-k-8dNF.mjs";
5
+ import { o as toJsonSchema } from "../schemaConverter-CIwB5wPO.mjs";
6
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-ClWr60El.mjs";
7
+ import { E as requireOrgRole, T as requireOrgMembership, k as requireTeamMembership } from "../permissions-R9T2G1PH.mjs";
8
8
  import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
9
9
  import { isProductionEnv } from "@classytic/primitives/environment";
10
10
  import { createHmac, randomUUID, timingSafeEqual } from "node:crypto";
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  import sjson from "secure-json-parse";
3
3
  // src/auth/redis-session.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { t as arcLog } from "./logger-C110X5Yz.mjs";
3
- import { t as conjoinPolicyFilters } from "./filter-merge-6kasezRH.mjs";
4
- import { t as ArcError } from "./errors-DnrUChAy.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as arcLog } from "./logger-VyMcSmVG.mjs";
3
+ import { t as conjoinPolicyFilters } from "./filter-merge-8glLr7Dk.mjs";
4
+ import { t as ArcError } from "./errors-DyY48oRi.mjs";
5
5
  // src/permissions/authorizationDecision.ts
6
6
  const log = arcLog("permissions:enforce");
7
7
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/collections/boundedMap.ts
3
3
  /**
4
4
  * Insertion-order LRU on a plain `Map` — the two moves, written once.
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { t as conjoinPolicyFilters } from "./filter-merge-6kasezRH.mjs";
3
- import { D as toRepositoryFilter } from "./plugin-Bn4D_0XK.mjs";
4
- import { i as compileAggRequest, t as adapterSupportsAggregate } from "./validate-BaF5wd0x.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as conjoinPolicyFilters } from "./filter-merge-8glLr7Dk.mjs";
3
+ import { D as toRepositoryFilter } from "./plugin-BJcVOX5r.mjs";
4
+ import { i as compileAggRequest, t as adapterSupportsAggregate } from "./validate-Brr4b_fH.mjs";
5
5
  // src/core/aggregation/buildHandler.ts
6
6
  /**
7
7
  * Framework-agnostic aggregation execution. Runs safety guards,
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { i as versionKey, n as hashParams, r as tagVersionKey, t as buildQueryKey } from "../keys-Cbwf6r1B.mjs";
3
- import { t as MemoryCacheStore } from "../memory-D9qkhXiB.mjs";
4
- import { r as QueryCache, t as queryCachePlugin } from "../queryCachePlugin-Ckqe98AM.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { i as versionKey, n as hashParams, r as tagVersionKey, t as buildQueryKey } from "../keys-CrMOZuk6.mjs";
3
+ import { t as MemoryCacheStore } from "../memory-Lpfu8Hga.mjs";
4
+ import { r as QueryCache, t as queryCachePlugin } from "../queryCachePlugin-B2jpwFcv.mjs";
5
5
  // src/cache/redis.ts
6
6
  /**
7
7
  * Redis-backed cache store.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-yH2lHMo_.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BdTN42uL.mjs";
3
3
  import fp from "fastify-plugin";
4
4
  // src/plugins/caching.ts
5
5
  var caching_exports = /* @__PURE__ */ __exportAll({
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/events/outbox/claimed.ts
3
3
  function claimedAttempts(claimed) {
4
4
  const value = claimed.attempts;
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { g as getUserId } from "../types-DZHqOuJE.mjs";
3
- import { t as defineResource } from "../defineResource-BROJmhzJ.mjs";
4
- import { t as defineModule } from "../module-BD8xHgrz.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { g as getUserId } from "../types-HFFSwF_K.mjs";
3
+ import { t as defineResource } from "../defineResource-zYCrhNaN.mjs";
4
+ import { t as defineModule } from "../module-BqPJpZ_L.mjs";
5
5
  import { createPurgeEvidence } from "@classytic/primitives/retention";
6
6
  import { canonicalJson, sha256Hex } from "@classytic/primitives/canonical";
7
7
  // src/cleanup/errors.ts
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { t as CRUD_OPERATIONS } from "../../constants-Cx7BcnHT.mjs";
3
- import { n as stringifyMeasureMap } from "../../ResourceRegistry-23Ml6FNe.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as CRUD_OPERATIONS } from "../../constants-D-faL5SX.mjs";
3
+ import { n as stringifyMeasureMap } from "../../ResourceRegistry-BcvEJoZd.mjs";
4
4
  import { resolve } from "node:path";
5
5
  import { pathToFileURL } from "node:url";
6
6
  // src/cli/commands/describe.ts
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { t as buildOpenApiSpec } from "../../openapi-DoVa5SVP.mjs";
3
- import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-D2e0qoDR.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as buildOpenApiSpec } from "../../openapi-T90KrPR6.mjs";
3
+ import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-D0naccV2.mjs";
4
4
  import { dirname, resolve } from "node:path";
5
5
  import { mkdirSync, writeFileSync } from "node:fs";
6
6
  // src/cli/commands/docs.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  import { dirname, join, parse, resolve } from "node:path";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  // src/cli/commands/doctor.ts
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- export { t as generate } from "../../generate-DUkcbc4r.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ export { t as generate } from "../../generate-BOfBueRt.mjs";
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- export { t as init } from "../../init-CACwpktI.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ export { t as init } from "../../init-MoE3eZNR.mjs";
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-D2e0qoDR.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-D0naccV2.mjs";
3
3
  // src/cli/commands/introspect.ts
4
4
  function describePermission(value) {
5
5
  if (!value) return "none";
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  import { describe } from "./commands/describe.mjs";
3
3
  import { exportDocs } from "./commands/docs.mjs";
4
4
  import { doctor } from "./commands/doctor.mjs";
5
- import { t as generate } from "../generate-DUkcbc4r.mjs";
6
- import { t as init } from "../init-CACwpktI.mjs";
5
+ import { t as generate } from "../generate-BOfBueRt.mjs";
6
+ import { t as init } from "../init-MoE3eZNR.mjs";
7
7
  import { introspect } from "./commands/introspect.mjs";
8
8
  export { describe, doctor, exportDocs, generate, init, introspect };
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/constants.ts
3
3
  /**
4
4
  * Arc Framework Constants — Single Source of Truth
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { t as transactionContext } from "../transactionContext-8qKON0Nk.mjs";
3
- import { n as requestContext, t as getTraceHeaders } from "../requestContext-fWb_YaV2.mjs";
4
- import { n as evictToSize, r as touch } from "../boundedMap-CtdzpJ3X.mjs";
5
- import { n as scopedValue, r as workSeedFromEvent, t as runWorkScope } from "../workScope-CmCBUmPR.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as transactionContext } from "../transactionContext-C1OgH-hW.mjs";
3
+ import { n as requestContext, t as getTraceHeaders } from "../requestContext-Ct5la-SA.mjs";
4
+ import { n as evictToSize, r as touch } from "../boundedMap-o2KZDCWy.mjs";
5
+ import { n as scopedValue, r as workSeedFromEvent, t as runWorkScope } from "../workScope-A3XBpYTa.mjs";
6
6
  // src/context/requestScopedCache.ts
7
7
  /** The memo slot the per-scope store hangs off. */
8
8
  const SLOT = Symbol.for("arc.requestScopedCache");
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { a as DEFAULT_SORT, c as DEFAULT_VERSION_FIELD, d as MAX_FILTER_DEPTH, f as MAX_REGEX_LENGTH, g as SYSTEM_FIELDS, h as RESERVED_QUERY_PARAMS, i as DEFAULT_MAX_LIMIT, l as HOOK_OPERATIONS, m as MUTATION_OPERATIONS, n as DEFAULT_ID_FIELD, o as DEFAULT_TENANT_FIELD, p as MAX_SEARCH_LENGTH, r as DEFAULT_LIMIT, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS, u as HOOK_PHASES } from "../constants-Cx7BcnHT.mjs";
3
- import { E as nativePolicyFilter, T as AccessControl, _ as BaseCrudController, a as crudInput, b as isFieldReadable, c as routeInput, d as createPermissionMiddleware, f as BaseController, g as BulkMixin, h as SlugMixin, m as SoftDeleteMixin, o as noPayloadSchema, p as TreeMixin, s as parsed, u as createCrudRouter, v as QueryResolver, w as BodySanitizer, y as collectReadBlockedFields } from "../plugin-Bn4D_0XK.mjs";
4
- import { t as defineAggregation } from "../defineAggregation-CFNfvz-C.mjs";
5
- import { C as sendControllerResponse, S as getControllerScope, b as createRequestContext, x as getControllerContext, y as createFastifyHandler } from "../actionPermissions-DXrlWHHK.mjs";
6
- import { a as defineResourceVariants, i as getEntityQuery, n as getEntityId, o as mergeResourceConfig, r as getEntityIdField, s as defineAction, t as getActionTarget } from "../core-0WyMuo0f.mjs";
7
- import { a as ResourceDefinition, i as validateResourceConfig, n as assertValidConfig, r as formatValidationErrors, t as defineResource } from "../defineResource-BROJmhzJ.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { a as DEFAULT_SORT, c as DEFAULT_VERSION_FIELD, d as MAX_FILTER_DEPTH, f as MAX_REGEX_LENGTH, g as SYSTEM_FIELDS, h as RESERVED_QUERY_PARAMS, i as DEFAULT_MAX_LIMIT, l as HOOK_OPERATIONS, m as MUTATION_OPERATIONS, n as DEFAULT_ID_FIELD, o as DEFAULT_TENANT_FIELD, p as MAX_SEARCH_LENGTH, r as DEFAULT_LIMIT, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS, u as HOOK_PHASES } from "../constants-D-faL5SX.mjs";
3
+ import { E as nativePolicyFilter, T as AccessControl, _ as BaseCrudController, a as crudInput, b as isFieldReadable, c as routeInput, d as createPermissionMiddleware, f as BaseController, g as BulkMixin, h as SlugMixin, m as SoftDeleteMixin, o as noPayloadSchema, p as TreeMixin, s as parsed, u as createCrudRouter, v as QueryResolver, w as BodySanitizer, y as collectReadBlockedFields } from "../plugin-BJcVOX5r.mjs";
4
+ import { t as defineAggregation } from "../defineAggregation-DH2L6_v9.mjs";
5
+ import { C as sendControllerResponse, S as getControllerScope, b as createRequestContext, x as getControllerContext, y as createFastifyHandler } from "../actionPermissions-Dha8sAz2.mjs";
6
+ import { a as defineResourceVariants, i as getEntityQuery, n as getEntityId, o as mergeResourceConfig, r as getEntityIdField, s as defineAction, t as getActionTarget } from "../core-NSu1peyq.mjs";
7
+ import { a as ResourceDefinition, i as validateResourceConfig, n as assertValidConfig, r as formatValidationErrors, t as defineResource } from "../defineResource-zYCrhNaN.mjs";
8
8
  export { AccessControl, BaseController, BaseCrudController, BodySanitizer, BulkMixin, CRUD_OPERATIONS, DEFAULT_ID_FIELD, DEFAULT_LIMIT, DEFAULT_MAX_LIMIT, DEFAULT_SORT, DEFAULT_TENANT_FIELD, DEFAULT_UPDATE_METHOD, DEFAULT_VERSION_FIELD, HOOK_OPERATIONS, HOOK_PHASES, MAX_FILTER_DEPTH, MAX_REGEX_LENGTH, MAX_SEARCH_LENGTH, MUTATION_OPERATIONS, QueryResolver, RESERVED_QUERY_PARAMS, ResourceDefinition, SYSTEM_FIELDS, SlugMixin, SoftDeleteMixin, TreeMixin, assertValidConfig, collectReadBlockedFields, createCrudRouter, createFastifyHandler, createPermissionMiddleware, createRequestContext, crudInput, defineAction, defineAggregation, defineResource, defineResourceVariants, formatValidationErrors, getActionTarget, getControllerContext, getControllerScope, getEntityId, getEntityIdField, getEntityQuery, isFieldReadable, mergeResourceConfig, nativePolicyFilter, noPayloadSchema, parsed, routeInput, sendControllerResponse, validateResourceConfig };
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import "./constants-Cx7BcnHT.mjs";
3
- import { t as defineResource } from "./defineResource-BROJmhzJ.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import "./constants-D-faL5SX.mjs";
3
+ import { t as defineResource } from "./defineResource-zYCrhNaN.mjs";
4
4
  // src/core/defineAction.ts
5
5
  /**
6
6
  * Build an `ActionDefinition` with a typed handler. The literal schema
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-yH2lHMo_.mjs";
3
- import "./constants-Cx7BcnHT.mjs";
4
- import { f as createError, i as NotFoundError, u as ValidationError } from "./errors-DnrUChAy.mjs";
5
- import { C as sendControllerResponse, _ as buildArcDecorator, a as resolveRouterPluginMw, f as buildRouteHooks, g as buildAuthMiddlewareForPermissions, i as buildRouteConfig, l as resolvePipelineSteps, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, r as buildRateLimitConfig, s as buildActionPipelineHandler, u as buildActionPermissionMw } from "./actionPermissions-DXrlWHHK.mjs";
6
- import { n as schemaIRToJsonSchemaBranch, t as normalizeSchemaIR } from "./schemaIR-uS_RHqa3.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BdTN42uL.mjs";
3
+ import "./constants-D-faL5SX.mjs";
4
+ import { f as createError, i as NotFoundError, u as ValidationError } from "./errors-DyY48oRi.mjs";
5
+ import { C as sendControllerResponse, _ as buildArcDecorator, a as resolveRouterPluginMw, f as buildRouteHooks, g as buildAuthMiddlewareForPermissions, i as buildRouteConfig, l as resolvePipelineSteps, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, r as buildRateLimitConfig, s as buildActionPipelineHandler, u as buildActionPermissionMw } from "./actionPermissions-Dha8sAz2.mjs";
6
+ import { n as schemaIRToJsonSchemaBranch, t as normalizeSchemaIR } from "./schemaIR-A0IoD05P.mjs";
7
7
  // src/core/createActionRouter.ts
8
8
  var createActionRouter_exports = /* @__PURE__ */ __exportAll({
9
9
  buildActionBodySchema: () => buildActionBodySchema,
@@ -1,10 +1,10 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { f as createError } from "./errors-DnrUChAy.mjs";
3
- import { u as getRequestScope } from "./types-DZHqOuJE.mjs";
4
- import { _ as buildArcDecorator, a as resolveRouterPluginMw, f as buildRouteHooks, h as buildAuthMiddleware, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, r as buildRateLimitConfig } from "./actionPermissions-DXrlWHHK.mjs";
5
- import { n as evaluateAndApplyPermission } from "./authorizationDecision-DYiubkYw.mjs";
6
- import { n as validateAggregations } from "./validate-BaF5wd0x.mjs";
7
- import { t as buildAggregationHandler } from "./buildHandler-CARdmPNo.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { f as createError } from "./errors-DyY48oRi.mjs";
3
+ import { u as getRequestScope } from "./types-HFFSwF_K.mjs";
4
+ import { _ as buildArcDecorator, a as resolveRouterPluginMw, f as buildRouteHooks, h as buildAuthMiddleware, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, r as buildRateLimitConfig } from "./actionPermissions-Dha8sAz2.mjs";
5
+ import { n as evaluateAndApplyPermission } from "./authorizationDecision-BZSJcPNE.mjs";
6
+ import { n as validateAggregations } from "./validate-Brr4b_fH.mjs";
7
+ import { t as buildAggregationHandler } from "./buildHandler-G3k59KY2.mjs";
8
8
  // src/core/aggregation/createAggregationRouter.ts
9
9
  /**
10
10
  * Register one Fastify route per aggregation. No-op when the map is
@@ -1,19 +1,19 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-yH2lHMo_.mjs";
3
- import { a as enterArcLoggerScope, i as runWithArcLogger, n as configureArcLogger, r as createPinoWriter, t as arcLog } from "./logger-C110X5Yz.mjs";
4
- import { n as PUBLIC_SCOPE } from "./types-DZHqOuJE.mjs";
5
- import { t as runObservingSend } from "./observeSend-BnPtTotW.mjs";
6
- import { r as initRuntimeCapabilityRegistry, t as auditRuntimeCapabilities } from "./runtimeCapabilities-CYCEtU1W.mjs";
7
- import { a as runShutdown, t as initShutdownRegistry } from "./shutdown-BJiJN7FT.mjs";
8
- import { n as isScopeAwareKeyGenerator, t as createTenantKeyGenerator } from "./rateLimitKey-CWAjlqcN.mjs";
9
- import { i as resolveResourceRateLimiter, n as markRateLimitingDisabled } from "./resourceRateLimit-1WbcyMZY.mjs";
10
- import { r as markArcRootValidator, t as arcAjvCustomOptions } from "./routeValidator-BSlRIA5c.mjs";
11
- import { c as createRequestIdGenerator, r as mergeHealthChecks } from "./health-jkYNdobJ.mjs";
12
- import { t as parseJsonBody } from "./jsonBody-CzDBkCme.mjs";
13
- import { a as portsForModule, b as verifyEventDurability, f as resolveModuleArm, g as crudEventsOf, h as buildModuleGraph, m as analyzeModuleGraph, n as composeModules, x as verifyModuleGraph } from "./plan-DDIGwuxr.mjs";
14
- import { c as wrapWithAttribution, f as defineEvent, l as wrapWithBoundary, r as CRUD_EVENT_SCHEMA } from "./eventTypes-CCIRGakw.mjs";
15
- import { r as withSubscriberId } from "./subscriberIdentity-C9KhIXTF.mjs";
16
- import { r as getOptionalModuleExports } from "./module-BD8xHgrz.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BdTN42uL.mjs";
3
+ import { a as enterArcLoggerScope, i as runWithArcLogger, n as configureArcLogger, r as createPinoWriter, t as arcLog } from "./logger-VyMcSmVG.mjs";
4
+ import { n as PUBLIC_SCOPE } from "./types-HFFSwF_K.mjs";
5
+ import { t as runObservingSend } from "./observeSend-BKJHibJz.mjs";
6
+ import { r as initRuntimeCapabilityRegistry, t as auditRuntimeCapabilities } from "./runtimeCapabilities-ClWr60El.mjs";
7
+ import { a as runShutdown, t as initShutdownRegistry } from "./shutdown-Bi19vH0z.mjs";
8
+ import { n as isScopeAwareKeyGenerator, t as createTenantKeyGenerator } from "./rateLimitKey-BWx-qep0.mjs";
9
+ import { i as resolveResourceRateLimiter, n as markRateLimitingDisabled } from "./resourceRateLimit-D1oH2obv.mjs";
10
+ import { r as markArcRootValidator, t as arcAjvCustomOptions } from "./routeValidator-DclDl5WJ.mjs";
11
+ import { c as createRequestIdGenerator, r as mergeHealthChecks } from "./health-ezwTHQh2.mjs";
12
+ import { t as parseJsonBody } from "./jsonBody-DZGiCawf.mjs";
13
+ import { a as portsForModule, b as verifyEventDurability, f as resolveModuleArm, g as crudEventsOf, h as buildModuleGraph, m as analyzeModuleGraph, n as composeModules, x as verifyModuleGraph } from "./plan-C0gkeABY.mjs";
14
+ import { c as wrapWithAttribution, f as defineEvent, l as wrapWithBoundary, r as CRUD_EVENT_SCHEMA } from "./eventTypes-HmAFyJmJ.mjs";
15
+ import { r as withSubscriberId } from "./subscriberIdentity-CYNYw8p_.mjs";
16
+ import { r as getOptionalModuleExports } from "./module-BqPJpZ_L.mjs";
17
17
  import { isProductionEnv, readEnv } from "@classytic/primitives/environment";
18
18
  import Fastify from "fastify";
19
19
  import qs from "qs";
@@ -766,7 +766,7 @@ async function registerArcCore(fastify, config, trackPlugin) {
766
766
  await fastify.register(arcCorePlugin, { emitEvents: config.arcPlugins?.emitEvents !== false });
767
767
  trackPlugin("arc-core");
768
768
  if (config.arcPlugins?.events !== false) {
769
- const { default: eventPlugin } = await import("./eventPlugin-BhKLUe7H.mjs").then((n) => n.r);
769
+ const { default: eventPlugin } = await import("./eventPlugin-Co9sABCg.mjs").then((n) => n.r);
770
770
  const eventOpts = typeof config.arcPlugins?.events === "object" ? config.arcPlugins.events : {};
771
771
  await fastify.register(eventPlugin, {
772
772
  /**
@@ -821,15 +821,15 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
821
821
  trackPlugin("arc-graceful-shutdown", shutdownOpts);
822
822
  }
823
823
  if (config.arcPlugins?.caching) {
824
- const { default: cachingPlugin } = await import("./caching-QRiryDLs.mjs").then((n) => n.n);
824
+ const { default: cachingPlugin } = await import("./caching-CJIDPZOv.mjs").then((n) => n.n);
825
825
  const opts = config.arcPlugins.caching === true ? {} : config.arcPlugins.caching;
826
826
  await fastify.register(cachingPlugin, opts);
827
827
  trackPlugin("arc-caching", opts);
828
828
  }
829
829
  if (config.arcPlugins?.queryCache) {
830
- const { queryCachePlugin } = await import("./queryCachePlugin-Ckqe98AM.mjs").then((n) => n.n);
830
+ const { queryCachePlugin } = await import("./queryCachePlugin-B2jpwFcv.mjs").then((n) => n.n);
831
831
  const opts = config.arcPlugins.queryCache === true ? {} : config.arcPlugins.queryCache;
832
- const store = config.stores?.queryCache ?? new (await (import("./memory-D9qkhXiB.mjs").then((n) => n.n))).MemoryCacheStore();
832
+ const store = config.stores?.queryCache ?? new (await (import("./memory-Lpfu8Hga.mjs").then((n) => n.n))).MemoryCacheStore();
833
833
  await fastify.register(queryCachePlugin, {
834
834
  store,
835
835
  ...opts
@@ -839,7 +839,7 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
839
839
  if (config.arcPlugins?.sse) {
840
840
  if (config.arcPlugins?.events === false) fastify.log.warn("SSE plugin requires events plugin (arcPlugins.events). SSE disabled.");
841
841
  else {
842
- const { default: ssePlugin } = await import("./sse-B_50llZu.mjs").then((n) => n.n);
842
+ const { default: ssePlugin } = await import("./sse-BqM359f1.mjs").then((n) => n.n);
843
843
  const opts = config.arcPlugins.sse === true ? {} : config.arcPlugins.sse;
844
844
  await fastify.register(ssePlugin, opts);
845
845
  trackPlugin("arc-sse", opts);
@@ -848,20 +848,20 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
848
848
  if (config.arcPlugins?.realtime) {
849
849
  if (config.arcPlugins?.events === false) fastify.log.warn("Realtime plugin requires events plugin (arcPlugins.events). Realtime disabled.");
850
850
  else {
851
- const { default: realtimePlugin } = await import("./realtime-BIJi9USY.mjs").then((n) => n.n);
851
+ const { default: realtimePlugin } = await import("./realtime-D2tqi3d2.mjs").then((n) => n.n);
852
852
  const opts = config.arcPlugins.realtime === true ? {} : config.arcPlugins.realtime;
853
853
  await fastify.register(realtimePlugin, opts);
854
854
  trackPlugin("arc-realtime", opts);
855
855
  }
856
856
  }
857
857
  if (config.arcPlugins?.metrics) {
858
- const { default: metricsPlugin } = await import("./metrics-B-qrrWfI.mjs").then((n) => n.n);
858
+ const { default: metricsPlugin } = await import("./metrics-DjVj1sg5.mjs").then((n) => n.n);
859
859
  const opts = config.arcPlugins.metrics === true ? {} : config.arcPlugins.metrics;
860
860
  await fastify.register(metricsPlugin, opts);
861
861
  trackPlugin("arc-metrics", opts);
862
862
  }
863
863
  if (config.arcPlugins?.versioning) {
864
- const { default: versioningPlugin } = await import("./versioning-DyV7mwtK.mjs").then((n) => n.n);
864
+ const { default: versioningPlugin } = await import("./versioning-CE5kdWOY.mjs").then((n) => n.n);
865
865
  await fastify.register(versioningPlugin, config.arcPlugins.versioning);
866
866
  trackPlugin("arc-versioning", config.arcPlugins.versioning);
867
867
  }
@@ -938,7 +938,7 @@ async function registerAuth(fastify, config, trackPlugin) {
938
938
  */
939
939
  async function registerElevation(fastify, config, trackPlugin) {
940
940
  if (!config.elevation) return;
941
- const { elevationPlugin } = await import("./elevation-DrXeEWWk.mjs").then((n) => n.n);
941
+ const { elevationPlugin } = await import("./elevation-z--rFcZ5.mjs").then((n) => n.n);
942
942
  await fastify.register(elevationPlugin, config.elevation);
943
943
  trackPlugin("arc-elevation", config.elevation);
944
944
  fastify.log.debug("Elevation plugin enabled");
@@ -953,7 +953,7 @@ async function registerElevation(fastify, config, trackPlugin) {
953
953
  */
954
954
  async function registerErrorHandler(fastify, config, trackPlugin, moduleErrorMappers) {
955
955
  if (config.errorHandler === false) return;
956
- const { errorHandlerPlugin } = await import("./errorHandler-BiBXtxj4.mjs").then((n) => n.r);
956
+ const { errorHandlerPlugin } = await import("./errorHandler-3_3oN-Uc.mjs").then((n) => n.r);
957
957
  /**
958
958
  * DISCLOSURE DEFAULTS MERGE — they used to be REPLACED, and that was two bugs.
959
959
  *
@@ -1172,7 +1172,7 @@ async function registerResources(fastify, config, preResolvedModules, skippedBri
1172
1172
  let discoveryPath;
1173
1173
  let discoveryYieldedZero = false;
1174
1174
  if (resolvedResources === void 0 && config.resourceDir) {
1175
- const { loadResources } = await import("./loadResources-Kr6vuljv.mjs").then((n) => n.n);
1175
+ const { loadResources } = await import("./loadResources-CVQvYUhN.mjs").then((n) => n.n);
1176
1176
  const { resolve, dirname } = await import("node:path");
1177
1177
  const { fileURLToPath } = await import("node:url");
1178
1178
  const rawDir = config.resourceDir;
@@ -1297,7 +1297,7 @@ Resources supplied by "${m.name}": ${provided}.`);
1297
1297
  if (fastify.hasDecorator("getScheduleStats")) throw new Error("[arc] modules declare scheduledJobs but schedulesPlugin was already registered manually. Configure their runner through arcPlugins.schedules so Arc can compose one schedule table.");
1298
1298
  const frozenJobs = Object.freeze(scheduledJobs.map((job) => Object.freeze({ ...job })));
1299
1299
  const scheduleOptions = typeof config.arcPlugins?.schedules === "object" ? config.arcPlugins.schedules : {};
1300
- const { default: schedulesPlugin } = await import("./schedules-B5WGlYIT.mjs").then((n) => n.n);
1300
+ const { default: schedulesPlugin } = await import("./schedules-gVkRcs-9.mjs").then((n) => n.n);
1301
1301
  await fastify.register(schedulesPlugin, {
1302
1302
  ...scheduleOptions,
1303
1303
  schedules: frozenJobs
@@ -1999,7 +1999,7 @@ async function buildApp(options, loggerScope, onInstance, onBootDisposer) {
1999
1999
  await registerErrorHandler(fastify, config, trackPlugin, moduleErrorMappers);
2000
2000
  await registerResources(fastify, config, resolvedModules, skippedBridges);
2001
2001
  if (config.replyHelpers) {
2002
- const { replyHelpersPlugin } = await import("./replyHelpers-oZDzakGb.mjs").then((n) => n.n);
2002
+ const { replyHelpersPlugin } = await import("./replyHelpers-BJFN5AW7.mjs").then((n) => n.n);
2003
2003
  await fastify.register(replyHelpersPlugin);
2004
2004
  }
2005
2005
  if (config.serializeBigInt) {
@@ -1,5 +1,6 @@
1
1
 
2
- import { _ as ToolDefinition, c as McpAuthResult, r as CreateMcpServerConfig } from "./types-DeLiuaNv.mjs";
2
+ import { _ as ToolDefinition, c as McpAuthResult, r as CreateMcpServerConfig } from "./types-DduBiYaI.mjs";
3
+ import { McpServer } from "@modelcontextprotocol/server";
3
4
  /**
4
5
  * Mutable auth ref — updated per-request by mcpPlugin.
5
6
  * Tool handlers read from this to get the current request's auth context.
@@ -13,7 +14,7 @@ interface AuthRef {
13
14
  * @param config - Server name, version, tools, prompts
14
15
  * @returns McpServer instance (not yet connected to a transport)
15
16
  */
16
- declare function createMcpServer(config: CreateMcpServerConfig, authRef?: AuthRef): Promise<McpServerInstance>;
17
+ declare function createMcpServer(config: CreateMcpServerConfig, authRef?: AuthRef): Promise<McpServer>;
17
18
  /**
18
19
  * Detect and resolve duplicate MCP tool names across the assembled tool list.
19
20
  *
@@ -35,12 +36,10 @@ declare function createMcpServer(config: CreateMcpServerConfig, authRef?: AuthRe
35
36
  * without a full server boot.
36
37
  */
37
38
  declare function resolveToolCollisions(tools: readonly ToolDefinition[]): ToolDefinition[];
38
- /** Minimal interface for McpServer — avoids hard SDK type dependency */
39
- interface McpServerInstance {
40
- connect: (transport: unknown) => Promise<void>;
41
- registerTool: (name: string, config: Record<string, unknown>, handler: (input: Record<string, unknown>, extra: Record<string, unknown>) => unknown) => unknown;
42
- registerPrompt: (name: string, config: Record<string, unknown>, handler: (args: Record<string, unknown>) => unknown) => void;
43
- /** v2 name. v1 called this `resource()` — same four arguments. */
44
- registerResource: (...args: unknown[]) => void;
45
- }
39
+ /**
40
+ * The SDK's `McpServer`. Kept as a named alias because hosts import it from
41
+ * `@classytic/arc/mcp`; it was a hand-written structural subset, which hid the
42
+ * real signatures (and their deprecations) from the type checker.
43
+ */
44
+ type McpServerInstance = McpServer;
46
45
  export { resolveToolCollisions as i, McpServerInstance as n, createMcpServer as r, AuthRef as t };
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  // src/core/aggregation/defineAggregation.ts
3
3
  /**
4
4
  * Declare a single resource aggregation. Exported configs flow into
@@ -1,11 +1,11 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { m as MUTATION_OPERATIONS, t as CRUD_OPERATIONS } from "./constants-Cx7BcnHT.mjs";
3
- import { t as arcLog } from "./logger-C110X5Yz.mjs";
4
- import { C as isWriteVerbCapable, S as detectOverriddenWriteSlots, f as BaseController, i as resolveOpenApiSchemas, l as autoInjectTenantFieldRules, t as buildResourcePlugin } from "./plugin-Bn4D_0XK.mjs";
5
- import { a as isZodSchema, i as isJsonSchema } from "./schemaConverter-DtNvts-6.mjs";
6
- import { B as requireAuth } from "./permissions-BBy4bOGi.mjs";
7
- import { n as getAvailablePresets, t as applyPresets } from "./presets-DK2jh5YR.mjs";
8
- import { t as pluralize } from "./pluralize-ClEjcKlG.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { m as MUTATION_OPERATIONS, t as CRUD_OPERATIONS } from "./constants-D-faL5SX.mjs";
3
+ import { t as arcLog } from "./logger-VyMcSmVG.mjs";
4
+ import { C as isWriteVerbCapable, S as detectOverriddenWriteSlots, f as BaseController, i as resolveOpenApiSchemas, l as autoInjectTenantFieldRules, t as buildResourcePlugin } from "./plugin-BJcVOX5r.mjs";
5
+ import { a as isZodSchema, i as isJsonSchema } from "./schemaConverter-CIwB5wPO.mjs";
6
+ import { B as requireAuth } from "./permissions-R9T2G1PH.mjs";
7
+ import { n as getAvailablePresets, t as applyPresets } from "./presets-CNDvNYsz.mjs";
8
+ import { t as pluralize } from "./pluralize-CrCpyoZs.mjs";
9
9
  import { isReadOnlyRepo } from "@classytic/repo-core/repository";
10
10
  import { readEnv } from "@classytic/primitives/environment";
11
11
  // src/core/defineResource/writeVerbs.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
2
  import { readdir } from "node:fs/promises";
3
3
  import { extname, join, resolve } from "node:path";
4
4
  import { pathToFileURL } from "node:url";
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { n as getUserRoles } from "../userHelpers-_eGj6kf0.mjs";
3
- import { n as openapi_default, t as buildOpenApiSpec } from "../openapi-DoVa5SVP.mjs";
1
+ /*! @classytic/arc v2.48.0 | MIT | https://classytic.com */
2
+ import { n as getUserRoles } from "../userHelpers-N-k-8dNF.mjs";
3
+ import { n as openapi_default, t as buildOpenApiSpec } from "../openapi-T90KrPR6.mjs";
4
4
  import fp from "fastify-plugin";
5
5
  // src/docs/scalar.ts
6
6
  const scalarPlugin = async (fastify, opts = {}) => {
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-yH2lHMo_.mjs";
3
- import { t as arcLog } from "./logger-C110X5Yz.mjs";
4
- import { n as requireSingleHeaderValue } from "./headers-KxhrKevA.mjs";
5
- import { n as getUserRoles } from "./userHelpers-_eGj6kf0.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
+ import { n as requireSingleHeaderValue } from "./headers-CHSOqpcY.mjs";
5
+ import { n as getUserRoles } from "./userHelpers-N-k-8dNF.mjs";
6
6
  import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
7
7
  import fp from "fastify-plugin";
8
8
  // src/scope/elevation.ts