trilean 1.13.12 → 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/README.md +1 -1
- package/dist/evaluator-operations.js +24 -4
- package/dist-cli/trilean.mjs +25 -5
- package/package.json +10 -20
- package/schemas/trilean.schema.json +1 -1
- package/dist/builtin-functions.cjs +0 -242
- package/dist/builtin-functions.d.cts +0 -13
- package/dist/complex-division.cjs +0 -47
- package/dist/complex-division.d.cts +0 -23
- package/dist/complex.cjs +0 -35
- package/dist/complex.d.cts +0 -23
- package/dist/computed-value.cjs +0 -80
- package/dist/computed-value.d.cts +0 -48
- package/dist/derived-aggregates.cjs +0 -73
- package/dist/derived-aggregates.d.cts +0 -9
- package/dist/derived-connectives.cjs +0 -39
- package/dist/derived-connectives.d.cts +0 -14
- package/dist/derived-patterns.cjs +0 -93
- package/dist/derived-patterns.d.cts +0 -4
- package/dist/derived-values.cjs +0 -23
- package/dist/derived-values.d.cts +0 -7
- package/dist/dist-ed78Tuwe.js +0 -1612
- package/dist/dist-ySX7cb5d.cjs +0 -1612
- package/dist/duration-order.cjs +0 -83
- package/dist/duration-order.d.cts +0 -21
- package/dist/evaluate-document.cjs +0 -92
- package/dist/evaluate-document.d.cts +0 -42
- package/dist/evaluation.cjs +0 -47
- package/dist/evaluation.d.cts +0 -29
- package/dist/evaluator-budget.cjs +0 -37
- package/dist/evaluator-budget.d.cts +0 -22
- package/dist/evaluator-collection.cjs +0 -33
- package/dist/evaluator-collection.d.cts +0 -21
- package/dist/evaluator-compiled.cjs +0 -310
- package/dist/evaluator-compiled.d.cts +0 -18
- package/dist/evaluator-effect.cjs +0 -57
- package/dist/evaluator-effect.d.cts +0 -40
- package/dist/evaluator-factory.cjs +0 -31
- package/dist/evaluator-factory.d.cts +0 -34
- package/dist/evaluator-literals.cjs +0 -42
- package/dist/evaluator-literals.d.cts +0 -8
- package/dist/evaluator-operations.cjs +0 -440
- package/dist/evaluator-operations.d.cts +0 -27
- package/dist/evaluator-test-helpers.cjs +0 -15030
- package/dist/evaluator-test-helpers.d.cts +0 -10
- package/dist/evaluator-test-helpers.d.ts +0 -10
- package/dist/evaluator-test-helpers.js +0 -14902
- package/dist/evaluator.cjs +0 -228
- package/dist/evaluator.d.cts +0 -12
- package/dist/functions.cjs +0 -4
- package/dist/functions.d.cts +0 -12
- package/dist/index.cjs +0 -97
- package/dist/index.d.cts +0 -18
- package/dist/input-resolvers.cjs +0 -109
- package/dist/input-resolvers.d.cts +0 -22
- package/dist/integer-power.cjs +0 -19
- package/dist/integer-power.d.cts +0 -11
- package/dist/json-value.cjs +0 -12
- package/dist/json-value.d.cts +0 -8
- package/dist/plain-record.cjs +0 -7
- package/dist/plain-record.d.cts +0 -2
- package/dist/resolvers.cjs +0 -0
- package/dist/resolvers.d.cts +0 -54
- package/dist/tree.cjs +0 -332
- package/dist/tree.d.cts +0 -446
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Evaluation } from "./evaluation.cjs";
|
|
2
|
-
import { Resolvers } from "./resolvers.cjs";
|
|
3
|
-
/** A resolver reporting a fixed `{ kind: "number", value: 10, unit: { m: 1 } }` for key `"present"`, and not-found for anything else -- `resolveLookup`/`resolveCollection` are never exercised by expression-level nodes and are stubbed only to satisfy `Resolvers`. Shared across the split `evaluator.*.test.ts` files below; a test needing genuinely different resolver behaviour spreads over it (`{ ...resolvers, resolveValue: ... }`) locally rather than mutating this shared instance. */
|
|
4
|
-
export declare const resolvers: Resolvers;
|
|
5
|
-
export declare function expectDefinite<T>(evaluation: Evaluation<T>, expected: T): void;
|
|
6
|
-
export declare function expectIndeterminate<T>(evaluation: Evaluation<T>, code: "not-found" | "wrong-type" | "domain-error"): void;
|
|
7
|
-
/** A narrowing type guard for a resolver context treated as a plain record, following this repo's `object -> Record<string, unknown>` narrowing convention rather than an `as Record<string, unknown>` assertion. */
|
|
8
|
-
export declare function isPlainRecord(value: unknown): value is Record<string, unknown>;
|
|
9
|
-
/** `Array.isArray`'s own lib.es5.d.ts type predicate narrows to `any[]`, not `unknown[]` -- this re-typed wrapper is what lets a `resolveCollection` stub return a properly `unknown[]`-typed result instead of an implicit `any[]`. */
|
|
10
|
-
export declare function isUnknownArray(value: unknown): value is unknown[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Evaluation } from "./evaluation.js";
|
|
2
|
-
import { Resolvers } from "./resolvers.js";
|
|
3
|
-
/** A resolver reporting a fixed `{ kind: "number", value: 10, unit: { m: 1 } }` for key `"present"`, and not-found for anything else -- `resolveLookup`/`resolveCollection` are never exercised by expression-level nodes and are stubbed only to satisfy `Resolvers`. Shared across the split `evaluator.*.test.ts` files below; a test needing genuinely different resolver behaviour spreads over it (`{ ...resolvers, resolveValue: ... }`) locally rather than mutating this shared instance. */
|
|
4
|
-
export declare const resolvers: Resolvers;
|
|
5
|
-
export declare function expectDefinite<T>(evaluation: Evaluation<T>, expected: T): void;
|
|
6
|
-
export declare function expectIndeterminate<T>(evaluation: Evaluation<T>, code: "not-found" | "wrong-type" | "domain-error"): void;
|
|
7
|
-
/** A narrowing type guard for a resolver context treated as a plain record, following this repo's `object -> Record<string, unknown>` narrowing convention rather than an `as Record<string, unknown>` assertion. */
|
|
8
|
-
export declare function isPlainRecord(value: unknown): value is Record<string, unknown>;
|
|
9
|
-
/** `Array.isArray`'s own lib.es5.d.ts type predicate narrows to `any[]`, not `unknown[]` -- this re-typed wrapper is what lets a `resolveCollection` stub return a properly `unknown[]`-typed result instead of an implicit `any[]`. */
|
|
10
|
-
export declare function isUnknownArray(value: unknown): value is unknown[];
|