@classytic/arc 2.49.0 → 2.50.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 (155) hide show
  1. package/dist/{EventTransport-DbHZK230.mjs → EventTransport-B18mcj_M.mjs} +2 -2
  2. package/dist/{HookSystem-DMoeJ6Do.mjs → HookSystem-FUBaLTRm.mjs} +2 -2
  3. package/dist/{ResourceRegistry-CP-iTcKy.mjs → ResourceRegistry-C5NM07fZ.mjs} +2 -2
  4. package/dist/{acquire-CB0va87C.mjs → acquire-MHCnbDtH.mjs} +1 -1
  5. package/dist/audit/index.mjs +4 -4
  6. package/dist/auth/audit.mjs +1 -1
  7. package/dist/auth/index.mjs +7 -7
  8. package/dist/auth/redis-session.mjs +1 -1
  9. package/dist/{authorizationDecision-DHO94aV2.mjs → authorizationDecision-BD8K4jdQ.mjs} +4 -4
  10. package/dist/{boundedMap-C51EUUOm.mjs → boundedMap-CuCwos_X.mjs} +1 -1
  11. package/dist/{buildHandler-9DuwEKvr.mjs → buildHandler-BttjNkTM.mjs} +5 -5
  12. package/dist/cache/index.mjs +4 -4
  13. package/dist/{caching-COTX3sDa.mjs → caching-CxUQLHfR.mjs} +2 -2
  14. package/dist/{claimed-C7T1nHlo.mjs → claimed-CQ4ZpD8K.mjs} +1 -1
  15. package/dist/cleanup/index.mjs +4 -4
  16. package/dist/cli/commands/describe.mjs +3 -3
  17. package/dist/cli/commands/docs.mjs +3 -3
  18. package/dist/cli/commands/doctor.mjs +1 -1
  19. package/dist/cli/commands/generate.mjs +2 -2
  20. package/dist/cli/commands/init.mjs +2 -2
  21. package/dist/cli/commands/introspect.mjs +2 -2
  22. package/dist/cli/index.mjs +3 -3
  23. package/dist/{constants-DOnfMd7i.mjs → constants-BZFsZwJh.mjs} +1 -1
  24. package/dist/context/index.mjs +5 -5
  25. package/dist/core/index.mjs +7 -7
  26. package/dist/{core-BoEdFDDw.mjs → core-DWA1-5IE.mjs} +3 -3
  27. package/dist/{createActionRouter-CpTn15dm.mjs → createActionRouter-fP3l2xVF.mjs} +5 -5
  28. package/dist/{createAggregationRouter-CD_Hydp0.mjs → createAggregationRouter-BJZeOmBa.mjs} +7 -7
  29. package/dist/{createApp-Be6XTGD9.mjs → createApp-Db9JRumw.mjs} +29 -29
  30. package/dist/{defineAggregation-BI5pRb8c.mjs → defineAggregation-BskqRz8M.mjs} +1 -1
  31. package/dist/{defineResource-BAzNu5Um.mjs → defineResource-B2vTvKzW.mjs} +8 -8
  32. package/dist/discovery/index.mjs +1 -1
  33. package/dist/docs/index.mjs +3 -3
  34. package/dist/{elevation-DupGuM41.mjs → elevation-XoY0C73T.mjs} +5 -5
  35. package/dist/encryption/index.mjs +3 -3
  36. package/dist/{errorHandler-DA03vRqp.mjs → errorHandler-BYI-JQMm.mjs} +3 -3
  37. package/dist/{errors-BpYV859Y.mjs → errors-3xaK0i9n.mjs} +1 -1
  38. package/dist/{eventPlugin-D7LYtYzL.mjs → eventPlugin-CVQ9ddnL.mjs} +8 -8
  39. package/dist/{eventTypes-BqA-N-Uz.mjs → eventTypes-UPYg7gW1.mjs} +2 -2
  40. package/dist/events/index.mjs +8 -8
  41. package/dist/events/transports/redis-stream-entry.mjs +4 -4
  42. package/dist/events/transports/redis.mjs +2 -2
  43. package/dist/factory/index.mjs +6 -6
  44. package/dist/{fieldTypes-EFWxCkZ5.mjs → fieldTypes-CxRvCaaZ.mjs} +2 -2
  45. package/dist/{fields-CT1Erg7o.mjs → fields-DLFcJiDe.mjs} +1 -1
  46. package/dist/{filter-merge-B1eJ1pMx.mjs → filter-merge-Bvjk_8dV.mjs} +1 -1
  47. package/dist/{generate-Cr0ULavs.mjs → generate-0OpCUjUv.mjs} +2 -2
  48. package/dist/{headers-D4bncIOf.mjs → headers-BROW65-r.mjs} +2 -2
  49. package/dist/{health-BoFxrkJE.mjs → health-Cfh-kYI_.mjs} +1 -1
  50. package/dist/{health-DN_pUVMX.mjs → health-Cy6aOg1i.mjs} +1 -1
  51. package/dist/hooks/index.mjs +2 -2
  52. package/dist/http-cache/index.mjs +4 -4
  53. package/dist/http-cache/purgers/cloudflare.mjs +2 -2
  54. package/dist/http-cache/purgers/fastly.mjs +2 -2
  55. package/dist/http-cache/testing/index.mjs +1 -1
  56. package/dist/idempotency/index.mjs +7 -7
  57. package/dist/idempotency/redis.mjs +2 -2
  58. package/dist/index.mjs +11 -11
  59. package/dist/{init-C4a24wD2.mjs → init-D7PQcvvL.mjs} +1 -1
  60. package/dist/integrations/event-gateway.mjs +2 -2
  61. package/dist/integrations/index.mjs +1 -1
  62. package/dist/integrations/jobs/index.mjs +3 -3
  63. package/dist/integrations/mcp/index.mjs +2 -2
  64. package/dist/integrations/mcp/testing.mjs +2 -2
  65. package/dist/integrations/streamline.mjs +3 -3
  66. package/dist/integrations/webhooks.mjs +4 -4
  67. package/dist/integrations/websocket-pushref-redis.mjs +1 -1
  68. package/dist/integrations/websocket-redis.mjs +1 -1
  69. package/dist/integrations/websocket.mjs +2 -2
  70. package/dist/{jsonBody-DoTt5BS6.mjs → jsonBody-C0oREwUc.mjs} +2 -2
  71. package/dist/{keys--l9n7aOC.mjs → keys-CGlPoVSn.mjs} +1 -1
  72. package/dist/{loadResources-rygByIQA.mjs → loadResources-Oi47dogA.mjs} +3 -3
  73. package/dist/{loadResourcesFromEntry-ItNBIQ5w.mjs → loadResourcesFromEntry-BW-LexBz.mjs} +2 -2
  74. package/dist/logger/index.mjs +2 -2
  75. package/dist/{logger-UbknHqHy.mjs → logger-BagW7_YA.mjs} +1 -1
  76. package/dist/{mcpPlugin-CTkk4RP8.mjs → mcpPlugin-C6-wFsOX.mjs} +21 -21
  77. package/dist/{memory-C47xVsjX.mjs → memory-Bl7kv6TS.mjs} +3 -3
  78. package/dist/{metrics-TJyAb1Xk.mjs → metrics-CqnMJKrJ.mjs} +3 -3
  79. package/dist/middleware/index.mjs +3 -3
  80. package/dist/migrations/index.mjs +2 -2
  81. package/dist/{module-CWiqsXnh.mjs → module-lbEbHUfI.mjs} +1 -1
  82. package/dist/{multipartBody-BdG1qbn1.mjs → multipartBody-CqNezaB3.mjs} +1 -1
  83. package/dist/{observeSend-DrA3ADFN.mjs → observeSend-BjilzlYl.mjs} +1 -1
  84. package/dist/{openapi-D6MAbYpv.mjs → openapi-DXNbadgd.mjs} +6 -6
  85. package/dist/outbox-admin/index.mjs +5 -5
  86. package/dist/{outbox-module-D5QABFQW.mjs → outbox-module-k5rIszQ4.mjs} +7 -7
  87. package/dist/permissions/index.mjs +7 -7
  88. package/dist/{permissions-CFsmdYUt.mjs → permissions-BJylQopQ.mjs} +9 -9
  89. package/dist/{pipe-B_05AgGt.mjs → pipe-D1cq8hET.mjs} +2 -2
  90. package/dist/pipeline/index.mjs +2 -2
  91. package/dist/{plan-BnlNJhrj.mjs → plan-iEgaS5_H.mjs} +1 -1
  92. package/dist/{plugin-CrMPYbdj.mjs → plugin-DsLr6L4O.mjs} +24 -24
  93. package/dist/plugins/index.mjs +18 -18
  94. package/dist/plugins/response-cache.mjs +4 -4
  95. package/dist/plugins/tracing-entry.mjs +2 -2
  96. package/dist/{pluralize-oVIxJ4CY.mjs → pluralize-CX4ZvwCa.mjs} +1 -1
  97. package/dist/presets/filesUpload.mjs +5 -5
  98. package/dist/presets/index.mjs +2 -2
  99. package/dist/presets/multiTenant.mjs +5 -5
  100. package/dist/presets/search.mjs +2 -2
  101. package/dist/{presets-CUd3L7v6.mjs → presets-D_suT4OY.mjs} +4 -4
  102. package/dist/{projection-DowJlIto.mjs → projection-CmjGjFih.mjs} +2 -2
  103. package/dist/{purger.types-BjKy8869.mjs → purger.types-CZwkTZ7B.mjs} +1 -1
  104. package/dist/{queryCachePlugin-BvB3k_Fh.mjs → queryCachePlugin-BDOPEAmH.mjs} +6 -6
  105. package/dist/{rateLimitKey-56nH1cWN.mjs → rateLimitKey-igF1x64n.mjs} +1 -1
  106. package/dist/{realtime-DXGBPtYK.mjs → realtime-Cq_ugiWw.mjs} +67 -11
  107. package/dist/registry/index.mjs +3 -3
  108. package/dist/{registry-Biz-6sEZ.mjs → registry-DmF9Akvn.mjs} +2 -2
  109. package/dist/{relay-DEIoMntZ.mjs → relay-DA89IhFt.mjs} +5 -5
  110. package/dist/{renewingLease-BCJpW9-u.mjs → renewingLease-DBtGUt8T.mjs} +1 -1
  111. package/dist/{replyHelpers-DliJNb0-.mjs → replyHelpers-CUbeUc5q.mjs} +2 -2
  112. package/dist/{requestContext-tUgLt9Ky.mjs → requestContext-DO9Qv0gw.mjs} +1 -1
  113. package/dist/{requirement-0l2DApiQ.mjs → requirement-C3GaQmkR.mjs} +1 -1
  114. package/dist/{resourceRateLimit-iSXF8rLH.mjs → resourceRateLimit-KKn-sFhb.mjs} +2 -2
  115. package/dist/{rolldown-runtime-gKJR3o-6.mjs → rolldown-runtime-Ck1Tj4Ax.mjs} +1 -1
  116. package/dist/{routeValidator-xNYA4rr1.mjs → routeValidator-BF7n34xV.mjs} +1 -1
  117. package/dist/{runtimeCapabilities-BQK-GrYe.mjs → runtimeCapabilities-D0A4kkrC.mjs} +1 -1
  118. package/dist/{schedules-D9iMVFhF.mjs → schedules-CLrQRSTt.mjs} +5 -5
  119. package/dist/{schemaConverter-cIh4oX9a.mjs → schemaConverter-JEmU21fu.mjs} +2 -2
  120. package/dist/{schemaIR-BsY4y9VP.mjs → schemaIR-wOffQlbq.mjs} +14 -14
  121. package/dist/schemas/index.mjs +1 -1
  122. package/dist/scim/index.mjs +2 -2
  123. package/dist/scope/index.mjs +5 -5
  124. package/dist/{scope-QyhM9w8z.mjs → scope-CcTMRd7s.mjs} +4 -4
  125. package/dist/{shutdown-BM7Q0h4B.mjs → shutdown-BIR-QBYM.mjs} +1 -1
  126. package/dist/{streamFrames-B3ZJfI02.mjs → simpleEqualityMatcher-DqqJqovq.mjs} +2 -19
  127. package/dist/{sse-ofvlcTQQ.mjs → sse-OEuPpgss.mjs} +7 -7
  128. package/dist/{sseStream-BxQW7hPq.mjs → sseStream-DknHE2K5.mjs} +2 -2
  129. package/dist/{store-helpers-_FRhHDyv.mjs → store-helpers-D4vtEXt2.mjs} +1 -1
  130. package/dist/{streaming-HZr63UiM.mjs → streaming-CcIpcx02.mjs} +1 -1
  131. package/dist/{subscriberIdentity-DSgnoT_D.mjs → subscriberIdentity-PO6kimAl.mjs} +1 -1
  132. package/dist/{tenancy-_ukT0oBt.mjs → tenancy-CH2Kuksc.mjs} +2 -2
  133. package/dist/{tenantPreparation-DSlQI53c.mjs → tenantPreparation-BTGpblQW.mjs} +4 -4
  134. package/dist/testing/cleanupStoreContract.mjs +1 -1
  135. package/dist/testing/index.mjs +11 -11
  136. package/dist/testing/outboxStoreContract.mjs +2 -2
  137. package/dist/testing/requiredPorts.mjs +2 -2
  138. package/dist/testing/storageContract.mjs +1 -1
  139. package/dist/{timing-Z8p-Zlw1.mjs → timing-Dii5X7AP.mjs} +1 -1
  140. package/dist/{transactionContext-DBbSTfY3.mjs → transactionContext-DMPhYEOt.mjs} +1 -1
  141. package/dist/{typeGuards-_6nNQqgq.mjs → typeGuards-C1o_XEyp.mjs} +1 -1
  142. package/dist/types/index.mjs +1 -1
  143. package/dist/types/storage.mjs +1 -1
  144. package/dist/{types-CrOlZ4rY.mjs → types-BuV_cFqT.mjs} +4 -4
  145. package/dist/usage/index.mjs +4 -4
  146. package/dist/{userHelpers-CBKx3XJN.mjs → userHelpers-D4m_pLSC.mjs} +1 -1
  147. package/dist/utils/index.d.mts +2 -48
  148. package/dist/utils/index.mjs +13 -13
  149. package/dist/{utils--HE8R8sH.mjs → utils-CxLMXGn5.mjs} +7 -7
  150. package/dist/{validate-BUeE2MLR.mjs → validate-CZ975J8N.mjs} +3 -3
  151. package/dist/{versioning-qYgqwOhL.mjs → versioning-B2_8SBZo.mjs} +3 -3
  152. package/dist/{workScope-C-1QHNmV.mjs → workScope-B3W3r35s.mjs} +2 -2
  153. package/package.json +3 -3
  154. package/skills/arc/references/api-reference.md +1 -1
  155. package/skills/arc/references/production-realtime.md +1 -1
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import { r as workSeedFromEvent, t as runWorkScope } from "./workScope-C-1QHNmV.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { r as workSeedFromEvent, t as runWorkScope } from "./workScope-B3W3r35s.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.49.0 | MIT | https://classytic.com */
2
- import { t as buildRequestScopeProjection } from "./projection-DowJlIto.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as buildRequestScopeProjection } from "./projection-CmjGjFih.mjs";
3
3
  // src/hooks/HookSystem.ts
