solve-engine 2.5.0 → 2.6.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/{BytecodeBuilder-DGGeByAP.d.cts → BytecodeBuilder-BGq9ZiO3.d.cts} +2 -1
- package/dist/{BytecodeBuilder-DGGeByAP.d.ts → BytecodeBuilder-BGq9ZiO3.d.ts} +2 -1
- package/dist/{PackageCompatibility-UsSZIfHs.d.ts → PackageCompatibility-4QtIErfx.d.ts} +1 -1
- package/dist/{PackageCompatibility-cEClSSkz.d.cts → PackageCompatibility-CCdud__Q.d.cts} +1 -1
- package/dist/{PackageRegistry-B3yJHSxX.d.ts → PackageRegistry-B7wkfSrY.d.ts} +5 -5
- package/dist/{PackageRegistry-BsLmAVZJ.d.cts → PackageRegistry-Hx85XD01.d.cts} +5 -5
- package/dist/{Parselet-C4Wu055_.d.cts → Parselet-CTNpfuEB.d.cts} +2 -2
- package/dist/{Parselet-B-zoPrTa.d.ts → Parselet-DONNUpur.d.ts} +2 -2
- package/dist/{ScopeManager-DkpnlKuz.d.ts → ScopeManager-BkbDXK_R.d.ts} +3 -3
- package/dist/{ScopeManager-t6SnP6Ce.d.cts → ScopeManager-Cvgypcu4.d.cts} +3 -3
- package/dist/{VMCheckpoints-CsHmQVaD.d.ts → VMCheckpoints-9zBQnTsN.d.ts} +3 -3
- package/dist/{VMCheckpoints-C_jQvABf.d.cts → VMCheckpoints-CBMGiSqw.d.cts} +3 -3
- package/dist/{Value-CCi_Eecs.d.cts → Value-D1XlMwe2.d.cts} +40 -5
- package/dist/{Value-CCi_Eecs.d.ts → Value-D1XlMwe2.d.ts} +40 -5
- package/dist/chunk-3AVWA5IZ.cjs +2 -0
- package/dist/chunk-3AVWA5IZ.cjs.map +1 -0
- package/dist/chunk-3DD2RVBI.cjs +3 -0
- package/dist/chunk-3DD2RVBI.cjs.map +1 -0
- package/dist/{chunk-RDMJNRDO.js → chunk-4XTD4B77.js} +3 -3
- package/dist/{chunk-RDMJNRDO.js.map → chunk-4XTD4B77.js.map} +1 -1
- package/dist/chunk-5FGOIDLS.cjs +2 -0
- package/dist/chunk-5FGOIDLS.cjs.map +1 -0
- package/dist/chunk-5OIXCVB2.js +3 -0
- package/dist/chunk-5OIXCVB2.js.map +1 -0
- package/dist/{chunk-NGJMCVH4.cjs → chunk-B4P4M4ZW.cjs} +3 -3
- package/dist/{chunk-NGJMCVH4.cjs.map → chunk-B4P4M4ZW.cjs.map} +1 -1
- package/dist/{chunk-TWC7K3ZX.js → chunk-GHW2X7PS.js} +2 -2
- package/dist/{chunk-TWC7K3ZX.js.map → chunk-GHW2X7PS.js.map} +1 -1
- package/dist/chunk-GKDZ7TSX.cjs +2 -0
- package/dist/chunk-GKDZ7TSX.cjs.map +1 -0
- package/dist/{chunk-7RTKJMYS.js → chunk-HMEZJXLX.js} +2 -2
- package/dist/{chunk-7RTKJMYS.js.map → chunk-HMEZJXLX.js.map} +1 -1
- package/dist/{chunk-FDE5HWDI.cjs → chunk-HOQU47MF.cjs} +2 -2
- package/dist/{chunk-FDE5HWDI.cjs.map → chunk-HOQU47MF.cjs.map} +1 -1
- package/dist/chunk-IO374J6Z.js +2 -0
- package/dist/chunk-IO374J6Z.js.map +1 -0
- package/dist/{chunk-D5MTMRHS.cjs → chunk-KSDTVFXA.cjs} +4 -4
- package/dist/{chunk-D5MTMRHS.cjs.map → chunk-KSDTVFXA.cjs.map} +1 -1
- package/dist/{chunk-YUJNMUKM.cjs → chunk-OVQ3V4CG.cjs} +2 -2
- package/dist/{chunk-YUJNMUKM.cjs.map → chunk-OVQ3V4CG.cjs.map} +1 -1
- package/dist/{chunk-XNIWQHXY.js → chunk-P6BLASAA.js} +2 -2
- package/dist/{chunk-XNIWQHXY.js.map → chunk-P6BLASAA.js.map} +1 -1
- package/dist/{chunk-AXMQG5TS.cjs → chunk-R7T3NGUE.cjs} +2 -2
- package/dist/{chunk-AXMQG5TS.cjs.map → chunk-R7T3NGUE.cjs.map} +1 -1
- package/dist/{chunk-CT5TC3JX.cjs → chunk-SOSUS2SK.cjs} +3 -3
- package/dist/chunk-SOSUS2SK.cjs.map +1 -0
- package/dist/chunk-SWKYVSMP.js +2 -0
- package/dist/chunk-SWKYVSMP.js.map +1 -0
- package/dist/chunk-T4Y5XOT2.js +3 -0
- package/dist/chunk-T4Y5XOT2.js.map +1 -0
- package/dist/{chunk-LOM3H5ZD.js → chunk-T52Y5G24.js} +4 -4
- package/dist/{chunk-LOM3H5ZD.js.map → chunk-T52Y5G24.js.map} +1 -1
- package/dist/{chunk-JFAJN3C2.cjs → chunk-VBSMA7WJ.cjs} +2 -2
- package/dist/chunk-VBSMA7WJ.cjs.map +1 -0
- package/dist/{chunk-RSF25YSJ.js → chunk-VYWGUMFW.js} +2 -2
- package/dist/{chunk-RSF25YSJ.js.map → chunk-VYWGUMFW.js.map} +1 -1
- package/dist/chunk-XTM4HTRB.js +2 -0
- package/dist/{chunk-LBNX7TXI.js.map → chunk-XTM4HTRB.js.map} +1 -1
- package/dist/{chunk-E6Z4NQAS.js → chunk-YNMMRH44.js} +2 -2
- package/dist/chunk-YNMMRH44.js.map +1 -0
- package/dist/chunk-Z5KBBQOJ.cjs +2 -0
- package/dist/{chunk-YFWAR766.cjs.map → chunk-Z5KBBQOJ.cjs.map} +1 -1
- package/dist/chunk-ZJPAPBP3.js +2 -0
- package/dist/chunk-ZJPAPBP3.js.map +1 -0
- package/dist/{chunk-N7N7MPMK.cjs → chunk-ZOOVGXMK.cjs} +2 -2
- package/dist/{chunk-N7N7MPMK.cjs.map → chunk-ZOOVGXMK.cjs.map} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/engine.cjs +1 -1
- package/dist/engine.d.cts +8 -8
- package/dist/engine.d.ts +8 -8
- package/dist/engine.js +1 -1
- package/dist/format.cjs +1 -1
- package/dist/format.d.cts +1 -1
- package/dist/format.d.ts +1 -1
- package/dist/format.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1 -1
- package/dist/language.d.cts +7 -7
- package/dist/language.d.ts +7 -7
- package/dist/packages.cjs +1 -1
- package/dist/packages.d.cts +7 -7
- package/dist/packages.d.ts +7 -7
- package/dist/packages.js +1 -1
- package/dist/parser.cjs +1 -1
- package/dist/parser.d.cts +4 -4
- package/dist/parser.d.ts +4 -4
- package/dist/parser.js +1 -1
- package/dist/{pipeline-72QmQlGx.d.ts → pipeline-BH7BFOTJ.d.ts} +3 -3
- package/dist/{pipeline-DCQicwWX.d.cts → pipeline-DY0rhgQG.d.cts} +3 -3
- package/dist/resolvers.d.cts +2 -2
- package/dist/resolvers.d.ts +2 -2
- package/dist/testing.cjs +2 -2
- package/dist/testing.d.cts +7 -7
- package/dist/testing.d.ts +7 -7
- package/dist/testing.js +1 -1
- package/dist/uom.cjs +1 -1
- package/dist/uom.d.cts +2 -2
- package/dist/uom.d.ts +2 -2
- package/dist/uom.js +1 -1
- package/dist/vm.cjs +1 -1
- package/dist/vm.d.cts +7 -7
- package/dist/vm.d.ts +7 -7
- package/dist/vm.js +1 -1
- package/dist/worker.cjs +2 -2
- package/dist/worker.cjs.map +1 -1
- package/dist/worker.d.cts +22 -6
- package/dist/worker.d.ts +22 -6
- package/dist/worker.js +2 -2
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2HQWM5OB.js +0 -3
- package/dist/chunk-2HQWM5OB.js.map +0 -1
- package/dist/chunk-6G3PMEPA.js +0 -2
- package/dist/chunk-6G3PMEPA.js.map +0 -1
- package/dist/chunk-6INX773F.cjs +0 -2
- package/dist/chunk-6INX773F.cjs.map +0 -1
- package/dist/chunk-6ZNNPXXE.cjs +0 -3
- package/dist/chunk-6ZNNPXXE.cjs.map +0 -1
- package/dist/chunk-ANJPS6FF.cjs +0 -2
- package/dist/chunk-ANJPS6FF.cjs.map +0 -1
- package/dist/chunk-B5NBFGNP.js +0 -3
- package/dist/chunk-B5NBFGNP.js.map +0 -1
- package/dist/chunk-CT5TC3JX.cjs.map +0 -1
- package/dist/chunk-E6Z4NQAS.js.map +0 -1
- package/dist/chunk-EVAOPEO4.js +0 -2
- package/dist/chunk-EVAOPEO4.js.map +0 -1
- package/dist/chunk-JFAJN3C2.cjs.map +0 -1
- package/dist/chunk-LBNX7TXI.js +0 -2
- package/dist/chunk-PS272DZJ.cjs +0 -2
- package/dist/chunk-PS272DZJ.cjs.map +0 -1
- package/dist/chunk-QEYTENAK.js +0 -2
- package/dist/chunk-QEYTENAK.js.map +0 -1
- package/dist/chunk-YFWAR766.cjs +0 -2
package/dist/constants.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOVQ3V4CG_cjs=require('./chunk-OVQ3V4CG.cjs');require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"ConfigManager",{enumerable:true,get:function(){return chunkOVQ3V4CG_cjs.d}});Object.defineProperty(exports,"DEFAULT_CONFIG",{enumerable:true,get:function(){return chunkOVQ3V4CG_cjs.b}});Object.defineProperty(exports,"ENGINE_VERSION",{enumerable:true,get:function(){return chunkOVQ3V4CG_cjs.a}});//# sourceMappingURL=constants.cjs.map
|
|
2
2
|
//# sourceMappingURL=constants.cjs.map
|
package/dist/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{d as ConfigManager,b as DEFAULT_CONFIG,a as ENGINE_VERSION}from'./chunk-
|
|
1
|
+
export{d as ConfigManager,b as DEFAULT_CONFIG,a as ENGINE_VERSION}from'./chunk-HMEZJXLX.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=constants.js.map
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
package/dist/engine.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkB4P4M4ZW_cjs=require('./chunk-B4P4M4ZW.cjs');require('./chunk-EFJCC6FJ.cjs');var chunkKSDTVFXA_cjs=require('./chunk-KSDTVFXA.cjs');require('./chunk-HOQU47MF.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-LNZNJSRW.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-GKDZ7TSX.cjs'),require('./chunk-R7T3NGUE.cjs'),require('./chunk-3DD2RVBI.cjs'),require('./chunk-R2SZFJTT.cjs'),require('./chunk-NXIMGB4S.cjs'),require('./chunk-4QVBSG6B.cjs'),require('./chunk-VAGS5JS7.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-Z5KBBQOJ.cjs'),require('./chunk-4BZIYU7S.cjs'),require('./chunk-VBSMA7WJ.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-ESUN2THE.cjs'),require('./chunk-ZOOVGXMK.cjs'),require('./chunk-5FGOIDLS.cjs'),require('./chunk-IANAMBJQ.cjs'),require('./chunk-OVQ3V4CG.cjs'),require('./chunk-32GC2FHC.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-2LFLR3VZ.cjs'),require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-FWW3M36J.cjs'),require('./chunk-CIQOK7Q4.cjs'),require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"DocumentModel",{enumerable:true,get:function(){return chunkB4P4M4ZW_cjs.a}});Object.defineProperty(exports,"EvalTier",{enumerable:true,get:function(){return chunkB4P4M4ZW_cjs.b}});Object.defineProperty(exports,"ThreeTierEvaluator",{enumerable:true,get:function(){return chunkB4P4M4ZW_cjs.c}});Object.defineProperty(exports,"evaluateDocument",{enumerable:true,get:function(){return chunkB4P4M4ZW_cjs.d}});Object.defineProperty(exports,"AsyncResolutionBatcher",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.h}});Object.defineProperty(exports,"ExpressionEngine",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.n}});Object.defineProperty(exports,"SNAPSHOT_FORMAT",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.d}});Object.defineProperty(exports,"SNAPSHOT_VERSION",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.e}});Object.defineProperty(exports,"SnapshotErrorCodes",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.f}});Object.defineProperty(exports,"checkExpressionComplexity",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.j}});Object.defineProperty(exports,"checkExpressionLength",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.i}});Object.defineProperty(exports,"extractReadsAndWrites",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.k}});Object.defineProperty(exports,"findInlineSolvesInLine",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.m}});Object.defineProperty(exports,"isEmptyLine",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.l}});//# sourceMappingURL=engine.cjs.map
|
|
2
2
|
//# sourceMappingURL=engine.cjs.map
|
package/dist/engine.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { D as DocumentModel, E as ExpressionEngine, V as ViewportRange, r as LineChange, U as UnifiedParsingOptions, P as ParsingResult, s as InlineSolvePosition } from './PackageRegistry-
|
|
2
|
-
export { A as ApplyChangesResult, t as AsyncCachePackageInfo, u as AsyncErrorEvent, v as AsyncResolutionBatcher, w as AsyncResolutionEvent, B as BatcherMetrics, x as BytecodeCacheEntry, y as CacheSnapshot, z as CheckpointSnapshot, a as EngineOptions, b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, F as LineCacheEntryInfo, G as LineState, H as LinesUpdatedEvent, J as ParsedLine, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-
|
|
3
|
-
import { V as Value } from './Value-
|
|
4
|
-
import { a as VMCheckpointer } from './VMCheckpoints-
|
|
1
|
+
import { D as DocumentModel, E as ExpressionEngine, V as ViewportRange, r as LineChange, U as UnifiedParsingOptions, P as ParsingResult, s as InlineSolvePosition } from './PackageRegistry-Hx85XD01.cjs';
|
|
2
|
+
export { A as ApplyChangesResult, t as AsyncCachePackageInfo, u as AsyncErrorEvent, v as AsyncResolutionBatcher, w as AsyncResolutionEvent, B as BatcherMetrics, x as BytecodeCacheEntry, y as CacheSnapshot, z as CheckpointSnapshot, a as EngineOptions, b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, F as LineCacheEntryInfo, G as LineState, H as LinesUpdatedEvent, J as ParsedLine, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-Hx85XD01.cjs';
|
|
3
|
+
import { V as Value } from './Value-D1XlMwe2.cjs';
|
|
4
|
+
import { a as VMCheckpointer } from './VMCheckpoints-CBMGiSqw.cjs';
|
|
5
5
|
import { T as Token } from './Token-CbP_OutD.cjs';
|
|
6
6
|
import { E as EngineError } from './EngineError-Ce1lPkjZ.cjs';
|
|
7
|
-
import { a as BytecodeProgram } from './BytecodeBuilder-
|
|
8
|
-
export { a as DagSnapshot } from './ScopeManager-
|
|
9
|
-
import './Parselet-
|
|
10
|
-
import './pipeline-
|
|
7
|
+
import { a as BytecodeProgram } from './BytecodeBuilder-BGq9ZiO3.cjs';
|
|
8
|
+
export { a as DagSnapshot } from './ScopeManager-Cvgypcu4.cjs';
|
|
9
|
+
import './Parselet-CTNpfuEB.cjs';
|
|
10
|
+
import './pipeline-DY0rhgQG.cjs';
|
|
11
11
|
import './Lexer-B4C1qHXu.cjs';
|
|
12
12
|
import './resolvers.cjs';
|
|
13
13
|
import '@tanstack/query-core';
|
package/dist/engine.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { D as DocumentModel, E as ExpressionEngine, V as ViewportRange, r as LineChange, U as UnifiedParsingOptions, P as ParsingResult, s as InlineSolvePosition } from './PackageRegistry-
|
|
2
|
-
export { A as ApplyChangesResult, t as AsyncCachePackageInfo, u as AsyncErrorEvent, v as AsyncResolutionBatcher, w as AsyncResolutionEvent, B as BatcherMetrics, x as BytecodeCacheEntry, y as CacheSnapshot, z as CheckpointSnapshot, a as EngineOptions, b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, F as LineCacheEntryInfo, G as LineState, H as LinesUpdatedEvent, J as ParsedLine, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-
|
|
3
|
-
import { V as Value } from './Value-
|
|
4
|
-
import { a as VMCheckpointer } from './VMCheckpoints-
|
|
1
|
+
import { D as DocumentModel, E as ExpressionEngine, V as ViewportRange, r as LineChange, U as UnifiedParsingOptions, P as ParsingResult, s as InlineSolvePosition } from './PackageRegistry-B7wkfSrY.js';
|
|
2
|
+
export { A as ApplyChangesResult, t as AsyncCachePackageInfo, u as AsyncErrorEvent, v as AsyncResolutionBatcher, w as AsyncResolutionEvent, B as BatcherMetrics, x as BytecodeCacheEntry, y as CacheSnapshot, z as CheckpointSnapshot, a as EngineOptions, b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, F as LineCacheEntryInfo, G as LineState, H as LinesUpdatedEvent, J as ParsedLine, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-B7wkfSrY.js';
|
|
3
|
+
import { V as Value } from './Value-D1XlMwe2.js';
|
|
4
|
+
import { a as VMCheckpointer } from './VMCheckpoints-9zBQnTsN.js';
|
|
5
5
|
import { T as Token } from './Token-CbP_OutD.js';
|
|
6
6
|
import { E as EngineError } from './EngineError-Ce1lPkjZ.js';
|
|
7
|
-
import { a as BytecodeProgram } from './BytecodeBuilder-
|
|
8
|
-
export { a as DagSnapshot } from './ScopeManager-
|
|
9
|
-
import './Parselet-
|
|
10
|
-
import './pipeline-
|
|
7
|
+
import { a as BytecodeProgram } from './BytecodeBuilder-BGq9ZiO3.js';
|
|
8
|
+
export { a as DagSnapshot } from './ScopeManager-BkbDXK_R.js';
|
|
9
|
+
import './Parselet-DONNUpur.js';
|
|
10
|
+
import './pipeline-BH7BFOTJ.js';
|
|
11
11
|
import './Lexer-DKMlj7Sy.js';
|
|
12
12
|
import './resolvers.js';
|
|
13
13
|
import '@tanstack/query-core';
|
package/dist/engine.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as DocumentModel,b as EvalTier,c as ThreeTierEvaluator,d as evaluateDocument}from'./chunk-
|
|
1
|
+
export{a as DocumentModel,b as EvalTier,c as ThreeTierEvaluator,d as evaluateDocument}from'./chunk-4XTD4B77.js';import'./chunk-RAF57WYO.js';export{h as AsyncResolutionBatcher,n as ExpressionEngine,d as SNAPSHOT_FORMAT,e as SNAPSHOT_VERSION,f as SnapshotErrorCodes,j as checkExpressionComplexity,i as checkExpressionLength,k as extractReadsAndWrites,m as findInlineSolvesInLine,l as isEmptyLine}from'./chunk-T52Y5G24.js';import'./chunk-P6BLASAA.js';import'./chunk-2RWAXT6O.js';import'./chunk-7E7NXKQ5.js';import'./chunk-MIQBJGGR.js';import'./chunk-ZJPAPBP3.js';import'./chunk-GHW2X7PS.js';import'./chunk-5OIXCVB2.js';import'./chunk-XEIDV5JP.js';import'./chunk-AR7L5OJ2.js';import'./chunk-YVKHEAFT.js';import'./chunk-5FO4PDIG.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-XTM4HTRB.js';import'./chunk-YAYBVVG2.js';import'./chunk-YNMMRH44.js';import'./chunk-HFKDWQUL.js';import'./chunk-R2ENWQ76.js';import'./chunk-VYWGUMFW.js';import'./chunk-IO374J6Z.js';import'./chunk-WGZ3FNHI.js';import'./chunk-HMEZJXLX.js';import'./chunk-YAHGSBMC.js';import'./chunk-JPFCXLJV.js';import'./chunk-G7TBEQRQ.js';import'./chunk-IJMNVBIS.js';import'./chunk-62LMTO4F.js';import'./chunk-TRBXW6HW.js';import'./chunk-2JMFUQZH.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=engine.js.map
|
|
2
2
|
//# sourceMappingURL=engine.js.map
|
package/dist/format.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk3DD2RVBI_cjs=require('./chunk-3DD2RVBI.cjs');require('./chunk-R2SZFJTT.cjs'),require('./chunk-ESUN2THE.cjs'),require('./chunk-ZOOVGXMK.cjs'),require('./chunk-5FGOIDLS.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"DEFAULT_FORMATTING_SETTINGS",{enumerable:true,get:function(){return chunk3DD2RVBI_cjs.a}});Object.defineProperty(exports,"formatMatrixAligned",{enumerable:true,get:function(){return chunk3DD2RVBI_cjs.b}});Object.defineProperty(exports,"formatValue",{enumerable:true,get:function(){return chunk3DD2RVBI_cjs.c}});//# sourceMappingURL=format.cjs.map
|
|
2
2
|
//# sourceMappingURL=format.cjs.map
|
package/dist/format.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MatrixData, V as Value } from './Value-
|
|
1
|
+
import { M as MatrixData, V as Value } from './Value-D1XlMwe2.cjs';
|
|
2
2
|
import { F as FormattingSettings } from './FormattingSettings-bRKjU7wI.cjs';
|
|
3
3
|
export { D as DEFAULT_FORMATTING_SETTINGS } from './FormattingSettings-bRKjU7wI.cjs';
|
|
4
4
|
|
package/dist/format.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MatrixData, V as Value } from './Value-
|
|
1
|
+
import { M as MatrixData, V as Value } from './Value-D1XlMwe2.js';
|
|
2
2
|
import { F as FormattingSettings } from './FormattingSettings-bRKjU7wI.js';
|
|
3
3
|
export { D as DEFAULT_FORMATTING_SETTINGS } from './FormattingSettings-bRKjU7wI.js';
|
|
4
4
|
|
package/dist/format.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as DEFAULT_FORMATTING_SETTINGS,b as formatMatrixAligned,c as formatValue}from'./chunk-
|
|
1
|
+
export{a as DEFAULT_FORMATTING_SETTINGS,b as formatMatrixAligned,c as formatValue}from'./chunk-5OIXCVB2.js';import'./chunk-XEIDV5JP.js';import'./chunk-R2ENWQ76.js';import'./chunk-VYWGUMFW.js';import'./chunk-IO374J6Z.js';import'./chunk-62LMTO4F.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=format.js.map
|
|
2
2
|
//# sourceMappingURL=format.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';require('./chunk-
|
|
1
|
+
'use strict';require('./chunk-B4P4M4ZW.cjs'),require('./chunk-EFJCC6FJ.cjs');var chunkKSDTVFXA_cjs=require('./chunk-KSDTVFXA.cjs');require('./chunk-HOQU47MF.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-LNZNJSRW.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-GKDZ7TSX.cjs'),require('./chunk-R7T3NGUE.cjs'),require('./chunk-3DD2RVBI.cjs'),require('./chunk-R2SZFJTT.cjs');var chunkSOSUS2SK_cjs=require('./chunk-SOSUS2SK.cjs');require('./chunk-3AVWA5IZ.cjs'),require('./chunk-NXIMGB4S.cjs');var chunk4QVBSG6B_cjs=require('./chunk-4QVBSG6B.cjs');require('./chunk-VAGS5JS7.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-Z5KBBQOJ.cjs'),require('./chunk-4BZIYU7S.cjs'),require('./chunk-VBSMA7WJ.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-ESUN2THE.cjs'),require('./chunk-ZOOVGXMK.cjs');var chunk5FGOIDLS_cjs=require('./chunk-5FGOIDLS.cjs');require('./chunk-IANAMBJQ.cjs');var chunkOVQ3V4CG_cjs=require('./chunk-OVQ3V4CG.cjs');require('./chunk-32GC2FHC.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-2LFLR3VZ.cjs'),require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-FWW3M36J.cjs'),require('./chunk-CIQOK7Q4.cjs');var chunkSOMGSIO4_cjs=require('./chunk-SOMGSIO4.cjs');var r={DEFINE_FUNCTION_INVALID_NAME:"DEFINE_FUNCTION_INVALID_NAME",DEFINE_FUNCTION_INVALID_SPEC:"DEFINE_FUNCTION_INVALID_SPEC",DEFINE_FUNCTION_ARITY_MISMATCH:"DEFINE_FUNCTION_ARITY_MISMATCH",DEFINE_FUNCTION_ARGUMENT_TYPE:"DEFINE_FUNCTION_ARGUMENT_TYPE",DEFINE_FUNCTION_RETURN_TYPE:"DEFINE_FUNCTION_RETURN_TYPE"},b=/^[a-z_][a-z0-9_]*$/i,y=new Set(["number","string","boolean"]);function u(e){return e===1?"1 argument":`${e} arguments`}function f(e){switch(e.type){case 0:case 1:return "a number";case 3:return "a string";case 10:return "a boolean";case 2:return "a big integer";case 5:return "a percentage";case 6:return "a value with a unit";case 4:return "a date";case 7:return "a matrix";case 8:return "a range";case 9:return "a symbolic expression";default:return "an unsupported value"}}function A(e,n,t){switch(n.type){case "number":if(e.type===0||e.type===1)return e.toNumber();break;case "string":if(e.type===3)return e.value;break;case "boolean":if(e.type===10)return e.value;break}throw chunkSOMGSIO4_cjs.c.execution({code:r.DEFINE_FUNCTION_ARGUMENT_TYPE,message:`${t}() expects "${n.name}" to be a ${n.type}, but was given ${f(e)}`,expected:`a ${n.type}`,found:f(e),context:{functionName:t,argName:n.name,expectedType:n.type}})}function S(e,n,t){switch(n){case "number":if(typeof e=="number")return chunk5FGOIDLS_cjs.n(e);break;case "string":if(typeof e=="string")return chunk5FGOIDLS_cjs.t(e);break;case "boolean":if(typeof e=="boolean")return chunk5FGOIDLS_cjs.K(e);break}throw chunkSOMGSIO4_cjs.c.internal({code:r.DEFINE_FUNCTION_RETURN_TYPE,message:`${t}() is declared to return a ${n}, but its implementation returned ${typeof e}`,expected:`a ${n}`,found:typeof e,context:{functionName:t,expectedType:n}})}var p=class{constructor(n){this.fnName=n;this.category="Function";}parse(n,t,i){n.consume("LPAREN");let a=0;if(n.peek()?.type!=="RPAREN")for(n.parseExpression(chunk4QVBSG6B_cjs.a.Lowest,i),a++;n.match("COMMA");)n.parseExpression(chunk4QVBSG6B_cjs.a.Lowest,i),a++;n.consume("RPAREN"),i.emitPluginCall(this.fnName,a);}};function P(e){let n=e.args.length;return t=>{if(t.length!==n)throw chunkSOMGSIO4_cjs.c.execution({code:r.DEFINE_FUNCTION_ARITY_MISMATCH,message:`${e.name}() takes ${u(n)}, but was given ${t.length===0?"none":u(t.length)}`,expected:u(n),found:t.length===0?"none":u(t.length),context:{functionName:e.name,expected:n,actual:t.length}});let i=new Array(n);for(let s=0;s<n;s++)i[s]=A(t[s],e.args[s],e.name);let a=e.call(...i);return S(a,e.returns,e.name)}}function V(e){if(typeof e?.name!="string"||!b.test(e.name))throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_NAME,message:`defineFunction: name must be a single identifier, got ${JSON.stringify(e?.name)}`,suggestion:'e.g. "vat" or "net_price"',context:{name:e?.name}});if(!Array.isArray(e.args))throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" args must be an array`,context:{name:e.name}});for(let n of e.args){if(typeof n?.name!="string"||n.name.length===0)throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has an argument with no name`,context:{name:e.name}});if(!y.has(n.type))throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" argument "${n.name}" has unsupported type ${JSON.stringify(n.type)}`,suggestion:"supported argument types are number, string, boolean",context:{name:e.name,argName:n.name,type:n.type}})}if(!y.has(e.returns))throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has unsupported return type ${JSON.stringify(e.returns)}`,suggestion:"supported return types are number, string, boolean",context:{name:e.name,returns:e.returns}});if(typeof e.call!="function")throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" is missing a call implementation`,context:{name:e.name}})}function O(e){V(e);let n=e.name,t=`DEFINE_FN_${n.toUpperCase()}`;return {name:`solve-fn-${n}`,lexerVocabulary:{keywords:{[n.toLowerCase()]:t}},prefixParselets:{[t]:new p(n)},pluginFunctions:{[n]:P(e)}}}function h(e={}){let{extraPackages:n=[],...t}=e;return new chunkKSDTVFXA_cjs.n({...t,packages:n.length>0?[...chunkSOSUS2SK_cjs.y,...n]:chunkSOSUS2SK_cjs.y})}Object.defineProperty(exports,"ExpressionEngine",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.n}});Object.defineProperty(exports,"SNAPSHOT_FORMAT",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.d}});Object.defineProperty(exports,"SNAPSHOT_VERSION",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.e}});Object.defineProperty(exports,"SnapshotErrorCodes",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.f}});Object.defineProperty(exports,"assertEngineVersionCompatible",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.c}});Object.defineProperty(exports,"checkEngineVersionCompatibility",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.b}});Object.defineProperty(exports,"checkPackageCompatibility",{enumerable:true,get:function(){return chunkKSDTVFXA_cjs.a}});Object.defineProperty(exports,"ENGINE_VERSION",{enumerable:true,get:function(){return chunkOVQ3V4CG_cjs.a}});exports.DefineFunctionErrorCodes=r;exports.createEngine=h;exports.defineFunction=O;//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { I as IEnginePackage, a as EngineOptions, E as ExpressionEngine } from './PackageRegistry-
|
|
2
|
-
export { b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-
|
|
3
|
-
export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-
|
|
1
|
+
import { I as IEnginePackage, a as EngineOptions, E as ExpressionEngine } from './PackageRegistry-Hx85XD01.cjs';
|
|
2
|
+
export { b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-Hx85XD01.cjs';
|
|
3
|
+
export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-CCdud__Q.cjs';
|
|
4
4
|
export { E as EngineConfigOverride } from './Configuration-BGQn-cJ8.cjs';
|
|
5
5
|
export { ENGINE_VERSION } from './constants.cjs';
|
|
6
|
-
import './Parselet-
|
|
7
|
-
import './BytecodeBuilder-
|
|
6
|
+
import './Parselet-CTNpfuEB.cjs';
|
|
7
|
+
import './BytecodeBuilder-BGq9ZiO3.cjs';
|
|
8
8
|
import './Token-CbP_OutD.cjs';
|
|
9
|
-
import './pipeline-
|
|
10
|
-
import './Value-
|
|
9
|
+
import './pipeline-DY0rhgQG.cjs';
|
|
10
|
+
import './Value-D1XlMwe2.cjs';
|
|
11
11
|
import './Lexer-B4C1qHXu.cjs';
|
|
12
12
|
import './resolvers.cjs';
|
|
13
13
|
import '@tanstack/query-core';
|
|
14
14
|
import './TokenNormalizer-DnlL7_8c.cjs';
|
|
15
|
-
import './ScopeManager-
|
|
15
|
+
import './ScopeManager-Cvgypcu4.cjs';
|
|
16
16
|
import './EngineError-Ce1lPkjZ.cjs';
|
|
17
17
|
|
|
18
18
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { I as IEnginePackage, a as EngineOptions, E as ExpressionEngine } from './PackageRegistry-
|
|
2
|
-
export { b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-
|
|
3
|
-
export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-
|
|
1
|
+
import { I as IEnginePackage, a as EngineOptions, E as ExpressionEngine } from './PackageRegistry-B7wkfSrY.js';
|
|
2
|
+
export { b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-B7wkfSrY.js';
|
|
3
|
+
export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-4QtIErfx.js';
|
|
4
4
|
export { E as EngineConfigOverride } from './Configuration-BGQn-cJ8.js';
|
|
5
5
|
export { ENGINE_VERSION } from './constants.js';
|
|
6
|
-
import './Parselet-
|
|
7
|
-
import './BytecodeBuilder-
|
|
6
|
+
import './Parselet-DONNUpur.js';
|
|
7
|
+
import './BytecodeBuilder-BGq9ZiO3.js';
|
|
8
8
|
import './Token-CbP_OutD.js';
|
|
9
|
-
import './pipeline-
|
|
10
|
-
import './Value-
|
|
9
|
+
import './pipeline-BH7BFOTJ.js';
|
|
10
|
+
import './Value-D1XlMwe2.js';
|
|
11
11
|
import './Lexer-DKMlj7Sy.js';
|
|
12
12
|
import './resolvers.js';
|
|
13
13
|
import '@tanstack/query-core';
|
|
14
14
|
import './TokenNormalizer-DCWdZjGz.js';
|
|
15
|
-
import './ScopeManager-
|
|
15
|
+
import './ScopeManager-BkbDXK_R.js';
|
|
16
16
|
import './EngineError-Ce1lPkjZ.js';
|
|
17
17
|
|
|
18
18
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import'./chunk-
|
|
1
|
+
import'./chunk-4XTD4B77.js';import'./chunk-RAF57WYO.js';import {n}from'./chunk-T52Y5G24.js';export{n as ExpressionEngine,d as SNAPSHOT_FORMAT,e as SNAPSHOT_VERSION,f as SnapshotErrorCodes,c as assertEngineVersionCompatible,b as checkEngineVersionCompatibility,a as checkPackageCompatibility}from'./chunk-T52Y5G24.js';import'./chunk-P6BLASAA.js';import'./chunk-2RWAXT6O.js';import'./chunk-7E7NXKQ5.js';import'./chunk-MIQBJGGR.js';import'./chunk-ZJPAPBP3.js';import'./chunk-GHW2X7PS.js';import'./chunk-5OIXCVB2.js';import'./chunk-XEIDV5JP.js';import {y as y$1}from'./chunk-T4Y5XOT2.js';import'./chunk-SWKYVSMP.js';import'./chunk-AR7L5OJ2.js';import {a}from'./chunk-YVKHEAFT.js';import'./chunk-5FO4PDIG.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-XTM4HTRB.js';import'./chunk-YAYBVVG2.js';import'./chunk-YNMMRH44.js';import'./chunk-HFKDWQUL.js';import'./chunk-R2ENWQ76.js';import'./chunk-VYWGUMFW.js';import {K,t,n as n$1}from'./chunk-IO374J6Z.js';import'./chunk-WGZ3FNHI.js';export{a as ENGINE_VERSION}from'./chunk-HMEZJXLX.js';import'./chunk-YAHGSBMC.js';import'./chunk-JPFCXLJV.js';import'./chunk-G7TBEQRQ.js';import'./chunk-IJMNVBIS.js';import'./chunk-62LMTO4F.js';import'./chunk-TRBXW6HW.js';import'./chunk-2JMFUQZH.js';import {c}from'./chunk-MPB7KUN5.js';var r={DEFINE_FUNCTION_INVALID_NAME:"DEFINE_FUNCTION_INVALID_NAME",DEFINE_FUNCTION_INVALID_SPEC:"DEFINE_FUNCTION_INVALID_SPEC",DEFINE_FUNCTION_ARITY_MISMATCH:"DEFINE_FUNCTION_ARITY_MISMATCH",DEFINE_FUNCTION_ARGUMENT_TYPE:"DEFINE_FUNCTION_ARGUMENT_TYPE",DEFINE_FUNCTION_RETURN_TYPE:"DEFINE_FUNCTION_RETURN_TYPE"},b=/^[a-z_][a-z0-9_]*$/i,y=new Set(["number","string","boolean"]);function u(e){return e===1?"1 argument":`${e} arguments`}function f(e){switch(e.type){case 0:case 1:return "a number";case 3:return "a string";case 10:return "a boolean";case 2:return "a big integer";case 5:return "a percentage";case 6:return "a value with a unit";case 4:return "a date";case 7:return "a matrix";case 8:return "a range";case 9:return "a symbolic expression";default:return "an unsupported value"}}function A(e,n,t){switch(n.type){case "number":if(e.type===0||e.type===1)return e.toNumber();break;case "string":if(e.type===3)return e.value;break;case "boolean":if(e.type===10)return e.value;break}throw c.execution({code:r.DEFINE_FUNCTION_ARGUMENT_TYPE,message:`${t}() expects "${n.name}" to be a ${n.type}, but was given ${f(e)}`,expected:`a ${n.type}`,found:f(e),context:{functionName:t,argName:n.name,expectedType:n.type}})}function S(e,n,t$1){switch(n){case "number":if(typeof e=="number")return n$1(e);break;case "string":if(typeof e=="string")return t(e);break;case "boolean":if(typeof e=="boolean")return K(e);break}throw c.internal({code:r.DEFINE_FUNCTION_RETURN_TYPE,message:`${t$1}() is declared to return a ${n}, but its implementation returned ${typeof e}`,expected:`a ${n}`,found:typeof e,context:{functionName:t$1,expectedType:n}})}var p=class{constructor(n){this.fnName=n;this.category="Function";}parse(n,t,i){n.consume("LPAREN");let a$1=0;if(n.peek()?.type!=="RPAREN")for(n.parseExpression(a.Lowest,i),a$1++;n.match("COMMA");)n.parseExpression(a.Lowest,i),a$1++;n.consume("RPAREN"),i.emitPluginCall(this.fnName,a$1);}};function P(e){let n=e.args.length;return t=>{if(t.length!==n)throw c.execution({code:r.DEFINE_FUNCTION_ARITY_MISMATCH,message:`${e.name}() takes ${u(n)}, but was given ${t.length===0?"none":u(t.length)}`,expected:u(n),found:t.length===0?"none":u(t.length),context:{functionName:e.name,expected:n,actual:t.length}});let i=new Array(n);for(let s=0;s<n;s++)i[s]=A(t[s],e.args[s],e.name);let a=e.call(...i);return S(a,e.returns,e.name)}}function V(e){if(typeof e?.name!="string"||!b.test(e.name))throw c.config({code:r.DEFINE_FUNCTION_INVALID_NAME,message:`defineFunction: name must be a single identifier, got ${JSON.stringify(e?.name)}`,suggestion:'e.g. "vat" or "net_price"',context:{name:e?.name}});if(!Array.isArray(e.args))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" args must be an array`,context:{name:e.name}});for(let n of e.args){if(typeof n?.name!="string"||n.name.length===0)throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has an argument with no name`,context:{name:e.name}});if(!y.has(n.type))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" argument "${n.name}" has unsupported type ${JSON.stringify(n.type)}`,suggestion:"supported argument types are number, string, boolean",context:{name:e.name,argName:n.name,type:n.type}})}if(!y.has(e.returns))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has unsupported return type ${JSON.stringify(e.returns)}`,suggestion:"supported return types are number, string, boolean",context:{name:e.name,returns:e.returns}});if(typeof e.call!="function")throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" is missing a call implementation`,context:{name:e.name}})}function O(e){V(e);let n=e.name,t=`DEFINE_FN_${n.toUpperCase()}`;return {name:`solve-fn-${n}`,lexerVocabulary:{keywords:{[n.toLowerCase()]:t}},prefixParselets:{[t]:new p(n)},pluginFunctions:{[n]:P(e)}}}function h(e={}){let{extraPackages:n$1=[],...t}=e;return new n({...t,packages:n$1.length>0?[...y$1,...n$1]:y$1})}export{r as DefineFunctionErrorCodes,h as createEngine,O as defineFunction};//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/language.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { C as CompletionItem } from './PackageRegistry-
|
|
2
|
-
export { L as LanguageService, p as LanguageServiceOptions, q as SemanticToken } from './PackageRegistry-
|
|
1
|
+
import { C as CompletionItem } from './PackageRegistry-Hx85XD01.cjs';
|
|
2
|
+
export { L as LanguageService, p as LanguageServiceOptions, q as SemanticToken } from './PackageRegistry-Hx85XD01.cjs';
|
|
3
3
|
import { e as TokenCategory } from './Lexer-B4C1qHXu.cjs';
|
|
4
|
-
import './Parselet-
|
|
5
|
-
import './BytecodeBuilder-
|
|
4
|
+
import './Parselet-CTNpfuEB.cjs';
|
|
5
|
+
import './BytecodeBuilder-BGq9ZiO3.cjs';
|
|
6
6
|
import './Token-CbP_OutD.cjs';
|
|
7
|
-
import './pipeline-
|
|
8
|
-
import './Value-
|
|
7
|
+
import './pipeline-DY0rhgQG.cjs';
|
|
8
|
+
import './Value-D1XlMwe2.cjs';
|
|
9
9
|
import './resolvers.cjs';
|
|
10
10
|
import '@tanstack/query-core';
|
|
11
11
|
import './TokenNormalizer-DnlL7_8c.cjs';
|
|
12
|
-
import './ScopeManager-
|
|
12
|
+
import './ScopeManager-Cvgypcu4.cjs';
|
|
13
13
|
import './EngineError-Ce1lPkjZ.cjs';
|
|
14
14
|
import './Configuration-BGQn-cJ8.cjs';
|
|
15
15
|
|
package/dist/language.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { C as CompletionItem } from './PackageRegistry-
|
|
2
|
-
export { L as LanguageService, p as LanguageServiceOptions, q as SemanticToken } from './PackageRegistry-
|
|
1
|
+
import { C as CompletionItem } from './PackageRegistry-B7wkfSrY.js';
|
|
2
|
+
export { L as LanguageService, p as LanguageServiceOptions, q as SemanticToken } from './PackageRegistry-B7wkfSrY.js';
|
|
3
3
|
import { e as TokenCategory } from './Lexer-DKMlj7Sy.js';
|
|
4
|
-
import './Parselet-
|
|
5
|
-
import './BytecodeBuilder-
|
|
4
|
+
import './Parselet-DONNUpur.js';
|
|
5
|
+
import './BytecodeBuilder-BGq9ZiO3.js';
|
|
6
6
|
import './Token-CbP_OutD.js';
|
|
7
|
-
import './pipeline-
|
|
8
|
-
import './Value-
|
|
7
|
+
import './pipeline-BH7BFOTJ.js';
|
|
8
|
+
import './Value-D1XlMwe2.js';
|
|
9
9
|
import './resolvers.js';
|
|
10
10
|
import '@tanstack/query-core';
|
|
11
11
|
import './TokenNormalizer-DCWdZjGz.js';
|
|
12
|
-
import './ScopeManager-
|
|
12
|
+
import './ScopeManager-BkbDXK_R.js';
|
|
13
13
|
import './EngineError-Ce1lPkjZ.js';
|
|
14
14
|
import './Configuration-BGQn-cJ8.js';
|
|
15
15
|
|
package/dist/packages.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkSOSUS2SK_cjs=require('./chunk-SOSUS2SK.cjs');require('./chunk-3AVWA5IZ.cjs');var chunkNXIMGB4S_cjs=require('./chunk-NXIMGB4S.cjs');require('./chunk-4QVBSG6B.cjs'),require('./chunk-VAGS5JS7.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-Z5KBBQOJ.cjs'),require('./chunk-4BZIYU7S.cjs'),require('./chunk-VBSMA7WJ.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-ESUN2THE.cjs'),require('./chunk-ZOOVGXMK.cjs'),require('./chunk-5FGOIDLS.cjs'),require('./chunk-IANAMBJQ.cjs'),require('./chunk-2LFLR3VZ.cjs'),require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-FWW3M36J.cjs'),require('./chunk-CIQOK7Q4.cjs'),require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"ARITHMETIC_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.a}});Object.defineProperty(exports,"BIGINT_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.n}});Object.defineProperty(exports,"BUILTIN_PACKAGES",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.y}});Object.defineProperty(exports,"CONDITIONALS_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.o}});Object.defineProperty(exports,"CONVERTERS_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.p}});Object.defineProperty(exports,"CURRENCY_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.j}});Object.defineProperty(exports,"DATETIME_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.d}});Object.defineProperty(exports,"DICE_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.f}});Object.defineProperty(exports,"FINANCE_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.r}});Object.defineProperty(exports,"FUNCTION_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.c}});Object.defineProperty(exports,"LINES_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.v}});Object.defineProperty(exports,"MAPREDUCE_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.m}});Object.defineProperty(exports,"MATHPHRASES_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.q}});Object.defineProperty(exports,"MATRIX_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.l}});Object.defineProperty(exports,"PERCENTAGE_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.b}});Object.defineProperty(exports,"TABLES_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.w}});Object.defineProperty(exports,"TAGS_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.x}});Object.defineProperty(exports,"TIME_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.e}});Object.defineProperty(exports,"UOM_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.h}});Object.defineProperty(exports,"VARIABLES_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.g}});Object.defineProperty(exports,"VECTOR_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.k}});Object.defineProperty(exports,"WEATHER_PACKAGE",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.s}});Object.defineProperty(exports,"createCurrencyPackage",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.i}});Object.defineProperty(exports,"createKnowledgePackage",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.u}});Object.defineProperty(exports,"createStocksPackage",{enumerable:true,get:function(){return chunkSOSUS2SK_cjs.t}});Object.defineProperty(exports,"SYMBOLIC_PACKAGE",{enumerable:true,get:function(){return chunkNXIMGB4S_cjs.a}});//# sourceMappingURL=packages.cjs.map
|
|
2
2
|
//# sourceMappingURL=packages.cjs.map
|
package/dist/packages.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { I as IEnginePackage } from './PackageRegistry-
|
|
2
|
-
import './Parselet-
|
|
3
|
-
import './BytecodeBuilder-
|
|
1
|
+
import { I as IEnginePackage } from './PackageRegistry-Hx85XD01.cjs';
|
|
2
|
+
import './Parselet-CTNpfuEB.cjs';
|
|
3
|
+
import './BytecodeBuilder-BGq9ZiO3.cjs';
|
|
4
4
|
import './Token-CbP_OutD.cjs';
|
|
5
|
-
import './pipeline-
|
|
6
|
-
import './Value-
|
|
5
|
+
import './pipeline-DY0rhgQG.cjs';
|
|
6
|
+
import './Value-D1XlMwe2.cjs';
|
|
7
7
|
import './Lexer-B4C1qHXu.cjs';
|
|
8
8
|
import './resolvers.cjs';
|
|
9
9
|
import '@tanstack/query-core';
|
|
10
10
|
import './TokenNormalizer-DnlL7_8c.cjs';
|
|
11
|
-
import './ScopeManager-
|
|
11
|
+
import './ScopeManager-Cvgypcu4.cjs';
|
|
12
12
|
import './EngineError-Ce1lPkjZ.cjs';
|
|
13
13
|
import './Configuration-BGQn-cJ8.cjs';
|
|
14
14
|
|
|
@@ -796,7 +796,7 @@ declare const TAGS_PACKAGE: IEnginePackage;
|
|
|
796
796
|
/**
|
|
797
797
|
* The packages an engine registers when the caller names none.
|
|
798
798
|
*
|
|
799
|
-
* Twenty-
|
|
799
|
+
* Twenty-six of the twenty-eight. Stocks and knowledge are excluded because
|
|
800
800
|
* both need a host-supplied data source and do nothing useful without one, so
|
|
801
801
|
* registering them by default would only produce NOT_CONFIGURED results.
|
|
802
802
|
*
|
package/dist/packages.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { I as IEnginePackage } from './PackageRegistry-
|
|
2
|
-
import './Parselet-
|
|
3
|
-
import './BytecodeBuilder-
|
|
1
|
+
import { I as IEnginePackage } from './PackageRegistry-B7wkfSrY.js';
|
|
2
|
+
import './Parselet-DONNUpur.js';
|
|
3
|
+
import './BytecodeBuilder-BGq9ZiO3.js';
|
|
4
4
|
import './Token-CbP_OutD.js';
|
|
5
|
-
import './pipeline-
|
|
6
|
-
import './Value-
|
|
5
|
+
import './pipeline-BH7BFOTJ.js';
|
|
6
|
+
import './Value-D1XlMwe2.js';
|
|
7
7
|
import './Lexer-DKMlj7Sy.js';
|
|
8
8
|
import './resolvers.js';
|
|
9
9
|
import '@tanstack/query-core';
|
|
10
10
|
import './TokenNormalizer-DCWdZjGz.js';
|
|
11
|
-
import './ScopeManager-
|
|
11
|
+
import './ScopeManager-BkbDXK_R.js';
|
|
12
12
|
import './EngineError-Ce1lPkjZ.js';
|
|
13
13
|
import './Configuration-BGQn-cJ8.js';
|
|
14
14
|
|
|
@@ -796,7 +796,7 @@ declare const TAGS_PACKAGE: IEnginePackage;
|
|
|
796
796
|
/**
|
|
797
797
|
* The packages an engine registers when the caller names none.
|
|
798
798
|
*
|
|
799
|
-
* Twenty-
|
|
799
|
+
* Twenty-six of the twenty-eight. Stocks and knowledge are excluded because
|
|
800
800
|
* both need a host-supplied data source and do nothing useful without one, so
|
|
801
801
|
* registering them by default would only produce NOT_CONFIGURED results.
|
|
802
802
|
*
|
package/dist/packages.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as ARITHMETIC_PACKAGE,n as BIGINT_PACKAGE,y as BUILTIN_PACKAGES,o as CONDITIONALS_PACKAGE,p as CONVERTERS_PACKAGE,j as CURRENCY_PACKAGE,d as DATETIME_PACKAGE,f as DICE_PACKAGE,r as FINANCE_PACKAGE,c as FUNCTION_PACKAGE,v as LINES_PACKAGE,m as MAPREDUCE_PACKAGE,q as MATHPHRASES_PACKAGE,l as MATRIX_PACKAGE,b as PERCENTAGE_PACKAGE,w as TABLES_PACKAGE,x as TAGS_PACKAGE,e as TIME_PACKAGE,h as UOM_PACKAGE,g as VARIABLES_PACKAGE,k as VECTOR_PACKAGE,s as WEATHER_PACKAGE,i as createCurrencyPackage,u as createKnowledgePackage,t as createStocksPackage}from'./chunk-
|
|
1
|
+
export{a as ARITHMETIC_PACKAGE,n as BIGINT_PACKAGE,y as BUILTIN_PACKAGES,o as CONDITIONALS_PACKAGE,p as CONVERTERS_PACKAGE,j as CURRENCY_PACKAGE,d as DATETIME_PACKAGE,f as DICE_PACKAGE,r as FINANCE_PACKAGE,c as FUNCTION_PACKAGE,v as LINES_PACKAGE,m as MAPREDUCE_PACKAGE,q as MATHPHRASES_PACKAGE,l as MATRIX_PACKAGE,b as PERCENTAGE_PACKAGE,w as TABLES_PACKAGE,x as TAGS_PACKAGE,e as TIME_PACKAGE,h as UOM_PACKAGE,g as VARIABLES_PACKAGE,k as VECTOR_PACKAGE,s as WEATHER_PACKAGE,i as createCurrencyPackage,u as createKnowledgePackage,t as createStocksPackage}from'./chunk-T4Y5XOT2.js';import'./chunk-SWKYVSMP.js';export{a as SYMBOLIC_PACKAGE}from'./chunk-AR7L5OJ2.js';import'./chunk-YVKHEAFT.js';import'./chunk-5FO4PDIG.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-XTM4HTRB.js';import'./chunk-YAYBVVG2.js';import'./chunk-YNMMRH44.js';import'./chunk-HFKDWQUL.js';import'./chunk-R2ENWQ76.js';import'./chunk-VYWGUMFW.js';import'./chunk-IO374J6Z.js';import'./chunk-WGZ3FNHI.js';import'./chunk-G7TBEQRQ.js';import'./chunk-IJMNVBIS.js';import'./chunk-62LMTO4F.js';import'./chunk-TRBXW6HW.js';import'./chunk-2JMFUQZH.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=packages.js.map
|
|
2
2
|
//# sourceMappingURL=packages.js.map
|
package/dist/parser.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkHOQU47MF_cjs=require('./chunk-HOQU47MF.cjs');require('./chunk-R7T3NGUE.cjs');var chunk4QVBSG6B_cjs=require('./chunk-4QVBSG6B.cjs'),chunkVBSMA7WJ_cjs=require('./chunk-VBSMA7WJ.cjs');require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"ParseletRegistry",{enumerable:true,get:function(){return chunkHOQU47MF_cjs.b}});Object.defineProperty(exports,"Parser",{enumerable:true,get:function(){return chunkHOQU47MF_cjs.a}});Object.defineProperty(exports,"PrecedenceParser",{enumerable:true,get:function(){return chunkHOQU47MF_cjs.a}});Object.defineProperty(exports,"sharedParseletRegistry",{enumerable:true,get:function(){return chunkHOQU47MF_cjs.c}});Object.defineProperty(exports,"BindingPower",{enumerable:true,get:function(){return chunk4QVBSG6B_cjs.a}});Object.defineProperty(exports,"BytecodeBuilder",{enumerable:true,get:function(){return chunk4QVBSG6B_cjs.d}});Object.defineProperty(exports,"buildBindingPowerTable",{enumerable:true,get:function(){return chunk4QVBSG6B_cjs.b}});Object.defineProperty(exports,"invalidateBindingPowerTable",{enumerable:true,get:function(){return chunk4QVBSG6B_cjs.c}});Object.defineProperty(exports,"OpCode",{enumerable:true,get:function(){return chunkVBSMA7WJ_cjs.a}});Object.defineProperty(exports,"getOpCodeName",{enumerable:true,get:function(){return chunkVBSMA7WJ_cjs.b}});//# sourceMappingURL=parser.cjs.map
|
|
2
2
|
//# 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-
|
|
1
|
+
export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-CTNpfuEB.cjs';
|
|
2
|
+
export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-BGq9ZiO3.cjs';
|
|
3
3
|
import './Token-CbP_OutD.cjs';
|
|
4
|
-
import './pipeline-
|
|
5
|
-
import './Value-
|
|
4
|
+
import './pipeline-DY0rhgQG.cjs';
|
|
5
|
+
import './Value-D1XlMwe2.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Named precedence levels for the Pratt parser, from loosest (`Lowest`) to
|
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-
|
|
1
|
+
export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-DONNUpur.js';
|
|
2
|
+
export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-BGq9ZiO3.js';
|
|
3
3
|
import './Token-CbP_OutD.js';
|
|
4
|
-
import './pipeline-
|
|
5
|
-
import './Value-
|
|
4
|
+
import './pipeline-BH7BFOTJ.js';
|
|
5
|
+
import './Value-D1XlMwe2.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Named precedence levels for the Pratt parser, from loosest (`Lowest`) to
|
package/dist/parser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{b as ParseletRegistry,a as Parser,a as PrecedenceParser,c as sharedParseletRegistry}from'./chunk-
|
|
1
|
+
export{b as ParseletRegistry,a as Parser,a as PrecedenceParser,c as sharedParseletRegistry}from'./chunk-P6BLASAA.js';import'./chunk-GHW2X7PS.js';export{a as BindingPower,d as BytecodeBuilder,b as buildBindingPowerTable,c as invalidateBindingPowerTable}from'./chunk-YVKHEAFT.js';export{a as OpCode,b as getOpCodeName}from'./chunk-YNMMRH44.js';import'./chunk-IJMNVBIS.js';import'./chunk-62LMTO4F.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=parser.js.map
|
|
2
2
|
//# sourceMappingURL=parser.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MatrixData, R as RangeData, C as ColourData, S as SplitData, f as SymbolicNode } from './Value-
|
|
1
|
+
import { M as MatrixData, R as RangeData, C as ColourData, S as SplitData, f as ChartData, g as SymbolicNode } from './Value-D1XlMwe2.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 | ColourData | SplitData | SymbolicNode;
|
|
49
|
+
readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SplitData | ChartData | 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 | ColourData | SplitData | SymbolicNode;
|
|
58
|
+
readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SplitData | ChartData | SymbolicNode;
|
|
59
59
|
readonly unit?: string;
|
|
60
60
|
};
|
|
61
61
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MatrixData, R as RangeData, C as ColourData, S as SplitData, f as SymbolicNode } from './Value-
|
|
1
|
+
import { M as MatrixData, R as RangeData, C as ColourData, S as SplitData, f as ChartData, g as SymbolicNode } from './Value-D1XlMwe2.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 | ColourData | SplitData | SymbolicNode;
|
|
49
|
+
readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SplitData | ChartData | 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 | ColourData | SplitData | SymbolicNode;
|
|
58
|
+
readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SplitData | ChartData | 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
2
|
import { T as Token } from './Token-CbP_OutD.cjs';
|
|
3
|
-
import { a as BytecodeProgram } from './BytecodeBuilder-
|
|
4
|
-
import { V as Value } from './Value-
|
|
3
|
+
import { a as BytecodeProgram } from './BytecodeBuilder-BGq9ZiO3.cjs';
|
|
4
|
+
import { V as Value } from './Value-D1XlMwe2.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
2
|
import { T as Token } from './Token-CbP_OutD.js';
|
|
3
|
-
import { a as BytecodeProgram } from './BytecodeBuilder-
|
|
4
|
-
import { V as Value } from './Value-
|
|
3
|
+
import { a as BytecodeProgram } from './BytecodeBuilder-BGq9ZiO3.js';
|
|
4
|
+
import { V as Value } from './Value-D1XlMwe2.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Result from a resolver's preflight() check.
|
package/dist/testing.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkKSDTVFXA_cjs=require('./chunk-KSDTVFXA.cjs');require('./chunk-HOQU47MF.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-LNZNJSRW.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-GKDZ7TSX.cjs'),require('./chunk-R7T3NGUE.cjs'),require('./chunk-3DD2RVBI.cjs'),require('./chunk-R2SZFJTT.cjs');var chunkSOSUS2SK_cjs=require('./chunk-SOSUS2SK.cjs');require('./chunk-3AVWA5IZ.cjs'),require('./chunk-NXIMGB4S.cjs'),require('./chunk-4QVBSG6B.cjs'),require('./chunk-VAGS5JS7.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-Z5KBBQOJ.cjs'),require('./chunk-4BZIYU7S.cjs'),require('./chunk-VBSMA7WJ.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-ESUN2THE.cjs'),require('./chunk-ZOOVGXMK.cjs');var chunk5FGOIDLS_cjs=require('./chunk-5FGOIDLS.cjs');require('./chunk-IANAMBJQ.cjs');var chunkOVQ3V4CG_cjs=require('./chunk-OVQ3V4CG.cjs');require('./chunk-32GC2FHC.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-2LFLR3VZ.cjs'),require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-FWW3M36J.cjs'),require('./chunk-CIQOK7Q4.cjs');var chunkSOMGSIO4_cjs=require('./chunk-SOMGSIO4.cjs');var i=class o extends Error{constructor(t){super(t.message),this.name="ExpectationError",this.code=t.code,this.expected=t.expected,this.actual=t.actual,Object.setPrototypeOf(this,o.prototype);}};function V(o=[],t={}){let{locale:e="en",includeBuiltins:r=true}=t,s=new chunkKSDTVFXA_cjs.n({locale:e,packages:r?chunkSOSUS2SK_cjs.y:[]});for(let a of o)s.registerPackage(a);return s}function v(o,t){try{let e=o.evaluateExpression(t);return e.isError()?{status:"error",code:e.errorCode??"",message:e.errorMessage??"",source:e}:e.isPending()?{status:"pending",value:e}:{status:"value",value:e}}catch(e){if(e instanceof chunkSOMGSIO4_cjs.b)return {status:"error",code:e.code,message:e.message,source:e};let r=e instanceof Error?e.message:String(e);return {status:"error",code:"UNKNOWN_ERROR",message:r,source:new chunk5FGOIDLS_cjs.m(13,"UNKNOWN_ERROR",r)}}}function x(o,t){if(Object.is(o,t))return true;if(!Number.isFinite(o)||!Number.isFinite(t))return false;let e=1e-9*Math.max(1,Math.abs(o),Math.abs(t));return Math.abs(o-t)<=e}function l(o){return o.type===3?JSON.stringify(o.value):o.type===6&&typeof o.unit=="string"?`${String(o.value)} ${o.unit}`:String(o.value)}function n(o){switch(o.status){case "value":return l(o.value);case "pending":return "a pending async value";case "error":return `an error (${o.code}: ${o.message})`}}var d=class{constructor(t,e){this.expression=t;this.outcome=e;}get value(){if(this.outcome.status==="error")throw new i({code:"EXPECTED_VALUE",message:`Expected "${this.expression}" to evaluate, but it failed with ${n(this.outcome)}.`,expected:"a resolved value",actual:n(this.outcome)});return this.outcome.value}toEvaluate(){if(this.outcome.status!=="value")throw new i({code:"EXPECTED_EVALUATE",message:`Expected "${this.expression}" to evaluate to a value, but got ${n(this.outcome)}.`,expected:"a resolved value",actual:n(this.outcome)});return this}toEqual(t,e){if(this.outcome.status!=="value")throw new i({code:"EXPECTED_EQUAL",message:`Expected "${this.expression}" to equal ${c(t,e)}, but got ${n(this.outcome)}.`,expected:c(t,e),actual:n(this.outcome)});let r=this.outcome.value,s;if(typeof t=="number"?s=x(r.toNumber(),t):typeof t=="boolean"?s=r.type===10&&r.value===t:s=C(r)===t,!s)throw new i({code:"EXPECTED_EQUAL",message:`Expected "${this.expression}" to equal ${c(t,e)}, but it was ${l(r)}.`,expected:c(t,e),actual:l(r)});if(e!==void 0&&r.unit!==e)throw new i({code:"EXPECTED_UNIT",message:`Expected "${this.expression}" to carry the unit "${e}", but it was ${r.unit===void 0?"unitless":`"${r.unit}"`}.`,expected:`unit "${e}"`,actual:r.unit===void 0?"no unit":`unit "${r.unit}"`});return this}toBeError(){if(this.outcome.status!=="error")throw new i({code:"EXPECTED_ERROR",message:`Expected "${this.expression}" to fail, but it produced ${n(this.outcome)}.`,expected:"an error",actual:n(this.outcome)});return this}toFailWith(t){if(this.outcome.status!=="error")throw new i({code:"EXPECTED_FAIL_WITH",message:`Expected "${this.expression}" to fail with "${t}", but it produced ${n(this.outcome)}.`,expected:`error code "${t}"`,actual:n(this.outcome)});if(this.outcome.code!==t)throw new i({code:"EXPECTED_FAIL_WITH",message:`Expected "${this.expression}" to fail with "${t}", but it failed with "${this.outcome.code}" (${this.outcome.message}).`,expected:`error code "${t}"`,actual:`error code "${this.outcome.code}"`});return this}toBePending(){if(this.outcome.status!=="pending")throw new i({code:"EXPECTED_PENDING",message:`Expected "${this.expression}" to be pending, but got ${n(this.outcome)}.`,expected:"a pending async value",actual:n(this.outcome)});return this}};function c(o,t){let e=typeof o=="string"?JSON.stringify(o):String(o);return t===void 0?e:`${e} ${t}`}function C(o){return String(o.value)}function D(o,t){return new d(t,v(o,t))}var O=["a","an","and","or","but","if","then","the","this","that","these","those","in","on","at","to","of","for","from","with","by","as","per","into","over","is","are","was","were","be","been","being","do","does","did","have","has","had","will","would","can","could","should","may","might","must","price","cost","value","total","sum","count","rate","amount","number","time","date","day","week","month","year","hour","minute","second","add","buy","sell","hold","make","take","give","get","set","run","up","down","out","off","all","some","any","no","not","more","less","one","two","three","first","last","next","each","every","here","there"],$=["error","warning","info"];function k(o){let t=[],e=o.lexerVocabulary;if(e?.keywords)for(let[r,s]of Object.entries(e.keywords))t.push({word:r,via:"keyword",tokenType:s});if(e?.units)for(let r of e.units)t.push({word:r,via:"unit"});if(e?.operators)for(let[r,s]of Object.entries(e.operators))t.push({word:r,via:"operator",tokenType:s});if(o.phrases)for(let[r,s]of Object.entries(o.phrases))r.includes(" ")||t.push({word:r,via:"phrase",tokenType:s});return t}var p=class{constructor(t){this.pkg=t;}notToShadow(t=O){let e=new Set(t.map(s=>s.toLowerCase())),r=k(this.pkg).filter(s=>e.has(s.word.toLowerCase()));if(r.length>0){let s=r.map(a=>`"${a.word}" (${a.via})`).join(", ");throw new i({code:"PACKAGE_SHADOWS_PROSE",message:`Package "${this.pkg.name}" claims prose word(s) as syntax: ${s}. A word that is also ordinary English turns prose into arithmetic; prefer a multi-word phrase or a form that requires a parenthesis.`,expected:"no prose words claimed as syntax",actual:s})}return r}notToCollideWith(t,e="error"){let r=chunkKSDTVFXA_cjs.a(this.pkg,t),s=$.indexOf(e),a=r.conflicts.filter(u=>$.indexOf(u.severity)<=s);if(a.length>0){let u=a.map(g=>`[${g.severity}] ${g.detail}`).join(`
|
|
2
2
|
`);throw new i({code:"PACKAGE_VOCABULARY_COLLISION",message:`Package "${this.pkg.name}" collides with another package:
|
|
3
|
-
${u}`,expected:`no conflicts at or above "${e}" severity`,actual:`${a.length} conflict(s)`})}return r}toDeclareCompatibleEngineVersion(t=
|
|
3
|
+
${u}`,expected:`no conflicts at or above "${e}" severity`,actual:`${a.length} conflict(s)`})}return r}toDeclareCompatibleEngineVersion(t=chunkOVQ3V4CG_cjs.a){let e=chunkKSDTVFXA_cjs.b(this.pkg,t);if(!e.compatible){let r=e.reason==="invalid-range"?`its range "${e.declaredRange}" is not valid semver`:`its range "${e.declaredRange}" is not satisfied by engine version "${e.engineVersion}"`;throw new i({code:"PACKAGE_ENGINE_VERSION_INCOMPATIBLE",message:`Package "${this.pkg.name}" declares an engineVersion that will be rejected at registration: ${r}.`,expected:`an engineVersion satisfied by "${t}"`,actual:`"${e.declaredRange}"`})}return this}};function L(o){return new p(o)}exports.COMMON_PROSE_WORDS=O;exports.ExpectationError=i;exports.ExpressionAssertion=d;exports.PackageAssertion=p;exports.createTestEngine=V;exports.expectExpression=D;exports.expectPackage=L;//# sourceMappingURL=testing.cjs.map
|
|
4
4
|
//# sourceMappingURL=testing.cjs.map
|