@classytic/arc 2.45.2 → 2.46.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 (321) hide show
  1. package/README.md +1 -1
  2. package/dist/{EventTransport-CiicKz2Z.d.mts → EventTransport-CYEoCJGe.d.mts} +0 -2
  3. package/dist/{EventTransport-DHb1tpu-.mjs → EventTransport-DNgD9NP4.mjs} +3 -4
  4. package/dist/{HookSystem-C1u0EUnt.mjs → HookSystem-DRbPzEcP.mjs} +3 -4
  5. package/dist/{QueryCache--5uAuYPW.d.mts → QueryCache-DdvrGG8Q.d.mts} +1 -3
  6. package/dist/{ResourceRegistry-D2jXWVN_.mjs → ResourceRegistry-Douk51fa.mjs} +15 -4
  7. package/dist/{acquire-DTkA8Lme.mjs → acquire-RbtvDg9s.mjs} +2 -3
  8. package/dist/{actionPermissions-DRVk6m7x.mjs → actionPermissions-De0AJ7hm.mjs} +37 -42
  9. package/dist/audit/index.d.mts +2 -10
  10. package/dist/audit/index.mjs +8 -12
  11. package/dist/auth/audit.d.mts +0 -2
  12. package/dist/auth/audit.mjs +2 -3
  13. package/dist/auth/index.d.mts +9 -17
  14. package/dist/auth/index.mjs +26 -29
  15. package/dist/auth/redis-session.d.mts +2 -4
  16. package/dist/auth/redis-session.mjs +2 -3
  17. package/dist/{authorizationDecision-D48fUJv1.mjs → authorizationDecision-DeZMrHcm.mjs} +5 -6
  18. package/dist/{base-CZyixEQR.d.mts → base-HXNgPQww.d.mts} +1 -7
  19. package/dist/{boundedMap-DkKiPifd.mjs → boundedMap-2WBh3gM9.mjs} +2 -3
  20. package/dist/{buildHandler-BiZ4VATS.mjs → buildHandler-DxVOOBpw.mjs} +5 -6
  21. package/dist/cache/index.d.mts +4 -10
  22. package/dist/cache/index.mjs +5 -6
  23. package/dist/{caching-Cj0as-P1.mjs → caching-BYRwYrUo.mjs} +3 -4
  24. package/dist/{claimed-ChI13rUR.mjs → claimed-DYlELdnm.mjs} +2 -3
  25. package/dist/cleanup/index.d.mts +4 -18
  26. package/dist/cleanup/index.mjs +12 -20
  27. package/dist/cli/commands/describe.d.mts +1 -3
  28. package/dist/cli/commands/describe.mjs +4 -5
  29. package/dist/cli/commands/docs.d.mts +1 -3
  30. package/dist/cli/commands/docs.mjs +4 -5
  31. package/dist/cli/commands/doctor.d.mts +1 -3
  32. package/dist/cli/commands/doctor.mjs +2 -3
  33. package/dist/cli/commands/generate.d.mts +1 -1
  34. package/dist/cli/commands/generate.mjs +2 -2
  35. package/dist/cli/commands/init.d.mts +1 -1
  36. package/dist/cli/commands/init.mjs +2 -2
  37. package/dist/cli/commands/introspect.d.mts +1 -3
  38. package/dist/cli/commands/introspect.mjs +3 -4
  39. package/dist/cli/index.d.mts +2 -2
  40. package/dist/cli/index.mjs +3 -3
  41. package/dist/{constants-D_aiew34.mjs → constants-CHZMUwBW.mjs} +2 -3
  42. package/dist/context/index.d.mts +0 -8
  43. package/dist/context/index.mjs +6 -7
  44. package/dist/core/index.d.mts +3 -3
  45. package/dist/core/index.mjs +8 -8
  46. package/dist/{core-QIZ2560Y.mjs → core-D9rS2BxO.mjs} +9 -12
  47. package/dist/{createActionRouter-CvH84dyx.mjs → createActionRouter-0qkCRzTL.mjs} +7 -8
  48. package/dist/{createAggregationRouter-DGyK2Hp6.mjs → createAggregationRouter-CUf5Esd9.mjs} +9 -10
  49. package/dist/{createApp-CKjZpmq9.mjs → createApp-DZIXfDKD.mjs} +49 -62
  50. package/dist/{createMcpServer-DSztofa9.d.mts → createMcpServer-DeVpqQF-.d.mts} +1 -3
  51. package/dist/{defineAggregation-BLza7Ca4.mjs → defineAggregation-bmKQ4NmC.mjs} +2 -3
  52. package/dist/{defineResource-CEo0gDCb.mjs → defineResource-CGmdmGwh.mjs} +78 -29
  53. package/dist/discovery/index.d.mts +1 -3
  54. package/dist/discovery/index.mjs +2 -3
  55. package/dist/docs/index.d.mts +8 -8
  56. package/dist/docs/index.mjs +4 -5
  57. package/dist/{elevation-BJTsSnke.mjs → elevation-CzhqAyVN.mjs} +9 -10
  58. package/dist/{elevation-BW2J3tNj.d.mts → elevation-DPD0hcU-.d.mts} +0 -2
  59. package/dist/encryption/index.d.mts +1 -7
  60. package/dist/encryption/index.mjs +8 -13
  61. package/dist/{errorHandler--4rSMMvq.d.mts → errorHandler-B9r88jZV.d.mts} +8 -3
  62. package/dist/{errorHandler-2p4SL5zm.mjs → errorHandler-dFyGOEoB.mjs} +16 -6
  63. package/dist/{errors-grZkIA8N.mjs → errors-BY8vzlP4.mjs} +2 -3
  64. package/dist/{errors-JYc9vwqE.d.mts → errors-DTo0me1o.d.mts} +0 -2
  65. package/dist/{eventPlugin-BtmA4-3P.d.mts → eventPlugin-BY38F6yK.d.mts} +1 -7
  66. package/dist/{eventPlugin-ItcYBGUs.mjs → eventPlugin-eMhAPtQA.mjs} +10 -12
  67. package/dist/{eventTypes-Ck6fD3ne.mjs → eventTypes-Do2KYeJx.mjs} +5 -8
  68. package/dist/events/index.d.mts +4 -16
  69. package/dist/events/index.mjs +8 -9
  70. package/dist/events/transports/redis-stream-entry.d.mts +1 -1
  71. package/dist/events/transports/redis-stream-entry.mjs +5 -6
  72. package/dist/events/transports/redis.d.mts +2 -4
  73. package/dist/events/transports/redis.mjs +3 -4
  74. package/dist/{externalPaths-CmGOxOtD.d.mts → externalPaths-BOqdq5wr.d.mts} +0 -2
  75. package/dist/factory/index.d.mts +4 -14
  76. package/dist/factory/index.mjs +12 -18
  77. package/dist/{fastify-augmentation-DRlCIWE9.d.mts → fastify-augmentation-Dtn0IIRn.d.mts} +4 -10
  78. package/dist/{fields-BBSpf8pS.d.mts → fields-JTkrtO-r.d.mts} +0 -2
  79. package/dist/{fields-BRX0Krcj.mjs → fields-LnbCcvsw.mjs} +2 -3
  80. package/dist/{filter-merge-CDc7YMwX.mjs → filter-merge-BAWi019Q.mjs} +2 -3
  81. package/dist/{generate-DCGuEbqI.d.mts → generate-C-g_KOkV.d.mts} +0 -4
  82. package/dist/{generate-hvg7V2g1.mjs → generate-oXoDnpJf.mjs} +7 -12
  83. package/dist/{headers-Cqkg4LzI.mjs → headers-DBd3Qheo.mjs} +3 -4
  84. package/dist/{health-PVt0VjOx.mjs → health-BlJu9GXS.mjs} +2 -3
  85. package/dist/{health-DyeP3mTW.mjs → health-Dp-3EC9o.mjs} +4 -7
  86. package/dist/hooks/index.d.mts +1 -1
  87. package/dist/hooks/index.mjs +2 -2
  88. package/dist/idempotency/index.d.mts +3 -9
  89. package/dist/idempotency/index.mjs +10 -13
  90. package/dist/idempotency/redis.d.mts +1 -1
  91. package/dist/idempotency/redis.mjs +3 -4
  92. package/dist/{index-Bxriq3so.d.mts → index-B5i9-vuP.d.mts} +4 -26
  93. package/dist/{index-Chgz3d0i.d.mts → index-BAXDo5eE.d.mts} +1 -7
  94. package/dist/{index-Beg3aNnK.d.mts → index-BTxzJ_MN.d.mts} +67 -25
  95. package/dist/{index-CUJvoyw3.d.mts → index-Bqfo8hLz.d.mts} +2 -24
  96. package/dist/{index-uhkUA5-U.d.mts → index-CUdaoCYt.d.mts} +13 -23
  97. package/dist/{index-WH7xgvxS.d.mts → index-DyJFTJLA.d.mts} +31 -92
  98. package/dist/index.d.mts +7 -9
  99. package/dist/index.mjs +12 -13
  100. package/dist/{init-jC3rMPzb.mjs → init-BOaNkLYb.mjs} +18 -35
  101. package/dist/{init-Cscs4lab.d.mts → init-CV2_Fw3H.d.mts} +0 -4
  102. package/dist/integrations/event-gateway.d.mts +3 -5
  103. package/dist/integrations/event-gateway.mjs +3 -4
  104. package/dist/integrations/index.d.mts +3 -3
  105. package/dist/integrations/index.mjs +1 -1
  106. package/dist/integrations/jobs/index.d.mts +1 -1
  107. package/dist/integrations/jobs/index.mjs +7 -11
  108. package/dist/integrations/mcp/index.d.mts +7 -39
  109. package/dist/integrations/mcp/index.mjs +8 -14
  110. package/dist/integrations/mcp/testing.d.mts +3 -5
  111. package/dist/integrations/mcp/testing.mjs +3 -4
  112. package/dist/integrations/streamline.d.mts +1 -3
  113. package/dist/integrations/streamline.mjs +4 -5
  114. package/dist/integrations/webhooks.d.mts +2 -4
  115. package/dist/integrations/webhooks.mjs +4 -5
  116. package/dist/integrations/websocket-pushref-redis.d.mts +2 -4
  117. package/dist/integrations/websocket-pushref-redis.mjs +2 -3
  118. package/dist/integrations/websocket-redis.d.mts +2 -4
  119. package/dist/integrations/websocket-redis.mjs +2 -3
  120. package/dist/integrations/websocket.d.mts +2 -2
  121. package/dist/integrations/websocket.mjs +13 -24
  122. package/dist/{interface-JJzwH4Ro.d.mts → interface-BmExzQRD.d.mts} +0 -2
  123. package/dist/{interface-BOk3YnTz.d.mts → interface-WR1U0K7t.d.mts} +0 -2
  124. package/dist/{jsonBody-ptwyzZQ-.mjs → jsonBody-DpRpKR_K.mjs} +3 -4
  125. package/dist/{keys-C1vFuSbv.mjs → keys-FBz6Ull-.mjs} +2 -3
  126. package/dist/{loadResources-CHPDyIPn.mjs → loadResources-Bx1sKPnF.mjs} +4 -5
  127. package/dist/{loadResourcesFromEntry-BkHHTu_B.mjs → loadResourcesFromEntry-b_jcqbxh.mjs} +3 -4
  128. package/dist/logger/index.d.mts +1 -3
  129. package/dist/logger/index.mjs +2 -2
  130. package/dist/{logger-C5bvCiAK.mjs → logger-CbFcIEBZ.mjs} +3 -5
  131. package/dist/{mcpPlugin-C9qohJCF.mjs → mcpPlugin-yix548XX.mjs} +41 -60
  132. package/dist/{memory-CxiTwT0j.mjs → memory-Bgw5dn8N.mjs} +4 -5
  133. package/dist/{metrics-Ckp2zRy-.mjs → metrics-CZDQWVjS.mjs} +4 -5
  134. package/dist/middleware/index.d.mts +1 -5
  135. package/dist/middleware/index.mjs +4 -5
  136. package/dist/migrations/index.d.mts +0 -2
  137. package/dist/migrations/index.mjs +3 -4
  138. package/dist/{module-CfnKuIuH.mjs → module-Dsc_nKL5.mjs} +2 -3
  139. package/dist/{multiTenant-CAtYlW6H.d.mts → multiTenant-XCxAUlru.d.mts} +1 -5
  140. package/dist/{multipartBody-BFasGtP9.mjs → multipartBody-B85ek8Kj.mjs} +2 -3
  141. package/dist/observeSend-BK-JN1jK.mjs +20 -0
  142. package/dist/{openapi-DAPxjYHX.mjs → openapi-Co7hl073.mjs} +18 -28
  143. package/dist/outbox-admin/index.d.mts +2 -4
  144. package/dist/outbox-admin/index.mjs +6 -7
  145. package/dist/{outbox-module-gZCHoE4H.d.mts → outbox-module-XvUThpqn.d.mts} +2 -8
  146. package/dist/{outbox-module-B4FAkx3A.mjs → outbox-module-mg9kDYkd.mjs} +13 -17
  147. package/dist/permissions/index.d.mts +4 -4
  148. package/dist/permissions/index.mjs +7 -7
  149. package/dist/{permissions-B14c3OMp.mjs → permissions-A1oKtpiC.mjs} +19 -29
  150. package/dist/{pipe-CQv7PsAK.mjs → pipe-Czpw9U2n.mjs} +3 -4
  151. package/dist/pipeline/index.d.mts +1 -9
  152. package/dist/pipeline/index.mjs +5 -8
  153. package/dist/{plan-CpnTykjb.mjs → plan-KVseuBCL.mjs} +5 -9
  154. package/dist/{plugin-DXTjVg_Q.mjs → plugin-DTWt_8C3.mjs} +130 -62
  155. package/dist/plugins/index.d.mts +8 -16
  156. package/dist/plugins/index.mjs +22 -26
  157. package/dist/plugins/response-cache.d.mts +2 -4
  158. package/dist/plugins/response-cache.mjs +10 -10
  159. package/dist/plugins/tracing-entry.d.mts +1 -1
  160. package/dist/plugins/tracing-entry.mjs +3 -4
  161. package/dist/{pluralize-C3VJKRGp.mjs → pluralize-msB9X3yw.mjs} +2 -3
  162. package/dist/presets/filesUpload.d.mts +4 -6
  163. package/dist/presets/filesUpload.mjs +6 -7
  164. package/dist/presets/index.d.mts +3 -19
  165. package/dist/presets/index.mjs +2 -2
  166. package/dist/presets/multiTenant.d.mts +1 -1
  167. package/dist/presets/multiTenant.mjs +7 -7
  168. package/dist/presets/search.d.mts +3 -5
  169. package/dist/presets/search.mjs +3 -4
  170. package/dist/{presets-CquqYJPy.mjs → presets-qKCehiJM.mjs} +11 -18
  171. package/dist/{projection-CgfSLOSM.mjs → projection-ClBqtsIw.mjs} +3 -4
  172. package/dist/{pushref-registry-UxCkoA4C.d.mts → pushref-registry-d86QUaSq.d.mts} +0 -6
  173. package/dist/{queryCachePlugin-D0HUISHJ.mjs → queryCachePlugin-3gJj5Rbz.mjs} +8 -10
  174. package/dist/{queryCachePlugin-C2lZjTxk.d.mts → queryCachePlugin-DYQUyeJ9.d.mts} +2 -4
  175. package/dist/{rateLimitKey-AvkBOMkl.mjs → rateLimitKey-Kro---xl.mjs} +2 -3
  176. package/dist/{realtime-CbWtVbqK.mjs → realtime-Ber8uJN2.mjs} +17 -19
  177. package/dist/{redis-BDgv9Glw.d.mts → redis-RpDMemdm.d.mts} +2 -4
  178. package/dist/{redis-stream-BMk-bpQS.d.mts → redis-stream-CS1N9dwM.d.mts} +1 -3
  179. package/dist/{redisShapes-CQksY67q.d.mts → redisShapes-CqBXTn_s.d.mts} +0 -2
  180. package/dist/registry/index.d.mts +2 -12
  181. package/dist/registry/index.mjs +3 -3
  182. package/dist/{registry-BVwpAuFI.mjs → registry-BA-_vFYk.mjs} +7 -12
  183. package/dist/{renewingLease-CykpeNcQ.mjs → renewingLease-CMY8YOcc.mjs} +2 -3
  184. package/dist/{replyHelpers-DA51IZio.mjs → replyHelpers-DK9P_XSz.mjs} +3 -4
  185. package/dist/{requestContext-DIWHKDtQ.mjs → requestContext-GYO_0gEw.mjs} +2 -3
  186. package/dist/{requirement-CbiLdQ1n.d.mts → requirement-CTRQjjQx.d.mts} +0 -2
  187. package/dist/{requirement-Cp_fsMDL.mjs → requirement-DeNjZIH3.mjs} +2 -3
  188. package/dist/{resourceRateLimit-Wf6d6FL9.d.mts → resourceRateLimit-DCWglD7V.d.mts} +1 -3
  189. package/dist/{resourceRateLimit-BFuluodF.mjs → resourceRateLimit-tHLbrtWc.mjs} +3 -4
  190. package/dist/{rolldown-runtime-D_lMdYOd.mjs → rolldown-runtime-Kv1fZdLg.mjs} +2 -3
  191. package/dist/{routeValidator-DuLonYwr.mjs → routeValidator-C_H5NanI.mjs} +2 -3
  192. package/dist/{runtimeCapabilities-CydRfm0i.mjs → runtimeCapabilities-DWqbxkyw.mjs} +2 -3
  193. package/dist/{schedules-B693KXxa.mjs → schedules-eO_RzhCU.mjs} +132 -9
  194. package/dist/{schemaConverter-DNvZWTV6.mjs → schemaConverter-DBJrPZN4.mjs} +3 -4
  195. package/dist/{schemaIR-REV2y7Wd.mjs → schemaIR-CEScKT2v.mjs} +3 -4
  196. package/dist/schemas/index.d.mts +0 -2
  197. package/dist/schemas/index.mjs +2 -3
  198. package/dist/scim/index.d.mts +0 -12
  199. package/dist/scim/index.mjs +10 -18
  200. package/dist/scope/index.d.mts +2 -6
  201. package/dist/scope/index.mjs +5 -5
  202. package/dist/{scope-Bevxy_ST.mjs → scope-B-Sm9m_E.mjs} +5 -6
  203. package/dist/{sessionManager-qimlKV0P.d.mts → sessionManager-CdvDF04x.d.mts} +2 -4
  204. package/dist/{shutdown-CfrqPR7A.mjs → shutdown-DzLFbe27.mjs} +2 -3
  205. package/dist/{simpleEqualityMatcher-BJwfuRKP.mjs → simpleEqualityMatcher-DOJhwQ8g.mjs} +2 -3
  206. package/dist/{sse-CuNNWr2z.mjs → sse-2972pVwV.mjs} +8 -9
  207. package/dist/{sseStream-C_2ujAVY.mjs → sseStream-AWLEeNV-.mjs} +3 -4
  208. package/dist/{storage-Cx9Sz3Ou.d.mts → storage-odC5MNKN.d.mts} +0 -2
  209. package/dist/{store-helpers-C8uBGCbb.mjs → store-helpers-VzjgVTkM.mjs} +2 -3
  210. package/dist/{streaming-Bdq_M4d5.mjs → streaming-DvraWW6x.mjs} +2 -3
  211. package/dist/{subscriberIdentity-B-KpZkdl.mjs → subscriberIdentity-Bya56jsg.mjs} +2 -3
  212. package/dist/{tenancy-C5PCvm1h.mjs → tenancy-DSa_0hhw.mjs} +3 -4
  213. package/dist/{tenantPreparation-dYvWrgNa.mjs → tenantPreparation-BrpkQre3.mjs} +5 -6
  214. package/dist/testing/cleanupStoreContract.d.mts +2 -4
  215. package/dist/testing/cleanupStoreContract.mjs +2 -3
  216. package/dist/testing/index.d.mts +6 -32
  217. package/dist/testing/index.mjs +24 -37
  218. package/dist/testing/outboxStoreContract.d.mts +1 -3
  219. package/dist/testing/outboxStoreContract.mjs +3 -4
  220. package/dist/testing/requiredPorts.d.mts +2 -4
  221. package/dist/testing/requiredPorts.mjs +3 -4
  222. package/dist/testing/storageContract.d.mts +2 -4
  223. package/dist/testing/storageContract.mjs +2 -3
  224. package/dist/{timing-DCqsezX8.mjs → timing-6rQTuCwg.mjs} +3 -5
  225. package/dist/{tracing-Dro5eH6j.d.mts → tracing-JSFiBl5r.d.mts} +0 -2
  226. package/dist/{transactionContext-DrcNyjpv.mjs → transactionContext-DaxYUEgH.mjs} +2 -3
  227. package/dist/{typeGuards-CEl10KPy.mjs → typeGuards-UKnX8wPX.mjs} +2 -3
  228. package/dist/types/index.d.mts +4 -4
  229. package/dist/types/index.mjs +1 -1
  230. package/dist/types/storage.d.mts +1 -1
  231. package/dist/types/storage.mjs +1 -1
  232. package/dist/{types-ByHn9rEO.d.mts → types-0Dqlbgn8.d.mts} +0 -2
  233. package/dist/{types-D3Ixsh00.d.mts → types-BYEb_dLW.d.mts} +2 -4
  234. package/dist/{types-BJ-2XqVF.d.mts → types-BeEJm-DV.d.mts} +114 -14
  235. package/dist/{types-DVLddu2q.d.mts → types-C0YJAiL0.d.mts} +0 -2
  236. package/dist/{types-D9NWjpYc.mjs → types-CuGjhn83.mjs} +5 -6
  237. package/dist/{types-Ddl9OjmE.d.mts → types-DnkIALZ8.d.mts} +0 -4
  238. package/dist/usage/index.d.mts +2 -10
  239. package/dist/usage/index.mjs +8 -12
  240. package/dist/{userHelpers-BHig1kHq.mjs → userHelpers-oX5_mOVs.mjs} +2 -3
  241. package/dist/utils/index.d.mts +5 -39
  242. package/dist/utils/index.mjs +12 -12
  243. package/dist/{utils-BG5P7_Vb.mjs → utils-CjjGOT4E.mjs} +20 -30
  244. package/dist/{validate-D_mdOCir.mjs → validate-4RlTKOJb.mjs} +5 -7
  245. package/dist/{versioning-DBGHjPh7.mjs → versioning-Dk2-19La.mjs} +4 -5
  246. package/dist/{versioning-Bqm_57Qt.d.mts → versioning-S18y2-0C.d.mts} +1 -15
  247. package/dist/{websocket-Cs4awVyD.d.mts → websocket-BGuc-WVZ.d.mts} +1 -15
  248. package/dist/{workScope-DPPfM4m6.mjs → workScope-DoBsoVo4.mjs} +3 -4
  249. package/llms.txt +37 -30
  250. package/package.json +9 -8
  251. package/skills/arc/SKILL.md +65 -844
  252. package/skills/arc/references/agent-auth.md +82 -193
  253. package/skills/arc/references/api-reference.md +41 -245
  254. package/skills/arc/references/auth-api-keys.md +99 -0
  255. package/skills/arc/references/auth-better-auth-overlay.md +87 -0
  256. package/skills/arc/references/auth-better-auth.md +78 -0
  257. package/skills/arc/references/auth-permissions.md +100 -0
  258. package/skills/arc/references/auth-strategies.md +122 -0
  259. package/skills/arc/references/boot.md +80 -0
  260. package/skills/arc/references/enterprise-auth.md +65 -81
  261. package/skills/arc/references/events-outbox.md +90 -0
  262. package/skills/arc/references/events.md +75 -440
  263. package/skills/arc/references/integrations-jobs.md +74 -0
  264. package/skills/arc/references/integrations-realtime.md +84 -0
  265. package/skills/arc/references/integrations-webhooks.md +71 -0
  266. package/skills/arc/references/integrations-workflows.md +47 -0
  267. package/skills/arc/references/mcp-auth.md +83 -0
  268. package/skills/arc/references/mcp-custom-tools.md +125 -0
  269. package/skills/arc/references/mcp-setup.md +115 -0
  270. package/skills/arc/references/mcp-testing.md +63 -0
  271. package/skills/arc/references/multi-tenancy.md +56 -230
  272. package/skills/arc/references/permissions-scope.md +81 -0
  273. package/skills/arc/references/production-api.md +119 -0
  274. package/skills/arc/references/production-audit.md +101 -0
  275. package/skills/arc/references/production-boot.md +91 -0
  276. package/skills/arc/references/production-caching.md +63 -0
  277. package/skills/arc/references/production-distributed.md +75 -0
  278. package/skills/arc/references/production-idempotency.md +83 -0
  279. package/skills/arc/references/production-observability.md +83 -0
  280. package/skills/arc/references/production-realtime.md +70 -0
  281. package/skills/arc/references/production-reliability.md +100 -0
  282. package/skills/arc/references/production-shutdown.md +43 -0
  283. package/skills/arc/references/querying.md +76 -0
  284. package/skills/arc/references/resources.md +97 -0
  285. package/skills/arc/references/schedules.md +79 -0
  286. package/skills/arc/references/scim.md +61 -208
  287. package/skills/arc/references/tenancy-scope-install.md +82 -0
  288. package/skills/arc/references/testing.md +101 -144
  289. package/skills/arc/references/usage-cleanup-capabilities.md +45 -0
  290. package/skills/arc/references/validation.md +91 -0
  291. package/skills/arc/references/writes-hooks-errors.md +80 -0
  292. package/skills/arc-code-review/SKILL.md +67 -114
  293. package/skills/arc-code-review/references/arc-cheatsheet.md +68 -167
  294. package/skills/arc-code-review/references/mongokit-repositories.md +104 -0
  295. package/skills/arc-code-review/references/recipe-events-cache-jobs.md +112 -0
  296. package/skills/arc-code-review/references/recipe-resource.md +100 -0
  297. package/skills/arc-code-review/references/recipe-schemas-fields.md +93 -0
  298. package/skills/arc-code-review/references/recipe-scope-permissions.md +82 -0
  299. package/skills/arc-code-review/references/scaffolding.md +61 -198
  300. package/skills/arc-code-review/references/severity.md +49 -102
  301. package/skills/arc-code-review/references/smells-auth-scope.md +80 -0
  302. package/skills/arc-code-review/references/smells-data-events.md +66 -0
  303. package/skills/arc-code-review/references/smells-imports-style.md +59 -0
  304. package/skills/arc-code-review/references/smells-platform.md +89 -0
  305. package/skills/arc-code-review/references/smells-routes-schemas.md +66 -0
  306. package/skills/arc-module-publishing/SKILL.md +82 -208
  307. package/skills/arc-module-publishing/references/action-presets-and-plugins.md +87 -0
  308. package/skills/arc-module-publishing/references/build-and-types.md +73 -0
  309. package/skills/arc-module-publishing/references/module-lifecycle.md +101 -0
  310. package/skills/arc-module-publishing/references/package-manifest.md +34 -122
  311. package/skills/arc-module-publishing/references/publishing-workflow.md +44 -140
  312. package/skills/arc-module-publishing/references/resource-assembly.md +102 -0
  313. package/skills/arc-module-publishing/references/testing-packages.md +82 -0
  314. package/skills/arc/references/auth.md +0 -729
  315. package/skills/arc/references/integrations.md +0 -452
  316. package/skills/arc/references/mcp.md +0 -691
  317. package/skills/arc/references/production.md +0 -835
  318. package/skills/arc-code-review/references/anti-patterns.md +0 -1008
  319. package/skills/arc-code-review/references/migration-recipes.md +0 -649
  320. package/skills/arc-code-review/references/mongokit-migration.md +0 -360
  321. package/skills/arc-module-publishing/references/authoring-modules.md +0 -327