4
4
  /**
5
5
  * Hook System
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import "./constants-DOnfMd7i.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import "./constants-BZFsZwJh.mjs";
3
3
  // src/registry/ResourceRegistry.ts
4
4
  /**
5
5
  * Resource Registry
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.50.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,7 +1,7 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import { t as transactionContext } from "../transactionContext-DBbSTfY3.mjs";
3
- import { g as getUserId, i as getClientId } from "../types-CrOlZ4rY.mjs";
4
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-BQK-GrYe.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as transactionContext } from "../transactionContext-DMPhYEOt.mjs";
3
+ import { g as getUserId, i as getClientId } from "../types-BuV_cFqT.mjs";
4
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-D0A4kkrC.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.49.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.50.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.49.0 | MIT | https://classytic.com */
2
- import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-CBKx3XJN.mjs";
3
- import { d as createDomainError, l as UnauthorizedError, p as isArcError, t as ArcError } from "../errors-BpYV859Y.mjs";
4
- import { E as requireOrgRole, T as requireOrgMembership, k as requireTeamMembership } from "../permissions-CFsmdYUt.mjs";
5
- import { n as requireSingleHeaderValue } from "../headers-D4bncIOf.mjs";
6
- import { o as toJsonSchema } from "../schemaConverter-cIh4oX9a.mjs";
7
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-BQK-GrYe.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-D4m_pLSC.mjs";
3
+ import { d as createDomainError, l as UnauthorizedError, p as isArcError, t as ArcError } from "../errors-3xaK0i9n.mjs";
4
+ import { E as requireOrgRole, T as requireOrgMembership, k as requireTeamMembership } from "../permissions-BJylQopQ.mjs";
5
+ import { n as requireSingleHeaderValue } from "../headers-BROW65-r.mjs";
6
+ import { o as toJsonSchema } from "../schemaConverter-JEmU21fu.mjs";
7
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-D0A4kkrC.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.49.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.50.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.49.0 | MIT | https://classytic.com */
2
- import { t as arcLog } from "./logger-UbknHqHy.mjs";
3
- import { t as ArcError } from "./errors-BpYV859Y.mjs";
4
- import { t as conjoinPolicyFilters } from "./filter-merge-B1eJ1pMx.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as arcLog } from "./logger-BagW7_YA.mjs";
3
+ import { t as ArcError } from "./errors-3xaK0i9n.mjs";
4
+ import { t as conjoinPolicyFilters } from "./filter-merge-Bvjk_8dV.mjs";
5
5
  // src/permissions/authorizationDecision.ts
