@classytic/arc 2.45.2 → 2.47.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.
- package/README.md +1 -1
- package/dist/{EventTransport-DHb1tpu-.mjs → EventTransport-BHKy4_Bi.mjs} +5 -6
- package/dist/{EventTransport-CiicKz2Z.d.mts → EventTransport-CYEoCJGe.d.mts} +0 -2
- package/dist/{HookSystem-C1u0EUnt.mjs → HookSystem-CAIDVoKC.mjs} +3 -4
- package/dist/{QueryCache--5uAuYPW.d.mts → QueryCache-DdvrGG8Q.d.mts} +1 -3
- package/dist/{ResourceRegistry-D2jXWVN_.mjs → ResourceRegistry-23Ml6FNe.mjs} +15 -4
- package/dist/{acquire-DTkA8Lme.mjs → acquire-DoFX06fm.mjs} +2 -3
- package/dist/{actionPermissions-DRVk6m7x.mjs → actionPermissions-DXrlWHHK.mjs} +37 -42
- package/dist/audit/index.d.mts +2 -10
- package/dist/audit/index.mjs +8 -12
- package/dist/auth/audit.d.mts +0 -2
- package/dist/auth/audit.mjs +2 -3
- package/dist/auth/index.d.mts +9 -17
- package/dist/auth/index.mjs +26 -29
- package/dist/auth/redis-session.d.mts +2 -4
- package/dist/auth/redis-session.mjs +2 -3
- package/dist/{authorizationDecision-D48fUJv1.mjs → authorizationDecision-DYiubkYw.mjs} +5 -6
- package/dist/{base-CZyixEQR.d.mts → base-HXNgPQww.d.mts} +1 -7
- package/dist/{boundedMap-DkKiPifd.mjs → boundedMap-CtdzpJ3X.mjs} +2 -3
- package/dist/{buildHandler-BiZ4VATS.mjs → buildHandler-CARdmPNo.mjs} +5 -6
- package/dist/cache/index.d.mts +4 -10
- package/dist/cache/index.mjs +5 -6
- package/dist/{caching-Cj0as-P1.mjs → caching-QRiryDLs.mjs} +3 -4
- package/dist/{claimed-ChI13rUR.mjs → claimed-BLecr1j3.mjs} +2 -3
- package/dist/cleanup/index.d.mts +4 -18
- package/dist/cleanup/index.mjs +12 -20
- package/dist/cli/commands/describe.d.mts +1 -3
- package/dist/cli/commands/describe.mjs +4 -5
- package/dist/cli/commands/docs.d.mts +1 -3
- package/dist/cli/commands/docs.mjs +4 -5
- package/dist/cli/commands/doctor.d.mts +1 -3
- package/dist/cli/commands/doctor.mjs +2 -3
- package/dist/cli/commands/generate.d.mts +1 -1
- package/dist/cli/commands/generate.mjs +2 -2
- package/dist/cli/commands/init.d.mts +1 -1
- package/dist/cli/commands/init.mjs +2 -2
- package/dist/cli/commands/introspect.d.mts +1 -3
- package/dist/cli/commands/introspect.mjs +3 -4
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.mjs +3 -3
- package/dist/{constants-D_aiew34.mjs → constants-Cx7BcnHT.mjs} +2 -3
- package/dist/context/index.d.mts +0 -8
- package/dist/context/index.mjs +6 -7
- package/dist/core/index.d.mts +3 -3
- package/dist/core/index.mjs +8 -8
- package/dist/{core-QIZ2560Y.mjs → core-0WyMuo0f.mjs} +9 -12
- package/dist/{createActionRouter-CvH84dyx.mjs → createActionRouter-mLAGbpDV.mjs} +7 -8
- package/dist/{createAggregationRouter-DGyK2Hp6.mjs → createAggregationRouter-BEAjn3dA.mjs} +9 -10
- package/dist/{createApp-CKjZpmq9.mjs → createApp-QDP4vYWH.mjs} +49 -62
- package/dist/{createMcpServer-DSztofa9.d.mts → createMcpServer-DzXHX0SO.d.mts} +1 -3
- package/dist/{defineAggregation-BLza7Ca4.mjs → defineAggregation-CFNfvz-C.mjs} +2 -3
- package/dist/{defineResource-CEo0gDCb.mjs → defineResource-BROJmhzJ.mjs} +80 -29
- package/dist/discovery/index.d.mts +1 -3
- package/dist/discovery/index.mjs +2 -3
- package/dist/docs/index.d.mts +8 -8
- package/dist/docs/index.mjs +4 -5
- package/dist/{elevation-BW2J3tNj.d.mts → elevation-DPD0hcU-.d.mts} +0 -2
- package/dist/{elevation-BJTsSnke.mjs → elevation-DrXeEWWk.mjs} +9 -10
- package/dist/encryption/index.d.mts +1 -7
- package/dist/encryption/index.mjs +8 -13
- package/dist/{errorHandler--4rSMMvq.d.mts → errorHandler-B9r88jZV.d.mts} +8 -3
- package/dist/{errorHandler-2p4SL5zm.mjs → errorHandler-BiBXtxj4.mjs} +16 -6
- package/dist/{errors-JYc9vwqE.d.mts → errors-DTo0me1o.d.mts} +0 -2
- package/dist/{errors-grZkIA8N.mjs → errors-DnrUChAy.mjs} +2 -3
- package/dist/{eventPlugin-BtmA4-3P.d.mts → eventPlugin-BY38F6yK.d.mts} +1 -7
- package/dist/{eventPlugin-ItcYBGUs.mjs → eventPlugin-BhKLUe7H.mjs} +10 -12
- package/dist/{eventTypes-Ck6fD3ne.mjs → eventTypes-CCIRGakw.mjs} +5 -8
- package/dist/events/index.d.mts +5 -17
- package/dist/events/index.mjs +9 -9
- package/dist/events/transports/redis-stream-entry.d.mts +1 -1
- package/dist/events/transports/redis-stream-entry.mjs +5 -6
- package/dist/events/transports/redis.d.mts +2 -4
- package/dist/events/transports/redis.mjs +3 -4
- package/dist/{externalPaths-CmGOxOtD.d.mts → externalPaths-BOqdq5wr.d.mts} +0 -2
- package/dist/factory/index.d.mts +4 -14
- package/dist/factory/index.mjs +12 -18
- package/dist/{fastify-augmentation-DRlCIWE9.d.mts → fastify-augmentation-bzkWPt1f.d.mts} +4 -10
- package/dist/{fields-BRX0Krcj.mjs → fields-CYdpcV73.mjs} +2 -3
- package/dist/{fields-BBSpf8pS.d.mts → fields-JTkrtO-r.d.mts} +0 -2
- package/dist/{filter-merge-CDc7YMwX.mjs → filter-merge-6kasezRH.mjs} +2 -3
- package/dist/{generate-DCGuEbqI.d.mts → generate-C-g_KOkV.d.mts} +0 -4
- package/dist/{generate-hvg7V2g1.mjs → generate-DUkcbc4r.mjs} +7 -12
- package/dist/{headers-Cqkg4LzI.mjs → headers-KxhrKevA.mjs} +3 -4
- package/dist/{health-PVt0VjOx.mjs → health-CRJg3IIq.mjs} +2 -3
- package/dist/{health-DyeP3mTW.mjs → health-jkYNdobJ.mjs} +4 -7
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/http-cache/index.d.mts +211 -0
- package/dist/http-cache/index.mjs +605 -0
- package/dist/http-cache/purgers/cloudflare.d.mts +13 -0
- package/dist/http-cache/purgers/cloudflare.mjs +46 -0
- package/dist/http-cache/purgers/fastly.d.mts +12 -0
- package/dist/http-cache/purgers/fastly.mjs +47 -0
- package/dist/http-cache/testing/index.d.mts +68 -0
- package/dist/http-cache/testing/index.mjs +168 -0
- package/dist/idempotency/index.d.mts +3 -9
- package/dist/idempotency/index.mjs +11 -14
- package/dist/idempotency/redis.d.mts +1 -1
- package/dist/idempotency/redis.mjs +3 -4
- package/dist/{index-Bxriq3so.d.mts → index-B5i9-vuP.d.mts} +4 -26
- package/dist/{index-Chgz3d0i.d.mts → index-BAXDo5eE.d.mts} +1 -7
- package/dist/{index-Beg3aNnK.d.mts → index-BxZS-8So.d.mts} +67 -25
- package/dist/{index-WH7xgvxS.d.mts → index-Cy2-QffW.d.mts} +40 -92
- package/dist/{index-uhkUA5-U.d.mts → index-D1X_C_qz.d.mts} +13 -23
- package/dist/{index-CUJvoyw3.d.mts → index-DFCCQ9AE.d.mts} +2 -24
- package/dist/index.d.mts +7 -9
- package/dist/index.mjs +12 -13
- package/dist/{init-jC3rMPzb.mjs → init-CACwpktI.mjs} +18 -35
- package/dist/{init-Cscs4lab.d.mts → init-CV2_Fw3H.d.mts} +0 -4
- package/dist/integrations/event-gateway.d.mts +3 -5
- package/dist/integrations/event-gateway.mjs +3 -4
- package/dist/integrations/index.d.mts +3 -3
- package/dist/integrations/index.mjs +1 -1
- package/dist/integrations/jobs/index.d.mts +1 -1
- package/dist/integrations/jobs/index.mjs +7 -11
- package/dist/integrations/mcp/index.d.mts +7 -39
- package/dist/integrations/mcp/index.mjs +8 -14
- package/dist/integrations/mcp/testing.d.mts +3 -5
- package/dist/integrations/mcp/testing.mjs +3 -4
- package/dist/integrations/streamline.d.mts +1 -3
- package/dist/integrations/streamline.mjs +4 -5
- package/dist/integrations/webhooks.d.mts +2 -4
- package/dist/integrations/webhooks.mjs +5 -5
- package/dist/integrations/websocket-pushref-redis.d.mts +2 -4
- package/dist/integrations/websocket-pushref-redis.mjs +2 -3
- package/dist/integrations/websocket-redis.d.mts +2 -4
- package/dist/integrations/websocket-redis.mjs +2 -3
- package/dist/integrations/websocket.d.mts +2 -2
- package/dist/integrations/websocket.mjs +13 -24
- package/dist/{interface-JJzwH4Ro.d.mts → interface-BmExzQRD.d.mts} +0 -2
- package/dist/{interface-BOk3YnTz.d.mts → interface-WR1U0K7t.d.mts} +0 -2
- package/dist/{jsonBody-ptwyzZQ-.mjs → jsonBody-CzDBkCme.mjs} +3 -4
- package/dist/{keys-C1vFuSbv.mjs → keys-Cbwf6r1B.mjs} +2 -3
- package/dist/{loadResources-CHPDyIPn.mjs → loadResources-Kr6vuljv.mjs} +4 -5
- package/dist/{loadResourcesFromEntry-BkHHTu_B.mjs → loadResourcesFromEntry-D2e0qoDR.mjs} +3 -4
- package/dist/logger/index.d.mts +1 -3
- package/dist/logger/index.mjs +2 -2
- package/dist/{logger-C5bvCiAK.mjs → logger-C110X5Yz.mjs} +3 -5
- package/dist/{mcpPlugin-C9qohJCF.mjs → mcpPlugin-4lIPr9OJ.mjs} +41 -60
- package/dist/{memory-CxiTwT0j.mjs → memory-D9qkhXiB.mjs} +4 -5
- package/dist/{metrics-Ckp2zRy-.mjs → metrics-B-qrrWfI.mjs} +4 -5
- package/dist/middleware/index.d.mts +1 -5
- package/dist/middleware/index.mjs +4 -5
- package/dist/migrations/index.d.mts +0 -2
- package/dist/migrations/index.mjs +3 -4
- package/dist/{module-CfnKuIuH.mjs → module-BD8xHgrz.mjs} +2 -3
- package/dist/{multiTenant-CAtYlW6H.d.mts → multiTenant-KZj8j1uJ.d.mts} +1 -5
- package/dist/{multipartBody-BFasGtP9.mjs → multipartBody-qU7KCn1l.mjs} +2 -3
- package/dist/observeSend-BnPtTotW.mjs +20 -0
- package/dist/{openapi-DAPxjYHX.mjs → openapi-DoVa5SVP.mjs} +18 -28
- package/dist/outbox-admin/index.d.mts +2 -4
- package/dist/outbox-admin/index.mjs +6 -7
- package/dist/{outbox-module-gZCHoE4H.d.mts → outbox-module-5Mnwcycy.d.mts} +3 -9
- package/dist/outbox-module-DyITEIop.mjs +297 -0
- package/dist/permissions/index.d.mts +4 -4
- package/dist/permissions/index.mjs +7 -7
- package/dist/{permissions-B14c3OMp.mjs → permissions-BBy4bOGi.mjs} +19 -29
- package/dist/{pipe-CQv7PsAK.mjs → pipe-BOm2o4UA.mjs} +3 -4
- package/dist/pipeline/index.d.mts +1 -9
- package/dist/pipeline/index.mjs +5 -8
- package/dist/{plan-CpnTykjb.mjs → plan-DDIGwuxr.mjs} +5 -9
- package/dist/{plugin-DXTjVg_Q.mjs → plugin-Bn4D_0XK.mjs} +156 -64
- package/dist/plugins/index.d.mts +8 -16
- package/dist/plugins/index.mjs +22 -26
- package/dist/plugins/response-cache.d.mts +2 -4
- package/dist/plugins/response-cache.mjs +10 -10
- package/dist/plugins/tracing-entry.d.mts +1 -1
- package/dist/plugins/tracing-entry.mjs +3 -4
- package/dist/{pluralize-C3VJKRGp.mjs → pluralize-ClEjcKlG.mjs} +2 -3
- package/dist/policy.types-DPqToKG1.d.mts +50 -0
- package/dist/presets/filesUpload.d.mts +4 -6
- package/dist/presets/filesUpload.mjs +6 -7
- package/dist/presets/index.d.mts +3 -19
- package/dist/presets/index.mjs +2 -2
- package/dist/presets/multiTenant.d.mts +1 -1
- package/dist/presets/multiTenant.mjs +7 -7
- package/dist/presets/search.d.mts +3 -5
- package/dist/presets/search.mjs +3 -4
- package/dist/{presets-CquqYJPy.mjs → presets-DK2jh5YR.mjs} +11 -18
- package/dist/{projection-CgfSLOSM.mjs → projection-BHH-sXyS.mjs} +3 -4
- package/dist/purger.types-2wNJK_89.mjs +24 -0
- package/dist/purger.types-DvPp4-yd.d.mts +26 -0
- package/dist/{pushref-registry-UxCkoA4C.d.mts → pushref-registry-d86QUaSq.d.mts} +0 -6
- package/dist/{queryCachePlugin-D0HUISHJ.mjs → queryCachePlugin-Ckqe98AM.mjs} +8 -10
- package/dist/{queryCachePlugin-C2lZjTxk.d.mts → queryCachePlugin-DYQUyeJ9.d.mts} +2 -4
- package/dist/{rateLimitKey-AvkBOMkl.mjs → rateLimitKey-CWAjlqcN.mjs} +2 -3
- package/dist/{realtime-CbWtVbqK.mjs → realtime-BIJi9USY.mjs} +17 -19
- package/dist/{redis-BDgv9Glw.d.mts → redis-RpDMemdm.d.mts} +2 -4
- package/dist/{redis-stream-BMk-bpQS.d.mts → redis-stream-CS1N9dwM.d.mts} +1 -3
- package/dist/{redisShapes-CQksY67q.d.mts → redisShapes-CqBXTn_s.d.mts} +0 -2
- package/dist/registry/index.d.mts +2 -12
- package/dist/registry/index.mjs +3 -3
- package/dist/{registry-BVwpAuFI.mjs → registry-y9ZA-R_J.mjs} +7 -12
- package/dist/{outbox-module-B4FAkx3A.mjs → relay-BNrC1CEP.mjs} +8 -306
- package/dist/{renewingLease-CykpeNcQ.mjs → renewingLease-CS43br5E.mjs} +2 -3
- package/dist/{replyHelpers-DA51IZio.mjs → replyHelpers-oZDzakGb.mjs} +3 -4
- package/dist/{requestContext-DIWHKDtQ.mjs → requestContext-fWb_YaV2.mjs} +2 -3
- package/dist/{requirement-Cp_fsMDL.mjs → requirement--2hWyyHi.mjs} +2 -3
- package/dist/{requirement-CbiLdQ1n.d.mts → requirement-CTRQjjQx.d.mts} +0 -2
- package/dist/{resourceRateLimit-BFuluodF.mjs → resourceRateLimit-1WbcyMZY.mjs} +3 -4
- package/dist/{resourceRateLimit-Wf6d6FL9.d.mts → resourceRateLimit-DCWglD7V.d.mts} +1 -3
- package/dist/{rolldown-runtime-D_lMdYOd.mjs → rolldown-runtime-yH2lHMo_.mjs} +2 -3
- package/dist/{routeValidator-DuLonYwr.mjs → routeValidator-BSlRIA5c.mjs} +2 -3
- package/dist/{runtimeCapabilities-CydRfm0i.mjs → runtimeCapabilities-CYCEtU1W.mjs} +2 -3
- package/dist/{schedules-B693KXxa.mjs → schedules-B5WGlYIT.mjs} +132 -9
- package/dist/{schemaConverter-DNvZWTV6.mjs → schemaConverter-DtNvts-6.mjs} +3 -4
- package/dist/{schemaIR-REV2y7Wd.mjs → schemaIR-uS_RHqa3.mjs} +3 -4
- package/dist/schemas/index.d.mts +0 -2
- package/dist/schemas/index.mjs +2 -3
- package/dist/scim/index.d.mts +0 -12
- package/dist/scim/index.mjs +10 -18
- package/dist/scope/index.d.mts +2 -6
- package/dist/scope/index.mjs +5 -5
- package/dist/{scope-Bevxy_ST.mjs → scope-BwVLSyNG.mjs} +5 -6
- package/dist/{sessionManager-qimlKV0P.d.mts → sessionManager-CdvDF04x.d.mts} +2 -4
- package/dist/{shutdown-CfrqPR7A.mjs → shutdown-BJiJN7FT.mjs} +2 -3
- package/dist/{simpleEqualityMatcher-BJwfuRKP.mjs → simpleEqualityMatcher-DGRLq-1k.mjs} +2 -3
- package/dist/{sse-CuNNWr2z.mjs → sse-B_50llZu.mjs} +8 -9
- package/dist/{sseStream-C_2ujAVY.mjs → sseStream-BjSo9Ult.mjs} +3 -4
- package/dist/{storage-Cx9Sz3Ou.d.mts → storage-odC5MNKN.d.mts} +0 -2
- package/dist/{store-helpers-C8uBGCbb.mjs → store-helpers-D-n5cwy5.mjs} +2 -3
- package/dist/{streaming-Bdq_M4d5.mjs → streaming-Dcgqa-hH.mjs} +2 -3
- package/dist/{subscriberIdentity-B-KpZkdl.mjs → subscriberIdentity-C9KhIXTF.mjs} +2 -3
- package/dist/{tenancy-C5PCvm1h.mjs → tenancy-COrhjPRZ.mjs} +3 -4
- package/dist/{tenantPreparation-dYvWrgNa.mjs → tenantPreparation-BElWHytd.mjs} +5 -6
- package/dist/testing/cleanupStoreContract.d.mts +2 -4
- package/dist/testing/cleanupStoreContract.mjs +2 -3
- package/dist/testing/index.d.mts +6 -32
- package/dist/testing/index.mjs +24 -37
- package/dist/testing/outboxStoreContract.d.mts +1 -3
- package/dist/testing/outboxStoreContract.mjs +3 -4
- package/dist/testing/requiredPorts.d.mts +2 -4
- package/dist/testing/requiredPorts.mjs +3 -4
- package/dist/testing/storageContract.d.mts +2 -4
- package/dist/testing/storageContract.mjs +2 -3
- package/dist/{timing-DCqsezX8.mjs → timing-CaxKbRk_.mjs} +3 -5
- package/dist/{tracing-Dro5eH6j.d.mts → tracing-JSFiBl5r.d.mts} +0 -2
- package/dist/{transactionContext-DrcNyjpv.mjs → transactionContext-8qKON0Nk.mjs} +2 -3
- package/dist/{typeGuards-CEl10KPy.mjs → typeGuards-DVjVSsXO.mjs} +2 -3
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/types/storage.d.mts +1 -1
- package/dist/types/storage.mjs +1 -1
- package/dist/{types-ByHn9rEO.d.mts → types-0Dqlbgn8.d.mts} +0 -2
- package/dist/{types-BJ-2XqVF.d.mts → types-BeEJm-DV.d.mts} +114 -14
- package/dist/{types-DVLddu2q.d.mts → types-C0YJAiL0.d.mts} +0 -2
- package/dist/{types-D9NWjpYc.mjs → types-DZHqOuJE.mjs} +5 -6
- package/dist/{types-D3Ixsh00.d.mts → types-DeLiuaNv.d.mts} +2 -4
- package/dist/{types-Ddl9OjmE.d.mts → types-DnkIALZ8.d.mts} +0 -4
- package/dist/usage/index.d.mts +2 -10
- package/dist/usage/index.mjs +8 -12
- package/dist/{userHelpers-BHig1kHq.mjs → userHelpers-_eGj6kf0.mjs} +2 -3
- package/dist/utils/index.d.mts +5 -39
- package/dist/utils/index.mjs +12 -12
- package/dist/{utils-BG5P7_Vb.mjs → utils-Dd6MWpye.mjs} +20 -30
- package/dist/{validate-D_mdOCir.mjs → validate-BaF5wd0x.mjs} +5 -7
- package/dist/{versioning-DBGHjPh7.mjs → versioning-DyV7mwtK.mjs} +4 -5
- package/dist/{versioning-Bqm_57Qt.d.mts → versioning-S18y2-0C.d.mts} +1 -15
- package/dist/{websocket-Cs4awVyD.d.mts → websocket-BGuc-WVZ.d.mts} +1 -15
- package/dist/{workScope-DPPfM4m6.mjs → workScope-CmCBUmPR.mjs} +3 -4
- package/llms.txt +37 -30
- package/package.json +51 -22
- package/skills/arc/SKILL.md +65 -844
- package/skills/arc/references/agent-auth.md +82 -193
- package/skills/arc/references/api-reference.md +41 -245
- package/skills/arc/references/auth-api-keys.md +99 -0
- package/skills/arc/references/auth-better-auth-overlay.md +87 -0
- package/skills/arc/references/auth-better-auth.md +78 -0
- package/skills/arc/references/auth-permissions.md +100 -0
- package/skills/arc/references/auth-strategies.md +122 -0
- package/skills/arc/references/boot.md +80 -0
- package/skills/arc/references/enterprise-auth.md +65 -81
- package/skills/arc/references/events-outbox.md +90 -0
- package/skills/arc/references/events.md +75 -440
- package/skills/arc/references/integrations-jobs.md +74 -0
- package/skills/arc/references/integrations-realtime.md +84 -0
- package/skills/arc/references/integrations-webhooks.md +71 -0
- package/skills/arc/references/integrations-workflows.md +47 -0
- package/skills/arc/references/mcp-auth.md +83 -0
- package/skills/arc/references/mcp-custom-tools.md +125 -0
- package/skills/arc/references/mcp-setup.md +115 -0
- package/skills/arc/references/mcp-testing.md +63 -0
- package/skills/arc/references/multi-tenancy.md +56 -230
- package/skills/arc/references/permissions-scope.md +81 -0
- package/skills/arc/references/production-api.md +119 -0
- package/skills/arc/references/production-audit.md +101 -0
- package/skills/arc/references/production-boot.md +91 -0
- package/skills/arc/references/production-caching.md +63 -0
- package/skills/arc/references/production-distributed.md +75 -0
- package/skills/arc/references/production-idempotency.md +83 -0
- package/skills/arc/references/production-observability.md +83 -0
- package/skills/arc/references/production-realtime.md +70 -0
- package/skills/arc/references/production-reliability.md +100 -0
- package/skills/arc/references/production-shutdown.md +43 -0
- package/skills/arc/references/querying.md +76 -0
- package/skills/arc/references/resources.md +97 -0
- package/skills/arc/references/schedules.md +79 -0
- package/skills/arc/references/scim.md +61 -208
- package/skills/arc/references/tenancy-scope-install.md +82 -0
- package/skills/arc/references/testing.md +101 -144
- package/skills/arc/references/usage-cleanup-capabilities.md +45 -0
- package/skills/arc/references/validation.md +91 -0
- package/skills/arc/references/writes-hooks-errors.md +80 -0
- package/skills/arc-code-review/SKILL.md +67 -114
- package/skills/arc-code-review/references/arc-cheatsheet.md +68 -167
- package/skills/arc-code-review/references/mongokit-repositories.md +104 -0
- package/skills/arc-code-review/references/recipe-events-cache-jobs.md +112 -0
- package/skills/arc-code-review/references/recipe-resource.md +100 -0
- package/skills/arc-code-review/references/recipe-schemas-fields.md +93 -0
- package/skills/arc-code-review/references/recipe-scope-permissions.md +82 -0
- package/skills/arc-code-review/references/scaffolding.md +61 -198
- package/skills/arc-code-review/references/severity.md +49 -102
- package/skills/arc-code-review/references/smells-auth-scope.md +80 -0
- package/skills/arc-code-review/references/smells-data-events.md +66 -0
- package/skills/arc-code-review/references/smells-imports-style.md +59 -0
- package/skills/arc-code-review/references/smells-platform.md +89 -0
- package/skills/arc-code-review/references/smells-routes-schemas.md +66 -0
- package/skills/arc-module-publishing/SKILL.md +82 -208
- package/skills/arc-module-publishing/references/action-presets-and-plugins.md +87 -0
- package/skills/arc-module-publishing/references/build-and-types.md +73 -0
- package/skills/arc-module-publishing/references/module-lifecycle.md +101 -0
- package/skills/arc-module-publishing/references/package-manifest.md +34 -122
- package/skills/arc-module-publishing/references/publishing-workflow.md +44 -140
- package/skills/arc-module-publishing/references/resource-assembly.md +102 -0
- package/skills/arc-module-publishing/references/testing-packages.md +82 -0
- package/skills/arc/references/auth.md +0 -729
- package/skills/arc/references/integrations.md +0 -452
- package/skills/arc/references/mcp.md +0 -691
- package/skills/arc/references/production.md +0 -835
- package/skills/arc-code-review/references/anti-patterns.md +0 -1008
- package/skills/arc-code-review/references/migration-recipes.md +0 -649
- package/skills/arc-code-review/references/mongokit-migration.md +0 -360
- package/skills/arc-module-publishing/references/authoring-modules.md +0 -327
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { n as DomainEvent, r as EventHandler } from "./EventTransport-
|
|
3
|
-
import { n as ErrorMapper } from "./errorHandler
|
|
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
|
-
|
|
41
|
-
|
|
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
|
-
|
|
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.
|
|
2
|
-
import { l as UnauthorizedError, o as OrgRequiredError } from "./errors-
|
|
3
|
-
import { n as requireSingleHeaderValue } from "./headers-
|
|
4
|
-
import { t as getUserId$1 } from "./userHelpers-
|
|
5
|
-
|
|
1
|
+
/*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
|
|
2
|
+
import { l as UnauthorizedError, o as OrgRequiredError } from "./errors-DnrUChAy.mjs";
|
|
3
|
+
import { n as requireSingleHeaderValue } from "./headers-KxhrKevA.mjs";
|
|
4
|
+
import { t as getUserId$1 } from "./userHelpers-_eGj6kf0.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,8 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { F as ResourceDefinition } from "./index-
|
|
3
|
-
import { i as ResourceRateLimiter } from "./resourceRateLimit-
|
|
2
|
+
import { F as ResourceDefinition } from "./index-Cy2-QffW.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,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 };
|
package/dist/usage/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { i as RequestScope } from "../types-
|
|
3
|
-
import { l as PermissionCheck, u as PermissionContext } from "../base-
|
|
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 };
|
package/dist/usage/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as ArcError } from "../errors-
|
|
3
|
-
import { c as getOrgId, g as getUserId, i as getClientId } from "../types-
|
|
4
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
1
|
+
/*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as ArcError } from "../errors-DnrUChAy.mjs";
|
|
3
|
+
import { c as getOrgId, g as getUserId, i as getClientId } from "../types-DZHqOuJE.mjs";
|
|
4
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-CYCEtU1W.mjs";
|
|
5
5
|
import { usagePeriod } from "@classytic/repo-core/usage";
|
|
6
6
|
import fp from "fastify-plugin";
|
|
7
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
2
|
-
|
|
1
|
+
/*! @classytic/arc v2.47.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 };
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
import { F as getHeader, I as requireSingleHeaderValue, P as ArcHeaders } from "../types-
|
|
3
|
-
import { f as getUserId, m as normalizeRoles, p as getUserRoles, t as AnyRecord } from "../base-
|
|
4
|
-
import { Y as OpenApiSchemas, h as QueryParserInterface, p as ParsedQuery } from "../index-
|
|
5
|
-
import { n as ErrorMapper } from "../errorHandler
|
|
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-
|
|
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-Cy2-QffW.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 };
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
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-
|
|
3
|
-
import { t as simpleEqualityMatcher } from "../simpleEqualityMatcher-
|
|
4
|
-
import { n as requireSingleHeaderValue, t as getHeader } from "../headers-
|
|
5
|
-
import { n as getUserRoles, r as normalizeRoles, t as getUserId } from "../userHelpers-
|
|
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-
|
|
7
|
-
import { a as isZodSchema, i as isJsonSchema, n as convertRouteSchema, o as toJsonSchema, t as convertOpenApiSchemas } from "../schemaConverter-
|
|
8
|
-
import { a as promoteStreamTokenToHeader, i as pipeUIMessageStreamToReply, n as forwardedStreamHeaders, r as isReadableStream, t as UI_MESSAGE_STREAM_HEADERS } from "../streaming-
|
|
9
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
10
|
-
import { i as runAdmittedWork, r as registerShutdownParticipant } from "../shutdown-
|
|
11
|
-
import { t as openSseStream } from "../sseStream-
|
|
12
|
-
import { t as hasEvents } from "../typeGuards-
|
|
1
|
+
/*! @classytic/arc v2.47.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-DnrUChAy.mjs";
|
|
3
|
+
import { t as simpleEqualityMatcher } from "../simpleEqualityMatcher-DGRLq-1k.mjs";
|
|
4
|
+
import { n as requireSingleHeaderValue, t as getHeader } from "../headers-KxhrKevA.mjs";
|
|
5
|
+
import { n as getUserRoles, r as normalizeRoles, t as getUserId } from "../userHelpers-_eGj6kf0.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-Dd6MWpye.mjs";
|
|
7
|
+
import { a as isZodSchema, i as isJsonSchema, n as convertRouteSchema, o as toJsonSchema, t as convertOpenApiSchemas } from "../schemaConverter-DtNvts-6.mjs";
|
|
8
|
+
import { a as promoteStreamTokenToHeader, i as pipeUIMessageStreamToReply, n as forwardedStreamHeaders, r as isReadableStream, t as UI_MESSAGE_STREAM_HEADERS } from "../streaming-Dcgqa-hH.mjs";
|
|
9
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-CYCEtU1W.mjs";
|
|
10
|
+
import { i as runAdmittedWork, r as registerShutdownParticipant } from "../shutdown-BJiJN7FT.mjs";
|
|
11
|
+
import { t as openSseStream } from "../sseStream-BjSo9Ult.mjs";
|
|
12
|
+
import { t as hasEvents } from "../typeGuards-DVjVSsXO.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 };
|