solve-engine 1.0.2 → 1.1.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/{BytecodeBuilder-B0xskcv5.d.cts → BytecodeBuilder-Bp9xeTmX.d.cts} +4 -0
- package/dist/{BytecodeBuilder-B0xskcv5.d.ts → BytecodeBuilder-Bp9xeTmX.d.ts} +4 -0
- package/dist/{Configuration-B-G5gTRn.d.cts → Configuration-C9W8tJv_.d.cts} +53 -1
- package/dist/{Configuration-B-G5gTRn.d.ts → Configuration-C9W8tJv_.d.ts} +53 -1
- package/dist/{EngineError-LU7W7AgI.d.cts → EngineError-B61GS1jp.d.cts} +14 -0
- package/dist/{EngineError-LU7W7AgI.d.ts → EngineError-B61GS1jp.d.ts} +14 -0
- package/dist/FormattingSettings-CJHyxcYu.d.cts +27 -0
- package/dist/FormattingSettings-CJHyxcYu.d.ts +27 -0
- package/dist/{Lexer-DpjdaQ98.d.cts → Lexer-BOs7euZe.d.cts} +28 -1
- package/dist/{Lexer-CNmWxabg.d.ts → Lexer-CSI_lwbW.d.ts} +28 -1
- package/dist/PackageCompatibility-B-7rK1TD.d.cts +76 -0
- package/dist/PackageCompatibility-Dh59eF-X.d.ts +76 -0
- package/dist/{PackageRegistry-zuzqt51V.d.cts → PackageRegistry-BHWJP83F.d.cts} +449 -11
- package/dist/{PackageRegistry-ClIFXxAe.d.ts → PackageRegistry-_8rDlvxI.d.ts} +449 -11
- package/dist/{Parselet-BaySkMV3.d.ts → Parselet-BBT8riYh.d.ts} +12 -3
- package/dist/{Parselet-DuI1Pjiq.d.cts → Parselet-BHcgK9S7.d.cts} +12 -3
- package/dist/{ScopeManager-B6GzdhVG.d.cts → ScopeManager-8vf02dwj.d.cts} +56 -5
- package/dist/{ScopeManager-udv4Twwq.d.ts → ScopeManager-CxA24W5n.d.ts} +56 -5
- package/dist/{Token-BzG5G4ja.d.cts → Token-B1hdkedD.d.cts} +9 -0
- package/dist/{Token-BzG5G4ja.d.ts → Token-B1hdkedD.d.ts} +9 -0
- package/dist/{TokenNormalizer-t_GotBxr.d.ts → TokenNormalizer-C6VzZgHa.d.ts} +1 -1
- package/dist/{TokenNormalizer-DGVa24Q-.d.cts → TokenNormalizer-DRc1Js1V.d.cts} +1 -1
- package/dist/{VMCheckpoints-DwLjivM7.d.cts → VMCheckpoints-ELYqITdF.d.cts} +3 -3
- package/dist/{VMCheckpoints-BiaIlOOY.d.ts → VMCheckpoints-MK--EBH2.d.ts} +3 -3
- package/dist/{Value-CXJqDH9J.d.cts → Value-BUi1RA3S.d.cts} +124 -5
- package/dist/{Value-CXJqDH9J.d.ts → Value-BUi1RA3S.d.ts} +124 -5
- package/dist/WorkerError-_-RkoQ5P.d.ts +75 -0
- package/dist/WorkerError-gzmaopj2.d.cts +75 -0
- package/dist/{chunk-GQCOSXMG.js → chunk-267JPOTF.js} +43 -5
- package/dist/chunk-267JPOTF.js.map +1 -0
- package/dist/{chunk-JMXUNXQS.cjs → chunk-2TZKENDH.cjs} +51 -8
- package/dist/chunk-2TZKENDH.cjs.map +1 -0
- package/dist/chunk-3OWCDIPN.js +215 -0
- package/dist/chunk-3OWCDIPN.js.map +1 -0
- package/dist/{chunk-VB37OC6I.js → chunk-4D6NIHE2.js} +40 -3
- package/dist/chunk-4D6NIHE2.js.map +1 -0
- package/dist/{chunk-YXCTLWOH.js → chunk-4HQKTMWG.js} +1530 -57
- package/dist/chunk-4HQKTMWG.js.map +1 -0
- package/dist/{chunk-TY3TLZAW.cjs → chunk-536WPM2V.cjs} +18 -2
- package/dist/chunk-536WPM2V.cjs.map +1 -0
- package/dist/chunk-5HRB36DK.js +405 -0
- package/dist/chunk-5HRB36DK.js.map +1 -0
- package/dist/chunk-5ON7PUAZ.js +12 -0
- package/dist/chunk-5ON7PUAZ.js.map +1 -0
- package/dist/{chunk-KV7UW6T6.js → chunk-7KYSUDQO.js} +12 -5
- package/dist/chunk-7KYSUDQO.js.map +1 -0
- package/dist/{chunk-6WFMPTGB.cjs → chunk-7ZX6B7SY.cjs} +774 -528
- package/dist/chunk-7ZX6B7SY.cjs.map +1 -0
- package/dist/chunk-ALYRJ72W.cjs +434 -0
- package/dist/chunk-ALYRJ72W.cjs.map +1 -0
- package/dist/{chunk-5KMIY374.cjs → chunk-B4HBEFTB.cjs} +17 -2
- package/dist/chunk-B4HBEFTB.cjs.map +1 -0
- package/dist/chunk-B7NLZMQ3.cjs +74 -0
- package/dist/chunk-B7NLZMQ3.cjs.map +1 -0
- package/dist/{chunk-UQ3UIZJC.js → chunk-BLI4NIQY.js} +6 -2
- package/dist/chunk-BLI4NIQY.js.map +1 -0
- package/dist/{chunk-IP7ASJEW.js → chunk-BYJBUL7U.js} +5 -5
- package/dist/{chunk-IP7ASJEW.js.map → chunk-BYJBUL7U.js.map} +1 -1
- package/dist/{chunk-G535KJEG.js → chunk-CCBZZQAE.js} +2 -2
- package/dist/{chunk-G535KJEG.js.map → chunk-CCBZZQAE.js.map} +1 -1
- package/dist/chunk-CKQMXMHR.cjs +219 -0
- package/dist/chunk-CKQMXMHR.cjs.map +1 -0
- package/dist/{chunk-T556MJDZ.cjs → chunk-CUR2WLI4.cjs} +11 -11
- package/dist/{chunk-T556MJDZ.cjs.map → chunk-CUR2WLI4.cjs.map} +1 -1
- package/dist/{chunk-AA3KTWTX.js → chunk-DLEBSLF4.js} +4 -4
- package/dist/{chunk-AA3KTWTX.js.map → chunk-DLEBSLF4.js.map} +1 -1
- package/dist/{chunk-524F3ATQ.cjs → chunk-E23GZEWL.cjs} +15 -9
- package/dist/chunk-E23GZEWL.cjs.map +1 -0
- package/dist/{chunk-PFUESQTW.cjs → chunk-EJ3ILXX6.cjs} +48 -2
- package/dist/chunk-EJ3ILXX6.cjs.map +1 -0
- package/dist/{chunk-526PMQOA.js → chunk-ENKKJYD3.js} +10 -4
- package/dist/chunk-ENKKJYD3.js.map +1 -0
- package/dist/{chunk-5X2PTP6F.cjs → chunk-ENRIK36Q.cjs} +2 -12
- package/dist/chunk-ENRIK36Q.cjs.map +1 -0
- package/dist/{chunk-3D7V24DG.js → chunk-ERCOHGXD.js} +17 -2
- package/dist/chunk-ERCOHGXD.js.map +1 -0
- package/dist/{chunk-IF532O7C.js → chunk-FD5ZZHEU.js} +3 -12
- package/dist/chunk-FD5ZZHEU.js.map +1 -0
- package/dist/{chunk-7FSDNNNC.js → chunk-GLA4JXBO.js} +11 -5
- package/dist/chunk-GLA4JXBO.js.map +1 -0
- package/dist/{chunk-UM6BVY2S.cjs → chunk-HIQ5HSZL.cjs} +175 -43
- package/dist/chunk-HIQ5HSZL.cjs.map +1 -0
- package/dist/{chunk-HVQFNJKE.cjs → chunk-HVRVSI2Z.cjs} +104 -86
- package/dist/chunk-HVRVSI2Z.cjs.map +1 -0
- package/dist/{chunk-3LAEG75D.js → chunk-I4GAWIPW.js} +24 -6
- package/dist/chunk-I4GAWIPW.js.map +1 -0
- package/dist/{chunk-PA4VC73I.cjs → chunk-J45BCEZ4.cjs} +33 -27
- package/dist/chunk-J45BCEZ4.cjs.map +1 -0
- package/dist/{chunk-FQGX2PA2.js → chunk-JG6ZJ2WU.js} +128 -4
- package/dist/chunk-JG6ZJ2WU.js.map +1 -0
- package/dist/chunk-L2TE7PMO.cjs +14 -0
- package/dist/chunk-L2TE7PMO.cjs.map +1 -0
- package/dist/chunk-LHZ6VOA7.js +1764 -0
- package/dist/chunk-LHZ6VOA7.js.map +1 -0
- package/dist/{chunk-SESSWASV.cjs → chunk-MN3LHRGV.cjs} +1868 -393
- package/dist/chunk-MN3LHRGV.cjs.map +1 -0
- package/dist/{chunk-R3PY4G7J.js → chunk-MVTOCRV2.js} +48 -3
- package/dist/chunk-MVTOCRV2.js.map +1 -0
- package/dist/{chunk-FE23VSSA.cjs → chunk-N5NNW4VG.cjs} +6 -6
- package/dist/{chunk-FE23VSSA.cjs.map → chunk-N5NNW4VG.cjs.map} +1 -1
- package/dist/{chunk-Y7FT4IQT.js → chunk-NKW7LKYU.js} +266 -28
- package/dist/chunk-NKW7LKYU.js.map +1 -0
- package/dist/{chunk-O3ANBHSA.js → chunk-NNQ2TYDF.js} +123 -5
- package/dist/chunk-NNQ2TYDF.js.map +1 -0
- package/dist/{chunk-NG2JHZHE.js → chunk-NNZAEUDW.js} +1853 -2640
- package/dist/chunk-NNZAEUDW.js.map +1 -0
- package/dist/{chunk-5LI5EPGJ.cjs → chunk-QFTDTX6K.cjs} +40 -3
- package/dist/chunk-QFTDTX6K.cjs.map +1 -0
- package/dist/{chunk-HDP7VK3C.cjs → chunk-SRGQ72IR.cjs} +649 -349
- package/dist/chunk-SRGQ72IR.cjs.map +1 -0
- package/dist/{chunk-4B2CNWQU.cjs → chunk-SSV46KFA.cjs} +14 -7
- package/dist/chunk-SSV46KFA.cjs.map +1 -0
- package/dist/{chunk-HBVFFBRR.cjs → chunk-T6ZYQJ63.cjs} +1962 -2748
- package/dist/chunk-T6ZYQJ63.cjs.map +1 -0
- package/dist/{chunk-AJA6LUI7.js → chunk-UO6BUV6K.js} +18 -2
- package/dist/chunk-UO6BUV6K.js.map +1 -0
- package/dist/chunk-WWQEY7BV.js +67 -0
- package/dist/chunk-WWQEY7BV.js.map +1 -0
- package/dist/{chunk-5WVP4YHP.js → chunk-WXEHD6TT.js} +333 -33
- package/dist/chunk-WXEHD6TT.js.map +1 -0
- package/dist/{chunk-47LRVGOT.cjs → chunk-XA4CKRML.cjs} +2 -2
- package/dist/{chunk-47LRVGOT.cjs.map → chunk-XA4CKRML.cjs.map} +1 -1
- package/dist/{chunk-6KFYJ6TD.cjs → chunk-XIYYHA65.cjs} +6 -2
- package/dist/chunk-XIYYHA65.cjs.map +1 -0
- package/dist/chunk-YRIKITGF.cjs +1768 -0
- package/dist/chunk-YRIKITGF.cjs.map +1 -0
- package/dist/{chunk-TMA4RCEN.js → chunk-Z7XGGLI2.js} +3 -3
- package/dist/{chunk-TMA4RCEN.js.map → chunk-Z7XGGLI2.js.map} +1 -1
- package/dist/{chunk-R7YVBHCV.cjs → chunk-ZMW6NU2K.cjs} +197 -73
- package/dist/chunk-ZMW6NU2K.cjs.map +1 -0
- package/dist/{chunk-A2N2GFCG.cjs → chunk-ZVTWQLK4.cjs} +10 -10
- package/dist/{chunk-A2N2GFCG.cjs.map → chunk-ZVTWQLK4.cjs.map} +1 -1
- package/dist/constants.cjs +5 -5
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +2 -2
- package/dist/engine.cjs +52 -35
- package/dist/engine.d.cts +13 -13
- package/dist/engine.d.ts +13 -13
- package/dist/engine.js +26 -21
- package/dist/errors.cjs +44 -19
- package/dist/errors.d.cts +3 -2
- package/dist/errors.d.ts +3 -2
- package/dist/errors.js +2 -1
- package/dist/format.cjs +19 -169
- package/dist/format.cjs.map +1 -1
- package/dist/format.d.cts +18 -26
- package/dist/format.d.ts +18 -26
- package/dist/format.js +7 -171
- package/dist/format.js.map +1 -1
- package/dist/index.cjs +250 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +110 -74
- package/dist/index.d.ts +110 -74
- package/dist/index.js +228 -23
- package/dist/index.js.map +1 -1
- package/dist/language.cjs +9 -9
- package/dist/language.d.cts +12 -12
- package/dist/language.d.ts +12 -12
- package/dist/language.js +3 -3
- package/dist/lexer.cjs +16 -16
- package/dist/lexer.d.cts +3 -3
- package/dist/lexer.d.ts +3 -3
- package/dist/lexer.js +5 -5
- package/dist/normalizer.cjs +10 -10
- package/dist/normalizer.d.cts +3 -3
- package/dist/normalizer.d.ts +3 -3
- package/dist/normalizer.js +4 -4
- package/dist/packages.cjs +45 -36
- package/dist/packages.d.cts +135 -31
- package/dist/packages.d.ts +135 -31
- package/dist/packages.js +14 -13
- package/dist/parser.cjs +16 -16
- package/dist/parser.d.cts +6 -5
- package/dist/parser.d.ts +6 -5
- package/dist/parser.js +6 -6
- package/dist/{pipeline-BEb3hujr.d.cts → pipeline-CtfJtPQc.d.cts} +3 -3
- package/dist/{pipeline-B6k5lCB7.d.ts → pipeline-DCd5M6Gk.d.ts} +3 -3
- package/dist/resolvers.d.cts +3 -3
- package/dist/resolvers.d.ts +3 -3
- package/dist/testing.cjs +478 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.cts +271 -0
- package/dist/testing.d.ts +271 -0
- package/dist/testing.js +470 -0
- package/dist/testing.js.map +1 -0
- package/dist/uom.cjs +16 -16
- package/dist/uom.d.cts +3 -3
- package/dist/uom.d.ts +3 -3
- package/dist/uom.js +6 -6
- package/dist/utilities.cjs +6 -5
- package/dist/utilities.js +2 -1
- package/dist/vm.cjs +34 -34
- package/dist/vm.d.cts +8 -8
- package/dist/vm.d.ts +8 -8
- package/dist/vm.js +9 -9
- package/dist/worker.cjs +493 -0
- package/dist/worker.cjs.map +1 -0
- package/dist/worker.d.cts +509 -0
- package/dist/worker.d.ts +509 -0
- package/dist/worker.js +484 -0
- package/dist/worker.js.map +1 -0
- package/package.json +21 -1
- package/dist/chunk-3D7V24DG.js.map +0 -1
- package/dist/chunk-3LAEG75D.js.map +0 -1
- package/dist/chunk-4B2CNWQU.cjs.map +0 -1
- package/dist/chunk-524F3ATQ.cjs.map +0 -1
- package/dist/chunk-526PMQOA.js.map +0 -1
- package/dist/chunk-5KMIY374.cjs.map +0 -1
- package/dist/chunk-5LI5EPGJ.cjs.map +0 -1
- package/dist/chunk-5WVP4YHP.js.map +0 -1
- package/dist/chunk-5X2PTP6F.cjs.map +0 -1
- package/dist/chunk-6KFYJ6TD.cjs.map +0 -1
- package/dist/chunk-6WFMPTGB.cjs.map +0 -1
- package/dist/chunk-7FSDNNNC.js.map +0 -1
- package/dist/chunk-AJA6LUI7.js.map +0 -1
- package/dist/chunk-FQGX2PA2.js.map +0 -1
- package/dist/chunk-GQCOSXMG.js.map +0 -1
- package/dist/chunk-HBVFFBRR.cjs.map +0 -1
- package/dist/chunk-HDP7VK3C.cjs.map +0 -1
- package/dist/chunk-HVQFNJKE.cjs.map +0 -1
- package/dist/chunk-IF532O7C.js.map +0 -1
- package/dist/chunk-JMXUNXQS.cjs.map +0 -1
- package/dist/chunk-KV7UW6T6.js.map +0 -1
- package/dist/chunk-NG2JHZHE.js.map +0 -1
- package/dist/chunk-O3ANBHSA.js.map +0 -1
- package/dist/chunk-PA4VC73I.cjs.map +0 -1
- package/dist/chunk-PFUESQTW.cjs.map +0 -1
- package/dist/chunk-R3PY4G7J.js.map +0 -1
- package/dist/chunk-R7YVBHCV.cjs.map +0 -1
- package/dist/chunk-SESSWASV.cjs.map +0 -1
- package/dist/chunk-TY3TLZAW.cjs.map +0 -1
- package/dist/chunk-UM6BVY2S.cjs.map +0 -1
- package/dist/chunk-UQ3UIZJC.js.map +0 -1
- package/dist/chunk-VB37OC6I.js.map +0 -1
- package/dist/chunk-Y7FT4IQT.js.map +0 -1
- package/dist/chunk-YXCTLWOH.js.map +0 -1
package/dist/packages.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { I as IEnginePackage } from './PackageRegistry-
|
|
2
|
-
import './Parselet-
|
|
3
|
-
import './BytecodeBuilder-
|
|
4
|
-
import './Token-
|
|
5
|
-
import './pipeline-
|
|
6
|
-
import './Value-
|
|
1
|
+
import { I as IEnginePackage } from './PackageRegistry-_8rDlvxI.js';
|
|
2
|
+
import './Parselet-BBT8riYh.js';
|
|
3
|
+
import './BytecodeBuilder-Bp9xeTmX.js';
|
|
4
|
+
import './Token-B1hdkedD.js';
|
|
5
|
+
import './pipeline-DCd5M6Gk.js';
|
|
6
|
+
import './Value-BUi1RA3S.js';
|
|
7
7
|
import './variables.js';
|
|
8
|
-
import './Lexer-
|
|
8
|
+
import './Lexer-CSI_lwbW.js';
|
|
9
9
|
import './resolvers.js';
|
|
10
10
|
import '@tanstack/query-core';
|
|
11
|
-
import './TokenNormalizer-
|
|
12
|
-
import './ScopeManager-
|
|
13
|
-
import './EngineError-
|
|
14
|
-
import './Configuration-
|
|
11
|
+
import './TokenNormalizer-C6VzZgHa.js';
|
|
12
|
+
import './ScopeManager-CxA24W5n.js';
|
|
13
|
+
import './EngineError-B61GS1jp.js';
|
|
14
|
+
import './Configuration-C9W8tJv_.js';
|
|
15
15
|
|
|
16
16
|
/** Core arithmetic: numbers, `()` grouping, `pi`/`e` constants, `+ - * / % ^`, bitwise `<< >> & | ^`, and their `*_by` word forms. */
|
|
17
17
|
declare const ARITHMETIC_PACKAGE: IEnginePackage;
|
|
@@ -27,6 +27,12 @@ declare const ARITHMETIC_PACKAGE: IEnginePackage;
|
|
|
27
27
|
* variable-name-collision reason "total"/"average"/etc. are fused
|
|
28
28
|
* elsewhere in this codebase, "what" is common enough to be worth
|
|
29
29
|
* protecting as a `:variableName`.
|
|
30
|
+
*
|
|
31
|
+
* Successive change is `120 up 10% then down 10%` (118.80, not 120),
|
|
32
|
+
* `50 up 20%`, `80 down 15%` and the repeat form `100 up 10% three times`.
|
|
33
|
+
* `up`/`down` are retyped from a bare IDENT only when a percentage follows
|
|
34
|
+
* (percentUpDownNormalizerRule), so prose keeps the words. See
|
|
35
|
+
* UpDownParselet.ts.
|
|
30
36
|
*/
|
|
31
37
|
declare const PERCENTAGE_PACKAGE: IEnginePackage;
|
|
32
38
|
|
|
@@ -46,6 +52,16 @@ declare const FUNCTION_PACKAGE: IEnginePackage;
|
|
|
46
52
|
* arithmetic, special-cased in `vm/VM.ts`'s ADD/SUB dispatch for the
|
|
47
53
|
* `workday`/`workdays` UNIT (see `lexer/units.ts`) since business-day
|
|
48
54
|
* math needs actual weekend-skipping, not a linear ms conversion.
|
|
55
|
+
* - `N working/business days after|from|before <date>`, the natural-language
|
|
56
|
+
* spelling of the same offset (`5 working days after 20 Dec`,
|
|
57
|
+
* `3 business days from today`). Fused as INFIX phrase tokens
|
|
58
|
+
* (`WORKDAYS_AFTER`/`WORKDAYS_BEFORE`) since the count is the left operand;
|
|
59
|
+
* emits `DATE_WORKDAY_OFFSET`, which walks the very same `addBusinessDays()`
|
|
60
|
+
* as `<date> + N workdays`. See `WorkdayOffsetParselet.ts`.
|
|
61
|
+
* - `working/business days between <date> and <date>`, the COUNT of working
|
|
62
|
+
* days in the inclusive window (`working days between 1 Jan and 31 Jan`), the
|
|
63
|
+
* working-day sibling of `<unit> between` below. Emits
|
|
64
|
+
* `DATE_WORKDAYS_BETWEEN`. See `WorkdaysBetweenParselet.ts`.
|
|
49
65
|
* - `<amount>/workday x <duration>`, a Rate, exactly like `$99/week`
|
|
50
66
|
* already works, using `uom/UomConverter.ts`'s workday<->day shim so
|
|
51
67
|
* `getMeasure()`/`convertUnit()` treat "workday" as a Time-measure unit
|
|
@@ -64,8 +80,9 @@ declare const FUNCTION_PACKAGE: IEnginePackage;
|
|
|
64
80
|
* leading `how many` is accepted for it and for `until`/`since`, see
|
|
65
81
|
* `BetweenUnitNormalizerRule.ts`.
|
|
66
82
|
* - `<date> is a weekend` / `is a workday`, postfix predicates, see
|
|
67
|
-
* `DayTypePredicateParselet.ts`. Mon-Fri only
|
|
68
|
-
*
|
|
83
|
+
* `DayTypePredicateParselet.ts`. Mon-Fri only: these answer the week's
|
|
84
|
+
* SHAPE (is this a weekday), which the holiday calendar deliberately does
|
|
85
|
+
* not touch, see the scope note below.
|
|
69
86
|
* - `current timestamp` / `<date/time> to timestamp` / `<ISO8601 string
|
|
70
87
|
* or unix timestamp> to date`. See `CurrentTimestampParselet.ts` /
|
|
71
88
|
* `ToTimestampParselet.ts` / `ToDateParselet.ts` and
|
|
@@ -89,16 +106,22 @@ declare const FUNCTION_PACKAGE: IEnginePackage;
|
|
|
89
106
|
* feature across two packages for a marginal "which package owns the
|
|
90
107
|
* converter-name list" tidiness gain.
|
|
91
108
|
*
|
|
92
|
-
* SCOPE DECISION (
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
109
|
+
* SCOPE DECISION (holidays): the business-day WALK and COUNT (the offset forms,
|
|
110
|
+
* `between`, and `<date> + N workdays`) skip weekends always, and public
|
|
111
|
+
* holidays too when the host configures a calendar via `date.holidays` (see
|
|
112
|
+
* `constants/Configuration.ts` and `vm/HolidayCalendar.ts`). No calendar means
|
|
113
|
+
* weekends-only, the honest default: the engine excludes exactly the days it
|
|
114
|
+
* can prove are non-working. Picking a region's holidays and keeping them
|
|
115
|
+
* current is the host's to own, the same "bring your own data source" shape
|
|
116
|
+
* stocks and weather use, so this package never guesses a holiday the caller
|
|
117
|
+
* did not supply.
|
|
118
|
+
*
|
|
119
|
+
* Two workday features stay weekends-only by design, and say so: `workdays in
|
|
120
|
+
* <duration>` (a deterministic ratio with no anchor date, so no calendar to
|
|
121
|
+
* consult, see `WorkdaysInParselet.ts`) and the `is a weekend`/`is a workday`
|
|
122
|
+
* predicates (which report the week's Mon-Fri shape, a different question from
|
|
123
|
+
* "is this a working day here"). See `vm/VM.ts`'s `addBusinessDays()` for the
|
|
124
|
+
* walk's side of this.
|
|
102
125
|
*/
|
|
103
126
|
declare const DATETIME_PACKAGE: IEnginePackage;
|
|
104
127
|
|
|
@@ -168,13 +191,62 @@ declare const VARIABLES_PACKAGE: IEnginePackage;
|
|
|
168
191
|
*/
|
|
169
192
|
declare const UOM_PACKAGE: IEnginePackage;
|
|
170
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Resolve one historical exchange rate: the value of 1 unit of `from` in `to`
|
|
196
|
+
* on `isoDate` (`YYYY-MM-DD`). Supplied by the host, backed by whichever
|
|
197
|
+
* provider and key THEY have. Receives an `AbortSignal` that fires on caller
|
|
198
|
+
* cancellation or the fetch timeout, pass it to `fetch()`.
|
|
199
|
+
*/
|
|
200
|
+
type HistoricalRateProvider = (from: string, to: string, isoDate: string, signal: AbortSignal) => Promise<number>;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Configuration for {@link createCurrencyPackage}.
|
|
204
|
+
*
|
|
205
|
+
* Live conversion (`100 USD in GBP`) needs no configuration, it is backed by
|
|
206
|
+
* the built-in Frankfurter/CoinGecko fetch and works out of the box. Only the
|
|
207
|
+
* historical form (`100 USD in GBP on <date>`) needs a host-supplied data
|
|
208
|
+
* source, since no free keyless historical-FX endpoint exists to bake in. See
|
|
209
|
+
* `uom/HistoricalCurrency.ts`'s module doc.
|
|
210
|
+
*/
|
|
211
|
+
interface CurrencyPackageConfig {
|
|
212
|
+
/**
|
|
213
|
+
* Resolve the exchange rate for one currency pair on one past date, backed
|
|
214
|
+
* by whichever provider and key the host has. Required for
|
|
215
|
+
* `<money> in <currency> on <date>` to return real data, when omitted, that
|
|
216
|
+
* form resolves to an honest `HISTORICAL_RATES_NOT_CONFIGURED` error `Value`
|
|
217
|
+
* rather than falling back to today's rate.
|
|
218
|
+
*/
|
|
219
|
+
historicalRateProvider?: HistoricalRateProvider;
|
|
220
|
+
}
|
|
221
|
+
|
|
171
222
|
/**
|
|
172
223
|
* Currency: `$10`, `£10`, `€10`, `¥10`, `₽10`, `₩10`, `₹10`, `₺10`, `₴10`,
|
|
173
|
-
* `₪10`, `₫10`, `₦10`, `₱10`, `10 USD in GBP`,
|
|
174
|
-
* `10 euros`/`10 dollars` (see `uom/CurrencyAliases.ts` for
|
|
175
|
-
* symbol/word alias tables and the ambiguity decisions behind them)
|
|
176
|
-
*
|
|
177
|
-
*
|
|
224
|
+
* `₪10`, `₫10`, `₦10`, `₱10`, `10 USD in GBP`, `100 USD in GBP on 2024-01-15`,
|
|
225
|
+
* and word forms like `10 euros`/`10 dollars` (see `uom/CurrencyAliases.ts` for
|
|
226
|
+
* the full symbol/word alias tables and the ambiguity decisions behind them).
|
|
227
|
+
*
|
|
228
|
+
* Live rates are fetched asynchronously (via {@link CurrencyAsyncResolver}) and
|
|
229
|
+
* the expression shows Pending until they resolve. The dated `on <date>` form
|
|
230
|
+
* resolves through a HOST-SUPPLIED {@link CurrencyPackageConfig.historicalRateProvider}
|
|
231
|
+
* instead, unconfigured, it reports `HISTORICAL_RATES_NOT_CONFIGURED` plainly
|
|
232
|
+
* rather than drifting to today's rate (see `uom/HistoricalCurrency.ts`).
|
|
233
|
+
*
|
|
234
|
+
* **A factory, but still a default builtin.** Unlike stocks (no free provider,
|
|
235
|
+
* so excluded from `BUILTIN_PACKAGES`), the LIVE half of currency needs no
|
|
236
|
+
* configuration, so {@link CURRENCY_PACKAGE} = `createCurrencyPackage()` ships
|
|
237
|
+
* as a default. The historical resolver is registered either way, so the
|
|
238
|
+
* grammar always recognises `on <date>` and answers the not-configured case
|
|
239
|
+
* honestly; supplying a provider is what turns that error into a real rate. A
|
|
240
|
+
* host wanting historical conversion calls `createCurrencyPackage({ historicalRateProvider })`
|
|
241
|
+
* and swaps the result in for the default in its `packages` array.
|
|
242
|
+
*/
|
|
243
|
+
declare function createCurrencyPackage(config?: CurrencyPackageConfig): IEnginePackage;
|
|
244
|
+
/**
|
|
245
|
+
* The default currency package, live rates configured, historical rates NOT.
|
|
246
|
+
*
|
|
247
|
+
* Kept as a named constant so existing imports and {@link BUILTIN_PACKAGES}
|
|
248
|
+
* keep working unchanged, a host wanting historical conversion builds its own
|
|
249
|
+
* via {@link createCurrencyPackage} and substitutes it in.
|
|
178
250
|
*/
|
|
179
251
|
declare const CURRENCY_PACKAGE: IEnginePackage;
|
|
180
252
|
|
|
@@ -640,6 +712,38 @@ declare function createKnowledgePackage(config?: KnowledgePackageConfig): IEngin
|
|
|
640
712
|
*/
|
|
641
713
|
declare const LINES_PACKAGE: IEnginePackage;
|
|
642
714
|
|
|
715
|
+
/**
|
|
716
|
+
* Read a markdown table's column as data: `sum of column "cost" in table
|
|
717
|
+
* above`, `average of column "cost" above`.
|
|
718
|
+
*
|
|
719
|
+
* A markdown table is the one block the evaluator classifies and then skips,
|
|
720
|
+
* so a note can hold a table of numbers and none of them can be totalled from
|
|
721
|
+
* where they sit. This package addresses the nearest table above the query
|
|
722
|
+
* line, names one of its columns, and reduces that column's numeric cells,
|
|
723
|
+
* reusing the same cross-line plumbing the lines package built for `total
|
|
724
|
+
* above` (a per-line `LineExecutionContext`, extended with `getLineText` so
|
|
725
|
+
* the skipped table rows can be read back from source).
|
|
726
|
+
*
|
|
727
|
+
* Trigger-word collision policy (this codebase's phrase-fusion rule, see
|
|
728
|
+
* `MathPhrasesPackage.ts`): the whole verb-and-noun is phrase-fused, never the
|
|
729
|
+
* bare verb. `average of` is already fused to `AVERAGE_OF` by the math-phrases
|
|
730
|
+
* package; registering the longer `average of column` in the same phrase trie
|
|
731
|
+
* wins by longest-match, so plain `average of 1, 2, 3` is untouched while
|
|
732
|
+
* `average of column "x"` routes here. `sum of` is claimed by no one, so
|
|
733
|
+
* `sum of column` fuses cleanly. Synonyms (`total`->sum, `mean`->average)
|
|
734
|
+
* share a token type and parselet, matching how the lines package treats
|
|
735
|
+
* `sum`/`total` as one.
|
|
736
|
+
*
|
|
737
|
+
* Decisions worth stating (also in the docs and changeset):
|
|
738
|
+
* - Addressing: nearest table above only. An explicit table label is deferred.
|
|
739
|
+
* - Non-numeric cells: skipped, not an error, so a stray label or a blank cell
|
|
740
|
+
* does not break an otherwise-numeric column. A column with no numbers at all
|
|
741
|
+
* is a clear error (except `count`, which is then zero).
|
|
742
|
+
* - Currency and units in cells: not read yet. A cell carrying a `$` or a unit
|
|
743
|
+
* is treated as non-numeric and skipped. Plain numbers first, on purpose.
|
|
744
|
+
*/
|
|
745
|
+
declare const TABLES_PACKAGE: IEnginePackage;
|
|
746
|
+
|
|
643
747
|
/**
|
|
644
748
|
* Built-in packages.
|
|
645
749
|
*
|
|
@@ -658,8 +762,8 @@ declare const LINES_PACKAGE: IEnginePackage;
|
|
|
658
762
|
/**
|
|
659
763
|
* The packages an engine registers when the caller names none.
|
|
660
764
|
*
|
|
661
|
-
* Twenty of the twenty-
|
|
662
|
-
* need a host-supplied data source and do nothing useful without one, so
|
|
765
|
+
* Twenty-four of the twenty-six. Stocks and knowledge are excluded because
|
|
766
|
+
* both need a host-supplied data source and do nothing useful without one, so
|
|
663
767
|
* registering them by default would only produce NOT_CONFIGURED results.
|
|
664
768
|
*
|
|
665
769
|
* Pass a filtered copy to the {@link ExpressionEngine} constructor to opt out
|
|
@@ -688,4 +792,4 @@ interface IVector4 {
|
|
|
688
792
|
w: number;
|
|
689
793
|
}
|
|
690
794
|
|
|
691
|
-
export { ARITHMETIC_PACKAGE, BIGINT_PACKAGE, BUILTIN_PACKAGES, CONDITIONALS_PACKAGE, CONVERTERS_PACKAGE, CURRENCY_PACKAGE, type CityWeather, DATETIME_PACKAGE, DICE_PACKAGE, FINANCE_PACKAGE, FUNCTION_PACKAGE, type IVector2, type IVector3, type IVector4, type KnowledgePackageConfig, LINES_PACKAGE, MAPREDUCE_PACKAGE, MATHPHRASES_PACKAGE, MATRIX_PACKAGE, PERCENTAGE_PACKAGE, SYMBOLIC_PACKAGE, type StockHistoricalQuote, type StockQuote, type StocksPackageConfig, TIME_PACKAGE, UOM_PACKAGE, VARIABLES_PACKAGE, VECTOR_PACKAGE, WEATHER_PACKAGE, type WeatherQueryKind, createKnowledgePackage, createStocksPackage };
|
|
795
|
+
export { ARITHMETIC_PACKAGE, BIGINT_PACKAGE, BUILTIN_PACKAGES, CONDITIONALS_PACKAGE, CONVERTERS_PACKAGE, CURRENCY_PACKAGE, type CityWeather, type CurrencyPackageConfig, DATETIME_PACKAGE, DICE_PACKAGE, FINANCE_PACKAGE, FUNCTION_PACKAGE, type HistoricalRateProvider, type IVector2, type IVector3, type IVector4, type KnowledgePackageConfig, LINES_PACKAGE, MAPREDUCE_PACKAGE, MATHPHRASES_PACKAGE, MATRIX_PACKAGE, PERCENTAGE_PACKAGE, SYMBOLIC_PACKAGE, type StockHistoricalQuote, type StockQuote, type StocksPackageConfig, TABLES_PACKAGE, TIME_PACKAGE, UOM_PACKAGE, VARIABLES_PACKAGE, VECTOR_PACKAGE, WEATHER_PACKAGE, type WeatherQueryKind, createCurrencyPackage, createKnowledgePackage, createStocksPackage };
|
package/dist/packages.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
export { ARITHMETIC_PACKAGE, BIGINT_PACKAGE, BUILTIN_PACKAGES, CONDITIONALS_PACKAGE, CONVERTERS_PACKAGE, CURRENCY_PACKAGE, DATETIME_PACKAGE, DICE_PACKAGE, FINANCE_PACKAGE, FUNCTION_PACKAGE, LINES_PACKAGE, MAPREDUCE_PACKAGE, MATHPHRASES_PACKAGE, MATRIX_PACKAGE, PERCENTAGE_PACKAGE, SYMBOLIC_PACKAGE, TIME_PACKAGE, UOM_PACKAGE, VARIABLES_PACKAGE, VECTOR_PACKAGE, WEATHER_PACKAGE, createKnowledgePackage, createStocksPackage } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { ARITHMETIC_PACKAGE, BIGINT_PACKAGE, BUILTIN_PACKAGES, CONDITIONALS_PACKAGE, CONVERTERS_PACKAGE, CURRENCY_PACKAGE, DATETIME_PACKAGE, DICE_PACKAGE, FINANCE_PACKAGE, FUNCTION_PACKAGE, LINES_PACKAGE, MAPREDUCE_PACKAGE, MATHPHRASES_PACKAGE, MATRIX_PACKAGE, PERCENTAGE_PACKAGE, SYMBOLIC_PACKAGE, TABLES_PACKAGE, TIME_PACKAGE, UOM_PACKAGE, VARIABLES_PACKAGE, VECTOR_PACKAGE, WEATHER_PACKAGE, createCurrencyPackage, createKnowledgePackage, createStocksPackage } from './chunk-4HQKTMWG.js';
|
|
2
|
+
import './chunk-ENKKJYD3.js';
|
|
3
|
+
import './chunk-BYJBUL7U.js';
|
|
4
4
|
import './chunk-3BOK2LDK.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-7KYSUDQO.js';
|
|
6
6
|
import './chunk-NLNDMWZC.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-NKW7LKYU.js';
|
|
8
8
|
import './chunk-GCM5JHMX.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-Z7XGGLI2.js';
|
|
10
|
+
import './chunk-BLI4NIQY.js';
|
|
11
11
|
import './chunk-Z4X2RWOF.js';
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
12
|
+
import './chunk-5HRB36DK.js';
|
|
13
|
+
import './chunk-NNQ2TYDF.js';
|
|
14
|
+
import './chunk-267JPOTF.js';
|
|
15
|
+
import './chunk-MVTOCRV2.js';
|
|
16
|
+
import './chunk-JG6ZJ2WU.js';
|
|
17
|
+
import './chunk-4D6NIHE2.js';
|
|
17
18
|
import './chunk-XBTEO4OB.js';
|
|
18
19
|
import './chunk-SBUFNJVE.js';
|
|
19
20
|
import './chunk-V4XG5QF6.js';
|
|
20
|
-
import './chunk-
|
|
21
|
+
import './chunk-ERCOHGXD.js';
|
|
21
22
|
import './chunk-YLJ4XMA6.js';
|
|
22
23
|
//# sourceMappingURL=packages.js.map
|
|
23
24
|
//# sourceMappingURL=packages.js.map
|
package/dist/parser.cjs
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
3
|
+
var chunkHVRVSI2Z_cjs = require('./chunk-HVRVSI2Z.cjs');
|
|
4
|
+
require('./chunk-XA4CKRML.cjs');
|
|
5
|
+
var chunkJ45BCEZ4_cjs = require('./chunk-J45BCEZ4.cjs');
|
|
6
|
+
var chunkXIYYHA65_cjs = require('./chunk-XIYYHA65.cjs');
|
|
7
|
+
require('./chunk-QFTDTX6K.cjs');
|
|
8
8
|
require('./chunk-OUHT5Z36.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-B4HBEFTB.cjs');
|
|
10
10
|
require('./chunk-B7LXJ6LC.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "ParseletRegistry", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkHVRVSI2Z_cjs.ParseletRegistry; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "Parser", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkHVRVSI2Z_cjs.PrecedenceParser; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "PrecedenceParser", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkHVRVSI2Z_cjs.PrecedenceParser; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "sharedParseletRegistry", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkHVRVSI2Z_cjs.sharedParseletRegistry; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "BindingPower", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkJ45BCEZ4_cjs.BindingPower; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "BytecodeBuilder", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkJ45BCEZ4_cjs.BytecodeBuilder; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "buildBindingPowerTable", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkJ45BCEZ4_cjs.buildBindingPowerTable; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "invalidateBindingPowerTable", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkJ45BCEZ4_cjs.invalidateBindingPowerTable; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "OpCode", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkXIYYHA65_cjs.OpCode; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "getOpCodeName", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkXIYYHA65_cjs.getOpCodeName; }
|
|
53
53
|
});
|
|
54
54
|
//# sourceMappingURL=parser.cjs.map
|
|
55
55
|
//# sourceMappingURL=parser.cjs.map
|
package/dist/parser.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-
|
|
2
|
-
export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-
|
|
3
|
-
import './Token-
|
|
4
|
-
import './pipeline-
|
|
5
|
-
import './Value-
|
|
1
|
+
export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-BHcgK9S7.cjs';
|
|
2
|
+
export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-Bp9xeTmX.cjs';
|
|
3
|
+
import './Token-B1hdkedD.cjs';
|
|
4
|
+
import './pipeline-CtfJtPQc.cjs';
|
|
5
|
+
import './Value-BUi1RA3S.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Named precedence levels for the Pratt parser, from loosest (`Lowest`) to
|
|
@@ -28,6 +28,7 @@ declare const BindingPower: {
|
|
|
28
28
|
readonly Shift: 27;
|
|
29
29
|
readonly Sum: 30;
|
|
30
30
|
readonly Product: 40;
|
|
31
|
+
readonly Uncertainty: 45;
|
|
31
32
|
readonly Exponent: 50;
|
|
32
33
|
readonly Prefix: 60;
|
|
33
34
|
readonly Postfix: 70;
|
package/dist/parser.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-
|
|
2
|
-
export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-
|
|
3
|
-
import './Token-
|
|
4
|
-
import './pipeline-
|
|
5
|
-
import './Value-
|
|
1
|
+
export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-BBT8riYh.js';
|
|
2
|
+
export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-Bp9xeTmX.js';
|
|
3
|
+
import './Token-B1hdkedD.js';
|
|
4
|
+
import './pipeline-DCd5M6Gk.js';
|
|
5
|
+
import './Value-BUi1RA3S.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Named precedence levels for the Pratt parser, from loosest (`Lowest`) to
|
|
@@ -28,6 +28,7 @@ declare const BindingPower: {
|
|
|
28
28
|
readonly Shift: 27;
|
|
29
29
|
readonly Sum: 30;
|
|
30
30
|
readonly Product: 40;
|
|
31
|
+
readonly Uncertainty: 45;
|
|
31
32
|
readonly Exponent: 50;
|
|
32
33
|
readonly Prefix: 60;
|
|
33
34
|
readonly Postfix: 70;
|
package/dist/parser.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ParseletRegistry, PrecedenceParser as Parser, PrecedenceParser, sharedParseletRegistry } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
export { BindingPower, BytecodeBuilder, buildBindingPowerTable, invalidateBindingPowerTable } from './chunk-
|
|
4
|
-
export { OpCode, getOpCodeName } from './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { ParseletRegistry, PrecedenceParser as Parser, PrecedenceParser, sharedParseletRegistry } from './chunk-I4GAWIPW.js';
|
|
2
|
+
import './chunk-CCBZZQAE.js';
|
|
3
|
+
export { BindingPower, BytecodeBuilder, buildBindingPowerTable, invalidateBindingPowerTable } from './chunk-ENKKJYD3.js';
|
|
4
|
+
export { OpCode, getOpCodeName } from './chunk-BLI4NIQY.js';
|
|
5
|
+
import './chunk-4D6NIHE2.js';
|
|
6
6
|
import './chunk-XBTEO4OB.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-ERCOHGXD.js';
|
|
8
8
|
import './chunk-YLJ4XMA6.js';
|
|
9
9
|
//# sourceMappingURL=parser.js.map
|
|
10
10
|
//# sourceMappingURL=parser.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MatrixData, R as RangeData, S as SymbolicNode } from './Value-
|
|
1
|
+
import { M as MatrixData, R as RangeData, C as ColourData, S as SymbolicNode } from './Value-BUi1RA3S.cjs';
|
|
2
2
|
|
|
3
3
|
/** Base event, all events include a timestamp relative to pipeline start */
|
|
4
4
|
interface BaseEvent {
|
|
@@ -46,7 +46,7 @@ interface VmStepEvent extends BaseEvent {
|
|
|
46
46
|
readonly instructionNumber: number;
|
|
47
47
|
readonly stack: ReadonlyArray<{
|
|
48
48
|
readonly type: number;
|
|
49
|
-
readonly value: number | bigint | string | boolean | MatrixData | RangeData | SymbolicNode;
|
|
49
|
+
readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SymbolicNode;
|
|
50
50
|
readonly unit?: string;
|
|
51
51
|
}>;
|
|
52
52
|
}
|
|
@@ -55,7 +55,7 @@ interface VmHaltEvent extends BaseEvent {
|
|
|
55
55
|
readonly type: "vm_halt";
|
|
56
56
|
readonly result?: {
|
|
57
57
|
readonly type: number;
|
|
58
|
-
readonly value: number | bigint | string | boolean | MatrixData | RangeData | SymbolicNode;
|
|
58
|
+
readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SymbolicNode;
|
|
59
59
|
readonly unit?: string;
|
|
60
60
|
};
|
|
61
61
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MatrixData, R as RangeData, S as SymbolicNode } from './Value-
|
|
1
|
+
import { M as MatrixData, R as RangeData, C as ColourData, S as SymbolicNode } from './Value-BUi1RA3S.js';
|
|
2
2
|
|
|
3
3
|
/** Base event, all events include a timestamp relative to pipeline start */
|
|
4
4
|
interface BaseEvent {
|
|
@@ -46,7 +46,7 @@ interface VmStepEvent extends BaseEvent {
|
|
|
46
46
|
readonly instructionNumber: number;
|
|
47
47
|
readonly stack: ReadonlyArray<{
|
|
48
48
|
readonly type: number;
|
|
49
|
-
readonly value: number | bigint | string | boolean | MatrixData | RangeData | SymbolicNode;
|
|
49
|
+
readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SymbolicNode;
|
|
50
50
|
readonly unit?: string;
|
|
51
51
|
}>;
|
|
52
52
|
}
|
|
@@ -55,7 +55,7 @@ interface VmHaltEvent extends BaseEvent {
|
|
|
55
55
|
readonly type: "vm_halt";
|
|
56
56
|
readonly result?: {
|
|
57
57
|
readonly type: number;
|
|
58
|
-
readonly value: number | bigint | string | boolean | MatrixData | RangeData | SymbolicNode;
|
|
58
|
+
readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SymbolicNode;
|
|
59
59
|
readonly unit?: string;
|
|
60
60
|
};
|
|
61
61
|
}
|
package/dist/resolvers.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QueryClient } from '@tanstack/query-core';
|
|
2
|
-
import { T as Token } from './Token-
|
|
3
|
-
import { a as BytecodeProgram } from './BytecodeBuilder-
|
|
4
|
-
import { V as Value } from './Value-
|
|
2
|
+
import { T as Token } from './Token-B1hdkedD.cjs';
|
|
3
|
+
import { a as BytecodeProgram } from './BytecodeBuilder-Bp9xeTmX.cjs';
|
|
4
|
+
import { V as Value } from './Value-BUi1RA3S.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Result from a resolver's preflight() check.
|
package/dist/resolvers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QueryClient } from '@tanstack/query-core';
|
|
2
|
-
import { T as Token } from './Token-
|
|
3
|
-
import { a as BytecodeProgram } from './BytecodeBuilder-
|
|
4
|
-
import { V as Value } from './Value-
|
|
2
|
+
import { T as Token } from './Token-B1hdkedD.js';
|
|
3
|
+
import { a as BytecodeProgram } from './BytecodeBuilder-Bp9xeTmX.js';
|
|
4
|
+
import { V as Value } from './Value-BUi1RA3S.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Result from a resolver's preflight() check.
|