@@ -1,6 +1,6 @@
1
1
 
2
- import { i as RequestScope } from "../types-Ddl9OjmE.mjs";
3
- import { a as UserLike, c as DataPolicy, d as UserBase, i as ObjectId, l as PermissionCheck, n as ArcRequest, o as UserOrganization, r as JWTPayload, s as AuthorizationDecision, t as AnyRecord, u as PermissionContext } from "../base-CZyixEQR.mjs";
4
- import { $ as ResourceHookContext, A as RequestWithExtras, At as AuthHelpers, B as OnTenantDeleteConfig, Bn as IController, C as RequestIdOptions, Ct as ActionEntry, D as FastifyWithAuth, Dt as RouteMcpConfig, E as FastifyRequestExtras, En as BaseControllerOptions, Et as RouteDefinition, Fn as WriteContext, Ft as TokenPair, G as CrudRouteKey, H as PresetFunction, Hn as IRequestContext, I as CrudController, In as WriteVerbKey, J as MiddlewareConfig, K as CrudSchemas, L as ResourceConfig, Ln as ControllerHandler, Mt as Authenticator, Nn as MutationWriteContext, Nt as AuthenticatorContext, O as FastifyWithDecorators, Ot as RouteMethod, Pn as ResourceWrites, Pt as JwtContext, Q as FieldRule, R as ResourceIdempotencyConfig, Rn as ControllerLike, S as IntrospectionPluginOptions, St as ActionDefinition, T as EventsDecorator, Tt as ActionsMap, U as PresetHook, Un as RawRouteHandler, V as ResolvedTenantPurge, Vn as IControllerResponse, W as PresetResult, Wn as RouteHandler, X as RouteSchemaOptions, Y as OpenApiSchemas, Z as ArcFieldRule, _ as ServiceContext, a as IntrospectionData, b as HealthCheck, c as ResourceMetadata, d as LookupOption, et as ResourceHooks, f as OwnershipCheck, g as RequestContext, h as QueryParserInterface, i as PaginationResult, jt as AuthPluginOptions, k as MiddlewareHandler, kt as RateLimitConfig, l as ArcInternalMetadata, m as PopulateOption, n as InferDocType, nt as EventDefinition, o as RegistryEntry, p as ParsedQuery, q as LookupPolicy, r as InferResourceDoc, s as RegistryStats, t as InferAdapterDoc, tt as ResourceExtensions, u as ControllerQueryOptions, v as CrudRouterOptions, w as ArcDecorator, wt as ActionHandlerFn, x as HealthOptions, xt as ResourceCacheConfig, y as GracefulShutdownOptions, z as ResourcePermissions, zn as FastifyHandler } from "../index-WH7xgvxS.mjs";
5
- import { n as ElevationOptions, t as ElevationEvent } from "../elevation-BW2J3tNj.mjs";
2
+ import { i as RequestScope } from "../types-DnkIALZ8.mjs";
3
+ import { a as UserLike, c as DataPolicy, d as UserBase, i as ObjectId, l as PermissionCheck, n as ArcRequest, o as UserOrganization, r as JWTPayload, s as AuthorizationDecision, t as AnyRecord, u as PermissionContext } from "../base-HXNgPQww.mjs";
4
+ import { $ as ResourceHookContext, A as RequestWithExtras, At as AuthHelpers, B as OnTenantDeleteConfig, Bn as IController, C as RequestIdOptions, Ct as ActionEntry, D as FastifyWithAuth, Dt as RouteMcpConfig, E as FastifyRequestExtras, En as BaseControllerOptions, Et as RouteDefinition, Fn as WriteContext, Ft as TokenPair, G as CrudRouteKey, H as PresetFunction, Hn as IRequestContext, I as CrudController, In as WriteVerbKey, J as MiddlewareConfig, K as CrudSchemas, L as ResourceConfig, Ln as ControllerHandler, Mt as Authenticator, Nn as MutationWriteContext, Nt as AuthenticatorContext, O as FastifyWithDecorators, Ot as RouteMethod, Pn as ResourceWrites, Pt as JwtContext, Q as FieldRule, R as ResourceIdempotencyConfig, Rn as ControllerLike, S as IntrospectionPluginOptions, St as ActionDefinition, T as EventsDecorator, Tt as ActionsMap, U as PresetHook, Un as RawRouteHandler, V as ResolvedTenantPurge, Vn as IControllerResponse, W as PresetResult, Wn as RouteHandler, X as RouteSchemaOptions, Y as OpenApiSchemas, Z as ArcFieldRule, _ as ServiceContext, a as IntrospectionData, b as HealthCheck, c as ResourceMetadata, d as LookupOption, et as ResourceHooks, f as OwnershipCheck, g as RequestContext, h as QueryParserInterface, i as PaginationResult, jt as AuthPluginOptions, k as MiddlewareHandler, kt as RateLimitConfig, l as ArcInternalMetadata, m as PopulateOption, n as InferDocType, nt as EventDefinition, o as RegistryEntry, p as ParsedQuery, q as LookupPolicy, r as InferResourceDoc, s as RegistryStats, t as InferAdapterDoc, tt as ResourceExtensions, u as ControllerQueryOptions, v as CrudRouterOptions, w as ArcDecorator, wt as ActionHandlerFn, x as HealthOptions, xt as ResourceCacheConfig, y as GracefulShutdownOptions, z as ResourcePermissions, zn as FastifyHandler } from "../index-DyJFTJLA.mjs";
5
+ import { n as ElevationOptions, t as ElevationEvent } from "../elevation-DPD0hcU-.mjs";
6
6
  export type { ActionDefinition, ActionEntry, ActionHandlerFn, ActionsMap, AnyRecord, ArcDecorator, ArcFieldRule, ArcInternalMetadata, ArcRequest, AuthHelpers, AuthPluginOptions, Authenticator, AuthenticatorContext, AuthorizationDecision, BaseControllerOptions, ControllerHandler, ControllerLike, ControllerQueryOptions, CrudController, CrudRouteKey, CrudRouterOptions, CrudSchemas, DataPolicy, ElevationEvent, ElevationOptions, EventDefinition, EventsDecorator, FastifyHandler, FastifyRequestExtras, FastifyWithAuth, FastifyWithDecorators, FieldRule, GracefulShutdownOptions, HealthCheck, HealthOptions, IController, IControllerResponse, IRequestContext, InferAdapterDoc, InferDocType, InferResourceDoc, IntrospectionData, IntrospectionPluginOptions, JWTPayload, JwtContext, LookupOption, LookupPolicy, MiddlewareConfig, MiddlewareHandler, MutationWriteContext, ObjectId, OnTenantDeleteConfig, OpenApiSchemas, OwnershipCheck, PaginationResult, ParsedQuery, PermissionCheck, PermissionContext, PopulateOption, PresetFunction, PresetHook, PresetResult, QueryParserInterface, RateLimitConfig, RawRouteHandler, RegistryEntry, RegistryStats, RequestContext, RequestIdOptions, RequestScope, RequestWithExtras, ResolvedTenantPurge, ResourceCacheConfig, ResourceConfig, ResourceExtensions, ResourceHookContext, ResourceHooks, ResourceIdempotencyConfig, ResourceMetadata, ResourcePermissions, ResourceWrites, RouteDefinition, RouteHandler, RouteMcpConfig, RouteMethod, RouteSchemaOptions, ServiceContext, TokenPair, UserBase, UserLike, UserOrganization, WriteContext, WriteVerbKey };
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
2
  export {};
