@graphrefly/ts 0.0.1 → 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/dist/actions-types-CSC3NMDl.d.ts +657 -0
- package/dist/actions-types-wl9Mgkmr.d.cts +657 -0
- package/dist/adapters/index.cjs +5157 -2951
- package/dist/adapters/index.cjs.map +1 -1
- package/dist/adapters/index.d.cts +207 -70
- package/dist/adapters/index.d.ts +207 -70
- package/dist/adapters/index.js +3738 -1688
- 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 +3 -3
- package/dist/adapters/observe-storage.d.ts +3 -3
- package/dist/adapters/observe-storage.js +4 -4
- package/dist/adapters/react.cjs.map +1 -1
- package/dist/adapters/react.d.cts +2 -2
- package/dist/adapters/react.d.ts +2 -2
- package/dist/adapters/react.js +1 -1
- package/dist/adapters/solid.cjs.map +1 -1
- package/dist/adapters/solid.d.cts +2 -2
- package/dist/adapters/solid.d.ts +2 -2
- package/dist/adapters/solid.js +1 -1
- package/dist/adapters/svelte.cjs.map +1 -1
- package/dist/adapters/svelte.d.cts +2 -2
- package/dist/adapters/svelte.d.ts +2 -2
- package/dist/adapters/svelte.js +1 -1
- package/dist/adapters/vue.cjs.map +1 -1
- package/dist/adapters/vue.d.cts +2 -2
- package/dist/adapters/vue.d.ts +2 -2
- package/dist/adapters/vue.js +1 -1
- package/dist/{agent-runtime-DZTJ3C-p.d.cts → agent-runtime-types-core-CaXfKNtY.d.cts} +171 -320
- package/dist/{agent-runtime-BesGDZcB.d.ts → agent-runtime-types-core-hU299uIC.d.ts} +171 -320
- 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-BmRCvh0d.d.ts → agentic-memory-types-CVSUS6XR.d.ts} +13 -57
- package/dist/{agentic-memory-DfuVZ-lY.d.cts → agentic-memory-types-FnnYlVUs.d.cts} +13 -57
- package/dist/{capability-admission-g0mn9hpq.d.ts → capability-admission-BW2CziT6.d.ts} +3 -3
- package/dist/{capability-admission-B0BzqAm5.d.cts → capability-admission-lwSecxXs.d.cts} +3 -3
- 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-YDSIVHRR.js → chunk-4NWSNI4K.js} +1598 -1584
- 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-IXZBUWSP.js → chunk-7HZRJMN6.js} +2 -2
- package/dist/{chunk-SS2A464I.js → chunk-CJIFGJQG.js} +3 -3
- package/dist/{chunk-V7CIJE4B.js → chunk-CX6B6PO2.js} +92 -9
- package/dist/chunk-CX6B6PO2.js.map +1 -0
- package/dist/{chunk-FBUU43PM.js → chunk-E4QCH32M.js} +448 -446
- package/dist/chunk-E4QCH32M.js.map +1 -0
- package/dist/{chunk-HKK2JD7Z.js → chunk-ECURQ3HD.js} +12 -125
- package/dist/chunk-ECURQ3HD.js.map +1 -0
- package/dist/{chunk-3JR3EDB2.js → chunk-EOKT4QFF.js} +121 -115
- 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-H75VXTGT.js → chunk-L6LDXRWE.js} +3 -3
- package/dist/{chunk-H75VXTGT.js.map → chunk-L6LDXRWE.js.map} +1 -1
- package/dist/{chunk-YXMZ2N6J.js → chunk-M7J6Z4IJ.js} +1071 -1025
- 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-QFY4AFY4.js → chunk-PVC7WDKI.js} +58 -52
- package/dist/chunk-PVC7WDKI.js.map +1 -0
- package/dist/{chunk-VTHLCFN4.js → chunk-RAHNUYA5.js} +2 -2
- package/dist/{chunk-XKXWK2KP.js → chunk-SHZDP2MQ.js} +1157 -1021
- package/dist/chunk-SHZDP2MQ.js.map +1 -0
- package/dist/{chunk-CZNV3VXM.js → chunk-SIDJO2T4.js} +11 -11
- package/dist/chunk-STXRMPW4.js +4131 -0
- package/dist/chunk-STXRMPW4.js.map +1 -0
- package/dist/{chunk-2747WN4Y.js → chunk-TPND5MJS.js} +3 -3
- package/dist/chunk-TQPCAIQI.js +612 -0
- package/dist/chunk-TQPCAIQI.js.map +1 -0
- package/dist/{chunk-43BKLFZU.js → chunk-YDWBXXQZ.js} +10 -10
- package/dist/{chunk-6PHB5CJS.js → chunk-ZLFRB6FI.js} +2 -2
- package/dist/composition/index.cjs +1228 -1076
- package/dist/composition/index.cjs.map +1 -1
- package/dist/composition/index.d.cts +3 -3
- package/dist/composition/index.d.ts +3 -3
- package/dist/composition/index.js +4 -4
- package/dist/core/index.cjs +1198 -1046
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +2 -2
- package/dist/cqrs/index.d.cts +3 -3
- package/dist/cqrs/index.d.ts +3 -3
- package/dist/cqrs/messaging.d.cts +4 -4
- package/dist/cqrs/messaging.d.ts +4 -4
- package/dist/cqrs/work-queue.d.cts +5 -5
- package/dist/cqrs/work-queue.d.ts +5 -5
- package/dist/data-structures/index.cjs +1226 -1074
- package/dist/data-structures/index.cjs.map +1 -1
- package/dist/data-structures/index.d.cts +8 -7
- package/dist/data-structures/index.d.ts +8 -7
- package/dist/data-structures/index.js +6 -5
- package/dist/{describe-BpyJuWkw.d.ts → describe-B_A5fbXH.d.ts} +1 -1
- package/dist/{describe-DYMw_l1C.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.d.cts +6 -6
- package/dist/executors/work-queue.d.ts +6 -6
- package/dist/graph/index.cjs +1499 -1341
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +9 -8
- package/dist/graph/index.d.ts +9 -8
- package/dist/graph/index.js +23 -22
- package/dist/{graph-DCEWh4T2.d.cts → graph-CWK3HLPB.d.cts} +133 -131
- package/dist/{graph-D-1-SQeC.d.ts → graph-ho5sotHP.d.ts} +133 -131
- package/dist/{index-Bmxeu0nK.d.ts → index-CQWcE0Dw.d.ts} +18 -4
- package/dist/{index-72VZC0-E.d.cts → index-DHA1i67c.d.cts} +18 -4
- package/dist/index.cjs +3397 -3140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.js +110 -109
- package/dist/inspection/boundary.d.cts +4 -4
- package/dist/inspection/boundary.d.ts +4 -4
- package/dist/measurements-C0mAvWU1.d.cts +164 -0
- package/dist/measurements-OMpCeBwh.d.ts +164 -0
- package/dist/messaging/index.cjs +57 -51
- package/dist/messaging/index.cjs.map +1 -1
- package/dist/messaging/index.d.cts +11 -276
- package/dist/messaging/index.d.ts +11 -276
- package/dist/messaging/index.js +1 -1
- package/dist/operators/index.cjs +1228 -1076
- package/dist/operators/index.cjs.map +1 -1
- package/dist/operators/index.d.cts +5 -5
- package/dist/operators/index.d.ts +5 -5
- package/dist/operators/index.js +5 -5
- package/dist/orchestration/index.cjs +8844 -6071
- package/dist/orchestration/index.cjs.map +1 -1
- package/dist/orchestration/index.d.cts +171 -224
- package/dist/orchestration/index.d.ts +171 -224
- package/dist/orchestration/index.js +42 -991
- package/dist/orchestration/index.js.map +1 -1
- package/dist/orchestration/messaging.d.cts +5 -8
- package/dist/orchestration/messaging.d.ts +5 -8
- package/dist/orchestration/work-queue.cjs +1243 -5
- package/dist/orchestration/work-queue.cjs.map +1 -1
- package/dist/orchestration/work-queue.d.cts +121 -10
- package/dist/orchestration/work-queue.d.ts +121 -10
- package/dist/orchestration/work-queue.js +1067 -4
- package/dist/orchestration/work-queue.js.map +1 -1
- package/dist/patterns/event-flow.cjs +6 -20
- package/dist/patterns/event-flow.cjs.map +1 -1
- package/dist/patterns/event-flow.d.cts +4 -4
- package/dist/patterns/event-flow.d.ts +4 -4
- package/dist/patterns/event-flow.js +2 -2
- package/dist/patterns/index.cjs +453 -465
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +6 -5
- package/dist/patterns/index.d.ts +6 -5
- package/dist/patterns/index.js +3 -3
- package/dist/process-types-C9uMYz3i.d.ts +200 -0
- package/dist/process-types-h3uRlzDc.d.cts +200 -0
- package/dist/{reactive-collection-DNV0-gFi.d.cts → reactive-collection-B9R0Bl1P.d.cts} +4 -34
- package/dist/{reactive-collection-BAmfrGjd.d.ts → reactive-collection-BXFrH0U2.d.ts} +4 -34
- package/dist/{reactive-collection-storage-BNEldDyi.d.cts → reactive-collection-storage-BLGv8Xp8.d.cts} +5 -5
- package/dist/{reactive-collection-storage-YZsAQsWK.d.ts → reactive-collection-storage-a4zD3665.d.ts} +5 -5
- package/dist/{reactive-map-DRD1LJ2H.d.cts → reactive-map-C_8sOfdS.d.cts} +3 -2
- package/dist/{reactive-map-EsDiCmJk.d.ts → reactive-map-jle5dnok.d.ts} +3 -2
- package/dist/render/index.d.cts +2 -2
- package/dist/render/index.d.ts +2 -2
- 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-DKuNzuWw.d.cts → semantic-memory-graph-types-BvzdqmkY.d.cts} +2 -28
- package/dist/{semantic-memory-graph-uwbwJdhe.d.ts → semantic-memory-graph-types-Ci-OtahO.d.ts} +2 -28
- package/dist/solutions/index.cjs +6353 -6169
- package/dist/solutions/index.cjs.map +1 -1
- package/dist/solutions/index.d.cts +12 -10
- package/dist/solutions/index.d.ts +12 -10
- package/dist/solutions/index.js +5 -5
- package/dist/solutions/reactive-layout/browser/index.cjs +116 -108
- package/dist/solutions/reactive-layout/browser/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/browser/index.d.cts +4 -4
- package/dist/solutions/reactive-layout/browser/index.d.ts +4 -4
- package/dist/solutions/reactive-layout/browser/index.js +3 -3
- package/dist/solutions/reactive-layout/index.cjs +3578 -3350
- package/dist/solutions/reactive-layout/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/index.d.cts +32 -576
- package/dist/solutions/reactive-layout/index.d.ts +32 -576
- package/dist/solutions/reactive-layout/index.js +65 -5
- package/dist/solutions/reactive-layout/node-canvas/index.cjs +127 -117
- package/dist/solutions/reactive-layout/node-canvas/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/node-canvas/index.d.cts +4 -4
- package/dist/solutions/reactive-layout/node-canvas/index.d.ts +4 -4
- package/dist/solutions/reactive-layout/node-canvas/index.js +3 -3
- package/dist/solutions/reactive-layout/react-native/index.cjs +127 -117
- package/dist/solutions/reactive-layout/react-native/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/react-native/index.d.cts +4 -4
- package/dist/solutions/reactive-layout/react-native/index.d.ts +4 -4
- package/dist/solutions/reactive-layout/react-native/index.js +3 -3
- package/dist/solutions/reactive-layout/skia/index.cjs +127 -117
- package/dist/solutions/reactive-layout/skia/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/skia/index.d.cts +4 -4
- package/dist/solutions/reactive-layout/skia/index.d.ts +4 -4
- package/dist/solutions/reactive-layout/skia/index.js +3 -3
- package/dist/solutions/work-item/actions.cjs +1609 -1428
- package/dist/solutions/work-item/actions.cjs.map +1 -1
- package/dist/solutions/work-item/actions.d.cts +23 -184
- package/dist/solutions/work-item/actions.d.ts +23 -184
- package/dist/solutions/work-item/actions.js +1558 -934
- package/dist/solutions/work-item/actions.js.map +1 -1
- package/dist/solutions/work-item/scheduling.cjs +9181 -1838
- package/dist/solutions/work-item/scheduling.cjs.map +1 -1
- package/dist/solutions/work-item/scheduling.d.cts +1763 -328
- package/dist/solutions/work-item/scheduling.d.ts +1763 -328
- package/dist/solutions/work-item/scheduling.js +117 -3
- package/dist/solutions/work-item/work-queue.d.cts +7 -7
- package/dist/solutions/work-item/work-queue.d.ts +7 -7
- package/dist/sources/browser.cjs +1318 -1083
- package/dist/sources/browser.cjs.map +1 -1
- package/dist/sources/browser.d.cts +4 -4
- package/dist/sources/browser.d.ts +4 -4
- package/dist/sources/browser.js +4 -4
- package/dist/sources/index.cjs +1318 -1083
- package/dist/sources/index.cjs.map +1 -1
- package/dist/sources/index.d.cts +4 -4
- package/dist/sources/index.d.ts +4 -4
- package/dist/sources/index.js +4 -4
- package/dist/sources/node.d.cts +3 -3
- package/dist/sources/node.d.ts +3 -3
- package/dist/storage/browser.cjs +16 -0
- package/dist/storage/browser.cjs.map +1 -1
- package/dist/storage/browser.js +3 -3
- package/dist/storage/index.cjs +16 -0
- package/dist/storage/index.cjs.map +1 -1
- package/dist/storage/index.d.cts +5 -4
- package/dist/storage/index.d.ts +5 -4
- package/dist/storage/index.js +6 -6
- package/dist/storage/node.cjs +16 -0
- package/dist/storage/node.cjs.map +1 -1
- package/dist/storage/node.js +3 -3
- package/dist/{store-C-joM4gh.d.ts → store-BmtEs9mG.d.ts} +1 -1
- package/dist/{store-CNJwmT-h.d.cts → store-PAAsYvML.d.cts} +1 -1
- package/dist/types-BRNKoFHj.d.ts +357 -0
- package/dist/{types-CcPIn7sy.d.cts → types-BS6CyR-x.d.cts} +27 -108
- 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-BsJvElYZ.d.ts → types-C9NOgNJw.d.ts} +27 -108
- 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-C3M79vE9.d.ts → work-item-runtime-types-BqtWnSCS.d.ts} +3 -93
- package/dist/{work-item-runtime-qaVgsL0T.d.cts → work-item-runtime-types-CHO03AKh.d.cts} +3 -93
- package/dist/work-queue/index.cjs +957 -953
- package/dist/work-queue/index.cjs.map +1 -1
- package/dist/work-queue/index.d.cts +9 -357
- package/dist/work-queue/index.d.ts +9 -357
- package/dist/work-queue/index.js +957 -953
- package/dist/work-queue/index.js.map +1 -1
- package/package.json +603 -513
- package/dist/chunk-3JR3EDB2.js.map +0 -1
- package/dist/chunk-4VLAQHZI.js.map +0 -1
- package/dist/chunk-6XAIOL3X.js +0 -2407
- package/dist/chunk-6XAIOL3X.js.map +0 -1
- package/dist/chunk-FBUU43PM.js.map +0 -1
- package/dist/chunk-HKK2JD7Z.js.map +0 -1
- package/dist/chunk-PC3BTTBE.js +0 -3217
- package/dist/chunk-PC3BTTBE.js.map +0 -1
- package/dist/chunk-QFY4AFY4.js.map +0 -1
- package/dist/chunk-V7CIJE4B.js.map +0 -1
- package/dist/chunk-XKXWK2KP.js.map +0 -1
- package/dist/chunk-YDSIVHRR.js.map +0 -1
- package/dist/chunk-YXMZ2N6J.js.map +0 -1
- /package/dist/{chunk-Z2ANQ6JW.js.map → chunk-4Q77MMJY.js.map} +0 -0
- /package/dist/{chunk-IXZBUWSP.js.map → chunk-7HZRJMN6.js.map} +0 -0
- /package/dist/{chunk-SS2A464I.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-VTHLCFN4.js.map → chunk-RAHNUYA5.js.map} +0 -0
- /package/dist/{chunk-CZNV3VXM.js.map → chunk-SIDJO2T4.js.map} +0 -0
- /package/dist/{chunk-2747WN4Y.js.map → chunk-TPND5MJS.js.map} +0 -0
- /package/dist/{chunk-43BKLFZU.js.map → chunk-YDWBXXQZ.js.map} +0 -0
- /package/dist/{chunk-6PHB5CJS.js.map → chunk-ZLFRB6FI.js.map} +0 -0
|
@@ -1,21 +1,181 @@
|
|
|
1
|
-
import { d as Graph } from '../graph-DCEWh4T2.cjs';
|
|
2
1
|
import { b as RetryStatus, B as BackoffPolicy, R as RetryPolicy } from '../resilience-Dig3Q7n0.cjs';
|
|
3
2
|
export { c as backoffDelayMs, n as nextRetryDelayMs, d as noBackoff, r as retryPolicy, s as shouldRetry } from '../resilience-Dig3Q7n0.cjs';
|
|
4
|
-
import { N as Node } from '../types-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { N as Node } from '../types-BS6CyR-x.cjs';
|
|
4
|
+
import { d as Graph } from '../graph-CWK3HLPB.cjs';
|
|
5
|
+
import { S as SourceRef, o as EffectRun, p as AgentDecision, A as AgentRequestStatusChanged, b as AgentRequestFact, n as EffectRunResult, q as EffectRunCompletionBundle, E as ExecutorOutcome, r as StructuredAgentDecisionInterpreterBundle, s as ExecutorOutcomeBase, j as AgentNeed, h as AgentOutputEnvelope, t as AgentRequestProposal, u as AgentRequestAdmitted, v as AgentRequestLedgerBundle, w as AgentDecisionContinue, d as AgentRequestIssued, e as ExecutorProfile, c as ExecutorRoute, C as ContextContribution, P as PromptBundle, x as AgentRequestSatisfactionBundle } from '../agent-runtime-types-core-CaXfKNtY.cjs';
|
|
6
|
+
export { y as AgentDecisionBase, z as AgentDecisionBlocked, B as AgentDecisionFinal, D as AgentDecisionKind, F as AgentRequestDeferred, g as AgentRequestInput, G as AgentRequestKind, H as AgentRequestMerged, I as AgentRequestRejected, J as AgentRequestStatus, K as AgentRequestViews, a as AgentRuntimeAuditRecord, L as EffectRunCompletionStatus, l as EffectRunGoal, m as EffectRunLimits, M as EffectRunOptions, N as EffectRunResultBase, k as EffectRunResultStatus, O as ExecutorArtifactMaterial, f as ExecutorOutcomeStatus, i as ExecutorUsage, Q as SizeCapacityEvidence, R as StructuredAgentDecisionEnvelope, T as effectRun } from '../agent-runtime-types-core-CaXfKNtY.cjs';
|
|
7
|
+
import { c as ToolProviderAdapterInput, y as ToolProviderAdapterRunReason, a as ToolProviderAdapterRunRequested, z as ToolProviderAdapterRunBundle, m as ToolProviderAdapterRunResult, d as ToolProviderPublicTextPolicy, x as ExecutorOutcomeViewPolicy, E as ExecutorOutcomeViewBundle, T as ToolProviderCatalog, A as ToolProviderPolicyResolution, w as ToolProviderAdapterInputBundle, L as LocalBuiltinToolProviderCatalogOptions, v as ToolProviderPolicyResolutionBundle, B as ToolProviderRunAdmissionDecision, C as ToolProviderRunAdmissionBundle, D as ToolProviderRunRetryPolicy, F as ToolProviderRunRetryBundle } from '../agent-runtime-types-tool-DninPEzk.cjs';
|
|
8
|
+
export { G as ExecutorOutcomeView, H as ExecutorOutcomeViewAudience, I as ToolCallInput, J as ToolProviderAdapterInputStatus, b as ToolProviderAdapterRunStatus, K as ToolProviderApprovalPolicy, M as ToolProviderArtifactPolicy, N as ToolProviderCatalogEntry, O as ToolProviderExecutionPolicy, P as ToolProviderFilesystemPolicy, Q as ToolProviderKind, R as ToolProviderNetworkPolicy, S as ToolProviderPathRule, U as ToolProviderPolicyResolutionStatus, V as ToolProviderRedactionPolicy, W as ToolProviderRunAdmission, X as ToolProviderRunAdmissionOutcome, Y as ToolProviderRunAdmissionProposal, Z as ToolProviderRunAdmissionState, _ as ToolProviderRunAdmissionStatus, $ as ToolProviderRunAdmissionViews, a0 as ToolProviderRunRetryProposal, a1 as ToolProviderRunRetryScheduled, a2 as ToolProviderRunRetryStatus, a3 as ToolProviderRunRetryStatusState, a4 as ToolProviderRunRetryViews, a5 as ToolProviderSizeCapacityPolicy, a6 as ToolProviderSizeLimit, a7 as ToolProviderSizeUnit, a8 as ToolProviderTimeoutPolicy } from '../agent-runtime-types-tool-DninPEzk.cjs';
|
|
9
|
+
import { DataIssue } from '../data/index.cjs';
|
|
10
|
+
import { a as ScheduledReadinessReady } from '../scheduled-readiness-DpRY8jI0.cjs';
|
|
11
|
+
export { c as ScheduledReadinessBundle, d as ScheduledReadinessClock, b as ScheduledReadinessOverdue, e as ScheduledReadinessPending, S as ScheduledReadinessRequested, f as ScheduledReadinessStatus, g as ScheduledReadinessStatusState, h as ScheduledReadinessViews, s as scheduledReadinessProjector } from '../scheduled-readiness-DpRY8jI0.cjs';
|
|
12
|
+
import { d as ProcessBundleOptions, e as ProcessBundle, f as ProcessEffectRunnerOptions, g as ProcessEffectRunnerBundle } from '../process-types-h3uRlzDc.cjs';
|
|
13
|
+
export { h as ProcessAuditRecord, P as ProcessCommand, i as ProcessCursor, j as ProcessEffectCommandPayload, k as ProcessEffectCommandType, l as ProcessEffectOutcome, c as ProcessEffectRequest, m as ProcessEffectRequestDraft, n as ProcessEffectRunnerError, o as ProcessEffectRunnerStatus, p as ProcessError, q as ProcessErrorCode, b as ProcessEvent, r as ProcessEventDraft, s as ProcessReducer, t as ProcessReduction, a as ProcessStatus } from '../process-types-h3uRlzDc.cjs';
|
|
8
14
|
import '../messages-CAzUPPJM.cjs';
|
|
15
|
+
import '../core/index.cjs';
|
|
9
16
|
import '../codec-BB7p8fJc.cjs';
|
|
10
|
-
import '../describe-
|
|
11
|
-
import '../
|
|
17
|
+
import '../describe-CQRrkv-Q.cjs';
|
|
18
|
+
import '../types-XDoqxYO9.cjs';
|
|
19
|
+
|
|
20
|
+
declare function requestToolProviderAdapterRun(input: ToolProviderAdapterInput, opts?: {
|
|
21
|
+
readonly runId?: string;
|
|
22
|
+
readonly attempt?: number;
|
|
23
|
+
readonly reason?: ToolProviderAdapterRunReason;
|
|
24
|
+
readonly retryOfOutcomeId?: string;
|
|
25
|
+
readonly policyRefs?: readonly SourceRef[];
|
|
26
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
27
|
+
readonly metadata?: Record<string, unknown>;
|
|
28
|
+
readonly requestedAtMs?: number;
|
|
29
|
+
}): ToolProviderAdapterRunRequested;
|
|
30
|
+
declare function toolProviderAdapterRunProjector(graph: Graph, opts: {
|
|
31
|
+
readonly name?: string;
|
|
32
|
+
readonly inputs: Node<ToolProviderAdapterInput>;
|
|
33
|
+
readonly runRequests?: readonly Node<ToolProviderAdapterRunRequested>[];
|
|
34
|
+
readonly autoRunReadyInputs?: boolean;
|
|
35
|
+
readonly now?: () => number;
|
|
36
|
+
}): ToolProviderAdapterRunBundle;
|
|
37
|
+
|
|
38
|
+
declare function effectRunCompletionProjector(graph: Graph, opts: {
|
|
39
|
+
readonly name?: string;
|
|
40
|
+
readonly effectRuns: Node<EffectRun>;
|
|
41
|
+
readonly decisions?: readonly Node<AgentDecision>[];
|
|
42
|
+
readonly requestStatuses?: readonly Node<AgentRequestStatusChanged>[];
|
|
43
|
+
readonly requestFacts?: readonly Node<AgentRequestFact>[];
|
|
44
|
+
readonly resultCandidates?: readonly Node<EffectRunResult>[];
|
|
45
|
+
readonly now?: () => number;
|
|
46
|
+
}): EffectRunCompletionBundle;
|
|
47
|
+
|
|
48
|
+
declare function structuredAgentDecisionInterpreter(graph: Graph, outcomes: Node<ExecutorOutcome>, opts?: {
|
|
49
|
+
readonly name?: string;
|
|
50
|
+
readonly schemaRef?: string;
|
|
51
|
+
readonly requestFacts?: readonly Node<AgentRequestFact>[];
|
|
52
|
+
}): StructuredAgentDecisionInterpreterBundle;
|
|
53
|
+
|
|
54
|
+
declare function buildToolProviderExecutorOutcome<T = unknown>(input: ToolProviderAdapterInput, result: ToolProviderAdapterRunResult<T>, opts?: {
|
|
55
|
+
readonly attempt?: number;
|
|
56
|
+
readonly outcomeId?: string;
|
|
57
|
+
readonly occurredAtMs?: number;
|
|
58
|
+
readonly runId?: string;
|
|
59
|
+
readonly publicText?: ToolProviderPublicTextPolicy;
|
|
60
|
+
}): ExecutorOutcome<T>;
|
|
61
|
+
|
|
62
|
+
declare function fakeExecutorResult<T>(opts: Omit<ExecutorOutcomeBase, "kind"> & {
|
|
63
|
+
readonly result: AgentOutputEnvelope<T>;
|
|
64
|
+
}): ExecutorOutcome<T>;
|
|
65
|
+
declare function fakeExecutorFailure(opts: Omit<ExecutorOutcomeBase, "kind"> & {
|
|
66
|
+
readonly error: DataIssue;
|
|
67
|
+
readonly retryable?: boolean;
|
|
68
|
+
}): ExecutorOutcome;
|
|
69
|
+
declare function fakeExecutorBlocked(opts: Omit<ExecutorOutcomeBase, "kind"> & {
|
|
70
|
+
readonly needs: readonly AgentNeed[];
|
|
71
|
+
}): ExecutorOutcome;
|
|
72
|
+
declare function fakeExecutorTimeout(opts: Omit<ExecutorOutcomeBase, "kind"> & {
|
|
73
|
+
readonly timeoutMs?: number;
|
|
74
|
+
readonly retryable?: boolean;
|
|
75
|
+
}): ExecutorOutcome;
|
|
76
|
+
declare function fakeExecutorCanceled(opts: Omit<ExecutorOutcomeBase, "kind"> & {
|
|
77
|
+
readonly reason?: string;
|
|
78
|
+
}): ExecutorOutcome;
|
|
79
|
+
|
|
80
|
+
declare function executorOutcomeViewProjector(graph: Graph, opts: {
|
|
81
|
+
readonly name?: string;
|
|
82
|
+
readonly outcomes: Node<ExecutorOutcome>;
|
|
83
|
+
readonly policy?: ExecutorOutcomeViewPolicy;
|
|
84
|
+
}): ExecutorOutcomeViewBundle;
|
|
85
|
+
|
|
86
|
+
declare function agentRequestProposalFromDecision(decision: AgentDecisionContinue, proposal: Omit<AgentRequestProposal, "kind" | "effectRunId" | "agentRunId" | "sourceDecisionId">): AgentRequestProposal;
|
|
87
|
+
declare function admitAgentRequestProposal(proposal: AgentRequestProposal, opts: {
|
|
88
|
+
readonly requestId: string;
|
|
89
|
+
readonly operationId: string;
|
|
90
|
+
readonly admittedAtMs?: number;
|
|
91
|
+
readonly reason?: string;
|
|
92
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
93
|
+
readonly metadata?: Record<string, unknown>;
|
|
94
|
+
}): AgentRequestAdmitted;
|
|
95
|
+
declare function issueAgentRequest(proposal: AgentRequestProposal, admission: AgentRequestAdmitted, opts?: {
|
|
96
|
+
readonly issuedAtMs?: number;
|
|
97
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
98
|
+
}): AgentRequestIssued;
|
|
99
|
+
declare function agentRequestLedgerViews(graph: Graph, facts: Node<AgentRequestFact>, opts?: {
|
|
100
|
+
readonly name?: string;
|
|
101
|
+
}): AgentRequestLedgerBundle;
|
|
102
|
+
|
|
103
|
+
declare function requestSatisfactionProjector(graph: Graph, opts: {
|
|
104
|
+
readonly name?: string;
|
|
105
|
+
readonly requestFacts: Node<AgentRequestFact>;
|
|
106
|
+
readonly executorProfiles?: readonly Node<ExecutorProfile>[];
|
|
107
|
+
readonly executorRoutes?: readonly Node<ExecutorRoute>[];
|
|
108
|
+
readonly executorOutcomes?: readonly Node<ExecutorOutcome>[];
|
|
109
|
+
readonly contextContributions?: readonly Node<ContextContribution>[];
|
|
110
|
+
readonly promptBundles?: readonly Node<PromptBundle>[];
|
|
111
|
+
}): AgentRequestSatisfactionBundle;
|
|
112
|
+
|
|
113
|
+
declare function buildToolProviderAdapterInputs(opts: {
|
|
114
|
+
readonly requests: readonly AgentRequestIssued[];
|
|
115
|
+
readonly routes?: readonly ExecutorRoute[];
|
|
116
|
+
readonly catalogs?: readonly ToolProviderCatalog[];
|
|
117
|
+
readonly resolutions: readonly ToolProviderPolicyResolution[];
|
|
118
|
+
}): readonly ToolProviderAdapterInput[];
|
|
119
|
+
declare function toolProviderAdapterInputProjector(graph: Graph, opts: {
|
|
120
|
+
readonly name?: string;
|
|
121
|
+
readonly requestFacts: Node<AgentRequestFact>;
|
|
122
|
+
readonly executorRoutes?: readonly Node<ExecutorRoute>[];
|
|
123
|
+
readonly toolProviderCatalogs?: readonly Node<ToolProviderCatalog>[];
|
|
124
|
+
readonly policyResolutions: readonly Node<ToolProviderPolicyResolution>[];
|
|
125
|
+
}): ToolProviderAdapterInputBundle;
|
|
126
|
+
|
|
127
|
+
declare function localBuiltinToolProviderCatalog(opts?: LocalBuiltinToolProviderCatalogOptions): ToolProviderCatalog;
|
|
128
|
+
declare function validateToolProviderExecutionPolicy(policy: unknown): readonly DataIssue[];
|
|
129
|
+
declare function resolveToolProviderExecutionPolicies(opts: {
|
|
130
|
+
readonly request: AgentRequestIssued;
|
|
131
|
+
readonly routes?: readonly ExecutorRoute[];
|
|
132
|
+
readonly catalogs?: readonly ToolProviderCatalog[];
|
|
133
|
+
}): readonly ToolProviderPolicyResolution[];
|
|
134
|
+
declare function toolProviderPolicyResolutionProjector(graph: Graph, opts: {
|
|
135
|
+
readonly name?: string;
|
|
136
|
+
readonly requestFacts: Node<AgentRequestFact>;
|
|
137
|
+
readonly executorRoutes?: readonly Node<ExecutorRoute>[];
|
|
138
|
+
readonly toolProviderCatalogs?: readonly Node<ToolProviderCatalog>[];
|
|
139
|
+
}): ToolProviderPolicyResolutionBundle;
|
|
140
|
+
|
|
141
|
+
declare function toolProviderRunAdmissionProjector(graph: Graph, opts: {
|
|
142
|
+
readonly name?: string;
|
|
143
|
+
readonly inputs: Node<ToolProviderAdapterInput>;
|
|
144
|
+
readonly runRequests: readonly Node<ToolProviderAdapterRunRequested>[];
|
|
145
|
+
readonly decisions?: readonly Node<ToolProviderRunAdmissionDecision>[];
|
|
146
|
+
readonly now?: () => number;
|
|
147
|
+
}): ToolProviderRunAdmissionBundle;
|
|
148
|
+
|
|
149
|
+
declare function toolProviderRunRetryProjector(graph: Graph, opts: {
|
|
150
|
+
readonly name?: string;
|
|
151
|
+
readonly inputs: Node<ToolProviderAdapterInput>;
|
|
152
|
+
readonly outcomes: Node<ExecutorOutcome>;
|
|
153
|
+
readonly policies?: readonly Node<ToolProviderRunRetryPolicy>[];
|
|
154
|
+
readonly nowMs?: Node<number>;
|
|
155
|
+
readonly readiness?: readonly Node<ScheduledReadinessReady>[];
|
|
156
|
+
}): ToolProviderRunRetryBundle;
|
|
12
157
|
|
|
13
158
|
/**
|
|
14
|
-
*
|
|
159
|
+
* Graph-visible ProcessBundle orchestration helpers (D136/D156).
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Build a D136 ProcessBundle from graph-visible command facts and a reducer.
|
|
15
164
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
165
|
+
* The bundle retains its runtime/projection nodes until `release()` is called.
|
|
166
|
+
* Reducer and validation failures are emitted as DATA error/status/audit facts;
|
|
167
|
+
* they do not mint protocol ERROR messages or own restore/hydration behavior.
|
|
168
|
+
*/
|
|
169
|
+
declare function processBundle<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown>(graph: Graph, opts: ProcessBundleOptions<TCommand, TState, TEvent, TEffect>): ProcessBundle<TCommand, TState, TEvent, TEffect>;
|
|
170
|
+
/**
|
|
171
|
+
* Build a D156 graph-visible effect runner adapter over a ProcessBundle.
|
|
172
|
+
*
|
|
173
|
+
* The runner consumes visible effect-request and outcome facts, then publishes
|
|
174
|
+
* ordinary ProcessCommand DATA facts back through process.command via a declared
|
|
175
|
+
* graph edge. Async handlers, timers, and process state ownership stay outside
|
|
176
|
+
* this helper.
|
|
18
177
|
*/
|
|
178
|
+
declare function processEffectRunner<TEffect = unknown, TResult = unknown>(graph: Graph, process: ProcessBundle<unknown, unknown, unknown, TEffect>, opts: ProcessEffectRunnerOptions<TResult>): ProcessEffectRunnerBundle<TEffect, TResult>;
|
|
19
179
|
|
|
20
180
|
type ResilienceEvent = {
|
|
21
181
|
readonly kind: "attempt";
|
|
@@ -78,202 +238,6 @@ interface TimeoutBundle<T> {
|
|
|
78
238
|
readonly status: Node<"running" | "completed" | "errored">;
|
|
79
239
|
readonly errors: Node<unknown>;
|
|
80
240
|
}
|
|
81
|
-
/** D136 graph-visible process command fact. */
|
|
82
|
-
interface ProcessCommand<T = unknown> {
|
|
83
|
-
readonly id: string;
|
|
84
|
-
readonly type: string;
|
|
85
|
-
readonly payload: T;
|
|
86
|
-
readonly processId?: string;
|
|
87
|
-
readonly correlationId?: string;
|
|
88
|
-
readonly causationId?: string;
|
|
89
|
-
readonly metadata?: Record<string, unknown>;
|
|
90
|
-
}
|
|
91
|
-
/** Event draft returned by a ProcessBundle reducer before runtime ordering. */
|
|
92
|
-
interface ProcessEventDraft<T = unknown> {
|
|
93
|
-
readonly id?: string;
|
|
94
|
-
readonly type: string;
|
|
95
|
-
readonly payload: T;
|
|
96
|
-
readonly processId?: string;
|
|
97
|
-
readonly correlationId?: string;
|
|
98
|
-
readonly causationId?: string;
|
|
99
|
-
readonly metadata?: Record<string, unknown>;
|
|
100
|
-
}
|
|
101
|
-
/** Ordered process event fact. These are DATA facts, not protocol messages. */
|
|
102
|
-
interface ProcessEvent<T = unknown> {
|
|
103
|
-
readonly id: string;
|
|
104
|
-
readonly type: string;
|
|
105
|
-
readonly seq: number;
|
|
106
|
-
readonly cursor: number;
|
|
107
|
-
readonly commandId: string;
|
|
108
|
-
readonly commandType: string;
|
|
109
|
-
readonly payload: T;
|
|
110
|
-
readonly timestampMs: number;
|
|
111
|
-
readonly processId?: string;
|
|
112
|
-
readonly correlationId?: string;
|
|
113
|
-
readonly causationId?: string;
|
|
114
|
-
readonly metadata?: Record<string, unknown>;
|
|
115
|
-
}
|
|
116
|
-
/** Effect-request draft emitted by a ProcessBundle reducer for visible effect runners. */
|
|
117
|
-
interface ProcessEffectRequestDraft<T = unknown> {
|
|
118
|
-
readonly id?: string;
|
|
119
|
-
readonly type: string;
|
|
120
|
-
readonly payload: T;
|
|
121
|
-
readonly processId?: string;
|
|
122
|
-
readonly correlationId?: string;
|
|
123
|
-
readonly causationId?: string;
|
|
124
|
-
readonly metadata?: Record<string, unknown>;
|
|
125
|
-
}
|
|
126
|
-
/** Ordered effect-request fact. Effect runners consume this node in later slices. */
|
|
127
|
-
interface ProcessEffectRequest<T = unknown> {
|
|
128
|
-
readonly id: string;
|
|
129
|
-
readonly type: string;
|
|
130
|
-
readonly seq: number;
|
|
131
|
-
readonly cursor: number;
|
|
132
|
-
readonly commandId: string;
|
|
133
|
-
readonly commandType: string;
|
|
134
|
-
readonly payload: T;
|
|
135
|
-
readonly timestampMs: number;
|
|
136
|
-
readonly processId?: string;
|
|
137
|
-
readonly correlationId?: string;
|
|
138
|
-
readonly causationId?: string;
|
|
139
|
-
readonly metadata?: Record<string, unknown>;
|
|
140
|
-
}
|
|
141
|
-
type ProcessEffectCommandType = "effect.result" | "effect.failure" | "effect.cancel" | "effect.timeout";
|
|
142
|
-
interface ProcessEffectOutcomeBase {
|
|
143
|
-
readonly effectId: string;
|
|
144
|
-
readonly effectType: string;
|
|
145
|
-
readonly processId?: string;
|
|
146
|
-
readonly correlationId?: string;
|
|
147
|
-
readonly causationId?: string;
|
|
148
|
-
readonly commandId?: string;
|
|
149
|
-
readonly metadata?: Record<string, unknown>;
|
|
150
|
-
}
|
|
151
|
-
type ProcessEffectOutcome<TResult = unknown> = (ProcessEffectOutcomeBase & {
|
|
152
|
-
readonly kind: "result";
|
|
153
|
-
readonly value: TResult;
|
|
154
|
-
}) | (ProcessEffectOutcomeBase & {
|
|
155
|
-
readonly kind: "failure";
|
|
156
|
-
readonly error: unknown;
|
|
157
|
-
}) | (ProcessEffectOutcomeBase & {
|
|
158
|
-
readonly kind: "cancel";
|
|
159
|
-
readonly reason?: string;
|
|
160
|
-
}) | (ProcessEffectOutcomeBase & {
|
|
161
|
-
readonly kind: "timeout";
|
|
162
|
-
readonly error: unknown;
|
|
163
|
-
});
|
|
164
|
-
type ProcessEffectCommandPayload<TResult = unknown> = (Omit<ProcessEffectOutcomeBase, "commandId"> & {
|
|
165
|
-
readonly kind: "result";
|
|
166
|
-
readonly value: TResult;
|
|
167
|
-
}) | (Omit<ProcessEffectOutcomeBase, "commandId"> & {
|
|
168
|
-
readonly kind: "failure";
|
|
169
|
-
readonly error: unknown;
|
|
170
|
-
}) | (Omit<ProcessEffectOutcomeBase, "commandId"> & {
|
|
171
|
-
readonly kind: "cancel";
|
|
172
|
-
readonly reason?: string;
|
|
173
|
-
}) | (Omit<ProcessEffectOutcomeBase, "commandId"> & {
|
|
174
|
-
readonly kind: "timeout";
|
|
175
|
-
readonly error: unknown;
|
|
176
|
-
});
|
|
177
|
-
type ProcessErrorCode = "malformed-command" | "reducer-threw" | "clock-threw" | "malformed-state" | "malformed-event" | "malformed-effect";
|
|
178
|
-
/** Graph-visible ProcessBundle error fact. These are DATA facts, not protocol ERROR. */
|
|
179
|
-
interface ProcessError {
|
|
180
|
-
readonly code: ProcessErrorCode;
|
|
181
|
-
readonly message: string;
|
|
182
|
-
readonly command?: unknown;
|
|
183
|
-
readonly commandId?: string;
|
|
184
|
-
readonly commandType?: string;
|
|
185
|
-
readonly cursor: ProcessCursor;
|
|
186
|
-
}
|
|
187
|
-
/** Accepted/rejected command outcome projected from the ProcessBundle runtime. */
|
|
188
|
-
interface ProcessStatus {
|
|
189
|
-
readonly state: "accepted" | "rejected";
|
|
190
|
-
readonly commandId?: string;
|
|
191
|
-
readonly commandType?: string;
|
|
192
|
-
readonly eventCount: number;
|
|
193
|
-
readonly effectCount: number;
|
|
194
|
-
readonly errorCode?: ProcessErrorCode;
|
|
195
|
-
readonly cursor: ProcessCursor;
|
|
196
|
-
}
|
|
197
|
-
interface ProcessEffectRunnerStatus {
|
|
198
|
-
readonly state: "requested" | "commanded" | "rejected";
|
|
199
|
-
readonly effectId?: string;
|
|
200
|
-
readonly effectType?: string;
|
|
201
|
-
readonly commandId?: string;
|
|
202
|
-
readonly commandType?: ProcessEffectCommandType;
|
|
203
|
-
readonly requested: number;
|
|
204
|
-
readonly commanded: number;
|
|
205
|
-
readonly rejected: number;
|
|
206
|
-
}
|
|
207
|
-
interface ProcessEffectRunnerError {
|
|
208
|
-
readonly code: "malformed-outcome";
|
|
209
|
-
readonly message: string;
|
|
210
|
-
readonly outcome?: unknown;
|
|
211
|
-
readonly effectId?: string;
|
|
212
|
-
readonly effectType?: string;
|
|
213
|
-
}
|
|
214
|
-
/** Ordered audit fact for one attempted command reduction. */
|
|
215
|
-
interface ProcessAuditRecord {
|
|
216
|
-
readonly seq: number;
|
|
217
|
-
readonly commandId?: string;
|
|
218
|
-
readonly commandType?: string;
|
|
219
|
-
readonly outcome: "success" | "failure";
|
|
220
|
-
readonly eventIds: readonly string[];
|
|
221
|
-
readonly eventTypes: readonly string[];
|
|
222
|
-
readonly effectIds: readonly string[];
|
|
223
|
-
readonly effectTypes: readonly string[];
|
|
224
|
-
readonly errorCode?: ProcessErrorCode;
|
|
225
|
-
readonly errorMessage?: string;
|
|
226
|
-
readonly cursor: ProcessCursor;
|
|
227
|
-
}
|
|
228
|
-
/** Monotonic graph-visible ProcessBundle cursor counters. */
|
|
229
|
-
interface ProcessCursor {
|
|
230
|
-
readonly eventSeq: number;
|
|
231
|
-
readonly effectSeq: number;
|
|
232
|
-
readonly commandCount: number;
|
|
233
|
-
readonly errorCount: number;
|
|
234
|
-
readonly auditSeq: number;
|
|
235
|
-
}
|
|
236
|
-
/** Reducer result: next process state plus optional event/effect-request drafts. */
|
|
237
|
-
interface ProcessReduction<TState = unknown, TEvent = unknown, TEffect = unknown> {
|
|
238
|
-
readonly state: TState;
|
|
239
|
-
readonly events?: readonly ProcessEventDraft<TEvent>[];
|
|
240
|
-
readonly effects?: readonly ProcessEffectRequestDraft<TEffect>[];
|
|
241
|
-
}
|
|
242
|
-
/** Sync ProcessBundle reducer. Async effects belong in graph-visible adapters, not here. */
|
|
243
|
-
type ProcessReducer<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown> = (command: ProcessCommand<TCommand>, state: TState) => ProcessReduction<TState, TEvent, TEffect>;
|
|
244
|
-
/** Options for a D136 facts-plus-reducer ProcessBundle. */
|
|
245
|
-
interface ProcessBundleOptions<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown> {
|
|
246
|
-
readonly name?: string;
|
|
247
|
-
readonly initialState: TState;
|
|
248
|
-
readonly reduce: ProcessReducer<TCommand, TState, TEvent, TEffect>;
|
|
249
|
-
readonly now?: () => number;
|
|
250
|
-
}
|
|
251
|
-
/** D136 facts-plus-reducer process bundle. It is not a workflow engine or hidden runtime owner. */
|
|
252
|
-
interface ProcessBundle<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown> {
|
|
253
|
-
readonly command: Node<ProcessCommand<TCommand>>;
|
|
254
|
-
readonly events: Node<ProcessEvent<TEvent>>;
|
|
255
|
-
readonly state: Node<TState>;
|
|
256
|
-
readonly audit: Node<ProcessAuditRecord>;
|
|
257
|
-
readonly effectRequests: Node<ProcessEffectRequest<TEffect>>;
|
|
258
|
-
readonly status: Node<ProcessStatus>;
|
|
259
|
-
readonly errors: Node<ProcessError>;
|
|
260
|
-
readonly cursor: Node<ProcessCursor>;
|
|
261
|
-
dispatch(command: ProcessCommand<TCommand>): ProcessCommand<TCommand>;
|
|
262
|
-
/** Release only graph-owned retain roots; process facts/topology/cache/state remain ordinary graph data. */
|
|
263
|
-
release(): void;
|
|
264
|
-
}
|
|
265
|
-
interface ProcessEffectRunnerOptions<TResult = unknown> {
|
|
266
|
-
readonly name?: string;
|
|
267
|
-
readonly outcomes: readonly Node<ProcessEffectOutcome<TResult>>[];
|
|
268
|
-
}
|
|
269
|
-
interface ProcessEffectRunnerBundle<TEffect = unknown, TResult = unknown> {
|
|
270
|
-
readonly requests: Node<ProcessEffectRequest<TEffect>>;
|
|
271
|
-
readonly outcomes: Node<ProcessEffectOutcome<TResult>>;
|
|
272
|
-
readonly commands: Node<ProcessCommand<ProcessEffectCommandPayload<TResult>>>;
|
|
273
|
-
readonly status: Node<ProcessEffectRunnerStatus>;
|
|
274
|
-
readonly errors: Node<ProcessEffectRunnerError>;
|
|
275
|
-
release(): void;
|
|
276
|
-
}
|
|
277
241
|
declare function retryStatusBundle(graph: Graph, events: Node<ResilienceEvent>, opts?: {
|
|
278
242
|
name?: string;
|
|
279
243
|
policy?: RetryPolicy;
|
|
@@ -283,23 +247,6 @@ declare function rateLimitBundle<T>(graph: Graph, source: Node<T>, opts: RateLim
|
|
|
283
247
|
declare function timeoutBundle<T>(graph: Graph, source: Node<T>, ms: number, opts?: {
|
|
284
248
|
name?: string;
|
|
285
249
|
}): TimeoutBundle<T>;
|
|
286
|
-
/**
|
|
287
|
-
* Build a D136 ProcessBundle from graph-visible command facts and a reducer.
|
|
288
|
-
*
|
|
289
|
-
* The bundle retains its runtime/projection nodes until `release()` is called.
|
|
290
|
-
* Reducer and validation failures are emitted as DATA error/status/audit facts;
|
|
291
|
-
* they do not mint protocol ERROR messages or own restore/hydration behavior.
|
|
292
|
-
*/
|
|
293
|
-
declare function processBundle<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown>(graph: Graph, opts: ProcessBundleOptions<TCommand, TState, TEvent, TEffect>): ProcessBundle<TCommand, TState, TEvent, TEffect>;
|
|
294
|
-
/**
|
|
295
|
-
* Build a D156 graph-visible effect runner adapter over a ProcessBundle.
|
|
296
|
-
*
|
|
297
|
-
* The runner consumes visible effect-request and outcome facts, then publishes
|
|
298
|
-
* ordinary ProcessCommand DATA facts back through process.command via a declared
|
|
299
|
-
* graph edge. Async handlers, timers, and process state ownership stay outside
|
|
300
|
-
* this helper.
|
|
301
|
-
*/
|
|
302
|
-
declare function processEffectRunner<TEffect = unknown, TResult = unknown>(graph: Graph, process: ProcessBundle<unknown, unknown, unknown, TEffect>, opts: ProcessEffectRunnerOptions<TResult>): ProcessEffectRunnerBundle<TEffect, TResult>;
|
|
303
250
|
declare function constantBackoff(delayMs: number): BackoffPolicy;
|
|
304
251
|
|
|
305
|
-
export { BackoffPolicy, type BreakerBundle, type BreakerOptions, type BreakerStatus,
|
|
252
|
+
export { AgentDecision, AgentDecisionContinue, AgentNeed, AgentOutputEnvelope, AgentRequestAdmitted, AgentRequestFact, AgentRequestIssued, AgentRequestLedgerBundle, AgentRequestProposal, AgentRequestSatisfactionBundle, AgentRequestStatusChanged, BackoffPolicy, type BreakerBundle, type BreakerOptions, type BreakerStatus, ContextContribution, EffectRun, EffectRunCompletionBundle, EffectRunResult, ExecutorOutcome, ExecutorOutcomeBase, ExecutorOutcomeViewBundle, ExecutorOutcomeViewPolicy, ExecutorProfile, ExecutorRoute, LocalBuiltinToolProviderCatalogOptions, ProcessBundle, ProcessBundleOptions, ProcessEffectRunnerBundle, ProcessEffectRunnerOptions, PromptBundle, type RateLimitBundle, type RateLimitOptions, type RateLimitStatus, type ResilienceEvent, RetryPolicy, RetryStatus, type RetryStatusBundle, ScheduledReadinessReady, SourceRef, StructuredAgentDecisionInterpreterBundle, type TimeoutBundle, ToolProviderAdapterInput, ToolProviderAdapterInputBundle, ToolProviderAdapterRunBundle, ToolProviderAdapterRunReason, ToolProviderAdapterRunRequested, ToolProviderCatalog, ToolProviderPolicyResolution, ToolProviderPolicyResolutionBundle, ToolProviderPublicTextPolicy, ToolProviderRunAdmissionBundle, ToolProviderRunAdmissionDecision, ToolProviderRunRetryBundle, ToolProviderRunRetryPolicy, admitAgentRequestProposal, agentRequestLedgerViews, agentRequestProposalFromDecision, breakerBundle, buildToolProviderAdapterInputs, buildToolProviderExecutorOutcome, constantBackoff, effectRunCompletionProjector, executorOutcomeViewProjector, fakeExecutorBlocked, fakeExecutorCanceled, fakeExecutorFailure, fakeExecutorResult, fakeExecutorTimeout, issueAgentRequest, localBuiltinToolProviderCatalog, processBundle, processEffectRunner, rateLimitBundle, requestSatisfactionProjector, requestToolProviderAdapterRun, resolveToolProviderExecutionPolicies, retryStatusBundle, structuredAgentDecisionInterpreter, timeoutBundle, toolProviderAdapterInputProjector, toolProviderAdapterRunProjector, toolProviderPolicyResolutionProjector, toolProviderRunAdmissionProjector, toolProviderRunRetryProjector, validateToolProviderExecutionPolicy };
|