@promptdriven/runtime-client 1.2.0 → 1.2.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/package.json
CHANGED
|
@@ -306,8 +306,8 @@ function discoverTests(root, files, strict = false,workspace=loadRuntimeWorkspac
|
|
|
306
306
|
|
|
307
307
|
const refusal = (code, section, message, extra = {}) => ({ code, section, message, ...extra });
|
|
308
308
|
// The PDD interpreter's whole-number range today: prompt_runtime/program_scenario.py (_validate_scenario_integers)
|
|
309
|
-
// for test values and prompt_runtime/graph_runtime_protocol.py for schema bounds
|
|
310
|
-
const INTERPRETER_INTEGERS = { min: -(2n **
|
|
309
|
+
// for test values and prompt_runtime/graph_runtime_protocol.py for schema bounds (signed 4096-bit exact integers).
|
|
310
|
+
const INTERPRETER_INTEGERS = { min: -(2n ** 4096n - 1n), max: 2n ** 4096n - 1n, text: 'signed 4096-bit exact integers (-(2^4096-1) through 2^4096-1)' };
|
|
311
311
|
const outsideInterpreter = value => typeof value === 'bigint' && (value < INTERPRETER_INTEGERS.min || value > INTERPRETER_INTEGERS.max);
|
|
312
312
|
// The interpreter's section of a test value: keys joined by ".", indexes as [N] (steps[10].input.seconds).
|
|
313
313
|
const interpreterSection = path => path.reduce((text, part) => typeof part === 'number' ? `${text}[${part}]` : text ? `${text}.${part}` : String(part), '');
|