@graphrefly/ts 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +135 -0
- package/dist/adapters/index.cjs +105 -66
- package/dist/adapters/index.cjs.map +1 -1
- package/dist/adapters/index.d.cts +11 -136
- package/dist/adapters/index.d.ts +11 -136
- package/dist/adapters/index.js +27 -225
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/observe-storage.d.cts +4 -4
- package/dist/adapters/observe-storage.d.ts +4 -4
- package/dist/adapters/observe-storage.js +1 -0
- package/dist/adapters/observe-storage.js.map +1 -1
- package/dist/adapters/react.cjs +166 -0
- package/dist/adapters/react.cjs.map +1 -0
- package/dist/adapters/react.d.cts +31 -0
- package/dist/adapters/react.d.ts +31 -0
- package/dist/adapters/react.js +51 -0
- package/dist/adapters/react.js.map +1 -0
- package/dist/adapters/solid.cjs +157 -0
- package/dist/adapters/solid.cjs.map +1 -0
- package/dist/adapters/solid.d.cts +26 -0
- package/dist/adapters/solid.d.ts +26 -0
- package/dist/adapters/solid.js +48 -0
- package/dist/adapters/solid.js.map +1 -0
- package/dist/adapters/svelte.cjs +148 -0
- package/dist/adapters/svelte.cjs.map +1 -0
- package/dist/adapters/svelte.d.cts +31 -0
- package/dist/adapters/svelte.d.ts +31 -0
- package/dist/adapters/svelte.js +46 -0
- package/dist/adapters/svelte.js.map +1 -0
- package/dist/adapters/vue.cjs +155 -0
- package/dist/adapters/vue.cjs.map +1 -0
- package/dist/adapters/vue.d.cts +26 -0
- package/dist/adapters/vue.d.ts +26 -0
- package/dist/adapters/vue.js +46 -0
- package/dist/adapters/vue.js.map +1 -0
- package/dist/agent-runtime-BesGDZcB.d.ts +555 -0
- package/dist/agent-runtime-DZTJ3C-p.d.cts +555 -0
- package/dist/agentic-memory-BmRCvh0d.d.ts +517 -0
- package/dist/agentic-memory-DfuVZ-lY.d.cts +517 -0
- package/dist/capability-admission-B0BzqAm5.d.cts +102 -0
- package/dist/capability-admission-g0mn9hpq.d.ts +102 -0
- package/dist/{chunk-JR4IKCR2.js → chunk-2747WN4Y.js} +5 -5
- package/dist/{chunk-2ILL7HQI.js → chunk-3JR3EDB2.js} +17 -17
- package/dist/{chunk-2ILL7HQI.js.map → chunk-3JR3EDB2.js.map} +1 -1
- package/dist/{chunk-GDL26N2T.js → chunk-3KN7NJDR.js} +2 -2
- package/dist/{chunk-DJC4CHLQ.js → chunk-43BKLFZU.js} +9 -9
- package/dist/chunk-6XAIOL3X.js +2407 -0
- package/dist/chunk-6XAIOL3X.js.map +1 -0
- package/dist/{chunk-SCRFRCGR.js → chunk-BSQGE5PS.js} +1 -1
- package/dist/{chunk-Y3ZLRGHC.js → chunk-CZNV3VXM.js} +16 -16
- package/dist/chunk-DGUM43GV.js +11 -0
- package/dist/chunk-DGUM43GV.js.map +1 -0
- package/dist/{chunk-JIMUDQN3.js → chunk-FBUU43PM.js} +2 -2
- package/dist/chunk-H75VXTGT.js +219 -0
- package/dist/chunk-H75VXTGT.js.map +1 -0
- package/dist/{chunk-RIIOUTGM.js → chunk-HKK2JD7Z.js} +12 -9
- package/dist/chunk-HKK2JD7Z.js.map +1 -0
- package/dist/{chunk-D6BG7U6A.js → chunk-IXZBUWSP.js} +3 -3
- package/dist/chunk-PC3BTTBE.js +3217 -0
- package/dist/chunk-PC3BTTBE.js.map +1 -0
- package/dist/chunk-QFY4AFY4.js +879 -0
- package/dist/chunk-QFY4AFY4.js.map +1 -0
- package/dist/{chunk-DK554R7P.js → chunk-S6HXABGL.js} +2 -1
- package/dist/chunk-S6HXABGL.js.map +1 -0
- package/dist/{chunk-PKVBHGBM.js → chunk-SS2A464I.js} +7 -7
- package/dist/chunk-UT3MHJCW.js +49 -0
- package/dist/chunk-UT3MHJCW.js.map +1 -0
- package/dist/{chunk-G4M3NHRJ.js → chunk-V7CIJE4B.js} +3 -3
- package/dist/{chunk-TEW47IVR.js → chunk-VPEFSDME.js} +2 -2
- package/dist/chunk-VTHLCFN4.js +368 -0
- package/dist/chunk-VTHLCFN4.js.map +1 -0
- package/dist/{chunk-SWTLEQL6.js → chunk-WQIA3GFB.js} +2 -2
- package/dist/chunk-WQIA3GFB.js.map +1 -0
- package/dist/{chunk-I3IHOHCJ.js → chunk-XKXWK2KP.js} +108 -64
- package/dist/chunk-XKXWK2KP.js.map +1 -0
- package/dist/{chunk-COHO25CZ.js → chunk-YDSIVHRR.js} +553 -7
- package/dist/chunk-YDSIVHRR.js.map +1 -0
- package/dist/chunk-YXMZ2N6J.js +1884 -0
- package/dist/chunk-YXMZ2N6J.js.map +1 -0
- package/dist/composition/index.cjs +102 -57
- package/dist/composition/index.cjs.map +1 -1
- package/dist/composition/index.d.cts +4 -4
- package/dist/composition/index.d.ts +4 -4
- package/dist/composition/index.js +6 -5
- package/dist/core/index.cjs +102 -57
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +5 -4
- package/dist/cqrs/index.cjs.map +1 -1
- package/dist/cqrs/index.d.cts +4 -4
- package/dist/cqrs/index.d.ts +4 -4
- package/dist/cqrs/index.js +3 -2
- package/dist/cqrs/index.js.map +1 -1
- package/dist/cqrs/messaging.cjs +312 -0
- package/dist/cqrs/messaging.cjs.map +1 -0
- package/dist/cqrs/messaging.d.cts +57 -0
- package/dist/cqrs/messaging.d.ts +57 -0
- package/dist/cqrs/messaging.js +274 -0
- package/dist/cqrs/messaging.js.map +1 -0
- package/dist/cqrs/work-queue.cjs +329 -0
- package/dist/cqrs/work-queue.cjs.map +1 -0
- package/dist/cqrs/work-queue.d.cts +90 -0
- package/dist/cqrs/work-queue.d.ts +90 -0
- package/dist/cqrs/work-queue.js +292 -0
- package/dist/cqrs/work-queue.js.map +1 -0
- package/dist/data/index.cjs +19 -0
- package/dist/data/index.cjs.map +1 -0
- package/dist/data/index.d.cts +36 -0
- package/dist/data/index.d.ts +36 -0
- package/dist/data/index.js +1 -0
- package/dist/data/index.js.map +1 -0
- package/dist/data-structures/index.cjs +105 -57
- package/dist/data-structures/index.cjs.map +1 -1
- package/dist/data-structures/index.d.cts +8 -8
- package/dist/data-structures/index.d.ts +8 -8
- package/dist/data-structures/index.js +7 -6
- package/dist/{describe-BZb7AS2y.d.ts → describe-BpyJuWkw.d.ts} +1 -1
- package/dist/{describe-Ciu8SUnN.d.cts → describe-DYMw_l1C.d.cts} +1 -1
- package/dist/executors/work-queue.cjs +342 -0
- package/dist/executors/work-queue.cjs.map +1 -0
- package/dist/executors/work-queue.d.cts +90 -0
- package/dist/executors/work-queue.d.ts +90 -0
- package/dist/executors/work-queue.js +306 -0
- package/dist/executors/work-queue.js.map +1 -0
- package/dist/graph/index.cjs +112 -58
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +9 -9
- package/dist/graph/index.d.ts +9 -9
- package/dist/graph/index.js +18 -17
- package/dist/{graph-DfdF9zy4.d.ts → graph-D-1-SQeC.d.ts} +3 -3
- package/dist/{graph-s23RbbFO.d.cts → graph-DCEWh4T2.d.cts} +3 -3
- package/dist/{index-CAEmLCYF.d.cts → index-72VZC0-E.d.cts} +2 -2
- package/dist/{index-SnzZu3x7.d.ts → index-Bmxeu0nK.d.ts} +2 -2
- package/dist/index.cjs +112 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -10
- package/dist/index.d.ts +11 -10
- package/dist/index.js +118 -113
- package/dist/inspection/boundary.cjs +98 -0
- package/dist/inspection/boundary.cjs.map +1 -0
- package/dist/inspection/boundary.d.cts +61 -0
- package/dist/inspection/boundary.d.ts +61 -0
- package/dist/inspection/boundary.js +75 -0
- package/dist/inspection/boundary.js.map +1 -0
- package/dist/{messages-BZqrGGm1.d.ts → messages-CAzUPPJM.d.cts} +10 -5
- package/dist/{messages-BZqrGGm1.d.cts → messages-CAzUPPJM.d.ts} +10 -5
- package/dist/messaging/index.cjs +744 -613
- package/dist/messaging/index.cjs.map +1 -1
- package/dist/messaging/index.d.cts +216 -160
- package/dist/messaging/index.d.ts +216 -160
- package/dist/messaging/index.js +19 -749
- package/dist/messaging/index.js.map +1 -1
- package/dist/operators/index.cjs +102 -57
- package/dist/operators/index.cjs.map +1 -1
- package/dist/operators/index.d.cts +6 -6
- package/dist/operators/index.d.ts +6 -6
- package/dist/operators/index.js +8 -7
- package/dist/orchestration/index.cjs +3333 -59
- package/dist/orchestration/index.cjs.map +1 -1
- package/dist/orchestration/index.d.cts +7 -4
- package/dist/orchestration/index.d.ts +7 -4
- package/dist/orchestration/index.js +49 -8
- package/dist/orchestration/index.js.map +1 -1
- package/dist/orchestration/messaging.cjs +314 -0
- package/dist/orchestration/messaging.cjs.map +1 -0
- package/dist/orchestration/messaging.d.cts +59 -0
- package/dist/orchestration/messaging.d.ts +59 -0
- package/dist/orchestration/messaging.js +276 -0
- package/dist/orchestration/messaging.js.map +1 -0
- package/dist/orchestration/work-queue.cjs +262 -0
- package/dist/orchestration/work-queue.cjs.map +1 -0
- package/dist/orchestration/work-queue.d.cts +85 -0
- package/dist/orchestration/work-queue.d.ts +85 -0
- package/dist/orchestration/work-queue.js +226 -0
- package/dist/orchestration/work-queue.js.map +1 -0
- package/dist/patterns/event-flow.cjs +447 -0
- package/dist/patterns/event-flow.cjs.map +1 -0
- package/dist/patterns/event-flow.d.cts +115 -0
- package/dist/patterns/event-flow.d.ts +115 -0
- package/dist/patterns/event-flow.js +14 -0
- package/dist/patterns/event-flow.js.map +1 -0
- package/dist/patterns/index.cjs +423 -18
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +8 -5
- package/dist/patterns/index.d.ts +8 -5
- package/dist/patterns/index.js +13 -4
- package/dist/{reactive-collection-Cb1II1Fi.d.ts → reactive-collection-BAmfrGjd.d.ts} +9 -9
- package/dist/{reactive-collection-BxBqtIOE.d.cts → reactive-collection-DNV0-gFi.d.cts} +9 -9
- package/dist/{reactive-collection-storage-D-KmjE0J.d.cts → reactive-collection-storage-BNEldDyi.d.cts} +5 -5
- package/dist/{reactive-collection-storage-BNiEc-Gd.d.ts → reactive-collection-storage-YZsAQsWK.d.ts} +5 -5
- package/dist/{reactive-map-D-g3dv8I.d.cts → reactive-map-DRD1LJ2H.d.cts} +6 -6
- package/dist/{reactive-map-BcB4KsQR.d.ts → reactive-map-EsDiCmJk.d.ts} +6 -6
- package/dist/render/index.d.cts +3 -3
- package/dist/render/index.d.ts +3 -3
- package/dist/render/index.js +1 -0
- package/dist/{semantic-memory-graph-BYoIlP35.d.cts → semantic-memory-graph-DKuNzuWw.d.cts} +2 -2
- package/dist/{semantic-memory-graph-CxyXLms3.d.ts → semantic-memory-graph-uwbwJdhe.d.ts} +2 -2
- package/dist/solutions/index.cjs +4478 -2
- package/dist/solutions/index.cjs.map +1 -1
- package/dist/solutions/index.d.cts +13 -519
- package/dist/solutions/index.d.ts +13 -519
- package/dist/solutions/index.js +90 -6
- package/dist/solutions/reactive-layout/browser/index.cjs +449 -0
- package/dist/solutions/reactive-layout/browser/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/browser/index.d.cts +44 -0
- package/dist/solutions/reactive-layout/browser/index.d.ts +44 -0
- package/dist/solutions/reactive-layout/browser/index.js +69 -0
- package/dist/solutions/reactive-layout/browser/index.js.map +1 -0
- package/dist/solutions/reactive-layout/index.cjs +4266 -0
- package/dist/solutions/reactive-layout/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/index.d.cts +581 -0
- package/dist/solutions/reactive-layout/index.d.ts +581 -0
- package/dist/solutions/reactive-layout/index.js +86 -0
- package/dist/solutions/reactive-layout/index.js.map +1 -0
- package/dist/solutions/reactive-layout/node-canvas/index.cjs +545 -0
- package/dist/solutions/reactive-layout/node-canvas/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/node-canvas/index.d.cts +54 -0
- package/dist/solutions/reactive-layout/node-canvas/index.d.ts +54 -0
- package/dist/solutions/reactive-layout/node-canvas/index.js +131 -0
- package/dist/solutions/reactive-layout/node-canvas/index.js.map +1 -0
- package/dist/solutions/reactive-layout/react-native/index.cjs +494 -0
- package/dist/solutions/reactive-layout/react-native/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/react-native/index.d.cts +51 -0
- package/dist/solutions/reactive-layout/react-native/index.d.ts +51 -0
- package/dist/solutions/reactive-layout/react-native/index.js +77 -0
- package/dist/solutions/reactive-layout/react-native/index.js.map +1 -0
- package/dist/solutions/reactive-layout/skia/index.cjs +547 -0
- package/dist/solutions/reactive-layout/skia/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/skia/index.d.cts +64 -0
- package/dist/solutions/reactive-layout/skia/index.d.ts +64 -0
- package/dist/solutions/reactive-layout/skia/index.js +70 -0
- package/dist/solutions/reactive-layout/skia/index.js.map +1 -0
- package/dist/solutions/work-item/actions.cjs +2164 -0
- package/dist/solutions/work-item/actions.cjs.map +1 -0
- package/dist/solutions/work-item/actions.d.cts +201 -0
- package/dist/solutions/work-item/actions.d.ts +201 -0
- package/dist/solutions/work-item/actions.js +1454 -0
- package/dist/solutions/work-item/actions.js.map +1 -0
- package/dist/solutions/work-item/scheduling.cjs +2454 -0
- package/dist/solutions/work-item/scheduling.cjs.map +1 -0
- package/dist/solutions/work-item/scheduling.d.cts +433 -0
- package/dist/solutions/work-item/scheduling.d.ts +433 -0
- package/dist/solutions/work-item/scheduling.js +32 -0
- package/dist/solutions/work-item/scheduling.js.map +1 -0
- package/dist/solutions/work-item/work-queue.cjs +306 -0
- package/dist/solutions/work-item/work-queue.cjs.map +1 -0
- package/dist/solutions/work-item/work-queue.d.cts +71 -0
- package/dist/solutions/work-item/work-queue.d.ts +71 -0
- package/dist/solutions/work-item/work-queue.js +270 -0
- package/dist/solutions/work-item/work-queue.js.map +1 -0
- package/dist/sources/browser.cjs +169 -57
- package/dist/sources/browser.cjs.map +1 -1
- package/dist/sources/browser.d.cts +33 -6
- package/dist/sources/browser.d.ts +33 -6
- package/dist/sources/browser.js +73 -6
- package/dist/sources/browser.js.map +1 -1
- package/dist/sources/index.cjs +102 -57
- package/dist/sources/index.cjs.map +1 -1
- package/dist/sources/index.d.cts +5 -5
- package/dist/sources/index.d.ts +5 -5
- package/dist/sources/index.js +6 -5
- package/dist/sources/node.cjs.map +1 -1
- package/dist/sources/node.d.cts +4 -4
- package/dist/sources/node.d.ts +4 -4
- package/dist/sources/node.js +2 -1
- package/dist/sources/node.js.map +1 -1
- package/dist/storage/browser.js +1 -0
- package/dist/storage/browser.js.map +1 -1
- package/dist/storage/index.d.cts +5 -5
- package/dist/storage/index.d.ts +5 -5
- package/dist/storage/index.js +5 -4
- package/dist/storage/node.js +1 -0
- package/dist/storage/node.js.map +1 -1
- package/dist/store-C-joM4gh.d.ts +123 -0
- package/dist/store-CNJwmT-h.d.cts +123 -0
- package/dist/testing/index.cjs +1 -0
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +3 -2
- package/dist/{types-h12mNYbq.d.ts → types-BsJvElYZ.d.ts} +31 -31
- package/dist/{types-bNMSWKqF.d.cts → types-CcPIn7sy.d.cts} +31 -31
- package/dist/work-item-runtime-C3M79vE9.d.ts +228 -0
- package/dist/work-item-runtime-qaVgsL0T.d.cts +228 -0
- package/dist/work-queue/index.cjs +1132 -0
- package/dist/work-queue/index.cjs.map +1 -0
- package/dist/work-queue/index.d.cts +369 -0
- package/dist/work-queue/index.d.ts +369 -0
- package/dist/work-queue/index.js +1078 -0
- package/dist/work-queue/index.js.map +1 -0
- package/package.json +266 -2
- package/dist/chunk-COHO25CZ.js.map +0 -1
- package/dist/chunk-DK554R7P.js.map +0 -1
- package/dist/chunk-I3IHOHCJ.js.map +0 -1
- package/dist/chunk-RIIOUTGM.js.map +0 -1
- package/dist/chunk-SWTLEQL6.js.map +0 -1
- /package/dist/{chunk-JR4IKCR2.js.map → chunk-2747WN4Y.js.map} +0 -0
- /package/dist/{chunk-GDL26N2T.js.map → chunk-3KN7NJDR.js.map} +0 -0
- /package/dist/{chunk-DJC4CHLQ.js.map → chunk-43BKLFZU.js.map} +0 -0
- /package/dist/{chunk-SCRFRCGR.js.map → chunk-BSQGE5PS.js.map} +0 -0
- /package/dist/{chunk-Y3ZLRGHC.js.map → chunk-CZNV3VXM.js.map} +0 -0
- /package/dist/{chunk-JIMUDQN3.js.map → chunk-FBUU43PM.js.map} +0 -0
- /package/dist/{chunk-D6BG7U6A.js.map → chunk-IXZBUWSP.js.map} +0 -0
- /package/dist/{chunk-PKVBHGBM.js.map → chunk-SS2A464I.js.map} +0 -0
- /package/dist/{chunk-G4M3NHRJ.js.map → chunk-V7CIJE4B.js.map} +0 -0
- /package/dist/{chunk-TEW47IVR.js.map → chunk-VPEFSDME.js.map} +0 -0
package/dist/testing/index.d.ts
CHANGED
package/dist/testing/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LockId, W as Wave, M as Message } from './messages-
|
|
1
|
+
import { L as LockId, W as Wave, P as PullDemand, M as Message } from './messages-CAzUPPJM.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Dispatcher, pools, and the pure-data Handle.
|
|
@@ -324,15 +324,16 @@ interface NodeOptions<T = unknown> {
|
|
|
324
324
|
/** PAUSE/RESUME behavior (R-pause-modes). Default true. */
|
|
325
325
|
pausable?: boolean | "resumeAll";
|
|
326
326
|
/**
|
|
327
|
-
* Pull-mode node (R-pull /
|
|
327
|
+
* Pull-mode node (R-pull / D269): a quiet-until-demanded source, identified by this
|
|
328
328
|
* author-supplied `pullId` (a unique LockId — a `Symbol` recommended; NOT the node name, NOT a
|
|
329
|
-
* bare string
|
|
330
|
-
*
|
|
331
|
-
* (the wedge fix) and does NOT push-on-subscribe its cached value (START only). A DEMAND =
|
|
332
|
-
* cone-routed `
|
|
333
|
-
*
|
|
334
|
-
* (directed) WITHOUT holding this node's reference; the
|
|
335
|
-
* which fires EXACTLY ONE delivery (DIRTY-before-DATA
|
|
329
|
+
* bare string if callers may also use strings as pause locks). QUIET by default: it ABSORBS
|
|
330
|
+
* an upstream DIRTY WITHOUT relaying it downstream
|
|
331
|
+
* (the wedge fix) and does NOT push-on-subscribe its cached value (START only). A DEMAND =
|
|
332
|
+
* cone-routed `PULL({pullId, params?})`: a downstream consumer issues
|
|
333
|
+
* `ctx.up([["PULL", { pullId, params }]])` (broadcast up the declared cone) or
|
|
334
|
+
* `ctx.up(msgs, towardDep)` (directed) WITHOUT holding this node's reference; the PULL travels
|
|
335
|
+
* up to the pullId-holder, which fires EXACTLY ONE delivery (DIRTY-before-DATA when it emits)
|
|
336
|
+
* then RE-QUIETS (1:1). Delivery content =
|
|
336
337
|
* the orthogonal `pausable` mode: `true` → coalesced LATEST (one DATA); `'resumeAll'` → buffered
|
|
337
338
|
* BACKLOG. `pullId` + `pausable:false` is REJECTED at construction. A SELF-triggered demand (a
|
|
338
339
|
* consumer demanding a dep it ALSO reads) must defer via {@link Ctx.upNext} (R-rewire-deferred /
|
|
@@ -381,15 +382,14 @@ declare class Node<T = unknown> {
|
|
|
381
382
|
private get _syncCtx();
|
|
382
383
|
private set _syncCtx(value);
|
|
383
384
|
constructor(deps: Node<unknown>[], handleOrFn: Handle | NodeFn | null, opts?: NodeOptions<T>);
|
|
384
|
-
/** R-pull (D55): true while a pull node is
|
|
385
|
+
/** R-pull (D55/D272): true while a pull node is not serving a PULL demand pulse. */
|
|
385
386
|
private _isPullQuiet;
|
|
386
387
|
/**
|
|
387
|
-
* R-pull (
|
|
388
|
-
* triggers computation). A consumer demands one delivery by cone-routing
|
|
389
|
-
* reference): `ctx.up([["
|
|
390
|
-
* `ctx.upNext([["
|
|
391
|
-
*
|
|
392
|
-
* for inspection/describe; routing matches by the pullId value carried in the RESUME, by identity.
|
|
388
|
+
* R-pull (D269/D272): this pull node's pullId (pure data, like {@link cache}/{@link handle} —
|
|
389
|
+
* never triggers computation). A consumer demands one delivery by cone-routing PULL of it (no
|
|
390
|
+
* node reference): `ctx.up([["PULL", { pullId }]])` (immediate; loops back → D37 for a self-read
|
|
391
|
+
* dep) or `ctx.upNext([["PULL", { pullId }]])` (boundary-deferred self-demand). Undefined for a
|
|
392
|
+
* non-pull node. The author writes the pullId verbatim; routing matches by identity.
|
|
393
393
|
*/
|
|
394
394
|
get pullId(): LockId | undefined;
|
|
395
395
|
get cache(): T | undefined;
|
|
@@ -428,10 +428,10 @@ declare class Node<T = unknown> {
|
|
|
428
428
|
*/
|
|
429
429
|
private _requestRewireNext;
|
|
430
430
|
/**
|
|
431
|
-
* Enqueue a deferred up-going control wave (R-up-routing / R-pull /
|
|
431
|
+
* Enqueue a deferred up-going control/demand wave (R-up-routing / R-pull / D269): at the committed wave
|
|
432
432
|
* boundary, route `msgs` up from THIS node (broadcast, or up the single `towardDep` edge). The
|
|
433
|
-
* deferred form of `ctx.up` — the SELF-demand path: a consumer issues `ctx.upNext([[
|
|
434
|
-
* pullId]])` to demand a dep it ALSO reads; the demand applies at the boundary (not mid-fn), so
|
|
433
|
+
* deferred form of `ctx.up` — the SELF-demand path: a consumer issues `ctx.upNext([[PULL,
|
|
434
|
+
* { pullId }]])` to demand a dep it ALSO reads; the demand applies at the boundary (not mid-fn), so
|
|
435
435
|
* the pull node's delivery loops back as a FRESH wave rather than re-entering the consumer (D37 /
|
|
436
436
|
* R-reentrancy). Rides the same R-rewire-deferred (D47) drain as ctx.rewireNext.
|
|
437
437
|
*/
|
|
@@ -517,7 +517,7 @@ declare class Node<T = unknown> {
|
|
|
517
517
|
* Forward one up-going control message toward deps (R-up-routing): up the single declared edge
|
|
518
518
|
* `towardDep` (directed — prunes other branches; only meaningful on the issuer's FIRST hop) or
|
|
519
519
|
* broadcast up ALL deps. A depless source has no deps → the message DROPS here (the terminus —
|
|
520
|
-
* e.g. a cone-routed
|
|
520
|
+
* e.g. a cone-routed PULL whose pullId no node up this cone holds, R-up-at-source). Recursive
|
|
521
521
|
* forwarding carries the same per-wave route state and no `towardDep` → broadcast beyond the
|
|
522
522
|
* first hop.
|
|
523
523
|
*/
|
|
@@ -529,19 +529,17 @@ declare class Node<T = unknown> {
|
|
|
529
529
|
private _pauseRelease;
|
|
530
530
|
private _onResume;
|
|
531
531
|
/**
|
|
532
|
-
* R-pull (
|
|
532
|
+
* R-pull (D269): can this pull node fire a demand NOW? — not terminal, settle-ready (_pending===0),
|
|
533
533
|
* and no OTHER (non-pullId) lock holds it paused. The gate that decides fire-now vs OWE.
|
|
534
534
|
*/
|
|
535
535
|
private _canFireDemand;
|
|
536
536
|
/**
|
|
537
|
-
* R-pull (
|
|
538
|
-
*
|
|
539
|
-
* `finally` so a throwing pull fn (graph-less node, no D30 catch) cannot leave the node
|
|
540
|
-
* permanently non-quiet (the wedge-fix silently disabled) — QA-found robustness fix.
|
|
537
|
+
* R-pull (D269/D272): deliver ONE demand pulse — install activePull so the demand wave may
|
|
538
|
+
* emit, fire it, then clear activePull so the node is quiet again (1:1).
|
|
541
539
|
*/
|
|
542
540
|
private _deliverPullDemand;
|
|
543
541
|
/**
|
|
544
|
-
* R-pull (
|
|
542
|
+
* R-pull (D269): a cone-routed PULL of THIS node's pullId arrived (R-up-routing) = a DEMAND.
|
|
545
543
|
* Fire immediately if able; else OWE it — pin-5 (a dep DIRTY in flight, _pending>0) or F4/F5 (an
|
|
546
544
|
* external PAUSE lock co-holds the node) — and fire when the node next becomes able. A demand
|
|
547
545
|
* arriving WHILE a delivery is in flight (synchronous re-entry) is DROPPED (1:1, QA guard).
|
|
@@ -559,7 +557,7 @@ declare class Node<T = unknown> {
|
|
|
559
557
|
*/
|
|
560
558
|
private _firePullDemand;
|
|
561
559
|
/**
|
|
562
|
-
* R-pull (
|
|
560
|
+
* R-pull (D269): fire a demand that was OWED (deferred at demand time) once the node becomes
|
|
563
561
|
* able — called from the dep-settle arms (DATA/RESOLVED/INVALIDATE/terminal drain _pending, pin-5
|
|
564
562
|
* + B1/F6) and from `_pauseRelease` (an external PAUSE lock releases, F4/F5).
|
|
565
563
|
*/
|
|
@@ -667,8 +665,8 @@ interface Ctx {
|
|
|
667
665
|
/**
|
|
668
666
|
* Emit upstream toward deps — control tiers only (R-ctx-up). IMMEDIATE. `towardDep` (a dep index)
|
|
669
667
|
* routes the wave up ONE declared edge (R-up-routing directed-up); omitted = broadcast up all deps.
|
|
670
|
-
* A pull DEMAND is `up([[
|
|
671
|
-
* reads) use {@link Ctx.upNext} instead, since an immediate demand whose delivery loops back
|
|
668
|
+
* A pull DEMAND is `up([[PULL, { pullId, params }]])` — but for a SELF-demand (demanding a dep
|
|
669
|
+
* this fn also reads) use {@link Ctx.upNext} instead, since an immediate demand whose delivery loops back
|
|
672
670
|
* re-enters this fn mid-wave (D37 / R-reentrancy).
|
|
673
671
|
*/
|
|
674
672
|
up(msgs: Wave, towardDep?: number): void;
|
|
@@ -689,6 +687,8 @@ interface Ctx {
|
|
|
689
687
|
onInvalidate(fn: () => void): void;
|
|
690
688
|
/** Graph-owned environment drivers for source/adapter boundaries (D130/D131). */
|
|
691
689
|
environment(): EnvironmentDrivers;
|
|
690
|
+
/** Holder-visible context for a PULL-caused invocation (D272); absent for ordinary waves. */
|
|
691
|
+
readonly pull?: PullDemand;
|
|
692
692
|
/**
|
|
693
693
|
* Deferred SELF-rewire (R-rewire-deferred / D47) — the substrate affordance higher-order
|
|
694
694
|
* operators (switchMap/mergeMap/concatMap/exhaustMap/flatMap) use to grow/shrink their own
|
|
@@ -699,8 +699,8 @@ interface Ctx {
|
|
|
699
699
|
* Deferred up — the boundary-deferred form of {@link Ctx.up} (R-up-routing / R-pull / D59). Routes
|
|
700
700
|
* `msgs` up from this node at the COMMITTED wave boundary (broadcast, or up the single `towardDep`
|
|
701
701
|
* edge), riding the same R-rewire-deferred (D47) drain as {@link RewireNext}. This is the
|
|
702
|
-
* SELF-DEMAND path: a consumer issues `ctx.upNext([[
|
|
703
|
-
* ALSO reads — the cone-routed
|
|
702
|
+
* SELF-DEMAND path: a consumer issues `ctx.upNext([[PULL, { pullId, params }]])` to demand a pull
|
|
703
|
+
* dep it ALSO reads — the cone-routed PULL reaches the pullId-holder, whose delivery loops back as a
|
|
704
704
|
* FRESH wave (not a mid-fn re-entry → no D37). The consumer accepts one-wave latency (the
|
|
705
705
|
* HTTP-request model). No node reference needed: the author writes the pullId verbatim.
|
|
706
706
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LockId, W as Wave, M as Message } from './messages-
|
|
1
|
+
import { L as LockId, W as Wave, P as PullDemand, M as Message } from './messages-CAzUPPJM.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Dispatcher, pools, and the pure-data Handle.
|
|
@@ -324,15 +324,16 @@ interface NodeOptions<T = unknown> {
|
|
|
324
324
|
/** PAUSE/RESUME behavior (R-pause-modes). Default true. */
|
|
325
325
|
pausable?: boolean | "resumeAll";
|
|
326
326
|
/**
|
|
327
|
-
* Pull-mode node (R-pull /
|
|
327
|
+
* Pull-mode node (R-pull / D269): a quiet-until-demanded source, identified by this
|
|
328
328
|
* author-supplied `pullId` (a unique LockId — a `Symbol` recommended; NOT the node name, NOT a
|
|
329
|
-
* bare string
|
|
330
|
-
*
|
|
331
|
-
* (the wedge fix) and does NOT push-on-subscribe its cached value (START only). A DEMAND =
|
|
332
|
-
* cone-routed `
|
|
333
|
-
*
|
|
334
|
-
* (directed) WITHOUT holding this node's reference; the
|
|
335
|
-
* which fires EXACTLY ONE delivery (DIRTY-before-DATA
|
|
329
|
+
* bare string if callers may also use strings as pause locks). QUIET by default: it ABSORBS
|
|
330
|
+
* an upstream DIRTY WITHOUT relaying it downstream
|
|
331
|
+
* (the wedge fix) and does NOT push-on-subscribe its cached value (START only). A DEMAND =
|
|
332
|
+
* cone-routed `PULL({pullId, params?})`: a downstream consumer issues
|
|
333
|
+
* `ctx.up([["PULL", { pullId, params }]])` (broadcast up the declared cone) or
|
|
334
|
+
* `ctx.up(msgs, towardDep)` (directed) WITHOUT holding this node's reference; the PULL travels
|
|
335
|
+
* up to the pullId-holder, which fires EXACTLY ONE delivery (DIRTY-before-DATA when it emits)
|
|
336
|
+
* then RE-QUIETS (1:1). Delivery content =
|
|
336
337
|
* the orthogonal `pausable` mode: `true` → coalesced LATEST (one DATA); `'resumeAll'` → buffered
|
|
337
338
|
* BACKLOG. `pullId` + `pausable:false` is REJECTED at construction. A SELF-triggered demand (a
|
|
338
339
|
* consumer demanding a dep it ALSO reads) must defer via {@link Ctx.upNext} (R-rewire-deferred /
|
|
@@ -381,15 +382,14 @@ declare class Node<T = unknown> {
|
|
|
381
382
|
private get _syncCtx();
|
|
382
383
|
private set _syncCtx(value);
|
|
383
384
|
constructor(deps: Node<unknown>[], handleOrFn: Handle | NodeFn | null, opts?: NodeOptions<T>);
|
|
384
|
-
/** R-pull (D55): true while a pull node is
|
|
385
|
+
/** R-pull (D55/D272): true while a pull node is not serving a PULL demand pulse. */
|
|
385
386
|
private _isPullQuiet;
|
|
386
387
|
/**
|
|
387
|
-
* R-pull (
|
|
388
|
-
* triggers computation). A consumer demands one delivery by cone-routing
|
|
389
|
-
* reference): `ctx.up([["
|
|
390
|
-
* `ctx.upNext([["
|
|
391
|
-
*
|
|
392
|
-
* for inspection/describe; routing matches by the pullId value carried in the RESUME, by identity.
|
|
388
|
+
* R-pull (D269/D272): this pull node's pullId (pure data, like {@link cache}/{@link handle} —
|
|
389
|
+
* never triggers computation). A consumer demands one delivery by cone-routing PULL of it (no
|
|
390
|
+
* node reference): `ctx.up([["PULL", { pullId }]])` (immediate; loops back → D37 for a self-read
|
|
391
|
+
* dep) or `ctx.upNext([["PULL", { pullId }]])` (boundary-deferred self-demand). Undefined for a
|
|
392
|
+
* non-pull node. The author writes the pullId verbatim; routing matches by identity.
|
|
393
393
|
*/
|
|
394
394
|
get pullId(): LockId | undefined;
|
|
395
395
|
get cache(): T | undefined;
|
|
@@ -428,10 +428,10 @@ declare class Node<T = unknown> {
|
|
|
428
428
|
*/
|
|
429
429
|
private _requestRewireNext;
|
|
430
430
|
/**
|
|
431
|
-
* Enqueue a deferred up-going control wave (R-up-routing / R-pull /
|
|
431
|
+
* Enqueue a deferred up-going control/demand wave (R-up-routing / R-pull / D269): at the committed wave
|
|
432
432
|
* boundary, route `msgs` up from THIS node (broadcast, or up the single `towardDep` edge). The
|
|
433
|
-
* deferred form of `ctx.up` — the SELF-demand path: a consumer issues `ctx.upNext([[
|
|
434
|
-
* pullId]])` to demand a dep it ALSO reads; the demand applies at the boundary (not mid-fn), so
|
|
433
|
+
* deferred form of `ctx.up` — the SELF-demand path: a consumer issues `ctx.upNext([[PULL,
|
|
434
|
+
* { pullId }]])` to demand a dep it ALSO reads; the demand applies at the boundary (not mid-fn), so
|
|
435
435
|
* the pull node's delivery loops back as a FRESH wave rather than re-entering the consumer (D37 /
|
|
436
436
|
* R-reentrancy). Rides the same R-rewire-deferred (D47) drain as ctx.rewireNext.
|
|
437
437
|
*/
|
|
@@ -517,7 +517,7 @@ declare class Node<T = unknown> {
|
|
|
517
517
|
* Forward one up-going control message toward deps (R-up-routing): up the single declared edge
|
|
518
518
|
* `towardDep` (directed — prunes other branches; only meaningful on the issuer's FIRST hop) or
|
|
519
519
|
* broadcast up ALL deps. A depless source has no deps → the message DROPS here (the terminus —
|
|
520
|
-
* e.g. a cone-routed
|
|
520
|
+
* e.g. a cone-routed PULL whose pullId no node up this cone holds, R-up-at-source). Recursive
|
|
521
521
|
* forwarding carries the same per-wave route state and no `towardDep` → broadcast beyond the
|
|
522
522
|
* first hop.
|
|
523
523
|
*/
|
|
@@ -529,19 +529,17 @@ declare class Node<T = unknown> {
|
|
|
529
529
|
private _pauseRelease;
|
|
530
530
|
private _onResume;
|
|
531
531
|
/**
|
|
532
|
-
* R-pull (
|
|
532
|
+
* R-pull (D269): can this pull node fire a demand NOW? — not terminal, settle-ready (_pending===0),
|
|
533
533
|
* and no OTHER (non-pullId) lock holds it paused. The gate that decides fire-now vs OWE.
|
|
534
534
|
*/
|
|
535
535
|
private _canFireDemand;
|
|
536
536
|
/**
|
|
537
|
-
* R-pull (
|
|
538
|
-
*
|
|
539
|
-
* `finally` so a throwing pull fn (graph-less node, no D30 catch) cannot leave the node
|
|
540
|
-
* permanently non-quiet (the wedge-fix silently disabled) — QA-found robustness fix.
|
|
537
|
+
* R-pull (D269/D272): deliver ONE demand pulse — install activePull so the demand wave may
|
|
538
|
+
* emit, fire it, then clear activePull so the node is quiet again (1:1).
|
|
541
539
|
*/
|
|
542
540
|
private _deliverPullDemand;
|
|
543
541
|
/**
|
|
544
|
-
* R-pull (
|
|
542
|
+
* R-pull (D269): a cone-routed PULL of THIS node's pullId arrived (R-up-routing) = a DEMAND.
|
|
545
543
|
* Fire immediately if able; else OWE it — pin-5 (a dep DIRTY in flight, _pending>0) or F4/F5 (an
|
|
546
544
|
* external PAUSE lock co-holds the node) — and fire when the node next becomes able. A demand
|
|
547
545
|
* arriving WHILE a delivery is in flight (synchronous re-entry) is DROPPED (1:1, QA guard).
|
|
@@ -559,7 +557,7 @@ declare class Node<T = unknown> {
|
|
|
559
557
|
*/
|
|
560
558
|
private _firePullDemand;
|
|
561
559
|
/**
|
|
562
|
-
* R-pull (
|
|
560
|
+
* R-pull (D269): fire a demand that was OWED (deferred at demand time) once the node becomes
|
|
563
561
|
* able — called from the dep-settle arms (DATA/RESOLVED/INVALIDATE/terminal drain _pending, pin-5
|
|
564
562
|
* + B1/F6) and from `_pauseRelease` (an external PAUSE lock releases, F4/F5).
|
|
565
563
|
*/
|
|
@@ -667,8 +665,8 @@ interface Ctx {
|
|
|
667
665
|
/**
|
|
668
666
|
* Emit upstream toward deps — control tiers only (R-ctx-up). IMMEDIATE. `towardDep` (a dep index)
|
|
669
667
|
* routes the wave up ONE declared edge (R-up-routing directed-up); omitted = broadcast up all deps.
|
|
670
|
-
* A pull DEMAND is `up([[
|
|
671
|
-
* reads) use {@link Ctx.upNext} instead, since an immediate demand whose delivery loops back
|
|
668
|
+
* A pull DEMAND is `up([[PULL, { pullId, params }]])` — but for a SELF-demand (demanding a dep
|
|
669
|
+
* this fn also reads) use {@link Ctx.upNext} instead, since an immediate demand whose delivery loops back
|
|
672
670
|
* re-enters this fn mid-wave (D37 / R-reentrancy).
|
|
673
671
|
*/
|
|
674
672
|
up(msgs: Wave, towardDep?: number): void;
|
|
@@ -689,6 +687,8 @@ interface Ctx {
|
|
|
689
687
|
onInvalidate(fn: () => void): void;
|
|
690
688
|
/** Graph-owned environment drivers for source/adapter boundaries (D130/D131). */
|
|
691
689
|
environment(): EnvironmentDrivers;
|
|
690
|
+
/** Holder-visible context for a PULL-caused invocation (D272); absent for ordinary waves. */
|
|
691
|
+
readonly pull?: PullDemand;
|
|
692
692
|
/**
|
|
693
693
|
* Deferred SELF-rewire (R-rewire-deferred / D47) — the substrate affordance higher-order
|
|
694
694
|
* operators (switchMap/mergeMap/concatMap/exhaustMap/flatMap) use to grow/shrink their own
|
|
@@ -699,8 +699,8 @@ interface Ctx {
|
|
|
699
699
|
* Deferred up — the boundary-deferred form of {@link Ctx.up} (R-up-routing / R-pull / D59). Routes
|
|
700
700
|
* `msgs` up from this node at the COMMITTED wave boundary (broadcast, or up the single `towardDep`
|
|
701
701
|
* edge), riding the same R-rewire-deferred (D47) drain as {@link RewireNext}. This is the
|
|
702
|
-
* SELF-DEMAND path: a consumer issues `ctx.upNext([[
|
|
703
|
-
* ALSO reads — the cone-routed
|
|
702
|
+
* SELF-DEMAND path: a consumer issues `ctx.upNext([[PULL, { pullId, params }]])` to demand a pull
|
|
703
|
+
* dep it ALSO reads — the cone-routed PULL reaches the pullId-holder, whose delivery loops back as a
|
|
704
704
|
* FRESH wave (not a mid-fn re-entry → no D37). The consumer accepts one-wave latency (the
|
|
705
705
|
* HTTP-request model). No node reference needed: the author writes the pullId verbatim.
|
|
706
706
|
*/
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { DataIssue } from './data/index.js';
|
|
2
|
+
import { d as Graph } from './graph-D-1-SQeC.js';
|
|
3
|
+
import { N as Node } from './types-BsJvElYZ.js';
|
|
4
|
+
import { S as SourceRef, v as AgentRuntimeAuditRecord, H as EffectRunResultStatus, z as EffectRunGoal, B as EffectRunLimits, w as EffectRun, h as AgentOutputEnvelope, g as AgentNeed, F as EffectRunResult } from './agent-runtime-BesGDZcB.js';
|
|
5
|
+
|
|
6
|
+
interface WorkItemSeed {
|
|
7
|
+
readonly kind: "work-item";
|
|
8
|
+
readonly workItemId: string;
|
|
9
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
10
|
+
readonly workItemKind?: string;
|
|
11
|
+
readonly summary?: string;
|
|
12
|
+
readonly detailRef?: string;
|
|
13
|
+
readonly lifecycleStatus?: string;
|
|
14
|
+
readonly issues?: readonly DataIssue[];
|
|
15
|
+
readonly metadata?: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
interface WorkItemEffectRequested<TInput = unknown> {
|
|
18
|
+
readonly kind: "work-item-effect-requested";
|
|
19
|
+
readonly requestId: string;
|
|
20
|
+
readonly workItemId: string;
|
|
21
|
+
readonly effectRunId: string;
|
|
22
|
+
readonly effectKind: string;
|
|
23
|
+
readonly executionInputRevision?: number;
|
|
24
|
+
readonly planId?: string;
|
|
25
|
+
readonly planMemberId?: string;
|
|
26
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
27
|
+
readonly goal: EffectRunGoal<TInput>;
|
|
28
|
+
readonly agentRunId?: string;
|
|
29
|
+
readonly policyRefs?: readonly SourceRef[];
|
|
30
|
+
readonly limits?: EffectRunLimits;
|
|
31
|
+
readonly createdBy?: string;
|
|
32
|
+
readonly createdAtMs?: number;
|
|
33
|
+
readonly idempotencyKey?: string;
|
|
34
|
+
readonly metadata?: Record<string, unknown>;
|
|
35
|
+
}
|
|
36
|
+
interface WorkItemEvidenceRecorded {
|
|
37
|
+
readonly kind: "work-item-evidence-recorded";
|
|
38
|
+
readonly evidenceId: string;
|
|
39
|
+
readonly workItemId: string;
|
|
40
|
+
readonly requestId?: string;
|
|
41
|
+
readonly effectRunId: string;
|
|
42
|
+
readonly effectRunResultId: string;
|
|
43
|
+
readonly executionInputRevision?: number;
|
|
44
|
+
readonly planId?: string;
|
|
45
|
+
readonly planMemberId?: string;
|
|
46
|
+
readonly status: EffectRunResultStatus;
|
|
47
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
48
|
+
readonly output?: AgentOutputEnvelope;
|
|
49
|
+
readonly error?: DataIssue;
|
|
50
|
+
readonly needs?: readonly AgentNeed[];
|
|
51
|
+
readonly reason?: string;
|
|
52
|
+
readonly timeoutMs?: number;
|
|
53
|
+
readonly issues?: readonly DataIssue[];
|
|
54
|
+
readonly auditRefs?: readonly string[];
|
|
55
|
+
readonly recordedAtMs?: number;
|
|
56
|
+
readonly metadata?: Record<string, unknown>;
|
|
57
|
+
}
|
|
58
|
+
type WorkItemDomainActionProposalPayloadFrom = "evidence" | "effect-run-result" | "output";
|
|
59
|
+
interface WorkItemDomainActionProposalSpec<TPayload = unknown> {
|
|
60
|
+
readonly actionKind: string;
|
|
61
|
+
readonly behavior?: "propose";
|
|
62
|
+
readonly statuses?: readonly EffectRunResultStatus[];
|
|
63
|
+
readonly outputKinds?: readonly string[];
|
|
64
|
+
readonly payloadFrom?: WorkItemDomainActionProposalPayloadFrom;
|
|
65
|
+
readonly payload?: TPayload;
|
|
66
|
+
readonly reason?: string;
|
|
67
|
+
readonly metadata?: Record<string, unknown>;
|
|
68
|
+
}
|
|
69
|
+
interface WorkItemDomainActionProposal<TPayload = unknown> {
|
|
70
|
+
readonly kind: "work-item-domain-action-proposal";
|
|
71
|
+
readonly proposalId: string;
|
|
72
|
+
readonly workItemId: string;
|
|
73
|
+
readonly actionKind: string;
|
|
74
|
+
readonly effectRunId: string;
|
|
75
|
+
readonly effectRunResultId: string;
|
|
76
|
+
readonly evidenceId: string;
|
|
77
|
+
readonly policyId: string;
|
|
78
|
+
readonly payload?: TPayload;
|
|
79
|
+
readonly reason?: string;
|
|
80
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
81
|
+
readonly proposedAtMs?: number;
|
|
82
|
+
readonly metadata?: Record<string, unknown>;
|
|
83
|
+
}
|
|
84
|
+
type WorkItemDomainActionAdmissionOutcome = "admit" | "reject" | "defer" | "merge";
|
|
85
|
+
type WorkItemDomainActionAdmissionState = "admitted" | "rejected" | "deferred" | "merged";
|
|
86
|
+
interface WorkItemDomainActionAdmissionPolicy {
|
|
87
|
+
readonly kind: "work-item-domain-action-admission-policy";
|
|
88
|
+
readonly policyId: string;
|
|
89
|
+
readonly actionKinds?: readonly string[];
|
|
90
|
+
readonly allowedOutcomes?: readonly WorkItemDomainActionAdmissionOutcome[];
|
|
91
|
+
readonly metadata?: Record<string, unknown>;
|
|
92
|
+
}
|
|
93
|
+
interface WorkItemDomainActionAdmissionDecision {
|
|
94
|
+
readonly kind: "work-item-domain-action-admission-decision";
|
|
95
|
+
readonly decisionId: string;
|
|
96
|
+
readonly admissionId: string;
|
|
97
|
+
readonly proposalId: string;
|
|
98
|
+
readonly outcome: WorkItemDomainActionAdmissionOutcome;
|
|
99
|
+
readonly policyId?: string;
|
|
100
|
+
readonly reason?: string;
|
|
101
|
+
readonly targetProposalId?: string;
|
|
102
|
+
readonly targetAdmissionId?: string;
|
|
103
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
104
|
+
readonly decidedAtMs?: number;
|
|
105
|
+
readonly metadata?: Record<string, unknown>;
|
|
106
|
+
}
|
|
107
|
+
interface WorkItemDomainActionAdmission {
|
|
108
|
+
readonly kind: "work-item-domain-action-admission";
|
|
109
|
+
readonly admissionId: string;
|
|
110
|
+
readonly proposalId: string;
|
|
111
|
+
readonly workItemId: string;
|
|
112
|
+
readonly actionKind: string;
|
|
113
|
+
readonly state: WorkItemDomainActionAdmissionState;
|
|
114
|
+
readonly decisionId: string;
|
|
115
|
+
readonly policyId?: string;
|
|
116
|
+
readonly reason?: string;
|
|
117
|
+
readonly targetProposalId?: string;
|
|
118
|
+
readonly targetAdmissionId?: string;
|
|
119
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
120
|
+
readonly admittedAtMs?: number;
|
|
121
|
+
readonly metadata?: Record<string, unknown>;
|
|
122
|
+
}
|
|
123
|
+
interface WorkItemEffectMappingPolicy {
|
|
124
|
+
readonly kind: "work-item-effect-mapping-policy";
|
|
125
|
+
readonly policyId: string;
|
|
126
|
+
readonly effectKinds?: readonly string[];
|
|
127
|
+
readonly evidence?: {
|
|
128
|
+
readonly behavior?: "record";
|
|
129
|
+
};
|
|
130
|
+
readonly actionProposals?: readonly WorkItemDomainActionProposalSpec[];
|
|
131
|
+
readonly metadata?: Record<string, unknown>;
|
|
132
|
+
}
|
|
133
|
+
interface WorkItemStatusRecord {
|
|
134
|
+
readonly kind: "work-item-status";
|
|
135
|
+
readonly statusId: string;
|
|
136
|
+
readonly workItemId: string;
|
|
137
|
+
readonly state: "effect-request-pending" | "effect-run-seeded" | "evidence-recorded" | "domain-action-proposed" | "domain-action-admitted" | "domain-action-rejected" | "domain-action-deferred" | "domain-action-merged" | "mapping-issue";
|
|
138
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
139
|
+
readonly effectRunId?: string;
|
|
140
|
+
readonly requestId?: string;
|
|
141
|
+
readonly evidenceId?: string;
|
|
142
|
+
readonly proposalId?: string;
|
|
143
|
+
readonly issues?: readonly DataIssue[];
|
|
144
|
+
readonly metadata?: Record<string, unknown>;
|
|
145
|
+
}
|
|
146
|
+
interface WorkItemEffectRequestViews {
|
|
147
|
+
readonly pendingEffectRequests: readonly WorkItemEffectRequested[];
|
|
148
|
+
readonly issues: readonly DataIssue[];
|
|
149
|
+
readonly audit: readonly AgentRuntimeAuditRecord[];
|
|
150
|
+
}
|
|
151
|
+
interface WorkItemEvidenceViews {
|
|
152
|
+
readonly evidenceByWorkItem: ReadonlyMap<string, readonly WorkItemEvidenceRecorded[]>;
|
|
153
|
+
readonly latestEvidenceByEffectRun: ReadonlyMap<string, WorkItemEvidenceRecorded>;
|
|
154
|
+
readonly issues: readonly DataIssue[];
|
|
155
|
+
readonly audit: readonly AgentRuntimeAuditRecord[];
|
|
156
|
+
readonly pendingEffectRequests: readonly WorkItemEffectRequested[];
|
|
157
|
+
}
|
|
158
|
+
interface WorkItemDomainActionProposalViews {
|
|
159
|
+
readonly proposalsByWorkItem: ReadonlyMap<string, readonly WorkItemDomainActionProposal[]>;
|
|
160
|
+
readonly proposalsByEvidence: ReadonlyMap<string, readonly WorkItemDomainActionProposal[]>;
|
|
161
|
+
readonly issues: readonly DataIssue[];
|
|
162
|
+
readonly audit: readonly AgentRuntimeAuditRecord[];
|
|
163
|
+
}
|
|
164
|
+
interface WorkItemDomainActionAdmissionViews {
|
|
165
|
+
readonly admissionsByProposal: ReadonlyMap<string, WorkItemDomainActionAdmission>;
|
|
166
|
+
readonly admissionsByWorkItem: ReadonlyMap<string, readonly WorkItemDomainActionAdmission[]>;
|
|
167
|
+
readonly issues: readonly DataIssue[];
|
|
168
|
+
readonly audit: readonly AgentRuntimeAuditRecord[];
|
|
169
|
+
}
|
|
170
|
+
interface WorkItemEffectRunBundle {
|
|
171
|
+
readonly effectRuns: Node<EffectRun>;
|
|
172
|
+
readonly status: Node<WorkItemStatusRecord>;
|
|
173
|
+
readonly issues: Node<DataIssue>;
|
|
174
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
175
|
+
readonly views: Node<WorkItemEffectRequestViews>;
|
|
176
|
+
}
|
|
177
|
+
interface WorkItemEvidenceMapperBundle {
|
|
178
|
+
readonly evidence: Node<WorkItemEvidenceRecorded>;
|
|
179
|
+
readonly status: Node<WorkItemStatusRecord>;
|
|
180
|
+
readonly issues: Node<DataIssue>;
|
|
181
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
182
|
+
readonly views: Node<WorkItemEvidenceViews>;
|
|
183
|
+
}
|
|
184
|
+
interface WorkItemDomainActionProposalBundle {
|
|
185
|
+
readonly proposals: Node<WorkItemDomainActionProposal>;
|
|
186
|
+
readonly status: Node<WorkItemStatusRecord>;
|
|
187
|
+
readonly issues: Node<DataIssue>;
|
|
188
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
189
|
+
readonly views: Node<WorkItemDomainActionProposalViews>;
|
|
190
|
+
}
|
|
191
|
+
interface WorkItemDomainActionAdmissionBundle {
|
|
192
|
+
readonly admissions: Node<WorkItemDomainActionAdmission>;
|
|
193
|
+
readonly status: Node<WorkItemStatusRecord>;
|
|
194
|
+
readonly issues: Node<DataIssue>;
|
|
195
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
196
|
+
readonly views: Node<WorkItemDomainActionAdmissionViews>;
|
|
197
|
+
}
|
|
198
|
+
declare function workItemEffectRunProjector(graph: Graph, opts: {
|
|
199
|
+
readonly name?: string;
|
|
200
|
+
readonly workItems: Node<WorkItemSeed>;
|
|
201
|
+
readonly effectRequests: Node<WorkItemEffectRequested>;
|
|
202
|
+
}): WorkItemEffectRunBundle;
|
|
203
|
+
declare function workItemEffectResultMapper(graph: Graph, opts: {
|
|
204
|
+
readonly name?: string;
|
|
205
|
+
readonly workItems: Node<WorkItemSeed>;
|
|
206
|
+
readonly effectRuns: Node<EffectRun>;
|
|
207
|
+
readonly effectRunResults: Node<EffectRunResult>;
|
|
208
|
+
readonly effectRequests?: Node<WorkItemEffectRequested>;
|
|
209
|
+
readonly mappingPolicies?: readonly Node<WorkItemEffectMappingPolicy>[];
|
|
210
|
+
readonly now?: () => number;
|
|
211
|
+
}): WorkItemEvidenceMapperBundle;
|
|
212
|
+
declare function workItemDomainActionProposalProjector(graph: Graph, opts: {
|
|
213
|
+
readonly name?: string;
|
|
214
|
+
readonly workItems: Node<WorkItemSeed>;
|
|
215
|
+
readonly evidence: Node<WorkItemEvidenceRecorded>;
|
|
216
|
+
readonly effectRunResults: Node<EffectRunResult>;
|
|
217
|
+
readonly mappingPolicies: readonly Node<WorkItemEffectMappingPolicy>[];
|
|
218
|
+
readonly now?: () => number;
|
|
219
|
+
}): WorkItemDomainActionProposalBundle;
|
|
220
|
+
declare function workItemDomainActionAdmissionProjector(graph: Graph, opts: {
|
|
221
|
+
readonly name?: string;
|
|
222
|
+
readonly proposals: Node<WorkItemDomainActionProposal>;
|
|
223
|
+
readonly decisions: Node<WorkItemDomainActionAdmissionDecision>;
|
|
224
|
+
readonly admissionPolicies?: readonly Node<WorkItemDomainActionAdmissionPolicy>[];
|
|
225
|
+
readonly now?: () => number;
|
|
226
|
+
}): WorkItemDomainActionAdmissionBundle;
|
|
227
|
+
|
|
228
|
+
export { type WorkItemDomainActionAdmission as W, type WorkItemDomainActionAdmissionBundle as a, type WorkItemDomainActionAdmissionDecision as b, type WorkItemDomainActionAdmissionOutcome as c, type WorkItemDomainActionAdmissionPolicy as d, type WorkItemDomainActionAdmissionState as e, type WorkItemDomainActionAdmissionViews as f, type WorkItemDomainActionProposal as g, type WorkItemDomainActionProposalBundle as h, type WorkItemDomainActionProposalPayloadFrom as i, type WorkItemDomainActionProposalSpec as j, type WorkItemDomainActionProposalViews as k, type WorkItemEffectMappingPolicy as l, type WorkItemEffectRequestViews as m, type WorkItemEffectRequested as n, type WorkItemEffectRunBundle as o, type WorkItemEvidenceMapperBundle as p, type WorkItemEvidenceRecorded as q, type WorkItemEvidenceViews as r, type WorkItemSeed as s, type WorkItemStatusRecord as t, workItemDomainActionProposalProjector as u, workItemEffectResultMapper as v, workItemDomainActionAdmissionProjector as w, workItemEffectRunProjector as x };
|