process-graph 1.4.0 → 2.0.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 +2 -2
- package/dist/cli.d.ts +9 -9
- package/dist/cli.js +3 -3
- package/dist/{data-file-BVMxkTug.js → data-file-B8__c10l.js} +1 -1
- package/dist/dist-B0mKgR5B.js +4 -0
- package/dist/{dist-C8zDuW-y.js → dist-BnymJpfk.js} +7 -7
- package/dist/{graphql-3DSUSUvL.d.ts → graphql-CGWZ6USe.d.ts} +1 -1
- package/dist/{index-DoMIav3D.d.ts → index-7nV7hCmv.d.ts} +2 -2
- package/dist/{index-RwwlDYZ7.d.ts → index-B2p3mEJ3.d.ts} +2 -2
- package/dist/{index-LWdwpjZG.d.ts → index-C-ZNF81j.d.ts} +4 -4
- package/dist/{index-Cp5selgs.d.ts → index-CiaCmQDP.d.ts} +2 -2
- package/dist/{index-Cs1CWlEg.d.ts → index-CotF9Lhh.d.ts} +4 -31
- package/dist/{index-Bb90VKMc.d.ts → index-DAevZqW-.d.ts} +2 -2
- package/dist/{index-Dvz_I_uQ.d.ts → index-DYl6lZLe.d.ts} +29 -1
- package/dist/{index-4f4PVH7K.d.ts → index-DluJZTbT.d.ts} +1 -1
- package/dist/{index-CR8xUK3S.d.ts → index-KhygugOP.d.ts} +6 -44
- package/dist/{index-D4CnOhNf.d.ts → index-wQnLXJmD.d.ts} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/layout.d.ts +1 -1
- package/dist/react-flow.d.ts +5 -5
- package/dist/react.d.ts +2 -2
- package/dist/{router-Dk91O_9p.js → router-DzVcQ28U.js} +2 -2
- package/dist/{schema-BPT8fmfa.js → schema-CL95Lyni.js} +24 -13
- package/dist/{schema-DVAttrJg.js → schema-DMXa8gAZ.js} +3 -12
- package/dist/source/github/node.d.ts +1 -1
- package/dist/source/github.d.ts +4 -4
- package/dist/source/github.js +3 -3
- package/dist/{source-lTKshktI.js → source-DM4fLS5P.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-DKzvLGgl.js → store-CgweIG8J.js} +3 -12
- package/dist/store.d.ts +2 -2
- package/dist/store.js +3 -3
- package/dist/sync.d.ts +1 -1
- package/dist/sync.js +1 -1
- package/dist/ui.d.ts +4 -4
- package/dist/{version-DMNBcTZ-.js → version-_UOnL566.js} +1 -1
- package/dist/{view-DTeNUhGG.js → view-DcktInd7.js} +1 -1
- package/package.json +17 -17
- package/dist/dist-DipyhCvb.js +0 -4
package/dist/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as exitCodes } from "./exit-codes-0ultCqdS.js";
|
|
3
|
-
import { t as version } from "./version-
|
|
3
|
+
import { t as version } from "./version-_UOnL566.js";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
//#region src/missing-peers.ts
|
|
6
6
|
/**
|
|
@@ -84,7 +84,7 @@ if (missing.length > 0) {
|
|
|
84
84
|
process.stderr.write(missingPeersMessage(missing, declaredPeers(), process.env.npm_config_user_agent));
|
|
85
85
|
process.exitCode = exitCodes.missingPeers;
|
|
86
86
|
} else {
|
|
87
|
-
const { runProcess } = await import("./dist-
|
|
87
|
+
const { runProcess } = await import("./dist-B0mKgR5B.js");
|
|
88
88
|
process.exitCode = await runProcess({
|
|
89
89
|
name: "process-graph",
|
|
90
90
|
version
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as Facts, B as Status, _ as StatusRule, k as FactRecord, m as IncomingBasis, p as ArtefactBasis } from "./index-
|
|
2
|
-
import { A as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as GraphqlFetch, t as GitHubTokenPort } from "./graphql-
|
|
6
|
-
import "./index-
|
|
7
|
-
import { F as Handoff, N as Flowchart, k as Swimlane, w as StateMachine, y as SequenceDiagram } from "./index-
|
|
8
|
-
import { n as SourceLookup } from "./index-
|
|
9
|
-
import { a as flowchartToMermaid, c as swimlaneToMermaid, i as swimlaneToDot, n as sequenceToDot, o as sequenceToMermaid, r as stateMachineToDot, s as stateMachineToMermaid, t as flowchartToDot } from "./index-
|
|
1
|
+
import { A as Facts, B as Status, _ as StatusRule, k as FactRecord, m as IncomingBasis, p as ArtefactBasis } from "./index-wQnLXJmD.js";
|
|
2
|
+
import { A as Participant, E as EventDef, N as Transition, T as Element, X as OpenIds, b as Model, l as Overlay, w as ArtefactDef, z as OverlayStatus } from "./index-DYl6lZLe.js";
|
|
3
|
+
import { N as SyncFilter, h as GraphSourceClient, y as Gap } from "./index-CotF9Lhh.js";
|
|
4
|
+
import { ct as GraphStoreClient } from "./index-KhygugOP.js";
|
|
5
|
+
import { n as GraphqlFetch, t as GitHubTokenPort } from "./graphql-CGWZ6USe.js";
|
|
6
|
+
import "./index-CiaCmQDP.js";
|
|
7
|
+
import { F as Handoff, N as Flowchart, k as Swimlane, w as StateMachine, y as SequenceDiagram } from "./index-DluJZTbT.js";
|
|
8
|
+
import { n as SourceLookup } from "./index-7nV7hCmv.js";
|
|
9
|
+
import { a as flowchartToMermaid, c as swimlaneToMermaid, i as swimlaneToDot, n as sequenceToDot, o as sequenceToMermaid, r as stateMachineToDot, s as stateMachineToMermaid, t as flowchartToDot } from "./index-DAevZqW-.js";
|
|
10
10
|
import { ComputedValue } from "trilean";
|
|
11
11
|
//#region ../graph-cli/dist/exit-codes.d.ts
|
|
12
12
|
/**
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as stateMachineToDot, c as sequenceToMermaid, i as sequenceToDot, l as stateMachineToMermaid, o as swimlaneToDot, r as flowchartToDot, s as flowchartToMermaid, u as swimlaneToMermaid } from "./view-
|
|
1
|
+
import { a as stateMachineToDot, c as sequenceToMermaid, i as sequenceToDot, l as stateMachineToMermaid, o as swimlaneToDot, r as flowchartToDot, s as flowchartToMermaid, u as swimlaneToMermaid } from "./view-DcktInd7.js";
|
|
2
2
|
import { t as exitCodes } from "./exit-codes-0ultCqdS.js";
|
|
3
|
-
import { A as setState, C as ready, D as factsOf, E as artefactStates, F as failureOf, M as loadRun, N as runFacts, O as setArtefact, P as CliError, S as path, T as add, _ as blocked, a as defaultModelId, b as handoffsOf, c as validateStored, d as project, f as show, g as ancestors, h as sync, i as runProcess, j as findRun, k as setFact, l as emit, m as SyncInterruptedError, n as nodePorts, o as runCli, p as viewNames, r as packageVersion, s as validateDocument, t as defaultDataPath, u as formatNames, v as children, w as why, x as impactOf, y as cycles } from "./dist-
|
|
4
|
-
import { t as version } from "./version-
|
|
3
|
+
import { A as setState, C as ready, D as factsOf, E as artefactStates, F as failureOf, M as loadRun, N as runFacts, O as setArtefact, P as CliError, S as path, T as add, _ as blocked, a as defaultModelId, b as handoffsOf, c as validateStored, d as project, f as show, g as ancestors, h as sync, i as runProcess, j as findRun, k as setFact, l as emit, m as SyncInterruptedError, n as nodePorts, o as runCli, p as viewNames, r as packageVersion, s as validateDocument, t as defaultDataPath, u as formatNames, v as children, w as why, x as impactOf, y as cycles } from "./dist-BnymJpfk.js";
|
|
4
|
+
import { t as version } from "./version-_UOnL566.js";
|
|
5
5
|
export { CliError, SyncInterruptedError, add, ancestors, artefactStates, blocked, children, cycles, defaultDataPath, defaultModelId, emit, exitCodes, factsOf, failureOf, findRun, flowchartToDot, flowchartToMermaid, formatNames, handoffsOf, impactOf, loadRun, nodePorts, packageVersion, path, project, ready, runCli, runFacts, runProcess, sequenceToDot, sequenceToMermaid, setArtefact, setFact, setState, show, stateMachineToDot, stateMachineToMermaid, swimlaneToDot, swimlaneToMermaid, sync, validateDocument, validateStored, version, viewNames, why };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as overlayStatuses, o as validateOverlay, p as participantKinds } from "./schema-CL95Lyni.js";
|
|
2
2
|
import { t as validate } from "./validate-DF3mQZww.js";
|
|
3
|
-
import { f as terminalJson, h as parseModel, m as ModelParseError, n as viewText, p as terminalText } from "./view-
|
|
3
|
+
import { f as terminalJson, h as parseModel, m as ModelParseError, n as viewText, p as terminalText } from "./view-DcktInd7.js";
|
|
4
4
|
import { c as deriveStatuses, f as toStateMachine, g as handoffs, h as toFlowchart, i as readySet, n as criticalPath, p as toSwimlane, r as impact, s as explainStatus, t as blockedBy, u as toSequence } from "./queries-C8kIDRiY.js";
|
|
5
5
|
import { S as UnknownNodeError, f as layeredFacts, n as illegalCycles, u as factsFrom, x as CycleError } from "./control-DiygoEhm.js";
|
|
6
|
-
import {
|
|
7
|
-
import { l as createGraphSourceRouter, t as createGitHubIssuesSource } from "./source-
|
|
6
|
+
import { n as filterStates, o as orderFields } from "./schema-DMXa8gAZ.js";
|
|
7
|
+
import { l as createGraphSourceRouter, t as createGitHubIssuesSource } from "./source-DM4fLS5P.js";
|
|
8
8
|
import { t as GraphSourceError } from "./errors-BZe5WzCn.js";
|
|
9
9
|
import { t as githubTokenFromEnvironment } from "./node-AchI1T-K.js";
|
|
10
|
-
import { g as emptyModel } from "./store-
|
|
11
|
-
import { t as createGraphStoreRouter } from "./router-
|
|
12
|
-
import { i as openNodeGraphStore, t as prepareDataFile } from "./data-file-
|
|
10
|
+
import { g as emptyModel } from "./store-CgweIG8J.js";
|
|
11
|
+
import { t as createGraphStoreRouter } from "./router-DzVcQ28U.js";
|
|
12
|
+
import { i as openNodeGraphStore, t as prepareDataFile } from "./data-file-B8__c10l.js";
|
|
13
13
|
import { a as scopesBySource, i as InvalidScopeError, n as UnknownSourceError, r as syncScopes, t as InterruptedSyncError } from "./sync-CkaJO3OQ.js";
|
|
14
14
|
import { t as exitCodes } from "./exit-codes-0ultCqdS.js";
|
|
15
15
|
import { ORPCError, createRouterClient } from "@orpc/server";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { N as SyncFilter, h as GraphSourceClient, y as Gap } from "./index-CotF9Lhh.js";
|
|
2
|
+
import { ct as GraphStoreClient } from "./index-KhygugOP.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../../core/graph/sync/dist/checkpoint.d.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { N as Flowchart, k as Swimlane, w as StateMachine } from "./index-
|
|
1
|
+
import { P as Views, Y as IdSpace } from "./index-DYl6lZLe.js";
|
|
2
|
+
import { N as Flowchart, k as Swimlane, w as StateMachine } from "./index-DluJZTbT.js";
|
|
3
3
|
//#region ../../core/graph/layout/dist/engine.d.ts
|
|
4
4
|
/** A box with a fixed size, which the engine places. */
|
|
5
5
|
interface EngineLeaf {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as Facts, B as Status, C as CriticalPath, _ as StatusRule, d as StatusExplanation, u as ChainLink } from "./index-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as ProjectedView } from "./index-
|
|
1
|
+
import { A as Facts, B as Status, C as CriticalPath, _ as StatusRule, d as StatusExplanation, u as ChainLink } from "./index-wQnLXJmD.js";
|
|
2
|
+
import { M as Projection, T as Element, Y as IdSpace, b as Model, l as Overlay } from "./index-DYl6lZLe.js";
|
|
3
|
+
import { G as StoredModel, ct as GraphStoreClient } from "./index-KhygugOP.js";
|
|
4
|
+
import { a as ProjectedView } from "./index-DluJZTbT.js";
|
|
5
5
|
import { KeyboardEvent, ReactElement, ReactNode, RefCallback } from "react";
|
|
6
6
|
//#region ../../ui/graph/react/dist/run.d.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as GraphSourcePager } from "./index-
|
|
2
|
-
import { n as GraphqlFetch, t as GitHubTokenPort } from "./graphql-
|
|
1
|
+
import { s as GraphSourcePager } from "./index-CotF9Lhh.js";
|
|
2
|
+
import { n as GraphqlFetch, t as GitHubTokenPort } from "./graphql-CGWZ6USe.js";
|
|
3
3
|
//#region ../../adapters/graph/source-github-issues/dist/source.d.ts
|
|
4
4
|
/** What the GitHub issues source needs. */
|
|
5
5
|
interface GitHubIssuesSourceOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as OpenIds, a as BoundActivitySchema, b as Model, l as Overlay } from "./index-DYl6lZLe.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { ContractRouterClient, InitialInputSchema, ProcedureContract, RouterContract, eventIterator } from "@orpc/contract";
|
|
4
4
|
import { ContractedRouter, DefaultInitialContext } from "@orpc/server";
|
|
@@ -88,21 +88,6 @@ declare const transitionSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
88
88
|
}, z.core.$strip>], "kind">>;
|
|
89
89
|
effect: z.ZodExactOptional<z.ZodString>;
|
|
90
90
|
}, z.core.$strict>>;
|
|
91
|
-
/**
|
|
92
|
-
* An activity bound to the external record it stands for. `source` is required here, where the model leaves it optional, and it equals `id`: the source-qualified identifier (`github:org/repo#12`) is the element's identity, so the same record synced twice, or reached from two places, is the same element.
|
|
93
|
-
*/
|
|
94
|
-
declare const boundActivitySchema: z.ZodReadonly<z.ZodObject<{
|
|
95
|
-
kind: z.ZodLiteral<"activity">;
|
|
96
|
-
id: z.ZodString;
|
|
97
|
-
extensions: z.ZodExactOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodType<import("trilean").JsonValue, unknown, z.core.$ZodTypeInternals<import("trilean").JsonValue, unknown>>>>>;
|
|
98
|
-
label: z.ZodString;
|
|
99
|
-
actor: z.ZodExactOptional<z.ZodString>;
|
|
100
|
-
action: z.ZodExactOptional<z.ZodString>;
|
|
101
|
-
affects: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
102
|
-
consumes: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
103
|
-
produces: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
104
|
-
source: z.ZodString;
|
|
105
|
-
}, z.core.$strict>>;
|
|
106
91
|
/** The relation kinds a source reports beside the model's transitions. */
|
|
107
92
|
declare const relationKinds: readonly ["child-of", "assigned-to", "part-of"];
|
|
108
93
|
/**
|
|
@@ -131,7 +116,7 @@ declare const gapSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
131
116
|
message: z.ZodString;
|
|
132
117
|
}, z.core.$strict>>;
|
|
133
118
|
/**
|
|
134
|
-
* One page of a sync: bound activities, the participants they name, the transitions between them, their relations, their run state, and any gaps. A page is a partial view; `assembleSync` merges a whole sync into one model.
|
|
119
|
+
* One page of a sync: bound activities (graph-schema's `boundActivitySchema`), the participants they name, the transitions between them, their relations, their run state, and any gaps. A page is a partial view; `assembleSync` merges a whole sync into one model.
|
|
135
120
|
*
|
|
136
121
|
* `next` is the cursor to resume after this page. It is absent on the last page.
|
|
137
122
|
*/
|
|
@@ -145,18 +130,7 @@ declare const syncPageSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
145
130
|
entity: "entity";
|
|
146
131
|
}>;
|
|
147
132
|
}, z.core.$strict>>>>;
|
|
148
|
-
activities: z.ZodReadonly<z.ZodArray<
|
|
149
|
-
kind: z.ZodLiteral<"activity">;
|
|
150
|
-
id: z.ZodString;
|
|
151
|
-
extensions: z.ZodExactOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodType<import("trilean").JsonValue, unknown, z.core.$ZodTypeInternals<import("trilean").JsonValue, unknown>>>>>;
|
|
152
|
-
label: z.ZodString;
|
|
153
|
-
actor: z.ZodExactOptional<z.ZodString>;
|
|
154
|
-
action: z.ZodExactOptional<z.ZodString>;
|
|
155
|
-
affects: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
156
|
-
consumes: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
157
|
-
produces: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
158
|
-
source: z.ZodString;
|
|
159
|
-
}, z.core.$strict>>>>;
|
|
133
|
+
activities: z.ZodReadonly<z.ZodArray<BoundActivitySchema>>;
|
|
160
134
|
transitions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
161
135
|
id: z.ZodString;
|
|
162
136
|
source: z.ZodString;
|
|
@@ -361,7 +335,6 @@ declare const sourceDescriptionSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
361
335
|
}, z.core.$strict>>;
|
|
362
336
|
/** Why a request was rejected as malformed. */
|
|
363
337
|
declare const badRequestReasons: readonly ["invalid-cursor", "invalid-scope"];
|
|
364
|
-
type BoundActivity = z.infer<typeof boundActivitySchema>;
|
|
365
338
|
type SourceParticipant = z.infer<typeof participantSchema>;
|
|
366
339
|
type SourceTransition = z.infer<typeof transitionSchema>;
|
|
367
340
|
type Relation = z.infer<typeof relationSchema>;
|
|
@@ -615,4 +588,4 @@ interface FakeGraphSourceOptions {
|
|
|
615
588
|
*/
|
|
616
589
|
declare const createFakeGraphSource: (options: FakeGraphSourceOptions) => GraphSourcePager;
|
|
617
590
|
//#endregion
|
|
618
|
-
export {
|
|
591
|
+
export { transitionSchema as $, SourceDescription as A, orderDirections as B, Relation as C, ScopeListing as D, ScopeEntry as E, SyncPage as F, scopeChildrenInputSchema as G, participantSchema as H, badRequestReasons as I, scopeRootsInputSchema as J, scopeEntrySchema as K, filterStates as L, SourceTransition as M, SyncFilter as N, ScopeListingInput as O, SyncInput as P, syncPageSchema as Q, gapReasons as R, OrderField as S, ScopeChildrenInput as T, relationKinds as U, orderFields as V, relationSchema as W, syncFilterSchema as X, sourceDescriptionSchema as Y, syncInputSchema as Z, BadRequestReason as _, assembleSync as a, GapReason as b, GraphSourceRouter as c, PageRequest as d, createGraphSourceRouter as f, graphSourceContract as g, GraphSourceClient as h, AssembledSync as i, SourceParticipant as j, ScopeRootsInput as k, GraphSourceScopes as l, GraphSourceFailure as m, FakePage as n, ChildrenRequest as o, GraphSourceError as p, scopeListingSchema as q, createFakeGraphSource as r, GraphSourcePager as s, FakeGraphSourceOptions as t, ListingRequest as u, FilterState as v, RelationKind as w, OrderDirection as x, Gap as y, gapSchema as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { N as Flowchart, a as ProjectedView, k as Swimlane, w as StateMachine, y as SequenceDiagram } from "./index-
|
|
1
|
+
import { X as OpenIds, Y as IdSpace, b as Model } from "./index-DYl6lZLe.js";
|
|
2
|
+
import { N as Flowchart, a as ProjectedView, k as Swimlane, w as StateMachine, y as SequenceDiagram } from "./index-DluJZTbT.js";
|
|
3
3
|
//#region ../../core/graph/export/dist/view.d.ts
|
|
4
4
|
/** The text formats a view is written in: Mermaid, Graphviz DOT, and the projection itself as JSON. */
|
|
5
5
|
declare const exportFormats: readonly ["mermaid", "dot", "json"];
|
|
@@ -486,6 +486,34 @@ interface ModelSchema extends z.ZodReadonly<typeof modelObjectSchema> {
|
|
|
486
486
|
* Every object is strict. The inferred type is exactly `Model<OpenIds>`, which a type-level test pins in both directions.
|
|
487
487
|
*/
|
|
488
488
|
declare const modelSchema: ModelSchema;
|
|
489
|
+
/** The strict object schema inside `boundActivitySchema`, before it is made read-only. */
|
|
490
|
+
declare const boundActivityObjectSchema: z.ZodObject<{
|
|
491
|
+
kind: z.ZodLiteral<"activity">;
|
|
492
|
+
id: z.ZodString;
|
|
493
|
+
extensions: z.ZodExactOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodType<import("trilean").JsonValue, unknown, z.core.$ZodTypeInternals<import("trilean").JsonValue, unknown>>>>>;
|
|
494
|
+
label: z.ZodString;
|
|
495
|
+
actor: z.ZodExactOptional<z.ZodString>;
|
|
496
|
+
action: z.ZodExactOptional<z.ZodString>;
|
|
497
|
+
affects: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
498
|
+
consumes: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
499
|
+
produces: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
500
|
+
source: z.ZodString;
|
|
501
|
+
}, z.core.$strict>;
|
|
502
|
+
/**
|
|
503
|
+
* The type of `boundActivitySchema`, declared by name for the same reason as `ModelSchema`: a consumer's declaration file that embeds the schema, such as a source page's or a store's item list, refers to `BoundActivitySchema` rather than writing out the activity with trilean's JSON value inline.
|
|
504
|
+
*/
|
|
505
|
+
interface BoundActivitySchema extends z.ZodReadonly<typeof boundActivityObjectSchema> {
|
|
506
|
+
/** The strict object schema inside, whose `shape` holds each field's own schema. */
|
|
507
|
+
readonly unwrap: () => typeof boundActivityObjectSchema;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* An activity bound to the external record it stands for: the model's `activity` element with `source` required, where the model leaves it optional, and equal to `id`. The source-qualified identifier (`github:org/repo#12`) is the element's identity, so the same record synced twice, or reached from two places, is the same element.
|
|
511
|
+
*
|
|
512
|
+
* This is the one definition of a bound activity: a source's sync page and a store's upserted items both use it, so what a source emits is exactly what a store accepts.
|
|
513
|
+
*/
|
|
514
|
+
declare const boundActivitySchema: BoundActivitySchema;
|
|
515
|
+
/** An activity bound to the external record it stands for, as `boundActivitySchema` parses it. */
|
|
516
|
+
type BoundActivity = z.output<BoundActivitySchema>;
|
|
489
517
|
//#endregion
|
|
490
518
|
//#region ../../core/graph/schema/dist/parse.d.ts
|
|
491
519
|
/** A problem found while loading a model: a shape violation located by JSON pointer, or a rule `validate` reports. */
|
|
@@ -518,4 +546,4 @@ declare class ModelParseError extends Error {
|
|
|
518
546
|
*/
|
|
519
547
|
declare const parseModel: (input: unknown) => Model<OpenIds>;
|
|
520
548
|
//#endregion
|
|
521
|
-
export {
|
|
549
|
+
export { Participant as A, ParticipantKind as B, ActionDef as C, Extensions as D, EventDef as E, ElementKind as F, notations as G, elementKinds as H, FragmentOperator as I, pseudoRoles as J, overlayStatuses as K, MessageMode as L, Projection as M, Transition as N, Fragment as O, Views as P, Notation as R, defineModel as S, Element as T, fragmentOperators as U, PseudoRole as V, messageModes as W, OpenIds as X, IdSpace as Y, validate as _, BoundActivitySchema as a, Model as b, modelSchema as c, OverlayParseError as d, overlaySchema as f, IssueCode as g, Issue as h, BoundActivity as i, Point as j, FragmentOperand as k, Overlay as l, validateOverlay as m, ModelParseError as n, ModelSchema as o, parseOverlay as p, participantKinds as q, parseModel as r, boundActivitySchema as s, ModelIssue as t, OverlayIssue as u, inputsOf as v, ArtefactDef as w, ModelParts as x, outputsOf as y, OverlayStatus as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as FragmentOperator, L as MessageMode, M as Projection, N as Transition, R as Notation, T as Element, V as PseudoRole, Y as IdSpace, b as Model } from "./index-DYl6lZLe.js";
|
|
2
2
|
//#region ../../core/graph/projection/dist/loss.d.ts
|
|
3
3
|
/** What an element that a notation cannot draw is: an element kind, or the role of a pseudo-state. A `message` element is one only when the notation would fold it but folding it would multiply edges. */
|
|
4
4
|
type UnrepresentedKind = "activity" | "decision" | "state" | "message" | PseudoRole;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as FactRecord } from "./index-
|
|
2
|
-
import {
|
|
1
|
+
import { k as FactRecord } from "./index-wQnLXJmD.js";
|
|
2
|
+
import { X as OpenIds, a as BoundActivitySchema, b as Model, h as Issue, l as Overlay, o as ModelSchema } from "./index-DYl6lZLe.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { ContractRouterClient } from "@orpc/contract";
|
|
5
5
|
import { ContractedRouter } from "@orpc/server";
|
|
@@ -320,18 +320,7 @@ declare const graphStoreContract: {
|
|
|
320
320
|
entity: "entity";
|
|
321
321
|
}>;
|
|
322
322
|
}, z.core.$strict>>>>;
|
|
323
|
-
activities: z.ZodReadonly<z.ZodArray<
|
|
324
|
-
kind: z.ZodLiteral<"activity">;
|
|
325
|
-
id: z.ZodString;
|
|
326
|
-
extensions: z.ZodExactOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodType<import("trilean").JsonValue, unknown, z.core.$ZodTypeInternals<import("trilean").JsonValue, unknown>>>>>;
|
|
327
|
-
label: z.ZodString;
|
|
328
|
-
actor: z.ZodExactOptional<z.ZodString>;
|
|
329
|
-
action: z.ZodExactOptional<z.ZodString>;
|
|
330
|
-
affects: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
331
|
-
consumes: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
332
|
-
produces: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
333
|
-
source: z.ZodString;
|
|
334
|
-
}, z.core.$strict>>>>;
|
|
323
|
+
activities: z.ZodReadonly<z.ZodArray<BoundActivitySchema>>;
|
|
335
324
|
transitions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
336
325
|
id: z.ZodString;
|
|
337
326
|
source: z.ZodString;
|
|
@@ -672,21 +661,6 @@ declare const modelIdSchema: z.ZodString;
|
|
|
672
661
|
* A position in the store's history. Every change to any model takes the next revision from one store-wide sequence, so revisions only grow, a model's revision is the revision of its last change, and a model deleted and saved again never reuses an earlier one.
|
|
673
662
|
*/
|
|
674
663
|
declare const revisionSchema: z.ZodInt;
|
|
675
|
-
/**
|
|
676
|
-
* An activity bound to the external record it stands for. `source` is required here, where the model leaves it optional: a bound item's identity is its source record, and the source-qualified identifier is its element id.
|
|
677
|
-
*/
|
|
678
|
-
declare const boundActivitySchema: z.ZodReadonly<z.ZodObject<{
|
|
679
|
-
kind: z.ZodLiteral<"activity">;
|
|
680
|
-
id: z.ZodString;
|
|
681
|
-
extensions: z.ZodExactOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodType<import("trilean").JsonValue, unknown, z.core.$ZodTypeInternals<import("trilean").JsonValue, unknown>>>>>;
|
|
682
|
-
label: z.ZodString;
|
|
683
|
-
actor: z.ZodExactOptional<z.ZodString>;
|
|
684
|
-
action: z.ZodExactOptional<z.ZodString>;
|
|
685
|
-
affects: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
686
|
-
consumes: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
687
|
-
produces: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
688
|
-
source: z.ZodString;
|
|
689
|
-
}, z.core.$strict>>;
|
|
690
664
|
/** The relation kinds a store keeps beside a model, the same kinds a source reports. */
|
|
691
665
|
declare const relationKinds: readonly ["child-of", "assigned-to", "part-of"];
|
|
692
666
|
/**
|
|
@@ -702,7 +676,7 @@ declare const relationSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
702
676
|
to: z.ZodString;
|
|
703
677
|
}, z.core.$strict>>;
|
|
704
678
|
/**
|
|
705
|
-
* Items read from a source, to be merged into a stored model by identifier. Each participant, activity and transition replaces the one with the same id or is appended after the existing ones; the overlay's entries replace the run state of the elements they name; each relation not already stored is appended. Everything else in the model is left as it is.
|
|
679
|
+
* Items read from a source, to be merged into a stored model by identifier. Activities are graph-schema's `boundActivitySchema`, the same schema a source's sync page uses, so a page's items pass unchanged. Each participant, activity and transition replaces the one with the same id or is appended after the existing ones; the overlay's entries replace the run state of the elements they name; each relation not already stored is appended. Everything else in the model is left as it is.
|
|
706
680
|
*/
|
|
707
681
|
declare const boundItemsSchema: z.ZodReadonly<z.ZodObject<{
|
|
708
682
|
participants: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
@@ -714,18 +688,7 @@ declare const boundItemsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
714
688
|
entity: "entity";
|
|
715
689
|
}>;
|
|
716
690
|
}, z.core.$strict>>>>;
|
|
717
|
-
activities: z.ZodReadonly<z.ZodArray<
|
|
718
|
-
kind: z.ZodLiteral<"activity">;
|
|
719
|
-
id: z.ZodString;
|
|
720
|
-
extensions: z.ZodExactOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodType<import("trilean").JsonValue, unknown, z.core.$ZodTypeInternals<import("trilean").JsonValue, unknown>>>>>;
|
|
721
|
-
label: z.ZodString;
|
|
722
|
-
actor: z.ZodExactOptional<z.ZodString>;
|
|
723
|
-
action: z.ZodExactOptional<z.ZodString>;
|
|
724
|
-
affects: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
725
|
-
consumes: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
726
|
-
produces: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
727
|
-
source: z.ZodString;
|
|
728
|
-
}, z.core.$strict>>>>;
|
|
691
|
+
activities: z.ZodReadonly<z.ZodArray<BoundActivitySchema>>;
|
|
729
692
|
transitions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
730
693
|
id: z.ZodString;
|
|
731
694
|
source: z.ZodString;
|
|
@@ -1012,7 +975,6 @@ declare const issueSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
1012
975
|
}, z.core.$strict>>;
|
|
1013
976
|
type ModelId = z.infer<typeof modelIdSchema>;
|
|
1014
977
|
type Revision = z.infer<typeof revisionSchema>;
|
|
1015
|
-
type BoundActivity = z.infer<typeof boundActivitySchema>;
|
|
1016
978
|
type BoundItems = z.infer<typeof boundItemsSchema>;
|
|
1017
979
|
type Relation = z.infer<typeof relationSchema>;
|
|
1018
980
|
type RelationKind = (typeof relationKinds)[number];
|
|
@@ -1387,4 +1349,4 @@ type GraphStoreRouter = ContractedRouter<typeof graphStoreContract, object>;
|
|
|
1387
1349
|
*/
|
|
1388
1350
|
declare const createFakeGraphStore: () => GraphStore;
|
|
1389
1351
|
//#endregion
|
|
1390
|
-
export {
|
|
1352
|
+
export { modelIdSchema as $, defaultSubscriptionCapacity as A, Relation as B, ElementRequest as C, ChangeFeedOptions as D, ChangeFeed as E, FactChange as F, StoredModel as G, Revision as H, FactClearing as I, factChangeSchema as J, boundItemsSchema as K, ModelId as L, GraphStoreFailure as M, BoundItems as N, ChangeSubscription as O, ChangeKind as P, issueSchema as Q, ModelSummary as R, overlayWithin as S, ModelRequest as T, StoreChange as U, RelationKind as V, StoredFacts as W, factNameSchema as X, factClearingSchema as Y, factRecordSchema as Z, mergeFacts as _, blockedChainOf as a, storeChangeSchema as at, emptyModel as b, structureOf as c, GraphStoreClient as ct, descendantsOf as d, modelSummarySchema as et, mergeRelations as f, factsWithin as g, factIssues as h, Structure as i, revisionSchema as it, GraphStoreError as j, SubscribeOptions as k, ancestorsOf as l, graphStoreContract as lt, relationsWithin as m, GraphStoreRouter as n, relationKinds as nt, impactOf as o, storedFactsSchema as ot, relationIssues as p, changeKinds as q, createGraphStoreRouter as r, relationSchema as rt, readyOf as s, storedModelSchema as st, createFakeGraphStore as t, reachSchema as tt, childrenOf as u, withoutFacts as v, GraphStore as w, mergeBoundItems as x, checkStored as y, Reach as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Y as IdSpace, b as Model, l as Overlay } from "./index-DYl6lZLe.js";
|
|
2
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. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
2
|
-
import { A as
|
|
3
|
-
import { A as toSwimlane, C as toSequence, D as toStateMachine, E as StateMachineTransition, F as Handoff, I as handoffs, L as Loss, M as FlowNode, N as Flowchart, O as Lane, P as toFlowchart, R as UnrepresentedElement, S as SequenceOperand, T as StateMachineState, _ as applyModelDiff, a as ProjectedView, b as SequenceItem, c as Addressing, d as Ends, f as EventChange, g as UnconfirmedChangeError, h as TransitionFieldChange, i as diffSwimlane, j as FlowEdge, k as Swimlane, l as Change, m as TransitionChange, n as diffStateMachine, o as ViewsByNotation, p as ModelDiff, r as diffFlowchart, s as project, t as diffSequence, u as ElementChange, v as confirmChanges, w as StateMachine, x as SequenceMessage, y as SequenceDiagram, z as UnrepresentedKind } from "./index-
|
|
4
|
-
import { a as flowchartToMermaid, c as swimlaneToMermaid, d as viewText, i as swimlaneToDot, l as ExportFormat, n as sequenceToDot, o as sequenceToMermaid, r as stateMachineToDot, s as stateMachineToMermaid, t as flowchartToDot, u as exportFormats } from "./index-
|
|
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-wQnLXJmD.js";
|
|
2
|
+
import { A as Participant, B as ParticipantKind, C as ActionDef, D as Extensions, E as EventDef, F as ElementKind, G as notations, H as elementKinds, I as FragmentOperator, J as pseudoRoles, K as overlayStatuses, L as MessageMode, M as Projection, N as Transition, O as Fragment, P as Views, R as Notation, S as defineModel, T as Element, U as fragmentOperators, V as PseudoRole, W as messageModes, X as OpenIds, Y as IdSpace, _ as validate, a as BoundActivitySchema, b as Model, c as modelSchema, d as OverlayParseError, f as overlaySchema, g as IssueCode, h as Issue, i as BoundActivity, j as Point, k as FragmentOperand, l as Overlay, m as validateOverlay, n as ModelParseError, o as ModelSchema, p as parseOverlay, q as participantKinds, r as parseModel, s as boundActivitySchema, t as ModelIssue, u as OverlayIssue, v as inputsOf, w as ArtefactDef, x as ModelParts, y as outputsOf, z as OverlayStatus } from "./index-DYl6lZLe.js";
|
|
3
|
+
import { A as toSwimlane, C as toSequence, D as toStateMachine, E as StateMachineTransition, F as Handoff, I as handoffs, L as Loss, M as FlowNode, N as Flowchart, O as Lane, P as toFlowchart, R as UnrepresentedElement, S as SequenceOperand, T as StateMachineState, _ as applyModelDiff, a as ProjectedView, b as SequenceItem, c as Addressing, d as Ends, f as EventChange, g as UnconfirmedChangeError, h as TransitionFieldChange, i as diffSwimlane, j as FlowEdge, k as Swimlane, l as Change, m as TransitionChange, n as diffStateMachine, o as ViewsByNotation, p as ModelDiff, r as diffFlowchart, s as project, t as diffSequence, u as ElementChange, v as confirmChanges, w as StateMachine, x as SequenceMessage, y as SequenceDiagram, z as UnrepresentedKind } from "./index-DluJZTbT.js";
|
|
4
|
+
import { a as flowchartToMermaid, c as swimlaneToMermaid, d as viewText, i as swimlaneToDot, l as ExportFormat, n as sequenceToDot, o as sequenceToMermaid, r as stateMachineToDot, s as stateMachineToMermaid, t as flowchartToDot, u as exportFormats } from "./index-DAevZqW-.js";
|
|
5
5
|
//#region ../../core/graph/dag/dist/errors.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Thrown when an operation that is only defined on an acyclic graph is given one that contains a cycle.
|
|
@@ -129,4 +129,4 @@ export declare const terminalText: (text: string) => string;
|
|
|
129
129
|
*/
|
|
130
130
|
export declare const terminalJson: (value: unknown) => string;
|
|
131
131
|
//#endregion
|
|
132
|
-
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 ExportFormat, 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 ModelSchema, type Notation, type OpenIds, type Overlay, type OverlayIssue, OverlayParseError, type OverlayStatus, type Participant, type ParticipantKind, type Point, type ProducerBasis, type ProjectedView, 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 ViewsByNotation, type WhatIf, applyModelDiff, artefactKey, blockedBy, confirmChanges, controlDag, criticalPath, index_d_exports as dag, defineModel, deriveStatuses, diffFlowchart, diffSequence, diffStateMachine, diffSwimlane, elementKinds, elementStatusKey, emptyFactRecord, evaluateBranches, explainStatus, exportFormats, factNamesIn, factsFrom, flowchartToDot, flowchartToMermaid, fragmentOperators, handoffs, illegalCycles, impact, inputsOf, layeredFacts, loopTransitions, messageModes, modelSchema, notations, outputsOf, overlaySchema, overlayStatuses, parseModel, parseOverlay, participantKinds, project, pseudoRoles, readySet, sequenceToDot, sequenceToMermaid, stateMachineToDot, stateMachineToMermaid, statusRules, statuses, swimlaneToDot, swimlaneToMermaid, toFlowchart, toSequence, toStateMachine, toSwimlane, unmetOutputs, validate, validateOverlay, viewText, whatIfDone };
|
|
132
|
+
export { type ActionDef, type Addressing, type ArtefactBasis, type ArtefactDef, type BoundActivity, type BoundActivitySchema, type Branch, type ChainLink, type Change, type Element, type ElementChange, type ElementKind, type Ends, type EventChange, type EventDef, type ExportFormat, 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 ModelSchema, type Notation, type OpenIds, type Overlay, type OverlayIssue, OverlayParseError, type OverlayStatus, type Participant, type ParticipantKind, type Point, type ProducerBasis, type ProjectedView, 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 ViewsByNotation, type WhatIf, applyModelDiff, artefactKey, blockedBy, boundActivitySchema, confirmChanges, controlDag, criticalPath, index_d_exports as dag, defineModel, deriveStatuses, diffFlowchart, diffSequence, diffStateMachine, diffSwimlane, elementKinds, elementStatusKey, emptyFactRecord, evaluateBranches, explainStatus, exportFormats, factNamesIn, factsFrom, flowchartToDot, flowchartToMermaid, fragmentOperators, handoffs, illegalCycles, impact, inputsOf, layeredFacts, loopTransitions, messageModes, modelSchema, notations, outputsOf, overlaySchema, overlayStatuses, parseModel, parseOverlay, participantKinds, project, pseudoRoles, readySet, sequenceToDot, sequenceToMermaid, stateMachineToDot, stateMachineToMermaid, statusRules, statuses, swimlaneToDot, swimlaneToMermaid, toFlowchart, toSequence, toStateMachine, toSwimlane, unmetOutputs, validate, validateOverlay, viewText, whatIfDone };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as parseOverlay, c as elementKinds, d as notations, f as overlayStatuses, i as overlaySchema, l as fragmentOperators, m as pseudoRoles, n as modelSchema, o as validateOverlay, p as participantKinds, r as OverlayParseError, t as boundActivitySchema, u as messageModes } from "./schema-CL95Lyni.js";
|
|
3
3
|
import { t as validate } from "./validate-DF3mQZww.js";
|
|
4
|
-
import { a as stateMachineToDot, c as sequenceToMermaid, d as isUnsafeCharacter, f as terminalJson, h as parseModel, i as sequenceToDot, l as stateMachineToMermaid, m as ModelParseError, n as viewText, o as swimlaneToDot, p as terminalText, r as flowchartToDot, s as flowchartToMermaid, t as exportFormats, u as swimlaneToMermaid } from "./view-
|
|
4
|
+
import { a as stateMachineToDot, c as sequenceToMermaid, d as isUnsafeCharacter, f as terminalJson, h as parseModel, i as sequenceToDot, l as stateMachineToMermaid, m as ModelParseError, n as viewText, o as swimlaneToDot, p as terminalText, r as flowchartToDot, s as flowchartToMermaid, t as exportFormats, u as swimlaneToMermaid } from "./view-DcktInd7.js";
|
|
5
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
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 project } from "./project-CP_ye6KI.js";
|
|
@@ -927,4 +927,4 @@ const diffSequence = (model, scenario, edited) => {
|
|
|
927
927
|
};
|
|
928
928
|
};
|
|
929
929
|
//#endregion
|
|
930
|
-
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, exportFormats, factNamesIn, factsFrom, flowchartToDot, flowchartToMermaid, fragmentOperators, handoffs, illegalCycles, impact, inputsOf, isUnsafeCharacter, layeredFacts, loopTransitions, messageModes, modelSchema, notations, outputsOf, overlaySchema, overlayStatuses, parseModel, parseOverlay, participantKinds, project, pseudoRoles, readySet, sequenceToDot, sequenceToMermaid, stateMachineToDot, stateMachineToMermaid, statusRules, statuses, swimlaneToDot, swimlaneToMermaid, terminalJson, terminalText, toFlowchart, toSequence, toStateMachine, toSwimlane, unmetOutputs, validate, validateOverlay, viewText, whatIfDone };
|
|
930
|
+
export { ModelParseError, OverlayParseError, UnconfirmedChangeError, UnsupportedConditionError, applyModelDiff, artefactKey, blockedBy, boundActivitySchema, confirmChanges, controlDag, criticalPath, dist_exports as dag, defineModel, deriveStatuses, diffFlowchart, diffSequence, diffStateMachine, diffSwimlane, elementKinds, elementStatusKey, emptyFactRecord, evaluateBranches, explainStatus, exportFormats, factNamesIn, factsFrom, flowchartToDot, flowchartToMermaid, fragmentOperators, handoffs, illegalCycles, impact, inputsOf, isUnsafeCharacter, layeredFacts, loopTransitions, messageModes, modelSchema, notations, outputsOf, overlaySchema, overlayStatuses, parseModel, parseOverlay, participantKinds, project, pseudoRoles, readySet, sequenceToDot, sequenceToMermaid, stateMachineToDot, stateMachineToMermaid, statusRules, statuses, swimlaneToDot, swimlaneToMermaid, terminalJson, terminalText, toFlowchart, toSequence, toStateMachine, toSwimlane, unmetOutputs, validate, validateOverlay, viewText, whatIfDone };
|
package/dist/layout.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as layout, c as EngineBox, d as EngineGroup, f as EngineLeaf, i as LayoutView, l as EngineEdge, m as LayoutEngine, n as LayoutOptions, o as Size, p as EngineNode, r as LayoutResult, s as Direction, t as LaneBounds, u as EngineGraph } from "./index-
|
|
1
|
+
import { a as layout, c as EngineBox, d as EngineGroup, f as EngineLeaf, i as LayoutView, l as EngineEdge, m as LayoutEngine, n as LayoutOptions, o as Size, p as EngineNode, r as LayoutResult, s as Direction, t as LaneBounds, u as EngineGraph } from "./index-B2p3mEJ3.js";
|
|
2
2
|
//#region ../../core/graph/layout/dist/elk-engine.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* The default engine: elkjs's layered algorithm, run in the calling context from the bundled build so it needs neither a Worker nor Node-only modules. Groups are laid out together with their children (`INCLUDE_CHILDREN`), so an edge between lanes takes part in layer assignment.
|
package/dist/react-flow.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as Status } from "./index-
|
|
2
|
-
import {
|
|
3
|
-
import { N as Flowchart, k as Swimlane, w as StateMachine } from "./index-
|
|
4
|
-
import { i as LayoutView, n as LayoutOptions, r as LayoutResult, s as Direction } from "./index-
|
|
5
|
-
import { A as ElementFilter, et as Run, y as NamedElement } from "./index-
|
|
1
|
+
import { B as Status } from "./index-wQnLXJmD.js";
|
|
2
|
+
import { M as Projection, T as Element, Y as IdSpace, b as Model } from "./index-DYl6lZLe.js";
|
|
3
|
+
import { N as Flowchart, k as Swimlane, w as StateMachine } from "./index-DluJZTbT.js";
|
|
4
|
+
import { i as LayoutView, n as LayoutOptions, r as LayoutResult, s as Direction } from "./index-B2p3mEJ3.js";
|
|
5
|
+
import { A as ElementFilter, et as Run, y as NamedElement } from "./index-C-ZNF81j.js";
|
|
6
6
|
import { ReactElement } from "react";
|
|
7
7
|
import { ColorMode, Edge, EdgeProps, Node, NodeProps } from "@xyflow/react";
|
|
8
8
|
//#region ../../ui/graph/react-flow/dist/use-layout.d.ts
|
package/dist/react.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as ProjectedView, o as ViewsByNotation, s as project } from "./index-
|
|
2
|
-
import { $ as useModel, A as ElementFilter, B as useElementFilter, C as ruleDescriptions, D as SelectionContainerProps, E as GraphSelectionOptions, F as emptyFilter, G as useBlockers, H as BlockedChain, I as filterElements, J as useReadySet, K as useCriticalPath, L as filterOptions, M as FilterOption, N as FilterOptions, O as SelectionItemProps, P as actorsOf, Q as ModelState, R as matchesFilter, S as elementLabel, T as GraphSelection, U as stepWeight, V as useProjection, W as useBlockedChain, X as useWhyStatus, Y as useStatuses, Z as ModelClient, _ as ElementCardPart, a as FilterPanelPart, b as StatusBadge, c as LegendPart, d as LanePart, et as Run, f as LaneProps, g as ElementCard, h as TransitionItemProps, i as FilterPanel, j as ElementFilterState, k as useGraphSelection, l as LegendProps, m as TransitionItemPart, n as DetailPanelPart, o as FilterPanelProps, p as TransitionItem, q as useImpact, r as DetailPanelProps, s as Legend, t as DetailPanel, tt as noFacts, u as Lane, v as ElementCardProps, w as statusLabels, x as StatusBadgeProps, y as NamedElement, z as sourceScope } from "./index-
|
|
1
|
+
import { a as ProjectedView, o as ViewsByNotation, s as project } from "./index-DluJZTbT.js";
|
|
2
|
+
import { $ as useModel, A as ElementFilter, B as useElementFilter, C as ruleDescriptions, D as SelectionContainerProps, E as GraphSelectionOptions, F as emptyFilter, G as useBlockers, H as BlockedChain, I as filterElements, J as useReadySet, K as useCriticalPath, L as filterOptions, M as FilterOption, N as FilterOptions, O as SelectionItemProps, P as actorsOf, Q as ModelState, R as matchesFilter, S as elementLabel, T as GraphSelection, U as stepWeight, V as useProjection, W as useBlockedChain, X as useWhyStatus, Y as useStatuses, Z as ModelClient, _ as ElementCardPart, a as FilterPanelPart, b as StatusBadge, c as LegendPart, d as LanePart, et as Run, f as LaneProps, g as ElementCard, h as TransitionItemProps, i as FilterPanel, j as ElementFilterState, k as useGraphSelection, l as LegendProps, m as TransitionItemPart, n as DetailPanelPart, o as FilterPanelProps, p as TransitionItem, q as useImpact, r as DetailPanelProps, s as Legend, t as DetailPanel, tt as noFacts, u as Lane, v as ElementCardProps, w as statusLabels, x as StatusBadgeProps, y as NamedElement, z as sourceScope } from "./index-C-ZNF81j.js";
|
|
3
3
|
export { type BlockedChain, DetailPanel, type DetailPanelPart, type DetailPanelProps, ElementCard, type ElementCardPart, type ElementCardProps, type ElementFilter, type ElementFilterState, type FilterOption, type FilterOptions, FilterPanel, type FilterPanelPart, type FilterPanelProps, type GraphSelection, type GraphSelectionOptions, Lane, type LanePart, type LaneProps, Legend, type LegendPart, type LegendProps, type ModelClient, type ModelState, type NamedElement, type ProjectedView, type Run, type SelectionContainerProps, type SelectionItemProps, StatusBadge, type StatusBadgeProps, TransitionItem, type TransitionItemPart, type TransitionItemProps, type ViewsByNotation, actorsOf, elementLabel, emptyFilter, filterElements, filterOptions, matchesFilter, noFacts, project, ruleDescriptions, sourceScope, statusLabels, stepWeight, useBlockedChain, useBlockers, useCriticalPath, useElementFilter, useGraphSelection, useImpact, useModel, useProjection, useReadySet, useStatuses, useWhyStatus };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as
|
|
1
|
+
import { i as overlaySchema, n as modelSchema } from "./schema-CL95Lyni.js";
|
|
2
|
+
import { A as modelSummarySchema, F as storeChangeSchema, I as storedFactsSchema, L as storedModelSchema, N as relationSchema, O as issueSchema, P as revisionSchema, S as boundItemsSchema, T as factClearingSchema, j as reachSchema, k as modelIdSchema, w as factChangeSchema, x as GraphStoreError } from "./store-CgweIG8J.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { eventIterator, oc } from "@orpc/contract";
|
|
5
5
|
import { implement } from "@orpc/server";
|
|
@@ -128,19 +128,21 @@ const artefactSchema = record({
|
|
|
128
128
|
name: z.string(),
|
|
129
129
|
deliverable: z.boolean().exactOptional()
|
|
130
130
|
});
|
|
131
|
+
/** The strict object schema of an `activity` element, before it is made read-only: the one definition both the model's activity and a bound activity are built from. */
|
|
132
|
+
const activityObjectSchema = z.strictObject({
|
|
133
|
+
kind: z.literal("activity"),
|
|
134
|
+
id,
|
|
135
|
+
extensions: extensionsSchema.exactOptional(),
|
|
136
|
+
label: z.string(),
|
|
137
|
+
actor: actorRef.exactOptional(),
|
|
138
|
+
action: actionRef.exactOptional(),
|
|
139
|
+
source: z.string().exactOptional(),
|
|
140
|
+
affects: z.array(entityRef).readonly().exactOptional(),
|
|
141
|
+
consumes: z.array(artefactRef).readonly().exactOptional(),
|
|
142
|
+
produces: z.array(artefactRef).readonly().exactOptional()
|
|
143
|
+
});
|
|
131
144
|
const elementSchema = z.discriminatedUnion("kind", [
|
|
132
|
-
|
|
133
|
-
kind: z.literal("activity"),
|
|
134
|
-
id,
|
|
135
|
-
extensions: extensionsSchema.exactOptional(),
|
|
136
|
-
label: z.string(),
|
|
137
|
-
actor: actorRef.exactOptional(),
|
|
138
|
-
action: actionRef.exactOptional(),
|
|
139
|
-
source: z.string().exactOptional(),
|
|
140
|
-
affects: z.array(entityRef).readonly().exactOptional(),
|
|
141
|
-
consumes: z.array(artefactRef).readonly().exactOptional(),
|
|
142
|
-
produces: z.array(artefactRef).readonly().exactOptional()
|
|
143
|
-
}),
|
|
145
|
+
activityObjectSchema.readonly(),
|
|
144
146
|
record({
|
|
145
147
|
kind: z.literal("decision"),
|
|
146
148
|
id,
|
|
@@ -230,5 +232,14 @@ const modelSchema = z.strictObject({
|
|
|
230
232
|
projections: z.array(projectionSchema).readonly(),
|
|
231
233
|
views: viewsSchema.exactOptional()
|
|
232
234
|
}).readonly();
|
|
235
|
+
/**
|
|
236
|
+
* An activity bound to the external record it stands for: the model's `activity` element with `source` required, where the model leaves it optional, and equal to `id`. The source-qualified identifier (`github:org/repo#12`) is the element's identity, so the same record synced twice, or reached from two places, is the same element.
|
|
237
|
+
*
|
|
238
|
+
* This is the one definition of a bound activity: a source's sync page and a store's upserted items both use it, so what a source emits is exactly what a store accepts.
|
|
239
|
+
*/
|
|
240
|
+
const boundActivitySchema = activityObjectSchema.extend({ source: z.string().min(1) }).refine((activity) => activity.id === activity.source, {
|
|
241
|
+
message: "a bound activity's id must equal its source",
|
|
242
|
+
path: ["id"]
|
|
243
|
+
}).readonly();
|
|
233
244
|
//#endregion
|
|
234
|
-
export {
|
|
245
|
+
export { parseOverlay as a, elementKinds as c, notations as d, overlayStatuses as f, overlaySchema as i, fragmentOperators as l, pseudoRoles as m, modelSchema as n, validateOverlay as o, participantKinds as p, OverlayParseError as r, toPointer as s, boundActivitySchema as t, messageModes as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as overlaySchema, n as modelSchema, t as boundActivitySchema } from "./schema-CL95Lyni.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region ../../core/graph/source-contract/dist/schema.js
|
|
4
4
|
/**
|
|
@@ -9,15 +9,6 @@ const modelShape = modelSchema.unwrap().shape;
|
|
|
9
9
|
const participantSchema = modelShape.participants.unwrap().element;
|
|
10
10
|
/** A transition as the model declares it. A source emits one per dependency, from the prerequisite to the work that waits on it. */
|
|
11
11
|
const transitionSchema = modelShape.transitions.unwrap().element;
|
|
12
|
-
/** The model's `activity` element: the first variant of its element union, pinned by a type test so a reordering of the union is a compile error. */
|
|
13
|
-
const [activityElementSchema] = modelShape.elements.unwrap().element.options;
|
|
14
|
-
/**
|
|
15
|
-
* An activity bound to the external record it stands for. `source` is required here, where the model leaves it optional, and it equals `id`: the source-qualified identifier (`github:org/repo#12`) is the element's identity, so the same record synced twice, or reached from two places, is the same element.
|
|
16
|
-
*/
|
|
17
|
-
const boundActivitySchema = activityElementSchema.unwrap().extend({ source: z.string().min(1) }).refine((activity) => activity.id === activity.source, {
|
|
18
|
-
message: "a bound activity's id must equal its source",
|
|
19
|
-
path: ["id"]
|
|
20
|
-
}).readonly();
|
|
21
12
|
/** The relation kinds a source reports beside the model's transitions. */
|
|
22
13
|
const relationKinds = [
|
|
23
14
|
"child-of",
|
|
@@ -43,7 +34,7 @@ const gapSchema = z.strictObject({
|
|
|
43
34
|
message: z.string()
|
|
44
35
|
}).readonly();
|
|
45
36
|
/**
|
|
46
|
-
* One page of a sync: bound activities, the participants they name, the transitions between them, their relations, their run state, and any gaps. A page is a partial view; `assembleSync` merges a whole sync into one model.
|
|
37
|
+
* One page of a sync: bound activities (graph-schema's `boundActivitySchema`), the participants they name, the transitions between them, their relations, their run state, and any gaps. A page is a partial view; `assembleSync` merges a whole sync into one model.
|
|
47
38
|
*
|
|
48
39
|
* `next` is the cursor to resume after this page. It is absent on the last page.
|
|
49
40
|
*/
|
|
@@ -123,4 +114,4 @@ const sourceDescriptionSchema = z.strictObject({ source: z.string().regex(/^[a-z
|
|
|
123
114
|
/** Why a request was rejected as malformed. */
|
|
124
115
|
const badRequestReasons = ["invalid-cursor", "invalid-scope"];
|
|
125
116
|
//#endregion
|
|
126
|
-
export {
|
|
117
|
+
export { syncPageSchema as _, orderDirections as a, relationKinds as c, scopeEntrySchema as d, scopeListingSchema as f, syncInputSchema as g, syncFilterSchema as h, gapSchema as i, relationSchema as l, sourceDescriptionSchema as m, filterStates as n, orderFields as o, scopeRootsInputSchema as p, gapReasons as r, participantSchema as s, badRequestReasons as t, scopeChildrenInputSchema as u, transitionSchema as v };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as GitHubTokenPort } from "../../graphql-
|
|
1
|
+
import { t as GitHubTokenPort } from "../../graphql-CGWZ6USe.js";
|
|
2
2
|
//#region ../../adapters/graph/source-github-issues/dist/node.d.ts
|
|
3
3
|
/** Where `githubTokenFromEnvironment` looks. Both are ports, so a test supplies its own. */
|
|
4
4
|
export interface EnvironmentTokenOptions {
|
package/dist/source/github.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { n as GraphqlFetch, r as githubGraphqlEndpoint, t as GitHubTokenPort } from "../graphql-
|
|
3
|
-
import { a as GitHubIssuesSourceOptions, i as storedTokenPort, n as StoredTokenPortOptions, o as createGitHubIssuesSource, r as selectStoredToken, t as StoredGitHubToken } from "../index-
|
|
1
|
+
import { $ as transitionSchema, A as SourceDescription, B as orderDirections, C as Relation, D as ScopeListing, E as ScopeEntry, F as SyncPage, G as scopeChildrenInputSchema, H as participantSchema, I as badRequestReasons, J as scopeRootsInputSchema, K as scopeEntrySchema, L as filterStates, M as SourceTransition, N as SyncFilter, O as ScopeListingInput, P as SyncInput, Q as syncPageSchema, R as gapReasons, S as OrderField, T as ScopeChildrenInput, U as relationKinds, V as orderFields, W as relationSchema, X as syncFilterSchema, Y as sourceDescriptionSchema, Z as syncInputSchema, _ as BadRequestReason, a as assembleSync, b as GapReason, c as GraphSourceRouter, d as PageRequest, f as createGraphSourceRouter, g as graphSourceContract, h as GraphSourceClient, i as AssembledSync, j as SourceParticipant, k as ScopeRootsInput, l as GraphSourceScopes, m as GraphSourceFailure, n as FakePage, o as ChildrenRequest, p as GraphSourceError, q as scopeListingSchema, r as createFakeGraphSource, s as GraphSourcePager, t as FakeGraphSourceOptions, u as ListingRequest, v as FilterState, w as RelationKind, x as OrderDirection, y as Gap, z as gapSchema } from "../index-CotF9Lhh.js";
|
|
2
|
+
import { n as GraphqlFetch, r as githubGraphqlEndpoint, t as GitHubTokenPort } from "../graphql-CGWZ6USe.js";
|
|
3
|
+
import { a as GitHubIssuesSourceOptions, i as storedTokenPort, n as StoredTokenPortOptions, o as createGitHubIssuesSource, r as selectStoredToken, t as StoredGitHubToken } from "../index-CiaCmQDP.js";
|
|
4
4
|
//#region ../../core/graph/source-contract/dist/paginate.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Pages through a cursor-linked sequence on demand: each `next()` reads one page, starting after `first`, and the sequence ends after the page whose `next` is absent. Nothing is read ahead of the consumer, so a consumer that stops early stops the reads.
|
|
@@ -47,4 +47,4 @@ export declare const repositoryId: (owner: string, name: string) => string;
|
|
|
47
47
|
/** The identifier of an account participant, organisation or user: `github:@login`. The `@` keeps it apart from the `github:owner` scope syntax. */
|
|
48
48
|
export declare const accountId: (login: string) => string;
|
|
49
49
|
//#endregion
|
|
50
|
-
export { type AssembledSync, type BadRequestReason, type
|
|
50
|
+
export { type AssembledSync, type BadRequestReason, type ChildrenRequest, type FakeGraphSourceOptions, type FakePage, type FilterState, type Gap, type GapReason, type GitHubIssuesSourceOptions, type GitHubTokenPort, type GraphSourceClient, GraphSourceError, type GraphSourceFailure, type GraphSourcePager, type GraphSourceRouter, type GraphSourceScopes, type GraphqlFetch, type ListingRequest, type OrderDirection, type OrderField, type PageRequest, type Relation, type RelationKind, type Scope, type ScopeChildrenInput, type ScopeEntry, type ScopeListing, type ScopeListingInput, type ScopeRootsInput, type SourceDescription, type SourceParticipant, type SourceTransition, type StoredGitHubToken, type StoredTokenPortOptions, type SyncFilter, type SyncInput, type SyncPage, assembleSync, badRequestReasons, createFakeGraphSource, createGitHubIssuesSource, createGraphSourceRouter, filterStates, gapReasons, gapSchema, githubGraphqlEndpoint, graphSourceContract, orderDirections, orderFields, participantSchema, relationKinds, relationSchema, scopeChildrenInputSchema, scopeEntrySchema, scopeListingSchema, scopeRootsInputSchema, selectStoredToken, sourceDescriptionSchema, storedTokenPort, syncFilterSchema, syncInputSchema, syncPageSchema, transitionSchema };
|
package/dist/source/github.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { a as ownerScopeId, c as githubGraphqlEndpoint, d as graphSourceContract, i as issueId, l as createGraphSourceRouter, n as accountId, o as parseScope, r as githubSource, s as repositoryId, t as createGitHubIssuesSource, u as paginate } from "../source-
|
|
1
|
+
import { _ as syncPageSchema, a as orderDirections, c as relationKinds, d as scopeEntrySchema, f as scopeListingSchema, g as syncInputSchema, h as syncFilterSchema, i as gapSchema, l as relationSchema, m as sourceDescriptionSchema, n as filterStates, o as orderFields, p as scopeRootsInputSchema, r as gapReasons, s as participantSchema, t as badRequestReasons, u as scopeChildrenInputSchema, v as transitionSchema } from "../schema-DMXa8gAZ.js";
|
|
2
|
+
import { a as ownerScopeId, c as githubGraphqlEndpoint, d as graphSourceContract, i as issueId, l as createGraphSourceRouter, n as accountId, o as parseScope, r as githubSource, s as repositoryId, t as createGitHubIssuesSource, u as paginate } from "../source-DM4fLS5P.js";
|
|
3
3
|
import { t as GraphSourceError } from "../errors-BZe5WzCn.js";
|
|
4
4
|
//#region ../../core/graph/source-contract/dist/assemble.js
|
|
5
5
|
const relationKey = (relation) => JSON.stringify([
|
|
@@ -235,4 +235,4 @@ const storedTokenPort = (options) => async (owner, signal) => {
|
|
|
235
235
|
return chosen.token;
|
|
236
236
|
};
|
|
237
237
|
//#endregion
|
|
238
|
-
export { GraphSourceError, accountId, assembleSync, badRequestReasons,
|
|
238
|
+
export { GraphSourceError, accountId, assembleSync, badRequestReasons, createFakeGraphSource, createGitHubIssuesSource, createGraphSourceRouter, filterStates, gapReasons, gapSchema, githubGraphqlEndpoint, githubSource, graphSourceContract, issueId, orderDirections, orderFields, ownerScopeId, paginate, parseScope, participantSchema, relationKinds, relationSchema, repositoryId, scopeChildrenInputSchema, scopeEntrySchema, scopeListingSchema, scopeRootsInputSchema, selectStoredToken, sourceDescriptionSchema, storedTokenPort, syncFilterSchema, syncInputSchema, syncPageSchema, transitionSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as syncPageSchema, f as scopeListingSchema, g as syncInputSchema, h as syncFilterSchema, m as sourceDescriptionSchema, p as scopeRootsInputSchema, t as badRequestReasons, u as scopeChildrenInputSchema } from "./schema-DMXa8gAZ.js";
|
|
2
2
|
import { t as GraphSourceError } from "./errors-BZe5WzCn.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { eventIterator, oc } from "@orpc/contract";
|
package/dist/store/node.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as GraphStore } from "../index-
|
|
1
|
+
import { w as GraphStore } from "../index-KhygugOP.js";
|
|
2
2
|
import { DatabaseSyncOptions } from "node:sqlite";
|
|
3
3
|
import { NodeSQLiteDatabase } from "drizzle-orm/node-sqlite";
|
|
4
4
|
//#region ../../adapters/graph/sqlite-node/dist/open.d.ts
|
package/dist/store/node.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as openNodeGraphStore, n as privateDirectoryMode, r as privateFileMode, t as prepareDataFile } from "../data-file-
|
|
1
|
+
import { i as openNodeGraphStore, n as privateDirectoryMode, r as privateFileMode, t as prepareDataFile } from "../data-file-B8__c10l.js";
|
|
2
2
|
export { openNodeGraphStore, prepareDataFile, privateDirectoryMode, privateFileMode };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createGraphStoreRouter } from "../../router-
|
|
1
|
+
import { F as storeChangeSchema, t as createSqliteGraphStore, y as ChangeFeed } from "../../store-CgweIG8J.js";
|
|
2
|
+
import { t as createGraphStoreRouter } from "../../router-DzVcQ28U.js";
|
|
3
3
|
import sqlite3InitModule from "@sqlite.org/sqlite-wasm";
|
|
4
4
|
import { RPCHandler } from "@orpc/server/message-port";
|
|
5
5
|
import { drizzle } from "drizzle-orm/sqlite-proxy";
|
package/dist/store/wasm.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ct as GraphStoreClient } from "../index-KhygugOP.js";
|
|
2
2
|
//#region ../../adapters/graph/sqlite-wasm/dist/client.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* A client for the graph store a worker serves with `serveGraphStoreInWorker`. Every procedure of the contract is available, with its abort signal and typed errors, as if the store were in the page.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import {
|
|
2
|
+
import { c as elementKinds, d as notations, f as overlayStatuses, i as overlaySchema, l as fragmentOperators, m as pseudoRoles, n as modelSchema, o as validateOverlay, p as participantKinds, t as boundActivitySchema, u as messageModes } from "./schema-CL95Lyni.js";
|
|
3
3
|
import { t as validate } from "./validate-DF3mQZww.js";
|
|
4
4
|
import { r as loopTransitions, s as emptyFactRecord } from "./control-DiygoEhm.js";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -11,21 +11,12 @@ import { index, integer, primaryKey, sqliteTable, text } from "drizzle-orm/sqlit
|
|
|
11
11
|
* The model's own record schemas, taken from `modelSchema` rather than restated, so what the store accepts is exactly a model or a slice of one and can never drift from it.
|
|
12
12
|
*/
|
|
13
13
|
const modelShape = modelSchema.unwrap().shape;
|
|
14
|
-
/** The model's `activity` element: the first variant of its element union. A type test pins the order, so reordering the union is a compile error. */
|
|
15
|
-
const [activityElementSchema] = modelShape.elements.unwrap().element.options;
|
|
16
14
|
/** The name a store files a model under. Any non-empty string; the store gives it no structure. */
|
|
17
15
|
const modelIdSchema = z.string().min(1);
|
|
18
16
|
/**
|
|
19
17
|
* A position in the store's history. Every change to any model takes the next revision from one store-wide sequence, so revisions only grow, a model's revision is the revision of its last change, and a model deleted and saved again never reuses an earlier one.
|
|
20
18
|
*/
|
|
21
19
|
const revisionSchema = z.int().positive();
|
|
22
|
-
/**
|
|
23
|
-
* An activity bound to the external record it stands for. `source` is required here, where the model leaves it optional: a bound item's identity is its source record, and the source-qualified identifier is its element id.
|
|
24
|
-
*/
|
|
25
|
-
const boundActivitySchema = activityElementSchema.unwrap().extend({ source: z.string().min(1) }).refine((activity) => activity.id === activity.source, {
|
|
26
|
-
message: "a bound activity's id must equal its source",
|
|
27
|
-
path: ["id"]
|
|
28
|
-
}).readonly();
|
|
29
20
|
/** The relation kinds a store keeps beside a model, the same kinds a source reports. */
|
|
30
21
|
const relationKinds = [
|
|
31
22
|
"child-of",
|
|
@@ -41,7 +32,7 @@ const relationSchema = z.strictObject({
|
|
|
41
32
|
to: z.string().min(1)
|
|
42
33
|
}).readonly();
|
|
43
34
|
/**
|
|
44
|
-
* Items read from a source, to be merged into a stored model by identifier. Each participant, activity and transition replaces the one with the same id or is appended after the existing ones; the overlay's entries replace the run state of the elements they name; each relation not already stored is appended. Everything else in the model is left as it is.
|
|
35
|
+
* Items read from a source, to be merged into a stored model by identifier. Activities are graph-schema's `boundActivitySchema`, the same schema a source's sync page uses, so a page's items pass unchanged. Each participant, activity and transition replaces the one with the same id or is appended after the existing ones; the overlay's entries replace the run state of the elements they name; each relation not already stored is appended. Everything else in the model is left as it is.
|
|
45
36
|
*/
|
|
46
37
|
const boundItemsSchema = z.strictObject({
|
|
47
38
|
participants: z.array(modelShape.participants.unwrap().element).readonly(),
|
|
@@ -1499,4 +1490,4 @@ const createSqliteGraphStore = (options) => {
|
|
|
1499
1490
|
};
|
|
1500
1491
|
};
|
|
1501
1492
|
//#endregion
|
|
1502
|
-
export {
|
|
1493
|
+
export { modelSummarySchema as A, changeKinds as C, factRecordSchema as D, factNameSchema as E, storeChangeSchema as F, storedFactsSchema as I, storedModelSchema as L, relationKinds as M, relationSchema as N, issueSchema as O, revisionSchema as P, boundItemsSchema as S, factClearingSchema as T, mergeBoundItems as _, ancestorsOf as a, defaultSubscriptionCapacity as b, mergeRelations as c, factIssues as d, factsWithin as f, emptyModel as g, checkStored as h, serialised as i, reachSchema as j, modelIdSchema as k, relationIssues as l, withoutFacts as m, tables_exports as n, childrenOf as o, mergeFacts as p, migrate as r, descendantsOf as s, createSqliteGraphStore as t, relationsWithin as u, overlayWithin as v, factChangeSchema as w, GraphStoreError as x, ChangeFeed as y };
|
package/dist/store.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as modelIdSchema, A as defaultSubscriptionCapacity, B as Relation, C as ElementRequest, D as ChangeFeedOptions, E as ChangeFeed, F as FactChange, G as StoredModel, H as Revision, I as FactClearing, J as factChangeSchema, K as boundItemsSchema, L as ModelId, M as GraphStoreFailure, N as BoundItems, O as ChangeSubscription, P as ChangeKind, Q as issueSchema, R as ModelSummary, S as overlayWithin, T as ModelRequest, U as StoreChange, V as RelationKind, W as StoredFacts, X as factNameSchema, Y as factClearingSchema, Z as factRecordSchema, _ as mergeFacts, a as blockedChainOf, at as storeChangeSchema, b as emptyModel, c as structureOf, ct as GraphStoreClient, d as descendantsOf, et as modelSummarySchema, f as mergeRelations, g as factsWithin, h as factIssues, i as Structure, it as revisionSchema, j as GraphStoreError, k as SubscribeOptions, l as ancestorsOf, lt as graphStoreContract, m as relationsWithin, n as GraphStoreRouter, nt as relationKinds, o as impactOf, ot as storedFactsSchema, p as relationIssues, q as changeKinds, r as createGraphStoreRouter, rt as relationSchema, s as readyOf, st as storedModelSchema, t as createFakeGraphStore, tt as reachSchema, u as childrenOf, v as withoutFacts, w as GraphStore, x as mergeBoundItems, y as checkStored, z as Reach } from "./index-KhygugOP.js";
|
|
2
2
|
import { SQLiteAsyncDatabase } from "drizzle-orm/sqlite-core";
|
|
3
3
|
import { MigrationMeta } from "drizzle-orm/migrator";
|
|
4
4
|
//#region ../../adapters/graph/store-sqlite/dist/database.d.ts
|
|
@@ -1437,4 +1437,4 @@ declare const namedFacts: import("drizzle-orm/sqlite-core").SQLiteTableWithColum
|
|
|
1437
1437
|
dialect: "sqlite";
|
|
1438
1438
|
}>;
|
|
1439
1439
|
//#endregion
|
|
1440
|
-
export { type
|
|
1440
|
+
export { type BoundItems, ChangeFeed, type ChangeFeedOptions, type ChangeKind, type ChangeSubscription, type ElementRequest, type Exclusive, type FactChange, type FactClearing, type GraphStore, type GraphStoreClient, GraphStoreError, type GraphStoreFailure, type GraphStoreRouter, type ModelId, type ModelRequest, type ModelSummary, type Reach, type Relation, type RelationKind, type Revision, type SqliteDatabase, type SqliteGraphStoreOptions, type StoreChange, type StoredFacts, type StoredModel, type Structure, type SubscribeOptions, ancestorsOf, blockedChainOf, boundItemsSchema, changeKinds, checkStored, childrenOf, createFakeGraphStore, createGraphStoreRouter, defaultSubscriptionCapacity, descendantsOf, emptyModel, factChangeSchema, factClearingSchema, factIssues, factNameSchema, factRecordSchema, factsWithin, graphStoreContract, impactOf, issueSchema, mergeBoundItems, mergeFacts, mergeRelations, modelIdSchema, modelSummarySchema, overlayWithin, reachSchema, readyOf, relationIssues, relationKinds, relationSchema, relationsWithin, revisionSchema, storeChangeSchema, storedFactsSchema, storedModelSchema, structureOf, tables_d_exports as tables, withoutFacts };
|
package/dist/store.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as loopTransitions, s as emptyFactRecord } from "./control-DiygoEhm.js";
|
|
2
|
-
import { A as
|
|
3
|
-
import { n as graphStoreContract, t as createGraphStoreRouter } from "./router-
|
|
2
|
+
import { A as modelSummarySchema, C as changeKinds, D as factRecordSchema, E as factNameSchema, F as storeChangeSchema, I as storedFactsSchema, L as storedModelSchema, M as relationKinds, N as relationSchema, O as issueSchema, P as revisionSchema, S as boundItemsSchema, T as factClearingSchema, _ as mergeBoundItems, a as ancestorsOf, b as defaultSubscriptionCapacity, c as mergeRelations, d as factIssues, f as factsWithin, g as emptyModel, h as checkStored, i as serialised, j as reachSchema, k as modelIdSchema, l as relationIssues, m as withoutFacts, n as tables_exports, o as childrenOf, p as mergeFacts, r as migrate, s as descendantsOf, t as createSqliteGraphStore, u as relationsWithin, v as overlayWithin, w as factChangeSchema, x as GraphStoreError, y as ChangeFeed } from "./store-CgweIG8J.js";
|
|
3
|
+
import { n as graphStoreContract, t as createGraphStoreRouter } from "./router-DzVcQ28U.js";
|
|
4
4
|
//#region ../../core/graph/store-contract/dist/structure.js
|
|
5
5
|
/**
|
|
6
6
|
* Whether an element is a pure control element: a `decision` or a pseudo-state. Control elements have no work of their own, so the structural queries pass through them and never report them.
|
|
@@ -269,4 +269,4 @@ const createFakeGraphStore = () => {
|
|
|
269
269
|
};
|
|
270
270
|
};
|
|
271
271
|
//#endregion
|
|
272
|
-
export { ChangeFeed, GraphStoreError, ancestorsOf, blockedChainOf,
|
|
272
|
+
export { ChangeFeed, GraphStoreError, ancestorsOf, blockedChainOf, boundItemsSchema, changeKinds, checkStored, childrenOf, createFakeGraphStore, createGraphStoreRouter, createSqliteGraphStore, defaultSubscriptionCapacity, descendantsOf, emptyModel, factChangeSchema, factClearingSchema, factIssues, factNameSchema, factRecordSchema, factsWithin, graphStoreContract, impactOf, issueSchema, mergeBoundItems, mergeFacts, mergeRelations, migrate, modelIdSchema, modelSummarySchema, overlayWithin, reachSchema, readyOf, relationIssues, relationKinds, relationSchema, relationsWithin, revisionSchema, serialised, storeChangeSchema, storedFactsSchema, storedModelSchema, structureOf, tables_exports as tables, withoutFacts };
|
package/dist/sync.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as SyncRequest, c as syncScopes, i as SyncProgress, l as SyncCheckpoint, n as SourceLookup, o as SyncStore, r as SyncInterruption, s as UnknownSourceError, t as InterruptedSyncError, u as syncCheckpointSchema } from "./index-
|
|
1
|
+
import { a as SyncRequest, c as syncScopes, i as SyncProgress, l as SyncCheckpoint, n as SourceLookup, o as SyncStore, r as SyncInterruption, s as UnknownSourceError, t as InterruptedSyncError, u as syncCheckpointSchema } from "./index-7nV7hCmv.js";
|
|
2
2
|
//#region ../../core/graph/sync/dist/scopes.d.ts
|
|
3
3
|
/** The scopes of one source, in the order they were given. */
|
|
4
4
|
interface SourceScopes {
|
package/dist/sync.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as syncFilterSchema } from "./schema-DMXa8gAZ.js";
|
|
2
2
|
import { a as scopesBySource, i as InvalidScopeError, n as UnknownSourceError, r as syncScopes, t as InterruptedSyncError } from "./sync-CkaJO3OQ.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../../core/graph/sync/dist/checkpoint.js
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as Status } from "./index-
|
|
2
|
-
import {
|
|
3
|
-
import { y as SequenceDiagram$1 } from "./index-
|
|
4
|
-
import { f as LaneProps, h as TransitionItemProps, l as LegendProps, o as FilterPanelProps, r as DetailPanelProps, v as ElementCardProps } from "./index-
|
|
1
|
+
import { B as Status } from "./index-wQnLXJmD.js";
|
|
2
|
+
import { Y as IdSpace } from "./index-DYl6lZLe.js";
|
|
3
|
+
import { y as SequenceDiagram$1 } from "./index-DluJZTbT.js";
|
|
4
|
+
import { f as LaneProps, h as TransitionItemProps, l as LegendProps, o as FilterPanelProps, r as DetailPanelProps, v as ElementCardProps } from "./index-C-ZNF81j.js";
|
|
5
5
|
import { a as lightTheme, i as darkTheme, n as darkValues, o as vars, r as lightValues, t as ThemeValues } from "./theme-values-BybZ-cle.js";
|
|
6
6
|
import { ReactElement, ReactNode } from "react";
|
|
7
7
|
//#region ../../ui/graph/ui/dist/base.css.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/version.ts
|
|
2
2
|
/** The version of the installed `process-graph` package, as its manifest names it. The bundler writes it in when the package is built, so reading it touches no file. */
|
|
3
|
-
const version = "
|
|
3
|
+
const version = "2.0.0";
|
|
4
4
|
//#endregion
|
|
5
5
|
export { version as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as modelSchema, s as toPointer } from "./schema-CL95Lyni.js";
|
|
2
2
|
import { t as validate } from "./validate-DF3mQZww.js";
|
|
3
3
|
//#region ../../core/graph/schema/dist/parse.js
|
|
4
4
|
/** Thrown by `parseModel` when the input is not a valid model. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "process-graph",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A process and dependency graph model with projections into flowcharts, swimlanes, state machines and sequence diagrams, reasoning over a run, layout, the GitHub issues source, the SQLite store for Node and the browser, and the process-graph command line, each behind its own subpath.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -121,23 +121,23 @@
|
|
|
121
121
|
],
|
|
122
122
|
"devDependencies": {
|
|
123
123
|
"@arethetypeswrong/cli": "0.18.5",
|
|
124
|
-
"@exadev/process-graph-cli": "1.3.
|
|
124
|
+
"@exadev/process-graph-cli": "1.3.1",
|
|
125
125
|
"@exadev/process-graph-dag": "1.1.1",
|
|
126
|
-
"@exadev/process-graph-domain": "1.2.
|
|
127
|
-
"@exadev/process-graph-export": "1.0.
|
|
128
|
-
"@exadev/process-graph-layout": "1.0.
|
|
129
|
-
"@exadev/process-graph-projection": "1.1.
|
|
130
|
-
"@exadev/process-graph-react": "1.1.
|
|
131
|
-
"@exadev/process-graph-react-flow": "1.1.
|
|
132
|
-
"@exadev/process-graph-schema": "
|
|
133
|
-
"@exadev/process-graph-source-contract": "
|
|
134
|
-
"@exadev/process-graph-source-github-issues": "
|
|
135
|
-
"@exadev/process-graph-sqlite-node": "1.1.
|
|
136
|
-
"@exadev/process-graph-sqlite-wasm": "1.0.
|
|
137
|
-
"@exadev/process-graph-store-contract": "
|
|
138
|
-
"@exadev/process-graph-store-sqlite": "1.2.
|
|
139
|
-
"@exadev/process-graph-sync": "1.0.
|
|
140
|
-
"@exadev/process-graph-ui": "1.1.
|
|
126
|
+
"@exadev/process-graph-domain": "1.2.2",
|
|
127
|
+
"@exadev/process-graph-export": "1.0.1",
|
|
128
|
+
"@exadev/process-graph-layout": "1.0.7",
|
|
129
|
+
"@exadev/process-graph-projection": "1.1.4",
|
|
130
|
+
"@exadev/process-graph-react": "1.1.4",
|
|
131
|
+
"@exadev/process-graph-react-flow": "1.1.4",
|
|
132
|
+
"@exadev/process-graph-schema": "2.0.0",
|
|
133
|
+
"@exadev/process-graph-source-contract": "2.0.0",
|
|
134
|
+
"@exadev/process-graph-source-github-issues": "2.0.0",
|
|
135
|
+
"@exadev/process-graph-sqlite-node": "1.1.1",
|
|
136
|
+
"@exadev/process-graph-sqlite-wasm": "1.0.7",
|
|
137
|
+
"@exadev/process-graph-store-contract": "2.0.0",
|
|
138
|
+
"@exadev/process-graph-store-sqlite": "1.2.2",
|
|
139
|
+
"@exadev/process-graph-sync": "1.0.1",
|
|
140
|
+
"@exadev/process-graph-ui": "1.1.2",
|
|
141
141
|
"@orpc/client": "2.0.0-beta.41",
|
|
142
142
|
"@orpc/contract": "2.0.0-beta.41",
|
|
143
143
|
"@orpc/server": "2.0.0-beta.41",
|
package/dist/dist-DipyhCvb.js
DELETED