6
6
  const log = arcLog("permissions:enforce");
7
7
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.50.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,8 +1,8 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import { t as conjoinPolicyFilters } from "./filter-merge-B1eJ1pMx.mjs";
3
- import { D as toRepositoryFilter } from "./plugin-CrMPYbdj.mjs";
4
- import { i as guessDate, t as coerceByType } from "./fieldTypes-EFWxCkZ5.mjs";
5
- import { i as compileAggRequest, t as adapterSupportsAggregate } from "./validate-BUeE2MLR.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as conjoinPolicyFilters } from "./filter-merge-Bvjk_8dV.mjs";
3
+ import { D as toRepositoryFilter } from "./plugin-DsLr6L4O.mjs";
4
+ import { i as guessDate, t as coerceByType } from "./fieldTypes-CxRvCaaZ.mjs";
5
+ import { i as compileAggRequest, t as adapterSupportsAggregate } from "./validate-CZ975J8N.mjs";
6
6
  // src/core/aggregation/buildHandler.ts
7
7
  /**
8
8
  * Framework-agnostic aggregation execution. Runs safety guards,
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import { i as versionKey, n as hashParams, r as tagVersionKey, t as buildQueryKey } from "../keys--l9n7aOC.mjs";
3
- import { t as MemoryCacheStore } from "../memory-C47xVsjX.mjs";
4
- import { r as QueryCache, t as queryCachePlugin } from "../queryCachePlugin-BvB3k_Fh.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { i as versionKey, n as hashParams, r as tagVersionKey, t as buildQueryKey } from "../keys-CGlPoVSn.mjs";
3
+ import { t as MemoryCacheStore } from "../memory-Bl7kv6TS.mjs";
4
+ import { r as QueryCache, t as queryCachePlugin } from "../queryCachePlugin-BDOPEAmH.mjs";
5
5
  // src/cache/redis.ts
6
6
  /**
7
7
  * Redis-backed cache store.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-gKJR3o-6.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
3
  import fp from "fastify-plugin";
4
4
  // src/plugins/caching.ts
5
5
  var caching_exports = /* @__PURE__ */ __exportAll({ default: () => caching_default });
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.50.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.49.0 | MIT | https://classytic.com */
2
- import { t as defineResource } from "../defineResource-BAzNu5Um.mjs";
3
- import { t as defineModule } from "../module-CWiqsXnh.mjs";
4
- import { g as getUserId } from "../types-CrOlZ4rY.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as defineResource } from "../defineResource-B2vTvKzW.mjs";
3
+ import { t as defineModule } from "../module-lbEbHUfI.mjs";
4
+ import { g as getUserId } from "../types-BuV_cFqT.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.49.0 | MIT | https://classytic.com */
2
- import { t as CRUD_OPERATIONS } from "../../constants-DOnfMd7i.mjs";
3
- import { n as stringifyMeasureMap } from "../../ResourceRegistry-CP-iTcKy.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as CRUD_OPERATIONS } from "../../constants-BZFsZwJh.mjs";
3
+ import { n as stringifyMeasureMap } from "../../ResourceRegistry-C5NM07fZ.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.49.0 | MIT | https://classytic.com */
2
- import { t as buildOpenApiSpec } from "../../openapi-D6MAbYpv.mjs";
3
- import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-ItNBIQ5w.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as buildOpenApiSpec } from "../../openapi-DXNbadgd.mjs";
3
+ import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-BW-LexBz.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.49.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.50.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.49.0 | MIT | https://classytic.com */
2
- export { t as generate } from "../../generate-Cr0ULavs.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ export { t as generate } from "../../generate-0OpCUjUv.mjs";
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- export { t as init } from "../../init-C4a24wD2.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ export { t as init } from "../../init-D7PQcvvL.mjs";
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-ItNBIQ5w.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-BW-LexBz.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.49.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.50.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-Cr0ULavs.mjs";
6
- import { t as init } from "../init-C4a24wD2.mjs";
5
+ import { t as generate } from "../generate-0OpCUjUv.mjs";
6
+ import { t as init } from "../init-D7PQcvvL.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.49.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.50.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.49.0 | MIT | https://classytic.com */
2
- import { n as requestContext, t as getTraceHeaders } from "../requestContext-tUgLt9Ky.mjs";
3
- import { n as evictToSize, r as touch } from "../boundedMap-C51EUUOm.mjs";
4
- import { n as scopedValue, r as workSeedFromEvent, t as runWorkScope } from "../workScope-C-1QHNmV.mjs";
5
- import { t as transactionContext } from "../transactionContext-DBbSTfY3.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { n as requestContext, t as getTraceHeaders } from "../requestContext-DO9Qv0gw.mjs";
3
+ import { n as evictToSize, r as touch } from "../boundedMap-CuCwos_X.mjs";
4
+ import { n as scopedValue, r as workSeedFromEvent, t as runWorkScope } from "../workScope-B3W3r35s.mjs";
5
+ import { t as transactionContext } from "../transactionContext-DMPhYEOt.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.49.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-DOnfMd7i.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-CrMPYbdj.mjs";
4
- import { t as defineAggregation } from "../defineAggregation-BI5pRb8c.mjs";
5
- import { C as createFastifyHandler, D as sendControllerResponse, E as getControllerScope, T as getControllerContext, w as createRequestContext } from "../schemaIR-BsY4y9VP.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-BoEdFDDw.mjs";
7
- import { a as ResourceDefinition, i as validateResourceConfig, n as assertValidConfig, r as formatValidationErrors, t as defineResource } from "../defineResource-BAzNu5Um.mjs";
1
+ /*! @classytic/arc v2.50.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-BZFsZwJh.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-DsLr6L4O.mjs";
4
+ import { t as defineAggregation } from "../defineAggregation-BskqRz8M.mjs";
5
+ import { C as createFastifyHandler, D as sendControllerResponse, E as getControllerScope, T as getControllerContext, w as createRequestContext } from "../schemaIR-wOffQlbq.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-DWA1-5IE.mjs";
7
+ import { a as ResourceDefinition, i as validateResourceConfig, n as assertValidConfig, r as formatValidationErrors, t as defineResource } from "../defineResource-B2vTvKzW.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.49.0 | MIT | https://classytic.com */
2
- import "./constants-DOnfMd7i.mjs";
3
- import { t as defineResource } from "./defineResource-BAzNu5Um.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import "./constants-BZFsZwJh.mjs";
3
+ import { t as defineResource } from "./defineResource-B2vTvKzW.mjs";
4
4
  // src/core/defineAction.ts
