@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,201 @@
|
|
|
1
|
+
import { DataIssue } from '../../data/index.cjs';
|
|
2
|
+
import { d as Graph } from '../../graph-DCEWh4T2.cjs';
|
|
3
|
+
import { BoundaryCapabilityRef } from '../../inspection/boundary.cjs';
|
|
4
|
+
import { N as Node } from '../../types-CcPIn7sy.cjs';
|
|
5
|
+
import { S as SourceRef, v as AgentRuntimeAuditRecord } from '../../agent-runtime-DZTJ3C-p.cjs';
|
|
6
|
+
import { g as WorkItemDomainActionProposal, W as WorkItemDomainActionAdmission, b as WorkItemDomainActionAdmissionDecision } from '../../work-item-runtime-qaVgsL0T.cjs';
|
|
7
|
+
export { d as WorkItemDomainActionAdmissionPolicy, f as WorkItemDomainActionAdmissionViews, j as WorkItemDomainActionProposalSpec, w as workItemDomainActionAdmissionProjector } from '../../work-item-runtime-qaVgsL0T.cjs';
|
|
8
|
+
import { C as CapabilityAdmission, g as CapabilityAdmissionStatus } from '../../capability-admission-B0BzqAm5.cjs';
|
|
9
|
+
import { WorkItemAuthoringFact, WorkItemProjection, WorkItemPatch, AcceptanceCriterion, VerificationPlan, WorkItemDraft } from './scheduling.cjs';
|
|
10
|
+
import '../../core/index.cjs';
|
|
11
|
+
import '../../messages-CAzUPPJM.cjs';
|
|
12
|
+
import '../../codec-BB7p8fJc.cjs';
|
|
13
|
+
import '../../describe-DYMw_l1C.cjs';
|
|
14
|
+
import '../../store-CNJwmT-h.cjs';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* WorkItem domain action intake, admission, and application facts (D239/D333-D343).
|
|
18
|
+
*
|
|
19
|
+
* This focused solution subpath keeps action mutation data-first: proposals and
|
|
20
|
+
* admissions are visible facts, and application lowers only to append-only
|
|
21
|
+
* WorkItem authoring facts plus status/issue/audit projections. It does not
|
|
22
|
+
* mutate WorkItem projections directly, run executors, claim queues, or install
|
|
23
|
+
* hidden schedulers.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
type WorkItemDomainActionKind = "patch" | "mark-verified" | "require-review" | "spawn-proposed" | "spawn-child" | (string & {});
|
|
27
|
+
interface WorkItemDomainActionProposalIntake<TPayload = unknown> {
|
|
28
|
+
readonly kind: "work-item-domain-action-proposal-intake";
|
|
29
|
+
readonly proposalId: string;
|
|
30
|
+
readonly workItemId: string;
|
|
31
|
+
readonly actionKind: WorkItemDomainActionKind;
|
|
32
|
+
readonly payload?: TPayload;
|
|
33
|
+
readonly reason?: string;
|
|
34
|
+
readonly policyId?: string;
|
|
35
|
+
readonly effectRunId?: string;
|
|
36
|
+
readonly effectRunResultId?: string;
|
|
37
|
+
readonly evidenceId?: string;
|
|
38
|
+
readonly proposedAtMs?: number;
|
|
39
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
40
|
+
readonly metadata?: Record<string, unknown>;
|
|
41
|
+
}
|
|
42
|
+
type WorkItemDomainActionProposalInput<TPayload = unknown> = WorkItemDomainActionProposal<TPayload> | WorkItemDomainActionProposalIntake<TPayload> | unknown;
|
|
43
|
+
type WorkItemDomainActionStatusState = "proposed" | "applied" | "rejected" | "deferred" | "duplicate" | "missing-policy" | "merged" | "policy-rejected" | "proposal-only";
|
|
44
|
+
interface WorkItemDomainActionStatus {
|
|
45
|
+
readonly kind: "work-item-domain-action-status";
|
|
46
|
+
readonly statusId: string;
|
|
47
|
+
readonly workItemId?: string;
|
|
48
|
+
readonly proposalId?: string;
|
|
49
|
+
readonly admissionId?: string;
|
|
50
|
+
readonly actionKind?: string;
|
|
51
|
+
readonly state: WorkItemDomainActionStatusState;
|
|
52
|
+
readonly code?: string;
|
|
53
|
+
readonly message?: string;
|
|
54
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
55
|
+
readonly metadata?: Record<string, unknown>;
|
|
56
|
+
}
|
|
57
|
+
interface WorkItemPatchActionPayload<TInput = unknown> {
|
|
58
|
+
readonly patch?: WorkItemPatch<TInput>;
|
|
59
|
+
readonly acceptanceCriteria?: readonly AcceptanceCriterion[];
|
|
60
|
+
readonly verificationPlan?: VerificationPlan<TInput>;
|
|
61
|
+
readonly executionRelevantFields?: readonly string[];
|
|
62
|
+
readonly authorId?: string;
|
|
63
|
+
readonly eventId?: string;
|
|
64
|
+
readonly metadata?: Record<string, unknown>;
|
|
65
|
+
}
|
|
66
|
+
interface WorkItemSpawnActionPayload<TInput = unknown> {
|
|
67
|
+
readonly workItemId?: string;
|
|
68
|
+
readonly childWorkItemId?: string;
|
|
69
|
+
readonly draft?: WorkItemDraft<TInput>;
|
|
70
|
+
readonly authorId?: string;
|
|
71
|
+
readonly eventId?: string;
|
|
72
|
+
readonly metadata?: Record<string, unknown>;
|
|
73
|
+
}
|
|
74
|
+
interface WorkItemDomainActionApplyPolicy {
|
|
75
|
+
readonly kind: "work-item-domain-action-apply-policy";
|
|
76
|
+
readonly policyId: string;
|
|
77
|
+
readonly actionKinds?: readonly WorkItemDomainActionKind[];
|
|
78
|
+
readonly patch?: {
|
|
79
|
+
readonly allowedFields?: readonly string[];
|
|
80
|
+
readonly executionRelevantFields?: readonly string[];
|
|
81
|
+
readonly allowAcceptanceCriteria?: boolean;
|
|
82
|
+
readonly allowVerificationPlan?: boolean;
|
|
83
|
+
};
|
|
84
|
+
readonly spawn?: {
|
|
85
|
+
readonly create?: boolean;
|
|
86
|
+
readonly linkParent?: boolean;
|
|
87
|
+
readonly idempotencyKey?: string;
|
|
88
|
+
readonly maxChildrenPerAdmission?: number;
|
|
89
|
+
readonly childWorkItemId?: string;
|
|
90
|
+
readonly childIdPrefix?: string;
|
|
91
|
+
};
|
|
92
|
+
readonly metadata?: Record<string, unknown>;
|
|
93
|
+
}
|
|
94
|
+
interface WorkItemDomainActionApplication {
|
|
95
|
+
readonly kind: "work-item-domain-action-application";
|
|
96
|
+
readonly applicationId: string;
|
|
97
|
+
readonly admissionId: string;
|
|
98
|
+
readonly proposalId: string;
|
|
99
|
+
readonly workItemId: string;
|
|
100
|
+
readonly actionKind: string;
|
|
101
|
+
readonly state: Exclude<WorkItemDomainActionStatusState, "proposed">;
|
|
102
|
+
readonly producedFactIds?: readonly string[];
|
|
103
|
+
readonly reason?: string;
|
|
104
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
105
|
+
readonly metadata?: Record<string, unknown>;
|
|
106
|
+
}
|
|
107
|
+
interface WorkItemDomainActionIntakeOptions {
|
|
108
|
+
readonly name?: string;
|
|
109
|
+
readonly proposals: Node<WorkItemDomainActionProposalInput>;
|
|
110
|
+
readonly now?: () => number;
|
|
111
|
+
}
|
|
112
|
+
interface WorkItemDomainActionIntakeBundle {
|
|
113
|
+
readonly proposals: Node<WorkItemDomainActionProposal>;
|
|
114
|
+
readonly status: Node<WorkItemDomainActionStatus>;
|
|
115
|
+
readonly issues: Node<DataIssue>;
|
|
116
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
117
|
+
}
|
|
118
|
+
interface WorkItemDomainActionApplicationOptions<TInput = unknown> {
|
|
119
|
+
readonly name?: string;
|
|
120
|
+
readonly proposals: Node<WorkItemDomainActionProposal>;
|
|
121
|
+
readonly admissions: Node<WorkItemDomainActionAdmission>;
|
|
122
|
+
readonly workItems: Node<WorkItemProjection<TInput>>;
|
|
123
|
+
readonly applyPolicies?: Node<WorkItemDomainActionApplyPolicy>;
|
|
124
|
+
}
|
|
125
|
+
interface WorkItemDomainActionApplicationBundle<TInput = unknown> {
|
|
126
|
+
readonly authoringFacts: Node<WorkItemAuthoringFact<TInput>>;
|
|
127
|
+
readonly applications: Node<WorkItemDomainActionApplication>;
|
|
128
|
+
readonly status: Node<WorkItemDomainActionStatus>;
|
|
129
|
+
readonly issues: Node<DataIssue>;
|
|
130
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Product-owned command capability policy (D357): maps WorkItem domain action
|
|
134
|
+
* proposals to explicit boundary capability refs and admission subjects without
|
|
135
|
+
* defining provider/security registry semantics or protocol status vocabulary.
|
|
136
|
+
*/
|
|
137
|
+
interface WorkItemDomainActionCapabilityGuardPolicy {
|
|
138
|
+
readonly kind: "work-item-domain-action-capability-guard-policy";
|
|
139
|
+
readonly policyId: string;
|
|
140
|
+
readonly actionKinds?: readonly WorkItemDomainActionKind[];
|
|
141
|
+
readonly capabilityRefs: readonly BoundaryCapabilityRef[];
|
|
142
|
+
readonly admissionSubjectIds: readonly string[];
|
|
143
|
+
readonly metadata?: Record<string, unknown>;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Visible DATA status for the capability guard (D357). Missing or mismatched
|
|
147
|
+
* capability facts remain product issues/status, not protocol ERROR messages.
|
|
148
|
+
*/
|
|
149
|
+
interface WorkItemDomainActionCapabilityGuardStatus {
|
|
150
|
+
readonly kind: "work-item-domain-action-capability-guard-status";
|
|
151
|
+
readonly statusId: string;
|
|
152
|
+
readonly state: "admitted" | "rejected" | "deferred" | "issue";
|
|
153
|
+
readonly workItemId?: string;
|
|
154
|
+
readonly proposalId?: string;
|
|
155
|
+
readonly actionKind?: string;
|
|
156
|
+
readonly policyId?: string;
|
|
157
|
+
readonly capabilityRefs?: readonly BoundaryCapabilityRef[];
|
|
158
|
+
readonly admissionSubjectIds?: readonly string[];
|
|
159
|
+
readonly admissionIds?: readonly string[];
|
|
160
|
+
readonly issues?: readonly DataIssue[];
|
|
161
|
+
readonly message?: string;
|
|
162
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
163
|
+
readonly metadata?: Record<string, unknown>;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Inputs for the WorkItem domain-action capability guard. All dependencies are
|
|
167
|
+
* ordinary solution/product DATA facts; the guard does not mutate WorkItems or
|
|
168
|
+
* claim dispatch queues.
|
|
169
|
+
*/
|
|
170
|
+
interface WorkItemDomainActionCapabilityGuardOptions {
|
|
171
|
+
readonly name?: string;
|
|
172
|
+
readonly proposals: Node<WorkItemDomainActionProposal>;
|
|
173
|
+
readonly capabilityAdmissions: Node<CapabilityAdmission>;
|
|
174
|
+
readonly guardPolicies: Node<WorkItemDomainActionCapabilityGuardPolicy>;
|
|
175
|
+
readonly capabilityAdmissionStatus?: Node<CapabilityAdmissionStatus>;
|
|
176
|
+
readonly now?: () => number;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Output facts for product admission consumption. Decisions feed the existing
|
|
180
|
+
* WorkItem domain-action admission path; status/issues/audit remain inspectable
|
|
181
|
+
* product DATA.
|
|
182
|
+
*/
|
|
183
|
+
interface WorkItemDomainActionCapabilityGuardBundle {
|
|
184
|
+
readonly decisions: Node<WorkItemDomainActionAdmissionDecision>;
|
|
185
|
+
readonly status: Node<WorkItemDomainActionCapabilityGuardStatus>;
|
|
186
|
+
readonly issues: Node<DataIssue>;
|
|
187
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
188
|
+
}
|
|
189
|
+
declare function workItemDomainActionProposal(proposalId: string, workItemId: string, actionKind: WorkItemDomainActionKind, opts?: Omit<Partial<WorkItemDomainActionProposal>, "kind" | "proposalId" | "workItemId" | "actionKind">): WorkItemDomainActionProposal;
|
|
190
|
+
declare function workItemDomainActionProposalIntake<TPayload = unknown>(proposalId: string, workItemId: string, actionKind: WorkItemDomainActionKind, opts?: Omit<Partial<WorkItemDomainActionProposalIntake<TPayload>>, "kind" | "proposalId" | "workItemId" | "actionKind">): WorkItemDomainActionProposalIntake<TPayload>;
|
|
191
|
+
declare function workItemDomainActionApplyPolicy(policyId: string, opts?: Omit<Partial<WorkItemDomainActionApplyPolicy>, "kind" | "policyId">): WorkItemDomainActionApplyPolicy;
|
|
192
|
+
declare function workItemDomainActionProposalIntakeProjector(graph: Graph, opts: WorkItemDomainActionIntakeOptions): WorkItemDomainActionIntakeBundle;
|
|
193
|
+
declare function workItemDomainActionApplicationProjector<TInput = unknown>(graph: Graph, opts: WorkItemDomainActionApplicationOptions<TInput>): WorkItemDomainActionApplicationBundle<TInput>;
|
|
194
|
+
/**
|
|
195
|
+
* Connects CapabilityAdmission facts to WorkItem domain-action admission as a
|
|
196
|
+
* product-owned guard (D357), without adding protocol/boundary vocabulary or
|
|
197
|
+
* treating AutoPanel display affordances as hard security enforcement.
|
|
198
|
+
*/
|
|
199
|
+
declare function workItemDomainActionCapabilityGuardProjector(graph: Graph, opts: WorkItemDomainActionCapabilityGuardOptions): WorkItemDomainActionCapabilityGuardBundle;
|
|
200
|
+
|
|
201
|
+
export { WorkItemDomainActionAdmission, WorkItemDomainActionAdmissionDecision, type WorkItemDomainActionApplication, type WorkItemDomainActionApplicationBundle, type WorkItemDomainActionApplicationOptions, type WorkItemDomainActionApplyPolicy, type WorkItemDomainActionCapabilityGuardBundle, type WorkItemDomainActionCapabilityGuardOptions, type WorkItemDomainActionCapabilityGuardPolicy, type WorkItemDomainActionCapabilityGuardStatus, type WorkItemDomainActionIntakeBundle, type WorkItemDomainActionIntakeOptions, type WorkItemDomainActionKind, WorkItemDomainActionProposal, type WorkItemDomainActionProposalInput, type WorkItemDomainActionProposalIntake, type WorkItemDomainActionStatus, type WorkItemDomainActionStatusState, type WorkItemPatchActionPayload, type WorkItemSpawnActionPayload, workItemDomainActionApplicationProjector, workItemDomainActionApplyPolicy, workItemDomainActionCapabilityGuardProjector, workItemDomainActionProposal, workItemDomainActionProposalIntake, workItemDomainActionProposalIntakeProjector };
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { DataIssue } from '../../data/index.js';
|
|
2
|
+
import { d as Graph } from '../../graph-D-1-SQeC.js';
|
|
3
|
+
import { BoundaryCapabilityRef } from '../../inspection/boundary.js';
|
|
4
|
+
import { N as Node } from '../../types-BsJvElYZ.js';
|
|
5
|
+
import { S as SourceRef, v as AgentRuntimeAuditRecord } from '../../agent-runtime-BesGDZcB.js';
|
|
6
|
+
import { g as WorkItemDomainActionProposal, W as WorkItemDomainActionAdmission, b as WorkItemDomainActionAdmissionDecision } from '../../work-item-runtime-C3M79vE9.js';
|
|
7
|
+
export { d as WorkItemDomainActionAdmissionPolicy, f as WorkItemDomainActionAdmissionViews, j as WorkItemDomainActionProposalSpec, w as workItemDomainActionAdmissionProjector } from '../../work-item-runtime-C3M79vE9.js';
|
|
8
|
+
import { C as CapabilityAdmission, g as CapabilityAdmissionStatus } from '../../capability-admission-g0mn9hpq.js';
|
|
9
|
+
import { WorkItemAuthoringFact, WorkItemProjection, WorkItemPatch, AcceptanceCriterion, VerificationPlan, WorkItemDraft } from './scheduling.js';
|
|
10
|
+
import '../../core/index.js';
|
|
11
|
+
import '../../messages-CAzUPPJM.js';
|
|
12
|
+
import '../../codec-BB7p8fJc.js';
|
|
13
|
+
import '../../describe-BpyJuWkw.js';
|
|
14
|
+
import '../../store-C-joM4gh.js';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* WorkItem domain action intake, admission, and application facts (D239/D333-D343).
|
|
18
|
+
*
|
|
19
|
+
* This focused solution subpath keeps action mutation data-first: proposals and
|
|
20
|
+
* admissions are visible facts, and application lowers only to append-only
|
|
21
|
+
* WorkItem authoring facts plus status/issue/audit projections. It does not
|
|
22
|
+
* mutate WorkItem projections directly, run executors, claim queues, or install
|
|
23
|
+
* hidden schedulers.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
type WorkItemDomainActionKind = "patch" | "mark-verified" | "require-review" | "spawn-proposed" | "spawn-child" | (string & {});
|
|
27
|
+
interface WorkItemDomainActionProposalIntake<TPayload = unknown> {
|
|
28
|
+
readonly kind: "work-item-domain-action-proposal-intake";
|
|
29
|
+
readonly proposalId: string;
|
|
30
|
+
readonly workItemId: string;
|
|
31
|
+
readonly actionKind: WorkItemDomainActionKind;
|
|
32
|
+
readonly payload?: TPayload;
|
|
33
|
+
readonly reason?: string;
|
|
34
|
+
readonly policyId?: string;
|
|
35
|
+
readonly effectRunId?: string;
|
|
36
|
+
readonly effectRunResultId?: string;
|
|
37
|
+
readonly evidenceId?: string;
|
|
38
|
+
readonly proposedAtMs?: number;
|
|
39
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
40
|
+
readonly metadata?: Record<string, unknown>;
|
|
41
|
+
}
|
|
42
|
+
type WorkItemDomainActionProposalInput<TPayload = unknown> = WorkItemDomainActionProposal<TPayload> | WorkItemDomainActionProposalIntake<TPayload> | unknown;
|
|
43
|
+
type WorkItemDomainActionStatusState = "proposed" | "applied" | "rejected" | "deferred" | "duplicate" | "missing-policy" | "merged" | "policy-rejected" | "proposal-only";
|
|
44
|
+
interface WorkItemDomainActionStatus {
|
|
45
|
+
readonly kind: "work-item-domain-action-status";
|
|
46
|
+
readonly statusId: string;
|
|
47
|
+
readonly workItemId?: string;
|
|
48
|
+
readonly proposalId?: string;
|
|
49
|
+
readonly admissionId?: string;
|
|
50
|
+
readonly actionKind?: string;
|
|
51
|
+
readonly state: WorkItemDomainActionStatusState;
|
|
52
|
+
readonly code?: string;
|
|
53
|
+
readonly message?: string;
|
|
54
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
55
|
+
readonly metadata?: Record<string, unknown>;
|
|
56
|
+
}
|
|
57
|
+
interface WorkItemPatchActionPayload<TInput = unknown> {
|
|
58
|
+
readonly patch?: WorkItemPatch<TInput>;
|
|
59
|
+
readonly acceptanceCriteria?: readonly AcceptanceCriterion[];
|
|
60
|
+
readonly verificationPlan?: VerificationPlan<TInput>;
|
|
61
|
+
readonly executionRelevantFields?: readonly string[];
|
|
62
|
+
readonly authorId?: string;
|
|
63
|
+
readonly eventId?: string;
|
|
64
|
+
readonly metadata?: Record<string, unknown>;
|
|
65
|
+
}
|
|
66
|
+
interface WorkItemSpawnActionPayload<TInput = unknown> {
|
|
67
|
+
readonly workItemId?: string;
|
|
68
|
+
readonly childWorkItemId?: string;
|
|
69
|
+
readonly draft?: WorkItemDraft<TInput>;
|
|
70
|
+
readonly authorId?: string;
|
|
71
|
+
readonly eventId?: string;
|
|
72
|
+
readonly metadata?: Record<string, unknown>;
|
|
73
|
+
}
|
|
74
|
+
interface WorkItemDomainActionApplyPolicy {
|
|
75
|
+
readonly kind: "work-item-domain-action-apply-policy";
|
|
76
|
+
readonly policyId: string;
|
|
77
|
+
readonly actionKinds?: readonly WorkItemDomainActionKind[];
|
|
78
|
+
readonly patch?: {
|
|
79
|
+
readonly allowedFields?: readonly string[];
|
|
80
|
+
readonly executionRelevantFields?: readonly string[];
|
|
81
|
+
readonly allowAcceptanceCriteria?: boolean;
|
|
82
|
+
readonly allowVerificationPlan?: boolean;
|
|
83
|
+
};
|
|
84
|
+
readonly spawn?: {
|
|
85
|
+
readonly create?: boolean;
|
|
86
|
+
readonly linkParent?: boolean;
|
|
87
|
+
readonly idempotencyKey?: string;
|
|
88
|
+
readonly maxChildrenPerAdmission?: number;
|
|
89
|
+
readonly childWorkItemId?: string;
|
|
90
|
+
readonly childIdPrefix?: string;
|
|
91
|
+
};
|
|
92
|
+
readonly metadata?: Record<string, unknown>;
|
|
93
|
+
}
|
|
94
|
+
interface WorkItemDomainActionApplication {
|
|
95
|
+
readonly kind: "work-item-domain-action-application";
|
|
96
|
+
readonly applicationId: string;
|
|
97
|
+
readonly admissionId: string;
|
|
98
|
+
readonly proposalId: string;
|
|
99
|
+
readonly workItemId: string;
|
|
100
|
+
readonly actionKind: string;
|
|
101
|
+
readonly state: Exclude<WorkItemDomainActionStatusState, "proposed">;
|
|
102
|
+
readonly producedFactIds?: readonly string[];
|
|
103
|
+
readonly reason?: string;
|
|
104
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
105
|
+
readonly metadata?: Record<string, unknown>;
|
|
106
|
+
}
|
|
107
|
+
interface WorkItemDomainActionIntakeOptions {
|
|
108
|
+
readonly name?: string;
|
|
109
|
+
readonly proposals: Node<WorkItemDomainActionProposalInput>;
|
|
110
|
+
readonly now?: () => number;
|
|
111
|
+
}
|
|
112
|
+
interface WorkItemDomainActionIntakeBundle {
|
|
113
|
+
readonly proposals: Node<WorkItemDomainActionProposal>;
|
|
114
|
+
readonly status: Node<WorkItemDomainActionStatus>;
|
|
115
|
+
readonly issues: Node<DataIssue>;
|
|
116
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
117
|
+
}
|
|
118
|
+
interface WorkItemDomainActionApplicationOptions<TInput = unknown> {
|
|
119
|
+
readonly name?: string;
|
|
120
|
+
readonly proposals: Node<WorkItemDomainActionProposal>;
|
|
121
|
+
readonly admissions: Node<WorkItemDomainActionAdmission>;
|
|
122
|
+
readonly workItems: Node<WorkItemProjection<TInput>>;
|
|
123
|
+
readonly applyPolicies?: Node<WorkItemDomainActionApplyPolicy>;
|
|
124
|
+
}
|
|
125
|
+
interface WorkItemDomainActionApplicationBundle<TInput = unknown> {
|
|
126
|
+
readonly authoringFacts: Node<WorkItemAuthoringFact<TInput>>;
|
|
127
|
+
readonly applications: Node<WorkItemDomainActionApplication>;
|
|
128
|
+
readonly status: Node<WorkItemDomainActionStatus>;
|
|
129
|
+
readonly issues: Node<DataIssue>;
|
|
130
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Product-owned command capability policy (D357): maps WorkItem domain action
|
|
134
|
+
* proposals to explicit boundary capability refs and admission subjects without
|
|
135
|
+
* defining provider/security registry semantics or protocol status vocabulary.
|
|
136
|
+
*/
|
|
137
|
+
interface WorkItemDomainActionCapabilityGuardPolicy {
|
|
138
|
+
readonly kind: "work-item-domain-action-capability-guard-policy";
|
|
139
|
+
readonly policyId: string;
|
|
140
|
+
readonly actionKinds?: readonly WorkItemDomainActionKind[];
|
|
141
|
+
readonly capabilityRefs: readonly BoundaryCapabilityRef[];
|
|
142
|
+
readonly admissionSubjectIds: readonly string[];
|
|
143
|
+
readonly metadata?: Record<string, unknown>;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Visible DATA status for the capability guard (D357). Missing or mismatched
|
|
147
|
+
* capability facts remain product issues/status, not protocol ERROR messages.
|
|
148
|
+
*/
|
|
149
|
+
interface WorkItemDomainActionCapabilityGuardStatus {
|
|
150
|
+
readonly kind: "work-item-domain-action-capability-guard-status";
|
|
151
|
+
readonly statusId: string;
|
|
152
|
+
readonly state: "admitted" | "rejected" | "deferred" | "issue";
|
|
153
|
+
readonly workItemId?: string;
|
|
154
|
+
readonly proposalId?: string;
|
|
155
|
+
readonly actionKind?: string;
|
|
156
|
+
readonly policyId?: string;
|
|
157
|
+
readonly capabilityRefs?: readonly BoundaryCapabilityRef[];
|
|
158
|
+
readonly admissionSubjectIds?: readonly string[];
|
|
159
|
+
readonly admissionIds?: readonly string[];
|
|
160
|
+
readonly issues?: readonly DataIssue[];
|
|
161
|
+
readonly message?: string;
|
|
162
|
+
readonly sourceRefs?: readonly SourceRef[];
|
|
163
|
+
readonly metadata?: Record<string, unknown>;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Inputs for the WorkItem domain-action capability guard. All dependencies are
|
|
167
|
+
* ordinary solution/product DATA facts; the guard does not mutate WorkItems or
|
|
168
|
+
* claim dispatch queues.
|
|
169
|
+
*/
|
|
170
|
+
interface WorkItemDomainActionCapabilityGuardOptions {
|
|
171
|
+
readonly name?: string;
|
|
172
|
+
readonly proposals: Node<WorkItemDomainActionProposal>;
|
|
173
|
+
readonly capabilityAdmissions: Node<CapabilityAdmission>;
|
|
174
|
+
readonly guardPolicies: Node<WorkItemDomainActionCapabilityGuardPolicy>;
|
|
175
|
+
readonly capabilityAdmissionStatus?: Node<CapabilityAdmissionStatus>;
|
|
176
|
+
readonly now?: () => number;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Output facts for product admission consumption. Decisions feed the existing
|
|
180
|
+
* WorkItem domain-action admission path; status/issues/audit remain inspectable
|
|
181
|
+
* product DATA.
|
|
182
|
+
*/
|
|
183
|
+
interface WorkItemDomainActionCapabilityGuardBundle {
|
|
184
|
+
readonly decisions: Node<WorkItemDomainActionAdmissionDecision>;
|
|
185
|
+
readonly status: Node<WorkItemDomainActionCapabilityGuardStatus>;
|
|
186
|
+
readonly issues: Node<DataIssue>;
|
|
187
|
+
readonly audit: Node<AgentRuntimeAuditRecord>;
|
|
188
|
+
}
|
|
189
|
+
declare function workItemDomainActionProposal(proposalId: string, workItemId: string, actionKind: WorkItemDomainActionKind, opts?: Omit<Partial<WorkItemDomainActionProposal>, "kind" | "proposalId" | "workItemId" | "actionKind">): WorkItemDomainActionProposal;
|
|
190
|
+
declare function workItemDomainActionProposalIntake<TPayload = unknown>(proposalId: string, workItemId: string, actionKind: WorkItemDomainActionKind, opts?: Omit<Partial<WorkItemDomainActionProposalIntake<TPayload>>, "kind" | "proposalId" | "workItemId" | "actionKind">): WorkItemDomainActionProposalIntake<TPayload>;
|
|
191
|
+
declare function workItemDomainActionApplyPolicy(policyId: string, opts?: Omit<Partial<WorkItemDomainActionApplyPolicy>, "kind" | "policyId">): WorkItemDomainActionApplyPolicy;
|
|
192
|
+
declare function workItemDomainActionProposalIntakeProjector(graph: Graph, opts: WorkItemDomainActionIntakeOptions): WorkItemDomainActionIntakeBundle;
|
|
193
|
+
declare function workItemDomainActionApplicationProjector<TInput = unknown>(graph: Graph, opts: WorkItemDomainActionApplicationOptions<TInput>): WorkItemDomainActionApplicationBundle<TInput>;
|
|
194
|
+
/**
|
|
195
|
+
* Connects CapabilityAdmission facts to WorkItem domain-action admission as a
|
|
196
|
+
* product-owned guard (D357), without adding protocol/boundary vocabulary or
|
|
197
|
+
* treating AutoPanel display affordances as hard security enforcement.
|
|
198
|
+
*/
|
|
199
|
+
declare function workItemDomainActionCapabilityGuardProjector(graph: Graph, opts: WorkItemDomainActionCapabilityGuardOptions): WorkItemDomainActionCapabilityGuardBundle;
|
|
200
|
+
|
|
201
|
+
export { WorkItemDomainActionAdmission, WorkItemDomainActionAdmissionDecision, type WorkItemDomainActionApplication, type WorkItemDomainActionApplicationBundle, type WorkItemDomainActionApplicationOptions, type WorkItemDomainActionApplyPolicy, type WorkItemDomainActionCapabilityGuardBundle, type WorkItemDomainActionCapabilityGuardOptions, type WorkItemDomainActionCapabilityGuardPolicy, type WorkItemDomainActionCapabilityGuardStatus, type WorkItemDomainActionIntakeBundle, type WorkItemDomainActionIntakeOptions, type WorkItemDomainActionKind, WorkItemDomainActionProposal, type WorkItemDomainActionProposalInput, type WorkItemDomainActionProposalIntake, type WorkItemDomainActionStatus, type WorkItemDomainActionStatusState, type WorkItemPatchActionPayload, type WorkItemSpawnActionPayload, workItemDomainActionApplicationProjector, workItemDomainActionApplyPolicy, workItemDomainActionCapabilityGuardProjector, workItemDomainActionProposal, workItemDomainActionProposalIntake, workItemDomainActionProposalIntakeProjector };
|