process-graph 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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-_UOnL566.js";
3
+ import { t as version } from "./version-CIjYEDDB.js";
4
4
  import { readFileSync } from "node:fs";
5
5
  //#region src/missing-peers.ts
6
6
  /**
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
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
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";
4
+ import { t as version } from "./version-CIjYEDDB.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 };
@@ -2,6 +2,7 @@ import { F as storeChangeSchema, t as createSqliteGraphStore, y as ChangeFeed }
2
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
+ import { sqlJsCodecs } from "drizzle-orm/sql-js/codecs";
5
6
  import { drizzle } from "drizzle-orm/sqlite-proxy";
6
7
  //#region ../../adapters/graph/sqlite-wasm/dist/database.js
7
8
  /**
@@ -24,7 +25,7 @@ const openWorkerDatabase = (sqlite3, location) => {
24
25
  returnValue: "resultRows"
25
26
  });
26
27
  return Promise.resolve({ rows });
27
- });
28
+ }, { codecs: sqlJsCodecs });
28
29
  const exclusive = async (operation) => navigator.locks.request(location.pool, { mode: "exclusive" }, async () => {
29
30
  const installing = pool === void 0;
30
31
  pool ??= sqlite3.then(async (module) => module.installOpfsSAHPoolVfs({ name: location.pool }));
package/dist/store.d.ts CHANGED
@@ -100,6 +100,7 @@ declare const sequences: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
100
100
  }, {}>;
101
101
  };
102
102
  dialect: "sqlite";
103
+ isAlias: false;
103
104
  }>;
104
105
  /** One row per stored model: its revision and its layout. */
105
106
  declare const models: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
@@ -156,6 +157,7 @@ declare const models: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
156
157
  }, {}>;
157
158
  };
158
159
  dialect: "sqlite";
160
+ isAlias: false;
159
161
  }>;
160
162
  declare const participants: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
161
163
  name: "participants";
@@ -243,6 +245,7 @@ declare const participants: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
243
245
  }, {}>;
244
246
  };
245
247
  dialect: "sqlite";
248
+ isAlias: false;
246
249
  }>;
247
250
  declare const events: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
248
251
  name: "events";
@@ -330,6 +333,7 @@ declare const events: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
330
333
  }, {}>;
331
334
  };
332
335
  dialect: "sqlite";
336
+ isAlias: false;
333
337
  }>;
334
338
  declare const actions: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
335
339
  name: "actions";
@@ -401,6 +405,7 @@ declare const actions: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<
401
405
  }, {}>;
402
406
  };
403
407
  dialect: "sqlite";
408
+ isAlias: false;
404
409
  }>;
405
410
  declare const artefacts: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
406
411
  name: "artefacts";
@@ -488,6 +493,7 @@ declare const artefacts: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
488
493
  }, {}>;
489
494
  };
490
495
  dialect: "sqlite";
496
+ isAlias: false;
491
497
  }>;
492
498
  /**
493
499
  * Every element kind in one table, so the structural queries traverse a single relation. A column a kind does not have is null on its rows; `rows.ts` reads only the columns of the row's kind.
@@ -818,6 +824,7 @@ declare const elements: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns
818
824
  }, {}>;
819
825
  };
820
826
  dialect: "sqlite";
827
+ isAlias: false;
821
828
  }>;
822
829
  /** Transitions, with `loop` recording whether graph-domain counts the transition as a decision's loop edge, so the recursive queries can leave it out without loading the model. */
823
830
  declare const transitions: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
@@ -986,6 +993,7 @@ declare const transitions: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
986
993
  }, {}>;
987
994
  };
988
995
  dialect: "sqlite";
996
+ isAlias: false;
989
997
  }>;
990
998
  declare const fragments: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
991
999
  name: "fragments";
@@ -1073,6 +1081,7 @@ declare const fragments: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
1073
1081
  }, {}>;
1074
1082
  };
1075
1083
  dialect: "sqlite";
1084
+ isAlias: false;
1076
1085
  }>;
1077
1086
  /** Projections, keyed by position because the model does not require their ids to be unique. */
1078
1087
  declare const projections: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
@@ -1177,6 +1186,7 @@ declare const projections: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
1177
1186
  }, {}>;
1178
1187
  };
1179
1188
  dialect: "sqlite";
1189
+ isAlias: false;
1180
1190
  }>;
1181
1191
  /** Run state, one row per element that has any. */
1182
1192
  declare const overlay: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
@@ -1233,6 +1243,7 @@ declare const overlay: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<
1233
1243
  }, {}>;
1234
1244
  };
1235
1245
  dialect: "sqlite";
1246
+ isAlias: false;
1236
1247
  }>;