5
5
  /**
6
6
  * Build an `ActionDefinition` with a typed handler. The literal schema
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-gKJR3o-6.mjs";
3
- import "./constants-DOnfMd7i.mjs";
4
- import { f as createError, i as NotFoundError, u as ValidationError } from "./errors-BpYV859Y.mjs";
5
- import { D as sendControllerResponse, b as buildAuthMiddlewareForPermissions, c as buildRouteConfig, d as buildActionPipelineHandler, g as buildRouteHooks, l as resolveRouterPluginMw, m as buildActionPermissionMw, o as tryRegisterRoute, p as resolvePipelineSteps, r as schemaIRToJsonSchemaBranch, s as buildRateLimitConfig, t as actionSchemaIR, u as selectPluginMw, v as routeHookOptions, x as buildArcDecorator } from "./schemaIR-BsY4y9VP.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
+ import "./constants-BZFsZwJh.mjs";
4
+ import { f as createError, i as NotFoundError, u as ValidationError } from "./errors-3xaK0i9n.mjs";
5
+ import { D as sendControllerResponse, b as buildAuthMiddlewareForPermissions, c as buildRouteConfig, d as buildActionPipelineHandler, g as buildRouteHooks, l as resolveRouterPluginMw, m as buildActionPermissionMw, o as tryRegisterRoute, p as resolvePipelineSteps, r as schemaIRToJsonSchemaBranch, s as buildRateLimitConfig, t as actionSchemaIR, u as selectPluginMw, v as routeHookOptions, x as buildArcDecorator } from "./schemaIR-wOffQlbq.mjs";
6
6
  // src/core/createActionRouter.ts
7
7
  var createActionRouter_exports = /* @__PURE__ */ __exportAll({ createActionRouter: () => createActionRouter });
