@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,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { FastifyPluginAsync, FastifyRequest } from "fastify";
|
|
3
|
-
//#region src/scope/elevation.d.ts
|
|
4
3
|
interface ElevationOptions {
|
|
5
4
|
/** Roles that can use elevation (default: ['superadmin']) */
|
|
6
5
|
platformRoles?: string[];
|
|
@@ -18,5 +17,4 @@ interface ElevationEvent {
|
|
|
18
17
|
timestamp: Date;
|
|
19
18
|
}
|
|
20
19
|
declare const _default: FastifyPluginAsync<ElevationOptions>;
|
|
21
|
-
//#endregion
|
|
22
20
|
export { ElevationOptions as n, _default as r, ElevationEvent as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
4
|
-
import { n as requireSingleHeaderValue } from "./headers-
|
|
5
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
1
|
+
/*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-yH2lHMo_.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-C110X5Yz.mjs";
|
|
4
|
+
import { n as requireSingleHeaderValue } from "./headers-KxhrKevA.mjs";
|
|
5
|
+
import { n as getUserRoles } from "./userHelpers-_eGj6kf0.mjs";
|
|
6
6
|
import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
|
|
7
7
|
import fp from "fastify-plugin";
|
|
8
|
-
|
|
8
|
+
// src/scope/elevation.ts
|
|
9
9
|
/**
|
|
10
10
|
* Elevation Plugin — Explicit Platform Admin Access
|
|
11
11
|
*
|
|
@@ -49,7 +49,7 @@ const elevationPlugin = async (fastify, opts = {}) => {
|
|
|
49
49
|
}
|
|
50
50
|
const originalAuthenticate = fastify.authenticate;
|
|
51
51
|
const authenticateWithElevation = async (request, reply) => {
|
|
52
|
-
await originalAuthenticate.call(fastify, request, reply);
|
|
52
|
+
if (await originalAuthenticate.call(fastify, request, reply) === reply) return reply;
|
|
53
53
|
if (reply.sent) return;
|
|
54
54
|
if (requireSingleHeaderValue(request.headers, scopeHeader) !== "platform") return;
|
|
55
55
|
const user = request.user;
|
|
@@ -60,7 +60,7 @@ const elevationPlugin = async (fastify, opts = {}) => {
|
|
|
60
60
|
message: "Authentication required for platform elevation",
|
|
61
61
|
status: 401
|
|
62
62
|
});
|
|
63
|
-
return;
|
|
63
|
+
return reply;
|
|
64
64
|
}
|
|
65
65
|
const userRoles = getUserRoles(user);
|
|
66
66
|
if (!platformRoles.some((r) => userRoles.includes(r))) {
|
|
@@ -74,7 +74,7 @@ const elevationPlugin = async (fastify, opts = {}) => {
|
|
|
74
74
|
message: "Insufficient privileges for platform elevation",
|
|
75
75
|
status: 403
|
|
76
76
|
});
|
|
77
|
-
return;
|
|
77
|
+
return reply;
|
|
78
78
|
}
|
|
79
79
|
const orgId = requireSingleHeaderValue(request.headers, orgHeader);
|
|
80
80
|
const userId = String(user.id ?? user._id ?? "unknown");
|
|
@@ -123,5 +123,4 @@ var elevation_default = fp(elevationPlugin, {
|
|
|
123
123
|
name: "arc-elevation",
|
|
124
124
|
fastify: "5.x"
|
|
125
125
|
});
|
|
126
|
-
//#endregion
|
|
127
126
|
export { elevation_exports as n, elevation_default as t };
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as JweAlg, c as KeyMaterial, i as EncryptionOptions, l as KeyProvider, n as EncryptionDirective, o as JweEnc, r as EncryptionMode, s as KeyContext, t as ActiveKey } from "../types-
|
|
2
|
+
import { a as JweAlg, c as KeyMaterial, i as EncryptionOptions, l as KeyProvider, n as EncryptionDirective, o as JweEnc, r as EncryptionMode, s as KeyContext, t as ActiveKey } from "../types-0Dqlbgn8.mjs";
|
|
3
3
|
import { FastifyPluginAsync } from "fastify";
|
|
4
|
-
//#region src/encryption/encryptionPlugin.d.ts
|
|
5
4
|
declare const encryptionPlugin: FastifyPluginAsync<EncryptionOptions>;
|
|
6
5
|
declare const _default: FastifyPluginAsync<EncryptionOptions>;
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/encryption/fieldCipher.d.ts
|
|
9
6
|
/**
|
|
10
7
|
* Field-level cipher — `node:crypto` AES-256-GCM, zero external deps.
|
|
11
8
|
*
|
|
@@ -36,8 +33,6 @@ interface ParsedFieldEnvelope {
|
|
|
36
33
|
export declare function parseFieldEnvelope(token: string): ParsedFieldEnvelope | null;
|
|
37
34
|
/** Decrypt a parsed `arc.v1` envelope with the resolved key. Throws on tamper. */
|
|
38
35
|
export declare function decryptField(envelope: ParsedFieldEnvelope, key: unknown): string;
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/encryption/keyProvider.d.ts
|
|
41
36
|
interface StaticKeyProviderOptions {
|
|
42
37
|
/**
|
|
43
38
|
* Active key used to ENCRYPT outbound responses. For `jwe` mode this is the
|
|
@@ -77,5 +72,4 @@ interface StaticKeyProviderOptions {
|
|
|
77
72
|
* ```
|
|
78
73
|
*/
|
|
79
74
|
export declare function createStaticKeyProvider(options: StaticKeyProviderOptions): KeyProvider;
|
|
80
|
-
//#endregion
|
|
81
75
|
export { type ActiveKey, type EncryptionDirective, type EncryptionMode, type EncryptionOptions, type JweAlg, type JweEnc, type KeyContext, type KeyMaterial, type KeyProvider, type ParsedFieldEnvelope, type StaticKeyProviderOptions, _default as default, encryptionPlugin };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as ArcError } from "../errors-
|
|
3
|
-
import { t as parseJsonBody } from "../jsonBody-
|
|
1
|
+
/*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as ArcError } from "../errors-DnrUChAy.mjs";
|
|
3
|
+
import { t as parseJsonBody } from "../jsonBody-CzDBkCme.mjs";
|
|
4
4
|
import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
|
|
5
5
|
import fp from "fastify-plugin";
|
|
6
|
-
|
|
6
|
+
// src/encryption/fieldCipher.ts
|
|
7
7
|
/**
|
|
8
8
|
* Field-level cipher — `node:crypto` AES-256-GCM, zero external deps.
|
|
9
9
|
*
|
|
@@ -76,8 +76,7 @@ function decryptField(envelope, key) {
|
|
|
76
76
|
decipher.setAuthTag(envelope.tag);
|
|
77
77
|
return Buffer.concat([decipher.update(envelope.ciphertext), decipher.final()]).toString("utf8");
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
//#region src/encryption/jose.ts
|
|
79
|
+
// src/encryption/jose.ts
|
|
81
80
|
let josePromise;
|
|
82
81
|
/** Load `jose` once, caching the module. Throws an actionable error if absent. */
|
|
83
82
|
async function loadJose() {
|
|
@@ -114,8 +113,7 @@ async function jweDecrypt(jwe, resolve, allowedAlgs, allowedEncs) {
|
|
|
114
113
|
});
|
|
115
114
|
return decoder.decode(plaintext);
|
|
116
115
|
}
|
|
117
|
-
|
|
118
|
-
//#region src/encryption/resolver.ts
|
|
116
|
+
// src/encryption/resolver.ts
|
|
119
117
|
function routeDirective(request) {
|
|
120
118
|
return (request.routeOptions?.config)?.arcExtensions?.encryption;
|
|
121
119
|
}
|
|
@@ -146,8 +144,7 @@ function resolveDirective(request, defaultMode, fallback) {
|
|
|
146
144
|
}
|
|
147
145
|
return null;
|
|
148
146
|
}
|
|
149
|
-
|
|
150
|
-
//#region src/encryption/encryptionPlugin.ts
|
|
147
|
+
// src/encryption/encryptionPlugin.ts
|
|
151
148
|
function getPath(obj, path) {
|
|
152
149
|
let cur = obj;
|
|
153
150
|
for (const seg of path.split(".")) {
|
|
@@ -239,8 +236,7 @@ var encryptionPlugin_default = fp(encryptionPlugin, {
|
|
|
239
236
|
name: "arc-encryption",
|
|
240
237
|
fastify: "5.x"
|
|
241
238
|
});
|
|
242
|
-
|
|
243
|
-
//#region src/encryption/keyProvider.ts
|
|
239
|
+
// src/encryption/keyProvider.ts
|
|
244
240
|
/**
|
|
245
241
|
* A static, in-memory key provider with `kid`-based rotation. Keys are held
|
|
246
242
|
* for the process lifetime — resolve them from env / a secrets file at boot
|
|
@@ -272,5 +268,4 @@ function createStaticKeyProvider(options) {
|
|
|
272
268
|
decryptionKey: (kid) => decryptionKeys[kid]
|
|
273
269
|
};
|
|
274
270
|
}
|
|
275
|
-
//#endregion
|
|
276
271
|
export { createStaticKeyProvider, decryptField, encryptionPlugin_default as default, encryptField, encryptionPlugin, parseFieldEnvelope };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { ErrorDetail } from "@classytic/repo-core/errors";
|
|
3
|
-
import { FastifyInstance, FastifyRequest } from "fastify";
|
|
4
|
-
//#region src/plugins/errorHandler.d.ts
|
|
3
|
+
import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify";
|
|
5
4
|
/**
|
|
6
5
|
* Class-based error mapper — `instanceof` check converts a thrown class
|
|
7
6
|
* to a partial `ErrorContract`. Highest-priority dispatch in the handler.
|
|
@@ -61,6 +60,13 @@ interface ErrorHandlerOptions {
|
|
|
61
60
|
errorMappers?: ErrorMapper[];
|
|
62
61
|
/** Driver-aware duplicate-key classifier. Override to add long-tail drivers. */
|
|
63
62
|
isDuplicateKeyError?: (err: unknown) => boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Unknown routes answer the canonical `ErrorContract` (404 `arc.not_found`) instead of Fastify's
|
|
65
|
+
* `{ message, error, statusCode }`. `true` installs arc's handler; a function replaces it;
|
|
66
|
+
* `false`/omitted leaves Fastify's default. `createApp` turns it on. Fastify allows ONE not-found
|
|
67
|
+
* handler per scope, so a host that calls `setNotFoundHandler` itself must pass `false` here.
|
|
68
|
+
*/
|
|
69
|
+
notFound?: boolean | ((request: FastifyRequest, reply: FastifyReply) => unknown);
|
|
64
70
|
}
|
|
65
71
|
/**
|
|
66
72
|
* Default duplicate-key detector. Strict driver-code matching only — never
|
|
@@ -71,5 +77,4 @@ interface ErrorHandlerOptions {
|
|
|
71
77
|
declare function defaultIsDuplicateKeyError(err: unknown): boolean;
|
|
72
78
|
declare function errorHandlerPluginFn(fastify: FastifyInstance, options?: ErrorHandlerOptions): Promise<void>;
|
|
73
79
|
declare const errorHandlerPlugin: typeof errorHandlerPluginFn;
|
|
74
|
-
//#endregion
|
|
75
80
|
export { errorHandlerPlugin as i, ErrorMapper as n, defaultIsDuplicateKeyError as r, ErrorHandlerOptions as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { m as statusToArcCode, p as isArcError } from "./errors-
|
|
1
|
+
/*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-yH2lHMo_.mjs";
|
|
3
|
+
import { m as statusToArcCode, p as isArcError } from "./errors-DnrUChAy.mjs";
|
|
4
4
|
import { isHttpError, toErrorContract } from "@classytic/repo-core/errors";
|
|
5
5
|
import { isProductionEnv } from "@classytic/primitives/environment";
|
|
6
6
|
import fp from "fastify-plugin";
|
|
7
|
-
|
|
7
|
+
// src/plugins/errorHandler.ts
|
|
8
8
|
/**
|
|
9
9
|
* Global error handler — converts every thrown error into the canonical
|
|
10
10
|
* `ErrorContract` wire shape from `@classytic/repo-core/errors`.
|
|
@@ -34,6 +34,16 @@ var errorHandler_exports = /* @__PURE__ */ __exportAll({
|
|
|
34
34
|
defaultIsDuplicateKeyError: () => defaultIsDuplicateKeyError,
|
|
35
35
|
errorHandlerPlugin: () => errorHandlerPlugin
|
|
36
36
|
});
|
|
37
|
+
/** Canonical 404 body for a request that matched no route. */
|
|
38
|
+
function notFoundContract(request) {
|
|
39
|
+
const correlationId = request.id;
|
|
40
|
+
return {
|
|
41
|
+
code: statusToArcCode(404),
|
|
42
|
+
message: `Route ${request.method} ${request.url.split("?")[0]} not found`,
|
|
43
|
+
status: 404,
|
|
44
|
+
...correlationId ? { correlationId } : {}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
37
47
|
/**
|
|
38
48
|
* Default duplicate-key detector. Strict driver-code matching only — never
|
|
39
49
|
* message strings (false positives mask real WriteConflict / NotWritable
|
|
@@ -132,7 +142,8 @@ async function errorHandlerPluginFn(fastify, options = {}) {
|
|
|
132
142
|
* with nothing to indicate it.
|
|
133
143
|
*/
|
|
134
144
|
const productionEnv = isProductionEnv(process.env.NODE_ENV);
|
|
135
|
-
const { includeStack = !productionEnv, exposeInternalMessages = !productionEnv, onError, errorMap = {}, errorMappers = [], isDuplicateKeyError = defaultIsDuplicateKeyError } = options;
|
|
145
|
+
const { includeStack = !productionEnv, exposeInternalMessages = !productionEnv, onError, errorMap = {}, errorMappers = [], isDuplicateKeyError = defaultIsDuplicateKeyError, notFound = false } = options;
|
|
146
|
+
if (notFound) fastify.setNotFoundHandler(typeof notFound === "function" ? notFound : async (request, reply) => reply.status(404).send(notFoundContract(request)));
|
|
136
147
|
fastify.setErrorHandler(async (error, request, reply) => {
|
|
137
148
|
if (onError) try {
|
|
138
149
|
await onError(error, request);
|
|
@@ -297,5 +308,4 @@ const errorHandlerPlugin = fp(errorHandlerPluginFn, {
|
|
|
297
308
|
name: "arc-error-handler",
|
|
298
309
|
fastify: "5.x"
|
|
299
310
|
});
|
|
300
|
-
//#endregion
|
|
301
311
|
export { errorHandlerPlugin as n, errorHandler_exports as r, defaultIsDuplicateKeyError as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { HttpError } from "@classytic/repo-core/errors";
|
|
3
|
-
//#region src/utils/errors.d.ts
|
|
4
3
|
interface ErrorOptions {
|
|
5
4
|
code?: string;
|
|
6
5
|
statusCode?: number;
|
|
@@ -96,5 +95,4 @@ declare function createError(statusCode: number, message: string, details?: Reco
|
|
|
96
95
|
declare function createDomainError(code: string, message: string, statusCode?: number, details?: Record<string, unknown>): ArcError;
|
|
97
96
|
/** Type guard. */
|
|
98
97
|
declare function isArcError(error: unknown): error is ArcError;
|
|
99
|
-
//#endregion
|
|
100
98
|
export { NotFoundError as a, RateLimitError as c, ValidationError as d, createDomainError as f, ForbiddenError as i, ServiceUnavailableError as l, isArcError as m, ConflictError as n, OrgAccessDeniedError as o, createError as p, ErrorOptions as r, OrgRequiredError as s, ArcError as t, UnauthorizedError as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
|
|
2
2
|
import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
|
|
3
|
-
|
|
3
|
+
// src/utils/errors.ts
|
|
4
4
|
/**
|
|
5
5
|
* Arc error hierarchy.
|
|
6
6
|
*
|
|
@@ -216,5 +216,4 @@ function createDomainError(code, message, statusCode = 400, details) {
|
|
|
216
216
|
function isArcError(error) {
|
|
217
217
|
return error instanceof ArcError;
|
|
218
218
|
}
|
|
219
|
-
//#endregion
|
|
220
219
|
export { OrgAccessDeniedError as a, ServiceUnavailableError as c, createDomainError as d, createError as f, NotFoundError as i, UnauthorizedError as l, statusToArcCode as m, ConflictError as n, OrgRequiredError as o, isArcError as p, ForbiddenError as r, RateLimitError as s, ArcError as t, ValidationError as u };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as EventTransport, i as EventLogger, n as DomainEvent, r as EventHandler, s as MemoryEventTransportOptions } from "./EventTransport-
|
|
2
|
+
import { a as EventTransport, i as EventLogger, n as DomainEvent, r as EventHandler, s as MemoryEventTransportOptions } from "./EventTransport-CYEoCJGe.mjs";
|
|
3
3
|
import { FastifyInstance, FastifyPluginAsync } from "fastify";
|
|
4
4
|
import { EventDurability, FactExpectation } from "@classytic/primitives/durable-events";
|
|
5
|
-
//#region src/events/defineEvent.d.ts
|
|
6
5
|
interface EventSchema {
|
|
7
6
|
type: "object";
|
|
8
7
|
properties?: Record<string, {
|
|
@@ -154,8 +153,6 @@ declare function defineEvent<T = unknown>(input: EventDefinitionInput<T>): Event
|
|
|
154
153
|
* For nested objects, arrays, enums, patterns, or $ref, provide AJV or similar.
|
|
155
154
|
*/
|
|
156
155
|
declare function createEventRegistry(options?: EventRegistryOptions): EventRegistry;
|
|
157
|
-
//#endregion
|
|
158
|
-
//#region src/events/retry.d.ts
|
|
159
156
|
interface RetryOptions {
|
|
160
157
|
/**
|
|
161
158
|
* Max retry attempts (not counting the initial attempt).
|
|
@@ -270,8 +267,6 @@ declare function withRetry<T = unknown>(handler: EventHandler<T>, options?: Retr
|
|
|
270
267
|
declare function createDeadLetterPublisher(events: {
|
|
271
268
|
publish: <T>(type: string, payload: T, meta?: Record<string, unknown>) => Promise<void>;
|
|
272
269
|
}): (event: DomainEvent, errors: Error[]) => Promise<void>;
|
|
273
|
-
//#endregion
|
|
274
|
-
//#region src/events/eventPlugin.d.ts
|
|
275
270
|
interface EventPluginOptions {
|
|
276
271
|
/** Event transport (default: MemoryEventTransport) */
|
|
277
272
|
transport?: EventTransport;
|
|
@@ -443,5 +438,4 @@ declare module "fastify" {
|
|
|
443
438
|
}
|
|
444
439
|
}
|
|
445
440
|
declare const eventPlugin: FastifyPluginAsync<EventPluginOptions>;
|
|
446
|
-
//#endregion
|
|
447
441
|
export { withRetry as a, EventDefinitionOutput as c, EventSchema as d, ValidationResult as f, createDeadLetterPublisher as i, EventRegistry as l, defineEvent as m, eventPlugin as n, CustomValidator as o, createEventRegistry as p, RetryOptions as r, EventDefinitionInput as s, EventPluginOptions as t, EventRegistryOptions as u };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
4
|
-
import { d as createDomainError } from "./errors-
|
|
5
|
-
import { n as requestContext } from "./requestContext-
|
|
6
|
-
import { i as runAdmittedWork, n as isAdmittedWork, r as registerShutdownParticipant } from "./shutdown-
|
|
7
|
-
import { n as MemoryEventTransport, r as createEvent, t as ARC_EVENT_TRANSPORT } from "./EventTransport-
|
|
8
|
-
import { n as preserveSubscriberIdentity } from "./subscriberIdentity-
|
|
1
|
+
/*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-yH2lHMo_.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-C110X5Yz.mjs";
|
|
4
|
+
import { d as createDomainError } from "./errors-DnrUChAy.mjs";
|
|
5
|
+
import { n as requestContext } from "./requestContext-fWb_YaV2.mjs";
|
|
6
|
+
import { i as runAdmittedWork, n as isAdmittedWork, r as registerShutdownParticipant } from "./shutdown-BJiJN7FT.mjs";
|
|
7
|
+
import { n as MemoryEventTransport, r as createEvent, t as ARC_EVENT_TRANSPORT } from "./EventTransport-BHKy4_Bi.mjs";
|
|
8
|
+
import { n as preserveSubscriberIdentity } from "./subscriberIdentity-C9KhIXTF.mjs";
|
|
9
9
|
import { isProductionEnv } from "@classytic/primitives/environment";
|
|
10
10
|
import fp from "fastify-plugin";
|
|
11
11
|
import { NonDurablePublishError } from "@classytic/primitives/durable-events";
|
|
12
|
-
|
|
12
|
+
// src/events/retry.ts
|
|
13
13
|
/**
|
|
14
14
|
* Wrap an event handler with retry logic and dead letter support.
|
|
15
15
|
*
|
|
@@ -119,8 +119,7 @@ function createDeadLetterPublisher(events) {
|
|
|
119
119
|
function sleep(ms) {
|
|
120
120
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
//#region src/events/eventPlugin.ts
|
|
122
|
+
// src/events/eventPlugin.ts
|
|
124
123
|
/**
|
|
125
124
|
* Event Plugin
|
|
126
125
|
*
|
|
@@ -355,5 +354,4 @@ var eventPlugin_default = fp(eventPlugin, {
|
|
|
355
354
|
name: "arc-events",
|
|
356
355
|
fastify: "5.x"
|
|
357
356
|
});
|
|
358
|
-
//#endregion
|
|
359
357
|
export { withRetry as a, createDeadLetterPublisher as i, eventPlugin as n, eventPlugin_exports as r, emitObserved as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { r as createEvent } from "./EventTransport-
|
|
1
|
+
/*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as createEvent } from "./EventTransport-BHKy4_Bi.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { durableEventMeta } from "@classytic/primitives/durable-events";
|
|
5
|
-
|
|
5
|
+
// src/events/defineEvent.ts
|
|
6
6
|
/**
|
|
7
7
|
* Typed event declarations, a registry for introspection, and `.create()` to
|
|
8
8
|
* build a `DomainEvent` with generated metadata.
|
|
@@ -188,8 +188,7 @@ function validatePayload(payload, schema) {
|
|
|
188
188
|
errors
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
|
|
192
|
-
//#region src/events/subscribe-helpers.ts
|
|
191
|
+
// src/events/subscribe-helpers.ts
|
|
193
192
|
/**
|
|
194
193
|
* Subscribe-side helpers — close the symmetry that arc's publish-side
|
|
195
194
|
* already has via [`eventPlugin({ registry, validateMode: 'reject' })`](./eventPlugin.ts).
|
|
@@ -364,8 +363,7 @@ function wrapWithBoundary(handler, options = {}) {
|
|
|
364
363
|
async function subscribeWithBoundary(fastify, pattern, handler, options) {
|
|
365
364
|
return fastify.events.subscribe(pattern, wrapWithBoundary(handler, options));
|
|
366
365
|
}
|
|
367
|
-
|
|
368
|
-
//#region src/events/eventTypes.ts
|
|
366
|
+
// src/events/eventTypes.ts
|
|
369
367
|
/**
|
|
370
368
|
* Event Type Constants and Helpers
|
|
371
369
|
*
|
|
@@ -442,5 +440,4 @@ const CRUD_EVENT_SCHEMA = Object.freeze({
|
|
|
442
440
|
"timestamp"
|
|
443
441
|
]
|
|
444
442
|
});
|
|
445
|
-
//#endregion
|
|
446
443
|
export { crudEventType as a, wrapWithAttribution as c, createEventRegistry as d, defineEvent as f, CRUD_EVENT_SUFFIXES as i, wrapWithBoundary as l, CACHE_EVENTS as n, subscribeWithBoundary as o, CRUD_EVENT_SCHEMA as r, subscribeWithSchema as s, ARC_LIFECYCLE_EVENTS as t, wrapWithSchema as u };
|
package/dist/events/index.d.mts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
import { i as EventLogger, n as DomainEvent, o as MemoryEventTransport, r as EventHandler, s as MemoryEventTransportOptions } from "../EventTransport-
|
|
3
|
-
import { a as withRetry, c as EventDefinitionOutput, d as EventSchema, f as ValidationResult, i as createDeadLetterPublisher, l as EventRegistry, m as defineEvent, n as eventPlugin, o as CustomValidator, p as createEventRegistry, r as RetryOptions, s as EventDefinitionInput, t as EventPluginOptions, u as EventRegistryOptions } from "../eventPlugin-
|
|
4
|
-
import { a as MemoryOutboxStore, c as OutboxRelayErrorHandler, d as DEFAULT_RELAY_LAG_UNHEALTHY_MS, f as OutboxHealth, i as createOutboxModule, l as OutboxRelayErrorKind, m as readOutboxHealth, n as OutboxModuleExports, o as EventOutbox, p as OutboxHealthStore, r as OutboxModuleOptions, s as EventOutboxOptions, t as OutboxDrainResult, u as RelayResult } from "../outbox-module-
|
|
2
|
+
import { i as EventLogger, n as DomainEvent, o as MemoryEventTransport, r as EventHandler, s as MemoryEventTransportOptions } from "../EventTransport-CYEoCJGe.mjs";
|
|
3
|
+
import { a as withRetry, c as EventDefinitionOutput, d as EventSchema, f as ValidationResult, i as createDeadLetterPublisher, l as EventRegistry, m as defineEvent, n as eventPlugin, o as CustomValidator, p as createEventRegistry, r as RetryOptions, s as EventDefinitionInput, t as EventPluginOptions, u as EventRegistryOptions } from "../eventPlugin-BY38F6yK.mjs";
|
|
4
|
+
import { a as MemoryOutboxStore, c as OutboxRelayErrorHandler, d as DEFAULT_RELAY_LAG_UNHEALTHY_MS, f as OutboxHealth, i as createOutboxModule, l as OutboxRelayErrorKind, m as readOutboxHealth, n as OutboxModuleExports, o as EventOutbox, p as OutboxHealthStore, r as OutboxModuleOptions, s as EventOutboxOptions, t as OutboxDrainResult, u as RelayResult } from "../outbox-module-5Mnwcycy.mjs";
|
|
5
5
|
import { RedisEventTransportOptions, RedisLike } from "./transports/redis.mjs";
|
|
6
|
-
import { r as RedisStreamTransportOptions, t as RedisStreamLike } from "../redis-stream-
|
|
7
|
-
import { IdempotencyClaimStore } from "@classytic/repo-core/idempotency";
|
|
6
|
+
import { r as RedisStreamTransportOptions, t as RedisStreamLike } from "../redis-stream-CS1N9dwM.mjs";
|
|
8
7
|
import { OutboxStore } from "@classytic/primitives/outbox";
|
|
8
|
+
import { IdempotencyClaimStore } from "@classytic/repo-core/idempotency";
|
|
9
9
|
import { RepositoryLike } from "@classytic/repo-core/adapter";
|
|
10
|
-
//#region src/events/eventTypes.d.ts
|
|
11
10
|
/**
|
|
12
11
|
* Event Type Constants and Helpers
|
|
13
12
|
*
|
|
@@ -57,8 +56,6 @@ export declare const CACHE_EVENTS: Readonly<{
|
|
|
57
56
|
}>;
|
|
58
57
|
/** Type for cache event names */
|
|
59
58
|
type CacheEvent = (typeof CACHE_EVENTS)[keyof typeof CACHE_EVENTS];
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region src/events/inbox.d.ts
|
|
62
59
|
interface InboxOptions {
|
|
63
60
|
/** The claims store — ONE per deployment, shared with command idempotency. */
|
|
64
61
|
readonly store: IdempotencyClaimStore;
|
|
@@ -77,8 +74,6 @@ type InboxHandler<T> = (event: DomainEvent<T>, context: InboxHandlerContext) =>
|
|
|
77
74
|
/** The claim operation every inbox row is filed under. */
|
|
78
75
|
export declare const EVENT_INBOX_OPERATION = "event-inbox";
|
|
79
76
|
export declare function withInbox<T = unknown>(name: string, handler: InboxHandler<T>, options: InboxOptions): EventHandler<T>;
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region src/events/outbox/backoff.d.ts
|
|
82
77
|
/**
|
|
83
78
|
* Exponential backoff for outbox failure policies — pure date math shared
|
|
84
79
|
* by `failurePolicy({ attempts })` style handlers.
|
|
@@ -135,8 +130,6 @@ interface ExponentialBackoffOptions {
|
|
|
135
130
|
* ```
|
|
136
131
|
*/
|
|
137
132
|
export declare function exponentialBackoff(options: ExponentialBackoffOptions): Date;
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region src/events/repository-outbox-adapter.d.ts
|
|
140
133
|
interface RepositoryOutboxStoreOptions {
|
|
141
134
|
/**
|
|
142
135
|
* Column holding the "not claimable before" timestamp. Default
|
|
@@ -165,8 +158,6 @@ interface RepositoryOutboxStoreOptions {
|
|
|
165
158
|
*/
|
|
166
159
|
type RepositoryOutboxStore = OutboxStore & Required<Pick<OutboxStore, "fail" | "getDeadLettered" | "purge" | "requeue" | "countByStatus" | "oldestPendingAgeMs">>;
|
|
167
160
|
export declare function repositoryAsOutboxStore(repository: RepositoryLike, options?: RepositoryOutboxStoreOptions): RepositoryOutboxStore;
|
|
168
|
-
//#endregion
|
|
169
|
-
//#region src/events/subscribe-helpers.d.ts
|
|
170
161
|
/**
|
|
171
162
|
* Extract the payload type from an `EventDefinitionOutput<T>`.
|
|
172
163
|
*
|
|
@@ -324,9 +315,6 @@ interface FastifyEventBus {
|
|
|
324
315
|
subscribe: (pattern: string, handler: EventHandler) => Promise<() => void>;
|
|
325
316
|
};
|
|
326
317
|
}
|
|
327
|
-
//#endregion
|
|
328
|
-
//#region src/events/subscriberIdentity.d.ts
|
|
329
318
|
/** Assign a deployment-stable identity for durable per-handler progress; never use an index. */
|
|
330
319
|
export declare function withSubscriberId<T>(id: string, handler: EventHandler<T>): EventHandler<T>;
|
|
331
|
-
//#endregion
|
|
332
320
|
export { type ArcLifecycleEvent, type CacheEvent, type CrudEventSuffix, type CustomValidator, DEFAULT_RELAY_LAG_UNHEALTHY_MS, type EventDefinitionInput, type EventDefinitionOutput, EventOutbox, type EventOutboxOptions, type EventPluginOptions, type EventRegistry, type EventRegistryOptions, type EventSchema, type ExponentialBackoffOptions, type FastifyEventBus, type InboxHandler, type InboxHandlerContext, type InboxOptions, MemoryEventTransport, type MemoryEventTransportOptions, MemoryOutboxStore, type OutboxDrainResult, type OutboxHealth, type OutboxHealthStore, type OutboxModuleExports, type OutboxModuleOptions, type OutboxRelayErrorHandler, type OutboxRelayErrorKind, type PayloadOf, type RedisEventTransportOptions, type RedisLike, type RedisStreamLike, type RedisStreamTransportOptions, type RelayResult, type RepositoryOutboxStore, type RepositoryOutboxStoreOptions, type RetryOptions, type ValidationResult, type WrapWithBoundaryOptions, type WrapWithSchemaOptions, createDeadLetterPublisher, createEventRegistry, createOutboxModule, defineEvent, eventPlugin, readOutboxHealth, withRetry };
|
package/dist/events/index.mjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as MemoryEventTransport } from "../EventTransport-
|
|
3
|
-
import { a as crudEventType, d as createEventRegistry, f as defineEvent, i as CRUD_EVENT_SUFFIXES, l as wrapWithBoundary, n as CACHE_EVENTS, o as subscribeWithBoundary, s as subscribeWithSchema, t as ARC_LIFECYCLE_EVENTS, u as wrapWithSchema } from "../eventTypes-
|
|
4
|
-
import { r as withSubscriberId } from "../subscriberIdentity-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
/*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as MemoryEventTransport } from "../EventTransport-BHKy4_Bi.mjs";
|
|
3
|
+
import { a as crudEventType, d as createEventRegistry, f as defineEvent, i as CRUD_EVENT_SUFFIXES, l as wrapWithBoundary, n as CACHE_EVENTS, o as subscribeWithBoundary, s as subscribeWithSchema, t as ARC_LIFECYCLE_EVENTS, u as wrapWithSchema } from "../eventTypes-CCIRGakw.mjs";
|
|
4
|
+
import { r as withSubscriberId } from "../subscriberIdentity-C9KhIXTF.mjs";
|
|
5
|
+
import { n as repositoryAsOutboxStore, r as exponentialBackoff, t as EventOutbox } from "../relay-BNrC1CEP.mjs";
|
|
6
|
+
import { a as withRetry, i as createDeadLetterPublisher, n as eventPlugin } from "../eventPlugin-BhKLUe7H.mjs";
|
|
7
|
+
import { r as readOutboxHealth, t as DEFAULT_RELAY_LAG_UNHEALTHY_MS } from "../health-CRJg3IIq.mjs";
|
|
8
|
+
import { t as createOutboxModule } from "../outbox-module-DyITEIop.mjs";
|
|
8
9
|
import { fingerprintRequest, runIdempotent } from "@classytic/repo-core/idempotency";
|
|
9
10
|
import { MemoryOutboxStore } from "@classytic/primitives/memory-outbox";
|
|
10
|
-
|
|
11
|
+
// src/events/inbox.ts
|
|
11
12
|
/**
|
|
12
13
|
* Per-handler completion deduplication. Without a shared transaction, a crash between an
|
|
13
14
|
* effect and completion can repeat the effect: handlers must dedupe effects by event id.
|
|
@@ -50,5 +51,4 @@ function withInbox(name, handler, options) {
|
|
|
50
51
|
else await execute();
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
|
-
//#endregion
|
|
54
54
|
export { ARC_LIFECYCLE_EVENTS, CACHE_EVENTS, CRUD_EVENT_SUFFIXES, DEFAULT_RELAY_LAG_UNHEALTHY_MS, EVENT_INBOX_OPERATION, EventOutbox, MemoryEventTransport, MemoryOutboxStore, createDeadLetterPublisher, createEventRegistry, createOutboxModule, crudEventType, defineEvent, eventPlugin, exponentialBackoff, readOutboxHealth, repositoryAsOutboxStore, subscribeWithBoundary, subscribeWithSchema, withInbox, withRetry, withSubscriberId, wrapWithBoundary, wrapWithSchema };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import { n as RedisStreamTransport, r as RedisStreamTransportOptions, t as RedisStreamLike } from "../../redis-stream-
|
|
2
|
+
import { n as RedisStreamTransport, r as RedisStreamTransportOptions, t as RedisStreamLike } from "../../redis-stream-CS1N9dwM.mjs";
|
|
3
3
|
export { type RedisStreamLike, RedisStreamTransport, type RedisStreamTransportOptions };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as evictToSize } from "../../boundedMap-
|
|
3
|
-
import { r as workSeedFromEvent, t as runWorkScope } from "../../workScope-
|
|
4
|
-
import { t as getSubscriberId } from "../../subscriberIdentity-
|
|
1
|
+
/*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as evictToSize } from "../../boundedMap-CtdzpJ3X.mjs";
|
|
3
|
+
import { r as workSeedFromEvent, t as runWorkScope } from "../../workScope-CmCBUmPR.mjs";
|
|
4
|
+
import { t as getSubscriberId } from "../../subscriberIdentity-C9KhIXTF.mjs";
|
|
5
5
|
import sjson from "secure-json-parse";
|
|
6
6
|
import { createEventRouter } from "@classytic/primitives/events";
|
|
7
|
-
|
|
7
|
+
// src/events/transports/redis-stream.ts
|
|
8
8
|
/**
|
|
9
9
|
* Redis Stream Event Transport — durable, at-least-once delivery via
|
|
10
10
|
* `XADD`/`XREADGROUP` consumer groups (one consumer per group gets each event).
|
|
@@ -459,5 +459,4 @@ function parseStreamFields(fields) {
|
|
|
459
459
|
return null;
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
//#endregion
|
|
463
462
|
export { RedisStreamTransport };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as EventTransport, i as EventLogger, n as DomainEvent, r as EventHandler } from "../../EventTransport-
|
|
3
|
-
//#region src/events/transports/redis.d.ts
|
|
2
|
+
import { a as EventTransport, i as EventLogger, n as DomainEvent, r as EventHandler } from "../../EventTransport-CYEoCJGe.mjs";
|
|
4
3
|
export interface RedisLike {
|
|
5
4
|
publish(channel: string, message: string): Promise<number>;
|
|
6
5
|
subscribe(...channels: string[]): Promise<unknown>;
|
|
@@ -71,5 +70,4 @@ export declare class RedisEventTransport implements EventTransport {
|
|
|
71
70
|
* Returns true if the pattern contains glob characters.
|
|
72
71
|
*/
|
|
73
72
|
private isGlob;
|
|
74
|
-
}
|
|
75
|
-
//#endregion
|
|
73
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { r as workSeedFromEvent, t as runWorkScope } from "../../workScope-
|
|
1
|
+
/*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as workSeedFromEvent, t as runWorkScope } from "../../workScope-CmCBUmPR.mjs";
|
|
3
3
|
import sjson from "secure-json-parse";
|
|
4
|
-
|
|
4
|
+
// src/events/transports/redis.ts
|
|
5
5
|
/**
|
|
6
6
|
* Redis Event Transport
|
|
7
7
|
*
|
|
@@ -139,5 +139,4 @@ var RedisEventTransport = class {
|
|
|
139
139
|
return pattern.includes("*") || pattern.includes("?") || pattern.includes("[");
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
|
-
//#endregion
|
|
143
142
|
export { RedisEventTransport };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
//#region src/docs/externalPaths.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* External OpenAPI Path Provider
|
|
5
4
|
*
|
|
@@ -47,5 +46,4 @@ interface ExternalOpenApiPaths {
|
|
|
47
46
|
*/
|
|
48
47
|
resourceSecurity?: Array<Record<string, string[]>>;
|
|
49
48
|
}
|
|
50
|
-
//#endregion
|
|
51
49
|
export { ExternalOpenApiPaths as t };
|
package/dist/factory/index.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
import { _ as ResourceLike, a as ArcPortRegistry, c as LazyBridge, d as ModulePorts, f as ModuleRequirements, g as LoadResourcesOptions, h as ModuleSetupContext, i as ArcModuleRegistry, l as ModuleContribution, m as ModuleDisposer, n as ArcModule, o as ArcPorts, p as PortName, r as ArcModuleInput, s as EventHandlerDefinition, t as ArcCompositionConfig, u as ModuleName, v as ResourceModule,
|
|
3
|
-
import { $ as verifyModuleGraph, A as AsyncApiCatalogEntry, B as ModuleGraphMode, C as planModules, D as ModuleExtension, E as subscribeModuleEventHandlers, F as DurabilityFacts, G as activateBridges, H as ModuleGraphOptions, I as HandlerDurabilityFact, J as crudEventsOf, K as analyzeModuleGraph, L as ModuleGraph, M as toAsyncApi, N as CrudSurface, O as extendModule, P as DerivedPublishes, Q as verifyEventDurability, R as ModuleGraphAnalysis, S as compositionProblems, T as orderModules, U as ModuleKind, V as ModuleGraphNode, W as SkippedBridge, X as eventTopology, Y as dependentsOf, Z as renderModuleGraph, _ as ClosureNode, a as lazyModuleExports, b as PlanModulesOptions, c as getModuleResources, d as resolveContribution, f as resolveModule, g as withRelayNudge, h as createRelayNudge, i as hasModuleExports, j as AsyncApiInfo, k as collectModuleWorkflows, l as getModuleState, m as RelayOption, n as getModuleExports, o as lazyRequiredModuleExports, p as RelayNudge, q as buildModuleGraph, r as getOptionalModuleExports, s as ModuleState, t as defineModule, u as hasModule, v as CompositionProblem, w as resolveModuleClosure, x as assertComposable, y as ModulePlan, z as ModuleGraphIssue } from "../index-
|
|
4
|
-
import { a as ResolvedModuleDescriptor, o as ResolvedModuleLifecycle, s as ResolvedResourceDescriptor } from "../fastify-augmentation-
|
|
5
|
-
import { a as UnderPressureOptions, c as CustomAuthenticatorOption, i as RawBodyOptions, l as CustomPluginAuthOption, n as CreateAppOptions, o as AuthOption, r as MultipartOptions, s as BetterAuthOption, t as BootDisposer, u as JwtAuthOption } from "../index-
|
|
2
|
+
import { F as HealthCheck, _ as ResourceLike, a as ArcPortRegistry, c as LazyBridge, d as ModulePorts, f as ModuleRequirements, g as LoadResourcesOptions, h as ModuleSetupContext, i as ArcModuleRegistry, l as ModuleContribution, m as ModuleDisposer, n as ArcModule, o as ArcPorts, p as PortName, r as ArcModuleInput, s as EventHandlerDefinition, t as ArcCompositionConfig, u as ModuleName, v as ResourceModule, y as loadResources } from "../types-BeEJm-DV.mjs";
|
|
3
|
+
import { $ as verifyModuleGraph, A as AsyncApiCatalogEntry, B as ModuleGraphMode, C as planModules, D as ModuleExtension, E as subscribeModuleEventHandlers, F as DurabilityFacts, G as activateBridges, H as ModuleGraphOptions, I as HandlerDurabilityFact, J as crudEventsOf, K as analyzeModuleGraph, L as ModuleGraph, M as toAsyncApi, N as CrudSurface, O as extendModule, P as DerivedPublishes, Q as verifyEventDurability, R as ModuleGraphAnalysis, S as compositionProblems, T as orderModules, U as ModuleKind, V as ModuleGraphNode, W as SkippedBridge, X as eventTopology, Y as dependentsOf, Z as renderModuleGraph, _ as ClosureNode, a as lazyModuleExports, b as PlanModulesOptions, c as getModuleResources, d as resolveContribution, f as resolveModule, g as withRelayNudge, h as createRelayNudge, i as hasModuleExports, j as AsyncApiInfo, k as collectModuleWorkflows, l as getModuleState, m as RelayOption, n as getModuleExports, o as lazyRequiredModuleExports, p as RelayNudge, q as buildModuleGraph, r as getOptionalModuleExports, s as ModuleState, t as defineModule, u as hasModule, v as CompositionProblem, w as resolveModuleClosure, x as assertComposable, y as ModulePlan, z as ModuleGraphIssue } from "../index-DFCCQ9AE.mjs";
|
|
4
|
+
import { a as ResolvedModuleDescriptor, o as ResolvedModuleLifecycle, s as ResolvedResourceDescriptor } from "../fastify-augmentation-bzkWPt1f.mjs";
|
|
5
|
+
import { a as UnderPressureOptions, c as CustomAuthenticatorOption, i as RawBodyOptions, l as CustomPluginAuthOption, n as CreateAppOptions, o as AuthOption, r as MultipartOptions, s as BetterAuthOption, t as BootDisposer, u as JwtAuthOption } from "../index-D1X_C_qz.mjs";
|
|
6
6
|
import { FastifyInstance, FastifyServerOptions } from "fastify";
|
|
7
|
-
//#region src/factory/createApp.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* Default pino redact paths (auth/cookie/API-key headers, nested
|
|
10
9
|
* password/token/secret fields), applied only when the host supplies no
|
|
@@ -43,8 +42,6 @@ export declare const ArcFactory: {
|
|
|
43
42
|
development(options: Omit<CreateAppOptions, "preset">): Promise<FastifyInstance>;
|
|
44
43
|
testing(options: Omit<CreateAppOptions, "preset">): Promise<FastifyInstance>;
|
|
45
44
|
};
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/factory/createWorker.d.ts
|
|
48
45
|
interface WorkerHealthOptions {
|
|
49
46
|
/** Port for the worker's ONLY listener (liveness/readiness probes). */
|
|
50
47
|
port: number;
|
|
@@ -66,8 +63,6 @@ interface ArcWorker {
|
|
|
66
63
|
close(): Promise<void>;
|
|
67
64
|
}
|
|
68
65
|
export declare function createWorker(options: CreateAppOptions, workerOptions?: CreateWorkerOptions): Promise<ArcWorker>;
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/factory/edge.d.ts
|
|
71
66
|
interface FetchHandlerOptions {
|
|
72
67
|
/**
|
|
73
68
|
* Whether to call `app.ready()` on the first request.
|
|
@@ -102,8 +97,6 @@ interface FetchHandlerOptions {
|
|
|
102
97
|
* content-type parser decides how to decode, same as a real socket.
|
|
103
98
|
*/
|
|
104
99
|
export declare function toFetchHandler(app: FastifyInstance, options?: FetchHandlerOptions): (request: Request) => Promise<Response>;
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region src/factory/preloadResources.d.ts
|
|
107
100
|
/** Eager glob result: `{ '/path/to/file.ts': resourceModule }` */
|
|
108
101
|
type EagerGlobResult = Record<string, unknown>;
|
|
109
102
|
/** Lazy glob result: `{ '/path/to/file.ts': () => Promise<unknown> }` */
|
|
@@ -125,8 +118,6 @@ export declare function preloadResources(globResult: EagerGlobResult): ResourceL
|
|
|
125
118
|
* cannot be evaluated at import time of the preload file.
|
|
126
119
|
*/
|
|
127
120
|
export declare function preloadResourcesAsync(globResult: LazyGlobResult): Promise<ResourceLike[]>;
|
|
128
|
-
//#endregion
|
|
129
|
-
//#region src/factory/presets.d.ts
|
|
130
121
|
/**
|
|
131
122
|
* Production preset - strict security, performance optimized
|
|
132
123
|
*/
|
|
@@ -166,5 +157,4 @@ export declare const testingPreset: Partial<CreateAppOptions>;
|
|
|
166
157
|
*/
|
|
167
158
|
export declare const edgePreset: Partial<CreateAppOptions>;
|
|
168
159
|
export declare function getPreset(name: "production" | "development" | "testing" | "edge" | "worker"): Partial<CreateAppOptions>;
|
|
169
|
-
//#endregion
|
|
170
160
|
export { type ArcCompositionConfig, type ArcModule, type ArcModuleInput, type ArcModuleRegistry, type ArcPortRegistry, type ArcPorts, type ArcWorker, type AsyncApiCatalogEntry, type AsyncApiInfo, type AuthOption, type BetterAuthOption, type BootDisposer, type ClosureNode, type CompositionProblem, type CreateAppOptions, type CreateWorkerOptions, type CrudSurface, type CustomAuthenticatorOption, type CustomPluginAuthOption, type DerivedPublishes, type DurabilityFacts, type EagerGlobResult, type EventHandlerDefinition, type FetchHandlerOptions, type HandlerDurabilityFact, type JwtAuthOption, type LazyBridge, type LazyGlobResult, type LoadResourcesOptions, type ModuleContribution, type ModuleDisposer, type ModuleExtension, type ModuleGraph, type ModuleGraphAnalysis, type ModuleGraphIssue, type ModuleGraphMode, type ModuleGraphNode, type ModuleGraphOptions, type ModuleKind, type ModuleName, type ModulePlan, type ModulePorts, type ModuleRequirements, type ModuleSetupContext, type ModuleState, type MultipartOptions, type PlanModulesOptions, type PortName, type RawBodyOptions, type RelayNudge, type RelayOption, type ResolvedModuleDescriptor, type ResolvedModuleLifecycle, type ResolvedResourceDescriptor, type ResourceLike, type ResourceModule, type SkippedBridge, type UnderPressureOptions, type WorkerHealthOptions, activateBridges, analyzeModuleGraph, assertComposable, buildModuleGraph, collectModuleWorkflows, compositionProblems, createRelayNudge, crudEventsOf, defineModule, dependentsOf, eventTopology, extendModule, getModuleExports, getModuleResources, getModuleState, getOptionalModuleExports, hasModule, hasModuleExports, lazyModuleExports, lazyRequiredModuleExports, loadResources, orderModules, planModules, renderModuleGraph, resolveContribution, resolveModule, resolveModuleClosure, subscribeModuleEventHandlers, toAsyncApi, verifyEventDurability, verifyModuleGraph, withRelayNudge };
|