jsfe 1.101.3 → 1.101.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"form-client.d.ts","sourceRoot":"","sources":["../../src/forms/form-client.js"],"names":[],"mappings":"AAiCA,iGAAiG;AACjG;;;;;SA4HC;AAMD;;;;;;;;GAQG;AACH;;;;;;;;SAoBC;AAED;;;;yGAIyG;AACzG,oDAyBC;AACD,+GAA+G;AAC/G;wHACwH;AACxH,qEAWC;AAED;;;;SA4CC;AAED;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDC;AA9UD,qCAAsC,eAAe,CAAC"}
1
+ {"version":3,"file":"form-client.d.ts","sourceRoot":"","sources":["../../src/forms/form-client.js"],"names":[],"mappings":"AAiCA,iGAAiG;AACjG;;;;;SA4HC;AAMD;;;;;;;;GAQG;AACH;;;;;;;;SAoBC;AAED;;;;yGAIyG;AACzG,oDAyBC;AACD,+GAA+G;AAC/G;wHACwH;AACxH,qEAWC;AAED;;;;SA4CC;AAED;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDC;AAlVD,qCAAsC,eAAe,CAAC"}
@@ -402,11 +402,15 @@ export function formSubmissionReaders(submission, getSession) {
402
402
  },
403
403
  enrichFormMatches(matches, chain, form, names = [], asked = '') {
404
404
  const result = enrichFormMatches(matches, chain, form, names, asked);
405
+ // A card that answers the asked field answers the rest in order too, as if each had been asked in turn: none is
406
+ // acknowledged. Without it the others are out of order, and a changed value is a correction: both acknowledged.
407
+ const inOrder = result.hits.some(hit => hit.origin === 'form_submission' && hit.current && !hit.invalid);
408
+ const held = hit => Object.hasOwn(getSession().cargo.forms[hit.form]?.values || {}, hit.name);
405
409
  result.hits = result.hits.map(hit => {
406
410
  if (hit.origin !== 'form_submission')
407
411
  return hit;
408
412
  // Use the original prompt match for acknowledgment before bypassing conversational extraction.
409
- return { ...hit, silent: hit.silent || hit.current, current: false, out_of_order_number: false };
413
+ return { ...hit, silent: hit.silent || hit.current || inOrder && !held(hit), current: false, out_of_order_number: false };
410
414
  });
411
415
  return result;
412
416
  }
@@ -1 +1 @@
1
- export const JSFE_RUNTIME_FINGERPRINT = "sha256:16265780206fc26daadbc26fa6a08d4622a0fd6779c3f57f09f1d4a3bd93d186";
1
+ export const JSFE_RUNTIME_FINGERPRINT = "sha256:2ec71cd855b17a8742d4a9dd378d52ebf3522f96cbcf1ab9230c7778b3a1dfff";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsfe",
3
- "version": "1.101.3",
3
+ "version": "1.101.4",
4
4
  "description": "TypeScript workflow engine for conversational/automation apps: multi-flow orchestration, interrupt/resume, stack-based control, robust errors, and flexible tool/REST integration.",
5
5
  "license": "MIT",
6
6
  "author": "Ron Pinkas",