1237
1248
  /**
1238
1249
  * Relations kept beside a model, one row per kind and pair of ends, so a relation sent twice is stored once, with `position` keeping the order relations were first stored. The ends are identifiers of the model's elements or participants, by kind.
@@ -1323,6 +1334,7 @@ declare const relations: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
1323
1334
  }, {}>;
1324
1335
  };
1325
1336
  dialect: "sqlite";
1337
+ isAlias: false;
1326
1338
  }>;
1327
1339
  /** What is known about whether an artefact is provided, one row per artefact the model's fact record names: `provided` is true when it is provided and false when it is known not to be. An artefact with no row is unknown. */
1328
1340
  declare const artefactFacts: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
@@ -1379,6 +1391,7 @@ declare const artefactFacts: import("drizzle-orm/sqlite-core").SQLiteTableWithCo
1379
1391
  }, {}>;
1380
1392
  };
1381
1393
  dialect: "sqlite";
1394
+ isAlias: false;
1382
1395
  }>;
1383
1396
  /** The value of each named fact a model's fact record holds, as JSON text, typed `unknown` because `rows.ts` checks it with trilean's value schema on every read. A name with no row is unknown. */
1384
1397
  declare const namedFacts: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
@@ -1435,6 +1448,7 @@ declare const namedFacts: import("drizzle-orm/sqlite-core").SQLiteTableWithColum
1435
1448
  }, {}>;
1436
1449
  };
1437
1450
  dialect: "sqlite";
1451
+ isAlias: false;
1438
1452
  }>;
1439
1453
  //#endregion
1440
1454
  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 };
@@ -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 = "2.0.0";
3
+ const version = "2.0.1";
4
4
  //#endregion
5
5
  export { version as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "process-graph",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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,7 +121,7 @@
121
121
  ],
122
122
  "devDependencies": {
123
123
  "@arethetypeswrong/cli": "0.18.5",
124
- "@exadev/process-graph-cli": "1.3.1",
124
+ "@exadev/process-graph-cli": "1.3.2",
125
125
  "@exadev/process-graph-dag": "1.1.1",
126
126
  "@exadev/process-graph-domain": "1.2.2",
127
127
  "@exadev/process-graph-export": "1.0.1",
@@ -132,15 +132,15 @@
132
132
  "@exadev/process-graph-schema": "2.0.0",
133
133
  "@exadev/process-graph-source-contract": "2.0.0",
134
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",
135
+ "@exadev/process-graph-sqlite-node": "1.1.2",
136
+ "@exadev/process-graph-sqlite-wasm": "1.0.8",
137
137
  "@exadev/process-graph-store-contract": "2.0.0",
138
- "@exadev/process-graph-store-sqlite": "1.2.2",
138
+ "@exadev/process-graph-store-sqlite": "1.2.3",
139
139
  "@exadev/process-graph-sync": "1.0.1",
140
140
  "@exadev/process-graph-ui": "1.1.2",
141
- "@orpc/client": "2.0.0-beta.41",
142
- "@orpc/contract": "2.0.0-beta.41",
143
- "@orpc/server": "2.0.0-beta.41",
141
+ "@orpc/client": "2.0.0-beta.42",
142
+ "@orpc/contract": "2.0.0-beta.42",
143
+ "@orpc/server": "2.0.0-beta.42",
144
144
  "@sqlite.org/sqlite-wasm": "3.53.4-build2",
145
145
  "@stryker-mutator/core": "10.0.0",
146
146
  "@stryker-mutator/typescript-checker": "10.0.0",
@@ -153,7 +153,7 @@
153
153
  "@vitest/coverage-v8": "4.1.11",
154
154
  "@xyflow/react": "12.12.0",
155
155
  "commander": "15.0.0",
156
- "drizzle-orm": "1.0.0-rc.4",
156
+ "drizzle-orm": "1.0.0-rc.5-5935859",
157
157
  "elkjs": "0.12.0",
158
158
  "eslint": "10.12.0",
159
159
  "playwright": "1.63.0",
@@ -169,15 +169,15 @@
169
169
  "zod": "4.6.5"
170
170
  },
171
171
  "peerDependencies": {
172
- "@orpc/client": "2.0.0-beta.41",
173
- "@orpc/contract": "2.0.0-beta.41",
174
- "@orpc/server": "2.0.0-beta.41",
172
+ "@orpc/client": "2.0.0-beta.42",
173
+ "@orpc/contract": "2.0.0-beta.42",
174
+ "@orpc/server": "2.0.0-beta.42",
175
175
  "@sqlite.org/sqlite-wasm": "3.53.4-build2",
176
176
  "@vanilla-extract/css": "^1.21.2",
177
177
  "@vanilla-extract/recipes": "^0.5.7",
178
178
  "@xyflow/react": "^12.12.0",
179
179
  "commander": "^15.0.0",
180
- "drizzle-orm": "1.0.0-rc.4",
180
+ "drizzle-orm": "1.0.0-rc.5-5935859",
181
181
  "elkjs": "^0.12.0",
182
182
  "react": "^19.3.0",
183
183
  "react-dom": "^19.3.0"