@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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ShallowRef } from 'vue';
|
|
2
|
+
import { N as Node } from '../types-BsJvElYZ.js';
|
|
3
|
+
import { W as WritableNode } from '../store-C-joM4gh.js';
|
|
4
|
+
import '../messages-CAzUPPJM.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Vue node bindings for GraphReFly (D238).
|
|
8
|
+
*
|
|
9
|
+
* Vue is imported only from this focused subpath.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** Read a GraphReFly node as a Vue shallow ref. */
|
|
13
|
+
declare function useNodeValue<T>(node: Node<T>): Readonly<ShallowRef<T | undefined>>;
|
|
14
|
+
/** Bind a writable GraphReFly node as `[valueRef, setValue]`. */
|
|
15
|
+
declare function useNodeInput<T>(node: WritableNode<T>): readonly [Readonly<ShallowRef<T | undefined>>, (value: T) => void];
|
|
16
|
+
/**
|
|
17
|
+
* Read a keyed record of nodes as a Vue shallow ref.
|
|
18
|
+
*
|
|
19
|
+
* `factory` must have stable identity; callers should define it outside render
|
|
20
|
+
* churn or memoize it in their composition function.
|
|
21
|
+
*/
|
|
22
|
+
declare function useNodeRecord<K extends string, R extends Record<string, unknown>>(keysNode: Node<readonly K[]>, factory: (key: K) => {
|
|
23
|
+
[P in keyof R]: Node<R[P]>;
|
|
24
|
+
}): Readonly<ShallowRef<Record<K, R>>>;
|
|
25
|
+
|
|
26
|
+
export { useNodeInput, useNodeRecord, useNodeValue };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readableStore,
|
|
3
|
+
recordReadableStore
|
|
4
|
+
} from "../chunk-H75VXTGT.js";
|
|
5
|
+
import "../chunk-DGUM43GV.js";
|
|
6
|
+
|
|
7
|
+
// src/adapters/vue.ts
|
|
8
|
+
import { onScopeDispose, readonly, shallowRef } from "vue";
|
|
9
|
+
function assertDataValue(value) {
|
|
10
|
+
if (value === void 0) {
|
|
11
|
+
throw new TypeError("useNodeInput: undefined is SENTINEL/no DATA, not a writable DATA value");
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function bindReadable(store) {
|
|
15
|
+
const value = shallowRef(store.get());
|
|
16
|
+
const unsubscribe = store.subscribe((next) => {
|
|
17
|
+
value.value = next;
|
|
18
|
+
});
|
|
19
|
+
onScopeDispose(unsubscribe);
|
|
20
|
+
return readonly(value);
|
|
21
|
+
}
|
|
22
|
+
function useNodeValue(node) {
|
|
23
|
+
return bindReadable(readableStore(node));
|
|
24
|
+
}
|
|
25
|
+
function useNodeInput(node) {
|
|
26
|
+
return [
|
|
27
|
+
useNodeValue(node),
|
|
28
|
+
(value) => {
|
|
29
|
+
assertDataValue(value);
|
|
30
|
+
node.set(value);
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
function useNodeRecord(keysNode, factory) {
|
|
35
|
+
const store = recordReadableStore(keysNode, factory);
|
|
36
|
+
return bindReadable({
|
|
37
|
+
get: () => store.get() ?? {},
|
|
38
|
+
subscribe: (run) => store.subscribe((value) => run(value ?? {}))
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
useNodeInput,
|
|
43
|
+
useNodeRecord,
|
|
44
|
+
useNodeValue
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/adapters/vue.ts"],"sourcesContent":["/**\n * Vue node bindings for GraphReFly (D238).\n *\n * Vue is imported only from this focused subpath.\n */\n\nimport { onScopeDispose, readonly, type ShallowRef, shallowRef } from \"vue\";\nimport type { Node } from \"../node/node.js\";\nimport { readableStore, recordReadableStore, type WritableNode } from \"./store.js\";\n\nfunction assertDataValue(value: unknown): void {\n\tif (value === undefined) {\n\t\tthrow new TypeError(\"useNodeInput: undefined is SENTINEL/no DATA, not a writable DATA value\");\n\t}\n}\n\nfunction bindReadable<T>(store: { get(): T; subscribe(run: (value: T) => void): () => void }) {\n\tconst value = shallowRef(store.get()) as ShallowRef<T>;\n\tconst unsubscribe = store.subscribe((next) => {\n\t\tvalue.value = next;\n\t});\n\tonScopeDispose(unsubscribe);\n\treturn readonly(value) as Readonly<ShallowRef<T>>;\n}\n\n/** Read a GraphReFly node as a Vue shallow ref. */\nexport function useNodeValue<T>(node: Node<T>): Readonly<ShallowRef<T | undefined>> {\n\treturn bindReadable(readableStore(node));\n}\n\n/** Bind a writable GraphReFly node as `[valueRef, setValue]`. */\nexport function useNodeInput<T>(\n\tnode: WritableNode<T>,\n): readonly [Readonly<ShallowRef<T | undefined>>, (value: T) => void] {\n\treturn [\n\t\tuseNodeValue(node),\n\t\t(value: T) => {\n\t\t\tassertDataValue(value);\n\t\t\tnode.set(value);\n\t\t},\n\t] as const;\n}\n\n/**\n * Read a keyed record of nodes as a Vue shallow ref.\n *\n * `factory` must have stable identity; callers should define it outside render\n * churn or memoize it in their composition function.\n */\nexport function useNodeRecord<K extends string, R extends Record<string, unknown>>(\n\tkeysNode: Node<readonly K[]>,\n\tfactory: (key: K) => { [P in keyof R]: Node<R[P]> },\n): Readonly<ShallowRef<Record<K, R>>> {\n\tconst store = recordReadableStore(keysNode, factory);\n\treturn bindReadable({\n\t\tget: () => store.get() ?? ({} as Record<K, R>),\n\t\tsubscribe: (run) => store.subscribe((value) => run(value ?? ({} as Record<K, R>))),\n\t});\n}\n"],"mappings":";;;;;;;AAMA,SAAS,gBAAgB,UAA2B,kBAAkB;AAItE,SAAS,gBAAgB,OAAsB;AAC9C,MAAI,UAAU,QAAW;AACxB,UAAM,IAAI,UAAU,wEAAwE;AAAA,EAC7F;AACD;AAEA,SAAS,aAAgB,OAAqE;AAC7F,QAAM,QAAQ,WAAW,MAAM,IAAI,CAAC;AACpC,QAAM,cAAc,MAAM,UAAU,CAAC,SAAS;AAC7C,UAAM,QAAQ;AAAA,EACf,CAAC;AACD,iBAAe,WAAW;AAC1B,SAAO,SAAS,KAAK;AACtB;AAGO,SAAS,aAAgB,MAAoD;AACnF,SAAO,aAAa,cAAc,IAAI,CAAC;AACxC;AAGO,SAAS,aACf,MACqE;AACrE,SAAO;AAAA,IACN,aAAa,IAAI;AAAA,IACjB,CAAC,UAAa;AACb,sBAAgB,KAAK;AACrB,WAAK,IAAI,KAAK;AAAA,IACf;AAAA,EACD;AACD;AAQO,SAAS,cACf,UACA,SACqC;AACrC,QAAM,QAAQ,oBAAoB,UAAU,OAAO;AACnD,SAAO,aAAa;AAAA,IACnB,KAAK,MAAM,MAAM,IAAI,KAAM,CAAC;AAAA,IAC5B,WAAW,CAAC,QAAQ,MAAM,UAAU,CAAC,UAAU,IAAI,SAAU,CAAC,CAAkB,CAAC;AAAA,EAClF,CAAC;AACF;","names":[]}
|
|
@@ -0,0 +1,555 @@
|
|
|
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
|
+
|
|
5
|
+
interface SourceRef {
|
|
6
|
+
readonly kind: string;
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly metadata?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
interface AgentRequestInput<T = unknown> {
|
|
11
|
+
readonly inputId: string;
|
|
12
|
+
readonly inputKind: string;
|
|
13
|
+
readonly dataMode?: "ref" | "summary" | "inline";
|
|
14
|
+
readonly ref?: string;
|
|
15
|
+
readonly summary?: string;
|
|
16
|
+
readonly value?: T;
|
|
17
|
+
readonly schemaRef?: string;
|
|
18
|
+
readonly subjectRefs?: readonly SourceRef[];
|
|
19
|
+
readonly metadata?: Record<string, unknown>;
|
|
20
|
+
}
|
|
21
|
+
interface EffectRunGoal<TInput = unknown> {
|
|
22
|
+
readonly kind: string;
|
|
23
|
+
readonly summary?: string;
|
|
24
|
+
readonly detailRef?: string;
|
|
25
|
+
readonly input?: AgentRequestInput<TInput>;
|
|
26
|
+
readonly metadata?: Record<string, unknown>;
|
|
27
|
+
}
|
|
28
|
+
interface EffectRunLimits {
|
|
29
|
+
readonly maxSteps?: number;
|
|
30
|
+
readonly maxRequests?: number;
|
|
31
|
+
readonly maxAttemptsPerOperation?: number;
|
|
32
|
+
readonly maxPendingRequests?: number;
|
|
33
|
+
readonly maxCostUsd?: number;
|
|
34
|
+
readonly timeoutMs?: number;
|
|
35
|
+
}
|
|
36
|
+
interface EffectRun<TInput = unknown> {
|
|
37
|
+
readonly kind: "effect-run";
|
|
38
|
+
readonly effectRunId: string;
|
|
39
|
+
readonly agentRunId?: string;
|
|
40
|
+
readonly subjectRefs?: readonly SourceRef[];
|
|
41
|
+
readonly goal: EffectRunGoal<TInput>;
|
|
42
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
43
|
+
readonly policyRefs?: readonly SourceRef[];
|
|
44
|
+
readonly limits?: EffectRunLimits;
|
|
45
|
+
readonly createdBy?: string;
|
|
46
|
+
readonly createdAtMs?: number;
|
|
47
|
+
readonly metadata?: Record<string, unknown>;
|
|
48
|
+
}
|
|
49
|
+
interface EffectRunOptions<TInput = unknown> {
|
|
50
|
+
readonly effectRunId: string;
|
|
51
|
+
readonly agentRunId?: string;
|
|
52
|
+
readonly subjectRefs?: readonly SourceRef[];
|
|
53
|
+
readonly goal: EffectRunGoal<TInput>;
|
|
54
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
55
|
+
readonly policyRefs?: readonly SourceRef[];
|
|
56
|
+
readonly limits?: EffectRunLimits;
|
|
57
|
+
readonly createdBy?: string;
|
|
58
|
+
readonly createdAtMs?: number;
|
|
59
|
+
readonly metadata?: Record<string, unknown>;
|
|
60
|
+
}
|
|
61
|
+
declare function effectRun<TInput = unknown>(opts: EffectRunOptions<TInput>): EffectRun<TInput>;
|
|
62
|
+
type AgentRequestKind = "context" | "prompt" | "executor";
|
|
63
|
+
interface AgentRequestProposal<TPayload = unknown> {
|
|
64
|
+
readonly kind: "proposal";
|
|
65
|
+
readonly proposalId: string;
|
|
66
|
+
readonly effectRunId: string;
|
|
67
|
+
readonly agentRunId?: string;
|
|
68
|
+
readonly parentRequestId?: string;
|
|
69
|
+
readonly sourceDecisionId?: string;
|
|
70
|
+
readonly requestKind: AgentRequestKind;
|
|
71
|
+
readonly required?: boolean;
|
|
72
|
+
readonly subjectId?: string;
|
|
73
|
+
readonly input?: AgentRequestInput<TPayload>;
|
|
74
|
+
readonly payload?: TPayload;
|
|
75
|
+
readonly reason?: string;
|
|
76
|
+
readonly evidenceRefs?: readonly SourceRef[];
|
|
77
|
+
readonly metadata?: Record<string, unknown>;
|
|
78
|
+
}
|
|
79
|
+
interface AgentRequestAdmitted {
|
|
80
|
+
readonly kind: "admitted";
|
|
81
|
+
readonly proposalId: string;
|
|
82
|
+
readonly requestId: string;
|
|
83
|
+
readonly operationId: string;
|
|
84
|
+
readonly effectRunId: string;
|
|
85
|
+
readonly agentRunId?: string;
|
|
86
|
+
readonly admittedAtMs?: number;
|
|
87
|
+
readonly reason?: string;
|
|
88
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
89
|
+
readonly metadata?: Record<string, unknown>;
|
|
90
|
+
}
|
|
91
|
+
interface AgentRequestRejected {
|
|
92
|
+
readonly kind: "rejected";
|
|
93
|
+
readonly proposalId: string;
|
|
94
|
+
readonly effectRunId: string;
|
|
95
|
+
readonly issue: DataIssue;
|
|
96
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
97
|
+
readonly metadata?: Record<string, unknown>;
|
|
98
|
+
}
|
|
99
|
+
interface AgentRequestDeferred {
|
|
100
|
+
readonly kind: "deferred";
|
|
101
|
+
readonly proposalId: string;
|
|
102
|
+
readonly effectRunId: string;
|
|
103
|
+
readonly reason?: string;
|
|
104
|
+
readonly untilRef?: string;
|
|
105
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
106
|
+
readonly metadata?: Record<string, unknown>;
|
|
107
|
+
}
|
|
108
|
+
interface AgentRequestMerged {
|
|
109
|
+
readonly kind: "merged";
|
|
110
|
+
readonly proposalId: string;
|
|
111
|
+
readonly effectRunId: string;
|
|
112
|
+
readonly targetRequestId: string;
|
|
113
|
+
readonly reason?: string;
|
|
114
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
115
|
+
readonly metadata?: Record<string, unknown>;
|
|
116
|
+
}
|
|
117
|
+
interface AgentRequestIssued<TPayload = unknown> {
|
|
118
|
+
readonly kind: "issued";
|
|
119
|
+
readonly requestId: string;
|
|
120
|
+
readonly operationId: string;
|
|
121
|
+
readonly effectRunId: string;
|
|
122
|
+
readonly agentRunId?: string;
|
|
123
|
+
readonly proposalId?: string;
|
|
124
|
+
readonly parentRequestId?: string;
|
|
125
|
+
readonly requestKind: AgentRequestKind;
|
|
126
|
+
readonly required: boolean;
|
|
127
|
+
readonly input?: AgentRequestInput<TPayload>;
|
|
128
|
+
readonly payload?: TPayload;
|
|
129
|
+
readonly issuedAtMs?: number;
|
|
130
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
131
|
+
readonly metadata?: Record<string, unknown>;
|
|
132
|
+
}
|
|
133
|
+
type AgentRequestStatus = "proposed" | "admitted" | "rejected" | "deferred" | "merged" | "issued" | "awaiting-context" | "awaiting-prompt" | "awaiting-route" | "awaiting-provider" | "in-flight" | "completed" | "failed" | "blocked" | "canceled" | "timeout" | "waived" | "retry-exhausted";
|
|
134
|
+
interface AgentRequestStatusChanged {
|
|
135
|
+
readonly kind: "status";
|
|
136
|
+
readonly requestId: string;
|
|
137
|
+
readonly operationId?: string;
|
|
138
|
+
readonly effectRunId: string;
|
|
139
|
+
readonly status: AgentRequestStatus;
|
|
140
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
141
|
+
readonly issues?: readonly DataIssue[];
|
|
142
|
+
readonly metadata?: Record<string, unknown>;
|
|
143
|
+
}
|
|
144
|
+
type AgentRequestFact<TPayload = unknown> = AgentRequestProposal<TPayload> | AgentRequestAdmitted | AgentRequestRejected | AgentRequestDeferred | AgentRequestMerged | AgentRequestIssued<TPayload> | AgentRequestStatusChanged;
|
|
145
|
+
interface AgentRequestViews {
|
|
146
|
+
readonly requestsById: ReadonlyMap<string, AgentRequestIssued>;
|
|
147
|
+
readonly requestsByEffectRun: ReadonlyMap<string, readonly string[]>;
|
|
148
|
+
readonly statusByRequest: ReadonlyMap<string, AgentRequestStatusChanged>;
|
|
149
|
+
readonly pending: readonly AgentRequestIssued[];
|
|
150
|
+
readonly awaitingProvider: readonly AgentRequestIssued[];
|
|
151
|
+
readonly issues: readonly DataIssue[];
|
|
152
|
+
readonly audit: readonly AgentRuntimeAuditRecord[];
|
|
153
|
+
}
|
|
154
|
+
interface AgentRequestLedgerBundle {
|
|
155
|
+
readonly views: Node<AgentRequestViews>;
|
|
156
|
+
readonly issues: Node<DataIssue>;
|
|
157
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
158
|
+
}
|
|
159
|
+
interface ExecutorProfile {
|
|
160
|
+
readonly profileId: string;
|
|
161
|
+
readonly executorId: string;
|
|
162
|
+
readonly kind: "llm" | "tool" | "human" | "agent";
|
|
163
|
+
readonly acceptedInputKinds?: readonly string[];
|
|
164
|
+
readonly acceptedSchemaRefs?: readonly string[];
|
|
165
|
+
readonly acceptedResultKinds?: readonly string[];
|
|
166
|
+
readonly capabilities?: Record<string, unknown>;
|
|
167
|
+
readonly limits?: Record<string, number>;
|
|
168
|
+
readonly metadata?: Record<string, unknown>;
|
|
169
|
+
}
|
|
170
|
+
interface ExecutorRoute {
|
|
171
|
+
readonly kind: "executor-route";
|
|
172
|
+
readonly routeId: string;
|
|
173
|
+
readonly requestId: string;
|
|
174
|
+
readonly operationId: string;
|
|
175
|
+
readonly inputId?: string;
|
|
176
|
+
readonly inputKind?: string;
|
|
177
|
+
readonly executorId: string;
|
|
178
|
+
readonly profileId: string;
|
|
179
|
+
readonly allowedParams?: Record<string, unknown>;
|
|
180
|
+
readonly reason?: string;
|
|
181
|
+
readonly evidenceRefs?: readonly SourceRef[];
|
|
182
|
+
readonly metadata?: Record<string, unknown>;
|
|
183
|
+
}
|
|
184
|
+
type ExecutorOutcomeStatus = "result" | "failure" | "canceled" | "timeout" | "blocked";
|
|
185
|
+
interface ExecutorUsage {
|
|
186
|
+
readonly inputTokens?: number;
|
|
187
|
+
readonly outputTokens?: number;
|
|
188
|
+
readonly cacheHitTokens?: number;
|
|
189
|
+
readonly cacheMissTokens?: number;
|
|
190
|
+
readonly cacheWriteTokens?: number;
|
|
191
|
+
readonly cacheMode?: string;
|
|
192
|
+
readonly costUsd?: number;
|
|
193
|
+
readonly latencyMs?: number;
|
|
194
|
+
}
|
|
195
|
+
interface ExecutorOutcomeBase {
|
|
196
|
+
readonly kind: ExecutorOutcomeStatus;
|
|
197
|
+
readonly outcomeId: string;
|
|
198
|
+
readonly requestId: string;
|
|
199
|
+
readonly operationId: string;
|
|
200
|
+
readonly routeId: string;
|
|
201
|
+
readonly executorId: string;
|
|
202
|
+
readonly profileId: string;
|
|
203
|
+
readonly attempt: number;
|
|
204
|
+
readonly inputId?: string;
|
|
205
|
+
readonly inputKind?: string;
|
|
206
|
+
readonly occurredAtMs?: number;
|
|
207
|
+
readonly evidenceRefs?: readonly SourceRef[];
|
|
208
|
+
readonly issues?: readonly DataIssue[];
|
|
209
|
+
readonly usage?: ExecutorUsage;
|
|
210
|
+
readonly metadata?: Record<string, unknown>;
|
|
211
|
+
}
|
|
212
|
+
interface AgentOutputEnvelope<T = unknown> {
|
|
213
|
+
readonly kind: string;
|
|
214
|
+
readonly value?: T;
|
|
215
|
+
readonly refs?: readonly SourceRef[];
|
|
216
|
+
readonly summary?: string;
|
|
217
|
+
readonly metadata?: Record<string, unknown>;
|
|
218
|
+
}
|
|
219
|
+
type ExecutorOutcome<T = unknown> = (ExecutorOutcomeBase & {
|
|
220
|
+
readonly kind: "result";
|
|
221
|
+
readonly result: AgentOutputEnvelope<T>;
|
|
222
|
+
}) | (ExecutorOutcomeBase & {
|
|
223
|
+
readonly kind: "failure";
|
|
224
|
+
readonly error: DataIssue;
|
|
225
|
+
readonly retryable?: boolean;
|
|
226
|
+
}) | (ExecutorOutcomeBase & {
|
|
227
|
+
readonly kind: "canceled";
|
|
228
|
+
readonly reason?: string;
|
|
229
|
+
}) | (ExecutorOutcomeBase & {
|
|
230
|
+
readonly kind: "timeout";
|
|
231
|
+
readonly timeoutMs?: number;
|
|
232
|
+
readonly retryable?: boolean;
|
|
233
|
+
}) | (ExecutorOutcomeBase & {
|
|
234
|
+
readonly kind: "blocked";
|
|
235
|
+
readonly needs: readonly AgentNeed[];
|
|
236
|
+
});
|
|
237
|
+
/**
|
|
238
|
+
* Provider-neutral tool-call request input (D359). Concrete clients, secrets,
|
|
239
|
+
* transports, and SDK handles stay in executor adapter bindings, not this fact.
|
|
240
|
+
*/
|
|
241
|
+
interface ToolCallInput<TArguments = unknown> {
|
|
242
|
+
readonly kind: "tool-call";
|
|
243
|
+
readonly toolName: string;
|
|
244
|
+
readonly operation?: string;
|
|
245
|
+
readonly arguments?: TArguments;
|
|
246
|
+
readonly argumentsRef?: string;
|
|
247
|
+
readonly expectedOutput?: {
|
|
248
|
+
readonly resultKind?: string;
|
|
249
|
+
readonly schemaRef?: string;
|
|
250
|
+
};
|
|
251
|
+
readonly idempotency?: {
|
|
252
|
+
readonly key?: string;
|
|
253
|
+
readonly safeToRetry?: boolean;
|
|
254
|
+
};
|
|
255
|
+
readonly timeoutMs?: number;
|
|
256
|
+
readonly subjectRefs?: readonly SourceRef[];
|
|
257
|
+
readonly metadata?: Record<string, unknown>;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Tool provider family label for optional Layer C adapters (D359). Builtin,
|
|
261
|
+
* MCP, CLI, and Composio providers stay executor/tool recipes, not WorkItem
|
|
262
|
+
* core or protocol semantics.
|
|
263
|
+
*/
|
|
264
|
+
type ToolProviderKind = "local-builtin" | "mcp" | "cli" | "composio" | (string & {});
|
|
265
|
+
/**
|
|
266
|
+
* Graph-visible catalog entry for a tool exposed by an executor provider
|
|
267
|
+
* (D359). Runtime clients and credentials remain private adapter state.
|
|
268
|
+
*/
|
|
269
|
+
interface ToolProviderCatalogEntry {
|
|
270
|
+
readonly kind: "tool-catalog-entry";
|
|
271
|
+
readonly providerId: string;
|
|
272
|
+
readonly toolName: string;
|
|
273
|
+
readonly operation?: string;
|
|
274
|
+
readonly inputKind: "tool-call";
|
|
275
|
+
readonly profileId: string;
|
|
276
|
+
readonly executorId: string;
|
|
277
|
+
readonly resultKinds?: readonly string[];
|
|
278
|
+
readonly schemaRefs?: readonly string[];
|
|
279
|
+
readonly capabilities?: Record<string, unknown>;
|
|
280
|
+
readonly limits?: Record<string, number>;
|
|
281
|
+
readonly policyRefs?: readonly SourceRef[];
|
|
282
|
+
readonly metadata?: Record<string, unknown>;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Graph-visible tool provider catalog/status surface (D359). This is passive
|
|
286
|
+
* DATA for routing/profile selection and UI inspection, not a provider runtime.
|
|
287
|
+
*/
|
|
288
|
+
interface ToolProviderCatalog {
|
|
289
|
+
readonly kind: "tool-provider-catalog";
|
|
290
|
+
readonly providerId: string;
|
|
291
|
+
readonly providerKind: ToolProviderKind;
|
|
292
|
+
readonly profiles: readonly ExecutorProfile[];
|
|
293
|
+
readonly tools: readonly ToolProviderCatalogEntry[];
|
|
294
|
+
readonly status?: "ready" | "unavailable" | "misconfigured";
|
|
295
|
+
readonly issues?: readonly DataIssue[];
|
|
296
|
+
readonly audit?: readonly AgentRuntimeAuditRecord[];
|
|
297
|
+
readonly metadata?: Record<string, unknown>;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Options for producing a local builtin tool-provider catalog (D359). Limits and
|
|
301
|
+
* capabilities are declarative policy hints; execution remains adapter-owned.
|
|
302
|
+
*/
|
|
303
|
+
interface LocalBuiltinToolProviderCatalogOptions {
|
|
304
|
+
readonly providerId?: string;
|
|
305
|
+
readonly executorId?: string;
|
|
306
|
+
readonly profileId?: string;
|
|
307
|
+
readonly tools?: readonly Omit<ToolProviderCatalogEntry, "kind" | "providerId" | "inputKind" | "profileId" | "executorId">[];
|
|
308
|
+
readonly limits?: Record<string, number>;
|
|
309
|
+
readonly capabilities?: Record<string, unknown>;
|
|
310
|
+
readonly metadata?: Record<string, unknown>;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Audience selector for bounded ExecutorOutcome projections (D359).
|
|
314
|
+
*/
|
|
315
|
+
type ExecutorOutcomeViewAudience = "agent-observation" | "ui" | "diagnostic" | "audit";
|
|
316
|
+
/**
|
|
317
|
+
* View policy for deriving bounded, audience-specific ExecutorOutcome summaries
|
|
318
|
+
* (D359/D270/D293) without inlining large/raw provider material.
|
|
319
|
+
*/
|
|
320
|
+
interface ExecutorOutcomeViewPolicy {
|
|
321
|
+
readonly audience?: ExecutorOutcomeViewAudience;
|
|
322
|
+
readonly maxSummaryChars?: number;
|
|
323
|
+
readonly includeIssues?: boolean;
|
|
324
|
+
readonly includeUsage?: boolean;
|
|
325
|
+
readonly includeMetadata?: boolean;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Bounded projection of ExecutorOutcome for agent, UI, diagnostic, or audit
|
|
329
|
+
* consumers (D359). Large/raw material stays behind refs.
|
|
330
|
+
*/
|
|
331
|
+
interface ExecutorOutcomeView {
|
|
332
|
+
readonly kind: "executor-outcome-view";
|
|
333
|
+
readonly viewId: string;
|
|
334
|
+
readonly audience: ExecutorOutcomeViewAudience;
|
|
335
|
+
readonly outcomeId: string;
|
|
336
|
+
readonly requestId: string;
|
|
337
|
+
readonly operationId: string;
|
|
338
|
+
readonly routeId: string;
|
|
339
|
+
readonly executorId: string;
|
|
340
|
+
readonly profileId: string;
|
|
341
|
+
readonly status: ExecutorOutcomeStatus;
|
|
342
|
+
readonly summary: string;
|
|
343
|
+
readonly summaryTruncated?: boolean;
|
|
344
|
+
readonly summaryChars?: number;
|
|
345
|
+
readonly summaryLimitChars?: number;
|
|
346
|
+
readonly errorKind?: string;
|
|
347
|
+
readonly retryable?: boolean;
|
|
348
|
+
readonly nextActions?: readonly string[];
|
|
349
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
350
|
+
readonly materialRefs?: readonly SourceRef[];
|
|
351
|
+
readonly issues?: readonly DataIssue[];
|
|
352
|
+
readonly usage?: ExecutorUsage;
|
|
353
|
+
readonly metadata?: Record<string, unknown>;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Output bundle for ExecutorOutcome view projectors (D359).
|
|
357
|
+
*/
|
|
358
|
+
interface ExecutorOutcomeViewBundle {
|
|
359
|
+
readonly views: Node<ExecutorOutcomeView>;
|
|
360
|
+
readonly issues: Node<DataIssue>;
|
|
361
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
362
|
+
}
|
|
363
|
+
interface ContextContribution {
|
|
364
|
+
readonly kind: "context-contribution";
|
|
365
|
+
readonly contributionId: string;
|
|
366
|
+
readonly requestId: string;
|
|
367
|
+
readonly operationId: string;
|
|
368
|
+
readonly status: "ready" | "pending" | "issue";
|
|
369
|
+
readonly frameId?: string;
|
|
370
|
+
readonly issues?: readonly DataIssue[];
|
|
371
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
372
|
+
readonly metadata?: Record<string, unknown>;
|
|
373
|
+
}
|
|
374
|
+
interface PromptBundle {
|
|
375
|
+
readonly kind: "prompt-bundle";
|
|
376
|
+
readonly promptId: string;
|
|
377
|
+
readonly requestId: string;
|
|
378
|
+
readonly operationId: string;
|
|
379
|
+
readonly status: "ready" | "partial" | "issue";
|
|
380
|
+
readonly sourceFrameIds?: readonly string[];
|
|
381
|
+
readonly issues?: readonly DataIssue[];
|
|
382
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
383
|
+
readonly metadata?: Record<string, unknown>;
|
|
384
|
+
}
|
|
385
|
+
interface AgentRequestSatisfactionBundle {
|
|
386
|
+
readonly status: Node<AgentRequestStatusChanged>;
|
|
387
|
+
readonly issues: Node<DataIssue>;
|
|
388
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
389
|
+
}
|
|
390
|
+
type AgentDecisionKind = "continue" | "final" | "blocked";
|
|
391
|
+
interface AgentNeed {
|
|
392
|
+
readonly kind: string;
|
|
393
|
+
readonly message?: string;
|
|
394
|
+
readonly refs?: readonly SourceRef[];
|
|
395
|
+
readonly metadata?: Record<string, unknown>;
|
|
396
|
+
}
|
|
397
|
+
interface AgentDecisionBase {
|
|
398
|
+
readonly kind: AgentDecisionKind;
|
|
399
|
+
readonly decisionId: string;
|
|
400
|
+
readonly effectRunId: string;
|
|
401
|
+
readonly agentRunId: string;
|
|
402
|
+
readonly source: {
|
|
403
|
+
readonly requestId: string;
|
|
404
|
+
readonly operationId: string;
|
|
405
|
+
readonly outcomeId: string;
|
|
406
|
+
};
|
|
407
|
+
readonly reason?: string;
|
|
408
|
+
readonly confidence?: number;
|
|
409
|
+
readonly evidenceRefs?: readonly SourceRef[];
|
|
410
|
+
readonly metadata?: Record<string, unknown>;
|
|
411
|
+
}
|
|
412
|
+
interface AgentDecisionContinue extends AgentDecisionBase {
|
|
413
|
+
readonly kind: "continue";
|
|
414
|
+
readonly next: readonly AgentRequestProposal[];
|
|
415
|
+
}
|
|
416
|
+
interface AgentDecisionFinal extends AgentDecisionBase {
|
|
417
|
+
readonly kind: "final";
|
|
418
|
+
readonly output: AgentOutputEnvelope;
|
|
419
|
+
readonly summary?: string;
|
|
420
|
+
}
|
|
421
|
+
interface AgentDecisionBlocked extends AgentDecisionBase {
|
|
422
|
+
readonly kind: "blocked";
|
|
423
|
+
readonly needs: readonly AgentNeed[];
|
|
424
|
+
}
|
|
425
|
+
type AgentDecision = AgentDecisionContinue | AgentDecisionFinal | AgentDecisionBlocked;
|
|
426
|
+
interface StructuredAgentDecisionEnvelope {
|
|
427
|
+
readonly kind: "agent-decision";
|
|
428
|
+
readonly decision: AgentDecision;
|
|
429
|
+
readonly schemaRef: string;
|
|
430
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
431
|
+
}
|
|
432
|
+
interface StructuredAgentDecisionInterpreterBundle {
|
|
433
|
+
readonly decisions: Node<AgentDecision>;
|
|
434
|
+
readonly issues: Node<DataIssue>;
|
|
435
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
436
|
+
}
|
|
437
|
+
type EffectRunResultStatus = "completed" | "failed" | "blocked" | "canceled" | "timeout" | "waived";
|
|
438
|
+
interface EffectRunResultBase {
|
|
439
|
+
readonly kind: "effect-run-result";
|
|
440
|
+
readonly resultId: string;
|
|
441
|
+
readonly status: EffectRunResultStatus;
|
|
442
|
+
readonly effectRunId: string;
|
|
443
|
+
readonly subjectRefs?: readonly SourceRef[];
|
|
444
|
+
readonly operationId?: string;
|
|
445
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
446
|
+
readonly issues?: readonly DataIssue[];
|
|
447
|
+
readonly auditRefs?: readonly string[];
|
|
448
|
+
readonly completedAtMs?: number;
|
|
449
|
+
readonly metadata?: Record<string, unknown>;
|
|
450
|
+
}
|
|
451
|
+
type EffectRunResult = (EffectRunResultBase & {
|
|
452
|
+
readonly status: "completed";
|
|
453
|
+
readonly output: AgentOutputEnvelope;
|
|
454
|
+
}) | (EffectRunResultBase & {
|
|
455
|
+
readonly status: "failed";
|
|
456
|
+
readonly error: DataIssue;
|
|
457
|
+
}) | (EffectRunResultBase & {
|
|
458
|
+
readonly status: "blocked";
|
|
459
|
+
readonly needs: readonly AgentNeed[];
|
|
460
|
+
}) | (EffectRunResultBase & {
|
|
461
|
+
readonly status: "canceled";
|
|
462
|
+
readonly reason?: string;
|
|
463
|
+
}) | (EffectRunResultBase & {
|
|
464
|
+
readonly status: "timeout";
|
|
465
|
+
readonly timeoutMs?: number;
|
|
466
|
+
}) | (EffectRunResultBase & {
|
|
467
|
+
readonly status: "waived";
|
|
468
|
+
readonly reason?: string;
|
|
469
|
+
});
|
|
470
|
+
interface EffectRunCompletionBundle {
|
|
471
|
+
readonly results: Node<EffectRunResult>;
|
|
472
|
+
readonly status: Node<EffectRunCompletionStatus>;
|
|
473
|
+
readonly issues: Node<DataIssue>;
|
|
474
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
475
|
+
}
|
|
476
|
+
interface EffectRunCompletionStatus {
|
|
477
|
+
readonly effectRunId: string;
|
|
478
|
+
readonly state: "pending" | "completed" | "failed" | "blocked" | "canceled" | "timeout" | "waived";
|
|
479
|
+
readonly requiredPending: readonly string[];
|
|
480
|
+
readonly requiredTerminal: readonly string[];
|
|
481
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
482
|
+
}
|
|
483
|
+
interface AgentRuntimeAuditRecord {
|
|
484
|
+
readonly id: string;
|
|
485
|
+
readonly kind: string;
|
|
486
|
+
readonly subjectId?: string;
|
|
487
|
+
readonly message?: string;
|
|
488
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
489
|
+
readonly issueCode?: string;
|
|
490
|
+
readonly metadata?: Record<string, unknown>;
|
|
491
|
+
}
|
|
492
|
+
declare function agentRequestProposalFromDecision(decision: AgentDecisionContinue, proposal: Omit<AgentRequestProposal, "kind" | "effectRunId" | "agentRunId" | "sourceDecisionId">): AgentRequestProposal;
|
|
493
|
+
declare function admitAgentRequestProposal(proposal: AgentRequestProposal, opts: {
|
|
494
|
+
readonly requestId: string;
|
|
495
|
+
readonly operationId: string;
|
|
496
|
+
readonly admittedAtMs?: number;
|
|
497
|
+
readonly reason?: string;
|
|
498
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
499
|
+
readonly metadata?: Record<string, unknown>;
|
|
500
|
+
}): AgentRequestAdmitted;
|
|
501
|
+
declare function issueAgentRequest(proposal: AgentRequestProposal, admission: AgentRequestAdmitted, opts?: {
|
|
502
|
+
readonly issuedAtMs?: number;
|
|
503
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
504
|
+
}): AgentRequestIssued;
|
|
505
|
+
declare function agentRequestLedgerViews(graph: Graph, facts: Node<AgentRequestFact>, opts?: {
|
|
506
|
+
readonly name?: string;
|
|
507
|
+
}): AgentRequestLedgerBundle;
|
|
508
|
+
declare function requestSatisfactionProjector(graph: Graph, opts: {
|
|
509
|
+
readonly name?: string;
|
|
510
|
+
readonly requestFacts: Node<AgentRequestFact>;
|
|
511
|
+
readonly executorProfiles?: readonly Node<ExecutorProfile>[];
|
|
512
|
+
readonly executorRoutes?: readonly Node<ExecutorRoute>[];
|
|
513
|
+
readonly executorOutcomes?: readonly Node<ExecutorOutcome>[];
|
|
514
|
+
readonly contextContributions?: readonly Node<ContextContribution>[];
|
|
515
|
+
readonly promptBundles?: readonly Node<PromptBundle>[];
|
|
516
|
+
}): AgentRequestSatisfactionBundle;
|
|
517
|
+
declare function localBuiltinToolProviderCatalog(opts?: LocalBuiltinToolProviderCatalogOptions): ToolProviderCatalog;
|
|
518
|
+
declare function executorOutcomeViewProjector(graph: Graph, opts: {
|
|
519
|
+
readonly name?: string;
|
|
520
|
+
readonly outcomes: Node<ExecutorOutcome>;
|
|
521
|
+
readonly policy?: ExecutorOutcomeViewPolicy;
|
|
522
|
+
}): ExecutorOutcomeViewBundle;
|
|
523
|
+
declare function structuredAgentDecisionInterpreter(graph: Graph, outcomes: Node<ExecutorOutcome>, opts?: {
|
|
524
|
+
readonly name?: string;
|
|
525
|
+
readonly schemaRef?: string;
|
|
526
|
+
readonly requestFacts?: readonly Node<AgentRequestFact>[];
|
|
527
|
+
}): StructuredAgentDecisionInterpreterBundle;
|
|
528
|
+
declare function effectRunCompletionProjector(graph: Graph, opts: {
|
|
529
|
+
readonly name?: string;
|
|
530
|
+
readonly effectRuns: Node<EffectRun>;
|
|
531
|
+
readonly decisions?: readonly Node<AgentDecision>[];
|
|
532
|
+
readonly requestStatuses?: readonly Node<AgentRequestStatusChanged>[];
|
|
533
|
+
readonly requestFacts?: readonly Node<AgentRequestFact>[];
|
|
534
|
+
readonly resultCandidates?: readonly Node<EffectRunResult>[];
|
|
535
|
+
readonly now?: () => number;
|
|
536
|
+
}): EffectRunCompletionBundle;
|
|
537
|
+
declare function fakeExecutorResult<T>(opts: Omit<ExecutorOutcomeBase, "kind"> & {
|
|
538
|
+
readonly result: AgentOutputEnvelope<T>;
|
|
539
|
+
}): ExecutorOutcome<T>;
|
|
540
|
+
declare function fakeExecutorFailure(opts: Omit<ExecutorOutcomeBase, "kind"> & {
|
|
541
|
+
readonly error: DataIssue;
|
|
542
|
+
readonly retryable?: boolean;
|
|
543
|
+
}): ExecutorOutcome;
|
|
544
|
+
declare function fakeExecutorBlocked(opts: Omit<ExecutorOutcomeBase, "kind"> & {
|
|
545
|
+
readonly needs: readonly AgentNeed[];
|
|
546
|
+
}): ExecutorOutcome;
|
|
547
|
+
declare function fakeExecutorTimeout(opts: Omit<ExecutorOutcomeBase, "kind"> & {
|
|
548
|
+
readonly timeoutMs?: number;
|
|
549
|
+
readonly retryable?: boolean;
|
|
550
|
+
}): ExecutorOutcome;
|
|
551
|
+
declare function fakeExecutorCanceled(opts: Omit<ExecutorOutcomeBase, "kind"> & {
|
|
552
|
+
readonly reason?: string;
|
|
553
|
+
}): ExecutorOutcome;
|
|
554
|
+
|
|
555
|
+
export { agentRequestLedgerViews as $, type AgentRequestIssued as A, type EffectRunLimits as B, type ContextContribution as C, type EffectRunOptions as D, type ExecutorOutcome as E, type EffectRunResult as F, type EffectRunResultBase as G, type EffectRunResultStatus as H, type ExecutorOutcomeBase as I, type ExecutorOutcomeStatus as J, type ExecutorOutcomeView as K, type ExecutorOutcomeViewAudience as L, type ExecutorOutcomeViewBundle as M, type ExecutorOutcomeViewPolicy as N, type ExecutorProfile as O, type ExecutorRoute as P, type ExecutorUsage as Q, type LocalBuiltinToolProviderCatalogOptions as R, type SourceRef as S, type PromptBundle as T, type StructuredAgentDecisionEnvelope as U, type StructuredAgentDecisionInterpreterBundle as V, type ToolCallInput as W, type ToolProviderCatalog as X, type ToolProviderCatalogEntry as Y, type ToolProviderKind as Z, admitAgentRequestProposal as _, type AgentDecision as a, agentRequestProposalFromDecision as a0, effectRun as a1, effectRunCompletionProjector as a2, executorOutcomeViewProjector as a3, fakeExecutorBlocked as a4, fakeExecutorCanceled as a5, fakeExecutorFailure as a6, fakeExecutorResult as a7, fakeExecutorTimeout as a8, issueAgentRequest as a9, localBuiltinToolProviderCatalog as aa, requestSatisfactionProjector as ab, structuredAgentDecisionInterpreter as ac, type AgentDecisionBase as b, type AgentDecisionBlocked as c, type AgentDecisionContinue as d, type AgentDecisionFinal as e, type AgentDecisionKind as f, type AgentNeed as g, type AgentOutputEnvelope as h, type AgentRequestAdmitted as i, type AgentRequestDeferred as j, type AgentRequestFact as k, type AgentRequestInput as l, type AgentRequestKind as m, type AgentRequestLedgerBundle as n, type AgentRequestMerged as o, type AgentRequestProposal as p, type AgentRequestRejected as q, type AgentRequestSatisfactionBundle as r, type AgentRequestStatus as s, type AgentRequestStatusChanged as t, type AgentRequestViews as u, type AgentRuntimeAuditRecord as v, type EffectRun as w, type EffectRunCompletionBundle as x, type EffectRunCompletionStatus as y, type EffectRunGoal as z };
|