@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptdriven/runtime-client",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "PDD Runtime Client (@promptdriven/runtime-client)",
5
5
  "type": "module",
6
6
  "main": "./src/index.mjs",
@@ -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. Change it only with the interpreter.
310
- const INTERPRETER_INTEGERS = { min: -(2n ** 53n - 1n), max: 2n ** 53n - 1n, text: '-9007199254740991 through 9007199254740991' };
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), '');