8
8
  /**
@@ -1,10 +1,10 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import { n as evaluateAndApplyPermission } from "./authorizationDecision-DHO94aV2.mjs";
3
- import { u as getRequestScope } from "./types-CrOlZ4rY.mjs";
4
- import { f as createError } from "./errors-BpYV859Y.mjs";
5
- import { g as buildRouteHooks, l as resolveRouterPluginMw, o as tryRegisterRoute, s as buildRateLimitConfig, u as selectPluginMw, v as routeHookOptions, x as buildArcDecorator, y as buildAuthMiddleware } from "./schemaIR-BsY4y9VP.mjs";
6
- import { t as buildAggregationHandler } from "./buildHandler-9DuwEKvr.mjs";
7
- import { n as validateAggregations } from "./validate-BUeE2MLR.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { n as evaluateAndApplyPermission } from "./authorizationDecision-BD8K4jdQ.mjs";
3
+ import { u as getRequestScope } from "./types-BuV_cFqT.mjs";
4
+ import { f as createError } from "./errors-3xaK0i9n.mjs";
5
+ import { g as buildRouteHooks, l as resolveRouterPluginMw, o as tryRegisterRoute, s as buildRateLimitConfig, u as selectPluginMw, v as routeHookOptions, x as buildArcDecorator, y as buildAuthMiddleware } from "./schemaIR-wOffQlbq.mjs";
6
+ import { t as buildAggregationHandler } from "./buildHandler-BttjNkTM.mjs";
7
+ import { n as validateAggregations } from "./validate-CZ975J8N.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.49.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-gKJR3o-6.mjs";
3
- import { a as enterArcLoggerScope, i as runWithArcLogger, n as configureArcLogger, r as createPinoWriter, t as arcLog } from "./logger-UbknHqHy.mjs";
4
- import { n as PUBLIC_SCOPE } from "./types-CrOlZ4rY.mjs";
5
- import { t as runObservingSend } from "./observeSend-DrA3ADFN.mjs";
6
- import { r as initRuntimeCapabilityRegistry, t as auditRuntimeCapabilities } from "./runtimeCapabilities-BQK-GrYe.mjs";
7
- import { a as runShutdown, t as initShutdownRegistry } from "./shutdown-BM7Q0h4B.mjs";
8
- import { n as isScopeAwareKeyGenerator, t as createTenantKeyGenerator } from "./rateLimitKey-56nH1cWN.mjs";
9
- import { i as resolveResourceRateLimiter, n as markRateLimitingDisabled } from "./resourceRateLimit-iSXF8rLH.mjs";
10
- import { i as markArcRootValidator, r as arcValidatorBuilder, t as arcAjvCustomOptions } from "./routeValidator-xNYA4rr1.mjs";
11
- import { c as createRequestIdGenerator, r as mergeHealthChecks } from "./health-BoFxrkJE.mjs";
12
- import { t as parseJsonBody } from "./jsonBody-DoTt5BS6.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-BnlNJhrj.mjs";
14
- import { c as wrapWithAttribution, f as defineEvent, l as wrapWithBoundary, r as CRUD_EVENT_SCHEMA } from "./eventTypes-BqA-N-Uz.mjs";
15
- import { r as withSubscriberId } from "./subscriberIdentity-DSgnoT_D.mjs";
16
- import { r as getOptionalModuleExports } from "./module-CWiqsXnh.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
+ import { a as enterArcLoggerScope, i as runWithArcLogger, n as configureArcLogger, r as createPinoWriter, t as arcLog } from "./logger-BagW7_YA.mjs";
4
+ import { n as PUBLIC_SCOPE } from "./types-BuV_cFqT.mjs";
5
+ import { t as runObservingSend } from "./observeSend-BjilzlYl.mjs";
6
+ import { r as initRuntimeCapabilityRegistry, t as auditRuntimeCapabilities } from "./runtimeCapabilities-D0A4kkrC.mjs";
7
+ import { a as runShutdown, t as initShutdownRegistry } from "./shutdown-BIR-QBYM.mjs";
8
+ import { n as isScopeAwareKeyGenerator, t as createTenantKeyGenerator } from "./rateLimitKey-igF1x64n.mjs";
9
+ import { i as resolveResourceRateLimiter, n as markRateLimitingDisabled } from "./resourceRateLimit-KKn-sFhb.mjs";
10
+ import { i as markArcRootValidator, r as arcValidatorBuilder, t as arcAjvCustomOptions } from "./routeValidator-BF7n34xV.mjs";
11
+ import { c as createRequestIdGenerator, r as mergeHealthChecks } from "./health-Cfh-kYI_.mjs";
12
+ import { t as parseJsonBody } from "./jsonBody-C0oREwUc.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-iEgaS5_H.mjs";
14
+ import { c as wrapWithAttribution, f as defineEvent, l as wrapWithBoundary, r as CRUD_EVENT_SCHEMA } from "./eventTypes-UPYg7gW1.mjs";
15
+ import { r as withSubscriberId } from "./subscriberIdentity-PO6kimAl.mjs";
16
+ import { r as getOptionalModuleExports } from "./module-lbEbHUfI.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-D7LYtYzL.mjs").then((n) => n.r);
769
+ const { default: eventPlugin } = await import("./eventPlugin-CVQ9ddnL.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-COTX3sDa.mjs").then((n) => n.n);
824
+ const { default: cachingPlugin } = await import("./caching-CxUQLHfR.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-BvB3k_Fh.mjs").then((n) => n.n);
830
+ const { queryCachePlugin } = await import("./queryCachePlugin-BDOPEAmH.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-C47xVsjX.mjs").then((n) => n.n))).MemoryCacheStore();
832
+ const store = config.stores?.queryCache ?? new (await (import("./memory-Bl7kv6TS.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-ofvlcTQQ.mjs").then((n) => n.n);
842
+ const { default: ssePlugin } = await import("./sse-OEuPpgss.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-DXGBPtYK.mjs").then((n) => n.n);
851
+ const { default: realtimePlugin } = await import("./realtime-Cq_ugiWw.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-TJyAb1Xk.mjs").then((n) => n.n);
858
+ const { default: metricsPlugin } = await import("./metrics-CqnMJKrJ.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-qYgqwOhL.mjs").then((n) => n.n);
864
+ const { default: versioningPlugin } = await import("./versioning-B2_8SBZo.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-DupGuM41.mjs").then((n) => n.n);
941
+ const { elevationPlugin } = await import("./elevation-XoY0C73T.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-DA03vRqp.mjs").then((n) => n.r);
956
+ const { errorHandlerPlugin } = await import("./errorHandler-BYI-JQMm.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-rygByIQA.mjs").then((n) => n.n);
1175
+ const { loadResources } = await import("./loadResources-Oi47dogA.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-D9iMVFhF.mjs").then((n) => n.n);
1300
+ const { default: schedulesPlugin } = await import("./schedules-CLrQRSTt.mjs").then((n) => n.n);
1301
1301
  await fastify.register(schedulesPlugin, {
1302
1302
  ...scheduleOptions,
1303
1303
  schedules: frozenJobs
@@ -2291,7 +2291,7 @@ async function buildApp(options, loggerScope, onInstance, onBootDisposer) {
2291
2291
  await registerErrorHandler(fastify, config, trackPlugin, moduleErrorMappers);
2292
2292
  await registerResources(fastify, config, resolvedModules, skippedBridges);
2293
2293
  if (config.replyHelpers) {
2294
- const { replyHelpersPlugin } = await import("./replyHelpers-DliJNb0-.mjs").then((n) => n.n);
2294
+ const { replyHelpersPlugin } = await import("./replyHelpers-CUbeUc5q.mjs").then((n) => n.n);
2295
2295
  await fastify.register(replyHelpersPlugin);
2296
2296
  }
2297
2297
  if (config.serializeBigInt) {
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.50.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.49.0 | MIT | https://classytic.com */
2
- import { t as arcLog } from "./logger-UbknHqHy.mjs";
3
- import { C as isWriteVerbCapable, S as detectOverriddenWriteSlots, f as BaseController, i as resolveOpenApiSchemas, l as autoInjectTenantFieldRules, t as buildResourcePlugin } from "./plugin-CrMPYbdj.mjs";
4
- import { m as MUTATION_OPERATIONS, t as CRUD_OPERATIONS } from "./constants-DOnfMd7i.mjs";
5
- import { B as requireAuth } from "./permissions-CFsmdYUt.mjs";
6
- import { n as getAvailablePresets, t as applyPresets } from "./presets-CUd3L7v6.mjs";
7
- import { t as pluralize } from "./pluralize-oVIxJ4CY.mjs";
8
- import { a as isZodSchema, i as isJsonSchema } from "./schemaConverter-cIh4oX9a.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as arcLog } from "./logger-BagW7_YA.mjs";
3
+ import { C as isWriteVerbCapable, S as detectOverriddenWriteSlots, f as BaseController, i as resolveOpenApiSchemas, l as autoInjectTenantFieldRules, t as buildResourcePlugin } from "./plugin-DsLr6L4O.mjs";
4
+ import { m as MUTATION_OPERATIONS, t as CRUD_OPERATIONS } from "./constants-BZFsZwJh.mjs";
5
+ import { B as requireAuth } from "./permissions-BJylQopQ.mjs";
6
+ import { n as getAvailablePresets, t as applyPresets } from "./presets-D_suT4OY.mjs";
7
+ import { t as pluralize } from "./pluralize-CX4ZvwCa.mjs";
8
+ import { a as isZodSchema, i as isJsonSchema } from "./schemaConverter-JEmU21fu.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.49.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.50.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.49.0 | MIT | https://classytic.com */
2
- import { n as openapi_default, t as buildOpenApiSpec } from "../openapi-D6MAbYpv.mjs";
3
- import { n as getUserRoles } from "../userHelpers-CBKx3XJN.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { n as openapi_default, t as buildOpenApiSpec } from "../openapi-DXNbadgd.mjs";
3
+ import { n as getUserRoles } from "../userHelpers-D4m_pLSC.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.49.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-gKJR3o-6.mjs";
3
- import { t as arcLog } from "./logger-UbknHqHy.mjs";
4
- import { n as requireSingleHeaderValue } from "./headers-D4bncIOf.mjs";
5
- import { n as getUserRoles } from "./userHelpers-CBKx3XJN.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
+ import { t as arcLog } from "./logger-BagW7_YA.mjs";
4
+ import { n as requireSingleHeaderValue } from "./headers-BROW65-r.mjs";
5
+ import { n as getUserRoles } from "./userHelpers-D4m_pLSC.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
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import { t as ArcError } from "../errors-BpYV859Y.mjs";
3
- import { t as parseJsonBody } from "../jsonBody-DoTt5BS6.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as ArcError } from "../errors-3xaK0i9n.mjs";
3
+ import { t as parseJsonBody } from "../jsonBody-C0oREwUc.mjs";
4
4
  import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