@@ -1,3 +1,3 @@
1
1
 
2
- import { a as StorageReadResult, i as StorageReadRange, n as StorageContext, o as StorageUploadInput, r as StorageFile, t as Storage } from "../storage-Cx9Sz3Ou.mjs";
2
+ import { a as StorageReadResult, i as StorageReadRange, n as StorageContext, o as StorageUploadInput, r as StorageFile, t as Storage } from "../storage-odC5MNKN.mjs";
3
3
  export { Storage, StorageContext, StorageFile, StorageReadRange, StorageReadResult, StorageUploadInput };
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
2
  export {};
@@ -1,6 +1,5 @@
1
1
 
2
2
  import { FastifyRequest } from "fastify";
3
- //#region src/encryption/types.d.ts
4
3
  /** JWE key-management algorithm — the protected-header `alg`. */
5
4
  type JweAlg = "RSA-OAEP-256" | "RSA-OAEP-384" | "RSA-OAEP-512" | "ECDH-ES" | "ECDH-ES+A256KW" | "A256GCMKW" | "dir";
6
5
  /** JWE content-encryption algorithm — the protected-header `enc`. AEAD only. */
@@ -129,5 +128,4 @@ declare module "fastify" {
129
128
  responseEncrypted?: boolean;
130
129
  }
