@graphrefly/ts 0.0.0 → 0.0.2
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 +135 -0
- package/dist/actions-types-CSC3NMDl.d.ts +657 -0
- package/dist/actions-types-wl9Mgkmr.d.cts +657 -0
- package/dist/adapters/index.cjs +5219 -2974
- package/dist/adapters/index.cjs.map +1 -1
- package/dist/adapters/index.d.cts +204 -192
- package/dist/adapters/index.d.ts +204 -192
- package/dist/adapters/index.js +3685 -1833
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/nestjs/microservices.cjs +841 -0
- package/dist/adapters/nestjs/microservices.cjs.map +1 -0
- package/dist/adapters/nestjs/microservices.d.cts +45 -0
- package/dist/adapters/nestjs/microservices.d.ts +45 -0
- package/dist/adapters/nestjs/microservices.js +206 -0
- package/dist/adapters/nestjs/microservices.js.map +1 -0
- package/dist/adapters/nestjs/native.cjs +1391 -0
- package/dist/adapters/nestjs/native.cjs.map +1 -0
- package/dist/adapters/nestjs/native.d.cts +111 -0
- package/dist/adapters/nestjs/native.d.ts +111 -0
- package/dist/adapters/nestjs/native.js +577 -0
- package/dist/adapters/nestjs/native.js.map +1 -0
- package/dist/adapters/nestjs/websockets.cjs +924 -0
- package/dist/adapters/nestjs/websockets.cjs.map +1 -0
- package/dist/adapters/nestjs/websockets.d.cts +47 -0
- package/dist/adapters/nestjs/websockets.d.ts +47 -0
- package/dist/adapters/nestjs/websockets.js +286 -0
- package/dist/adapters/nestjs/websockets.js.map +1 -0
- package/dist/adapters/nestjs.cjs +1085 -0
- package/dist/adapters/nestjs.cjs.map +1 -0
- package/dist/adapters/nestjs.d.cts +385 -0
- package/dist/adapters/nestjs.d.ts +385 -0
- package/dist/adapters/nestjs.js +112 -0
- package/dist/adapters/nestjs.js.map +1 -0
- package/dist/adapters/observe-storage.d.cts +4 -4
- package/dist/adapters/observe-storage.d.ts +4 -4
- package/dist/adapters/observe-storage.js +5 -4
- package/dist/adapters/observe-storage.js.map +1 -1
- package/dist/adapters/react.cjs +166 -0
- package/dist/adapters/react.cjs.map +1 -0
- package/dist/adapters/react.d.cts +31 -0
- package/dist/adapters/react.d.ts +31 -0
- package/dist/adapters/react.js +51 -0
- package/dist/adapters/react.js.map +1 -0
- package/dist/adapters/solid.cjs +157 -0
- package/dist/adapters/solid.cjs.map +1 -0
- package/dist/adapters/solid.d.cts +26 -0
- package/dist/adapters/solid.d.ts +26 -0
- package/dist/adapters/solid.js +48 -0
- package/dist/adapters/solid.js.map +1 -0
- package/dist/adapters/svelte.cjs +148 -0
- package/dist/adapters/svelte.cjs.map +1 -0
- package/dist/adapters/svelte.d.cts +31 -0
- package/dist/adapters/svelte.d.ts +31 -0
- package/dist/adapters/svelte.js +46 -0
- package/dist/adapters/svelte.js.map +1 -0
- package/dist/adapters/vue.cjs +155 -0
- package/dist/adapters/vue.cjs.map +1 -0
- package/dist/adapters/vue.d.cts +26 -0
- package/dist/adapters/vue.d.ts +26 -0
- package/dist/adapters/vue.js +46 -0
- package/dist/adapters/vue.js.map +1 -0
- package/dist/agent-runtime-types-core-CaXfKNtY.d.cts +406 -0
- package/dist/agent-runtime-types-core-hU299uIC.d.ts +406 -0
- package/dist/agent-runtime-types-tool-BEpSINol.d.ts +695 -0
- package/dist/agent-runtime-types-tool-DninPEzk.d.cts +695 -0
- package/dist/agentic-memory-retention-BmGX368S.d.ts +14 -0
- package/dist/agentic-memory-retention-Ih1qhX9Z.d.cts +14 -0
- package/dist/agentic-memory-types-CVSUS6XR.d.ts +473 -0
- package/dist/agentic-memory-types-FnnYlVUs.d.cts +473 -0
- package/dist/capability-admission-BW2CziT6.d.ts +102 -0
- package/dist/capability-admission-lwSecxXs.d.cts +102 -0
- package/dist/chunk-2KUAG2GZ.js +9693 -0
- package/dist/chunk-2KUAG2GZ.js.map +1 -0
- package/dist/chunk-2NJP6GO4.js +1320 -0
- package/dist/chunk-2NJP6GO4.js.map +1 -0
- package/dist/{chunk-GDL26N2T.js → chunk-3KN7NJDR.js} +2 -2
- package/dist/{chunk-COHO25CZ.js → chunk-4NWSNI4K.js} +2232 -1672
- package/dist/chunk-4NWSNI4K.js.map +1 -0
- package/dist/{chunk-Z2ANQ6JW.js → chunk-4Q77MMJY.js} +2 -2
- package/dist/chunk-6E76H4OU.js +132 -0
- package/dist/chunk-6E76H4OU.js.map +1 -0
- package/dist/chunk-7GOTIIQ7.js +819 -0
- package/dist/chunk-7GOTIIQ7.js.map +1 -0
- package/dist/{chunk-D6BG7U6A.js → chunk-7HZRJMN6.js} +3 -3
- package/dist/{chunk-SCRFRCGR.js → chunk-BSQGE5PS.js} +1 -1
- package/dist/{chunk-PKVBHGBM.js → chunk-CJIFGJQG.js} +7 -7
- package/dist/{chunk-G4M3NHRJ.js → chunk-CX6B6PO2.js} +93 -10
- package/dist/chunk-CX6B6PO2.js.map +1 -0
- package/dist/chunk-DGUM43GV.js +11 -0
- package/dist/chunk-DGUM43GV.js.map +1 -0
- package/dist/{chunk-JIMUDQN3.js → chunk-E4QCH32M.js} +449 -447
- package/dist/chunk-E4QCH32M.js.map +1 -0
- package/dist/{chunk-RIIOUTGM.js → chunk-ECURQ3HD.js} +19 -129
- package/dist/chunk-ECURQ3HD.js.map +1 -0
- package/dist/{chunk-2ILL7HQI.js → chunk-EOKT4QFF.js} +134 -128
- package/dist/chunk-EOKT4QFF.js.map +1 -0
- package/dist/{chunk-K3FXTC3I.js → chunk-HJACH5PU.js} +3 -3
- package/dist/{chunk-GTPCOEOZ.js → chunk-IDMLXLLG.js} +3 -3
- package/dist/{chunk-DKP56CSW.js → chunk-JKAYLDQV.js} +2 -2
- package/dist/{chunk-4VLAQHZI.js → chunk-K7FB3JTD.js} +17 -1
- package/dist/chunk-K7FB3JTD.js.map +1 -0
- package/dist/chunk-L6LDXRWE.js +219 -0
- package/dist/chunk-L6LDXRWE.js.map +1 -0
- package/dist/chunk-M7J6Z4IJ.js +1930 -0
- package/dist/chunk-M7J6Z4IJ.js.map +1 -0
- package/dist/chunk-MQEQMS7B.js +1009 -0
- package/dist/chunk-MQEQMS7B.js.map +1 -0
- package/dist/chunk-MTELVIYR.js +1421 -0
- package/dist/chunk-MTELVIYR.js.map +1 -0
- package/dist/chunk-PVC7WDKI.js +885 -0
- package/dist/chunk-PVC7WDKI.js.map +1 -0
- package/dist/chunk-RAHNUYA5.js +368 -0
- package/dist/chunk-RAHNUYA5.js.map +1 -0
- package/dist/{chunk-DK554R7P.js → chunk-S6HXABGL.js} +2 -1
- package/dist/chunk-S6HXABGL.js.map +1 -0
- package/dist/{chunk-I3IHOHCJ.js → chunk-SHZDP2MQ.js} +1181 -1001
- package/dist/chunk-SHZDP2MQ.js.map +1 -0
- package/dist/{chunk-Y3ZLRGHC.js → chunk-SIDJO2T4.js} +16 -16
- package/dist/chunk-STXRMPW4.js +4131 -0
- package/dist/chunk-STXRMPW4.js.map +1 -0
- package/dist/{chunk-JR4IKCR2.js → chunk-TPND5MJS.js} +5 -5
- package/dist/chunk-TQPCAIQI.js +612 -0
- package/dist/chunk-TQPCAIQI.js.map +1 -0
- package/dist/chunk-UT3MHJCW.js +49 -0
- package/dist/chunk-UT3MHJCW.js.map +1 -0
- package/dist/{chunk-TEW47IVR.js → chunk-VPEFSDME.js} +2 -2
- package/dist/{chunk-SWTLEQL6.js → chunk-WQIA3GFB.js} +2 -2
- package/dist/chunk-WQIA3GFB.js.map +1 -0
- package/dist/{chunk-DJC4CHLQ.js → chunk-YDWBXXQZ.js} +5 -5
- package/dist/{chunk-6PHB5CJS.js → chunk-ZLFRB6FI.js} +2 -2
- package/dist/composition/index.cjs +1256 -1059
- package/dist/composition/index.cjs.map +1 -1
- package/dist/composition/index.d.cts +4 -4
- package/dist/composition/index.d.ts +4 -4
- package/dist/composition/index.js +7 -6
- package/dist/core/index.cjs +1218 -1021
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +5 -4
- package/dist/cqrs/index.cjs.map +1 -1
- package/dist/cqrs/index.d.cts +4 -4
- package/dist/cqrs/index.d.ts +4 -4
- package/dist/cqrs/index.js +3 -2
- package/dist/cqrs/index.js.map +1 -1
- package/dist/cqrs/messaging.cjs +312 -0
- package/dist/cqrs/messaging.cjs.map +1 -0
- package/dist/cqrs/messaging.d.cts +57 -0
- package/dist/cqrs/messaging.d.ts +57 -0
- package/dist/cqrs/messaging.js +274 -0
- package/dist/cqrs/messaging.js.map +1 -0
- package/dist/cqrs/work-queue.cjs +329 -0
- package/dist/cqrs/work-queue.cjs.map +1 -0
- package/dist/cqrs/work-queue.d.cts +90 -0
- package/dist/cqrs/work-queue.d.ts +90 -0
- package/dist/cqrs/work-queue.js +292 -0
- package/dist/cqrs/work-queue.js.map +1 -0
- package/dist/data/index.cjs +19 -0
- package/dist/data/index.cjs.map +1 -0
- package/dist/data/index.d.cts +36 -0
- package/dist/data/index.d.ts +36 -0
- package/dist/data/index.js +1 -0
- package/dist/data/index.js.map +1 -0
- package/dist/data-structures/index.cjs +1252 -1052
- package/dist/data-structures/index.cjs.map +1 -1
- package/dist/data-structures/index.d.cts +9 -8
- package/dist/data-structures/index.d.ts +9 -8
- package/dist/data-structures/index.js +9 -7
- package/dist/{describe-BZb7AS2y.d.ts → describe-B_A5fbXH.d.ts} +1 -1
- package/dist/{describe-Ciu8SUnN.d.cts → describe-CQRrkv-Q.d.cts} +1 -1
- package/dist/executors/tool-provider-adapters.cjs +3091 -0
- package/dist/executors/tool-provider-adapters.cjs.map +1 -0
- package/dist/executors/tool-provider-adapters.d.cts +174 -0
- package/dist/executors/tool-provider-adapters.d.ts +174 -0
- package/dist/executors/tool-provider-adapters.js +1336 -0
- package/dist/executors/tool-provider-adapters.js.map +1 -0
- package/dist/executors/tool-provider-runtime.cjs +5178 -0
- package/dist/executors/tool-provider-runtime.cjs.map +1 -0
- package/dist/executors/tool-provider-runtime.d.cts +17 -0
- package/dist/executors/tool-provider-runtime.d.ts +17 -0
- package/dist/executors/tool-provider-runtime.js +15 -0
- package/dist/executors/tool-provider-runtime.js.map +1 -0
- package/dist/executors/tool-provider.cjs +6392 -0
- package/dist/executors/tool-provider.cjs.map +1 -0
- package/dist/executors/tool-provider.d.cts +60 -0
- package/dist/executors/tool-provider.d.ts +60 -0
- package/dist/executors/tool-provider.js +89 -0
- package/dist/executors/tool-provider.js.map +1 -0
- package/dist/executors/work-queue.cjs +342 -0
- package/dist/executors/work-queue.cjs.map +1 -0
- package/dist/executors/work-queue.d.cts +90 -0
- package/dist/executors/work-queue.d.ts +90 -0
- package/dist/executors/work-queue.js +306 -0
- package/dist/executors/work-queue.js.map +1 -0
- package/dist/graph/index.cjs +1536 -1324
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +10 -9
- package/dist/graph/index.d.ts +10 -9
- package/dist/graph/index.js +22 -20
- package/dist/{graph-s23RbbFO.d.cts → graph-CWK3HLPB.d.cts} +134 -132
- package/dist/{graph-DfdF9zy4.d.ts → graph-ho5sotHP.d.ts} +134 -132
- package/dist/{index-SnzZu3x7.d.ts → index-CQWcE0Dw.d.ts} +18 -4
- package/dist/{index-CAEmLCYF.d.cts → index-DHA1i67c.d.cts} +18 -4
- package/dist/index.cjs +3331 -3020
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -10
- package/dist/index.d.ts +14 -10
- package/dist/index.js +114 -108
- package/dist/inspection/boundary.cjs +98 -0
- package/dist/inspection/boundary.cjs.map +1 -0
- package/dist/inspection/boundary.d.cts +61 -0
- package/dist/inspection/boundary.d.ts +61 -0
- package/dist/inspection/boundary.js +75 -0
- package/dist/inspection/boundary.js.map +1 -0
- package/dist/measurements-C0mAvWU1.d.cts +164 -0
- package/dist/measurements-OMpCeBwh.d.ts +164 -0
- package/dist/{messages-BZqrGGm1.d.ts → messages-CAzUPPJM.d.cts} +10 -5
- package/dist/{messages-BZqrGGm1.d.cts → messages-CAzUPPJM.d.ts} +10 -5
- package/dist/messaging/index.cjs +756 -619
- package/dist/messaging/index.cjs.map +1 -1
- package/dist/messaging/index.d.cts +17 -226
- package/dist/messaging/index.d.ts +17 -226
- package/dist/messaging/index.js +19 -749
- package/dist/messaging/index.js.map +1 -1
- package/dist/operators/index.cjs +1256 -1059
- package/dist/operators/index.cjs.map +1 -1
- package/dist/operators/index.d.cts +6 -6
- package/dist/operators/index.d.ts +6 -6
- package/dist/operators/index.js +9 -8
- package/dist/orchestration/index.cjs +8664 -2617
- package/dist/orchestration/index.cjs.map +1 -1
- package/dist/orchestration/index.d.cts +171 -221
- package/dist/orchestration/index.d.ts +171 -221
- package/dist/orchestration/index.js +74 -982
- package/dist/orchestration/index.js.map +1 -1
- package/dist/orchestration/messaging.cjs +314 -0
- package/dist/orchestration/messaging.cjs.map +1 -0
- package/dist/orchestration/messaging.d.cts +56 -0
- package/dist/orchestration/messaging.d.ts +56 -0
- package/dist/orchestration/messaging.js +276 -0
- package/dist/orchestration/messaging.js.map +1 -0
- package/dist/orchestration/work-queue.cjs +1500 -0
- package/dist/orchestration/work-queue.cjs.map +1 -0
- package/dist/orchestration/work-queue.d.cts +196 -0
- package/dist/orchestration/work-queue.d.ts +196 -0
- package/dist/orchestration/work-queue.js +1289 -0
- package/dist/orchestration/work-queue.js.map +1 -0
- package/dist/patterns/event-flow.cjs +433 -0
- package/dist/patterns/event-flow.cjs.map +1 -0
- package/dist/patterns/event-flow.d.cts +115 -0
- package/dist/patterns/event-flow.d.ts +115 -0
- package/dist/patterns/event-flow.js +14 -0
- package/dist/patterns/event-flow.js.map +1 -0
- package/dist/patterns/index.cjs +748 -355
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +9 -5
- package/dist/patterns/index.d.ts +9 -5
- package/dist/patterns/index.js +13 -4
- package/dist/process-types-C9uMYz3i.d.ts +200 -0
- package/dist/process-types-h3uRlzDc.d.cts +200 -0
- package/dist/{reactive-collection-BxBqtIOE.d.cts → reactive-collection-B9R0Bl1P.d.cts} +11 -41
- package/dist/{reactive-collection-Cb1II1Fi.d.ts → reactive-collection-BXFrH0U2.d.ts} +11 -41
- package/dist/{reactive-collection-storage-D-KmjE0J.d.cts → reactive-collection-storage-BLGv8Xp8.d.cts} +5 -5
- package/dist/{reactive-collection-storage-BNiEc-Gd.d.ts → reactive-collection-storage-a4zD3665.d.ts} +5 -5
- package/dist/{reactive-map-BcB4KsQR.d.ts → reactive-map-C_8sOfdS.d.cts} +7 -6
- package/dist/{reactive-map-D-g3dv8I.d.cts → reactive-map-jle5dnok.d.ts} +7 -6
- package/dist/render/index.d.cts +3 -3
- package/dist/render/index.d.ts +3 -3
- package/dist/render/index.js +1 -0
- package/dist/scheduled-readiness-5rwQlyjV.d.ts +91 -0
- package/dist/scheduled-readiness-DpRY8jI0.d.cts +91 -0
- package/dist/semantic-memory-graph-C2ZUwIlq.d.ts +30 -0
- package/dist/semantic-memory-graph-DlZBD_Eu.d.cts +30 -0
- package/dist/{semantic-memory-graph-BYoIlP35.d.cts → semantic-memory-graph-types-BvzdqmkY.d.cts} +2 -28
- package/dist/{semantic-memory-graph-CxyXLms3.d.ts → semantic-memory-graph-types-Ci-OtahO.d.ts} +2 -28
- package/dist/solutions/index.cjs +6788 -2128
- package/dist/solutions/index.cjs.map +1 -1
- package/dist/solutions/index.d.cts +15 -519
- package/dist/solutions/index.d.ts +15 -519
- package/dist/solutions/index.js +91 -7
- package/dist/solutions/reactive-layout/browser/index.cjs +457 -0
- package/dist/solutions/reactive-layout/browser/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/browser/index.d.cts +44 -0
- package/dist/solutions/reactive-layout/browser/index.d.ts +44 -0
- package/dist/solutions/reactive-layout/browser/index.js +69 -0
- package/dist/solutions/reactive-layout/browser/index.js.map +1 -0
- package/dist/solutions/reactive-layout/index.cjs +4494 -0
- package/dist/solutions/reactive-layout/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/index.d.cts +37 -0
- package/dist/solutions/reactive-layout/index.d.ts +37 -0
- package/dist/solutions/reactive-layout/index.js +146 -0
- package/dist/solutions/reactive-layout/index.js.map +1 -0
- package/dist/solutions/reactive-layout/node-canvas/index.cjs +555 -0
- package/dist/solutions/reactive-layout/node-canvas/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/node-canvas/index.d.cts +54 -0
- package/dist/solutions/reactive-layout/node-canvas/index.d.ts +54 -0
- package/dist/solutions/reactive-layout/node-canvas/index.js +131 -0
- package/dist/solutions/reactive-layout/node-canvas/index.js.map +1 -0
- package/dist/solutions/reactive-layout/react-native/index.cjs +504 -0
- package/dist/solutions/reactive-layout/react-native/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/react-native/index.d.cts +51 -0
- package/dist/solutions/reactive-layout/react-native/index.d.ts +51 -0
- package/dist/solutions/reactive-layout/react-native/index.js +77 -0
- package/dist/solutions/reactive-layout/react-native/index.js.map +1 -0
- package/dist/solutions/reactive-layout/skia/index.cjs +557 -0
- package/dist/solutions/reactive-layout/skia/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/skia/index.d.cts +64 -0
- package/dist/solutions/reactive-layout/skia/index.d.ts +64 -0
- package/dist/solutions/reactive-layout/skia/index.js +70 -0
- package/dist/solutions/reactive-layout/skia/index.js.map +1 -0
- package/dist/solutions/work-item/actions.cjs +2345 -0
- package/dist/solutions/work-item/actions.cjs.map +1 -0
- package/dist/solutions/work-item/actions.d.cts +40 -0
- package/dist/solutions/work-item/actions.d.ts +40 -0
- package/dist/solutions/work-item/actions.js +2078 -0
- package/dist/solutions/work-item/actions.js.map +1 -0
- package/dist/solutions/work-item/scheduling.cjs +9797 -0
- package/dist/solutions/work-item/scheduling.cjs.map +1 -0
- package/dist/solutions/work-item/scheduling.d.cts +1868 -0
- package/dist/solutions/work-item/scheduling.d.ts +1868 -0
- package/dist/solutions/work-item/scheduling.js +146 -0
- package/dist/solutions/work-item/scheduling.js.map +1 -0
- package/dist/solutions/work-item/work-queue.cjs +306 -0
- package/dist/solutions/work-item/work-queue.cjs.map +1 -0
- package/dist/solutions/work-item/work-queue.d.cts +71 -0
- package/dist/solutions/work-item/work-queue.d.ts +71 -0
- package/dist/solutions/work-item/work-queue.js +270 -0
- package/dist/solutions/work-item/work-queue.js.map +1 -0
- package/dist/sources/browser.cjs +1399 -1052
- package/dist/sources/browser.cjs.map +1 -1
- package/dist/sources/browser.d.cts +33 -6
- package/dist/sources/browser.d.ts +33 -6
- package/dist/sources/browser.js +73 -6
- package/dist/sources/browser.js.map +1 -1
- package/dist/sources/index.cjs +1345 -1065
- package/dist/sources/index.cjs.map +1 -1
- package/dist/sources/index.d.cts +5 -5
- package/dist/sources/index.d.ts +5 -5
- package/dist/sources/index.js +7 -6
- package/dist/sources/node.cjs.map +1 -1
- package/dist/sources/node.d.cts +4 -4
- package/dist/sources/node.d.ts +4 -4
- package/dist/sources/node.js +2 -1
- package/dist/sources/node.js.map +1 -1
- package/dist/storage/browser.cjs +16 -0
- package/dist/storage/browser.cjs.map +1 -1
- package/dist/storage/browser.js +4 -3
- package/dist/storage/browser.js.map +1 -1
- package/dist/storage/index.cjs +16 -0
- package/dist/storage/index.cjs.map +1 -1
- package/dist/storage/index.d.cts +6 -5
- package/dist/storage/index.d.ts +6 -5
- package/dist/storage/index.js +10 -9
- package/dist/storage/node.cjs +16 -0
- package/dist/storage/node.cjs.map +1 -1
- package/dist/storage/node.js +4 -3
- package/dist/storage/node.js.map +1 -1
- package/dist/store-BmtEs9mG.d.ts +123 -0
- package/dist/store-PAAsYvML.d.cts +123 -0
- package/dist/testing/index.cjs +1 -0
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +3 -2
- package/dist/types-BRNKoFHj.d.ts +357 -0
- package/dist/{types-h12mNYbq.d.ts → types-BS6CyR-x.d.cts} +49 -130
- package/dist/types-BWK2ay3e.d.cts +457 -0
- package/dist/types-BXKSAoE1.d.cts +357 -0
- package/dist/types-BaPpZItj.d.ts +457 -0
- package/dist/types-BhveCMg5.d.cts +274 -0
- package/dist/{types-bNMSWKqF.d.cts → types-C9NOgNJw.d.ts} +49 -130
- package/dist/types-CTsQ8Ww4.d.ts +274 -0
- package/dist/types-DL_05n2M.d.ts +34 -0
- package/dist/types-XDoqxYO9.d.cts +34 -0
- package/dist/work-item-runtime-types-BqtWnSCS.d.ts +138 -0
- package/dist/work-item-runtime-types-CHO03AKh.d.cts +138 -0
- package/dist/work-queue/index.cjs +1136 -0
- package/dist/work-queue/index.cjs.map +1 -0
- package/dist/work-queue/index.d.cts +21 -0
- package/dist/work-queue/index.d.ts +21 -0
- package/dist/work-queue/index.js +1082 -0
- package/dist/work-queue/index.js.map +1 -0
- package/package.json +603 -249
- package/dist/chunk-2ILL7HQI.js.map +0 -1
- package/dist/chunk-4VLAQHZI.js.map +0 -1
- package/dist/chunk-COHO25CZ.js.map +0 -1
- package/dist/chunk-DK554R7P.js.map +0 -1
- package/dist/chunk-G4M3NHRJ.js.map +0 -1
- package/dist/chunk-I3IHOHCJ.js.map +0 -1
- package/dist/chunk-JIMUDQN3.js.map +0 -1
- package/dist/chunk-RIIOUTGM.js.map +0 -1
- package/dist/chunk-SWTLEQL6.js.map +0 -1
- /package/dist/{chunk-GDL26N2T.js.map → chunk-3KN7NJDR.js.map} +0 -0
- /package/dist/{chunk-Z2ANQ6JW.js.map → chunk-4Q77MMJY.js.map} +0 -0
- /package/dist/{chunk-D6BG7U6A.js.map → chunk-7HZRJMN6.js.map} +0 -0
- /package/dist/{chunk-SCRFRCGR.js.map → chunk-BSQGE5PS.js.map} +0 -0
- /package/dist/{chunk-PKVBHGBM.js.map → chunk-CJIFGJQG.js.map} +0 -0
- /package/dist/{chunk-K3FXTC3I.js.map → chunk-HJACH5PU.js.map} +0 -0
- /package/dist/{chunk-GTPCOEOZ.js.map → chunk-IDMLXLLG.js.map} +0 -0
- /package/dist/{chunk-DKP56CSW.js.map → chunk-JKAYLDQV.js.map} +0 -0
- /package/dist/{chunk-Y3ZLRGHC.js.map → chunk-SIDJO2T4.js.map} +0 -0
- /package/dist/{chunk-JR4IKCR2.js.map → chunk-TPND5MJS.js.map} +0 -0
- /package/dist/{chunk-TEW47IVR.js.map → chunk-VPEFSDME.js.map} +0 -0
- /package/dist/{chunk-DJC4CHLQ.js.map → chunk-YDWBXXQZ.js.map} +0 -0
- /package/dist/{chunk-6PHB5CJS.js.map → chunk-ZLFRB6FI.js.map} +0 -0
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
import { DataIssue } from '../data/index.js';
|
|
2
|
+
import { d as Graph } from '../graph-ho5sotHP.js';
|
|
3
|
+
import { N as Node } from '../types-C9NOgNJw.js';
|
|
4
|
+
import '../core/index.js';
|
|
5
|
+
import '../messages-CAzUPPJM.js';
|
|
6
|
+
import '../codec-BB7p8fJc.js';
|
|
7
|
+
import '../describe-B_A5fbXH.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Focused NestJS boundary bindings for GraphReFly (D474/D478).
|
|
11
|
+
*
|
|
12
|
+
* This subpath stays dependency-light: it exposes graph boundary primitives,
|
|
13
|
+
* token/provider shapes, and decorator metadata without importing Nest itself.
|
|
14
|
+
* User-land Nest modules/controllers bind these helpers to real decorators and
|
|
15
|
+
* host lifecycle objects at the framework edge.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
declare const NEST_BOUNDARY_ENVELOPE_VERSION = 1;
|
|
19
|
+
declare const NEST_BOUNDARY_PAYLOAD_MAX_BYTES: number;
|
|
20
|
+
declare const NEST_HTTP_DIAGNOSTICS_MAX_RETAINED = 100;
|
|
21
|
+
/** D478 minimal graph-visible transport envelope. Payload must be data-only. */
|
|
22
|
+
interface NestBoundaryEnvelope<T = unknown> {
|
|
23
|
+
readonly bindingId: string;
|
|
24
|
+
readonly version: number;
|
|
25
|
+
readonly payload: T;
|
|
26
|
+
readonly requestId?: string;
|
|
27
|
+
}
|
|
28
|
+
/** Reply-capable egress must carry host-private request correlation (D478). */
|
|
29
|
+
type NestReplyEnvelope<T = unknown> = NestBoundaryEnvelope<T> & {
|
|
30
|
+
readonly requestId: string;
|
|
31
|
+
};
|
|
32
|
+
type NestBoundaryKind = "request" | "guard" | "interceptor" | "error" | "lifecycle" | "cron" | "diagnostics" | "ws" | "message";
|
|
33
|
+
type NestEgressKind = "http" | "guard-decision" | "ws-ack" | "ws-reply" | "message-reply";
|
|
34
|
+
type NestFilterMode = "handle" | "observe";
|
|
35
|
+
type NestDiagnosticPhase = "adapter" | "http" | "guard" | "filter" | "cron" | "lifecycle" | "ws" | "message" | NestBoundaryKind | NestEgressKind;
|
|
36
|
+
interface NestHttpResponsePayload<TBody = unknown> {
|
|
37
|
+
readonly status: number;
|
|
38
|
+
readonly body?: TBody;
|
|
39
|
+
readonly headers?: Record<string, string>;
|
|
40
|
+
}
|
|
41
|
+
interface HttpDataIssue extends DataIssue {
|
|
42
|
+
readonly status: number;
|
|
43
|
+
readonly body?: unknown;
|
|
44
|
+
readonly headers?: Record<string, string>;
|
|
45
|
+
}
|
|
46
|
+
type NestIssueResponse<THost = unknown> = (issue: DataIssue, host: THost) => NestHttpResponsePayload;
|
|
47
|
+
type NestProtocolErrorResponse<THost = unknown> = (errorPayload: unknown, host: THost) => NestHttpResponsePayload;
|
|
48
|
+
interface NestBoundaryDiagnostic {
|
|
49
|
+
readonly kind: "binding-mismatch" | "dispose-pending" | "malformed-egress" | "stale-egress" | "terminal-egress" | "timeout" | "resolve-threw" | "reject-threw";
|
|
50
|
+
readonly phase?: NestDiagnosticPhase;
|
|
51
|
+
readonly requestId?: string;
|
|
52
|
+
readonly bindingId?: string;
|
|
53
|
+
readonly expectedBindingId?: string;
|
|
54
|
+
readonly message: string;
|
|
55
|
+
readonly error?: unknown;
|
|
56
|
+
}
|
|
57
|
+
interface NestDiagnosticErrorPayload {
|
|
58
|
+
readonly name?: string;
|
|
59
|
+
readonly message: string;
|
|
60
|
+
}
|
|
61
|
+
interface NestDiagnosticPayload {
|
|
62
|
+
readonly kind: NestBoundaryDiagnostic["kind"];
|
|
63
|
+
readonly phase: NestDiagnosticPhase;
|
|
64
|
+
readonly requestId?: string;
|
|
65
|
+
readonly bindingId?: string;
|
|
66
|
+
readonly expectedBindingId?: string;
|
|
67
|
+
readonly message: string;
|
|
68
|
+
readonly error?: NestDiagnosticErrorPayload;
|
|
69
|
+
}
|
|
70
|
+
interface NestDiagnosticInput extends NestBoundaryDiagnostic {
|
|
71
|
+
readonly phase?: NestDiagnosticPhase;
|
|
72
|
+
}
|
|
73
|
+
interface NestDiagnosticsOptions extends Omit<NestIngressOptions<NestDiagnosticInput, NestDiagnosticPayload>, "payload"> {
|
|
74
|
+
readonly phase?: NestDiagnosticPhase;
|
|
75
|
+
}
|
|
76
|
+
type NestDiagnosticIngressBoundary = NestIngressBoundary<NestDiagnosticInput, NestDiagnosticPayload>;
|
|
77
|
+
interface NestIngressBoundary<THost = unknown, TPayload = THost> {
|
|
78
|
+
readonly kind: NestBoundaryKind;
|
|
79
|
+
readonly bindingId: string;
|
|
80
|
+
readonly version: number;
|
|
81
|
+
readonly node: Node<NestBoundaryEnvelope<TPayload>>;
|
|
82
|
+
envelope(host: THost, opts?: NestIngressEmitOptions<TPayload>): NestBoundaryEnvelope<TPayload>;
|
|
83
|
+
emit(host: THost, opts?: NestIngressEmitOptions<TPayload>): NestBoundaryEnvelope<TPayload>;
|
|
84
|
+
}
|
|
85
|
+
interface NestIngressOptions<THost, TPayload> {
|
|
86
|
+
readonly bindingId?: string;
|
|
87
|
+
readonly name?: string;
|
|
88
|
+
readonly version?: number;
|
|
89
|
+
readonly maxPayloadBytes?: number;
|
|
90
|
+
readonly requestId?: string | ((host: THost) => string | undefined);
|
|
91
|
+
readonly requireRequestId?: boolean;
|
|
92
|
+
readonly payload?: (host: THost) => TPayload;
|
|
93
|
+
}
|
|
94
|
+
interface NestIngressEmitOptions<TPayload> {
|
|
95
|
+
readonly requestId?: string;
|
|
96
|
+
readonly bindingId?: string;
|
|
97
|
+
readonly version?: number;
|
|
98
|
+
readonly payload?: TPayload;
|
|
99
|
+
readonly requireRequestId?: boolean;
|
|
100
|
+
}
|
|
101
|
+
interface NestReplyResponseHandle<TPayload> {
|
|
102
|
+
resolve(payload: TPayload, envelope: NestReplyEnvelope<TPayload>): void;
|
|
103
|
+
reject(error: unknown, envelope?: NestReplyEnvelope<TPayload>): void;
|
|
104
|
+
}
|
|
105
|
+
interface NestReplyPendingRegistration<TPayload> {
|
|
106
|
+
readonly requestId: string;
|
|
107
|
+
readonly handle: NestReplyResponseHandle<TPayload>;
|
|
108
|
+
readonly bindingId?: string;
|
|
109
|
+
}
|
|
110
|
+
interface NestReplyBoundary<TPayload = unknown> {
|
|
111
|
+
readonly kind: NestEgressKind;
|
|
112
|
+
readonly bindingId: string;
|
|
113
|
+
attach(registration: NestReplyPendingRegistration<TPayload>): () => boolean;
|
|
114
|
+
pendingCount(): number;
|
|
115
|
+
diagnostics(): readonly NestBoundaryDiagnostic[];
|
|
116
|
+
dispose(): void;
|
|
117
|
+
}
|
|
118
|
+
interface NestHttpResponseHandle<TPayload> extends NestReplyResponseHandle<TPayload> {
|
|
119
|
+
}
|
|
120
|
+
interface NestHttpPendingRegistration<TPayload> extends NestReplyPendingRegistration<TPayload> {
|
|
121
|
+
}
|
|
122
|
+
interface NestHttpBoundary<TPayload = unknown> extends NestReplyBoundary<TPayload> {
|
|
123
|
+
readonly kind: "http";
|
|
124
|
+
}
|
|
125
|
+
interface ToNestHttpOptions<TPayload> {
|
|
126
|
+
readonly bindingId?: string;
|
|
127
|
+
readonly diagnosticBoundary?: NestDiagnosticIngressBoundary;
|
|
128
|
+
readonly diagnosticPhase?: NestDiagnosticPhase;
|
|
129
|
+
readonly maxDiagnostics?: number;
|
|
130
|
+
readonly maxPayloadBytes?: number;
|
|
131
|
+
readonly name?: string;
|
|
132
|
+
readonly transform?: (payload: TPayload, envelope: NestReplyEnvelope<TPayload>) => TPayload;
|
|
133
|
+
readonly label?: string;
|
|
134
|
+
}
|
|
135
|
+
interface NestBoundaryDecoratorOptions<THost = unknown, TPayload = unknown> {
|
|
136
|
+
readonly bindingId?: string;
|
|
137
|
+
readonly payload?: (host: THost) => TPayload;
|
|
138
|
+
readonly requestId?: string | ((host: THost) => string | undefined);
|
|
139
|
+
readonly order?: number;
|
|
140
|
+
}
|
|
141
|
+
interface NestFilterDecoratorOptions<THost = unknown, TPayload = unknown> extends NestBoundaryDecoratorOptions<THost, TPayload> {
|
|
142
|
+
readonly mode?: NestFilterMode;
|
|
143
|
+
readonly issueResponse?: NestIssueResponse<THost>;
|
|
144
|
+
readonly protocolError?: NestProtocolErrorResponse<THost>;
|
|
145
|
+
}
|
|
146
|
+
interface NestHttpReplyDecoratorOptions<THost = unknown> {
|
|
147
|
+
readonly bindingId: string;
|
|
148
|
+
readonly order?: number;
|
|
149
|
+
readonly issueResponse?: NestIssueResponse<THost>;
|
|
150
|
+
readonly protocolError?: NestProtocolErrorResponse<THost>;
|
|
151
|
+
}
|
|
152
|
+
interface NestGuardDecisionDecoratorOptions<THost = unknown> {
|
|
153
|
+
readonly bindingId: string;
|
|
154
|
+
readonly order?: number;
|
|
155
|
+
readonly issueResponse?: NestIssueResponse<THost>;
|
|
156
|
+
readonly protocolError?: NestProtocolErrorResponse<THost>;
|
|
157
|
+
}
|
|
158
|
+
interface NestGraphRunOptions<THost = unknown> {
|
|
159
|
+
readonly requestId?: string | ((host: THost) => string | undefined);
|
|
160
|
+
}
|
|
161
|
+
interface NestGraphBoundaryRunnerOptions {
|
|
162
|
+
readonly diagnosticBoundary?: NestDiagnosticIngressBoundary;
|
|
163
|
+
readonly diagnosticPhase?: NestDiagnosticPhase;
|
|
164
|
+
}
|
|
165
|
+
interface NestGraphBoundaryRunner {
|
|
166
|
+
run<THost = unknown>(target: DecoratorHostConstructor | object, methodKey: string | symbol, host: THost, opts?: NestGraphRunOptions<THost>): Promise<unknown> | undefined;
|
|
167
|
+
dispose(): void;
|
|
168
|
+
}
|
|
169
|
+
interface NestExecutionContextLike {
|
|
170
|
+
getClass(): DecoratorHostConstructor;
|
|
171
|
+
getHandler(): DecoratorBoundMethod;
|
|
172
|
+
switchToHttp?(): {
|
|
173
|
+
getRequest<T = unknown>(): T;
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
interface NestCallHandlerLike {
|
|
177
|
+
handle(): unknown;
|
|
178
|
+
}
|
|
179
|
+
interface NestGraphBoundaryInterceptorOptions<THost = unknown> extends NestGraphRunOptions<THost>, NestGraphBoundaryRunnerOptions {
|
|
180
|
+
readonly host?: (context: NestExecutionContextLike) => THost;
|
|
181
|
+
readonly runner?: NestGraphBoundaryRunner;
|
|
182
|
+
}
|
|
183
|
+
interface NestGraphBoundaryInterceptor {
|
|
184
|
+
intercept(context: NestExecutionContextLike, next?: NestCallHandlerLike): Promise<unknown> | unknown;
|
|
185
|
+
dispose(): void;
|
|
186
|
+
}
|
|
187
|
+
/** Injection token for a root graph singleton. */
|
|
188
|
+
declare const GRAPHREFLY_ROOT_GRAPH: unique symbol;
|
|
189
|
+
/** Injection token for adapter module options. */
|
|
190
|
+
declare const GRAPHREFLY_MODULE_OPTIONS: unique symbol;
|
|
191
|
+
/** Injection token for a request-scoped graph. */
|
|
192
|
+
declare const GRAPHREFLY_REQUEST_GRAPH: unique symbol;
|
|
193
|
+
type DecoratorHostConstructor = abstract new (...args: unknown[]) => unknown;
|
|
194
|
+
type DecoratorBoundMethod = (...args: unknown[]) => unknown;
|
|
195
|
+
interface OnGraphEventMeta {
|
|
196
|
+
nodeName: string;
|
|
197
|
+
methodKey: string | symbol;
|
|
198
|
+
}
|
|
199
|
+
interface GraphIntervalMeta {
|
|
200
|
+
ms: number;
|
|
201
|
+
methodKey: string | symbol;
|
|
202
|
+
}
|
|
203
|
+
interface GraphCronMeta {
|
|
204
|
+
expr: string;
|
|
205
|
+
methodKey: string | symbol;
|
|
206
|
+
}
|
|
207
|
+
type NestBoundaryBindingDirection = "ingress" | "egress";
|
|
208
|
+
interface NestIngressBindingMeta {
|
|
209
|
+
readonly direction: "ingress";
|
|
210
|
+
kind: NestBoundaryKind;
|
|
211
|
+
bindingId: string;
|
|
212
|
+
methodKey: string | symbol;
|
|
213
|
+
readonly boundary: NestIngressBoundary<unknown, unknown>;
|
|
214
|
+
readonly payload?: (host: unknown) => unknown;
|
|
215
|
+
readonly requestId?: string | ((host: unknown) => string | undefined);
|
|
216
|
+
readonly order?: number;
|
|
217
|
+
readonly mode?: NestFilterMode;
|
|
218
|
+
readonly issueResponse?: NestIssueResponse<unknown>;
|
|
219
|
+
readonly protocolError?: NestProtocolErrorResponse<unknown>;
|
|
220
|
+
}
|
|
221
|
+
interface NestHttpReplyBindingMeta {
|
|
222
|
+
readonly direction: "egress";
|
|
223
|
+
readonly kind: "http";
|
|
224
|
+
readonly bindingId: string;
|
|
225
|
+
readonly methodKey: string | symbol;
|
|
226
|
+
readonly replyNode: Node<NestReplyEnvelope<unknown>>;
|
|
227
|
+
readonly order?: number;
|
|
228
|
+
readonly issueResponse?: NestIssueResponse<unknown>;
|
|
229
|
+
readonly protocolError?: NestProtocolErrorResponse<unknown>;
|
|
230
|
+
}
|
|
231
|
+
interface NestGuardDecisionBindingMeta {
|
|
232
|
+
readonly direction: "egress";
|
|
233
|
+
readonly kind: "guard-decision";
|
|
234
|
+
readonly bindingId: string;
|
|
235
|
+
readonly methodKey: string | symbol;
|
|
236
|
+
readonly decisionNode: Node<NestReplyEnvelope<GraphGuardDecision>>;
|
|
237
|
+
readonly order?: number;
|
|
238
|
+
readonly issueResponse?: NestIssueResponse<unknown>;
|
|
239
|
+
readonly protocolError?: NestProtocolErrorResponse<unknown>;
|
|
240
|
+
}
|
|
241
|
+
interface NestWsAckBindingMeta {
|
|
242
|
+
readonly direction: "egress";
|
|
243
|
+
readonly kind: "ws-ack";
|
|
244
|
+
readonly bindingId: string;
|
|
245
|
+
readonly methodKey: string | symbol;
|
|
246
|
+
readonly ackNode: Node<NestReplyEnvelope<unknown>>;
|
|
247
|
+
readonly order?: number;
|
|
248
|
+
}
|
|
249
|
+
interface NestWsReplyBindingMeta {
|
|
250
|
+
readonly direction: "egress";
|
|
251
|
+
readonly kind: "ws-reply";
|
|
252
|
+
readonly bindingId: string;
|
|
253
|
+
readonly methodKey: string | symbol;
|
|
254
|
+
readonly replyNode: Node<NestReplyEnvelope<unknown>>;
|
|
255
|
+
readonly order?: number;
|
|
256
|
+
}
|
|
257
|
+
interface NestMessageReplyBindingMeta {
|
|
258
|
+
readonly direction: "egress";
|
|
259
|
+
readonly kind: "message-reply";
|
|
260
|
+
readonly bindingId: string;
|
|
261
|
+
readonly methodKey: string | symbol;
|
|
262
|
+
readonly replyNode: Node<NestReplyEnvelope<unknown>>;
|
|
263
|
+
readonly order?: number;
|
|
264
|
+
}
|
|
265
|
+
type NestBoundaryBindingMeta = NestIngressBindingMeta | NestHttpReplyBindingMeta | NestGuardDecisionBindingMeta | NestWsAckBindingMeta | NestWsReplyBindingMeta | NestMessageReplyBindingMeta;
|
|
266
|
+
declare const EVENT_HANDLERS: WeakMap<DecoratorHostConstructor, OnGraphEventMeta[]>;
|
|
267
|
+
declare const INTERVAL_HANDLERS: WeakMap<DecoratorHostConstructor, GraphIntervalMeta[]>;
|
|
268
|
+
declare const CRON_HANDLERS: WeakMap<DecoratorHostConstructor, GraphCronMeta[]>;
|
|
269
|
+
declare const NEST_BOUNDARY_BINDINGS: WeakMap<DecoratorHostConstructor, NestBoundaryBindingMeta[]>;
|
|
270
|
+
type GraphMethodDecorator = MethodDecorator & ((value: DecoratorBoundMethod, context: ClassMethodDecoratorContext) => void);
|
|
271
|
+
/** Minimal Nest provider object shape without importing @nestjs/common. */
|
|
272
|
+
type NestProviderBinding<T = unknown> = {
|
|
273
|
+
readonly provide: string | symbol;
|
|
274
|
+
readonly useValue: T;
|
|
275
|
+
} | {
|
|
276
|
+
readonly provide: string | symbol;
|
|
277
|
+
readonly useFactory: (...args: unknown[]) => T;
|
|
278
|
+
};
|
|
279
|
+
/** Get the injection token for a named feature graph. */
|
|
280
|
+
declare function getGraphToken(name: string): symbol;
|
|
281
|
+
/** Get the injection token for a node at a qualified path. */
|
|
282
|
+
declare function getNodeToken(path: string): symbol;
|
|
283
|
+
/** Get the injection token for a named Nest boundary binding. */
|
|
284
|
+
declare function getNestBoundaryToken(bindingId: string): symbol;
|
|
285
|
+
/** Build a dependency-free provider binding shape for user-land Nest modules. */
|
|
286
|
+
declare function nestProvider<T>(provide: string | symbol, useValue: T): NestProviderBinding<T>;
|
|
287
|
+
/** D474 P0 HTTP request ingress. */
|
|
288
|
+
declare function fromNestReq<THost = unknown, TPayload = THost>(graph: Graph, opts?: NestIngressOptions<THost, TPayload>): NestIngressBoundary<THost, TPayload>;
|
|
289
|
+
/** D474 P0 guard/admission ingress. */
|
|
290
|
+
declare function fromNestGuard<THost = unknown, TPayload = THost>(graph: Graph, opts?: NestIngressOptions<THost, TPayload>): NestIngressBoundary<THost, TPayload>;
|
|
291
|
+
/** D474 P1 interceptor ingress. */
|
|
292
|
+
declare function fromNestIntercept<THost = unknown, TPayload = THost>(graph: Graph, opts?: NestIngressOptions<THost, TPayload>): NestIngressBoundary<THost, TPayload>;
|
|
293
|
+
/** D474 P0 error/filter ingress. */
|
|
294
|
+
declare function fromNestError<THost = unknown, TPayload = THost>(graph: Graph, opts?: NestIngressOptions<THost, TPayload>): NestIngressBoundary<THost, TPayload>;
|
|
295
|
+
/** D474 P1 Nest lifecycle hook ingress. */
|
|
296
|
+
declare function fromNestLifecycle<THost = unknown, TPayload = THost>(graph: Graph, opts?: NestIngressOptions<THost, TPayload>): NestIngressBoundary<THost, TPayload>;
|
|
297
|
+
/** D474 P1 schedule/cron ingress. */
|
|
298
|
+
declare function fromNestCron<THost = unknown, TPayload = THost>(graph: Graph, opts?: NestIngressOptions<THost, TPayload>): NestIngressBoundary<THost, TPayload>;
|
|
299
|
+
/** D494 explicit graph-visible diagnostics ingress. Emits sanitized data-only payloads. */
|
|
300
|
+
declare function fromNestDiagnostics(graph: Graph, opts?: NestDiagnosticsOptions): NestDiagnosticIngressBoundary;
|
|
301
|
+
/** D474 later/optional WebSocket ingress. Kept thin for first-slice experiments. */
|
|
302
|
+
declare function fromNestWs<THost = unknown, TPayload = THost>(graph: Graph, opts?: NestIngressOptions<THost, TPayload>): NestIngressBoundary<THost, TPayload>;
|
|
303
|
+
/** D474 later/optional microservice/message ingress. */
|
|
304
|
+
declare function fromNestMessage<THost = unknown, TPayload = THost>(graph: Graph, opts?: NestIngressOptions<THost, TPayload>): NestIngressBoundary<THost, TPayload>;
|
|
305
|
+
/**
|
|
306
|
+
* D474 HTTP egress resolver.
|
|
307
|
+
*
|
|
308
|
+
* The returned boundary owns only a host-private pending map. It never stores
|
|
309
|
+
* response/socket/ack handles in graph DATA and only resolves handles whose
|
|
310
|
+
* requestId (and optional bindingId) match an egress envelope.
|
|
311
|
+
*/
|
|
312
|
+
declare function toNestHttp<TPayload = unknown>(egress: Node<NestReplyEnvelope<TPayload>>, opts?: ToNestHttpOptions<TPayload>): NestHttpBoundary<TPayload>;
|
|
313
|
+
/** D478 route-request decorator over an existing ingress boundary. */
|
|
314
|
+
declare function GraphReq<THost = unknown, TPayload = unknown>(boundary: NestIngressBoundary<THost, TPayload>, opts?: NestBoundaryDecoratorOptions<THost, TPayload>): GraphMethodDecorator;
|
|
315
|
+
/** D478 route-guard decorator over an existing ingress boundary. */
|
|
316
|
+
declare function GraphGuard<THost = unknown, TPayload = unknown>(boundary: NestIngressBoundary<THost, TPayload>, opts?: NestBoundaryDecoratorOptions<THost, TPayload>): GraphMethodDecorator;
|
|
317
|
+
/** D478 route-interceptor decorator over an existing ingress boundary. */
|
|
318
|
+
declare function GraphIntercept<THost = unknown, TPayload = unknown>(boundary: NestIngressBoundary<THost, TPayload>, opts?: NestBoundaryDecoratorOptions<THost, TPayload>): GraphMethodDecorator;
|
|
319
|
+
/** D484 generic filter decorator over an existing ingress boundary. */
|
|
320
|
+
declare function GraphFilter<THost = unknown, TPayload = unknown>(boundary: NestIngressBoundary<THost, TPayload>, opts?: NestFilterDecoratorOptions<THost, TPayload>): GraphMethodDecorator;
|
|
321
|
+
/** D484 exception-oriented sugar over GraphFilter. */
|
|
322
|
+
declare function GraphError<THost = unknown, TPayload = unknown>(boundary: NestIngressBoundary<THost, TPayload>, opts?: NestFilterDecoratorOptions<THost, TPayload>): GraphMethodDecorator;
|
|
323
|
+
/** D478 lifecycle decorator over an existing ingress boundary. */
|
|
324
|
+
declare function GraphLifecycle<THost = unknown, TPayload = unknown>(boundary: NestIngressBoundary<THost, TPayload>, opts?: NestBoundaryDecoratorOptions<THost, TPayload>): GraphMethodDecorator;
|
|
325
|
+
/** D478 cron/schedule decorator over an existing ingress boundary. */
|
|
326
|
+
declare function GraphCron<THost = unknown, TPayload = unknown>(boundary: NestIngressBoundary<THost, TPayload>, opts?: NestBoundaryDecoratorOptions<THost, TPayload>): GraphMethodDecorator;
|
|
327
|
+
/** D488 WebSocket message ingress decorator over an existing boundary. */
|
|
328
|
+
declare function GraphWs<THost = unknown, TPayload = unknown>(boundary: NestIngressBoundary<THost, TPayload>, opts?: NestBoundaryDecoratorOptions<THost, TPayload>): GraphMethodDecorator;
|
|
329
|
+
/** D488 microservice/message ingress decorator over an existing boundary. */
|
|
330
|
+
declare function GraphMessage<THost = unknown, TPayload = unknown>(boundary: NestIngressBoundary<THost, TPayload>, opts?: NestBoundaryDecoratorOptions<THost, TPayload>): GraphMethodDecorator;
|
|
331
|
+
/** D478 HTTP reply decorator over an existing reply node. */
|
|
332
|
+
declare function GraphHttpReply<THost = unknown, TPayload = unknown>(replyNode: Node<NestReplyEnvelope<TPayload>>, opts: NestHttpReplyDecoratorOptions<THost>): GraphMethodDecorator;
|
|
333
|
+
type GraphGuardDecision = {
|
|
334
|
+
readonly kind: "allow";
|
|
335
|
+
readonly reason?: string;
|
|
336
|
+
readonly metadata?: Record<string, unknown>;
|
|
337
|
+
} | {
|
|
338
|
+
readonly kind: "deny";
|
|
339
|
+
readonly reason?: string;
|
|
340
|
+
readonly status?: number;
|
|
341
|
+
readonly body?: unknown;
|
|
342
|
+
readonly headers?: Record<string, string>;
|
|
343
|
+
readonly issue?: DataIssue | HttpDataIssue;
|
|
344
|
+
readonly metadata?: Record<string, unknown>;
|
|
345
|
+
};
|
|
346
|
+
/** D484 guard decision egress decorator over an existing reply-correlated decision node. */
|
|
347
|
+
declare function GraphGuardDecision<THost = unknown>(decisionNode: Node<NestReplyEnvelope<GraphGuardDecision>>, opts: NestGuardDecisionDecoratorOptions<THost>): GraphMethodDecorator;
|
|
348
|
+
/** D488 WebSocket acknowledgement egress decorator over an existing reply-correlated node. */
|
|
349
|
+
declare function GraphWsAck<TPayload = unknown>(ackNode: Node<NestReplyEnvelope<TPayload>>, opts: {
|
|
350
|
+
readonly bindingId: string;
|
|
351
|
+
readonly order?: number;
|
|
352
|
+
}): GraphMethodDecorator;
|
|
353
|
+
/** D488 WebSocket reply egress decorator over an existing reply-correlated node. */
|
|
354
|
+
declare function GraphWsReply<TPayload = unknown>(replyNode: Node<NestReplyEnvelope<TPayload>>, opts: {
|
|
355
|
+
readonly bindingId: string;
|
|
356
|
+
readonly order?: number;
|
|
357
|
+
}): GraphMethodDecorator;
|
|
358
|
+
/** D488 microservice/message reply egress decorator over an existing reply-correlated node. */
|
|
359
|
+
declare function GraphMessageReply<TPayload = unknown>(replyNode: Node<NestReplyEnvelope<TPayload>>, opts: {
|
|
360
|
+
readonly bindingId: string;
|
|
361
|
+
readonly order?: number;
|
|
362
|
+
}): GraphMethodDecorator;
|
|
363
|
+
declare function createNestGraphBoundaryRunner(opts?: NestGraphBoundaryRunnerOptions): NestGraphBoundaryRunner;
|
|
364
|
+
declare function createNestGraphBoundaryInterceptor<THost = unknown>(opts?: NestGraphBoundaryInterceptorOptions<THost>): NestGraphBoundaryInterceptor;
|
|
365
|
+
declare function getNestBoundaryBindings(target: DecoratorHostConstructor | object, methodKey?: string | symbol): readonly NestBoundaryBindingMeta[];
|
|
366
|
+
declare function resolveNestMethodKey(ctor: DecoratorHostConstructor, handler: DecoratorBoundMethod): string | symbol | undefined;
|
|
367
|
+
declare function bindingRequestId<THost>(host: THost, binding: NestBoundaryBindingMeta, fallback?: string | ((host: THost) => string | undefined)): string | undefined;
|
|
368
|
+
declare function bindingEmitOptions<THost>(host: THost, binding: NestIngressBindingMeta, requestId?: string): NestIngressEmitOptions<unknown>;
|
|
369
|
+
declare function isDataIssue(value: unknown): value is DataIssue;
|
|
370
|
+
declare function isHttpDataIssue(value: unknown): value is HttpDataIssue;
|
|
371
|
+
declare function issueResponse<THost = unknown>(issue: DataIssue, _host?: THost): NestHttpResponsePayload;
|
|
372
|
+
declare function protocolError<THost = unknown>(_errorPayload: unknown, _host?: THost): NestHttpResponsePayload;
|
|
373
|
+
declare function lowerHttpReplyPayload<THost = unknown>(payload: unknown, host: THost, opts?: {
|
|
374
|
+
readonly issueResponse?: NestIssueResponse<THost>;
|
|
375
|
+
}): NestHttpResponsePayload;
|
|
376
|
+
declare function lowerProtocolError<THost = unknown>(errorPayload: unknown, host: THost, opts?: {
|
|
377
|
+
readonly protocolError?: NestProtocolErrorResponse<THost>;
|
|
378
|
+
}): NestHttpResponsePayload;
|
|
379
|
+
declare function sanitizeNestDiagnostic(diagnostic: NestDiagnosticInput, defaultPhase?: NestDiagnosticPhase): NestDiagnosticPayload;
|
|
380
|
+
/** Register a method as a DATA-event handler for a graph observe path. */
|
|
381
|
+
declare function OnGraphEvent(nodeName: string): GraphMethodDecorator;
|
|
382
|
+
/** Register fixed-interval metadata for a user-land NestJS scheduler bridge. */
|
|
383
|
+
declare function GraphInterval(ms: number): GraphMethodDecorator;
|
|
384
|
+
|
|
385
|
+
export { CRON_HANDLERS, type DecoratorBoundMethod, type DecoratorHostConstructor, EVENT_HANDLERS, GRAPHREFLY_MODULE_OPTIONS, GRAPHREFLY_REQUEST_GRAPH, GRAPHREFLY_ROOT_GRAPH, GraphCron, type GraphCronMeta, GraphError, GraphFilter, GraphGuard, GraphGuardDecision, GraphHttpReply, GraphIntercept, GraphInterval, type GraphIntervalMeta, GraphLifecycle, GraphMessage, GraphMessageReply, type GraphMethodDecorator, GraphReq, GraphWs, GraphWsAck, GraphWsReply, type HttpDataIssue, INTERVAL_HANDLERS, NEST_BOUNDARY_BINDINGS, NEST_BOUNDARY_ENVELOPE_VERSION, NEST_BOUNDARY_PAYLOAD_MAX_BYTES, NEST_HTTP_DIAGNOSTICS_MAX_RETAINED, type NestBoundaryBindingDirection, type NestBoundaryBindingMeta, type NestBoundaryDecoratorOptions, type NestBoundaryDiagnostic, type NestBoundaryEnvelope, type NestBoundaryKind, type NestCallHandlerLike, type NestDiagnosticErrorPayload, type NestDiagnosticIngressBoundary, type NestDiagnosticInput, type NestDiagnosticPayload, type NestDiagnosticPhase, type NestDiagnosticsOptions, type NestEgressKind, type NestExecutionContextLike, type NestFilterDecoratorOptions, type NestFilterMode, type NestGraphBoundaryInterceptor, type NestGraphBoundaryInterceptorOptions, type NestGraphBoundaryRunner, type NestGraphBoundaryRunnerOptions, type NestGraphRunOptions, type NestGuardDecisionBindingMeta, type NestGuardDecisionDecoratorOptions, type NestHttpBoundary, type NestHttpPendingRegistration, type NestHttpReplyBindingMeta, type NestHttpReplyDecoratorOptions, type NestHttpResponseHandle, type NestHttpResponsePayload, type NestIngressBindingMeta, type NestIngressBoundary, type NestIngressEmitOptions, type NestIngressOptions, type NestIssueResponse, type NestMessageReplyBindingMeta, type NestProtocolErrorResponse, type NestProviderBinding, type NestReplyBoundary, type NestReplyEnvelope, type NestReplyPendingRegistration, type NestReplyResponseHandle, type NestWsAckBindingMeta, type NestWsReplyBindingMeta, OnGraphEvent, type OnGraphEventMeta, type ToNestHttpOptions, bindingEmitOptions, bindingRequestId, createNestGraphBoundaryInterceptor, createNestGraphBoundaryRunner, fromNestCron, fromNestDiagnostics, fromNestError, fromNestGuard, fromNestIntercept, fromNestLifecycle, fromNestMessage, fromNestReq, fromNestWs, getGraphToken, getNestBoundaryBindings, getNestBoundaryToken, getNodeToken, isDataIssue, isHttpDataIssue, issueResponse, lowerHttpReplyPayload, lowerProtocolError, nestProvider, protocolError, resolveNestMethodKey, sanitizeNestDiagnostic, toNestHttp };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CRON_HANDLERS,
|
|
3
|
+
EVENT_HANDLERS,
|
|
4
|
+
GRAPHREFLY_MODULE_OPTIONS,
|
|
5
|
+
GRAPHREFLY_REQUEST_GRAPH,
|
|
6
|
+
GRAPHREFLY_ROOT_GRAPH,
|
|
7
|
+
GraphCron,
|
|
8
|
+
GraphError,
|
|
9
|
+
GraphFilter,
|
|
10
|
+
GraphGuard,
|
|
11
|
+
GraphGuardDecision,
|
|
12
|
+
GraphHttpReply,
|
|
13
|
+
GraphIntercept,
|
|
14
|
+
GraphInterval,
|
|
15
|
+
GraphLifecycle,
|
|
16
|
+
GraphMessage,
|
|
17
|
+
GraphMessageReply,
|
|
18
|
+
GraphReq,
|
|
19
|
+
GraphWs,
|
|
20
|
+
GraphWsAck,
|
|
21
|
+
GraphWsReply,
|
|
22
|
+
INTERVAL_HANDLERS,
|
|
23
|
+
NEST_BOUNDARY_BINDINGS,
|
|
24
|
+
NEST_BOUNDARY_ENVELOPE_VERSION,
|
|
25
|
+
NEST_BOUNDARY_PAYLOAD_MAX_BYTES,
|
|
26
|
+
NEST_HTTP_DIAGNOSTICS_MAX_RETAINED,
|
|
27
|
+
OnGraphEvent,
|
|
28
|
+
bindingEmitOptions,
|
|
29
|
+
bindingRequestId,
|
|
30
|
+
createNestGraphBoundaryInterceptor,
|
|
31
|
+
createNestGraphBoundaryRunner,
|
|
32
|
+
fromNestCron,
|
|
33
|
+
fromNestDiagnostics,
|
|
34
|
+
fromNestError,
|
|
35
|
+
fromNestGuard,
|
|
36
|
+
fromNestIntercept,
|
|
37
|
+
fromNestLifecycle,
|
|
38
|
+
fromNestMessage,
|
|
39
|
+
fromNestReq,
|
|
40
|
+
fromNestWs,
|
|
41
|
+
getGraphToken,
|
|
42
|
+
getNestBoundaryBindings,
|
|
43
|
+
getNestBoundaryToken,
|
|
44
|
+
getNodeToken,
|
|
45
|
+
isDataIssue,
|
|
46
|
+
isHttpDataIssue,
|
|
47
|
+
issueResponse,
|
|
48
|
+
lowerHttpReplyPayload,
|
|
49
|
+
lowerProtocolError,
|
|
50
|
+
nestProvider,
|
|
51
|
+
protocolError,
|
|
52
|
+
resolveNestMethodKey,
|
|
53
|
+
sanitizeNestDiagnostic,
|
|
54
|
+
toNestHttp
|
|
55
|
+
} from "../chunk-MQEQMS7B.js";
|
|
56
|
+
import "../chunk-DGUM43GV.js";
|
|
57
|
+
export {
|
|
58
|
+
CRON_HANDLERS,
|
|
59
|
+
EVENT_HANDLERS,
|
|
60
|
+
GRAPHREFLY_MODULE_OPTIONS,
|
|
61
|
+
GRAPHREFLY_REQUEST_GRAPH,
|
|
62
|
+
GRAPHREFLY_ROOT_GRAPH,
|
|
63
|
+
GraphCron,
|
|
64
|
+
GraphError,
|
|
65
|
+
GraphFilter,
|
|
66
|
+
GraphGuard,
|
|
67
|
+
GraphGuardDecision,
|
|
68
|
+
GraphHttpReply,
|
|
69
|
+
GraphIntercept,
|
|
70
|
+
GraphInterval,
|
|
71
|
+
GraphLifecycle,
|
|
72
|
+
GraphMessage,
|
|
73
|
+
GraphMessageReply,
|
|
74
|
+
GraphReq,
|
|
75
|
+
GraphWs,
|
|
76
|
+
GraphWsAck,
|
|
77
|
+
GraphWsReply,
|
|
78
|
+
INTERVAL_HANDLERS,
|
|
79
|
+
NEST_BOUNDARY_BINDINGS,
|
|
80
|
+
NEST_BOUNDARY_ENVELOPE_VERSION,
|
|
81
|
+
NEST_BOUNDARY_PAYLOAD_MAX_BYTES,
|
|
82
|
+
NEST_HTTP_DIAGNOSTICS_MAX_RETAINED,
|
|
83
|
+
OnGraphEvent,
|
|
84
|
+
bindingEmitOptions,
|
|
85
|
+
bindingRequestId,
|
|
86
|
+
createNestGraphBoundaryInterceptor,
|
|
87
|
+
createNestGraphBoundaryRunner,
|
|
88
|
+
fromNestCron,
|
|
89
|
+
fromNestDiagnostics,
|
|
90
|
+
fromNestError,
|
|
91
|
+
fromNestGuard,
|
|
92
|
+
fromNestIntercept,
|
|
93
|
+
fromNestLifecycle,
|
|
94
|
+
fromNestMessage,
|
|
95
|
+
fromNestReq,
|
|
96
|
+
fromNestWs,
|
|
97
|
+
getGraphToken,
|
|
98
|
+
getNestBoundaryBindings,
|
|
99
|
+
getNestBoundaryToken,
|
|
100
|
+
getNodeToken,
|
|
101
|
+
isDataIssue,
|
|
102
|
+
isHttpDataIssue,
|
|
103
|
+
issueResponse,
|
|
104
|
+
lowerHttpReplyPayload,
|
|
105
|
+
lowerProtocolError,
|
|
106
|
+
nestProvider,
|
|
107
|
+
protocolError,
|
|
108
|
+
resolveNestMethodKey,
|
|
109
|
+
sanitizeNestDiagnostic,
|
|
110
|
+
toNestHttp
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=nestjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { O as ObserveEvent, d as Graph } from '../graph-
|
|
1
|
+
import { O as ObserveEvent, d as Graph } from '../graph-CWK3HLPB.cjs';
|
|
2
2
|
import { d as AppendLogStorageTier } from '../append-log-DisvEReb.cjs';
|
|
3
3
|
import { O as ObserveEventFrame } from '../observe-event-log-0SVsx7JG.cjs';
|
|
4
4
|
export { c as ObserveEventLogPage } from '../observe-event-log-0SVsx7JG.cjs';
|
|
5
5
|
import '../core/index.cjs';
|
|
6
|
-
import '../types-
|
|
7
|
-
import '../messages-
|
|
6
|
+
import '../types-BS6CyR-x.cjs';
|
|
7
|
+
import '../messages-CAzUPPJM.cjs';
|
|
8
8
|
import '../codec-BB7p8fJc.cjs';
|
|
9
|
-
import '../describe-
|
|
9
|
+
import '../describe-CQRrkv-Q.cjs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Graph-bound observe storage adapters.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { O as ObserveEvent, d as Graph } from '../graph-
|
|
1
|
+
import { O as ObserveEvent, d as Graph } from '../graph-ho5sotHP.js';
|
|
2
2
|
import { d as AppendLogStorageTier } from '../append-log-DzKMmjxx.js';
|
|
3
3
|
import { O as ObserveEventFrame } from '../observe-event-log-Dnm76owp.js';
|
|
4
4
|
export { c as ObserveEventLogPage } from '../observe-event-log-Dnm76owp.js';
|
|
5
5
|
import '../core/index.js';
|
|
6
|
-
import '../types-
|
|
7
|
-
import '../messages-
|
|
6
|
+
import '../types-C9NOgNJw.js';
|
|
7
|
+
import '../messages-CAzUPPJM.js';
|
|
8
8
|
import '../codec-BB7p8fJc.js';
|
|
9
|
-
import '../describe-
|
|
9
|
+
import '../describe-B_A5fbXH.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Graph-bound observe storage adapters.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
observeEventFrame
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-HJACH5PU.js";
|
|
4
|
+
import "../chunk-ZLFRB6FI.js";
|
|
5
|
+
import "../chunk-JKAYLDQV.js";
|
|
6
|
+
import "../chunk-K7FB3JTD.js";
|
|
7
|
+
import "../chunk-DGUM43GV.js";
|
|
7
8
|
|
|
8
9
|
// src/adapters/observe-storage.ts
|
|
9
10
|
function attachObserveSink(graph, sink, opts = {}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/adapters/observe-storage.ts"],"sourcesContent":["/**\n * Graph-bound observe storage adapters.\n *\n * Passive storage lives under ../storage. This subpath owns bridges that need\n * Graph.observe() and therefore sit above both graph and passive storage (D125).\n */\n\nimport type { Graph } from \"../graph/graph.js\";\nimport type { ObserveEvent } from \"../graph/inspect.js\";\nimport type { AppendLogStorageTier } from \"../storage/append-log.js\";\nimport {\n\ttype ObserveEventFrame,\n\ttype ObserveEventLogPage,\n\tobserveEventFrame,\n} from \"../storage/observe-event-log.js\";\n\n/** Adapter-owned sink for observed graph events (D57/D74/D125). */\nexport interface ObserveSink<T = ObserveEvent> {\n\t/** Persist or forward one mapped observe event. Thenables are serialized in observe order. */\n\twrite(event: T): void | PromiseLike<void>;\n\t/** Optional adapter flush barrier. Runs after all earlier writes. */\n\tflush?(): void | PromiseLike<void>;\n\t/** Optional adapter rollback hook. Runs after all earlier writes. */\n\trollback?(): void | PromiseLike<void>;\n\t/** Optional adapter cleanup hook. Runs once after queued work drains. */\n\tdispose?(): void | PromiseLike<void>;\n}\n\n/** Error routing context for attachObserveSink lifecycle hooks. */\nexport interface ObserveSinkErrorContext<T = ObserveEvent> {\n\tphase: \"map\" | \"write\" | \"flush\" | \"rollback\" | \"dispose\";\n\tevent?: ObserveEvent;\n\tvalue?: T;\n}\n\n/** Queue-drain completion callback for observe-sink control calls (D75). */\nexport type ObserveSinkDone = () => void;\n\n/** Options for attaching a sink to the read-only observe egress (D74/D125). */\nexport interface AttachObserveSinkOptions<T = ObserveEvent> {\n\t/** Optional exact-id or subtree path filter; forwarded to `graph.observe(path?)`. */\n\tpath?: string;\n\t/** Optional projection/filter. Return `undefined` to drop an observed event. */\n\tmap?: (event: ObserveEvent) => T | undefined;\n\t/** Optional error hook for mapper, write, and lifecycle failures. */\n\tonError?: (error: unknown, ctx: ObserveSinkErrorContext<T>) => void;\n}\n\n/** Done-only callback control handle for an attached observe sink (D75). */\nexport interface ObserveSinkHandle {\n\tflush(done?: ObserveSinkDone): void;\n\trollback(done?: ObserveSinkDone): void;\n\tdispose(done?: ObserveSinkDone): void;\n}\n\ntype QueueItem<T> =\n\t| { kind: \"write\"; event: ObserveEvent; value: T }\n\t| { kind: \"flush\"; done?: ObserveSinkDone }\n\t| { kind: \"rollback\"; done?: ObserveSinkDone }\n\t| { kind: \"dispose\" };\n\n/** Options for persisting Graph.observe() events into an append log. */\nexport interface AttachObserveEventLogOptions<T = ObserveEvent> {\n\tpath?: string;\n\tstream?: string;\n\tmap?: (event: ObserveEvent) => T | undefined;\n\tonError?: (error: unknown, ctx: ObserveSinkErrorContext<ObserveEventFrame<T>>) => void;\n}\n\n/** Done-callback lifecycle handle for an attached observe-event log. */\nexport interface ObserveEventLogHandle extends ObserveSinkHandle {\n\tflush(done?: ObserveSinkDone): void;\n\trollback(done?: ObserveSinkDone): void;\n\tdispose(done?: ObserveSinkDone): void;\n}\n\nexport type { ObserveEventFrame, ObserveEventLogPage };\n\n/**\n * Attach adapter-owned storage to `Graph.observe()` read-only egress (D57/D74/D125). Writes are\n * serialized in observe order; lifecycle barriers drain the queue without mutating graph topology.\n */\nexport function attachObserveSink<T = ObserveEvent>(\n\tgraph: Graph,\n\tsink: ObserveSink<T>,\n\topts: AttachObserveSinkOptions<T> = {},\n): ObserveSinkHandle {\n\tconst { map, onError, path } = opts;\n\tconst queue: QueueItem<T>[] = [];\n\tconst disposeDone: ObserveSinkDone[] = [];\n\tlet draining = false;\n\tlet disposeRequested = false;\n\tlet disposed = false;\n\n\tfunction report(error: unknown, ctx: ObserveSinkErrorContext<T>): void {\n\t\tif (!onError) return;\n\t\ttry {\n\t\t\tonError(error, ctx);\n\t\t} catch {\n\t\t\t// Error routing is best-effort; never let adapter logging wedge the queue.\n\t\t}\n\t}\n\n\tfunction callDone(done?: ObserveSinkDone): void {\n\t\ttry {\n\t\t\tdone?.();\n\t\t} catch {\n\t\t\t// Completion callbacks are advisory only; never wedge the queue on observer code.\n\t\t}\n\t}\n\n\tfunction run(item: QueueItem<T>): void | PromiseLike<void> {\n\t\tswitch (item.kind) {\n\t\t\tcase \"write\":\n\t\t\t\treturn sink.write(item.value);\n\t\t\tcase \"flush\":\n\t\t\t\treturn sink.flush?.();\n\t\t\tcase \"rollback\":\n\t\t\t\treturn sink.rollback?.();\n\t\t\tcase \"dispose\":\n\t\t\t\treturn sink.dispose?.();\n\t\t}\n\t}\n\n\tfunction finish(item: QueueItem<T>): void {\n\t\tif (item.kind === \"dispose\") {\n\t\t\tdisposed = true;\n\t\t\tfor (const done of disposeDone.splice(0)) callDone(done);\n\t\t} else if (item.kind !== \"write\") {\n\t\t\tcallDone(item.done);\n\t\t}\n\t\tdraining = false;\n\t\tdrain();\n\t}\n\n\tfunction fail(item: QueueItem<T>, error: unknown): void {\n\t\tif (item.kind === \"write\")\n\t\t\treport(error, { phase: \"write\", event: item.event, value: item.value });\n\t\telse report(error, { phase: item.kind });\n\t\tfinish(item);\n\t}\n\n\tfunction chainThenable(item: QueueItem<T>, value: unknown): boolean {\n\t\tif ((typeof value !== \"object\" && typeof value !== \"function\") || value === null) return false;\n\n\t\tlet then: unknown;\n\t\ttry {\n\t\t\tthen = (value as { then?: unknown }).then;\n\t\t} catch (error) {\n\t\t\tfail(item, error);\n\t\t\treturn true;\n\t\t}\n\t\tif (typeof then !== \"function\") return false;\n\n\t\tlet settled = false;\n\t\tconst settle = (next: () => void) => {\n\t\t\tif (settled) return;\n\t\t\tsettled = true;\n\t\t\tnext();\n\t\t};\n\t\ttry {\n\t\t\t(then as (onFulfilled: () => void, onRejected: (error: unknown) => void) => unknown).call(\n\t\t\t\tvalue,\n\t\t\t\t() => settle(() => finish(item)),\n\t\t\t\t(error) => settle(() => fail(item, error)),\n\t\t\t);\n\t\t} catch (error) {\n\t\t\tsettle(() => fail(item, error));\n\t\t}\n\t\treturn true;\n\t}\n\n\tfunction drain(): void {\n\t\tif (draining) return;\n\t\tconst item = queue.shift();\n\t\tif (!item) return;\n\t\tdraining = true;\n\t\tlet result: void | PromiseLike<void>;\n\t\ttry {\n\t\t\tresult = run(item);\n\t\t} catch (error) {\n\t\t\tfail(item, error);\n\t\t\treturn;\n\t\t}\n\t\tif (chainThenable(item, result)) return;\n\t\tfinish(item);\n\t}\n\n\tfunction enqueueBarrier(kind: \"flush\" | \"rollback\", done?: ObserveSinkDone): void {\n\t\tif (disposeRequested) {\n\t\t\tcallDone(done);\n\t\t\treturn;\n\t\t}\n\t\tqueue.push({ kind, done });\n\t\tdrain();\n\t}\n\n\tconst stop = graph.observe(path).subscribe((event) => {\n\t\tif (disposeRequested) return;\n\t\tlet value: T | undefined;\n\t\ttry {\n\t\t\tvalue = map ? map(event) : (event as unknown as T);\n\t\t} catch (error) {\n\t\t\treport(error, { phase: \"map\", event });\n\t\t\treturn;\n\t\t}\n\t\tif (value === undefined) return;\n\t\tqueue.push({ kind: \"write\", event, value });\n\t\tdrain();\n\t});\n\n\treturn {\n\t\tflush(done?: ObserveSinkDone): void {\n\t\t\tenqueueBarrier(\"flush\", done);\n\t\t},\n\t\trollback(done?: ObserveSinkDone): void {\n\t\t\tenqueueBarrier(\"rollback\", done);\n\t\t},\n\t\tdispose(done?: ObserveSinkDone): void {\n\t\t\tif (disposed) {\n\t\t\t\tcallDone(done);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (done) disposeDone.push(done);\n\t\t\tif (disposeRequested) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tdisposeRequested = true;\n\t\t\tstop();\n\t\t\tqueue.push({ kind: \"dispose\" });\n\t\t\tdrain();\n\t\t},\n\t};\n}\n\n/**\n * Persist Graph.observe() events to an append log. This is a graph-bound\n * adapter over passive storage frames, not graph restore or projection.\n */\nexport function attachObserveEventLog<T = ObserveEvent>(\n\tgraph: Graph,\n\tlog: AppendLogStorageTier<ObserveEventFrame<T>>,\n\topts: AttachObserveEventLogOptions<T> = {},\n): ObserveEventLogHandle {\n\treturn attachObserveSink<ObserveEventFrame<T>>(\n\t\tgraph,\n\t\t{ write: (frame) => log.append(frame).then(() => undefined) },\n\t\t{\n\t\t\tpath: opts.path,\n\t\t\tmap: (event) => {\n\t\t\t\tconst value = opts.map ? opts.map(event) : (event as unknown as T);\n\t\t\t\treturn value === undefined ? undefined : observeEventFrame(event, value, opts);\n\t\t\t},\n\t\t\tonError: opts.onError,\n\t\t},\n\t);\n}\n"],"mappings":";;;;;;;;AAkFO,SAAS,kBACf,OAC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A,EACP,CAAC;AAED,SAAO;AAAA,IACN,MAAM,MAA8B;AACnC,qBAAe,SAAS,IAAI;AAAA,IAC7B;AAAA,IACA,SAAS,MAA8B;AACtC,qBAAe,YAAY,IAAI;AAAA,IAChC;AAAA,IACA,QAAQ,MAA8B;AACrC,UAAI,UAAU;AACb,iBAAS,IAAI;AACb;AAAA,MACD;AACA,UAAI,KAAM,aAAY,KAAK,IAAI;AAC/B,UAAI,kBAAkB;AACrB;AAAA,MACD;AACA,yBAAmB;AACnB,WAAK;AACL,YAAM,KAAK,EAAE,MAAM,UAAU,CAAC;AAC9B,YAAM;AAAA,IACP;AAAA,EACD;AACD;AAMO,SAAS,sBACf,OACA,KACA,OAAwC,CAAC,GACjB;AACxB,SAAO;AAAA,IACN;AAAA,IACA,EAAE,OAAO,CAAC,UAAU,IAAI,OAAO,KAAK,EAAE,KAAK,MAAM,MAAS,EAAE;AAAA,IAC5D;AAAA,MACC,MAAM,KAAK;AAAA,MACX,KAAK,CAAC,UAAU;AACf,cAAM,QAAQ,KAAK,MAAM,KAAK,IAAI,KAAK,IAAK;AAC5C,eAAO,UAAU,SAAY,SAAY,kBAAkB,OAAO,OAAO,IAAI;AAAA,MAC9E;AAAA,MACA,SAAS,KAAK;AAAA,IACf;AAAA,EACD;AACD;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/adapters/observe-storage.ts"],"sourcesContent":["/**\n * Graph-bound observe storage adapters.\n *\n * Passive storage lives under ../storage. This subpath owns bridges that need\n * Graph.observe() and therefore sit above both graph and passive storage (D125).\n */\n\nimport type { Graph } from \"../graph/graph.js\";\nimport type { ObserveEvent } from \"../graph/inspect.js\";\nimport type { AppendLogStorageTier } from \"../storage/append-log.js\";\nimport {\n\ttype ObserveEventFrame,\n\ttype ObserveEventLogPage,\n\tobserveEventFrame,\n} from \"../storage/observe-event-log.js\";\n\n/** Adapter-owned sink for observed graph events (D57/D74/D125). */\nexport interface ObserveSink<T = ObserveEvent> {\n\t/** Persist or forward one mapped observe event. Thenables are serialized in observe order. */\n\twrite(event: T): void | PromiseLike<void>;\n\t/** Optional adapter flush barrier. Runs after all earlier writes. */\n\tflush?(): void | PromiseLike<void>;\n\t/** Optional adapter rollback hook. Runs after all earlier writes. */\n\trollback?(): void | PromiseLike<void>;\n\t/** Optional adapter cleanup hook. Runs once after queued work drains. */\n\tdispose?(): void | PromiseLike<void>;\n}\n\n/** Error routing context for attachObserveSink lifecycle hooks. */\nexport interface ObserveSinkErrorContext<T = ObserveEvent> {\n\tphase: \"map\" | \"write\" | \"flush\" | \"rollback\" | \"dispose\";\n\tevent?: ObserveEvent;\n\tvalue?: T;\n}\n\n/** Queue-drain completion callback for observe-sink control calls (D75). */\nexport type ObserveSinkDone = () => void;\n\n/** Options for attaching a sink to the read-only observe egress (D74/D125). */\nexport interface AttachObserveSinkOptions<T = ObserveEvent> {\n\t/** Optional exact-id or subtree path filter; forwarded to `graph.observe(path?)`. */\n\tpath?: string;\n\t/** Optional projection/filter. Return `undefined` to drop an observed event. */\n\tmap?: (event: ObserveEvent) => T | undefined;\n\t/** Optional error hook for mapper, write, and lifecycle failures. */\n\tonError?: (error: unknown, ctx: ObserveSinkErrorContext<T>) => void;\n}\n\n/** Done-only callback control handle for an attached observe sink (D75). */\nexport interface ObserveSinkHandle {\n\tflush(done?: ObserveSinkDone): void;\n\trollback(done?: ObserveSinkDone): void;\n\tdispose(done?: ObserveSinkDone): void;\n}\n\ntype QueueItem<T> =\n\t| { kind: \"write\"; event: ObserveEvent; value: T }\n\t| { kind: \"flush\"; done?: ObserveSinkDone }\n\t| { kind: \"rollback\"; done?: ObserveSinkDone }\n\t| { kind: \"dispose\" };\n\n/** Options for persisting Graph.observe() events into an append log. */\nexport interface AttachObserveEventLogOptions<T = ObserveEvent> {\n\tpath?: string;\n\tstream?: string;\n\tmap?: (event: ObserveEvent) => T | undefined;\n\tonError?: (error: unknown, ctx: ObserveSinkErrorContext<ObserveEventFrame<T>>) => void;\n}\n\n/** Done-callback lifecycle handle for an attached observe-event log. */\nexport interface ObserveEventLogHandle extends ObserveSinkHandle {\n\tflush(done?: ObserveSinkDone): void;\n\trollback(done?: ObserveSinkDone): void;\n\tdispose(done?: ObserveSinkDone): void;\n}\n\nexport type { ObserveEventFrame, ObserveEventLogPage };\n\n/**\n * Attach adapter-owned storage to `Graph.observe()` read-only egress (D57/D74/D125). Writes are\n * serialized in observe order; lifecycle barriers drain the queue without mutating graph topology.\n */\nexport function attachObserveSink<T = ObserveEvent>(\n\tgraph: Graph,\n\tsink: ObserveSink<T>,\n\topts: AttachObserveSinkOptions<T> = {},\n): ObserveSinkHandle {\n\tconst { map, onError, path } = opts;\n\tconst queue: QueueItem<T>[] = [];\n\tconst disposeDone: ObserveSinkDone[] = [];\n\tlet draining = false;\n\tlet disposeRequested = false;\n\tlet disposed = false;\n\n\tfunction report(error: unknown, ctx: ObserveSinkErrorContext<T>): void {\n\t\tif (!onError) return;\n\t\ttry {\n\t\t\tonError(error, ctx);\n\t\t} catch {\n\t\t\t// Error routing is best-effort; never let adapter logging wedge the queue.\n\t\t}\n\t}\n\n\tfunction callDone(done?: ObserveSinkDone): void {\n\t\ttry {\n\t\t\tdone?.();\n\t\t} catch {\n\t\t\t// Completion callbacks are advisory only; never wedge the queue on observer code.\n\t\t}\n\t}\n\n\tfunction run(item: QueueItem<T>): void | PromiseLike<void> {\n\t\tswitch (item.kind) {\n\t\t\tcase \"write\":\n\t\t\t\treturn sink.write(item.value);\n\t\t\tcase \"flush\":\n\t\t\t\treturn sink.flush?.();\n\t\t\tcase \"rollback\":\n\t\t\t\treturn sink.rollback?.();\n\t\t\tcase \"dispose\":\n\t\t\t\treturn sink.dispose?.();\n\t\t}\n\t}\n\n\tfunction finish(item: QueueItem<T>): void {\n\t\tif (item.kind === \"dispose\") {\n\t\t\tdisposed = true;\n\t\t\tfor (const done of disposeDone.splice(0)) callDone(done);\n\t\t} else if (item.kind !== \"write\") {\n\t\t\tcallDone(item.done);\n\t\t}\n\t\tdraining = false;\n\t\tdrain();\n\t}\n\n\tfunction fail(item: QueueItem<T>, error: unknown): void {\n\t\tif (item.kind === \"write\")\n\t\t\treport(error, { phase: \"write\", event: item.event, value: item.value });\n\t\telse report(error, { phase: item.kind });\n\t\tfinish(item);\n\t}\n\n\tfunction chainThenable(item: QueueItem<T>, value: unknown): boolean {\n\t\tif ((typeof value !== \"object\" && typeof value !== \"function\") || value === null) return false;\n\n\t\tlet then: unknown;\n\t\ttry {\n\t\t\tthen = (value as { then?: unknown }).then;\n\t\t} catch (error) {\n\t\t\tfail(item, error);\n\t\t\treturn true;\n\t\t}\n\t\tif (typeof then !== \"function\") return false;\n\n\t\tlet settled = false;\n\t\tconst settle = (next: () => void) => {\n\t\t\tif (settled) return;\n\t\t\tsettled = true;\n\t\t\tnext();\n\t\t};\n\t\ttry {\n\t\t\t(then as (onFulfilled: () => void, onRejected: (error: unknown) => void) => unknown).call(\n\t\t\t\tvalue,\n\t\t\t\t() => settle(() => finish(item)),\n\t\t\t\t(error) => settle(() => fail(item, error)),\n\t\t\t);\n\t\t} catch (error) {\n\t\t\tsettle(() => fail(item, error));\n\t\t}\n\t\treturn true;\n\t}\n\n\tfunction drain(): void {\n\t\tif (draining) return;\n\t\tconst item = queue.shift();\n\t\tif (!item) return;\n\t\tdraining = true;\n\t\tlet result: void | PromiseLike<void>;\n\t\ttry {\n\t\t\tresult = run(item);\n\t\t} catch (error) {\n\t\t\tfail(item, error);\n\t\t\treturn;\n\t\t}\n\t\tif (chainThenable(item, result)) return;\n\t\tfinish(item);\n\t}\n\n\tfunction enqueueBarrier(kind: \"flush\" | \"rollback\", done?: ObserveSinkDone): void {\n\t\tif (disposeRequested) {\n\t\t\tcallDone(done);\n\t\t\treturn;\n\t\t}\n\t\tqueue.push({ kind, done });\n\t\tdrain();\n\t}\n\n\tconst stop = graph.observe(path).subscribe((event) => {\n\t\tif (disposeRequested) return;\n\t\tlet value: T | undefined;\n\t\ttry {\n\t\t\tvalue = map ? map(event) : (event as unknown as T);\n\t\t} catch (error) {\n\t\t\treport(error, { phase: \"map\", event });\n\t\t\treturn;\n\t\t}\n\t\tif (value === undefined) return;\n\t\tqueue.push({ kind: \"write\", event, value });\n\t\tdrain();\n\t});\n\n\treturn {\n\t\tflush(done?: ObserveSinkDone): void {\n\t\t\tenqueueBarrier(\"flush\", done);\n\t\t},\n\t\trollback(done?: ObserveSinkDone): void {\n\t\t\tenqueueBarrier(\"rollback\", done);\n\t\t},\n\t\tdispose(done?: ObserveSinkDone): void {\n\t\t\tif (disposed) {\n\t\t\t\tcallDone(done);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (done) disposeDone.push(done);\n\t\t\tif (disposeRequested) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tdisposeRequested = true;\n\t\t\tstop();\n\t\t\tqueue.push({ kind: \"dispose\" });\n\t\t\tdrain();\n\t\t},\n\t};\n}\n\n/**\n * Persist Graph.observe() events to an append log. This is a graph-bound\n * adapter over passive storage frames, not graph restore or projection.\n */\nexport function attachObserveEventLog<T = ObserveEvent>(\n\tgraph: Graph,\n\tlog: AppendLogStorageTier<ObserveEventFrame<T>>,\n\topts: AttachObserveEventLogOptions<T> = {},\n): ObserveEventLogHandle {\n\treturn attachObserveSink<ObserveEventFrame<T>>(\n\t\tgraph,\n\t\t{ write: (frame) => log.append(frame).then(() => undefined) },\n\t\t{\n\t\t\tpath: opts.path,\n\t\t\tmap: (event) => {\n\t\t\t\tconst value = opts.map ? opts.map(event) : (event as unknown as T);\n\t\t\t\treturn value === undefined ? undefined : observeEventFrame(event, value, opts);\n\t\t\t},\n\t\t\tonError: opts.onError,\n\t\t},\n\t);\n}\n"],"mappings":";;;;;;;;;AAkFO,SAAS,kBACf,OACA,MACA,OAAoC,CAAC,GACjB;AACpB,QAAM,EAAE,KAAK,SAAS,KAAK,IAAI;AAC/B,QAAM,QAAwB,CAAC;AAC/B,QAAM,cAAiC,CAAC;AACxC,MAAI,WAAW;AACf,MAAI,mBAAmB;AACvB,MAAI,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