solve-engine 1.0.0-beta.4 → 1.0.0-beta.5
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/{chunk-X2BWAZAU.cjs → chunk-73GSBGUU.cjs} +27 -27
- package/dist/{chunk-X2BWAZAU.cjs.map → chunk-73GSBGUU.cjs.map} +1 -1
- package/dist/{chunk-EAAHVJ4P.cjs → chunk-AZUA3F4I.cjs} +3 -3
- package/dist/{chunk-EAAHVJ4P.cjs.map → chunk-AZUA3F4I.cjs.map} +1 -1
- package/dist/{chunk-3MNKQZ77.js → chunk-BAMZT3GL.js} +3 -3
- package/dist/{chunk-3MNKQZ77.js.map → chunk-BAMZT3GL.js.map} +1 -1
- package/dist/{chunk-2NPS5DQ3.cjs → chunk-BXKJLM5R.cjs} +13 -5
- package/dist/chunk-BXKJLM5R.cjs.map +1 -0
- package/dist/{chunk-43G3JT2E.cjs → chunk-CSG5XVNJ.cjs} +35 -35
- package/dist/chunk-CSG5XVNJ.cjs.map +1 -0
- package/dist/{chunk-FIFQPKBA.js → chunk-GVWHCL2N.js} +3 -3
- package/dist/chunk-GVWHCL2N.js.map +1 -0
- package/dist/{chunk-KHJUSHFU.js → chunk-MVBEL57Q.js} +13 -5
- package/dist/chunk-MVBEL57Q.js.map +1 -0
- package/dist/{chunk-M4Q47KHF.cjs → chunk-QDMPOAI7.cjs} +22 -22
- package/dist/{chunk-M4Q47KHF.cjs.map → chunk-QDMPOAI7.cjs.map} +1 -1
- package/dist/{chunk-DDQVZGLO.js → chunk-TZLCIJWP.js} +6 -6
- package/dist/{chunk-DDQVZGLO.js.map → chunk-TZLCIJWP.js.map} +1 -1
- package/dist/{chunk-OWRHDUJD.js → chunk-VZH3NOLP.js} +3 -3
- package/dist/{chunk-OWRHDUJD.js.map → chunk-VZH3NOLP.js.map} +1 -1
- package/dist/constants.cjs +4 -4
- package/dist/constants.js +1 -1
- package/dist/engine.cjs +15 -15
- package/dist/engine.js +5 -5
- package/dist/index.cjs +11 -11
- package/dist/index.js +6 -6
- package/dist/packages.cjs +25 -25
- package/dist/packages.d.cts +42 -0
- package/dist/packages.d.ts +42 -0
- package/dist/packages.js +2 -2
- package/dist/vm.cjs +13 -13
- package/dist/vm.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-2NPS5DQ3.cjs.map +0 -1
- package/dist/chunk-43G3JT2E.cjs.map +0 -1
- package/dist/chunk-FIFQPKBA.js.map +0 -1
- package/dist/chunk-KHJUSHFU.js.map +0 -1
package/dist/packages.d.ts
CHANGED
|
@@ -102,6 +102,48 @@ declare const FUNCTION_PACKAGE: IEnginePackage;
|
|
|
102
102
|
*/
|
|
103
103
|
declare const DATETIME_PACKAGE: IEnginePackage;
|
|
104
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Clock-time-of-day arithmetic: `9:00am`, `16:00`, `4pm` (anchored to
|
|
107
|
+
* today's calendar date), `7:30 to 20:45` / `4pm to 3am` interval
|
|
108
|
+
* durations (midnight-rollover aware), `30 fps` frame-rate literals (a
|
|
109
|
+
* `Rate` value. See `vm/Value.ts`), and `03:04:05` / `00:00:01.5`
|
|
110
|
+
* lap-time/stopwatch-split durations (two colons, vs clock-time's one).
|
|
111
|
+
* Distinct from the Datetime package's calendar-date arithmetic. See
|
|
112
|
+
* `packages/time/` vs `packages/datetime/`.
|
|
113
|
+
*
|
|
114
|
+
* Full HH:MM:SS:FF video-timecode literal parsing + fps-aware carry
|
|
115
|
+
* arithmetic: `01:02:03:04 at 30 fps` / `... @ 30 fps` (a `Uom(totalFrames,
|
|
116
|
+
* "timecode@<fps>")` value. See `vm/Value.ts`'s timecode section)
|
|
117
|
+
* `timecode + N frames` / `+ <duration>` / `+ timecode` (sum) / `-
|
|
118
|
+
* timecode` (difference), all special-cased in `vm/VM.ts`'s ADD/SUB
|
|
119
|
+
* dispatch (`combineTimecode()`), plus `timecode in frames` and the
|
|
120
|
+
* reverse `<N> frames @ <fps>` -> `HH:MM:SS:FF` string conversion (see
|
|
121
|
+
* `parselets/VideoTimecodeParselet.ts`/`FrameCountParselet.ts` and
|
|
122
|
+
* `timecode/TimecodeMath.ts`). `30 fps × <duration>` frame-count math
|
|
123
|
+
* (below) composes with this unchanged, the fps literal itself is
|
|
124
|
+
* unaffected by any of the above. Likewise, pretty-printing a duration
|
|
125
|
+
* back as `"3 hours 15 min"` (`as timespan`) or `"03:04:05"` (`as
|
|
126
|
+
* laptime`) is a `converters` package (Phase 1c) concern. This package
|
|
127
|
+
* only produces the underlying `Uom` values.
|
|
128
|
+
*
|
|
129
|
+
* Also: timezone conversion (`6pm Sydney in Chicago`), current
|
|
130
|
+
* time/date-in-a-zone queries (`time in Paris`, `date in Vancouver`), and
|
|
131
|
+
* zone-offset deltas (`time difference between Seattle and Moscow`). See
|
|
132
|
+
* `timezones/CityZones.ts`/`ZoneMath.ts`. Built entirely on native
|
|
133
|
+
* `Intl.DateTimeFormat`/IANA data, no external dependency. Results are
|
|
134
|
+
* `String` values (formatted, human-readable), not `Datetime`. This
|
|
135
|
+
* engine's `Datetime` representation is a bare epoch-ms number with no
|
|
136
|
+
* zone tag, so there's no way to represent "this instant, but interpreted
|
|
137
|
+
* through zone X" as anything other than a pre-formatted string; see
|
|
138
|
+
* `ZoneMath.ts`'s doc comment.
|
|
139
|
+
*
|
|
140
|
+
* SCOPE DECISION: the alternate phrasing `<City> time` (e.g. "Tokyo
|
|
141
|
+
* time", city first) is deliberately NOT implemented, it would need
|
|
142
|
+
* "time" registered as a keyword reachable from a BARE city identifier's
|
|
143
|
+
* infix position, and "time" is exactly the kind of common noun this
|
|
144
|
+
* session found real trouble with (see MathPhrasesPackage.ts's "total"
|
|
145
|
+
* regression note). `time in <city>` covers the same need unambiguously.
|
|
146
|
+
*/
|
|
105
147
|
declare const TIME_PACKAGE: IEnginePackage;
|
|
106
148
|
|
|
107
149
|
/** `roll(min, max)`, returns a random integer in the inclusive `[min, max]` range. */
|
package/dist/packages.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
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-GVWHCL2N.js';
|
|
2
2
|
import './chunk-6GCKCWLB.js';
|
|
3
3
|
import './chunk-OFXOTECC.js';
|
|
4
4
|
import './chunk-PFSDGGYL.js';
|
|
5
5
|
import './chunk-YU2CUNFO.js';
|
|
6
6
|
import './chunk-NLNDMWZC.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-MVBEL57Q.js';
|
|
8
8
|
import './chunk-GCM5JHMX.js';
|
|
9
9
|
import './chunk-UKPGSAZW.js';
|
|
10
10
|
import './chunk-75JP4BZX.js';
|
package/dist/vm.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQDMPOAI7_cjs = require('./chunk-QDMPOAI7.cjs');
|
|
4
4
|
require('./chunk-47LRVGOT.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkBXKJLM5R_cjs = require('./chunk-BXKJLM5R.cjs');
|
|
6
6
|
require('./chunk-FEAIOR7N.cjs');
|
|
7
7
|
require('./chunk-2MV4HBKC.cjs');
|
|
8
8
|
require('./chunk-MZOVP3WI.cjs');
|
|
@@ -193,47 +193,47 @@ var VMCheckpointer = class {
|
|
|
193
193
|
|
|
194
194
|
Object.defineProperty(exports, "DependencyGraph", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkQDMPOAI7_cjs.DependencyGraph; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "ScopeManager", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkQDMPOAI7_cjs.ScopeManager; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "createVM", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkQDMPOAI7_cjs.createVM; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "executeBytecode", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkQDMPOAI7_cjs.executeBytecode; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "OpRegistry", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkBXKJLM5R_cjs.OpRegistry; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "allocatePluginFunctionIndex", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkBXKJLM5R_cjs.allocatePluginFunctionIndex; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "binaryOp", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkBXKJLM5R_cjs.binaryOp; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "builtinFunctions", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkBXKJLM5R_cjs.builtinFunctions; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "pluginFunctionRegistry", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkBXKJLM5R_cjs.pluginFunctionRegistry; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "sharedOpRegistry", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkBXKJLM5R_cjs.sharedOpRegistry; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "unifyUom", {
|
|
235
235
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkBXKJLM5R_cjs.unifyUom; }
|
|
237
237
|
});
|
|
238
238
|
Object.defineProperty(exports, "Value", {
|
|
239
239
|
enumerable: true,
|
package/dist/vm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { DependencyGraph, ScopeManager, createVM, executeBytecode } from './chunk-
|
|
1
|
+
export { DependencyGraph, ScopeManager, createVM, executeBytecode } from './chunk-BAMZT3GL.js';
|
|
2
2
|
import './chunk-G535KJEG.js';
|
|
3
|
-
export { OpRegistry, allocatePluginFunctionIndex, binaryOp, builtinFunctions, pluginFunctionRegistry, sharedOpRegistry, unifyUom } from './chunk-
|
|
3
|
+
export { OpRegistry, allocatePluginFunctionIndex, binaryOp, builtinFunctions, pluginFunctionRegistry, sharedOpRegistry, unifyUom } from './chunk-MVBEL57Q.js';
|
|
4
4
|
import './chunk-GCM5JHMX.js';
|
|
5
5
|
import './chunk-UKPGSAZW.js';
|
|
6
6
|
import './chunk-75JP4BZX.js';
|
package/package.json
CHANGED