131
130
  }
132
- //#endregion
133
131
  export { JweAlg as a, KeyMaterial as c, EncryptionOptions as i, KeyProvider as l, EncryptionDirective as n, JweEnc as o, EncryptionMode as r, KeyContext as s, ActiveKey as t };
@@ -1,8 +1,7 @@
1
1
 
2
- import { F as ResourceDefinition } from "./index-WH7xgvxS.mjs";
3
- import { i as ResourceRateLimiter } from "./resourceRateLimit-Wf6d6FL9.mjs";
2
+ import { F as ResourceDefinition } from "./index-DyJFTJLA.mjs";
3
+ import { i as ResourceRateLimiter } from "./resourceRateLimit-DCWglD7V.mjs";
4
4
  import { z } from "zod";
5
- //#region src/integrations/mcp/types.d.ts
6
5
  /** Behavioral hints for MCP clients (tool annotations per MCP spec) */
7
6
  interface ToolAnnotations {
8
7
  /** Tool only reads data, no side effects */
@@ -494,5 +493,4 @@ interface CreateMcpServerConfig {
494
493
  }
495
494
  /** CRUD operation type */
496
495
  type CrudOperation = "list" | "get" | "create" | "update" | "delete";
497
- //#endregion
498
496
  export { ToolDefinition as _, CrudDescriptionOverride as a, McpAuthResult as c, McpResourceConfig as d, PromptDefinition as f, ToolContext as g, ToolAnnotations as h, CrudDescriptionMeta as i, McpExecutionWiring as l, SessionEntry as m, CallToolResult as n, CrudOperation as o, PromptResult as p, CreateMcpServerConfig as r, McpAuthResolver as s, BetterAuthHandler as t, McpPluginOptions as u, ToolInputSchema as v };
@@ -1,9 +1,8 @@
1
1
 
2
- import { n as DomainEvent, r as EventHandler } from "./EventTransport-CiicKz2Z.mjs";
3
- import { n as ErrorMapper } from "./errorHandler--4rSMMvq.mjs";
2
+ import { n as DomainEvent, r as EventHandler } from "./EventTransport-CYEoCJGe.mjs";
3
+ import { n as ErrorMapper } from "./errorHandler-B9r88jZV.mjs";
4
4
  import { FastifyInstance, FastifyPluginAsync } from "fastify";
5
5
  import { LockAdapter } from "@classytic/repo-core/lock";
6
- //#region src/plugins/health.d.ts
7
6
  interface HealthCheck {
8
7
  /** Name of the dependency */
9
8
  name: string;
@@ -37,15 +36,119 @@ interface HealthOptions {
37
36
  collectHttpMetrics?: boolean;
38
37
  }
39
38
  declare const _default$1: FastifyPluginAsync<HealthOptions>;
40
- //#endregion
41
- //#region src/plugins/schedules.d.ts
39
+ /**
40
+ * Daily gate — "once per LOCAL calendar day, at/after a wall-clock time in an IANA zone".
41
+ *
42
+ * The decision is a civil date (`civilDateOf`, from `@classytic/primitives/timezone`), never a
43
+ * UTC timestamp, so DST and zone offsets cannot skip or double a day. The claim lives in a
44
+ * host-implemented {@link DailyLedger}: a restart or a second replica finds the day already
45
+ * claimed. `schedulesPlugin` drives it through `ScheduleDefinition.daily`; it is exported for
46
+ * hosts that tick from somewhere else.
47
+ */
48
+ /** What a claim carries so a ledger can implement stale-claim recovery. */
49
+ interface DailyClaimInfo {
50
+ /** The gate's clock reading when the claim was attempted. */
51
+ readonly now: Date;
52
+ /** Set when the gate was given `staleAfterMs`: an uncompleted claim older than this may be re-granted. */
53
+ readonly staleAfterMs?: number;
54
+ }
55
+ /**
56
+ * Idempotency ledger the HOST implements (one row per `(key, civilDate)`).
57
+ *
58
+ * `claimDay` MUST be atomic across replicas (unique key / `INSERT ... ON CONFLICT DO NOTHING`):
59
+ * exactly one concurrent caller gets `true`. Reclaiming is the only exception, and only for a claim
60
+ * that was never completed and is older than `info.staleAfterMs`.
61
+ */
62
+ interface DailyLedger {
63
+ claimDay(key: string, civilDate: string, info: DailyClaimInfo): Promise<boolean>;
64
+ /** The run finished: keep the claim permanently (stale recovery never applies) and store `result`. */
65
+ completeDay?(key: string, civilDate: string, result?: Record<string, unknown>): Promise<void>;
66
+ /** The run failed: drop the claim so the next tick retries. */
67
+ releaseDay(key: string, civilDate: string): Promise<void>;
68
+ }
69
+ type DailyClock = (() => Date) | {
70
+ now(): Date;
71
+ };
72
+ interface DailyGateOptions {
73
+ /** Ledger key: one per job (the schedule name under `schedulesPlugin`). */
74
+ key: string;
75
+ ledger: DailyLedger;
76
+ /** IANA zone the day and the time are read in. */
77
+ zone: string;
78
+ /** Local hour 0-23. */
79
+ hour: number;
80
+ /** Local minute 0-59 (default 0). */
81
+ minute?: number;
82
+ /**
83
+ * Latest lateness (ms after the scheduled time) at which a missed run still fires. Default:
84
+ * unlimited, i.e. until the local day rolls over. Set it to skip a day the process slept through.
85
+ */
86
+ catchUpWindowMs?: number;
87
+ /** Re-grant an uncompleted claim older than this (crash mid-run). Default: never. */
88
+ staleAfterMs?: number;
89
+ /** Injectable clock (tests). Default: `new Date()`. */
90
+ clock?: DailyClock;
91
+ }
92
+ type DailyRunOutcome<T> = {
93
+ readonly ran: true;
94
+ readonly day: string;
95
+ readonly result: T;
96
+ } | {
97
+ readonly ran: false;
98
+ readonly reason: "too-early" | "outside-window" | "already-claimed";
99
+ };
100
+ interface DailyGate {
101
+ /** Run `task(civilDate)` if today's slot is open and claimable. A throwing task releases the claim and rethrows. */
102
+ run<T>(task: (day: string) => Promise<T> | T): Promise<DailyRunOutcome<T>>;
103
+ }
104
+ declare function createDailyGate(opts: DailyGateOptions): DailyGate;
105
+ /** In-memory ledger for tests and single-process dev. Not shared across processes. */
106
+ interface MemoryDailyLedger extends DailyLedger {
107
+ /** Snapshot of every claim, for assertions. */
108
+ claims(): ReadonlyArray<{
109
+ key: string;
110
+ civilDate: string;
111
+ claimedAt: Date;
112
+ completed: boolean;
113
+ result?: Record<string, unknown>;
114
+ }>;
115
+ }
116
+ declare function createMemoryDailyLedger(): MemoryDailyLedger;
117
+ /** Once per local calendar day at/after a wall-clock time. See `ScheduleDefinition.daily`. */
118
+ interface DailyScheduleOptions {
119
+ /** Local hour 0-23 in `zone`. */
120
+ hour: number;
121
+ /** Local minute 0-59 (default 0). */
122
+ minute?: number;
123
+ /** IANA zone the day and time are read in. Required: there is no server-zone default. */
124
+ zone: string;
125
+ /** Idempotency ledger (host-implemented; `createMemoryDailyLedger()` for tests). */
126
+ ledger: DailyLedger;
127
+ /** Latest lateness (ms) at which a missed run still fires. Default: until the local day ends. */
128
+ catchUpWindowMs?: number;
129
+ /** Re-grant an uncompleted claim older than this (crash mid-run). Default: never. */
130
+ staleAfterMs?: number;
131
+ /** Injectable clock (tests). */
132
+ clock?: DailyClock;
133
+ }
134
+ /** Second argument of a schedule handler. `day` is the civil date (`YYYY-MM-DD`) of a `daily` run. */
135
+ interface ScheduleRunContext {
136
+ day?: string;
137
+ }
42
138
  interface ScheduleDefinition {
43
139
  /** Unique name — also the lock key (`arc:schedule:<name>`). */
44
140
  name: string;
45
141
  /** Interval in milliseconds between the END of one run and the next tick. */
46
142
  every: number;
47
143
  /** The work. Receives the Fastify instance; errors are logged, never fatal. */
48
- handler: (fastify: FastifyInstance) => void | Promise<void>;
144
+ handler: (fastify: FastifyInstance, ctx?: ScheduleRunContext) => void | Promise<void>;
145
+ /**
146
+ * Run the handler once per local calendar day at/after `hour:minute` in `zone`, claimed in
147
+ * `ledger` so restarts and replicas do not repeat it (a throwing run releases the claim and
148
+ * retries next poll). `every` becomes the POLL interval; keep it well under an hour. With a
149
+ * `lock`, only the lease holder polls. The handler receives `{ day }`.
150
+ */
151
+ daily?: DailyScheduleOptions;
49
152
  /** Fire once immediately when the app becomes ready (default: false). */
50
153
  runOnStart?: boolean;
51
154
  /**
@@ -125,6 +228,10 @@ interface ScheduleStats {
125
228
  skippedByLock: number;
126
229
  lastRunAt: string | null;
127
230
  lastError: string | null;
231
+ /** `daily` schedules only: civil date of the last executed run. */
232
+ lastDay?: string | null;
233
+ /** `daily` schedules only: polls that did not execute (too early, outside window, claimed elsewhere). */
234
+ skippedByGate?: number;
128
235
  }
129
236
  declare module "fastify" {
130
237
  interface FastifyInstance {
@@ -132,8 +239,6 @@ declare module "fastify" {
132
239
  }
133
240
  }
134
241
  declare const _default: FastifyPluginAsync<SchedulesPluginOptions>;
135
- //#endregion
136
- //#region src/factory/loadResources.d.ts
137
242
  /**
138
243
  * loadResources — Auto-discover resource files from a directory.
139
244
  *
@@ -350,8 +455,6 @@ interface LoadResourcesOptions<TContext = unknown> {
350
455
  * ```
351
456
  */
352
457
  declare function loadResources<TContext = unknown>(dir: string, options?: LoadResourcesOptions<TContext>): Promise<ResourceLike[]>;
353
- //#endregion
354
- //#region src/factory/module/disposers.d.ts
355
458
  /** Teardown callback registered by a setup phase via `defer`. */
356
459
  type ModuleDisposer = () => void | Promise<void>;
357
460
  /**
@@ -372,8 +475,6 @@ interface ModuleSetupContext<TPorts extends PortName = PortName, TOptionalPorts
372
475
  */
373
476
  readonly ports: ModulePorts<TPorts, TOptionalPorts>;
374
477
  }
375
- //#endregion
376
- //#region src/factory/module/types.d.ts
377
478
  /**
378
479
  * A module's contribution of some arm (event handlers, scheduled jobs, …).
379
480
  * Either a static array or a factory resolved AFTER all module bootstraps, so a
@@ -721,5 +822,4 @@ interface ArcCompositionConfig {}
721
822
  type ModuleName = ArcCompositionConfig extends {
722
823
  readonly strictModuleNames: true;
723
824
  } ? keyof ArcModuleRegistry & string : string;
724
- //#endregion
725
- export { _default as C, _default$1 as E, SchedulesPluginOptions as S, HealthOptions as T, ResourceLike as _, ArcPortRegistry as a, ScheduleDefinition as b, LazyBridge as c, ModulePorts as d, ModuleRequirements as f, LoadResourcesOptions as g, ModuleSetupContext as h, ArcModuleRegistry as i, ModuleContribution as l, ModuleDisposer as m, ArcModule as n, ArcPorts as o, PortName as p, ArcModuleInput as r, EventHandlerDefinition as s, ArcCompositionConfig as t, ModuleName as u, ResourceModule as v, HealthCheck as w, ScheduleStats as x, loadResources as y };
825
+ export { DailyLedger as A, ScheduleStats as C, DailyClock as D, DailyClaimInfo as E, HealthCheck as F, HealthOptions as I, _default$1 as L, MemoryDailyLedger as M, createDailyGate as N, DailyGate as O, createMemoryDailyLedger as P, ScheduleRunContext as S, _default as T, ResourceLike as _, ArcPortRegistry as a, DailyScheduleOptions as b, LazyBridge as c, ModulePorts as d, ModuleRequirements as f, LoadResourcesOptions as g, ModuleSetupContext as h, ArcModuleRegistry as i, DailyRunOutcome as j, DailyGateOptions as k, ModuleContribution as l, ModuleDisposer as m, ArcModule as n, ArcPorts as o, PortName as p, ArcModuleInput as r, EventHandlerDefinition as s, ArcCompositionConfig as t, ModuleName as u, ResourceModule as v, SchedulesPluginOptions as w, ScheduleDefinition as x, loadResources as y };
@@ -1,6 +1,5 @@
1
1
 
2
2
  import { PurgeActor, PurgeEvidence, PurgeResourceResult, PurgeStrategyKind as PurgeStrategyKind$1, PurgeVerificationSummary } from "@classytic/primitives/retention";
3
- //#region src/cleanup/types.d.ts
4
3
  /** Ambient context every recipe method receives. Host-injected — never global. */
5
4
  interface CleanupContext {
6
5
  /** Who requested the operation. */
@@ -590,5 +589,4 @@ interface CleanupLimits {
590
589
  readonly maxParamDepth: number;
591
590
  }
592
591
  declare const DEFAULT_CLEANUP_LIMITS: CleanupLimits;
593
- //#endregion
594
592
  export { CleanupStepResult as A, VerificationResult as B, CleanupResult as C, CleanupRunStore as D, CleanupRunStatus as E, PurgeEvidence as F, PurgeResourceResult as I, PurgeStrategyKind$1 as L, CleanupWriteFence as M, DEFAULT_CLEANUP_LIMITS as N, CleanupRunTransitionPatch as O, PurgeActor as P, PurgeVerificationSummary as R, CleanupRecipe as S, CleanupRunCreateResult as T, CleanupPermissions as _, CleanupEvidenceStore as a, CleanupPlanItem as b, CleanupInput as c, CleanupLease as d, CleanupLimits as f, CleanupPermissionCheck as g, CleanupOutcomeStatus as h, CleanupContext as i, CleanupStepRunStatus as j, CleanupStepProgress as k, CleanupJob as l, CleanupManifest as m, CLEANUP_TERMINAL_STATUSES as n, CleanupExecutionContext as o, CleanupLogger as p, CleanupCancelRequest as r, CleanupFinalizationPayload as s, Availability as t, CleanupJobQueue as u, CleanupPlan as v, CleanupRun as w, CleanupProgressSummary as x, CleanupPlanDraft as y, VerificationCheck as z };
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
2
- import { l as UnauthorizedError, o as OrgRequiredError } from "./errors-grZkIA8N.mjs";
3
- import { n as requireSingleHeaderValue } from "./headers-Cqkg4LzI.mjs";
4
- import { t as getUserId$1 } from "./userHelpers-BHig1kHq.mjs";
5
- //#region src/scope/types.ts
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ import { l as UnauthorizedError, o as OrgRequiredError } from "./errors-BY8vzlP4.mjs";
3
+ import { n as requireSingleHeaderValue } from "./headers-DBd3Qheo.mjs";
4
+ import { t as getUserId$1 } from "./userHelpers-oX5_mOVs.mjs";
5
+ // src/scope/types.ts
6
6
  /**
7
7
  * Request Scope — The One Standard
8
8
  *
@@ -382,5 +382,4 @@ function scopeFirstCtx(req, options = {}) {
382
382
  const PUBLIC_SCOPE = Object.freeze({ kind: "public" });
383
383
  /** Default authenticated scope — used when user is logged in but no org */
384
384
  const AUTHENTICATED_SCOPE = Object.freeze({ kind: "authenticated" });
385
- //#endregion
386
385
  export { isService as C, requireUserId as D, requireTeamId as E, scopeFirstCtx as O, isOrgInScope as S, requireOrgId as T, getUserRoles as _, getDPoPJkt as a, isElevated as b, getOrgId as c, getScopeContext as d, getScopeContextMap as f, getUserId as g, getTenantFromRequest as h, getClientId as i, getOrgRoles as l, getTeamId as m, PUBLIC_SCOPE as n, getMandate as o, getServiceScopes as p, getAncestorOrgIds as r, getOrgContext as s, AUTHENTICATED_SCOPE as t, getRequestScope as u, hasOrgAccess as v, requireClientId as w, isMember as x, isAuthenticated as y };
@@ -1,5 +1,4 @@
1
1
 
2
- //#region src/utils/headers.d.ts
3
2
  /**
4
3
  * Canonical header typing + accessor.
5
4
  *
@@ -33,8 +32,6 @@ declare function getHeader(headers: ArcHeaders | Record<string, string | undefin
33
32
  * may indicate request smuggling. Callers must not silently choose a winner.
34
33
  */
35
34
  declare function requireSingleHeaderValue(headers: ArcHeaders | Record<string, string | undefined> | undefined, name: string): string | undefined;
36
- //#endregion
37
- //#region src/scope/types.d.ts
38
35
  /**
39
36
  * A capability mandate — time-boxed, optionally cap-bounded authorization for
40
37
  * ONE high-value action by an agent or service.
@@ -517,5 +514,4 @@ declare function scopeFirstCtx(req: ScopeFirstCtxRequest, options?: ScopeFirstCt
517
514
  declare const PUBLIC_SCOPE: Readonly<RequestScope>;
518
515
  /** Default authenticated scope — used when user is logged in but no org */
519
516
  declare const AUTHENTICATED_SCOPE: Readonly<RequestScope>;
520
- //#endregion
521
517
  export { requireOrgId as A, hasOrgAccess as C, isOrgInScope as D, isMember as E, getHeader as F, requireSingleHeaderValue as I, requireUserId as M, scopeFirstCtx as N, isService as O, ArcHeaders as P, getUserRoles as S, isElevated as T, getScopeContextMap as _, ScopeFirstCtx as a, getTenantFromRequest as b, getAncestorOrgIds as c, getMandate as d, getOrgContext as f, getScopeContext as g, getRequestScope as h, RequestScope as i, requireTeamId as j, requireClientId as k, getClientId as l, getOrgRoles as m, Mandate as n, ScopeFirstCtxOptions as o, getOrgId as p, PUBLIC_SCOPE as r, ScopeFirstCtxRequest as s, AUTHENTICATED_SCOPE as t, getDPoPJkt as u, getServiceScopes as v, isAuthenticated as w, getUserId as x, getTeamId as y };
@@ -1,9 +1,8 @@
1
1
 
2
- import { i as RequestScope } from "../types-Ddl9OjmE.mjs";
3
- import { l as PermissionCheck, u as PermissionContext } from "../base-CZyixEQR.mjs";
2
+ import { i as RequestScope } from "../types-DnkIALZ8.mjs";
3
+ import { l as PermissionCheck, u as PermissionContext } from "../base-HXNgPQww.mjs";
4
4
  import { UsageBucket, UsageStore, usagePeriod } from "@classytic/repo-core/usage";
5
5
  import { FastifyPluginAsync, FastifyRequest } from "fastify";
6
- //#region src/usage/requireQuota.d.ts
7
6
  interface QuotaOptions {
8
7
  /** Counter to enforce — `ai.tokens`, `export.runs`, `api.requests`, ... */
9
8
  kind: string;
@@ -29,8 +28,6 @@ interface QuotaOptions {
29
28
  cacheTtlMs?: number;
30
29
  }
31
30
  export declare function requireQuota(options: QuotaOptions): PermissionCheck;
32
- //#endregion
33
- //#region src/usage/stores/memory.d.ts
34
31
  export declare class MemoryUsageStore implements UsageStore {
35
32
  #private;
36
33
  readonly name = "memory";
@@ -39,8 +36,6 @@ export declare class MemoryUsageStore implements UsageStore {
39
36
  /** Test convenience — drop everything. */
40
37
  clear(): void;
41
38
  }
42
- //#endregion
43
- //#region src/usage/stores/redis.d.ts
44
39
  /**
45
40
  * The three commands this store needs. Fixed arity with an `unknown[]` tail
46
41
  * where ioredis overloads one — see the note in `idempotency/stores/redis.ts`
@@ -95,8 +90,6 @@ export declare class RedisUsageStore implements UsageStore {
95
90
  increment(bucket: UsageBucket, amount: number): Promise<void>;
96
91
  summary(actor: string, period: string): Promise<Record<string, number>>;
97
92
  }
98
- //#endregion
99
- //#region src/usage/usagePlugin.d.ts
100
93
  interface UsageTrackOptions {
101
94
  /** Count every completed request as `api.requests` (default: true). */
102
95
  requests?: boolean;
@@ -145,5 +138,4 @@ declare module "fastify" {
145
138
  }
146
139
  }
147
140
  declare const _default: FastifyPluginAsync<UsagePluginOptions>;
148
- //#endregion
149
141
  export { type QuotaOptions, type RedisUsageStoreOptions, type UsageBucket, type UsageMeter, type UsagePluginOptions, type UsageRedisLike, type UsageStore, type UsageTrackOptions, _default as default, _default as usagePlugin, usagePeriod };
@@ -1,10 +1,10 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
2
- import { t as ArcError } from "../errors-grZkIA8N.mjs";
3
- import { c as getOrgId, g as getUserId, i as getClientId } from "../types-D9NWjpYc.mjs";
4
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-CydRfm0i.mjs";
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ import { t as ArcError } from "../errors-BY8vzlP4.mjs";
3
+ import { c as getOrgId, g as getUserId, i as getClientId } from "../types-CuGjhn83.mjs";
4
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-DWqbxkyw.mjs";
5
5
  import { usagePeriod } from "@classytic/repo-core/usage";
6
6
  import fp from "fastify-plugin";
7
- //#region src/usage/requireQuota.ts
7
+ // src/usage/requireQuota.ts
8
8
  /** First instant of the NEXT period — the "resets at" clients render. */
9
9
  function periodResetsAt(now) {
10
10
  return new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth() + 1, 1)).toISOString();
@@ -63,8 +63,7 @@ function requireQuota(options) {
63
63
  return true;
64
64
  };
65
65
  }
66
- //#endregion
67
- //#region src/usage/stores/memory.ts
66
+ // src/usage/stores/memory.ts
68
67
  var MemoryUsageStore = class {
69
68
  name = "memory";
70
69
  /** actor → period → kind → count */
@@ -85,8 +84,7 @@ var MemoryUsageStore = class {
85
84
  this.#counters.clear();
86
85
  }
87
86
  };
88
- //#endregion
89
- //#region src/usage/stores/redis.ts
87
+ // src/usage/stores/redis.ts
90
88
  /** Period-bucketed usage counters in Redis hashes. See the module header. */
91
89
  var RedisUsageStore = class {
92
90
  name = "redis";
@@ -130,8 +128,7 @@ var RedisUsageStore = class {
130
128
  return out;
131
129
  }
132
130
  };
133
- //#endregion
134
- //#region src/usage/usagePlugin.ts
131
+ // src/usage/usagePlugin.ts
135
132
  function actorFromScope(scope) {
136
133
  if (!scope) return void 0;
137
134
  return getOrgId(scope) ?? getUserId(scope) ?? getClientId(scope);
@@ -216,5 +213,4 @@ var usagePlugin_default = fp(usagePluginFn, {
216
213
  name: "arc-usage",
217
214
  fastify: "5.x"
218
215
  });
219
- //#endregion
220
216
  export { MemoryUsageStore, RedisUsageStore, usagePlugin_default as default, usagePlugin_default as usagePlugin, requireQuota, usagePeriod };
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
2
- //#region src/utils/userHelpers.ts
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ // src/utils/userHelpers.ts
3
3
  /**
4
4
  * Extract a user ID from a user object. Accepts `id` or `_id` — returns
5
5
  * `undefined` when neither is present. Used by arc's controllers to
@@ -26,5 +26,4 @@ function normalizeRoles(value) {
26
26
  function getUserRoles(user) {
27
27
  return user ? normalizeRoles(user.role ?? user.roles) : [];
28
28
  }
29
- //#endregion
30
29
  export { getUserRoles as n, normalizeRoles as r, getUserId as t };
@@ -1,13 +1,12 @@
1
1
 
2
- import { F as getHeader, I as requireSingleHeaderValue, P as ArcHeaders } from "../types-Ddl9OjmE.mjs";
3
- import { f as getUserId, m as normalizeRoles, p as getUserRoles, t as AnyRecord } from "../base-CZyixEQR.mjs";
4
- import { Y as OpenApiSchemas, h as QueryParserInterface, p as ParsedQuery } from "../index-WH7xgvxS.mjs";
5
- import { n as ErrorMapper } from "../errorHandler--4rSMMvq.mjs";
6
- import { a as NotFoundError, c as RateLimitError, d as ValidationError, f as createDomainError, i as ForbiddenError, l as ServiceUnavailableError, m as isArcError, n as ConflictError, o as OrgAccessDeniedError, p as createError, r as ErrorOptions, s as OrgRequiredError, t as ArcError, u as UnauthorizedError } from "../errors-JYc9vwqE.mjs";
2
+ import { F as getHeader, I as requireSingleHeaderValue, P as ArcHeaders } from "../types-DnkIALZ8.mjs";
3
+ import { f as getUserId, m as normalizeRoles, p as getUserRoles, t as AnyRecord } from "../base-HXNgPQww.mjs";
4
+ import { Y as OpenApiSchemas, h as QueryParserInterface, p as ParsedQuery } from "../index-DyJFTJLA.mjs";
5
+ import { n as ErrorMapper } from "../errorHandler-B9r88jZV.mjs";
6
+ import { a as NotFoundError, c as RateLimitError, d as ValidationError, f as createDomainError, i as ForbiddenError, l as ServiceUnavailableError, m as isArcError, n as ConflictError, o as OrgAccessDeniedError, p as createError, r as ErrorOptions, s as OrgRequiredError, t as ArcError, u as UnauthorizedError } from "../errors-DTo0me1o.mjs";
7
7
  import { errorContractSchema } from "@classytic/repo-core/errors";
8
8
  import { FilterClause } from "@classytic/repo-core/query-parser";
9
9
  import { FastifyInstance, FastifyReply, FastifyRequest, RouteHandlerMethod } from "fastify";
10
- //#region src/utils/circuitBreaker.d.ts
11
10
  export declare const CircuitState: {
12
11
  readonly CLOSED: "CLOSED";
13
12
  readonly OPEN: "OPEN";
@@ -307,8 +306,6 @@ export declare class CircuitBreakerRegistry {
307
306
  * Use this instead of a global singleton — attach to fastify.arc or pass explicitly.
308
307
  */
309
308
  export declare function createCircuitBreakerRegistry(): CircuitBreakerRegistry;
310
- //#endregion
311
- //#region src/utils/circuitBreakerRedis.d.ts
312
309
  /**
313
310
  * The two commands this needs. Variadic tail is `unknown[]` for the same
314
311
  * reason as every other `*Like` shape in arc — ioredis types its commands as
@@ -343,8 +340,6 @@ export declare class RedisCircuitBreakerState implements CircuitBreakerSharedSta
343
340
  recordFailure(circuit: string): Promise<number>;
344
341
  reset(circuit: string): Promise<void>;
345
342
  }
346
- //#endregion
347
- //#region src/utils/compensation.d.ts
348
343
  /**
349
344
  * Compensating Transaction — In-Process Rollback Primitive
350
345
  *
@@ -452,8 +447,6 @@ interface CompensationDefinition<TCtx extends Record<string, unknown> = Record<s
452
447
  readonly execute: (initialContext?: TCtx, hooks?: CompensationHooks) => Promise<CompensationResult>;
453
448
  }
454
449
  export declare function defineCompensation<TCtx extends Record<string, unknown> = Record<string, unknown>>(name: string, steps: readonly CompensationStep<TCtx>[]): CompensationDefinition<TCtx>;
455
- //#endregion
456
- //#region src/utils/defineErrorMapper.d.ts
457
450
  /**
458
451
  * Register an `ErrorMapper` with its domain-specific generic argument and
459
452
  * have it assign cleanly into `ErrorMapper[]` (no `as unknown as ErrorMapper`).
@@ -468,8 +461,6 @@ export declare function defineCompensation<TCtx extends Record<string, unknown>
468
461
  * in one place.
469
462
  */
470
463
  export declare function defineErrorMapper<T extends Error>(mapper: ErrorMapper<T>): ErrorMapper;
471
- //#endregion
472
- //#region src/utils/defineGuard.d.ts
473
464
  interface GuardConfig<T> {
474
465
  /** Unique name — used as the storage key on the request. */
475
466
  readonly name: string;
@@ -495,8 +486,6 @@ interface Guard<T> {
495
486
  * Create a typed guard. See module JSDoc for usage.
496
487
  */
497
488
  export declare function defineGuard<T>(config: GuardConfig<T>): Guard<T>;
498
- //#endregion
499
- //#region src/utils/filter-dialect.d.ts
500
489
  interface FilterDialect {
501
490
  /** Emit the parsed clauses as one filter. Several clauses on a field are ANDed. */
502
491
  emit(clauses: readonly FilterClause[]): Record<string, unknown>;
@@ -509,8 +498,6 @@ export declare const MONGO_DIALECT: FilterDialect;
509
498
  * that compiles the canonical clauses itself.
510
499
  */
511
500
  export declare const NEUTRAL_DIALECT: FilterDialect;
512
- //#endregion
513
- //#region src/utils/handleRaw.d.ts
514
501
  /**
515
502
  * Wrap a raw Fastify handler with Arc's response shape and error handling.
516
503
  *
@@ -522,8 +509,6 @@ export declare const NEUTRAL_DIALECT: FilterDialect;
522
509
  * async `preSerialization` hook (idempotency, encryption) is pending re-sends an empty body.
523
510
  */
524
511
  export declare function handleRaw<T>(handler: (request: FastifyRequest, reply: FastifyReply) => Promise<T>, statusCode?: number): (request: FastifyRequest, reply: FastifyReply) => Promise<FastifyReply>;
525
- //#endregion
526
- //#region src/utils/queryParser.d.ts
527
512
  interface ArcQueryParserOptions {
528
513
  /** Cap on `limit`; a larger request is clamped to it (default: 1000). */
529
514
  maxLimit?: number;
@@ -598,8 +583,6 @@ export declare class ArcQueryParser implements QueryParserInterface {
598
583
  }
599
584
  /** Create a new ArcQueryParser instance. */
600
585
  export declare function createQueryParser(options?: ArcQueryParserOptions): ArcQueryParser;
601
- //#endregion
602
- //#region src/utils/responseSchemas.d.ts
603
586
  interface JsonSchema {
604
587
  /**
605
588
  * Optional because JSON Schema allows top-level combinator-only schemas
@@ -1083,8 +1066,6 @@ export declare function getListQueryParams(): AnyRecord;
1083
1066
  * any Fastify instance (not just createApp which adds `keywords: ['example']`).
1084
1067
  */
1085
1068
  export declare function getDefaultCrudSchemas(): Record<string, Record<string, unknown>>;
1086
- //#endregion
1087
- //#region src/utils/runtimeCapabilities.d.ts
1088
1069
  /** What a subsystem declares about the state it holds. */
1089
1070
  interface RuntimeCapabilityDeclaration {
1090
1071
  /** Dotted subsystem id, e.g. `'webhooks.subscriptions'`, `'events.transport'`. */
@@ -1107,8 +1088,6 @@ interface RuntimeCapabilityDeclaration {
1107
1088
  * sees what the constructor-time guard cannot.
1108
1089
  */
1109
1090
  export declare function declareRuntimeCapability(fastify: FastifyInstance, decl: RuntimeCapabilityDeclaration): void;
1110
- //#endregion
1111
- //#region src/utils/schemaConverter.d.ts
1112
1091
  /**
1113
1092
  * Supported JSON Schema output targets for Zod v4's `toJSONSchema()`.
1114
1093
  * - `draft-7`: Fastify/AJV validation (default)
@@ -1188,8 +1167,6 @@ export declare function convertOpenApiSchemas(schemas: OpenApiSchemas, target?:
1188
1167
  * Pass `openapi-3.0` (or `openapi-3.1`) when generating OpenAPI documents.
1189
1168
  */
1190
1169
  export declare function convertRouteSchema(schema: Record<string, unknown>, target?: JsonSchemaTarget): Record<string, unknown>;
1191
- //#endregion
1192
- //#region src/utils/shutdown.d.ts
1193
1170
  interface ShutdownParticipant {
1194
1171
  readonly name: string;
1195
1172
  readonly kind?: "producer" | "consumer";
@@ -1200,8 +1177,6 @@ interface ShutdownParticipant {
1200
1177
  export declare function runAdmittedWork<T>(work: () => T | Promise<T>): Promise<T>;
1201
1178
  /** A participant's stop must prevent new work; drain waits for work already admitted. */
1202
1179
  export declare function registerShutdownParticipant(fastify: FastifyInstance, participant: ShutdownParticipant): void;
1203
- //#endregion
1204
- //#region src/utils/simpleEqualityMatcher.d.ts
1205
1180
  /**
1206
1181
  * `simpleEqualityMatcher` — a minimal, dialect-agnostic flat-key equality
1207
1182
  * matcher for `DataAdapter.matchesFilter` / `BaseController({ matchesFilter })`.
@@ -1227,8 +1202,6 @@ export declare function registerShutdownParticipant(fastify: FastifyInstance, pa
1227
1202
  * ```
1228
1203
  */
1229
1204
  export declare function simpleEqualityMatcher(item: unknown, filters: Record<string, unknown>): boolean;
1230
- //#endregion
1231
- //#region src/utils/sseStream.d.ts
1232
1205
  interface SseStreamOptions {
1233
1206
  /** Heartbeat comment interval in ms (default: 30000). */
1234
1207
  heartbeatMs?: number;
@@ -1259,8 +1232,6 @@ interface SseStream {
1259
1232
  * JSON error can be sent.
1260
1233
  */
1261
1234
  export declare function openSseStream(request: FastifyRequest, reply: FastifyReply, options?: SseStreamOptions): SseStream;
1262
- //#endregion
1263
- //#region src/utils/stateMachine.d.ts
1264
1235
  /**
1265
1236
  * State Machine Utility
1266
1237
  *
@@ -1372,8 +1343,6 @@ type TransitionConfig = Record<string, string[] | {
1372
1343
  export declare function createStateMachine(name: string, transitions?: TransitionConfig, options?: {
1373
1344
  trackHistory?: boolean;
1374
1345
  }): StateMachine;
1375
- //#endregion
1376
- //#region src/utils/streaming.d.ts
1377
1346
  /**
1378
1347
  * Canonical SSE headers for AI-SDK-style UI message streams.
1379
1348
  *
@@ -1487,8 +1456,6 @@ export declare function forwardedStreamHeaders(reply: FastifyReply): Record<stri
1487
1456
  * getter.
1488
1457
  */
1489
1458
  export declare function isReadableStream(value: unknown): value is ReadableStream<unknown>;
1490
- //#endregion
1491
- //#region src/utils/typeGuards.d.ts
1492
1459
  interface EventsDecorator {
1493
1460
  publish: <T>(type: string, payload: T, meta?: Record<string, unknown>) => Promise<void>;
1494
1461
  subscribe: (pattern: string, handler: (event: {
@@ -1502,5 +1469,4 @@ interface EventsDecorator {
1502
1469
  export declare function hasEvents(instance: FastifyInstance): instance is FastifyInstance & {
1503
1470
  events: EventsDecorator;
1504
1471
  };
1505
- //#endregion
1506
1472
  export { type AnyAsyncFn, ArcError, type ArcHeaders, type ArcQueryParserOptions, type CircuitBreakerOptions, type CircuitBreakerRedisLike, type CircuitBreakerSharedState, type CircuitBreakerStats, type CompensationDefinition, type CompensationError, type CompensationHooks, type CompensationResult, type CompensationStep, ConflictError, type ErrorOptions, type EventsDecorator, type FilterDialect, ForbiddenError, type Guard, type GuardConfig, type JsonSchema, type JsonSchemaTarget, NotFoundError, OrgAccessDeniedError, OrgRequiredError, type PipeUIMessageStreamOptions, RateLimitError, type RedisCircuitBreakerStateOptions, type RuntimeCapabilityDeclaration, type SchemaIo, ServiceUnavailableError, type ShutdownParticipant, type SseStream, type SseStreamOptions, type StateMachine, type TransitionConfig, UnauthorizedError, type UnconvertibleMode, ValidationError, createDomainError, createError, errorContractSchema, getHeader, getUserId, getUserRoles, isArcError, normalizeRoles, requireSingleHeaderValue };
@@ -1,13 +1,13 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
2
- import { a as OrgAccessDeniedError, c as ServiceUnavailableError, d as createDomainError, f as createError, i as NotFoundError, l as UnauthorizedError, n as ConflictError, o as OrgRequiredError, p as isArcError, r as ForbiddenError, s as RateLimitError, t as ArcError, u as ValidationError } from "../errors-grZkIA8N.mjs";
3
- import { t as simpleEqualityMatcher } from "../simpleEqualityMatcher-BJwfuRKP.mjs";
4
- import { n as requireSingleHeaderValue, t as getHeader } from "../headers-Cqkg4LzI.mjs";
5
- import { n as getUserRoles, r as normalizeRoles, t as getUserId } from "../userHelpers-BHig1kHq.mjs";
6
- import { C as paginationSchema, D as createQueryParser, E as ArcQueryParser, O as MONGO_DIALECT, S as offsetListResponse, T as responses, _ as errorContractSchema, a as defineCompensation, b as keysetListResponse, c as CircuitBreaker, d as CircuitState, f as createCircuitBreaker, g as deleteResponse, h as bareListResponse, i as defineErrorMapper, k as NEUTRAL_DIALECT, l as CircuitBreakerError, m as aggregateListResponse, n as handleRaw, o as withCompensation, p as createCircuitBreakerRegistry, r as defineGuard, s as RedisCircuitBreakerState, t as createStateMachine, u as CircuitBreakerRegistry, v as getDefaultCrudSchemas, w as queryParams, x as listResponse, y as getListQueryParams } from "../utils-BG5P7_Vb.mjs";
7
- import { a as isZodSchema, i as isJsonSchema, n as convertRouteSchema, o as toJsonSchema, t as convertOpenApiSchemas } from "../schemaConverter-DNvZWTV6.mjs";
8
- import { a as promoteStreamTokenToHeader, i as pipeUIMessageStreamToReply, n as forwardedStreamHeaders, r as isReadableStream, t as UI_MESSAGE_STREAM_HEADERS } from "../streaming-Bdq_M4d5.mjs";
9
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-CydRfm0i.mjs";
10
- import { i as runAdmittedWork, r as registerShutdownParticipant } from "../shutdown-CfrqPR7A.mjs";
11
- import { t as openSseStream } from "../sseStream-C_2ujAVY.mjs";
12
- import { t as hasEvents } from "../typeGuards-CEl10KPy.mjs";
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ import { a as OrgAccessDeniedError, c as ServiceUnavailableError, d as createDomainError, f as createError, i as NotFoundError, l as UnauthorizedError, n as ConflictError, o as OrgRequiredError, p as isArcError, r as ForbiddenError, s as RateLimitError, t as ArcError, u as ValidationError } from "../errors-BY8vzlP4.mjs";
3
+ import { t as simpleEqualityMatcher } from "../simpleEqualityMatcher-DOJhwQ8g.mjs";
4
+ import { n as requireSingleHeaderValue, t as getHeader } from "../headers-DBd3Qheo.mjs";
5
+ import { n as getUserRoles, r as normalizeRoles, t as getUserId } from "../userHelpers-oX5_mOVs.mjs";
6
+ import { C as paginationSchema, D as createQueryParser, E as ArcQueryParser, O as MONGO_DIALECT, S as offsetListResponse, T as responses, _ as errorContractSchema, a as defineCompensation, b as keysetListResponse, c as CircuitBreaker, d as CircuitState, f as createCircuitBreaker, g as deleteResponse, h as bareListResponse, i as defineErrorMapper, k as NEUTRAL_DIALECT, l as CircuitBreakerError, m as aggregateListResponse, n as handleRaw, o as withCompensation, p as createCircuitBreakerRegistry, r as defineGuard, s as RedisCircuitBreakerState, t as createStateMachine, u as CircuitBreakerRegistry, v as getDefaultCrudSchemas, w as queryParams, x as listResponse, y as getListQueryParams } from "../utils-CjjGOT4E.mjs";
7
+ import { a as isZodSchema, i as isJsonSchema, n as convertRouteSchema, o as toJsonSchema, t as convertOpenApiSchemas } from "../schemaConverter-DBJrPZN4.mjs";
8
+ import { a as promoteStreamTokenToHeader, i as pipeUIMessageStreamToReply, n as forwardedStreamHeaders, r as isReadableStream, t as UI_MESSAGE_STREAM_HEADERS } from "../streaming-DvraWW6x.mjs";
9
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-DWqbxkyw.mjs";
10
+ import { i as runAdmittedWork, r as registerShutdownParticipant } from "../shutdown-DzLFbe27.mjs";
11
+ import { t as openSseStream } from "../sseStream-AWLEeNV-.mjs";
12
+ import { t as hasEvents } from "../typeGuards-UKnX8wPX.mjs";
13
13
  export { ArcError, ArcQueryParser, CircuitBreaker, CircuitBreakerError, CircuitBreakerRegistry, CircuitState, ConflictError, ForbiddenError, MONGO_DIALECT, NEUTRAL_DIALECT, NotFoundError, OrgAccessDeniedError, OrgRequiredError, RateLimitError, RedisCircuitBreakerState, ServiceUnavailableError, UI_MESSAGE_STREAM_HEADERS, UnauthorizedError, ValidationError, aggregateListResponse, bareListResponse, convertOpenApiSchemas, convertRouteSchema, createCircuitBreaker, createCircuitBreakerRegistry, createDomainError, createError, createQueryParser, createStateMachine, declareRuntimeCapability, defineCompensation, defineErrorMapper, defineGuard, deleteResponse, errorContractSchema, forwardedStreamHeaders, getDefaultCrudSchemas, getHeader, getListQueryParams, getUserId, getUserRoles, handleRaw, hasEvents, isArcError, isJsonSchema, isReadableStream, isZodSchema, keysetListResponse, listResponse, normalizeRoles, offsetListResponse, openSseStream, paginationSchema, pipeUIMessageStreamToReply, promoteStreamTokenToHeader, queryParams, registerShutdownParticipant, requireSingleHeaderValue, responses, runAdmittedWork, simpleEqualityMatcher, toJsonSchema, withCompensation };