datagrok-tools 6.3.1 → 6.3.2
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/CHANGELOG.md +2 -1
- package/package.json +1 -1
- package/plugins/func-gen-plugin.js +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Datagrok-tools changelog
|
|
2
2
|
|
|
3
|
-
## 6.3.
|
|
3
|
+
## 6.3.2 (2026-06-15)
|
|
4
4
|
|
|
5
|
+
* `func-gen` webpack plugin — generated RichFunctionView model inputs now use the script-form names (argument bounds/step `_t0`/`_t1`/`_h`, loop count `_count`) instead of the deprefixed forms, so the run, fitting, and sensitivity-analysis paths share one set of input names with diff-grok's pipeline. Fixes `Inconsistent inputs: "_t0" is missing` when starting fitting/SA from a Rich Function View.
|
|
5
6
|
* `func-gen` webpack plugin — the generated RichFunctionView model output annotation appends the `DiffStudio Facet` viewer (last), alongside Grid and Line chart.
|
|
6
7
|
* `grok stresstest` — run the ApiTests Node test runner directly via tsx (`src/package-test-node.ts`) instead of a compiled `dist-node` bundle; dropped the obsolete `npm run build-node` step and the `tsconfig-paths-bootstrap.js` / `dist-node` invocation.
|
|
7
8
|
|
package/package.json
CHANGED
|
@@ -48,20 +48,19 @@ function preparseIvpModel(parser, text) {
|
|
|
48
48
|
}
|
|
49
49
|
if (!ivp || !ivp.name) return null;
|
|
50
50
|
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
// when forwarding values to `runDiffStudioModel`.
|
|
51
|
+
// Input names use the script-form names (arg bounds/step `_`-prefixed, loop count `_count`) so the
|
|
52
|
+
// run path, the diff-grok fitting/SA pipeline, and `propagateChoice` lookups all agree on one set
|
|
53
|
+
// of names. `scriptKey` mirrors `name`; it is kept only for the value-forwarding map below.
|
|
55
54
|
const mk = (type, name, scriptKey, input) =>
|
|
56
55
|
({tsType: 'number', name, scriptKey,
|
|
57
56
|
annotation: `//input: ${type} ${name} = ${input.value} ${input.annot ?? ''}`.trim()});
|
|
58
57
|
|
|
59
58
|
const inputs = [];
|
|
60
59
|
const a = ivp.arg.name;
|
|
61
|
-
if (ivp.loop) inputs.push(mk('int', '
|
|
62
|
-
inputs.push(mk('double',
|
|
63
|
-
inputs.push(mk('double',
|
|
64
|
-
inputs.push(mk('double', '
|
|
60
|
+
if (ivp.loop) inputs.push(mk('int', '_count', '_count', ivp.loop.count));
|
|
61
|
+
inputs.push(mk('double', `_${a}0`, `_${a}0`, ivp.arg.initial));
|
|
62
|
+
inputs.push(mk('double', `_${a}1`, `_${a}1`, ivp.arg.final));
|
|
63
|
+
inputs.push(mk('double', '_h', '_h', ivp.arg.step));
|
|
65
64
|
for (const [k, v] of ivp.inits) inputs.push(mk('double', k, k, v));
|
|
66
65
|
if (ivp.params) for (const [k, v] of ivp.params) inputs.push(mk('double', k, k, v));
|
|
67
66
|
|