@graphrefly/graphrefly 0.44.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -19
- package/dist/_internal-B23BagFd.d.cts +33 -0
- package/dist/_internal-B23BagFd.d.ts +33 -0
- package/dist/adaptive-rate-limiter-Dch_xYIi.d.cts +111 -0
- package/dist/adaptive-rate-limiter-Dch_xYIi.d.ts +111 -0
- package/dist/agents-C0Ji9ldU.d.cts +629 -0
- package/dist/agents-C9zexT7I.d.ts +629 -0
- package/dist/audit-BAXb3VOg.d.ts +246 -0
- package/dist/audit-C_bPfkqS.d.cts +246 -0
- package/dist/backoff-7KIK3WQW.js +24 -0
- package/dist/backoff-7KIK3WQW.js.map +1 -0
- package/dist/backoff-Bnb9OoPh.d.cts +6 -0
- package/dist/backoff-Bnb9OoPh.d.ts +6 -0
- package/dist/base/composition/index.cjs +811 -0
- package/dist/base/composition/index.cjs.map +1 -0
- package/dist/base/composition/index.d.cts +469 -0
- package/dist/base/composition/index.d.ts +469 -0
- package/dist/base/composition/index.js +40 -0
- package/dist/base/composition/index.js.map +1 -0
- package/dist/base/index.cjs +6336 -0
- package/dist/base/index.cjs.map +1 -0
- package/dist/base/index.d.cts +22 -0
- package/dist/base/index.d.ts +22 -0
- package/dist/base/index.js +259 -0
- package/dist/base/index.js.map +1 -0
- package/dist/base/io/index.cjs +3270 -0
- package/dist/base/io/index.cjs.map +1 -0
- package/dist/base/io/index.d.cts +2245 -0
- package/dist/base/io/index.d.ts +2245 -0
- package/dist/base/io/index.js +117 -0
- package/dist/base/io/index.js.map +1 -0
- package/dist/base/meta/index.cjs +43 -0
- package/dist/base/meta/index.cjs.map +1 -0
- package/dist/base/meta/index.d.cts +45 -0
- package/dist/base/meta/index.d.ts +45 -0
- package/dist/base/meta/index.js +13 -0
- package/dist/base/meta/index.js.map +1 -0
- package/dist/base/mutation/index.cjs +200 -0
- package/dist/base/mutation/index.cjs.map +1 -0
- package/dist/base/mutation/index.d.cts +177 -0
- package/dist/base/mutation/index.d.ts +177 -0
- package/dist/base/mutation/index.js +22 -0
- package/dist/base/mutation/index.js.map +1 -0
- package/dist/base/render/index.cjs +1120 -0
- package/dist/base/render/index.cjs.map +1 -0
- package/dist/{extra/render/index.d.ts → base/render/index.d.cts} +75 -31
- package/dist/{extra/render/index.d.cts → base/render/index.d.ts} +75 -31
- package/dist/base/render/index.js +24 -0
- package/dist/base/render/index.js.map +1 -0
- package/dist/base/sources/browser/index.cjs +172 -0
- package/dist/base/sources/browser/index.cjs.map +1 -0
- package/dist/base/sources/browser/index.d.cts +84 -0
- package/dist/base/sources/browser/index.d.ts +84 -0
- package/dist/base/sources/browser/index.js +151 -0
- package/dist/base/sources/browser/index.js.map +1 -0
- package/dist/base/sources/event/index.cjs +98 -0
- package/dist/base/sources/event/index.cjs.map +1 -0
- package/dist/base/sources/event/index.d.cts +91 -0
- package/dist/base/sources/event/index.d.ts +91 -0
- package/dist/base/sources/event/index.js +13 -0
- package/dist/base/sources/event/index.js.map +1 -0
- package/dist/base/sources/index.cjs +755 -0
- package/dist/base/sources/index.cjs.map +1 -0
- package/dist/{extra/sources.d.ts → base/sources/index.d.cts} +74 -301
- package/dist/{extra/sources.d.cts → base/sources/index.d.ts} +74 -301
- package/dist/base/sources/index.js +42 -0
- package/dist/base/sources/index.js.map +1 -0
- package/dist/base/sources/node/index.cjs +320 -0
- package/dist/base/sources/node/index.cjs.map +1 -0
- package/dist/{extra/node.d.ts → base/sources/node/index.d.cts} +35 -37
- package/dist/{extra/node.d.cts → base/sources/node/index.d.ts} +35 -37
- package/dist/base/sources/node/index.js +306 -0
- package/dist/base/sources/node/index.js.map +1 -0
- package/dist/base/utils/index.cjs +37 -0
- package/dist/base/utils/index.cjs.map +1 -0
- package/dist/base/utils/index.d.cts +37 -0
- package/dist/base/utils/index.d.ts +37 -0
- package/dist/base/utils/index.js +11 -0
- package/dist/base/utils/index.js.map +1 -0
- package/dist/base/worker/index.cjs +548 -0
- package/dist/base/worker/index.cjs.map +1 -0
- package/dist/base/worker/index.d.cts +207 -0
- package/dist/base/worker/index.d.ts +207 -0
- package/dist/base/worker/index.js +20 -0
- package/dist/base/worker/index.js.map +1 -0
- package/dist/breaker-C9skL3d8.d.ts +175 -0
- package/dist/breaker-ugSdq54q.d.cts +175 -0
- package/dist/{cascading-BglDkMdX.d.cts → cascading-CSSbKGrJ.d.ts} +3 -3
- package/dist/{cascading-MFgxu7Yo.d.ts → cascading-baGkiihI.d.cts} +3 -3
- package/dist/chunk-255UCBG4.js +58 -0
- package/dist/chunk-255UCBG4.js.map +1 -0
- package/dist/chunk-2LO3EL4W.js +1 -0
- package/dist/chunk-2LO3EL4W.js.map +1 -0
- package/dist/chunk-2OB3CEJS.js +1065 -0
- package/dist/chunk-2OB3CEJS.js.map +1 -0
- package/dist/chunk-36NMM65U.js +144 -0
- package/dist/chunk-36NMM65U.js.map +1 -0
- package/dist/chunk-3CEXCBN6.js +1 -0
- package/dist/chunk-3CEXCBN6.js.map +1 -0
- package/dist/chunk-3MUSLI6E.js +105 -0
- package/dist/chunk-3MUSLI6E.js.map +1 -0
- package/dist/chunk-3PSLNJDU.js +884 -0
- package/dist/chunk-3PSLNJDU.js.map +1 -0
- package/dist/chunk-3QZY5BI7.js +92 -0
- package/dist/chunk-3QZY5BI7.js.map +1 -0
- package/dist/chunk-42FQ27MQ.js +594 -0
- package/dist/chunk-42FQ27MQ.js.map +1 -0
- package/dist/chunk-4GYMCUDZ.js +1085 -0
- package/dist/chunk-4GYMCUDZ.js.map +1 -0
- package/dist/chunk-4S53H2KR.js +382 -0
- package/dist/chunk-4S53H2KR.js.map +1 -0
- package/dist/chunk-4XCHZRUJ.js +128 -0
- package/dist/chunk-4XCHZRUJ.js.map +1 -0
- package/dist/chunk-5THCXDWY.js +725 -0
- package/dist/chunk-5THCXDWY.js.map +1 -0
- package/dist/chunk-6XZYT4SW.js +256 -0
- package/dist/chunk-6XZYT4SW.js.map +1 -0
- package/dist/chunk-7EGRP2VX.js +76 -0
- package/dist/chunk-7EGRP2VX.js.map +1 -0
- package/dist/chunk-A7KV5UK4.js +150 -0
- package/dist/chunk-A7KV5UK4.js.map +1 -0
- package/dist/chunk-APY2SS5X.js +156 -0
- package/dist/chunk-APY2SS5X.js.map +1 -0
- package/dist/chunk-AZDQPQ3V.js +66 -0
- package/dist/chunk-AZDQPQ3V.js.map +1 -0
- package/dist/chunk-BU3SEFA5.js +90 -0
- package/dist/chunk-BU3SEFA5.js.map +1 -0
- package/dist/chunk-BXGZFGZ4.js +189 -0
- package/dist/chunk-BXGZFGZ4.js.map +1 -0
- package/dist/chunk-CGHORL6G.js +579 -0
- package/dist/chunk-CGHORL6G.js.map +1 -0
- package/dist/chunk-CXANAIZU.js +530 -0
- package/dist/chunk-CXANAIZU.js.map +1 -0
- package/dist/chunk-CZQHCKKG.js +1 -0
- package/dist/chunk-CZQHCKKG.js.map +1 -0
- package/dist/chunk-DKNHAICT.js +133 -0
- package/dist/chunk-DKNHAICT.js.map +1 -0
- package/dist/chunk-DM4OMPWK.js +584 -0
- package/dist/chunk-DM4OMPWK.js.map +1 -0
- package/dist/chunk-DMSNO6ZB.js +452 -0
- package/dist/chunk-DMSNO6ZB.js.map +1 -0
- package/dist/chunk-E5OZPDIW.js +229 -0
- package/dist/chunk-E5OZPDIW.js.map +1 -0
- package/dist/chunk-EVYY4X5A.js +509 -0
- package/dist/chunk-EVYY4X5A.js.map +1 -0
- package/dist/chunk-FDFD67UO.js +1 -0
- package/dist/chunk-FDFD67UO.js.map +1 -0
- package/dist/chunk-FMPF42Q4.js +13 -0
- package/dist/chunk-FMPF42Q4.js.map +1 -0
- package/dist/chunk-FR6RGA3B.js +1277 -0
- package/dist/chunk-FR6RGA3B.js.map +1 -0
- package/dist/chunk-FW23JYNQ.js +454 -0
- package/dist/chunk-FW23JYNQ.js.map +1 -0
- package/dist/chunk-GBCENOLN.js +1575 -0
- package/dist/chunk-GBCENOLN.js.map +1 -0
- package/dist/chunk-HL7HUJIX.js +1 -0
- package/dist/chunk-HL7HUJIX.js.map +1 -0
- package/dist/chunk-HULCUY35.js +2508 -0
- package/dist/chunk-HULCUY35.js.map +1 -0
- package/dist/chunk-IHTWQEDR.js +169 -0
- package/dist/chunk-IHTWQEDR.js.map +1 -0
- package/dist/chunk-IJRR6YAI.js +128 -0
- package/dist/chunk-IJRR6YAI.js.map +1 -0
- package/dist/chunk-JGFRAFDL.js +221 -0
- package/dist/chunk-JGFRAFDL.js.map +1 -0
- package/dist/chunk-KIIXR252.js +211 -0
- package/dist/chunk-KIIXR252.js.map +1 -0
- package/dist/chunk-KN3H5CNT.js +11 -0
- package/dist/chunk-KN3H5CNT.js.map +1 -0
- package/dist/chunk-KPG3DGLA.js +1 -0
- package/dist/chunk-KPG3DGLA.js.map +1 -0
- package/dist/chunk-KRNQ6RGQ.js +1 -0
- package/dist/chunk-KRNQ6RGQ.js.map +1 -0
- package/dist/chunk-LBAJK24K.js +1071 -0
- package/dist/chunk-LBAJK24K.js.map +1 -0
- package/dist/chunk-MLTPJMH6.js +417 -0
- package/dist/chunk-MLTPJMH6.js.map +1 -0
- package/dist/chunk-N3SZ7BMH.js +95 -0
- package/dist/chunk-N3SZ7BMH.js.map +1 -0
- package/dist/chunk-NDUD3IMO.js +540 -0
- package/dist/chunk-NDUD3IMO.js.map +1 -0
- package/dist/chunk-NY2PYHNC.js +873 -0
- package/dist/chunk-NY2PYHNC.js.map +1 -0
- package/dist/chunk-O3MT7DYI.js +225 -0
- package/dist/chunk-O3MT7DYI.js.map +1 -0
- package/dist/chunk-OCUDSN63.js +2386 -0
- package/dist/chunk-OCUDSN63.js.map +1 -0
- package/dist/chunk-OIWU3NYV.js +199 -0
- package/dist/chunk-OIWU3NYV.js.map +1 -0
- package/dist/chunk-OO5BM6CJ.js +1153 -0
- package/dist/chunk-OO5BM6CJ.js.map +1 -0
- package/dist/chunk-OQUIJT7A.js +1 -0
- package/dist/chunk-OQUIJT7A.js.map +1 -0
- package/dist/chunk-P5LBT622.js +105 -0
- package/dist/chunk-P5LBT622.js.map +1 -0
- package/dist/chunk-PKGQG5QQ.js +519 -0
- package/dist/chunk-PKGQG5QQ.js.map +1 -0
- package/dist/chunk-PKPO3JTZ.js +561 -0
- package/dist/chunk-PKPO3JTZ.js.map +1 -0
- package/dist/chunk-PL5UDIQ5.js +118 -0
- package/dist/chunk-PL5UDIQ5.js.map +1 -0
- package/dist/chunk-PZWISPIQ.js +432 -0
- package/dist/chunk-PZWISPIQ.js.map +1 -0
- package/dist/chunk-Q3EYOCZB.js +510 -0
- package/dist/chunk-Q3EYOCZB.js.map +1 -0
- package/dist/chunk-QMBYUVRL.js +15 -0
- package/dist/chunk-QMBYUVRL.js.map +1 -0
- package/dist/chunk-RAGGHLCV.js +200 -0
- package/dist/chunk-RAGGHLCV.js.map +1 -0
- package/dist/chunk-RGL53X5G.js +574 -0
- package/dist/chunk-RGL53X5G.js.map +1 -0
- package/dist/chunk-RJOG4IJU.js +1039 -0
- package/dist/chunk-RJOG4IJU.js.map +1 -0
- package/dist/chunk-SOOKUYVM.js +403 -0
- package/dist/chunk-SOOKUYVM.js.map +1 -0
- package/dist/chunk-T5BN5KG7.js +1 -0
- package/dist/chunk-T5BN5KG7.js.map +1 -0
- package/dist/chunk-TP7244Y6.js +207 -0
- package/dist/chunk-TP7244Y6.js.map +1 -0
- package/dist/chunk-TSBFTJKM.js +57 -0
- package/dist/chunk-TSBFTJKM.js.map +1 -0
- package/dist/chunk-URQ2CBBF.js +143 -0
- package/dist/chunk-URQ2CBBF.js.map +1 -0
- package/dist/chunk-W2BOPXTI.js +1 -0
- package/dist/chunk-W2BOPXTI.js.map +1 -0
- package/dist/chunk-WKSWLSCX.js +207 -0
- package/dist/chunk-WKSWLSCX.js.map +1 -0
- package/dist/chunk-Y52CS6YA.js +88 -0
- package/dist/chunk-Y52CS6YA.js.map +1 -0
- package/dist/chunk-YCBUWK77.js +92 -0
- package/dist/chunk-YCBUWK77.js.map +1 -0
- package/dist/chunk-YJ4U2D2C.js +314 -0
- package/dist/chunk-YJ4U2D2C.js.map +1 -0
- package/dist/chunk-Z4YXAUDN.js +239 -0
- package/dist/chunk-Z4YXAUDN.js.map +1 -0
- package/dist/chunk-Z6EGP5D7.js +92 -0
- package/dist/chunk-Z6EGP5D7.js.map +1 -0
- package/dist/compat/index.cjs +3100 -9
- package/dist/compat/index.cjs.map +1 -0
- package/dist/compat/index.d.cts +112 -18
- package/dist/compat/index.d.ts +112 -18
- package/dist/compat/index.js +176 -1
- package/dist/compat/index.js.map +1 -0
- package/dist/compat/jotai/index.cjs +149 -1
- package/dist/compat/jotai/index.cjs.map +1 -0
- package/dist/compat/jotai/index.d.cts +2 -2
- package/dist/compat/jotai/index.d.ts +2 -2
- package/dist/compat/jotai/index.js +8 -1
- package/dist/compat/jotai/index.js.map +1 -0
- package/dist/compat/nanostores/index.cjs +205 -1
- package/dist/compat/nanostores/index.cjs.map +1 -0
- package/dist/compat/nanostores/index.d.cts +2 -2
- package/dist/compat/nanostores/index.d.ts +2 -2
- package/dist/compat/nanostores/index.js +22 -1
- package/dist/compat/nanostores/index.js.map +1 -0
- package/dist/compat/nestjs/index.cjs +2241 -9
- package/dist/compat/nestjs/index.cjs.map +1 -0
- package/dist/compat/nestjs/index.d.cts +7 -10
- package/dist/compat/nestjs/index.d.ts +7 -10
- package/dist/compat/nestjs/index.js +78 -1
- package/dist/compat/nestjs/index.js.map +1 -0
- package/dist/compat/react/index.cjs +114 -1
- package/dist/compat/react/index.cjs.map +1 -0
- package/dist/compat/react/index.d.cts +2 -2
- package/dist/compat/react/index.d.ts +2 -2
- package/dist/compat/react/index.js +12 -1
- package/dist/compat/react/index.js.map +1 -0
- package/dist/compat/solid/index.cjs +101 -1
- package/dist/compat/solid/index.cjs.map +1 -0
- package/dist/compat/solid/index.d.cts +2 -2
- package/dist/compat/solid/index.d.ts +2 -2
- package/dist/compat/solid/index.js +12 -1
- package/dist/compat/solid/index.js.map +1 -0
- package/dist/compat/svelte/index.cjs +104 -1
- package/dist/compat/svelte/index.cjs.map +1 -0
- package/dist/compat/svelte/index.d.cts +2 -2
- package/dist/compat/svelte/index.d.ts +2 -2
- package/dist/compat/svelte/index.js +12 -1
- package/dist/compat/svelte/index.js.map +1 -0
- package/dist/compat/vue/index.cjs +119 -1
- package/dist/compat/vue/index.cjs.map +1 -0
- package/dist/compat/vue/index.d.cts +2 -2
- package/dist/compat/vue/index.d.ts +2 -2
- package/dist/compat/vue/index.js +12 -1
- package/dist/compat/vue/index.js.map +1 -0
- package/dist/compat/zustand/index.cjs +69 -3
- package/dist/compat/zustand/index.cjs.map +1 -0
- package/dist/compat/zustand/index.d.cts +2 -6
- package/dist/compat/zustand/index.d.ts +2 -6
- package/dist/compat/zustand/index.js +8 -1
- package/dist/compat/zustand/index.js.map +1 -0
- package/dist/distill-De6Rnn15.d.cts +48 -0
- package/dist/distill-De6Rnn15.d.ts +48 -0
- package/dist/external-register-CWyroXb_.d.cts +138 -0
- package/dist/external-register-CWyroXb_.d.ts +138 -0
- package/dist/{fallback-74oxi34l.d.cts → fallback-Bx46zqky.d.cts} +3 -10
- package/dist/{fallback-DUyyBTBK.d.ts → fallback-pIWW8A2d.d.ts} +3 -10
- package/dist/guarded-execution-BcdtxeBk.d.ts +207 -0
- package/dist/guarded-execution-C-3hnP6A.d.cts +207 -0
- package/dist/{index-CBGUK09R.d.ts → index-5SU_O78r.d.cts} +5 -5
- package/dist/{index-BmZXHqkE.d.ts → index-B6pxYJzO.d.cts} +1 -1
- package/dist/{index-hcDJ8PSI.d.cts → index-B6pxYJzO.d.ts} +1 -1
- package/dist/{index-C5stwKcw.d.cts → index-BFsng6v1.d.cts} +1 -1
- package/dist/{index-CdAlHFEt.d.ts → index-BFsng6v1.d.ts} +1 -1
- package/dist/{index-_6ODbuOu.d.cts → index-Bg-LwEt-.d.cts} +1 -1
- package/dist/{index-CviRnE4K.d.ts → index-Bg-LwEt-.d.ts} +1 -1
- package/dist/{index-CBBLl_rc.d.ts → index-Brp888t0.d.cts} +1 -1
- package/dist/{index-BQSKmbuG.d.cts → index-Brp888t0.d.ts} +1 -1
- package/dist/{index-sqkqlb1p.d.ts → index-CDfk6jHN.d.cts} +1 -1
- package/dist/{index-ZVQhLa2i.d.cts → index-CDfk6jHN.d.ts} +1 -1
- package/dist/{index-Climxqsu.d.cts → index-CEXCtYYJ.d.ts} +5 -5
- package/dist/index-DLAxYaN5.d.cts +169 -0
- package/dist/index-DLAxYaN5.d.ts +169 -0
- package/dist/{index-CK29LV56.d.cts → index-DeWbQzMe.d.cts} +1 -1
- package/dist/{index-CPQlGA29.d.ts → index-DeWbQzMe.d.ts} +1 -1
- package/dist/{index-BrPrLl4e.d.cts → index-dX9IzPqj.d.cts} +1 -1
- package/dist/{index-Dgl1HpPn.d.ts → index-dX9IzPqj.d.ts} +1 -1
- package/dist/index.cjs +25934 -191
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +58 -94
- package/dist/index.d.ts +58 -94
- package/dist/index.js +852 -1
- package/dist/index.js.map +1 -0
- package/dist/layout-types-B5aiHYgk.d.cts +72 -0
- package/dist/layout-types-B5aiHYgk.d.ts +72 -0
- package/dist/memory-composers-BryDrRBX.d.cts +529 -0
- package/dist/memory-composers-CVQqPYEV.d.ts +529 -0
- package/dist/{observable-DWjNfLvC.d.ts → observable-BXQoW1P-.d.cts} +1 -1
- package/dist/{observable-e3eiPPFy.d.cts → observable-BXQoW1P-.d.ts} +1 -1
- package/dist/{pipeline-graph-Sgj0gCwn.d.ts → pipeline-graph-Ce47CB6Y.d.cts} +13 -10
- package/dist/{pipeline-graph-CIKhynsF.d.cts → pipeline-graph-DXCwY9vG.d.ts} +13 -10
- package/dist/presets/ai/index.cjs +4377 -0
- package/dist/presets/ai/index.cjs.map +1 -0
- package/dist/presets/ai/index.d.cts +98 -0
- package/dist/presets/ai/index.d.ts +98 -0
- package/dist/presets/ai/index.js +54 -0
- package/dist/presets/ai/index.js.map +1 -0
- package/dist/presets/harness/index.cjs +5929 -0
- package/dist/presets/harness/index.cjs.map +1 -0
- package/dist/presets/harness/index.d.cts +566 -0
- package/dist/presets/harness/index.d.ts +566 -0
- package/dist/presets/harness/index.js +71 -0
- package/dist/presets/harness/index.js.map +1 -0
- package/dist/presets/index.cjs +9782 -0
- package/dist/presets/index.cjs.map +1 -0
- package/dist/presets/index.d.cts +28 -0
- package/dist/presets/index.d.ts +28 -0
- package/dist/presets/index.js +129 -0
- package/dist/presets/index.js.map +1 -0
- package/dist/presets/inspect/index.cjs +1087 -0
- package/dist/presets/inspect/index.cjs.map +1 -0
- package/dist/presets/inspect/index.d.cts +172 -0
- package/dist/presets/inspect/index.d.ts +172 -0
- package/dist/presets/inspect/index.js +21 -0
- package/dist/presets/inspect/index.js.map +1 -0
- package/dist/presets/resilience/index.cjs +1593 -0
- package/dist/presets/resilience/index.cjs.map +1 -0
- package/dist/presets/resilience/index.d.cts +205 -0
- package/dist/presets/resilience/index.d.ts +205 -0
- package/dist/presets/resilience/index.js +18 -0
- package/dist/presets/resilience/index.js.map +1 -0
- package/dist/rate-limiter-CEALq4N1.d.ts +559 -0
- package/dist/rate-limiter-DpVbSYdH.d.cts +559 -0
- package/dist/{reactive-layout-DOTs9P3X.d.ts → reactive-layout-fswlBUvX.d.cts} +19 -7
- package/dist/{reactive-layout-DgctbqZo.d.cts → reactive-layout-fswlBUvX.d.ts} +19 -7
- package/dist/retry-BDbRZ_gx.d.ts +125 -0
- package/dist/retry-DWuhjvsA.d.cts +125 -0
- package/dist/solutions/index.cjs +8200 -0
- package/dist/solutions/index.cjs.map +1 -0
- package/dist/solutions/index.d.cts +23 -0
- package/dist/solutions/index.d.ts +23 -0
- package/dist/solutions/index.js +55 -0
- package/dist/solutions/index.js.map +1 -0
- package/dist/spawnable-5mDY501F.d.cts +746 -0
- package/dist/spawnable-D3lR0oQu.d.ts +746 -0
- package/dist/status-U-rUI79b.d.cts +84 -0
- package/dist/status-U-rUI79b.d.ts +84 -0
- package/dist/timeout-U5O4ESK3.js +12 -0
- package/dist/timeout-U5O4ESK3.js.map +1 -0
- package/dist/{types-CWFysE9E.d.ts → types-BB5Lw-pB.d.cts} +3 -3
- package/dist/{types-C0_yquda.d.cts → types-BB5Lw-pB.d.ts} +3 -3
- package/dist/types-CJWIMJiZ.d.ts +548 -0
- package/dist/types-vCq7ShIm.d.cts +548 -0
- package/dist/utils/ai/browser.cjs +2169 -0
- package/dist/utils/ai/browser.cjs.map +1 -0
- package/dist/{patterns → utils}/ai/browser.d.cts +7 -5
- package/dist/{patterns → utils}/ai/browser.d.ts +7 -5
- package/dist/utils/ai/browser.js +255 -0
- package/dist/utils/ai/browser.js.map +1 -0
- package/dist/utils/ai/index.cjs +8468 -0
- package/dist/utils/ai/index.cjs.map +1 -0
- package/dist/{index-CR8QpwX8.d.ts → utils/ai/index.d.cts} +73 -976
- package/dist/{index-UPSiS-X7.d.cts → utils/ai/index.d.ts} +73 -976
- package/dist/utils/ai/index.js +173 -0
- package/dist/utils/ai/index.js.map +1 -0
- package/dist/utils/ai/node.cjs +648 -0
- package/dist/utils/ai/node.cjs.map +1 -0
- package/dist/{patterns → utils}/ai/node.d.cts +5 -7
- package/dist/{patterns → utils}/ai/node.d.ts +5 -7
- package/dist/utils/ai/node.js +84 -0
- package/dist/utils/ai/node.js.map +1 -0
- package/dist/utils/cqrs/index.cjs +1036 -0
- package/dist/utils/cqrs/index.cjs.map +1 -0
- package/dist/{index-CeFiHtAg.d.ts → utils/cqrs/index.d.cts} +7 -37
- package/dist/{index-B-_tFaqV.d.cts → utils/cqrs/index.d.ts} +7 -37
- package/dist/utils/cqrs/index.js +18 -0
- package/dist/utils/cqrs/index.js.map +1 -0
- package/dist/utils/demo-shell/index.cjs +865 -0
- package/dist/utils/demo-shell/index.cjs.map +1 -0
- package/dist/{index-B8YnZpIR.d.ts → utils/demo-shell/index.d.cts} +4 -16
- package/dist/{index-Cwv0KWcU.d.cts → utils/demo-shell/index.d.ts} +4 -16
- package/dist/utils/demo-shell/index.js +13 -0
- package/dist/utils/demo-shell/index.js.map +1 -0
- package/dist/utils/domain-templates/index.cjs +732 -0
- package/dist/utils/domain-templates/index.cjs.map +1 -0
- package/dist/{index-CzLVrjxn.d.ts → utils/domain-templates/index.d.cts} +3 -20
- package/dist/{index-BaQaY_IQ.d.cts → utils/domain-templates/index.d.ts} +3 -20
- package/dist/utils/domain-templates/index.js +17 -0
- package/dist/utils/domain-templates/index.js.map +1 -0
- package/dist/utils/graphspec/index.cjs +1174 -0
- package/dist/utils/graphspec/index.cjs.map +1 -0
- package/dist/{index-CMh5Rz1y.d.ts → utils/graphspec/index.d.cts} +106 -42
- package/dist/{index-CS0LTlB8.d.cts → utils/graphspec/index.d.ts} +106 -42
- package/dist/utils/graphspec/index.js +35 -0
- package/dist/utils/graphspec/index.js.map +1 -0
- package/dist/utils/harness/index.cjs +656 -0
- package/dist/utils/harness/index.cjs.map +1 -0
- package/dist/utils/harness/index.d.cts +542 -0
- package/dist/utils/harness/index.d.ts +542 -0
- package/dist/utils/harness/index.js +56 -0
- package/dist/utils/harness/index.js.map +1 -0
- package/dist/utils/index.cjs +17609 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +96 -0
- package/dist/utils/index.d.ts +96 -0
- package/dist/utils/index.js +514 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/inspect/index.cjs +807 -0
- package/dist/utils/inspect/index.cjs.map +1 -0
- package/dist/utils/inspect/index.d.cts +123 -0
- package/dist/utils/inspect/index.d.ts +123 -0
- package/dist/utils/inspect/index.js +30 -0
- package/dist/utils/inspect/index.js.map +1 -0
- package/dist/utils/job-queue/index.cjs +717 -0
- package/dist/utils/job-queue/index.cjs.map +1 -0
- package/dist/{index-DisjX8a-.d.ts → utils/job-queue/index.d.cts} +5 -26
- package/dist/{index-DV_1YuVk.d.cts → utils/job-queue/index.d.ts} +5 -26
- package/dist/utils/job-queue/index.js +18 -0
- package/dist/utils/job-queue/index.js.map +1 -0
- package/dist/utils/memory/index.cjs +1451 -0
- package/dist/utils/memory/index.cjs.map +1 -0
- package/dist/{index-CZ3r5Rxp.d.ts → utils/memory/index.d.cts} +242 -34
- package/dist/{index-B17QddL1.d.cts → utils/memory/index.d.ts} +242 -34
- package/dist/utils/memory/index.js +19 -0
- package/dist/utils/memory/index.js.map +1 -0
- package/dist/utils/messaging/index.cjs +666 -0
- package/dist/utils/messaging/index.cjs.map +1 -0
- package/dist/utils/messaging/index.d.cts +562 -0
- package/dist/utils/messaging/index.d.ts +562 -0
- package/dist/utils/messaging/index.js +50 -0
- package/dist/utils/messaging/index.js.map +1 -0
- package/dist/utils/orchestration/index.cjs +876 -0
- package/dist/utils/orchestration/index.cjs.map +1 -0
- package/dist/utils/orchestration/index.d.cts +233 -0
- package/dist/utils/orchestration/index.d.ts +233 -0
- package/dist/utils/orchestration/index.js +19 -0
- package/dist/utils/orchestration/index.js.map +1 -0
- package/dist/utils/process/index.cjs +743 -0
- package/dist/utils/process/index.cjs.map +1 -0
- package/dist/{index-p09KSrTN.d.ts → utils/process/index.d.cts} +97 -44
- package/dist/{index-CasX6Pfq.d.cts → utils/process/index.d.ts} +97 -44
- package/dist/utils/process/index.js +14 -0
- package/dist/utils/process/index.js.map +1 -0
- package/dist/utils/reactive-layout/index.cjs +1607 -0
- package/dist/utils/reactive-layout/index.cjs.map +1 -0
- package/dist/{index-B5S8ULbU.d.ts → utils/reactive-layout/index.d.cts} +58 -81
- package/dist/{index-Dc4AYqrJ.d.cts → utils/reactive-layout/index.d.ts} +58 -81
- package/dist/utils/reactive-layout/index.js +52 -0
- package/dist/utils/reactive-layout/index.js.map +1 -0
- package/dist/utils/reduction/index.cjs +203 -0
- package/dist/utils/reduction/index.cjs.map +1 -0
- package/dist/{index-Byu-OpX_.d.ts → utils/reduction/index.d.cts} +6 -17
- package/dist/{index-tRCxuAXF.d.cts → utils/reduction/index.d.ts} +6 -17
- package/dist/utils/reduction/index.js +14 -0
- package/dist/utils/reduction/index.js.map +1 -0
- package/dist/utils/resilience/index.cjs +1617 -0
- package/dist/utils/resilience/index.cjs.map +1 -0
- package/dist/utils/resilience/index.d.cts +9 -0
- package/dist/utils/resilience/index.d.ts +9 -0
- package/dist/utils/resilience/index.js +44 -0
- package/dist/utils/resilience/index.js.map +1 -0
- package/dist/utils/surface/index.cjs +1070 -0
- package/dist/utils/surface/index.cjs.map +1 -0
- package/dist/{index-CYq8vAyV.d.ts → utils/surface/index.d.cts} +7 -58
- package/dist/{index-CSOmP7xT.d.cts → utils/surface/index.d.ts} +7 -58
- package/dist/utils/surface/index.js +30 -0
- package/dist/utils/surface/index.js.map +1 -0
- package/dist/utils/topology-view/index.cjs +620 -0
- package/dist/utils/topology-view/index.cjs.map +1 -0
- package/dist/utils/topology-view/index.d.cts +68 -0
- package/dist/utils/topology-view/index.d.ts +68 -0
- package/dist/utils/topology-view/index.js +11 -0
- package/dist/utils/topology-view/index.js.map +1 -0
- package/package.json +664 -584
- package/dist/backoff-HPZMEZNF.js +0 -1
- package/dist/chunk-2T7U5EU6.js +0 -1
- package/dist/chunk-3G5U5QNE.js +0 -5
- package/dist/chunk-4VVTGLXJ.js +0 -1
- package/dist/chunk-5M4CCMMD.js +0 -45
- package/dist/chunk-5QDBSZBV.js +0 -1
- package/dist/chunk-5XJ6B66J.js +0 -1
- package/dist/chunk-6QZNQS5B.js +0 -1
- package/dist/chunk-6X7AFUJV.js +0 -9
- package/dist/chunk-7K6PWTDQ.js +0 -1
- package/dist/chunk-7LIAPXJB.js +0 -1
- package/dist/chunk-7WPU3UHQ.js +0 -1
- package/dist/chunk-A5WCQ5NO.js +0 -1
- package/dist/chunk-APPIWSGD.js +0 -84
- package/dist/chunk-BEZWM2SY.js +0 -1
- package/dist/chunk-C72GO4IZ.js +0 -1
- package/dist/chunk-CB676TKJ.js +0 -1
- package/dist/chunk-CE6TI2TL.js +0 -1
- package/dist/chunk-CE72X3WO.js +0 -1
- package/dist/chunk-CK2E7BTU.js +0 -1
- package/dist/chunk-CLVB32RD.js +0 -1
- package/dist/chunk-CRVT7D2P.js +0 -1
- package/dist/chunk-D5RFJOZ2.js +0 -1
- package/dist/chunk-D7GPHKFH.js +0 -1
- package/dist/chunk-DHRX7JX4.js +0 -2
- package/dist/chunk-ESMPEKEV.js +0 -1
- package/dist/chunk-F672GV32.js +0 -1
- package/dist/chunk-FZMYDOWV.js +0 -1
- package/dist/chunk-GHBWHMRZ.js +0 -1
- package/dist/chunk-GLERH466.js +0 -1
- package/dist/chunk-GPW2V3RE.js +0 -1
- package/dist/chunk-HIDYF36O.js +0 -1
- package/dist/chunk-HITNVN6B.js +0 -3
- package/dist/chunk-HY4DJBA7.js +0 -5
- package/dist/chunk-KZIEYVXN.js +0 -1
- package/dist/chunk-L6NSJVJZ.js +0 -1
- package/dist/chunk-N4MQX6JU.js +0 -18
- package/dist/chunk-N7FHEL4D.js +0 -1
- package/dist/chunk-NTEURFZH.js +0 -1
- package/dist/chunk-OIVP6KFV.js +0 -1
- package/dist/chunk-OPHBU3LG.js +0 -1
- package/dist/chunk-OYQOZP2F.js +0 -5
- package/dist/chunk-PTZK576G.js +0 -1
- package/dist/chunk-QYADASLV.js +0 -1
- package/dist/chunk-ST7UXLWR.js +0 -1
- package/dist/chunk-SVY7VUYU.js +0 -1
- package/dist/chunk-TK3NWWD4.js +0 -1
- package/dist/chunk-TSOYJ743.js +0 -1
- package/dist/chunk-UNGSTR4X.js +0 -61
- package/dist/chunk-VIMF6LGM.js +0 -1
- package/dist/chunk-VJLMUKOI.js +0 -1
- package/dist/chunk-VN6RDSK2.js +0 -1
- package/dist/chunk-VV4N5P64.js +0 -1
- package/dist/chunk-W3I423PS.js +0 -1
- package/dist/chunk-WJR24TAG.js +0 -1
- package/dist/chunk-XTGKMHSW.js +0 -1
- package/dist/chunk-YBB7ZGTY.js +0 -1
- package/dist/chunk-Z4NPUARF.js +0 -1
- package/dist/chunk-ZGNQRPDT.js +0 -1
- package/dist/chunk-ZKPSFFKU.js +0 -1
- package/dist/chunk-ZLV5SQSX.js +0 -1
- package/dist/content-addressed-storage-4-ST1tYk.d.cts +0 -124
- package/dist/content-addressed-storage-DuYMjV7o.d.ts +0 -124
- package/dist/core/index.cjs +0 -1
- package/dist/core/index.d.cts +0 -3
- package/dist/core/index.d.ts +0 -3
- package/dist/core/index.js +0 -1
- package/dist/decay-BvOWTZ00.d.ts +0 -112
- package/dist/decay-CFlLvXUT.d.cts +0 -112
- package/dist/extra/browser.cjs +0 -1
- package/dist/extra/browser.d.cts +0 -4
- package/dist/extra/browser.d.ts +0 -4
- package/dist/extra/browser.js +0 -1
- package/dist/extra/index.cjs +0 -20
- package/dist/extra/index.d.cts +0 -17
- package/dist/extra/index.d.ts +0 -17
- package/dist/extra/index.js +0 -1
- package/dist/extra/node.cjs +0 -2
- package/dist/extra/node.js +0 -2
- package/dist/extra/operators.cjs +0 -1
- package/dist/extra/operators.d.cts +0 -958
- package/dist/extra/operators.d.ts +0 -958
- package/dist/extra/operators.js +0 -1
- package/dist/extra/reactive.cjs +0 -1
- package/dist/extra/reactive.d.cts +0 -353
- package/dist/extra/reactive.d.ts +0 -353
- package/dist/extra/reactive.js +0 -1
- package/dist/extra/render/index.cjs +0 -5
- package/dist/extra/render/index.js +0 -1
- package/dist/extra/sources.cjs +0 -3
- package/dist/extra/sources.js +0 -1
- package/dist/extra/storage-browser.cjs +0 -1
- package/dist/extra/storage-browser.d.cts +0 -37
- package/dist/extra/storage-browser.d.ts +0 -37
- package/dist/extra/storage-browser.js +0 -1
- package/dist/extra/storage-core.cjs +0 -1
- package/dist/extra/storage-core.d.cts +0 -28
- package/dist/extra/storage-core.d.ts +0 -28
- package/dist/extra/storage-core.js +0 -1
- package/dist/extra/storage-node.cjs +0 -1
- package/dist/extra/storage-node.d.cts +0 -2
- package/dist/extra/storage-node.d.ts +0 -2
- package/dist/extra/storage-node.js +0 -0
- package/dist/extra/storage-tiers-browser.cjs +0 -1
- package/dist/extra/storage-tiers-browser.d.cts +0 -120
- package/dist/extra/storage-tiers-browser.d.ts +0 -120
- package/dist/extra/storage-tiers-browser.js +0 -1
- package/dist/extra/storage-tiers-node.cjs +0 -1
- package/dist/extra/storage-tiers-node.d.cts +0 -210
- package/dist/extra/storage-tiers-node.d.ts +0 -210
- package/dist/extra/storage-tiers-node.js +0 -1
- package/dist/extra/storage-tiers.cjs +0 -1
- package/dist/extra/storage-tiers.d.cts +0 -412
- package/dist/extra/storage-tiers.d.ts +0 -412
- package/dist/extra/storage-tiers.js +0 -1
- package/dist/graph/index.cjs +0 -7
- package/dist/graph/index.d.cts +0 -7
- package/dist/graph/index.d.ts +0 -7
- package/dist/graph/index.js +0 -1
- package/dist/graph-CWvEUQAq.d.cts +0 -1861
- package/dist/graph-D9LFnda9.d.ts +0 -1861
- package/dist/index-5k1T6jl0.d.cts +0 -121
- package/dist/index-9770hRuQ.d.cts +0 -779
- package/dist/index-B1F8Enjf.d.ts +0 -704
- package/dist/index-BHskSB8v.d.ts +0 -3413
- package/dist/index-BIYAkbAi.d.cts +0 -26
- package/dist/index-BoJ5JHxI.d.ts +0 -557
- package/dist/index-BocU7pqs.d.ts +0 -779
- package/dist/index-BxNs2HB9.d.cts +0 -1858
- package/dist/index-C1T3d7V-.d.cts +0 -704
- package/dist/index-C5ri2Axc.d.cts +0 -301
- package/dist/index-C9l6OEBL.d.ts +0 -26
- package/dist/index-CC-AvFTy.d.cts +0 -557
- package/dist/index-CJF1URuX.d.ts +0 -121
- package/dist/index-CdTelp1M.d.ts +0 -202
- package/dist/index-Cj3WohTd.d.cts +0 -202
- package/dist/index-Co7uli2l.d.cts +0 -3413
- package/dist/index-D0aciIex.d.cts +0 -209
- package/dist/index-DHen9Klo.d.ts +0 -1858
- package/dist/index-Yq60JP3s.d.ts +0 -209
- package/dist/index-nozs3fFC.d.ts +0 -301
- package/dist/node-kK3CvTrR.d.cts +0 -1347
- package/dist/node-kK3CvTrR.d.ts +0 -1347
- package/dist/patterns/ai/browser.cjs +0 -8
- package/dist/patterns/ai/browser.js +0 -3
- package/dist/patterns/ai/index.cjs +0 -74
- package/dist/patterns/ai/index.d.cts +0 -20
- package/dist/patterns/ai/index.d.ts +0 -20
- package/dist/patterns/ai/index.js +0 -1
- package/dist/patterns/ai/node.cjs +0 -1
- package/dist/patterns/ai/node.js +0 -1
- package/dist/patterns/cqrs/index.cjs +0 -3
- package/dist/patterns/cqrs/index.d.cts +0 -8
- package/dist/patterns/cqrs/index.d.ts +0 -8
- package/dist/patterns/cqrs/index.js +0 -1
- package/dist/patterns/demo-shell/index.cjs +0 -5
- package/dist/patterns/demo-shell/index.d.cts +0 -7
- package/dist/patterns/demo-shell/index.d.ts +0 -7
- package/dist/patterns/demo-shell/index.js +0 -1
- package/dist/patterns/domain-templates/index.cjs +0 -3
- package/dist/patterns/domain-templates/index.d.cts +0 -6
- package/dist/patterns/domain-templates/index.d.ts +0 -6
- package/dist/patterns/domain-templates/index.js +0 -1
- package/dist/patterns/graphspec/index.cjs +0 -86
- package/dist/patterns/graphspec/index.d.cts +0 -8
- package/dist/patterns/graphspec/index.d.ts +0 -8
- package/dist/patterns/graphspec/index.js +0 -1
- package/dist/patterns/harness/index.cjs +0 -48
- package/dist/patterns/harness/index.d.cts +0 -13
- package/dist/patterns/harness/index.d.ts +0 -13
- package/dist/patterns/harness/index.js +0 -1
- package/dist/patterns/inspect/index.cjs +0 -3
- package/dist/patterns/inspect/index.d.cts +0 -9
- package/dist/patterns/inspect/index.d.ts +0 -9
- package/dist/patterns/inspect/index.js +0 -1
- package/dist/patterns/job-queue/index.cjs +0 -3
- package/dist/patterns/job-queue/index.d.cts +0 -9
- package/dist/patterns/job-queue/index.d.ts +0 -9
- package/dist/patterns/job-queue/index.js +0 -1
- package/dist/patterns/memory/index.cjs +0 -3
- package/dist/patterns/memory/index.d.cts +0 -8
- package/dist/patterns/memory/index.d.ts +0 -8
- package/dist/patterns/memory/index.js +0 -1
- package/dist/patterns/messaging/index.cjs +0 -3
- package/dist/patterns/messaging/index.d.cts +0 -7
- package/dist/patterns/messaging/index.d.ts +0 -7
- package/dist/patterns/messaging/index.js +0 -1
- package/dist/patterns/orchestration/index.cjs +0 -3
- package/dist/patterns/orchestration/index.d.cts +0 -8
- package/dist/patterns/orchestration/index.d.ts +0 -8
- package/dist/patterns/orchestration/index.js +0 -1
- package/dist/patterns/process/index.cjs +0 -3
- package/dist/patterns/process/index.d.cts +0 -10
- package/dist/patterns/process/index.d.ts +0 -10
- package/dist/patterns/process/index.js +0 -1
- package/dist/patterns/reactive-layout/index.cjs +0 -4
- package/dist/patterns/reactive-layout/index.d.cts +0 -7
- package/dist/patterns/reactive-layout/index.d.ts +0 -7
- package/dist/patterns/reactive-layout/index.js +0 -1
- package/dist/patterns/reduction/index.cjs +0 -3
- package/dist/patterns/reduction/index.d.cts +0 -6
- package/dist/patterns/reduction/index.d.ts +0 -6
- package/dist/patterns/reduction/index.js +0 -1
- package/dist/patterns/surface/index.cjs +0 -13
- package/dist/patterns/surface/index.d.cts +0 -9
- package/dist/patterns/surface/index.d.ts +0 -9
- package/dist/patterns/surface/index.js +0 -1
- package/dist/reactive-log-BKALbfal.d.ts +0 -223
- package/dist/reactive-log-DIGdYqQ6.d.cts +0 -223
- package/dist/reactive-map-CEFGp8TK.d.cts +0 -296
- package/dist/reactive-map-DS_SIAxv.d.ts +0 -296
- package/dist/resilience-6LYQJAC5.js +0 -1
- package/dist/sugar-DQjFmVqb.d.cts +0 -399
- package/dist/sugar-fhLIE7TT.d.ts +0 -399
- package/dist/topology-tree-Bcz27hpF.d.cts +0 -25
- package/dist/topology-tree-xvaD0fOX.d.ts +0 -25
package/dist/index-Yq60JP3s.d.ts
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { b as NodeGuard, N as Node } from './node-kK3CvTrR.js';
|
|
2
|
-
import { G as Graph } from './graph-D9LFnda9.js';
|
|
3
|
-
import { R as ReactiveLogOptions, a as ReactiveLogBundle } from './reactive-log-BKALbfal.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Audited-mutation framework (Audit 2 — locked 2026-04-24; promoted to
|
|
7
|
-
* `extra/mutation/` per consolidation plan §1, Tier 2.2).
|
|
8
|
-
*
|
|
9
|
-
* Phase-4 primitives share the same shape: imperative mutation methods +
|
|
10
|
-
* closure state + reactive audit log + freeze-at-entry + rollback-on-throw.
|
|
11
|
-
* This module factors out the common machinery so each primitive becomes
|
|
12
|
-
* declarative wiring over typed audit records:
|
|
13
|
-
* - `approvalGate`, `pipeline.approvalGate` (Wave A.2 Unit 8)
|
|
14
|
-
* - `JobQueueGraph` (Wave B.3 Unit 15)
|
|
15
|
-
* - `CqrsGraph.dispatch` (Wave C.2 Unit 20)
|
|
16
|
-
* - `CqrsGraph.saga` (Wave C.3 Unit 22)
|
|
17
|
-
* - `processManager` (Wave 7)
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Bounded increment for a self-owned counter state node.
|
|
22
|
-
*
|
|
23
|
-
* Reads `counter.cache`, bumps by 1 if under `cap`, writes back. Returns
|
|
24
|
-
* `false` when the cap is reached. Documented P3 exception: the counter is
|
|
25
|
-
* not a declared dep of the caller — it's a private budget read+written from
|
|
26
|
-
* a single call site. This helper keeps the `.cache` access in one named
|
|
27
|
-
* place.
|
|
28
|
-
*
|
|
29
|
-
* **Safety today:**
|
|
30
|
-
* 1. Single-threaded JS runner never invokes the caller concurrently.
|
|
31
|
-
* 2. `counter.down` writes the cache synchronously before returning, so
|
|
32
|
-
* synchronous re-entry through a downstream publish reads the
|
|
33
|
-
* freshly-incremented value — no double-count.
|
|
34
|
-
*
|
|
35
|
-
* **Future risk:** under a free-threaded runner (PY no-GIL or hypothetical
|
|
36
|
-
* concurrent TS runner), two concurrent firings could still race. Revisit
|
|
37
|
-
* when that surfaces.
|
|
38
|
-
*/
|
|
39
|
-
declare function tryIncrementBounded(counter: Node<number>, cap: number): boolean;
|
|
40
|
-
/** Shared base shape for every audit record. Per-primitive types extend this. */
|
|
41
|
-
interface BaseAuditRecord {
|
|
42
|
-
readonly t_ns: number;
|
|
43
|
-
readonly seq?: number;
|
|
44
|
-
readonly handlerVersion?: {
|
|
45
|
-
id: string;
|
|
46
|
-
version: string | number;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Allow `observe` and `signal`; deny external `write` on the audit log so
|
|
51
|
-
* consumers can subscribe + signal-bridge but cannot inject fake records.
|
|
52
|
-
*/
|
|
53
|
-
declare const DEFAULT_AUDIT_GUARD: NodeGuard;
|
|
54
|
-
type AuditLogOpts<R extends BaseAuditRecord> = {
|
|
55
|
-
name: string;
|
|
56
|
-
/** Bounded retention; default 1024 per Audit 2 / cross-cutting bounded-default policy. */
|
|
57
|
-
retainedLimit?: number;
|
|
58
|
-
/** Override the default audit guard. */
|
|
59
|
-
guard?: NodeGuard;
|
|
60
|
-
/** Mount the audit `entries` Node under this graph (and activate withLatest). */
|
|
61
|
-
graph?: Graph;
|
|
62
|
-
/** Pass-through to {@link reactiveLog}. */
|
|
63
|
-
versioning?: ReactiveLogOptions<R>["versioning"];
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Build a reactive audit log with sane defaults: bounded retention, deny-write
|
|
67
|
-
* guard, `withLatest()` companions activated. Returns the {@link ReactiveLogBundle}
|
|
68
|
-
* directly — primitives expose this as `<primitive>.events` / `.decisions` /
|
|
69
|
-
* `.dispatches` / `.invocations` and alias it as `.audit`.
|
|
70
|
-
*
|
|
71
|
-
* @category internal
|
|
72
|
-
*/
|
|
73
|
-
declare function createAuditLog<R extends BaseAuditRecord>(opts: AuditLogOpts<R>): ReactiveLogBundle<R>;
|
|
74
|
-
type FailureMeta = {
|
|
75
|
-
t_ns: number;
|
|
76
|
-
seq?: number;
|
|
77
|
-
errorType: string;
|
|
78
|
-
};
|
|
79
|
-
type SuccessMeta = {
|
|
80
|
-
t_ns: number;
|
|
81
|
-
seq?: number;
|
|
82
|
-
};
|
|
83
|
-
/** Common opts shared by both tiers. */
|
|
84
|
-
type MutationOpts<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord> = {
|
|
85
|
-
/**
|
|
86
|
-
* Optional audit log. When omitted, the wrapper still provides freeze /
|
|
87
|
-
* seq-advance / rollback-on-throw (`wrapMutation`) but skips audit-record
|
|
88
|
-
* emission entirely — useful for primitives that want centralized mutation
|
|
89
|
-
* semantics without a dedicated audit log surface (e.g. `Topic.publish`).
|
|
90
|
-
* Pair with `onSuccess` / `onFailure` to emit records.
|
|
91
|
-
*/
|
|
92
|
-
audit?: ReactiveLogBundle<R>;
|
|
93
|
-
/** Build the success record from the action's args + result + meta. */
|
|
94
|
-
onSuccess?: (args: TArgs, result: TResult, meta: SuccessMeta) => R | undefined;
|
|
95
|
-
/** Build the failure record from the args + error + meta. */
|
|
96
|
-
onFailure?: (args: TArgs, error: unknown, meta: FailureMeta) => R | undefined;
|
|
97
|
-
/** Freeze inputs at entry (default `true`). Pass `false` for hot paths. */
|
|
98
|
-
freeze?: boolean;
|
|
99
|
-
/** Optional sequence cursor — auto-advanced and stamped onto records. */
|
|
100
|
-
seq?: Node<number>;
|
|
101
|
-
/** Optional handler version — stamped into the record (Audit 5). */
|
|
102
|
-
handlerVersion?: {
|
|
103
|
-
id: string;
|
|
104
|
-
version: string | number;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
type WrapMutationOpts<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord> = MutationOpts<TArgs, TResult, R>;
|
|
108
|
-
type LightMutationOpts<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord> = MutationOpts<TArgs, TResult, R>;
|
|
109
|
-
declare function bumpCursor(seq: Node<number>): number;
|
|
110
|
-
/**
|
|
111
|
-
* Build a record via the supplied builder, stamp `handlerVersion` if present,
|
|
112
|
-
* and append it to the audit log. `undefined` records are skipped (callers
|
|
113
|
-
* pass an `onSuccess` / `onFailure` that returns `undefined` to opt out per
|
|
114
|
-
* call).
|
|
115
|
-
*
|
|
116
|
-
* @category internal
|
|
117
|
-
*/
|
|
118
|
-
declare function appendAudit<TArgs extends readonly unknown[], TValue, R extends BaseAuditRecord, M extends SuccessMeta | FailureMeta>(audit: ReactiveLogBundle<R>, builder: (args: TArgs, value: TValue, meta: M) => R | undefined, args: TArgs, value: TValue, meta: M, handlerVersion?: {
|
|
119
|
-
id: string;
|
|
120
|
-
version: string | number;
|
|
121
|
-
}): void;
|
|
122
|
-
/**
|
|
123
|
-
* Substrate-tier wrapper: run `action`, optionally append a typed audit record
|
|
124
|
-
* on success or failure, advance an optional `seq` cursor. No batch frame —
|
|
125
|
-
* this is the hot-path-friendly variant for atomic single-write mutations.
|
|
126
|
-
*
|
|
127
|
-
* Behavior contract:
|
|
128
|
-
* 1. Freeze args at entry (default `true`; opt out with `freeze: false` for
|
|
129
|
-
* hot paths — e.g. wrapping `vectorIndex.upsert(id, vector[768], meta)`
|
|
130
|
-
* where the deep-freeze of a 768-dim vector is a measurable tax).
|
|
131
|
-
* 2. Bump `seq` (if provided) BEFORE the action runs. There is no batch frame,
|
|
132
|
-
* so the bump persists even on throw — the failure-audit record stamps the
|
|
133
|
-
* same `seq` so audit consumers see a contiguous sequence.
|
|
134
|
-
* 3. Run `action(args)`. On success, if `audit` is provided AND `onSuccess`
|
|
135
|
-
* is set, `appendAudit(onSuccess, ...)`.
|
|
136
|
-
* 4. On throw, if `audit` is provided AND `onFailure` is set,
|
|
137
|
-
* `appendAudit(onFailure, ...)` then re-throw. When `audit` is omitted the
|
|
138
|
-
* wrapper still provides freeze + seq + re-throw semantics — useful for
|
|
139
|
-
* primitives that want centralized mutation contracts without an audit log
|
|
140
|
-
* surface (e.g. `Topic.publish`).
|
|
141
|
-
*
|
|
142
|
-
* **Distinguish from {@link wrapMutation}:** `wrapMutation` opens a `batch()`
|
|
143
|
-
* frame (rollback-on-throw, seq advance discarded on rollback) and is the
|
|
144
|
-
* right choice when the action runs a user-supplied handler or a multi-step
|
|
145
|
-
* sequence that could leave inconsistent state mid-throw.
|
|
146
|
-
*
|
|
147
|
-
* **Cursor / log alignment caveat (substrate-tier):** `seq` is bumped BEFORE
|
|
148
|
-
* `action()` runs, and the audit-log append happens AFTER. There is no batch
|
|
149
|
-
* frame, so a synchronous subscriber to `seq` that fires between the two —
|
|
150
|
-
* including a subscriber on `audit.entries` itself if the substrate causes
|
|
151
|
-
* it to fire transitively — observes `seq=N` while the corresponding record
|
|
152
|
-
* is not yet in the log. Audit consumers that join `seq` and `audit.entries`
|
|
153
|
-
* reactively must tolerate this one-tick lag, or use {@link wrapMutation}
|
|
154
|
-
* (whose `batch()` frame defers downstream delivery until commit, so cursor
|
|
155
|
-
* and log appear together to subscribers). The same caveat applies to
|
|
156
|
-
* **re-entrant** invocation: if an `audit.entries` / `seq` subscriber
|
|
157
|
-
* triggers another `lightMutation`, the inner record can land on the log
|
|
158
|
-
* before the outer call's success/failure record.
|
|
159
|
-
*
|
|
160
|
-
* @category internal
|
|
161
|
-
*/
|
|
162
|
-
declare function lightMutation<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord>(action: (...args: TArgs) => TResult, opts: LightMutationOpts<TArgs, TResult, R>): (...args: TArgs) => TResult;
|
|
163
|
-
/**
|
|
164
|
-
* Orchestration-tier wrapper: like {@link lightMutation} but adds a `batch()`
|
|
165
|
-
* frame around the action so an in-flight throw rolls back partial state.
|
|
166
|
-
*
|
|
167
|
-
* Behavior contract:
|
|
168
|
-
* 1. Freeze args at entry (default `true`).
|
|
169
|
-
* 2. Open a batch frame (rollback-on-throw via core batch — Audit 2 #6).
|
|
170
|
-
* 3. Bump `seq` INSIDE the batch so a framework-level rollback discards the
|
|
171
|
-
* cursor advance (cursor stays in sync with audit log). M5.
|
|
172
|
-
* 4. Run `action(args)` and capture result.
|
|
173
|
-
* 5. On success: if `audit` is provided AND `onSuccess` is set,
|
|
174
|
-
* `appendAudit(onSuccess, ...)` inside the batch.
|
|
175
|
-
* 6. On throw: catch OUTSIDE the batch so the failure record (if any) emits
|
|
176
|
-
* in a fresh transaction after rollback — it persists. Re-throw so callers
|
|
177
|
-
* see the failure. When `audit` is omitted the wrapper still provides
|
|
178
|
-
* batch + freeze + rollback + re-throw semantics — useful for primitives
|
|
179
|
-
* that want orchestration-tier mutation contracts without an audit log
|
|
180
|
-
* surface.
|
|
181
|
-
*
|
|
182
|
-
* **Distinguish from the file-private `wrapMutation` in
|
|
183
|
-
* `src/extra/reactive-map.ts:540`:** that helper is a transactional wrapper
|
|
184
|
-
* for the reactiveMap version counter (`pre/post-version` snapshot diffing,
|
|
185
|
-
* read vs. mutation gating). Different concern, file-private, not exported.
|
|
186
|
-
* This `wrapMutation` is the public Phase-4 audit framework.
|
|
187
|
-
*
|
|
188
|
-
* @category internal
|
|
189
|
-
*/
|
|
190
|
-
declare function wrapMutation<TArgs extends readonly unknown[], TResult, R extends BaseAuditRecord>(action: (...args: TArgs) => TResult, opts: WrapMutationOpts<TArgs, TResult, R>): (...args: TArgs) => TResult;
|
|
191
|
-
/**
|
|
192
|
-
* Promote a closure counter to a state node mounted under `graph`.
|
|
193
|
-
* Replaces ad-hoc `let _seq = 0` patterns with a node observable in
|
|
194
|
-
* `describe()` and persistable via storage tiers.
|
|
195
|
-
*
|
|
196
|
-
* @category internal
|
|
197
|
-
*/
|
|
198
|
-
declare function registerCursor(graph: Graph, name: string, initial?: number): Node<number>;
|
|
199
|
-
/**
|
|
200
|
-
* Promote a closure `Map<K, number>` to N state nodes (one per key) mounted
|
|
201
|
-
* under `<graph>::<name>::<key>`. Used by saga (per-event-type cursor).
|
|
202
|
-
*
|
|
203
|
-
* @category internal
|
|
204
|
-
*/
|
|
205
|
-
declare function registerCursorMap<K extends string>(graph: Graph, name: string, keys: readonly K[], initial?: number): {
|
|
206
|
-
readonly [P in K]: Node<number>;
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
export { type AuditLogOpts as A, type BaseAuditRecord as B, DEFAULT_AUDIT_GUARD as D, type FailureMeta as F, type LightMutationOpts as L, type MutationOpts as M, type SuccessMeta as S, type WrapMutationOpts as W, appendAudit as a, bumpCursor as b, createAuditLog as c, registerCursorMap as d, lightMutation as l, registerCursor as r, tryIncrementBounded as t, wrapMutation as w };
|
package/dist/index-nozs3fFC.d.ts
DELETED
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import { N as Node } from './node-kK3CvTrR.js';
|
|
2
|
-
import { G as Graph, a as GraphOptions } from './graph-D9LFnda9.js';
|
|
3
|
-
import { a as ReactiveLogBundle } from './reactive-log-BKALbfal.js';
|
|
4
|
-
import { AppendLogStorageTier } from './extra/storage-tiers.js';
|
|
5
|
-
|
|
6
|
-
type TopicOptions = {
|
|
7
|
-
graph?: GraphOptions;
|
|
8
|
-
/** Bounded retention; default 1024 per cross-cutting policy (Audit 2/4). */
|
|
9
|
-
retainedLimit?: number;
|
|
10
|
-
};
|
|
11
|
-
declare class TopicGraph<T> extends Graph {
|
|
12
|
-
private readonly _log;
|
|
13
|
-
private readonly _publishImpl;
|
|
14
|
-
readonly events: Node<readonly T[]>;
|
|
15
|
-
/**
|
|
16
|
-
* Most recently published value, or `null` when the topic has no entries
|
|
17
|
-
* yet. Spec §5.12 reserves `undefined` as the protocol-internal "never
|
|
18
|
-
* sent DATA" sentinel — `null` is the idiomatic "empty / no value" signal
|
|
19
|
-
* for domain nodes. F7.
|
|
20
|
-
*
|
|
21
|
-
* **Caveat when `T` itself includes `null`** (e.g., `topic<number | null>`):
|
|
22
|
-
* `latest === null` is ambiguous — it could mean "no publish yet" OR "a
|
|
23
|
-
* `null` value was published". Use {@link hasLatest} to disambiguate, or
|
|
24
|
-
* observe {@link events} directly and track length yourself.
|
|
25
|
-
*/
|
|
26
|
-
readonly latest: Node<T | null>;
|
|
27
|
-
/**
|
|
28
|
-
* Reactive `true` once the topic has at least one published entry.
|
|
29
|
-
* Disambiguates "`null` never published" from "`null` was published" when
|
|
30
|
-
* `T` includes `null`.
|
|
31
|
-
*/
|
|
32
|
-
readonly hasLatest: Node<boolean>;
|
|
33
|
-
constructor(name: string, opts?: TopicOptions);
|
|
34
|
-
publish(value: T): void;
|
|
35
|
-
/**
|
|
36
|
-
* Wire one or more append-log storage tiers (Audit 4). Each tier receives
|
|
37
|
-
* appended events per wave; rollback honors the wave-as-transaction model.
|
|
38
|
-
*
|
|
39
|
-
* Named `attachEventStorage` (not `attachStorage`) to avoid colliding with
|
|
40
|
-
* the inherited {@link Graph.attachSnapshotStorage} which takes the
|
|
41
|
-
* snapshot-based `StorageTier[]` shape.
|
|
42
|
-
*
|
|
43
|
-
* @returns Disposer.
|
|
44
|
-
*/
|
|
45
|
-
attachEventStorage(tiers: readonly AppendLogStorageTier<T>[]): () => void;
|
|
46
|
-
retained(): readonly T[];
|
|
47
|
-
/** Internal log bundle — used by TopicBridgeGraph for `attach`. */
|
|
48
|
-
get _logBundle(): ReactiveLogBundle<T>;
|
|
49
|
-
}
|
|
50
|
-
type SubscriptionOptions = {
|
|
51
|
-
graph?: GraphOptions;
|
|
52
|
-
/**
|
|
53
|
-
* Starting cursor position.
|
|
54
|
-
* @deprecated Use `from` instead.
|
|
55
|
-
*/
|
|
56
|
-
cursor?: number;
|
|
57
|
-
/**
|
|
58
|
-
* Starting position for the subscription.
|
|
59
|
-
* - `"retained"` (default) — cursor starts at 0; consumer sees all retained history.
|
|
60
|
-
* - `"now"` — cursor starts at current topic length; consumer ignores history.
|
|
61
|
-
* - `number` — explicit cursor position.
|
|
62
|
-
*/
|
|
63
|
-
from?: "now" | "retained" | number;
|
|
64
|
-
/**
|
|
65
|
-
* When this signal node emits DATA, the subscription auto-advances cursor
|
|
66
|
-
* to current `available.length`. Useful for "ack everything when X happens"
|
|
67
|
-
* patterns. The reactive edge `advanceOn → cursor` is visible in `explain()`.
|
|
68
|
-
*/
|
|
69
|
-
advanceOn?: Node<unknown>;
|
|
70
|
-
};
|
|
71
|
-
/** Result of {@link SubscriptionGraph.pullAndAck}. */
|
|
72
|
-
type PullAndAckResult<T> = {
|
|
73
|
-
items: readonly T[];
|
|
74
|
-
cursor: number;
|
|
75
|
-
};
|
|
76
|
-
declare class SubscriptionGraph<T> extends Graph {
|
|
77
|
-
readonly cursor: Node<number>;
|
|
78
|
-
readonly available: Node<readonly T[]>;
|
|
79
|
-
/**
|
|
80
|
-
* Reference to the upstream topic graph. Intentionally NOT mounted
|
|
81
|
-
* under this subscription: a subscription is a VIEW over an
|
|
82
|
-
* externally-owned topic. Double-mounting (e.g. hub-owned topic +
|
|
83
|
-
* sub-mount here) would make either-side teardown leave the other
|
|
84
|
-
* holding a dead reference. Node-level `derived([topicEvents], …)`
|
|
85
|
-
* still wires the data dependency across graph boundaries. D1(e).
|
|
86
|
-
*/
|
|
87
|
-
readonly topic: TopicGraph<T>;
|
|
88
|
-
private _disposed;
|
|
89
|
-
private readonly _ackImpl;
|
|
90
|
-
private readonly _pullAndAckImpl;
|
|
91
|
-
constructor(name: string, topicGraph: TopicGraph<T>, opts?: SubscriptionOptions);
|
|
92
|
-
ack(count?: number): number;
|
|
93
|
-
pull(limit?: number): readonly T[];
|
|
94
|
-
/**
|
|
95
|
-
* Atomic pull-and-acknowledge. Returns `{ items, cursor }` where `cursor`
|
|
96
|
-
* is the new cursor position after advancing. Under single-threaded JS the
|
|
97
|
-
* snapshot and advance are atomic; PY callers use a per-subscription Lock.
|
|
98
|
-
*
|
|
99
|
-
* Replaces `pull(limit, { ack: true })`.
|
|
100
|
-
*/
|
|
101
|
-
pullAndAck(limit?: number): PullAndAckResult<T>;
|
|
102
|
-
/**
|
|
103
|
-
* Release internal subscriptions and mark the subscription torn-down.
|
|
104
|
-
* Subsequent `pull`, `pullAndAck`, `ack` return empty / current cursor.
|
|
105
|
-
* Emits COMPLETE on `cursor` so derived consumers (e.g. `available`) see
|
|
106
|
-
* the termination signal. Also drains `addDisposer` callbacks (including
|
|
107
|
-
* the `keepalive(advancePump)` subscription) so no keepalive leak occurs.
|
|
108
|
-
*/
|
|
109
|
-
dispose(): void;
|
|
110
|
-
}
|
|
111
|
-
type TopicBridgeOptions<TIn, TOut> = {
|
|
112
|
-
graph?: GraphOptions;
|
|
113
|
-
cursor?: number;
|
|
114
|
-
maxPerPump?: number;
|
|
115
|
-
/**
|
|
116
|
-
* Optional transform/filter applied to each item before republishing.
|
|
117
|
-
*
|
|
118
|
-
* **At-most-once with silent drop:** when `map` returns `undefined`, the
|
|
119
|
-
* input is consumed from the source cursor but NOT republished. Filtered
|
|
120
|
-
* items are not retained for retry. If you need filter-with-retry
|
|
121
|
-
* semantics, do the filtering in a downstream subscription on the bridged
|
|
122
|
-
* output rather than in the `map` function.
|
|
123
|
-
*/
|
|
124
|
-
map?: (value: TIn) => TOut | undefined;
|
|
125
|
-
};
|
|
126
|
-
declare class TopicBridgeGraph<TIn, TOut = TIn> extends Graph {
|
|
127
|
-
private readonly _sourceSub;
|
|
128
|
-
readonly bridgedCount: Node<number>;
|
|
129
|
-
/**
|
|
130
|
-
* Emits each mapped batch as DATA — gives downstream observers a reactive
|
|
131
|
-
* stream of bridged values. Also the link target for `target._log.attach`.
|
|
132
|
-
*/
|
|
133
|
-
readonly output: Node<readonly TOut[]>;
|
|
134
|
-
constructor(name: string, sourceTopic: TopicGraph<TIn>, targetTopic: TopicGraph<TOut>, opts?: TopicBridgeOptions<TIn, TOut>);
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Private pure data structure managing a named set of {@link TopicGraph}
|
|
138
|
-
* instances. Extracted from {@link MessagingHubGraph} for separation of
|
|
139
|
-
* concerns (B.2 Unit 14 lock: D — split into TopicRegistry + facade).
|
|
140
|
-
*
|
|
141
|
-
* Reusable if other domain consumers (e.g. cqrs.eventLogs) want a shared
|
|
142
|
-
* topic registry later.
|
|
143
|
-
*
|
|
144
|
-
* @internal
|
|
145
|
-
*/
|
|
146
|
-
declare class TopicRegistry {
|
|
147
|
-
private readonly _map;
|
|
148
|
-
/** Reactive monotonic version counter. Advances on topic create/remove. */
|
|
149
|
-
readonly version: Node<number>;
|
|
150
|
-
constructor(versionNode: Node<number>);
|
|
151
|
-
get size(): number;
|
|
152
|
-
has(name: string): boolean;
|
|
153
|
-
get<T>(name: string): TopicGraph<T> | undefined;
|
|
154
|
-
set<T>(name: string, t: TopicGraph<T>): void;
|
|
155
|
-
delete(name: string): boolean;
|
|
156
|
-
keys(): IterableIterator<string>;
|
|
157
|
-
}
|
|
158
|
-
type MessagingHubOptions = {
|
|
159
|
-
graph?: GraphOptions;
|
|
160
|
-
/**
|
|
161
|
-
* Default `TopicOptions` applied to every topic created via `topic(name)`
|
|
162
|
-
* without explicit options. Per-call opts override. Default: `{}`
|
|
163
|
-
* (unbounded retention per topic unless `retainedLimit` is set per call).
|
|
164
|
-
*/
|
|
165
|
-
defaultTopicOptions?: TopicOptions;
|
|
166
|
-
};
|
|
167
|
-
/**
|
|
168
|
-
* Lazy Pulsar-inspired topic registry. Manages a named set of {@link TopicGraph}
|
|
169
|
-
* instances with retention + cursor semantics. Topics are created on first
|
|
170
|
-
* access; `removeTopic(name)` unmounts and tears down via {@link Graph.remove}.
|
|
171
|
-
*
|
|
172
|
-
* Internally delegates to {@link TopicRegistry} for topic map management
|
|
173
|
-
* (B.2 Unit 14 lock: D facade split).
|
|
174
|
-
*
|
|
175
|
-
* **Relationship to `pubsub()` in `src/extra/pubsub.ts`:** `pubsub` is a
|
|
176
|
-
* lightweight last-value state hub (no retention, no cursors). `MessagingHubGraph`
|
|
177
|
-
* is the full messaging hub — retained message logs, cursor-based subscriptions,
|
|
178
|
-
* and pattern-layer lifecycle management.
|
|
179
|
-
*
|
|
180
|
-
* @category patterns
|
|
181
|
-
*/
|
|
182
|
-
declare class MessagingHubGraph extends Graph {
|
|
183
|
-
private readonly _registry;
|
|
184
|
-
/** Reactive monotonic version counter — advances on topic create/remove. */
|
|
185
|
-
readonly version: Node<number>;
|
|
186
|
-
private readonly _defaultTopicOptions;
|
|
187
|
-
private readonly _removeTopicImpl;
|
|
188
|
-
constructor(name: string, opts?: MessagingHubOptions);
|
|
189
|
-
/** Number of topics currently in the hub. */
|
|
190
|
-
get size(): number;
|
|
191
|
-
/** Checks topic existence without creating. */
|
|
192
|
-
has(name: string): boolean;
|
|
193
|
-
/** Iterator over topic names. */
|
|
194
|
-
topicNames(): IterableIterator<string>;
|
|
195
|
-
/**
|
|
196
|
-
* Returns the {@link TopicGraph} for `name`, creating lazily on first call.
|
|
197
|
-
* Subsequent calls with the same name return the same instance (options on
|
|
198
|
-
* repeat calls are ignored — the topic is already configured).
|
|
199
|
-
*/
|
|
200
|
-
topic<T = unknown>(name: string, opts?: TopicOptions): TopicGraph<T>;
|
|
201
|
-
/**
|
|
202
|
-
* Publishes a value to the topic, lazily creating it on first publish.
|
|
203
|
-
*
|
|
204
|
-
* **Late-subscriber caveat:** the topic is created lazily, so subscribers
|
|
205
|
-
* that attach AFTER a publish only see the retained window (governed by
|
|
206
|
-
* `retainedLimit` on `TopicOptions` / `defaultTopicOptions`). If
|
|
207
|
-
* `retainedLimit === 0` is set explicitly, early publishes are
|
|
208
|
-
* effectively dropped — prefer an unset `retainedLimit` (unbounded
|
|
209
|
-
* retention) or subscribe before publishing when late-subscribers matter.
|
|
210
|
-
*/
|
|
211
|
-
publish<T = unknown>(name: string, value: T): void;
|
|
212
|
-
/**
|
|
213
|
-
* Bulk publish — issues all publishes inside one outer batch. New topics
|
|
214
|
-
* are created on demand. No-op if `entries` yields nothing.
|
|
215
|
-
*
|
|
216
|
-
* **Iterable consumption (F6):** `entries` is consumed once (single-pass)
|
|
217
|
-
* INSIDE the batch frame. If the iterator throws mid-way, the batch is
|
|
218
|
-
* discarded and NO publishes are visible to subscribers (all-or-nothing).
|
|
219
|
-
* Pass an array or `Set` for multi-shot callers.
|
|
220
|
-
*/
|
|
221
|
-
publishMany(entries: Iterable<[string, unknown]>): void;
|
|
222
|
-
/**
|
|
223
|
-
* Creates a {@link SubscriptionGraph} over a named topic. The topic is
|
|
224
|
-
* lazily created if missing. Subscription lifecycle is owned by the caller —
|
|
225
|
-
* the hub does NOT mount the subscription.
|
|
226
|
-
*
|
|
227
|
-
* @param subName - Local name for the subscription graph.
|
|
228
|
-
* @param topicName - Hub topic to subscribe to.
|
|
229
|
-
* @param opts - `SubscriptionOptions` (initial cursor, etc.).
|
|
230
|
-
*/
|
|
231
|
-
subscribe<T = unknown>(subName: string, topicName: string, opts?: SubscriptionOptions): SubscriptionGraph<T>;
|
|
232
|
-
/**
|
|
233
|
-
* Unmounts and tears down the topic's graph. Returns `true` if the topic
|
|
234
|
-
* existed. Subscribers receive `TEARDOWN` via {@link Graph.remove}.
|
|
235
|
-
*
|
|
236
|
-
* **Closure-state caveat:** the registry mutation (`_registry.delete`) and
|
|
237
|
-
* version bump happen in a `try/finally`, so registry/version converge to
|
|
238
|
-
* a consistent state even when {@link Graph.remove} throws. `lightMutation`
|
|
239
|
-
* does not roll back this mutation on throw — `Map.delete` on closure
|
|
240
|
-
* state is invisible to any batch frame. The pre-existing try/finally is
|
|
241
|
-
* load-bearing for that invariant.
|
|
242
|
-
*/
|
|
243
|
-
removeTopic(name: string): boolean;
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Creates a Pulsar-inspired topic graph (append-only retained stream + latest value).
|
|
247
|
-
*/
|
|
248
|
-
declare function topic<T>(name: string, opts?: TopicOptions): TopicGraph<T>;
|
|
249
|
-
/**
|
|
250
|
-
* Creates a lazy Pulsar-inspired messaging hub. Topics are created on first access
|
|
251
|
-
* via `hub.topic(name)`; `hub.publish(name, value)` shortcuts through the registry.
|
|
252
|
-
*
|
|
253
|
-
* @example
|
|
254
|
-
* ```ts
|
|
255
|
-
* import { messagingHub } from "@graphrefly/graphrefly/patterns/messaging";
|
|
256
|
-
*
|
|
257
|
-
* const hub = messagingHub("main", { defaultTopicOptions: { retainedLimit: 256 } });
|
|
258
|
-
* hub.publish("orders", { id: 1 });
|
|
259
|
-
* hub.publishMany([["shipments", { id: 1 }], ["orders", { id: 2 }]]);
|
|
260
|
-
* const sub = hub.subscribe("orders-worker", "orders", { cursor: 0 });
|
|
261
|
-
* ```
|
|
262
|
-
*/
|
|
263
|
-
declare function messagingHub(name: string, opts?: MessagingHubOptions): MessagingHubGraph;
|
|
264
|
-
/**
|
|
265
|
-
* Creates a cursor-based subscription graph over a topic.
|
|
266
|
-
*/
|
|
267
|
-
declare function subscription<T>(name: string, topicGraph: TopicGraph<T>, opts?: SubscriptionOptions): SubscriptionGraph<T>;
|
|
268
|
-
/**
|
|
269
|
-
* Creates an autonomous cursor-based topic relay graph.
|
|
270
|
-
*
|
|
271
|
-
* When `opts.map` is provided, items where `map` returns `undefined` are
|
|
272
|
-
* consumed from the source cursor but NOT republished (at-most-once with
|
|
273
|
-
* silent drop). For filter-with-retry semantics, apply the filter in a
|
|
274
|
-
* downstream subscription on the bridge's `output` node instead.
|
|
275
|
-
*/
|
|
276
|
-
declare function topicBridge<TIn, TOut = TIn>(name: string, sourceTopic: TopicGraph<TIn>, targetTopic: TopicGraph<TOut>, opts?: TopicBridgeOptions<TIn, TOut>): TopicBridgeGraph<TIn, TOut>;
|
|
277
|
-
|
|
278
|
-
type index_MessagingHubGraph = MessagingHubGraph;
|
|
279
|
-
declare const index_MessagingHubGraph: typeof MessagingHubGraph;
|
|
280
|
-
type index_MessagingHubOptions = MessagingHubOptions;
|
|
281
|
-
type index_PullAndAckResult<T> = PullAndAckResult<T>;
|
|
282
|
-
type index_SubscriptionGraph<T> = SubscriptionGraph<T>;
|
|
283
|
-
declare const index_SubscriptionGraph: typeof SubscriptionGraph;
|
|
284
|
-
type index_SubscriptionOptions = SubscriptionOptions;
|
|
285
|
-
type index_TopicBridgeGraph<TIn, TOut = TIn> = TopicBridgeGraph<TIn, TOut>;
|
|
286
|
-
declare const index_TopicBridgeGraph: typeof TopicBridgeGraph;
|
|
287
|
-
type index_TopicBridgeOptions<TIn, TOut> = TopicBridgeOptions<TIn, TOut>;
|
|
288
|
-
type index_TopicGraph<T> = TopicGraph<T>;
|
|
289
|
-
declare const index_TopicGraph: typeof TopicGraph;
|
|
290
|
-
type index_TopicOptions = TopicOptions;
|
|
291
|
-
type index_TopicRegistry = TopicRegistry;
|
|
292
|
-
declare const index_TopicRegistry: typeof TopicRegistry;
|
|
293
|
-
declare const index_messagingHub: typeof messagingHub;
|
|
294
|
-
declare const index_subscription: typeof subscription;
|
|
295
|
-
declare const index_topic: typeof topic;
|
|
296
|
-
declare const index_topicBridge: typeof topicBridge;
|
|
297
|
-
declare namespace index {
|
|
298
|
-
export { index_MessagingHubGraph as MessagingHubGraph, type index_MessagingHubOptions as MessagingHubOptions, type index_PullAndAckResult as PullAndAckResult, index_SubscriptionGraph as SubscriptionGraph, type index_SubscriptionOptions as SubscriptionOptions, index_TopicBridgeGraph as TopicBridgeGraph, type index_TopicBridgeOptions as TopicBridgeOptions, index_TopicGraph as TopicGraph, type index_TopicOptions as TopicOptions, index_TopicRegistry as TopicRegistry, index_messagingHub as messagingHub, index_subscription as subscription, index_topic as topic, index_topicBridge as topicBridge };
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export { MessagingHubGraph as M, type PullAndAckResult as P, SubscriptionGraph as S, TopicGraph as T, type MessagingHubOptions as a, type SubscriptionOptions as b, TopicBridgeGraph as c, type TopicBridgeOptions as d, type TopicOptions as e, TopicRegistry as f, topicBridge as g, index as i, messagingHub as m, subscription as s, topic as t };
|