jsfe 1.101.2 → 1.101.3
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/forms/flows.d.ts.map +1 -1
- package/dist/forms/flows.js +5 -0
- package/dist/helpers/form-conversation.d.ts.map +1 -1
- package/dist/helpers/form-conversation.js +2 -0
- package/dist/helpers/match-inputs.d.ts.map +1 -1
- package/dist/helpers/match-inputs.js +6 -0
- package/dist/runtime-identity.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../src/forms/flows.js"],"names":[],"mappings":"AAqIA;;;;;;;GAOG;AACH;;;;GAIG;AACH,8HAA8H;AAC9H,uFAIC;AAsGD;;2EAE2E;AAC3E,qEAEC;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2EC;AACD;;;GAGG;AACH;;;;;;EAGC;
|
|
1
|
+
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../src/forms/flows.js"],"names":[],"mappings":"AAqIA;;;;;;;GAOG;AACH;;;;GAIG;AACH,8HAA8H;AAC9H,uFAIC;AAsGD;;2EAE2E;AAC3E,qEAEC;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2EC;AACD;;;GAGG;AACH;;;;;;EAGC;AAsoBD,wHAAwH;AACxH,wEAaC;AACD,4FAA4F;AAC5F;;;EAYC;AACD,sGAAsG;AACtG;;;EAOC;AAv9BM,6CAAuG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2J9G,4CAEqI;AAuhCrI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAOG"}
|
package/dist/forms/flows.js
CHANGED
|
@@ -492,6 +492,11 @@ const collectInput = {
|
|
|
492
492
|
// only what comes after the provider; an ending alone on the next turn completes it, any other reply drops it
|
|
493
493
|
// (owner 2026-11-18, prod 11-18 17:30). An unknown domain is never guessed: the address is asked again.
|
|
494
494
|
SET('ci_email_join', 'ci_partial', "ci_partial ? ci_partial : (function () { var state = cargo.forms[form]; var email = !!ci_spec && (ci_spec.profile && ci_spec.profile.kind === 'email' || (ci_spec.any_of || []).some(function (i) { return i.profile && i.profile.kind === 'email'; })); if (!email) return ''; var data = state.data = state.data || {}; var key = '__email_' + current; var said = String(cargo.choiceText || '').trim(); var held = String(data[key] || ''); delete data[key]; var end = held ? emailEnding(said) : ''; if (end) { cargo.choiceText = held + end; cargo.choice = held + end; return 'joined'; } var part = emailWithoutEnding(said); if (!part) return ''; data[key] = part; var fb = state.feedback || {}; fb[current] = 'email_ending'; state.feedback = fb; return 'hold'; })()"),
|
|
495
|
+
// A house number said alone at a street question (an input declared spoken_digits 'house_number'): it is kept and the
|
|
496
|
+
// caller is asked only the street name; a name on the next turn (it starts with a letter) completes the line, any other
|
|
497
|
+
// reply drops it and is read as usual (owner 2026-12-01; prod 2026-12-01 CAd21f1af, "15 1 5 0." at the street was read
|
|
498
|
+
// as a ZIP code said out of order and replaced the accepted one). A form card's submission never reaches this.
|
|
499
|
+
SET('ci_house_join', 'ci_partial', "ci_partial ? ci_partial : (function () { var state = cargo.forms[form]; if (!ci_spec || !ci_spec.profile || ci_spec.profile.spoken_digits !== 'house_number') return ''; var data = state.data = state.data || {}; var key = '__house_' + current; var said = String(cargo.choiceText || '').trim(); var held = String(data[key] || ''); delete data[key]; if (held) { if (!/^\\p{L}/u.test(said) || /^JSFE_FORM_/.test(said)) return ''; cargo.choiceText = held + ' ' + said; cargo.choice = held + ' ' + said; return 'joined'; } var digits = numberAlone(said); if (!/^[1-9]\\d{0,5}$/.test(digits)) return ''; data[key] = digits; var fb = state.feedback || {}; fb[current] = 'street_name'; state.feedback = fb; return 'hold'; })()"),
|
|
495
500
|
WHEN('ci_partial_hold', "ci_partial === 'hold'", END('ci_partial_wait')),
|
|
496
501
|
// A whole NO at a question that does not read it, in a form (or a sub-form of one) that declares `on_no`: that
|
|
497
502
|
// form's worker answers it (a payment starts its selection again), instead of any field or the reply ranker; the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-conversation.d.ts","sourceRoot":"","sources":["../../src/helpers/form-conversation.js"],"names":[],"mappings":"AAMA,0EAGC;AACD;;;;;GAKG;AACH,0FAKC;AACD;;;;;;GAMG;AACH,2EAOC;AACD,uJAAuJ;AACvJ,2EAUC;AACD;6GAC6G;AAC7G,2EAGC;AAYD,kHAAkH;AAClH,oDAGC;AACD,oEAGC;AACD;;qGAEqG;AACrG,2EAWC;AAKD;;0GAE0G;AAC1G,gFAIC;AACD;;;;;GAKG;AACH;;;SAQC;AACD;+CAC+C;AAC/C,sEAGC;AACD;;;GAGG;AACH,+
|
|
1
|
+
{"version":3,"file":"form-conversation.d.ts","sourceRoot":"","sources":["../../src/helpers/form-conversation.js"],"names":[],"mappings":"AAMA,0EAGC;AACD;;;;;GAKG;AACH,0FAKC;AACD;;;;;;GAMG;AACH,2EAOC;AACD,uJAAuJ;AACvJ,2EAUC;AACD;6GAC6G;AAC7G,2EAGC;AAYD,kHAAkH;AAClH,oDAGC;AACD,oEAGC;AACD;;qGAEqG;AACrG,2EAWC;AAKD;;0GAE0G;AAC1G,gFAIC;AACD;;;;;GAKG;AACH;;;SAQC;AACD;+CAC+C;AAC/C,sEAGC;AACD;;;GAGG;AACH,+GAeC;AAMD,oEAOC;AACD,8EAKC;AAED,yGAAyG;AACzG;;;;;;;;;;;;;;;;;;;;EAUC;AAED,sGAAsG;AACtG;;;;;;;;;;;;;;;;;;;;EAeC;AAED;2HAC2H;AAC3H,8EAOC"}
|
|
@@ -174,6 +174,8 @@ export function formInputPrompt(cargo, id, input, spec, data = {}, language = 'e
|
|
|
174
174
|
const retry = written('retry') || (es ? spec.retry_es : spec.retry);
|
|
175
175
|
if (feedback === 'partial')
|
|
176
176
|
return es ? 'Continúe.' : 'Go on.';
|
|
177
|
+
if (feedback === 'street_name')
|
|
178
|
+
return es ? '¿Cuál es el nombre de la calle?' : 'What is the street name?';
|
|
177
179
|
if (feedback === 'email_ending') {
|
|
178
180
|
const provider = String(cargo.forms?.[id]?.data?.['__email_' + input] || '').split('@')[1] || '';
|
|
179
181
|
return es ? `¿Qué sigue después de ${provider}? Por ejemplo, punto com.` : `What comes after ${provider}? For example, dot com.`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match-inputs.d.ts","sourceRoot":"","sources":["../../src/helpers/match-inputs.js"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,sEAQC;AA4ED;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"match-inputs.d.ts","sourceRoot":"","sources":["../../src/helpers/match-inputs.js"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,sEAQC;AA4ED;;;GAGG;AACH,sFA4IC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH;mHACmH;AAEnH,iEAEC;AAID,gGAQC;AAYD,kDAGC;AAED;;;;;;;GAOG;AACH;;;;SAcC;AACD;;;;;GAKG;AACH;;;;;;;;;;;;;;;;;;;;;;EAaC;AACD;;;;;;;;;;;;;;;;;;;;;;EAeC;AAyDD;;;;;;;;;;;;;;;;;;;;;;;EAkaC"}
|
|
@@ -258,6 +258,12 @@ export function readInputProfile(profile, answer, isCurrent = true) {
|
|
|
258
258
|
const start = m.index + m[0].indexOf(v);
|
|
259
259
|
return { value: v, spans: [[said.at(start), said.at(start + v.length - 1) + 1]], evidence: [`p:${String(v).toLowerCase()}`] };
|
|
260
260
|
}
|
|
261
|
+
else if (isCurrent && profile.spoken_digits === 'house_number' && /^\d{1,6}\s+\p{L}/u.test(said.text)) {
|
|
262
|
+
// At its own question a house number then a word is this street line, with or without a street type ("15150
|
|
263
|
+
// Magnolia"), never a ZIP code said out of order (owner 2026-12-01; prod 2026-12-01 CAd21f1af). Out of order the
|
|
264
|
+
// pattern alone reads a street.
|
|
265
|
+
return { value: said.text.trim(), spans: [[core.start, core.start + core.text.length]], evidence: ['house_number_line'] };
|
|
266
|
+
}
|
|
261
267
|
else {
|
|
262
268
|
// accept_other keeps the answer as given, as before
|
|
263
269
|
return isCurrent && profile.accept_other === true && raw.trim() ? { value: spoken(raw).text.trim(), fallback: true, spans: [[0, raw.length]] } : null;
|
package/dist/runtime-identity.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const JSFE_RUNTIME_FINGERPRINT = "sha256:
|
|
1
|
+
export const JSFE_RUNTIME_FINGERPRINT = "sha256:16265780206fc26daadbc26fa6a08d4622a0fd6779c3f57f09f1d4a3bd93d186";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsfe",
|
|
3
|
-
"version": "1.101.
|
|
3
|
+
"version": "1.101.3",
|
|
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",
|