tla-ts 0.0.3-dev.fe239f8 → 0.0.4-dev.0be9567

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -108,18 +108,18 @@ const result = await check({
108
108
  });
109
109
  ```
110
110
 
111
- | Option | Description |
112
- | ----------------------- | ---------------------------------------------------------------------------------------- |
113
- | `source` | The TLA+ module to check |
114
- | `config` | A TLC configuration, as text or as the result of `parseConfig` |
115
- | `loadModule` | Returns the source of a module that isn't a standard module |
116
- | `loadClass` | Returns a compiled Java class that overrides a module's operators with constants |
117
- | `onPrint` | Receives the output of `Print` and `PrintT`. Defaults to `console.log` |
118
- | `onPause` | Runs when `TLCSet("pause", TRUE)` pauses checking, which resumes when it returns |
119
- | `readFile`, `writeFile` | Read and write files for the Json module and `dump` |
120
- | `seed` | A `bigint` seed. Defaults to `0n`, and matches TLC run with the same `-seed` and `-fp 0` |
121
- | `workers` | The number of worker threads. Defaults to 1 |
122
- | `dump` | Writes the reachable states or the state graph, as TLC's `-dump` does |
111
+ | Option | Description |
112
+ | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
113
+ | `source` | The TLA+ module to check |
114
+ | `config` | A TLC configuration, as text or as the result of `parseConfig` |
115
+ | `loadModule` | Returns the source of a module that isn't a standard module, or of Bags, Json, Randomization, or TLCExt to read in place of tla-ts's own |
116
+ | `loadClass` | Returns a compiled Java class that overrides a module's operators with constants |
117
+ | `onPrint` | Receives the output of `Print` and `PrintT`. Defaults to `console.log` |
118
+ | `onPause` | Runs when `TLCSet("pause", TRUE)` pauses checking, which resumes when it returns |
119
+ | `readFile`, `writeFile` | Read and write files for the Json module and `dump` |
120
+ | `seed` | A `bigint` seed. Defaults to `0n`, and matches TLC run with the same `-seed` and `-fp 0` |
121
+ | `workers` | The number of worker threads. Defaults to 1 |
122
+ | `dump` | Writes the reachable states or the state graph, as TLC's `-dump` does |
123
123
 
124
124
  `dump` takes the `path` that `check` passes to `writeFile` before it returns. Set `dot` to write the state graph in the DOT language of Graphviz, and `colorize`, `actionLabels`, or `snapshot` for TLC's formats of the same names. A dump checks the spec on the calling thread, as one TLC worker does.
125
125
 
package/dist/index.cjs CHANGED
@@ -6,4 +6,4 @@
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./transfer.cjs"),t=require("./parallel.cjs");exports.TlaConfigError=e.at,exports.TlaError=e.ot,exports.TlaEvaluationError=e.st,exports.TlaSyntaxError=e.ft,exports.TlaUnsupportedError=e.pt,exports.check=t.t,exports.formatValue=e.q,exports.parseConfig=e.Z,exports.parseModule=e.w;
9
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./transfer.cjs"),t=require("./parallel.cjs");exports.TlaConfigError=e.at,exports.TlaError=e.ot,exports.TlaEvaluationError=e.st,exports.TlaSyntaxError=e.ft,exports.TlaUnsupportedError=e.pt,exports.check=t.t,exports.formatValue=e.q,exports.parseConfig=e.Z,exports.parseModule=e.D;
package/dist/index.d.cts CHANGED
@@ -38,6 +38,7 @@ interface StringExpression {
38
38
  interface IdentifierExpression {
39
39
  kind: "Identifier";
40
40
  name: string;
41
+ spelling?: string;
41
42
  selectorRanges?: SourceRange[];
42
43
  location: SourceLocation;
43
44
  resolution?: LocalResolution;
@@ -570,6 +571,7 @@ interface SetValue {
570
571
  elements: Value[];
571
572
  hash: number;
572
573
  fingerprint: number;
574
+ isFingerprinted: boolean;
573
575
  }
574
576
  interface MixedSetValue {
575
577
  kind: "MixedSet";
@@ -583,6 +585,7 @@ interface FunctionValue {
583
585
  fingerprint: number;
584
586
  writtenKeys: Value[] | undefined;
585
587
  functionClass: FunctionClass | undefined;
588
+ isFingerprinted: boolean;
586
589
  }
587
590
  interface IntervalValue {
588
591
  kind: "Interval";
package/dist/index.d.ts CHANGED
@@ -38,6 +38,7 @@ interface StringExpression {
38
38
  interface IdentifierExpression {
39
39
  kind: "Identifier";
40
40
  name: string;
41
+ spelling?: string;
41
42
  selectorRanges?: SourceRange[];
42
43
  location: SourceLocation;
43
44
  resolution?: LocalResolution;
@@ -570,6 +571,7 @@ interface SetValue {
570
571
  elements: Value[];
571
572
  hash: number;
572
573
  fingerprint: number;
574
+ isFingerprinted: boolean;
573
575
  }
574
576
  interface MixedSetValue {
575
577
  kind: "MixedSet";
@@ -583,6 +585,7 @@ interface FunctionValue {
583
585
  fingerprint: number;
584
586
  writtenKeys: Value[] | undefined;
585
587
  functionClass: FunctionClass | undefined;
588
+ isFingerprinted: boolean;
586
589
  }
587
590
  interface IntervalValue {
588
591
  kind: "Interval";
package/dist/index.js CHANGED
@@ -6,4 +6,4 @@
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- import{Z as e,at as t,ft as n,ot as r,pt as i,q as a,st as o,w as s}from"./transfer.js";import{t as c}from"./parallel.js";export{t as TlaConfigError,r as TlaError,o as TlaEvaluationError,n as TlaSyntaxError,i as TlaUnsupportedError,c as check,a as formatValue,e as parseConfig,s as parseModule};
9
+ import{D as e,Z as t,at as n,ft as r,ot as i,pt as a,q as o,st as s}from"./transfer.js";import{t as c}from"./parallel.js";export{n as TlaConfigError,i as TlaError,s as TlaEvaluationError,r as TlaSyntaxError,a as TlaUnsupportedError,c as check,o as formatValue,t as parseConfig,e as parseModule};