process-graph 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/cli.d.ts +61 -7
- package/dist/cli.js +2 -2
- package/dist/{control-aDk9560d.js → control-DiygoEhm.js} +163 -1
- package/dist/{dist-HLlW8vgT.js → dist-BxHnxpcT.js} +178 -23
- package/dist/dist-Cw63tKU9.js +3 -0
- package/dist/{index-CCfe0csl.d.ts → index-BH1aFqkJ.d.ts} +33 -2
- package/dist/{index-DricKcyl.d.ts → index-BUheRLdG.d.ts} +2 -2
- package/dist/{index-DhbvDgK4.d.ts → index-DxWOY8f9.d.ts} +384 -9
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/{open-CyRXJ4bt.js → open-BF-UHqeW.js} +1 -1
- package/dist/{queries-CCexJAE2.js → queries-C8kIDRiY.js} +2 -93
- package/dist/react-flow.d.ts +2 -2
- package/dist/react-flow.js +2 -2
- package/dist/react.d.ts +1 -1
- package/dist/react.js +2 -2
- package/dist/{router-D4gtTlXm.js → router-DvGGLnNt.js} +26 -1
- package/dist/{selection-BW_xXWOy.js → selection-iet5RAlP.js} +1 -1
- package/dist/store/node.d.ts +1 -1
- package/dist/store/node.js +1 -1
- package/dist/store/wasm/worker.js +2 -2
- package/dist/store/wasm.d.ts +1 -1
- package/dist/{store-BcR70CaO.js → store-BJILV4JS.js} +251 -36
- package/dist/store.d.ts +115 -3
- package/dist/store.js +43 -9
- package/dist/ui.d.ts +2 -2
- package/package.json +13 -13
- package/dist/dist-IjrgWhHQ.js +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as IdSpace, a as Overlay, g as Model } from "./index-CmZOswkx.js";
|
|
2
|
-
import { JsonValue, Resolution } from "trilean";
|
|
2
|
+
import { ComputedValue, ExpressionNode, JsonValue, PredicateNode, Resolution } from "trilean";
|
|
3
3
|
//#region ../../core/graph/domain/dist/status.d.ts
|
|
4
4
|
/** The derived states of an element, in the order the derivation considers them. */
|
|
5
5
|
declare const statuses: readonly ["done", "unknown", "skipped", "ready", "blocked"];
|
|
@@ -41,6 +41,37 @@ declare const elementStatusKey: (id: string) => JsonValue;
|
|
|
41
41
|
* @returns The key the port is asked.
|
|
42
42
|
*/
|
|
43
43
|
declare const artefactKey: (id: string) => JsonValue;
|
|
44
|
+
/**
|
|
45
|
+
* What is known from outside the process about one run, as plain data a store can keep: which artefacts are provided, and the values of named facts that conditions read.
|
|
46
|
+
*
|
|
47
|
+
* Each part is three-valued by presence. An artefact mapped to `true` is provided and one mapped to `false` is known not to be; an artefact the record does not name is unknown, which `isProvided` treats as not provided but a condition reading `artefactKey` sees as indeterminate. A named fact holds a trilean value; a name the record does not hold is unknown, so a condition reading it is indeterminate.
|
|
48
|
+
*/
|
|
49
|
+
interface FactRecord {
|
|
50
|
+
/** The artefacts whose provision is known, by artefact id. */
|
|
51
|
+
readonly artefacts: Readonly<Record<string, boolean>>;
|
|
52
|
+
/** The values of named facts, by the name a condition's `reference` node gives as its key. */
|
|
53
|
+
readonly values: Readonly<Record<string, ComputedValue>>;
|
|
54
|
+
}
|
|
55
|
+
/** A record that knows nothing: no artefact is provided and every named fact is unknown. */
|
|
56
|
+
declare const emptyFactRecord: FactRecord;
|
|
57
|
+
/**
|
|
58
|
+
* Adapts a fact record to the `Facts` port. A string key is a named fact, answered with its value when the record holds it; a key built by `artefactKey` is answered with the boolean the record holds for that artefact; every other key, and any name or artefact the record does not hold, is not found.
|
|
59
|
+
* @param record - What is known.
|
|
60
|
+
* @returns A `Facts` port reading the record.
|
|
61
|
+
*/
|
|
62
|
+
declare const factsFrom: (record: FactRecord) => Facts;
|
|
63
|
+
/**
|
|
64
|
+
* The named facts a condition reads: the string key of every `reference` node in it, each once, in the order first met walking the tree depth first. Reserved keys and other non-string keys are not names, so they are left out, and a reference's own key is never searched for further references.
|
|
65
|
+
* @param condition - A trilean predicate or expression, such as a transition's `condition`.
|
|
66
|
+
* @returns The names, each once.
|
|
67
|
+
*/
|
|
68
|
+
declare const factNamesIn: (condition: PredicateNode | ExpressionNode) => readonly string[];
|
|
69
|
+
/**
|
|
70
|
+
* Layers facts ports: each key is answered by the first port that finds it, so an earlier port overrides a later one only where it knows the answer.
|
|
71
|
+
* @param ports - The ports, most authoritative first.
|
|
72
|
+
* @returns A `Facts` port that is not found only when no port finds the key.
|
|
73
|
+
*/
|
|
74
|
+
declare const layeredFacts: (...ports: readonly Facts[]) => Facts;
|
|
44
75
|
/**
|
|
45
76
|
* Thrown when a condition uses a node whose evaluation needs a table or a collection from the facts port, which answers single keys only.
|
|
46
77
|
*/
|
|
@@ -350,4 +381,4 @@ interface UnmetOutput<I extends IdSpace> {
|
|
|
350
381
|
*/
|
|
351
382
|
declare const unmetOutputs: <I extends IdSpace>(model: Model<I>, overlay: Readonly<Overlay<I>>, facts: Facts) => readonly UnmetOutput<I>[];
|
|
352
383
|
//#endregion
|
|
353
|
-
export {
|
|
384
|
+
export { Facts as A, Status as B, CriticalPath as C, UnknownReference as D, NodeId as E, evaluateBranches as F, factNamesIn as I, factsFrom as L, artefactKey as M, elementStatusKey as N, buildDag as O, emptyFactRecord as P, layeredFacts as R, loopTransitions as S, Dag as T, statuses as V, StatusRule as _, criticalPath as a, controlDag as b, unmetOutputs as c, StatusExplanation as d, explainStatus as f, StatusBasis as g, ProducerBasis as h, blockedBy as i, UnsupportedConditionError as j, FactRecord as k, whatIfDone as l, IncomingBasis as m, UnmetOutput as n, impact as o, ArtefactBasis as p, WhatIf as r, readySet as s, StatusChange as t, ChainLink as u, deriveStatuses as v, criticalPath$1 as w, illegalCycles as x, statusRules as y, Branch as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as Facts, B as Status, C as CriticalPath, _ as StatusRule, d as StatusExplanation, u as ChainLink } from "./index-BH1aFqkJ.js";
|
|
2
2
|
import { G as IdSpace, O as Projection, a as Overlay, g as Model, x as Element } from "./index-CmZOswkx.js";
|
|
3
|
-
import {
|
|
3
|
+
import { K as StoredModel, ut as GraphStoreClient } from "./index-DxWOY8f9.js";
|
|
4
4
|
import { A as Flowchart, E as Swimlane, g as SequenceDiagram, x as StateMachine } from "./index-CoA6vXqe.js";
|
|
5
5
|
import { KeyboardEvent, ReactElement, ReactNode, RefCallback } from "react";
|
|
6
6
|
//#region ../../ui/graph/react/dist/run.d.ts
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { k as FactRecord } from "./index-BH1aFqkJ.js";
|
|
1
2
|
import { K as OpenIds, a as Overlay, d as Issue, g as Model } from "./index-CmZOswkx.js";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
import { ContractRouterClient } from "@orpc/contract";
|
|
@@ -440,6 +441,38 @@ declare const graphStoreContract: {
|
|
|
440
441
|
open: "open";
|
|
441
442
|
unknown: "unknown";
|
|
442
443
|
}>>>;
|
|
444
|
+
facts: z.ZodReadonly<z.ZodObject<{
|
|
445
|
+
artefacts: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
446
|
+
values: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
447
|
+
kind: z.ZodLiteral<"number">;
|
|
448
|
+
value: z.ZodNumber;
|
|
449
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
450
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
451
|
+
kind: z.ZodLiteral<"text">;
|
|
452
|
+
value: z.ZodString;
|
|
453
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
454
|
+
kind: z.ZodLiteral<"boolean">;
|
|
455
|
+
value: z.ZodBoolean;
|
|
456
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
457
|
+
kind: z.ZodLiteral<"instant">;
|
|
458
|
+
value: z.ZodString;
|
|
459
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
460
|
+
kind: z.ZodLiteral<"duration">;
|
|
461
|
+
value: z.ZodNumber;
|
|
462
|
+
unit: z.ZodEnum<{
|
|
463
|
+
ms: "ms";
|
|
464
|
+
s: "s";
|
|
465
|
+
min: "min";
|
|
466
|
+
h: "h";
|
|
467
|
+
d: "d";
|
|
468
|
+
}>;
|
|
469
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
470
|
+
kind: z.ZodLiteral<"complex">;
|
|
471
|
+
re: z.ZodNumber;
|
|
472
|
+
im: z.ZodNumber;
|
|
473
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
474
|
+
}, z.core.$strip>], "kind">>>;
|
|
475
|
+
}, z.core.$strict>>;
|
|
443
476
|
}, z.core.$strict>>, Omit<{
|
|
444
477
|
NOT_FOUND: {
|
|
445
478
|
message: string;
|
|
@@ -513,6 +546,145 @@ declare const graphStoreContract: {
|
|
|
513
546
|
};
|
|
514
547
|
}, never> & object>;
|
|
515
548
|
};
|
|
549
|
+
facts: {
|
|
550
|
+
read: import("@orpc/contract").ProcedureContract<z.ZodReadonly<z.ZodObject<{
|
|
551
|
+
modelId: z.ZodString;
|
|
552
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
553
|
+
modelId: z.ZodString;
|
|
554
|
+
revision: z.ZodInt;
|
|
555
|
+
facts: z.ZodReadonly<z.ZodObject<{
|
|
556
|
+
artefacts: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
557
|
+
values: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
558
|
+
kind: z.ZodLiteral<"number">;
|
|
559
|
+
value: z.ZodNumber;
|
|
560
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
561
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
562
|
+
kind: z.ZodLiteral<"text">;
|
|
563
|
+
value: z.ZodString;
|
|
564
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
565
|
+
kind: z.ZodLiteral<"boolean">;
|
|
566
|
+
value: z.ZodBoolean;
|
|
567
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
568
|
+
kind: z.ZodLiteral<"instant">;
|
|
569
|
+
value: z.ZodString;
|
|
570
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
571
|
+
kind: z.ZodLiteral<"duration">;
|
|
572
|
+
value: z.ZodNumber;
|
|
573
|
+
unit: z.ZodEnum<{
|
|
574
|
+
ms: "ms";
|
|
575
|
+
s: "s";
|
|
576
|
+
min: "min";
|
|
577
|
+
h: "h";
|
|
578
|
+
d: "d";
|
|
579
|
+
}>;
|
|
580
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
581
|
+
kind: z.ZodLiteral<"complex">;
|
|
582
|
+
re: z.ZodNumber;
|
|
583
|
+
im: z.ZodNumber;
|
|
584
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
585
|
+
}, z.core.$strip>], "kind">>>;
|
|
586
|
+
}, z.core.$strict>>;
|
|
587
|
+
}, z.core.$strict>>, Omit<{
|
|
588
|
+
NOT_FOUND: {
|
|
589
|
+
message: string;
|
|
590
|
+
data: z.ZodObject<{
|
|
591
|
+
modelId: z.ZodString;
|
|
592
|
+
element: z.ZodExactOptional<z.ZodString>;
|
|
593
|
+
}, z.core.$strict>;
|
|
594
|
+
};
|
|
595
|
+
UNPROCESSABLE_CONTENT: {
|
|
596
|
+
message: string;
|
|
597
|
+
data: z.ZodObject<{
|
|
598
|
+
issues: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
599
|
+
code: z.ZodString;
|
|
600
|
+
message: z.ZodString;
|
|
601
|
+
}, z.core.$strict>>>>;
|
|
602
|
+
}, z.core.$strict>;
|
|
603
|
+
};
|
|
604
|
+
}, never> & object>;
|
|
605
|
+
set: import("@orpc/contract").ProcedureContract<z.ZodReadonly<z.ZodObject<{
|
|
606
|
+
modelId: z.ZodString;
|
|
607
|
+
facts: z.ZodReadonly<z.ZodObject<{
|
|
608
|
+
artefacts: z.ZodExactOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodBoolean>>>;
|
|
609
|
+
values: z.ZodExactOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
610
|
+
kind: z.ZodLiteral<"number">;
|
|
611
|
+
value: z.ZodNumber;
|
|
612
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
613
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
614
|
+
kind: z.ZodLiteral<"text">;
|
|
615
|
+
value: z.ZodString;
|
|
616
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
617
|
+
kind: z.ZodLiteral<"boolean">;
|
|
618
|
+
value: z.ZodBoolean;
|
|
619
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
620
|
+
kind: z.ZodLiteral<"instant">;
|
|
621
|
+
value: z.ZodString;
|
|
622
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
623
|
+
kind: z.ZodLiteral<"duration">;
|
|
624
|
+
value: z.ZodNumber;
|
|
625
|
+
unit: z.ZodEnum<{
|
|
626
|
+
ms: "ms";
|
|
627
|
+
s: "s";
|
|
628
|
+
min: "min";
|
|
629
|
+
h: "h";
|
|
630
|
+
d: "d";
|
|
631
|
+
}>;
|
|
632
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
633
|
+
kind: z.ZodLiteral<"complex">;
|
|
634
|
+
re: z.ZodNumber;
|
|
635
|
+
im: z.ZodNumber;
|
|
636
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
637
|
+
}, z.core.$strip>], "kind">>>>;
|
|
638
|
+
}, z.core.$strict>>;
|
|
639
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
640
|
+
revision: z.ZodInt;
|
|
641
|
+
}, z.core.$strict>>, Omit<{
|
|
642
|
+
NOT_FOUND: {
|
|
643
|
+
message: string;
|
|
644
|
+
data: z.ZodObject<{
|
|
645
|
+
modelId: z.ZodString;
|
|
646
|
+
element: z.ZodExactOptional<z.ZodString>;
|
|
647
|
+
}, z.core.$strict>;
|
|
648
|
+
};
|
|
649
|
+
UNPROCESSABLE_CONTENT: {
|
|
650
|
+
message: string;
|
|
651
|
+
data: z.ZodObject<{
|
|
652
|
+
issues: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
653
|
+
code: z.ZodString;
|
|
654
|
+
message: z.ZodString;
|
|
655
|
+
}, z.core.$strict>>>>;
|
|
656
|
+
}, z.core.$strict>;
|
|
657
|
+
};
|
|
658
|
+
}, never> & object>;
|
|
659
|
+
clear: import("@orpc/contract").ProcedureContract<z.ZodReadonly<z.ZodObject<{
|
|
660
|
+
modelId: z.ZodString;
|
|
661
|
+
facts: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
662
|
+
artefacts: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
663
|
+
values: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
664
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
665
|
+
all: z.ZodLiteral<true>;
|
|
666
|
+
}, z.core.$strict>>]>;
|
|
667
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
668
|
+
revision: z.ZodInt;
|
|
669
|
+
}, z.core.$strict>>, Omit<{
|
|
670
|
+
NOT_FOUND: {
|
|
671
|
+
message: string;
|
|
672
|
+
data: z.ZodObject<{
|
|
673
|
+
modelId: z.ZodString;
|
|
674
|
+
element: z.ZodExactOptional<z.ZodString>;
|
|
675
|
+
}, z.core.$strict>;
|
|
676
|
+
};
|
|
677
|
+
UNPROCESSABLE_CONTENT: {
|
|
678
|
+
message: string;
|
|
679
|
+
data: z.ZodObject<{
|
|
680
|
+
issues: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
681
|
+
code: z.ZodString;
|
|
682
|
+
message: z.ZodString;
|
|
683
|
+
}, z.core.$strict>>>>;
|
|
684
|
+
}, z.core.$strict>;
|
|
685
|
+
};
|
|
686
|
+
}, never> & object>;
|
|
687
|
+
};
|
|
516
688
|
items: {
|
|
517
689
|
upsert: import("@orpc/contract").ProcedureContract<z.ZodReadonly<z.ZodObject<{
|
|
518
690
|
modelId: z.ZodString;
|
|
@@ -836,14 +1008,14 @@ declare const graphStoreContract: {
|
|
|
836
1008
|
since: z.ZodExactOptional<z.ZodInt>;
|
|
837
1009
|
}, z.core.$strict>>, import("@orpc/contract").Schema<AsyncIteratorObject<Readonly<{
|
|
838
1010
|
modelId: string;
|
|
839
|
-
kind: "overlay" | "saved" | "items" | "deleted";
|
|
1011
|
+
kind: "overlay" | "facts" | "saved" | "items" | "deleted";
|
|
840
1012
|
revision: number;
|
|
841
1013
|
}> | Readonly<{
|
|
842
1014
|
modelId: string;
|
|
843
1015
|
kind: "missed";
|
|
844
1016
|
}>, unknown, void>, import("@orpc/server").AsyncIteratorClass<Readonly<{
|
|
845
1017
|
modelId: string;
|
|
846
|
-
kind: "overlay" | "saved" | "items" | "deleted";
|
|
1018
|
+
kind: "overlay" | "facts" | "saved" | "items" | "deleted";
|
|
847
1019
|
revision: number;
|
|
848
1020
|
}> | Readonly<{
|
|
849
1021
|
modelId: string;
|
|
@@ -1021,7 +1193,44 @@ declare const boundItemsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1021
1193
|
to: z.ZodString;
|
|
1022
1194
|
}, z.core.$strict>>>>>;
|
|
1023
1195
|
}, z.core.$strict>>;
|
|
1024
|
-
/**
|
|
1196
|
+
/** The name of a fact a condition reads: the string key of its `reference` node. */
|
|
1197
|
+
declare const factNameSchema: z.ZodString;
|
|
1198
|
+
/**
|
|
1199
|
+
* What is known from outside the process about one model's run, kept beside its overlay: which artefacts are provided (`true`) or known not to be (`false`), by artefact id, and the trilean value of each named fact, by name. What the record does not name is unknown. It is graph-domain's `FactRecord`, which `factsFrom` adapts to the `Facts` port the reasoning reads.
|
|
1200
|
+
*/
|
|
1201
|
+
declare const factRecordSchema: z.ZodReadonly<z.ZodObject<{
|
|
1202
|
+
artefacts: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1203
|
+
values: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1204
|
+
kind: z.ZodLiteral<"number">;
|
|
1205
|
+
value: z.ZodNumber;
|
|
1206
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1208
|
+
kind: z.ZodLiteral<"text">;
|
|
1209
|
+
value: z.ZodString;
|
|
1210
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1211
|
+
kind: z.ZodLiteral<"boolean">;
|
|
1212
|
+
value: z.ZodBoolean;
|
|
1213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1214
|
+
kind: z.ZodLiteral<"instant">;
|
|
1215
|
+
value: z.ZodString;
|
|
1216
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1217
|
+
kind: z.ZodLiteral<"duration">;
|
|
1218
|
+
value: z.ZodNumber;
|
|
1219
|
+
unit: z.ZodEnum<{
|
|
1220
|
+
ms: "ms";
|
|
1221
|
+
s: "s";
|
|
1222
|
+
min: "min";
|
|
1223
|
+
h: "h";
|
|
1224
|
+
d: "d";
|
|
1225
|
+
}>;
|
|
1226
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1227
|
+
kind: z.ZodLiteral<"complex">;
|
|
1228
|
+
re: z.ZodNumber;
|
|
1229
|
+
im: z.ZodNumber;
|
|
1230
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1231
|
+
}, z.core.$strip>], "kind">>>;
|
|
1232
|
+
}, z.core.$strict>>;
|
|
1233
|
+
/** One stored model, the run state laid over it and the facts known about its run, at the revision of its last change. */
|
|
1025
1234
|
declare const storedModelSchema: z.ZodReadonly<z.ZodObject<{
|
|
1026
1235
|
modelId: z.ZodString;
|
|
1027
1236
|
revision: z.ZodInt;
|
|
@@ -1220,7 +1429,120 @@ declare const storedModelSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1220
1429
|
open: "open";
|
|
1221
1430
|
unknown: "unknown";
|
|
1222
1431
|
}>>>;
|
|
1432
|
+
facts: z.ZodReadonly<z.ZodObject<{
|
|
1433
|
+
artefacts: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1434
|
+
values: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1435
|
+
kind: z.ZodLiteral<"number">;
|
|
1436
|
+
value: z.ZodNumber;
|
|
1437
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1438
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1439
|
+
kind: z.ZodLiteral<"text">;
|
|
1440
|
+
value: z.ZodString;
|
|
1441
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1442
|
+
kind: z.ZodLiteral<"boolean">;
|
|
1443
|
+
value: z.ZodBoolean;
|
|
1444
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1445
|
+
kind: z.ZodLiteral<"instant">;
|
|
1446
|
+
value: z.ZodString;
|
|
1447
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1448
|
+
kind: z.ZodLiteral<"duration">;
|
|
1449
|
+
value: z.ZodNumber;
|
|
1450
|
+
unit: z.ZodEnum<{
|
|
1451
|
+
ms: "ms";
|
|
1452
|
+
s: "s";
|
|
1453
|
+
min: "min";
|
|
1454
|
+
h: "h";
|
|
1455
|
+
d: "d";
|
|
1456
|
+
}>;
|
|
1457
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1458
|
+
kind: z.ZodLiteral<"complex">;
|
|
1459
|
+
re: z.ZodNumber;
|
|
1460
|
+
im: z.ZodNumber;
|
|
1461
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1462
|
+
}, z.core.$strip>], "kind">>>;
|
|
1463
|
+
}, z.core.$strict>>;
|
|
1464
|
+
}, z.core.$strict>>;
|
|
1465
|
+
/** A model's fact record at the revision of the model's last change. */
|
|
1466
|
+
declare const storedFactsSchema: z.ZodReadonly<z.ZodObject<{
|
|
1467
|
+
modelId: z.ZodString;
|
|
1468
|
+
revision: z.ZodInt;
|
|
1469
|
+
facts: z.ZodReadonly<z.ZodObject<{
|
|
1470
|
+
artefacts: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1471
|
+
values: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1472
|
+
kind: z.ZodLiteral<"number">;
|
|
1473
|
+
value: z.ZodNumber;
|
|
1474
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1475
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1476
|
+
kind: z.ZodLiteral<"text">;
|
|
1477
|
+
value: z.ZodString;
|
|
1478
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1479
|
+
kind: z.ZodLiteral<"boolean">;
|
|
1480
|
+
value: z.ZodBoolean;
|
|
1481
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1482
|
+
kind: z.ZodLiteral<"instant">;
|
|
1483
|
+
value: z.ZodString;
|
|
1484
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1485
|
+
kind: z.ZodLiteral<"duration">;
|
|
1486
|
+
value: z.ZodNumber;
|
|
1487
|
+
unit: z.ZodEnum<{
|
|
1488
|
+
ms: "ms";
|
|
1489
|
+
s: "s";
|
|
1490
|
+
min: "min";
|
|
1491
|
+
h: "h";
|
|
1492
|
+
d: "d";
|
|
1493
|
+
}>;
|
|
1494
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1495
|
+
kind: z.ZodLiteral<"complex">;
|
|
1496
|
+
re: z.ZodNumber;
|
|
1497
|
+
im: z.ZodNumber;
|
|
1498
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1499
|
+
}, z.core.$strip>], "kind">>>;
|
|
1500
|
+
}, z.core.$strict>>;
|
|
1501
|
+
}, z.core.$strict>>;
|
|
1502
|
+
/**
|
|
1503
|
+
* Facts to record for a model: each artefact's provision and each named fact's value replaces what the record held for it, and everything the change does not name is kept. Every artefact must be one the model declares.
|
|
1504
|
+
*/
|
|
1505
|
+
declare const factChangeSchema: z.ZodReadonly<z.ZodObject<{
|
|
1506
|
+
artefacts: z.ZodExactOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodBoolean>>>;
|
|
1507
|
+
values: z.ZodExactOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1508
|
+
kind: z.ZodLiteral<"number">;
|
|
1509
|
+
value: z.ZodNumber;
|
|
1510
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1512
|
+
kind: z.ZodLiteral<"text">;
|
|
1513
|
+
value: z.ZodString;
|
|
1514
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1515
|
+
kind: z.ZodLiteral<"boolean">;
|
|
1516
|
+
value: z.ZodBoolean;
|
|
1517
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1518
|
+
kind: z.ZodLiteral<"instant">;
|
|
1519
|
+
value: z.ZodString;
|
|
1520
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1521
|
+
kind: z.ZodLiteral<"duration">;
|
|
1522
|
+
value: z.ZodNumber;
|
|
1523
|
+
unit: z.ZodEnum<{
|
|
1524
|
+
ms: "ms";
|
|
1525
|
+
s: "s";
|
|
1526
|
+
min: "min";
|
|
1527
|
+
h: "h";
|
|
1528
|
+
d: "d";
|
|
1529
|
+
}>;
|
|
1530
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1531
|
+
kind: z.ZodLiteral<"complex">;
|
|
1532
|
+
re: z.ZodNumber;
|
|
1533
|
+
im: z.ZodNumber;
|
|
1534
|
+
unit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1535
|
+
}, z.core.$strip>], "kind">>>>;
|
|
1223
1536
|
}, z.core.$strict>>;
|
|
1537
|
+
/**
|
|
1538
|
+
* Facts to forget, so they are unknown again: either the named artefacts and named facts, or, with `all`, the whole record. A name the record does not hold is ignored.
|
|
1539
|
+
*/
|
|
1540
|
+
declare const factClearingSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
1541
|
+
artefacts: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1542
|
+
values: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1543
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1544
|
+
all: z.ZodLiteral<true>;
|
|
1545
|
+
}, z.core.$strict>>]>;
|
|
1224
1546
|
/** A stored model's name and the revision of its last change. */
|
|
1225
1547
|
declare const modelSummarySchema: z.ZodReadonly<z.ZodObject<{
|
|
1226
1548
|
modelId: z.ZodString;
|
|
@@ -1232,7 +1554,7 @@ declare const reachSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1232
1554
|
distance: z.ZodInt;
|
|
1233
1555
|
}, z.core.$strict>>;
|
|
1234
1556
|
/** The kinds of change a store reports. */
|
|
1235
|
-
declare const changeKinds: readonly ["saved", "overlay", "items", "deleted"];
|
|
1557
|
+
declare const changeKinds: readonly ["saved", "overlay", "items", "facts", "deleted"];
|
|
1236
1558
|
/**
|
|
1237
1559
|
* A change to a model. `revision` is the revision the change took. `missed` says the subscriber missed one or more changes and should load the model again: it is sent at the start of a subscription that names a revision the model is no longer at (the model changed, or has gone), and in place of the changes a subscriber that reads too slowly has let pile up beyond its subscription's capacity.
|
|
1238
1560
|
*/
|
|
@@ -1240,6 +1562,7 @@ declare const storeChangeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<
|
|
|
1240
1562
|
modelId: z.ZodString;
|
|
1241
1563
|
kind: z.ZodEnum<{
|
|
1242
1564
|
overlay: "overlay";
|
|
1565
|
+
facts: "facts";
|
|
1243
1566
|
saved: "saved";
|
|
1244
1567
|
items: "items";
|
|
1245
1568
|
deleted: "deleted";
|
|
@@ -1261,6 +1584,9 @@ type BoundItems = z.infer<typeof boundItemsSchema>;
|
|
|
1261
1584
|
type Relation = z.infer<typeof relationSchema>;
|
|
1262
1585
|
type RelationKind = (typeof relationKinds)[number];
|
|
1263
1586
|
type StoredModel = z.infer<typeof storedModelSchema>;
|
|
1587
|
+
type StoredFacts = z.infer<typeof storedFactsSchema>;
|
|
1588
|
+
type FactChange = z.infer<typeof factChangeSchema>;
|
|
1589
|
+
type FactClearing = z.infer<typeof factClearingSchema>;
|
|
1264
1590
|
type ModelSummary = z.infer<typeof modelSummarySchema>;
|
|
1265
1591
|
type Reach = z.infer<typeof reachSchema>;
|
|
1266
1592
|
type ChangeKind = (typeof changeKinds)[number];
|
|
@@ -1372,19 +1698,19 @@ interface GraphStore {
|
|
|
1372
1698
|
readonly signal: AbortSignal | undefined;
|
|
1373
1699
|
}) => Promise<readonly ModelSummary[]>;
|
|
1374
1700
|
/**
|
|
1375
|
-
* Stores a model under an id, replacing any model stored there and dropping the run state and
|
|
1701
|
+
* Stores a model under an id, replacing any model stored there and dropping the run state, relations and artefact facts of what the new model does not declare (see `overlayWithin`, `relationsWithin` and `factsWithin`).
|
|
1376
1702
|
* @returns The revision the save took.
|
|
1377
1703
|
*/
|
|
1378
1704
|
readonly saveModel: (request: ModelRequest & {
|
|
1379
1705
|
readonly model: Model<OpenIds>;
|
|
1380
1706
|
}) => Promise<Revision>;
|
|
1381
1707
|
/**
|
|
1382
|
-
* Reads a model back exactly as saved or merged, in its declared order, with its run state.
|
|
1383
|
-
* @returns The model, its overlay and its revision.
|
|
1708
|
+
* Reads a model back exactly as saved or merged, in its declared order, with its run state and its fact record.
|
|
1709
|
+
* @returns The model, its overlay, its facts and its revision.
|
|
1384
1710
|
*/
|
|
1385
1711
|
readonly loadModel: (request: ModelRequest) => Promise<StoredModel>;
|
|
1386
1712
|
/**
|
|
1387
|
-
* Removes a model, its run state and its
|
|
1713
|
+
* Removes a model, its run state, its relations and its facts.
|
|
1388
1714
|
* @returns The revision the deletion took, or `undefined` when there was no such model and nothing changed.
|
|
1389
1715
|
*/
|
|
1390
1716
|
readonly deleteModel: (request: ModelRequest) => Promise<Revision | undefined>;
|
|
@@ -1395,6 +1721,25 @@ interface GraphStore {
|
|
|
1395
1721
|
readonly applyOverlay: (request: ModelRequest & {
|
|
1396
1722
|
readonly overlay: Overlay<OpenIds>;
|
|
1397
1723
|
}) => Promise<Revision>;
|
|
1724
|
+
/**
|
|
1725
|
+
* A model's fact record.
|
|
1726
|
+
* @returns The record and the model's revision.
|
|
1727
|
+
*/
|
|
1728
|
+
readonly readFacts: (request: ModelRequest) => Promise<StoredFacts>;
|
|
1729
|
+
/**
|
|
1730
|
+
* Records facts about a model's run (see `mergeFacts`). Every artefact named must be one the model declares (`factIssues`); otherwise nothing is written.
|
|
1731
|
+
* @returns The revision the change took.
|
|
1732
|
+
*/
|
|
1733
|
+
readonly setFacts: (request: ModelRequest & {
|
|
1734
|
+
readonly facts: FactChange;
|
|
1735
|
+
}) => Promise<Revision>;
|
|
1736
|
+
/**
|
|
1737
|
+
* Forgets facts about a model's run, so what they named is unknown again (see `withoutFacts`).
|
|
1738
|
+
* @returns The revision the change took.
|
|
1739
|
+
*/
|
|
1740
|
+
readonly clearFacts: (request: ModelRequest & {
|
|
1741
|
+
readonly facts: FactClearing;
|
|
1742
|
+
}) => Promise<Revision>;
|
|
1398
1743
|
/**
|
|
1399
1744
|
* Merges items read from a source into a model by id (see `mergeBoundItems`), and adds their relations (see `mergeRelations`), creating the model from an empty one when it does not exist. Every relation stored must name what the merged model declares (`relationIssues`); otherwise nothing is written.
|
|
1400
1745
|
* @returns The revision the change took.
|
|
@@ -1473,6 +1818,36 @@ declare const overlayWithin: (model: Model<OpenIds>, overlay: Overlay<OpenIds>)
|
|
|
1473
1818
|
*/
|
|
1474
1819
|
declare const checkStored: (model: Model<OpenIds>, overlay: Overlay<OpenIds>) => void;
|
|
1475
1820
|
//#endregion
|
|
1821
|
+
//#region ../../core/graph/store-contract/dist/facts.d.ts
|
|
1822
|
+
/**
|
|
1823
|
+
* Keeps only the artefact entries of a record that name an artefact the model declares, so replacing a model drops what was known about artefacts it no longer has. Named facts belong to the run rather than to any record of the model, so they are all kept.
|
|
1824
|
+
* @param model - The model the record is for.
|
|
1825
|
+
* @param facts - The record to narrow.
|
|
1826
|
+
* @returns The record with its artefacts narrowed to the model's.
|
|
1827
|
+
*/
|
|
1828
|
+
declare const factsWithin: (model: Model<OpenIds>, facts: FactRecord) => FactRecord;
|
|
1829
|
+
/**
|
|
1830
|
+
* Applies a change to a record: each artefact and named fact the change gives replaces what the record held for it, and the rest is kept. The result is not checked; see `factIssues`.
|
|
1831
|
+
* @param facts - The stored record.
|
|
1832
|
+
* @param change - The facts to record.
|
|
1833
|
+
* @returns The merged record.
|
|
1834
|
+
*/
|
|
1835
|
+
declare const mergeFacts: (facts: FactRecord, change: FactChange) => FactRecord;
|
|
1836
|
+
/**
|
|
1837
|
+
* Forgets facts, so what they named is unknown again: the whole record with `all`, otherwise the named artefacts and named facts. A name the record does not hold is ignored.
|
|
1838
|
+
* @param facts - The stored record.
|
|
1839
|
+
* @param clearing - What to forget.
|
|
1840
|
+
* @returns The record without what was forgotten.
|
|
1841
|
+
*/
|
|
1842
|
+
declare const withoutFacts: (facts: FactRecord, clearing: FactClearing) => FactRecord;
|
|
1843
|
+
/**
|
|
1844
|
+
* The issues with a change to a model's facts: an artefact the model does not declare is an `unknown-reference`, as an unknown reference anywhere else in a model is. Named facts are free names, since any `reference` key in a condition may read one.
|
|
1845
|
+
* @param model - The model the facts are for.
|
|
1846
|
+
* @param change - The facts to record.
|
|
1847
|
+
* @returns One issue per undeclared artefact, empty when every artefact resolves.
|
|
1848
|
+
*/
|
|
1849
|
+
declare const factIssues: (model: Model<OpenIds>, change: FactChange) => readonly Issue[];
|
|
1850
|
+
//#endregion
|
|
1476
1851
|
//#region ../../core/graph/store-contract/dist/hierarchy.d.ts
|
|
1477
1852
|
/**
|
|
1478
1853
|
* Adds relations to a stored list: one already there is kept in its place, and a new one is appended in its incoming order, each distinct relation once.
|
|
@@ -1579,4 +1954,4 @@ type GraphStoreRouter = ContractedRouter<typeof graphStoreContract, object>;
|
|
|
1579
1954
|
*/
|
|
1580
1955
|
declare const createFakeGraphStore: () => GraphStore;
|
|
1581
1956
|
//#endregion
|
|
1582
|
-
export {
|
|
1957
|
+
export { factRecordSchema as $, defaultSubscriptionCapacity as A, Reach as B, ElementRequest as C, ChangeFeedOptions as D, ChangeFeed as E, ChangeKind as F, StoredFacts as G, RelationKind as H, FactChange as I, boundItemsSchema as J, StoredModel as K, FactClearing as L, GraphStoreFailure as M, BoundActivity as N, ChangeSubscription as O, BoundItems as P, factNameSchema as Q, ModelId as R, overlayWithin as S, ModelRequest as T, Revision as U, Relation as V, StoreChange as W, factChangeSchema as X, changeKinds as Y, factClearingSchema as Z, mergeFacts as _, blockedChainOf as a, relationSchema as at, emptyModel as b, structureOf as c, storedFactsSchema as ct, descendantsOf as d, graphStoreContract as dt, issueSchema as et, mergeRelations as f, factsWithin as g, factIssues as h, Structure as i, relationKinds as it, GraphStoreError as j, SubscribeOptions as k, ancestorsOf as l, storedModelSchema as lt, relationsWithin as m, GraphStoreRouter as n, modelSummarySchema as nt, impactOf as o, revisionSchema as ot, relationIssues as p, boundActivitySchema as q, createGraphStoreRouter as r, reachSchema as rt, readyOf as s, storeChangeSchema as st, createFakeGraphStore as t, modelIdSchema as tt, childrenOf as u, GraphStoreClient as ut, withoutFacts as v, GraphStore as w, mergeBoundItems as x, checkStored as y, ModelSummary as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as Facts, B as Status, C as CriticalPath, D as UnknownReference, E as NodeId, F as evaluateBranches, I as factNamesIn, L as factsFrom, M as artefactKey, N as elementStatusKey, O as buildDag, P as emptyFactRecord, R as layeredFacts, S as loopTransitions, T as Dag, V as statuses, _ as StatusRule, a as criticalPath, b as controlDag, c as unmetOutputs, d as StatusExplanation, f as explainStatus, g as StatusBasis, h as ProducerBasis, i as blockedBy, j as UnsupportedConditionError, k as FactRecord, l as whatIfDone, m as IncomingBasis, n as UnmetOutput, o as impact, p as ArtefactBasis, r as WhatIf, s as readySet, t as StatusChange, u as ChainLink, v as deriveStatuses, w as criticalPath$1, x as illegalCycles, y as statusRules, z as Branch } from "./index-BH1aFqkJ.js";
|
|
2
2
|
import { A as Views, B as messageModes, C as Extensions, D as Point, E as Participant, F as OverlayStatus, G as IdSpace, H as overlayStatuses, I as ParticipantKind, K as OpenIds, L as PseudoRole, M as FragmentOperator, N as MessageMode, O as Projection, P as Notation, R as elementKinds, S as EventDef, T as FragmentOperand, U as participantKinds, V as notations, W as pseudoRoles, _ as ModelParts, a as Overlay, b as ArtefactDef, c as overlaySchema, d as Issue, f as IssueCode, g as Model, h as outputsOf, i as modelSchema, j as ElementKind, k as Transition, l as parseOverlay, m as inputsOf, n as ModelParseError, o as OverlayIssue, p as validate, r as parseModel, s as OverlayParseError, t as ModelIssue, u as validateOverlay, v as defineModel, w as Fragment, x as Element, y as ActionDef, z as fragmentOperators } from "./index-CmZOswkx.js";
|
|
3
3
|
import { A as Flowchart, C as StateMachineTransition, D as toSwimlane, E as Swimlane, F as UnrepresentedElement, I as UnrepresentedKind, M as Handoff, N as handoffs, O as FlowEdge, P as Loss, S as StateMachineState, T as Lane, _ as SequenceItem, a as Addressing, b as toSequence, c as Ends, d as TransitionChange, f as TransitionFieldChange, g as SequenceDiagram, h as confirmChanges, i as diffSwimlane, j as toFlowchart, k as FlowNode, l as EventChange, m as applyModelDiff, n as diffStateMachine, o as Change, p as UnconfirmedChangeError, r as diffFlowchart, s as ElementChange, t as diffSequence, u as ModelDiff, v as SequenceMessage, w as toStateMachine, x as StateMachine, y as SequenceOperand } from "./index-CoA6vXqe.js";
|
|
4
4
|
//#region ../../core/graph/dag/dist/errors.d.ts
|
|
@@ -108,4 +108,4 @@ declare namespace index_d_exports {
|
|
|
108
108
|
export { CriticalPath, CycleError, Dag, NodeId, TopologicalLayers, UnknownNodeError, UnknownReference, ancestorsOf, buildDag, criticalPath$1 as criticalPath, descendantsOf, findCycles, immediateDominators, stronglyConnectedComponents, topologicalLayers, transitiveReduction };
|
|
109
109
|
}
|
|
110
110
|
//#endregion
|
|
111
|
-
export { type ActionDef, type Addressing, type ArtefactBasis, type ArtefactDef, type Branch, type ChainLink, type Change, type Element, type ElementChange, type ElementKind, type Ends, type EventChange, type EventDef, type Extensions, type Facts, type FlowEdge, type FlowNode, type Flowchart, type Fragment, type FragmentOperand, type FragmentOperator, type Handoff, type IdSpace, type IncomingBasis, type Issue, type IssueCode, type Lane, type Loss, type MessageMode, type Model, type ModelDiff, type ModelIssue, ModelParseError, type ModelParts, type Notation, type OpenIds, type Overlay, type OverlayIssue, OverlayParseError, type OverlayStatus, type Participant, type ParticipantKind, type Point, type ProducerBasis, type Projection, type PseudoRole, type SequenceDiagram, type SequenceItem, type SequenceMessage, type SequenceOperand, type StateMachine, type StateMachineState, type StateMachineTransition, type Status, type StatusBasis, type StatusChange, type StatusExplanation, type StatusRule, type Swimlane, type Transition, type TransitionChange, type TransitionFieldChange, UnconfirmedChangeError, type UnmetOutput, type UnrepresentedElement, type UnrepresentedKind, UnsupportedConditionError, type Views, type WhatIf, applyModelDiff, artefactKey, blockedBy, confirmChanges, controlDag, criticalPath, index_d_exports as dag, defineModel, deriveStatuses, diffFlowchart, diffSequence, diffStateMachine, diffSwimlane, elementKinds, elementStatusKey, evaluateBranches, explainStatus, fragmentOperators, handoffs, illegalCycles, impact, inputsOf, loopTransitions, messageModes, modelSchema, notations, outputsOf, overlaySchema, overlayStatuses, parseModel, parseOverlay, participantKinds, pseudoRoles, readySet, statusRules, statuses, toFlowchart, toSequence, toStateMachine, toSwimlane, unmetOutputs, validate, validateOverlay, whatIfDone };
|
|
111
|
+
export { type ActionDef, type Addressing, type ArtefactBasis, type ArtefactDef, type Branch, type ChainLink, type Change, type Element, type ElementChange, type ElementKind, type Ends, type EventChange, type EventDef, type Extensions, type FactRecord, type Facts, type FlowEdge, type FlowNode, type Flowchart, type Fragment, type FragmentOperand, type FragmentOperator, type Handoff, type IdSpace, type IncomingBasis, type Issue, type IssueCode, type Lane, type Loss, type MessageMode, type Model, type ModelDiff, type ModelIssue, ModelParseError, type ModelParts, type Notation, type OpenIds, type Overlay, type OverlayIssue, OverlayParseError, type OverlayStatus, type Participant, type ParticipantKind, type Point, type ProducerBasis, type Projection, type PseudoRole, type SequenceDiagram, type SequenceItem, type SequenceMessage, type SequenceOperand, type StateMachine, type StateMachineState, type StateMachineTransition, type Status, type StatusBasis, type StatusChange, type StatusExplanation, type StatusRule, type Swimlane, type Transition, type TransitionChange, type TransitionFieldChange, UnconfirmedChangeError, type UnmetOutput, type UnrepresentedElement, type UnrepresentedKind, UnsupportedConditionError, type Views, type WhatIf, applyModelDiff, artefactKey, blockedBy, confirmChanges, controlDag, criticalPath, index_d_exports as dag, defineModel, deriveStatuses, diffFlowchart, diffSequence, diffStateMachine, diffSwimlane, elementKinds, elementStatusKey, emptyFactRecord, evaluateBranches, explainStatus, factNamesIn, factsFrom, fragmentOperators, handoffs, illegalCycles, impact, inputsOf, layeredFacts, loopTransitions, messageModes, modelSchema, notations, outputsOf, overlaySchema, overlayStatuses, parseModel, parseOverlay, participantKinds, pseudoRoles, readySet, statusRules, statuses, toFlowchart, toSequence, toStateMachine, toSwimlane, unmetOutputs, validate, validateOverlay, whatIfDone };
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
|
2
2
|
import { a as validateOverlay, c as fragmentOperators, d as overlayStatuses, f as participantKinds, i as parseOverlay, l as messageModes, n as OverlayParseError, p as pseudoRoles, r as overlaySchema, s as elementKinds, t as modelSchema, u as notations } from "./schema-CVnS6HiX.js";
|
|
3
3
|
import { t as validate } from "./validate-DF3mQZww.js";
|
|
4
4
|
import { n as parseModel, t as ModelParseError } from "./parse-CuipC_2K.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { _ as criticalPath$1, a as unmetOutputs, b as actorMap, c as deriveStatuses, d as stateMachineParts, f as toStateMachine, g as handoffs, h as toFlowchart, i as readySet, l as statusRules, m as flowchartParts, n as criticalPath, o as whatIfDone, p as toSwimlane, r as impact, s as explainStatus, t as blockedBy, u as toSequence, v as immediateDominators, y as topologicalLayers } from "./queries-C8kIDRiY.js";
|
|
6
|
+
import { S as UnknownNodeError, _ as descendantsOf, a as artefactKey, b as lookup, c as evaluateBranches, f as layeredFacts, g as ancestorsOf, h as stronglyConnectedComponents, i as UnsupportedConditionError, l as factNamesIn, m as findCycles, n as illegalCycles, o as elementStatusKey, p as assertAcyclic, r as loopTransitions, s as emptyFactRecord, t as controlDag, u as factsFrom, v as assembleDag, x as CycleError, y as buildDag } from "./control-DiygoEhm.js";
|
|
7
7
|
import { t as statuses } from "./status-Bm1CGu9C.js";
|
|
8
8
|
//#region ../../core/graph/schema/dist/artefacts.js
|
|
9
9
|
/**
|
|
@@ -926,4 +926,4 @@ const diffSequence = (model, scenario, edited) => {
|
|
|
926
926
|
};
|
|
927
927
|
};
|
|
928
928
|
//#endregion
|
|
929
|
-
export { ModelParseError, OverlayParseError, UnconfirmedChangeError, UnsupportedConditionError, applyModelDiff, artefactKey, blockedBy, confirmChanges, controlDag, criticalPath, dist_exports as dag, defineModel, deriveStatuses, diffFlowchart, diffSequence, diffStateMachine, diffSwimlane, elementKinds, elementStatusKey, evaluateBranches, explainStatus, fragmentOperators, handoffs, illegalCycles, impact, inputsOf, loopTransitions, messageModes, modelSchema, notations, outputsOf, overlaySchema, overlayStatuses, parseModel, parseOverlay, participantKinds, pseudoRoles, readySet, statusRules, statuses, toFlowchart, toSequence, toStateMachine, toSwimlane, unmetOutputs, validate, validateOverlay, whatIfDone };
|
|
929
|
+
export { ModelParseError, OverlayParseError, UnconfirmedChangeError, UnsupportedConditionError, applyModelDiff, artefactKey, blockedBy, confirmChanges, controlDag, criticalPath, dist_exports as dag, defineModel, deriveStatuses, diffFlowchart, diffSequence, diffStateMachine, diffSwimlane, elementKinds, elementStatusKey, emptyFactRecord, evaluateBranches, explainStatus, factNamesIn, factsFrom, fragmentOperators, handoffs, illegalCycles, impact, inputsOf, layeredFacts, loopTransitions, messageModes, modelSchema, notations, outputsOf, overlaySchema, overlayStatuses, parseModel, parseOverlay, participantKinds, pseudoRoles, readySet, statusRules, statuses, toFlowchart, toSequence, toStateMachine, toSwimlane, unmetOutputs, validate, validateOverlay, whatIfDone };
|