5
5
  import fp from "fastify-plugin";
6
6
  // src/encryption/fieldCipher.ts
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-gKJR3o-6.mjs";
3
- import { m as statusToArcCode, p as isArcError } from "./errors-BpYV859Y.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
+ import { m as statusToArcCode, p as isArcError } from "./errors-3xaK0i9n.mjs";
4
4
  import { isHttpError, toErrorContract } from "@classytic/repo-core/errors";
5
5
  import { isProductionEnv } from "@classytic/primitives/environment";
6
6
  import fp from "fastify-plugin";
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
2
  import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
3
3
  // src/utils/errors.ts
4
4
  /**
@@ -1,11 +1,11 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-gKJR3o-6.mjs";
3
- import { n as requestContext } from "./requestContext-tUgLt9Ky.mjs";
4
- import { t as arcLog } from "./logger-UbknHqHy.mjs";
5
- import { d as createDomainError } from "./errors-BpYV859Y.mjs";
6
- import { i as runAdmittedWork, n as isAdmittedWork, r as registerShutdownParticipant } from "./shutdown-BM7Q0h4B.mjs";
7
- import { n as MemoryEventTransport, r as createEvent, t as ARC_EVENT_TRANSPORT } from "./EventTransport-DbHZK230.mjs";
8
- import { n as preserveSubscriberIdentity } from "./subscriberIdentity-DSgnoT_D.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
+ import { n as requestContext } from "./requestContext-DO9Qv0gw.mjs";
4
+ import { t as arcLog } from "./logger-BagW7_YA.mjs";
5
+ import { d as createDomainError } from "./errors-3xaK0i9n.mjs";
6
+ import { i as runAdmittedWork, n as isAdmittedWork, r as registerShutdownParticipant } from "./shutdown-BIR-QBYM.mjs";
7
+ import { n as MemoryEventTransport, r as createEvent, t as ARC_EVENT_TRANSPORT } from "./EventTransport-B18mcj_M.mjs";
8
+ import { n as preserveSubscriberIdentity } from "./subscriberIdentity-PO6kimAl.mjs";
9
9
  import { isProductionEnv } from "@classytic/primitives/environment";
10
10
  import fp from "fastify-plugin";
11
11
  import { NonDurablePublishError } from "@classytic/primitives/durable-events";
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
2
- import { r as createEvent } from "./EventTransport-DbHZK230.mjs";
1
+ /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
+ import { r as createEvent } from "./EventTransport-B18mcj_M.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { durableEventMeta } from "@classytic/primitives/durable-events";
5
5
  // src/events/defineEvent.ts