jsfe 1.31.0 → 1.33.0
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/README.md +3 -0
- package/dist/forms/address-flows.d.ts.map +1 -1
- package/dist/forms/address-flows.js +4 -3
- package/dist/forms/declarations.js +1 -1
- package/dist/forms/flows.d.ts +3 -1
- package/dist/forms/flows.d.ts.map +1 -1
- package/dist/forms/flows.js +20 -14
- package/dist/helpers/address.d.ts +0 -1
- package/dist/helpers/address.d.ts.map +1 -1
- package/dist/helpers/address.js +2 -1
- package/dist/helpers/answer.d.ts.map +1 -1
- package/dist/helpers/answer.js +3 -1
- package/dist/helpers/contextual-response.d.ts.map +1 -1
- package/dist/helpers/contextual-response.js +3 -0
- package/dist/helpers/form-conversation.d.ts +3 -0
- package/dist/helpers/form-conversation.d.ts.map +1 -1
- package/dist/helpers/form-conversation.js +18 -2
- package/dist/helpers/form-state.d.ts +3 -1
- package/dist/helpers/form-state.d.ts.map +1 -1
- package/dist/helpers/form-state.js +11 -3
- package/dist/helpers/index.d.ts +6 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +3 -2
- package/dist/helpers/match-inputs.d.ts.map +1 -1
- package/dist/helpers/match-inputs.js +34 -6
- package/dist/helpers/spoken-digits.d.ts +12 -0
- package/dist/helpers/spoken-digits.d.ts.map +1 -0
- package/dist/helpers/spoken-digits.js +67 -0
- package/dist/host/reply-rank.js +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -1
- package/dist/runtime-identity.js +1 -1
- package/docs/architecture-guide.md +1 -1
- package/docs/copilot-reference.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -427,6 +427,9 @@ that declares it) says "Got it, your …" / "Okay, I noted your …" only for a
|
|
|
427
427
|
kind is digits, email, phone, amount, identifier, account or text. A pick among offered words (`choice`, `pattern`), such as
|
|
428
428
|
NEW CARD, is not acknowledged: the next question already shows it was understood. Rejections are always said. Without the
|
|
429
429
|
attribute every input is acknowledged as before (`formAcknowledges(cargo, reading)`).
|
|
430
|
+
An input filled out of order is always acknowledged, under either mode: the caller changed something the question did not ask (owner 2026-11-02).
|
|
431
|
+
|
|
432
|
+
**A full match, or the ranker (jsfe 1.32.0, owner 2026-11-02):** one part of an answer read out of order, with nothing read for the question asked, accounts for the whole answer: the reading, courtesy or connecting words, and the field's own words (`name`, `names`, `label`, `template_words`, its `confirm_out_of_order` word). Any other word goes to the reply ranker, which is offered every choice the chain's reader accepts. An input asked keeps its reading, several parts read are a compound answer, a confirmation's fields are corrections, an amount keeps its own rule. Under `must_complete` the ranker always reads a worded reply, a clear withdrawal ends the flows, and any other verdict that picks nothing stays (`first_task`, `first_task_es`; DISPATCH `responseStay`).
|
|
430
433
|
|
|
431
434
|
**Digits said in groups (jsfe 1.19.1):** every `digits` input reads a comma, or a period and a space, after a group of
|
|
432
435
|
one to three digits as a pause inside one number, because speech-to-text writes spoken groups that way ("926, 1 0." is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-flows.d.ts","sourceRoot":"","sources":["../../src/forms/address-flows.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"address-flows.d.ts","sourceRoot":"","sources":["../../src/forms/address-flows.js"],"names":[],"mappings":"AA6CA,0BAAmF"}
|
|
@@ -14,8 +14,8 @@ const address = defineForm({ id: 'collect-geocoded-address', name: 'CollectGeoco
|
|
|
14
14
|
inputs: [{ name: 'zip', field: 'zip', argument_description: '5-digit ZIP code', names: ['zip', 'zip code', 'postal code', 'código postal', 'codigo postal'], validator: 'address-zip-validate', prepare: 'address-zip-prompt', question_from: 'zip_question', question: 'What is the 5-digit zip code of your new address?', question_es: '¿Cuál es el código postal de 5 dígitos de su nueva dirección?' },
|
|
15
15
|
{ name: 'city', argument_description: 'city name alone', label: 'city', label_es: 'ciudad', names: ['city', 'ciudad'], profile: { kind: 'choice', choices: [], accept_other: true }, choices_from: 'city_choices', when: { 'form.data.city_known': true }, depends_on: ['zip'], reset_on: ['zip'], prepare: 'address-city-prompt', question_from: 'city_question', question: 'Which city is it?', question_es: '¿Qué ciudad es?' },
|
|
16
16
|
{ name: 'city_state', argument_description: 'city and state', label: 'city and state', label_es: 'ciudad y estado', names: ['city', 'ciudad'], profile: { kind: 'text' }, when: { 'form.data.need_city': true }, depends_on: ['zip'], question: 'What city and state is that in?', question_es: '¿En qué ciudad y estado está?' },
|
|
17
|
-
{ name: 'street', argument_description: 'street number and street name, without the apartment', label: 'street address', label_es: 'dirección', names: ['street', 'calle'], profile: { kind: 'pattern', regex: streetPattern, accept_other: true }, depends_on: ['zip'], validator: 'address-street-validate', prepare: 'address-street-prompt', question_from: 'street_question', question: 'What is the street address?', question_es: '¿Cuál es la dirección?' },
|
|
18
|
-
{ name: 'unit', argument_description: 'apartment or unit number alone, such as 4 or 12B', reset_on: ['street'], label: 'apartment or unit', label_es: 'apartamento o unidad', names: ['apartment', 'apt', 'unit', 'apartamento', 'unidad', 'departamento'], profile: { kind: 'pattern', regex: '(?:\\bapartment|\\bapartamento|\\bdepartamento|\\bapt\\.?|\\bunit|\\bunidad|#)\\s*([\\w-]+)', group: 1, accept_other: true }, question: 'Is there an apartment or unit number? Type the number, or NONE.', question_es: '¿Hay un número de apartamento o unidad? Escriba el número, o NINGUNO.' }],
|
|
17
|
+
{ name: 'street', argument_description: 'street number and street name, without the apartment', label: 'street address', label_es: 'dirección', names: ['street', 'calle'], profile: { kind: 'pattern', regex: streetPattern, spoken_digits: 'house_number', accept_other: true }, depends_on: ['zip'], validator: 'address-street-validate', prepare: 'address-street-prompt', question_from: 'street_question', question: 'What is the street address?', question_es: '¿Cuál es la dirección?' },
|
|
18
|
+
{ name: 'unit', argument_description: 'apartment or unit number alone, such as 4 or 12B', reset_on: ['street'], label: 'apartment or unit', label_es: 'apartamento o unidad', names: ['apartment', 'apt', 'unit', 'apartamento', 'unidad', 'departamento'], profile: { kind: 'pattern', regex: '(?:\\bapartment|\\bapartamento|\\bdepartamento|\\bapt\\.?|\\bunit|\\bunidad|#)\\s*([\\w-]+)', group: 1, spoken_digits: true, accept_other: true }, question: 'Is there an apartment or unit number? Type the number, or NONE.', question_es: '¿Hay un número de apartamento o unidad? Escriba el número, o NINGUNO.' }],
|
|
19
19
|
before_confirm: [S('address_resolved', 'address_result', E(resolvedAddress, 'cargo.forms[form_instance].values', 'cargo.forms[form_instance].data'))],
|
|
20
20
|
confirm: { named_fields: true, reply_context: 'This is a mailing address read back for confirmation. A reply may correct one part or several at once: the street number, street name or street type, the apartment or unit, the city, or the ZIP code.', no_keys: ['2', 'not right', 'not correct', 'incorrect', 'wrong', 'no es correcto', 'no es correcta', 'incorrecta'], question: 'Your new address is {{address_result.line}}. Is that correct?', question_es: 'Su nueva dirección es {{address_result.line}}. ¿Es correcta?' },
|
|
21
21
|
after: [S('address_result_store', 'noop', '(cargo.forms[form_instance].values.resolved = address_result, cargo.address = address_result, cargo.addressDraft = null, true)')], declined: [S('address_retry_noop', 'noop', 'true')] });
|
|
@@ -25,7 +25,8 @@ const zip = C('address-zip-validate', 'Read city and state from geocoder evidenc
|
|
|
25
25
|
S('address_zip_result', 'noop', "(cargo.forms[form].data=Object.assign({},cargo.forms[form].data,{location:location,need_city:!location,city_known:!!location,city_choice:!!(location&&location.cities.length),city_choices:" + E(cityChoices, 'location') + "}), location&&!location.cities.length&&cargo.forms[form].values.city===undefined?(cargo.forms[form].values.city=location.city,cargo.forms[form].accepted.city={origin:'derived',revision:cargo.forms[form].revision||0}):null, cargo.inputCheck={ok:true,value:String(value)}, true)")
|
|
26
26
|
], { parameters: [P('form'), P('value')], variables: V({ components: '', result: null, location: null }), contract: { tools: ['geocode-zip'], result: { path: 'cargo.inputCheck', type: 'object' } } });
|
|
27
27
|
const street = C('address-street-validate', 'Validate a proposed street against its ZIP; retain unverified wording when geocoding is inconclusive.', [
|
|
28
|
-
|
|
28
|
+
S('address_street_said', 'value', "joinSpokenDigits(String(value),'house_number')"),
|
|
29
|
+
W('address_street_malformed', "!/^\\d{1,6}\\s+(?:\\d{1,3}\\s+)?[A-Za-z\\xC0-\\xFF]/.test(String(value))", S('address_street_invalid', 'noop', "(cargo.inputCheck={ok:false,message:'Please give the street number and street name.',message_es:'Indique el número y nombre de la calle.'},true)")), W('address_street_stop', "!/^\\d{1,6}\\s+(?:\\d{1,3}\\s+)?[A-Za-z\\xC0-\\xFF]/.test(String(value))", { id: 'address_street_invalid_end', type: 'END' }),
|
|
29
30
|
S('address_street_components', 'components', "'postal_code:'+values.zip+'|country:US'"), { id: 'address_street_tool', type: 'CALL-TOOL', tool: 'geocode-street', variable: 'result', args: { address: '{{value}}', components: '{{components}}' }, onFail: S('address_street_failed', 'result', 'null') },
|
|
30
31
|
S('address_street_projection', 'location', E(streetLocation, 'result', 'value', 'values.zip')),
|
|
31
32
|
S('address_street_result', 'noop', "(cargo.forms[form].data.street=location, location.city&&cargo.forms[form].accepted&&cargo.forms[form].accepted.city&&cargo.forms[form].accepted.city.origin==='derived'&&cargo.forms[form].values.city!==location.city?(cargo.forms[form].values.city=location.city):null, cargo.inputCheck={ok:true,value:String(value)}, true)")
|
|
@@ -4,7 +4,7 @@ import { linkFormSchemas, validateFlowContracts } from './contracts.js';
|
|
|
4
4
|
import { compileFormPrompts } from './prompt-compiler.js';
|
|
5
5
|
import { withSafetyRevision } from './continuation-safety.js';
|
|
6
6
|
import { capturedAuthorSpec, copyAuthorSpec, authoredExpressions } from './declaration-capture.js';
|
|
7
|
-
const formKeys = new Set(['inputs', 'before', 'after', 'confirm', 'before_confirm', 'declined', 'stop', 'close_on_stop', 'resume_on_parent_change', 'done', 'validator', 'confirmation_condition', 'prompt', 'prompt_es', 'incomplete_outcome', 'on_exhausted', 'on_no', 'must_complete', 'acknowledge']);
|
|
7
|
+
const formKeys = new Set(['inputs', 'before', 'after', 'confirm', 'before_confirm', 'declined', 'stop', 'close_on_stop', 'resume_on_parent_change', 'done', 'validator', 'confirmation_condition', 'prompt', 'prompt_es', 'incomplete_outcome', 'on_exhausted', 'on_no', 'must_complete', 'first_task', 'first_task_es', 'acknowledge']);
|
|
8
8
|
const sharedKeys = ['id', 'name', 'description', 'version', 'scope', 'primary', 'parameters', 'contract', 'parameterInstructions'];
|
|
9
9
|
const safe = /^[A-Za-z_$][\w$]*$/;
|
|
10
10
|
const fail = message => { throw new Error('Flow declaration: ' + message); };
|
package/dist/forms/flows.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function formFlow({ id, name, version, description, inputs, after, extraVars, parameters, confirm, before_confirm, declined, stop, close_on_stop, on_no, resume_on_parent_change, before, done, primary, scope, validator, confirmation_condition, prompt, prompt_es, incomplete_outcome, on_exhausted, must_complete, acknowledge }: {
|
|
1
|
+
export function formFlow({ id, name, version, description, inputs, after, extraVars, parameters, confirm, before_confirm, declined, stop, close_on_stop, on_no, resume_on_parent_change, before, done, primary, scope, validator, confirmation_condition, prompt, prompt_es, incomplete_outcome, on_exhausted, must_complete, first_task, first_task_es, acknowledge }: {
|
|
2
2
|
id: any;
|
|
3
3
|
name: any;
|
|
4
4
|
version: any;
|
|
@@ -25,6 +25,8 @@ export function formFlow({ id, name, version, description, inputs, after, extraV
|
|
|
25
25
|
incomplete_outcome?: null | undefined;
|
|
26
26
|
on_exhausted?: null | undefined;
|
|
27
27
|
must_complete?: boolean | undefined;
|
|
28
|
+
first_task?: string | undefined;
|
|
29
|
+
first_task_es?: string | undefined;
|
|
28
30
|
acknowledge?: string | undefined;
|
|
29
31
|
}): {
|
|
30
32
|
variables: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../src/forms/flows.js"],"names":[],"mappings":"AAsIA
|
|
1
|
+
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../src/forms/flows.js"],"names":[],"mappings":"AAsIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8DC;AACD;;;GAGG;AACH;;;;;;EAGC;AA4hBD,wHAAwH;AACxH,wEAaC;AACD,4FAA4F;AAC5F;;;EAYC;AACD,sGAAsG;AACtG;;;EAOC;AAnuBM,6CAAuG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA47B9G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAOG"}
|
package/dist/forms/flows.js
CHANGED
|
@@ -128,7 +128,7 @@ function validateAcceptanceDeclarations(id, inputs) {
|
|
|
128
128
|
else { /* no invites, or a list of names */ }
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
export function formFlow({ id, name, version, description, inputs, after = [], extraVars = {}, parameters = [], confirm = null, before_confirm = [], declined = [], stop = '', close_on_stop = false, on_no = '', resume_on_parent_change = false, before = [], done = true, primary = false, scope = 'isolated', validator = '', confirmation_condition = 'true', prompt = undefined, prompt_es = undefined, incomplete_outcome = null, on_exhausted = null, must_complete = false, acknowledge = 'all' }) {
|
|
131
|
+
export function formFlow({ id, name, version, description, inputs, after = [], extraVars = {}, parameters = [], confirm = null, before_confirm = [], declined = [], stop = '', close_on_stop = false, on_no = '', resume_on_parent_change = false, before = [], done = true, primary = false, scope = 'isolated', validator = '', confirmation_condition = 'true', prompt = undefined, prompt_es = undefined, incomplete_outcome = null, on_exhausted = null, must_complete = false, first_task = '', first_task_es = '', acknowledge = 'all' }) {
|
|
132
132
|
validateFormExhaustion(on_exhausted);
|
|
133
133
|
if (acknowledge !== 'all' && acknowledge !== 'data')
|
|
134
134
|
throw new Error(`FORM ${id}: acknowledge must be 'all' or 'data'`);
|
|
@@ -165,7 +165,7 @@ export function formFlow({ id, name, version, description, inputs, after = [], e
|
|
|
165
165
|
...(hasFormResponse(inputs) ? [{ ...SET(`${id}_response_reader_required`, 'noop', "typeof validateFormResponse === 'function'"), requireTrue: true }] : []),
|
|
166
166
|
...proposalRuntimeSteps(id, [], hasInputProposals(inputs) ? [INPUT_PROPOSALS_REQUIREMENT] : []),
|
|
167
167
|
SET(`${id}_resume_kind`, 'form_internal_resume', '!!form_instance'),
|
|
168
|
-
SET(`${id}_open`, 'form_instance', `openFormInstance(cargo, ${JSON.stringify(id)}, inputs, { parent: parent_form || null, input: result_input || '', context:!!parent_form && !result_input, resume_on_parent_change: ${resume_on_parent_change === true}, resume: form_instance || (!parent_form ? (cargo.formTasks || {})[${JSON.stringify(id)}] || '' : ''), providers: provides, questions: questions, incomplete_outcome: ${incompleteExpression}, on_exhausted: form_on_exhausted, on_no: form_on_no, must_complete: form_must_complete${acknowledge === 'data' ? ", acknowledge: 'data'" : ''} })`),
|
|
168
|
+
SET(`${id}_open`, 'form_instance', `openFormInstance(cargo, ${JSON.stringify(id)}, inputs, { parent: parent_form || null, input: result_input || '', context:!!parent_form && !result_input, resume_on_parent_change: ${resume_on_parent_change === true}, resume: form_instance || (!parent_form ? (cargo.formTasks || {})[${JSON.stringify(id)}] || '' : ''), providers: provides, questions: questions, incomplete_outcome: ${incompleteExpression}, on_exhausted: form_on_exhausted, on_no: form_on_no, must_complete: form_must_complete${first_task ? `, first_task: ${JSON.stringify(first_task)}` : ''}${first_task_es ? `, first_task_es: ${JSON.stringify(first_task_es)}` : ''}${acknowledge === 'data' ? ", acknowledge: 'data'" : ''} })`),
|
|
169
169
|
SIDE(`${id}_task`, `(!parent_form ? (cargo.formTasks = cargo.formTasks || {}, cargo.formTasks[${JSON.stringify(id)}] = form_instance) : true, true)`),
|
|
170
170
|
SIDE(`${id}_provider_reset`, '(delete cargo.forms[form_instance].providerRequests, delete cargo.forms[form_instance].activeGates, delete cargo.forms[form_instance].afterRunning, delete cargo.forms[form_instance].providerGateActive, true)'),
|
|
171
171
|
SIDE(`${id}_pass_reset`, '(cargo.forms[form_instance].replays = 0, form_internal_resume ? true : (cargo.forms[form_instance].attempts = {},cargo.forms[form_instance].misses={},cargo.forms[form_instance].feedback={}), true)'),
|
|
@@ -327,7 +327,7 @@ const collectInput = {
|
|
|
327
327
|
SET('ci_skip_gate', 'ci_skip_gate', "!provides || !provides.gate || [].concat(provides.gate.verified || []).every(function(p){return !!formPath({cargo:cargo},p);}) ? 'true' : ''"),
|
|
328
328
|
WHEN('ci_explicit_question', 'ci_m.questions.length > 0', FLOW('ci_explicit_provide', 'provide-data', 'call', { form: '{{form}}', provides: '{{provides}}', asked: '{{ci_qkey}}', asked_keys: '{{ci_m.questions}}', no_menu: 'true', no_gate: '{{ci_skip_gate}}' })),
|
|
329
329
|
WHEN('ci_explicit_question_done', 'ci_m.questions.length > 0', END('ci_explicit_question_end')),
|
|
330
|
-
SET('ci_reply_reader', 'ci_reply_reader', "
|
|
330
|
+
SET('ci_reply_reader', 'ci_reply_reader', "'read-form-choice'"),
|
|
331
331
|
// input.confirm_out_of_order: the number filled nothing; say how to mean it, then the question again. It counts as an attempt.
|
|
332
332
|
SET('ci_clarify', 'ci_clarify', "!ci_m.hits.length && !ci_m.ambiguous.length && !ci_m.questions.length && Array.isArray(ci_m.clarify) && ci_m.clarify.length ? ci_m.clarify[0] : null"),
|
|
333
333
|
WHEN('ci_clarify_attempt', 'ci_clarify', SIDE('ci_clarify_count', "(cargo.forms[form].attempts=cargo.forms[form].attempts || {},cargo.forms[form].attempts[current]=Number(cargo.forms[form].attempts[current] || 0)+1,true)")),
|
|
@@ -338,7 +338,7 @@ const collectInput = {
|
|
|
338
338
|
'condition: ci_m.hits.length > 0': FLOW('ci_accept', 'collect-input-accept', 'call', { hits: '{{ci_m.hits}}' }),
|
|
339
339
|
"condition: ci_m.questions.length > 0": END('ci_question_handled'),
|
|
340
340
|
"condition: ci_qkey && ci_qkey.indexOf('__') !== 0": FLOW('ci_question_asked', 'provide-data', 'call', { form: '{{form}}', provides: '{{provides}}', asked: '{{ci_qkey}}', no_menu: 'true', no_gate: '{{ci_skip_gate}}' }),
|
|
341
|
-
"condition:
|
|
341
|
+
"condition: ci_words > 0": FLOW('ci_elsewhere', '{{ci_reply_reader}}', 'call', { form: '{{form}}', input: '{{current}}', question: '{{ci_q}}', question_es: '{{ci_q_es}}', choices: '{{ci_choices}}', firm: '{{ci_spec.confirmation}}' }),
|
|
342
342
|
default: SIDE('ci_miss', "(missFormInput(cargo,form,current),true)")
|
|
343
343
|
} },
|
|
344
344
|
],
|
|
@@ -418,8 +418,11 @@ const readFormResponse = {
|
|
|
418
418
|
// offered, `exact` ones too (exact is how WORDS match a choice, not a confirmation); only the YES of a firm (hard)
|
|
419
419
|
// confirmation never is. A choice without a label is described by its key and its worded phrases (keys are digits).
|
|
420
420
|
// `answers` (picks none): asked again ("Sorry, I didn't catch that."), counted as an attempt so max_attempts still bounds
|
|
421
|
-
// it; `abort` ends every flow; `new_request` goes to intent detection.
|
|
422
|
-
|
|
421
|
+
// it; `abort` ends every flow; `new_request` goes to intent detection. Under must_complete (owner 2026-11-02) the reply always
|
|
422
|
+
// reaches the ranker, which is offered every choice the chain's reader would accept. A clear withdrawal (`abort`) ends every
|
|
423
|
+
// flow, as anywhere; any other verdict that picks none of them, a new request included, stays: "I understand, first let's {first_task}." and the question again. It uses no
|
|
424
|
+
// attempt: only a value the field rejected does (its contract: an unreadable answer is never handed away).
|
|
425
|
+
const rankedMiss = (id) => SIDE(id, "(formMustComplete(cargo,form,input) ? (missFormInput(cargo,form,input),cargo.forms[form].feedback[input]='first') : (cargo.forms[form].attempts=cargo.forms[form].attempts || {},cargo.forms[form].attempts[input]=Number(cargo.forms[form].attempts[input] || 0)+1,cargo.forms[form].feedback=cargo.forms[form].feedback || {},cargo.forms[form].feedback[input]='miss'),true)");
|
|
423
426
|
// The ranker is offered only a person. Text is never offered: its label matched "continuar", "texto" and "enlace", and a
|
|
424
427
|
// call moved to text hangs up (prod 2026-10-28: 7 of 7 such picks were wrong). TEXTO and keypad 9 are read before it.
|
|
425
428
|
const ESCAPES_JS = "[{key:'__agent',label:'speak with a person (a live agent)'}]";
|
|
@@ -432,7 +435,7 @@ const RANK_LABEL_JS = "function(c){var said=(Array.isArray(c.phrases) ? c.phrase
|
|
|
432
435
|
// already offered is not offered twice. Each carries its input, so a pick is read as that input's answer.
|
|
433
436
|
const otherChoicesJS = (asked, taken, scope = `i.form===form && i.name!==${asked}`) => `(function(){var seen=(${taken}).map(function(c){return String(c.key);}).concat(['yes','no']);return (chain || []).filter(function(i){return ${scope} && !i.confirmation && i.profile && i.profile.kind==='choice' && Array.isArray(i.profile.choices);}).reduce(function(all,i){return all.concat(i.profile.choices.filter(function(c){var k=String(c.key);if(c.current_only===true||seen.indexOf(k)>=0)return false;seen.push(k);return true;}).map(function(c){return {key:String(c.key),label:(${RANK_LABEL_JS})(c),owner:{form:i.form,name:i.name}};}));},[]);})()`;
|
|
434
437
|
const escapeRoutes = (id) => [WHEN(`${id}_agent`, "reply && reply.key === '__agent'", FLOW(`${id}_agent_flow`, 'live-agent-requested', 'reboot'))];
|
|
435
|
-
const rankedDispatch = (id, reason) => ({ ...yieldDispatch(id, 'form', `'${reason}'`), onResponse: 'continue', responseContext: 'Current question: {{asked}}', responseChoices: 'ranked', responseVariable: 'reply' });
|
|
438
|
+
const rankedDispatch = (id, reason, stay = false) => ({ ...yieldDispatch(id, 'form', `'${reason}'`), onResponse: 'continue', responseContext: 'Current question: {{asked}}', responseChoices: 'ranked', responseVariable: 'reply', ...(stay ? { responseStay: 'stay' } : {}) });
|
|
436
439
|
const readFormReply = {
|
|
437
440
|
id: 'read-form-reply', name: 'ReadFormReply', version: '1.1.0', scope: 'isolated', description: 'Rank an unreadable answer against its question: a request for a person or for text is taken; an answer is asked again; a withdrawal or a new request leaves with saved form progress.',
|
|
438
441
|
parameters: [{ name: 'form', type: 'string' }, { name: 'input', type: 'string' }, { name: 'question', type: 'string' }, { name: 'question_es', type: 'string' }],
|
|
@@ -459,12 +462,13 @@ const readProviderReply = {
|
|
|
459
462
|
const readFormChoice = {
|
|
460
463
|
id: 'read-form-choice', name: 'ReadFormChoice', version: '1.3.0', scope: 'isolated', description: 'Rank an unreadable answer to a choice question and take the offered option it picks, or a request for a person or for text; otherwise ask again. A withdrawal or a new request leaves with saved form progress.',
|
|
461
464
|
parameters: [{ name: 'form', type: 'string' }, { name: 'input', type: 'string' }, { name: 'question', type: 'string' }, { name: 'question_es', type: 'string' }, { name: 'choices', type: 'array' }, { name: 'firm', type: 'string' }],
|
|
462
|
-
variables: vars({ question: '', question_es: '', choices: [], firm: '', asked: '', ranked: [], reply: null, picked: '', chain: null, reading: null, others: [], owner: null }),
|
|
465
|
+
variables: vars({ question: '', question_es: '', choices: [], firm: '', asked: '', ranked: [], reply: null, picked: '', chain: null, reading: null, others: [], owner: null, stay: false }),
|
|
463
466
|
steps: [SET('choice_asked', 'asked', "language === 'es' && question_es ? question_es : question"),
|
|
464
467
|
SET('choice_chain', 'chain', 'formInputChain(cargo.forms, form, cargo)'),
|
|
465
|
-
SET('
|
|
468
|
+
SET('choice_stay', 'stay', 'formMustComplete(cargo,form,input)'),
|
|
469
|
+
SET('choice_others', 'others', otherChoicesJS('input', 'choices || []', "!(i.form===form && i.name===input)")),
|
|
466
470
|
rankedChoices('choice_ranked', `(choices || []).filter(function(c,i,all){return !(firm==='firm' && String(c.key)==='yes') && all.findIndex(function(o){return String(o.key)===String(c.key);})===i;}).map(function(c){return {key:String(c.key),label:(${RANK_LABEL_JS})(c)};}).concat(others.map(function(c){return {key:c.key,label:c.label};}))`),
|
|
467
|
-
rankedDispatch('choice_dispatch', 'input_not_matched'),
|
|
471
|
+
rankedDispatch('choice_dispatch', 'input_not_matched', true),
|
|
468
472
|
...escapeRoutes('choice_escape'),
|
|
469
473
|
SET('choice_picked', 'picked', "(function(){var k=String(reply && reply.key || '');var c=(choices || []).filter(function(c){return String(c.key)===k;})[0] || others.filter(function(c){return c.key===k;})[0];return c ? String(c.key) : '';})()"),
|
|
470
474
|
// A question over any_of asks one name and its choices belong to a member ('selection' asks, 'option' holds PAST DUE): the pick is read as the member's answer.
|
|
@@ -485,9 +489,10 @@ const readFormChoice = {
|
|
|
485
489
|
const readConfirmReply = {
|
|
486
490
|
id: 'read-confirm-reply', name: 'ReadConfirmReply', version: '1.3.0', scope: 'isolated', description: 'Rank an unreadable answer to a confirmation: it declines (NO), picks another of the form\'s choices (a correction, read as that input\'s answer), says a named field read back is wrong (confirm.named_fields: that input is asked again), asks for a person, or is asked again; a withdrawal or a new request leaves with saved form progress. Never confirms.',
|
|
487
491
|
parameters: [{ name: 'form', type: 'string' }, { name: 'question', type: 'string' }, { name: 'question_es', type: 'string' }, { name: 'named_fields', type: 'boolean' }, { name: 'reply_context', type: 'string' }],
|
|
488
|
-
variables: vars({ question: '', question_es: '', asked: '', ranked: [], reply: null, chain: null, others: [], fields: [], field: null, picked: null, reading: null, named_fields: false, prompt: null, field_arguments: [], corrections: [], reply_context: '' }),
|
|
492
|
+
variables: vars({ question: '', question_es: '', asked: '', ranked: [], reply: null, chain: null, others: [], fields: [], field: null, picked: null, reading: null, named_fields: false, prompt: null, field_arguments: [], corrections: [], reply_context: '', stay: false }),
|
|
489
493
|
steps: [
|
|
490
494
|
SET('confirm_asked', 'asked', "(language === 'es' && question_es ? question_es : question)+(reply_context ? ' '+reply_context : '')"),
|
|
495
|
+
SET('confirm_stay', 'stay', "formMustComplete(cargo,form,'__confirm')"),
|
|
491
496
|
SET('confirm_chain', 'chain', 'formInputChain(cargo.forms, form, cargo)'),
|
|
492
497
|
// a proposal's confirmation belongs to its parent's input: a correction names another of that input's choices
|
|
493
498
|
SET('confirm_prompt', 'prompt', "cargo.forms[form] && cargo.forms[form].proposalPrompt ? {form:cargo.forms[form].parent,name:cargo.forms[form].proposalPrompt.input} : null"),
|
|
@@ -499,7 +504,7 @@ const readConfirmReply = {
|
|
|
499
504
|
// A correction may name several fields ('it is Long Beach, apartment 4'): any field's pick extracts every named field's new value.
|
|
500
505
|
SET('confirm_field_arguments', 'field_arguments', "fields.map(function(c){var i=(chain || []).filter(function(i){return i.form===c.owner.form && i.name===c.owner.name;})[0];var l=String(i.label || i.names[0]);return {name:c.owner.name,type:'string',description:'The correct '+(i.argument_description || l)+' the caller gives now. Leave it empty when they give none.'};})"),
|
|
501
506
|
rankedChoices('confirm_ranked_choices', "[{key:'no',label:'no: declines or refuses what the question asks to confirm'}].concat(others.map(function(c){return {key:c.key,label:c.label};})).concat(fields.map(function(c){return {key:c.key,label:c.label,parameters:field_arguments};}))"),
|
|
502
|
-
rankedDispatch('confirm_dispatch', 'confirmation_not_matched'),
|
|
507
|
+
rankedDispatch('confirm_dispatch', 'confirmation_not_matched', true),
|
|
503
508
|
...escapeRoutes('confirm_escape'),
|
|
504
509
|
// a correction picked by the ranker is read as its input's answer: the form changes and is confirmed again, never confirmed
|
|
505
510
|
SET('confirm_picked', 'picked', "others.filter(function(c){return reply && c.key===reply.key;})[0] || null"),
|
|
@@ -638,7 +643,7 @@ const confirmForm = {
|
|
|
638
643
|
'condition: cf_m.hits.length > 0': FLOW('cf_accept', 'collect-input-accept', 'call', { hits: '{{cf_m.hits}}' }),
|
|
639
644
|
"condition: cargo.choice === 'no'": SET('cf_declined', 'cf_result', "'no'"),
|
|
640
645
|
"condition: Array.isArray(clarifications) && pickChoice(String(cargo.choiceText || '').replace(/[?¿]/g,''),[{key:'clarify',phrases:clarifications,exact:true}],false)==='clarify'": SET('cf_clarification', 'cf_result', "'clarification'"),
|
|
641
|
-
'condition:
|
|
646
|
+
'condition: cf_words > 0': FLOW('cf_elsewhere', 'read-confirm-reply', 'call', { form: '{{form}}', question: '{{cf_prompt}}', question_es: '{{cf_prompt_es}}', named_fields: '{{named_fields}}', reply_context: '{{reply_context}}' }),
|
|
642
647
|
default: SET('cf_unclear', 'cf_result', "'unclear'")
|
|
643
648
|
} },
|
|
644
649
|
// the ranker's reading of an unread answer: a decline is the NO; an answer that declines nothing is asked again
|
|
@@ -646,6 +651,7 @@ const confirmForm = {
|
|
|
646
651
|
SET('cf_changed', 'cf_result', "cf_result ? cf_result : 'changed'"),
|
|
647
652
|
// an unclear answer is asked again (the form runs again and reaches this question), at most twice
|
|
648
653
|
SET('cf_tries_count', 'cf_tries', "cf_result === 'unclear' ? missFormInput(cargo,form,'__confirm') : (clearFormMisses(cargo,form,'__confirm'),0)"),
|
|
654
|
+
WHEN('cf_first', 'cf_must && cf_result === \'unclear\' && cf_words > 0', SIDE('cf_first_line', "(cargo.forms[form].feedback['__confirm']='first',true)")),
|
|
649
655
|
// out of attempts: the give-up worker (a person), never a silent DISPATCH that ends the request unanswered
|
|
650
656
|
optionalIncomplete('cf_optional_exhausted', 'cf_tries >= 2 && !cf_must', 'form', "'confirmation_misses_exhausted'"),
|
|
651
657
|
WHEN('cf_misses_stamp', 'cf_tries >= 2 && !cf_must', recoveryStamp('cf_failure_stamp', 'form', "'confirmation_misses_exhausted'")),
|
|
@@ -715,7 +721,7 @@ const subForms = [
|
|
|
715
721
|
description: "Sub-form: street address, city, state, ZIP, in any order. Result: the parent's result input (or cargo.formResults['collect-address']).",
|
|
716
722
|
inputs: [{ name: 'street_address', field: 'street_address' }, { name: 'city', field: 'city', confirm_against: ['state'] }, { name: 'state', field: 'state' }, { name: 'zip', field: 'zip' }],
|
|
717
723
|
extraVars: { exit_context: 'your address', exit_context_es: 'su dirección' } }),
|
|
718
|
-
formFlow({ id: 'collect-credit-card', name: 'CollectCreditCard', version: '1.0.0',
|
|
724
|
+
formFlow({ id: 'collect-credit-card', name: 'CollectCreditCard', version: '1.0.0', first_task: 'record your new card', first_task_es: 'registrar su tarjeta nueva',
|
|
719
725
|
description: "Sub-form: card number, expiration, security code, billing ZIP, in any order. Result (with keep_pii for the charge step): the parent's result input.",
|
|
720
726
|
inputs: [{ name: 'card_number', field: 'card_number' }, { name: 'card_expiration', field: 'card_expiration' }, { name: 'card_cvv', field: 'card_cvv' }, { name: 'card_zip', field: 'card_zip' }],
|
|
721
727
|
extraVars: { exit_context: 'your payment', exit_context_es: 'su pago' } }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/helpers/address.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/helpers/address.js"],"names":[],"mappings":"AAEA;;;;;EAQC;AACD;;;;;SASC;AACD,gDAEC;AACD;;;;;EASC;AACD;;;;;;;;EAIC"}
|
package/dist/helpers/address.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Address interpretation and geocoder projection, independent of collection order. */
|
|
2
|
+
import { joinSpokenDigits } from './spoken-digits.js';
|
|
2
3
|
export function addressDraft(raw) {
|
|
3
|
-
const said = String(raw || '').trim();
|
|
4
|
+
const said = joinSpokenDigits(String(raw || '').trim(), 'house_number');
|
|
4
5
|
const zip = /(?:^|\D)(\d{5})(?:-\d{4})?(?:\D|$)/.exec(said)?.[1] || '';
|
|
5
6
|
const unit = /(?:\bapt\.?|\bunit|#)\s*([\w-]+)/i.exec(said)?.[1] || '';
|
|
6
7
|
let street = said.split(/[,\n]/)[0].replace(/\s*(?:apt\.?|unit|#)\s*[\w-]+.*$/i, '').trim();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"answer.d.ts","sourceRoot":"","sources":["../../src/helpers/answer.js"],"names":[],"mappings":"AAsNA;;;GAGG;AACH,wEAkBC;AAED,qHAAqH;AACrH,+CAGC;AAED;;;;GAIG;AACH,mDAIC;AAED,+HAA+H;AAC/H,oDAIC;AAcD,2GAA2G;AAC3G,uDAGC;AAOD;;;;;GAKG;AACH,+DAUC;AAKD;;;;GAIG;AACH,oDAEC;
|
|
1
|
+
{"version":3,"file":"answer.d.ts","sourceRoot":"","sources":["../../src/helpers/answer.js"],"names":[],"mappings":"AAsNA;;;GAGG;AACH,wEAkBC;AAED,qHAAqH;AACrH,+CAGC;AAED;;;;GAIG;AACH,mDAIC;AAED,+HAA+H;AAC/H,oDAIC;AAcD,2GAA2G;AAC3G,uDAGC;AAOD;;;;;GAKG;AACH,+DAUC;AAKD;;;;GAIG;AACH,oDAEC;AAuBD;;;;;;GAMG;AACH,mDAAmF;AAEnF,kGAAkG;AAClG;;;EAoCC;AAqBD,oEAqBC;AASD,gJAAgJ;AAChJ,sEAGC;AAED;;;;;;;;;GASG;AACH,6EA4GC;;;;;;;;AA/fD,qCAKwE"}
|
package/dist/helpers/answer.js
CHANGED
|
@@ -325,6 +325,8 @@ export function isAmountAnswer(input) {
|
|
|
325
325
|
const IDENTIFIER_NUMBER = /\b(?:sub[\s-]?accounts?|accounts?|subcuentas?|cuentas?|cards?|tarjetas?|ending(?:\s+in)?|terminad[ao]s?\s+en|que\s+termina(?:\s+en)?|termina(?:\s+en)?|codes?|c[oó]digos?|zip(?:\s+code)?|postal|n[uú]mero|number)\s*(?:de\s+|is\s+|es\s+)?\d[\d\s-]*/gi;
|
|
326
326
|
// Digits spoken one at a time ("2 4 8 6"): a card ending or a code read back, never an amount.
|
|
327
327
|
const SPELLED_DIGITS = /\b\d(?:\s+\d\b){2,}/g;
|
|
328
|
+
// The same digits with a money word after them are the amount: "1 5 0 dollars".
|
|
329
|
+
const SPELLED_DOLLARS = /\b\d(?:\s+\d\b)+(?=\s*(?:dollars?|d[oó]lar(?:es)?|bucks?)\b)/gi;
|
|
328
330
|
// "10 con 18 centavos", "10 dollars and 18 cents", "$10 y 18 centavos"; speech-to-text also writes "76 con50 centavos", and
|
|
329
331
|
// callers say "171 con un 6 centavos" (owner 2026-10-18; a prod call went to the guru): an "un" before the cents.
|
|
330
332
|
const DOLLARS_AND_CENTS = /(\d+)\s*(?:dollars?|d[oó]lar(?:es)?|bucks?)?\s*(?:and|con|y)\s*(?:un\s+)?(\d{1,2})\s*(?:cents?|centavos?)\b/i;
|
|
@@ -367,7 +369,7 @@ export function numericAmountReading(input) {
|
|
|
367
369
|
else {
|
|
368
370
|
// no dollars-and-cents phrase
|
|
369
371
|
}
|
|
370
|
-
t = t.replace(IDENTIFIER_NUMBER, ' ').replace(SPELLED_DIGITS, ' ').replace(DOLLARS_JOINED_CENTS, (m, sign, d, word, joiner, c) => (sign || word || (CENTS_JOINERS.includes(joiner.toLowerCase()) && c.length === 2) ? ` $${d}.${c.padStart(2, '0')} ` : m))
|
|
372
|
+
t = t.replace(SPELLED_DOLLARS, (digits) => digits.replace(/\s+/g, '')).replace(IDENTIFIER_NUMBER, ' ').replace(SPELLED_DIGITS, ' ').replace(DOLLARS_JOINED_CENTS, (m, sign, d, word, joiner, c) => (sign || word || (CENTS_JOINERS.includes(joiner.toLowerCase()) && c.length === 2) ? ` $${d}.${c.padStart(2, '0')} ` : m))
|
|
371
373
|
.replace(DOLLARS_SPACE_CENTS, (m, sign, d, c) => ` $${d}.${c} `);
|
|
372
374
|
const found = [...t.matchAll(/(\$\s*)?(\d+(?:\.\d{1,2})?)(\s*(?:dollars?|d[oó]lar(?:es)?|bucks?|cents?|centavos?)\b)?/gi)]
|
|
373
375
|
.map((m) => ({ v: parseFloat(m[2]), marked: !!(m[1] || m[3] || m[2].includes('.')), cents: !m[1] && /cent/i.test(m[3] || '') }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contextual-response.d.ts","sourceRoot":"","sources":["../../src/helpers/contextual-response.js"],"names":[],"mappings":"AAMA,2GAA2G;AAC3G;;;;;
|
|
1
|
+
{"version":3,"file":"contextual-response.d.ts","sourceRoot":"","sources":["../../src/helpers/contextual-response.js"],"names":[],"mappings":"AAMA,2GAA2G;AAC3G;;;;;qBAyBC;AACD,+FAIC;AAED;;;GAGG;AACH,yDAMC;AAjDD,4FAA4F;AAC5F,+CAAgD,8BAA8B,CAAC;AACxE,qDAA0C;AAgD1C,kDAA8J"}
|
|
@@ -39,6 +39,9 @@ export function validateContextualResponseStep(step, flow) {
|
|
|
39
39
|
if (Object.keys(p).some(k => !['name', 'description', 'type', 'enum', 'internal', 'verbatim'].includes(k)))
|
|
40
40
|
fail('responseParameters accepts only canonical parameter descriptors');
|
|
41
41
|
}
|
|
42
|
+
// responseStay: names a frame variable; while it is true a new request is not taken and the flow continues (must_complete); a withdrawal still ends the flows.
|
|
43
|
+
if (own(step, 'responseStay') && (typeof step.responseStay !== 'string' || !step.responseStay.trim()))
|
|
44
|
+
fail('responseStay names a variable');
|
|
42
45
|
// responseReasonFor: what the caller does not want; the reply is ranked as the reason for not wanting it (owner 2026-10-31).
|
|
43
46
|
if (own(step, 'responseReasonFor') && (typeof step.responseReasonFor !== 'string' || choices))
|
|
44
47
|
fail('responseReasonFor is a string, on a question without responseChoices');
|
|
@@ -4,6 +4,9 @@ export function missFormInput(cargo: any, id: any, input: any): any;
|
|
|
4
4
|
* turn away on an unreadable answer: it says it did not catch that and asks again. Its exits stay explicit (the form's
|
|
5
5
|
* stop words, max_attempts and on_exhausted, and whatever the host intercepts before the engine). */
|
|
6
6
|
export function formMustComplete(cargo: any, id: any, input: any): boolean;
|
|
7
|
+
/** A must_complete question's reply that picks nothing the ranker was offered is acknowledged, then the question again (owner
|
|
8
|
+
* 2026-11-02): "I understand, first let's record your new card." The task is the nearest enclosing form's first_task. */
|
|
9
|
+
export function formFirstLine(cargo: any, id: any, input: any, es: any): string;
|
|
7
10
|
/**
|
|
8
11
|
* Explicit retry wins. Otherwise acknowledge only an actual unrecognized answer, once per re-ask.
|
|
9
12
|
* question_text / retry_text (and _es): the written-channel wording, used only when the conversation is not a call.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-conversation.d.ts","sourceRoot":"","sources":["../../src/helpers/form-conversation.js"],"names":[],"mappings":"AAMA,0EAGC;AACD,oEAGC;AACD;;qGAEqG;AACrG,2EAWC;AACD;;;GAGG;AACH,+
|
|
1
|
+
{"version":3,"file":"form-conversation.d.ts","sourceRoot":"","sources":["../../src/helpers/form-conversation.js"],"names":[],"mappings":"AAMA,0EAGC;AACD,oEAGC;AACD;;qGAEqG;AACrG,2EAWC;AACD;yHACyH;AACzH,gFAIC;AACD;;;GAGG;AACH,+GASC;AAMD,oEAOC;AACD,8EAAwI;AAExI,yGAAyG;AACzG;;;;;;;;;;;;;;;;;;;;EAUC;AAED,sGAAsG;AACtG;;;;;;;;;;;;;;;;;;;;EAeC;AAED;2HAC2H;AAC3H,8EAOC"}
|
|
@@ -44,6 +44,19 @@ export function formMustComplete(cargo, id, input) {
|
|
|
44
44
|
}
|
|
45
45
|
return false;
|
|
46
46
|
}
|
|
47
|
+
/** A must_complete question's reply that picks nothing the ranker was offered is acknowledged, then the question again (owner
|
|
48
|
+
* 2026-11-02): "I understand, first let's record your new card." The task is the nearest enclosing form's first_task. */
|
|
49
|
+
export function formFirstLine(cargo, id, input, es) {
|
|
50
|
+
const seen = new Set();
|
|
51
|
+
let task = '';
|
|
52
|
+
while (id && cargo.forms?.[id] && !seen.has(id) && !task) {
|
|
53
|
+
seen.add(id);
|
|
54
|
+
const state = cargo.forms[id];
|
|
55
|
+
task = (es ? state.first_task_es || state.first_task : state.first_task) || '';
|
|
56
|
+
id = state.parent;
|
|
57
|
+
}
|
|
58
|
+
return es ? `Entiendo, primero vamos a ${task || 'terminar esto'}. ` : `I understand, first let's ${task || 'finish this'}. `;
|
|
59
|
+
}
|
|
47
60
|
/**
|
|
48
61
|
* Explicit retry wins. Otherwise acknowledge only an actual unrecognized answer, once per re-ask.
|
|
49
62
|
* question_text / retry_text (and _es): the written-channel wording, used only when the conversation is not a call.
|
|
@@ -55,13 +68,16 @@ export function formInputPrompt(cargo, id, input, spec, data = {}, language = 'e
|
|
|
55
68
|
const retry = written('retry') || (es ? spec.retry_es : spec.retry);
|
|
56
69
|
if (feedback === 'partial')
|
|
57
70
|
return es ? 'Continúe.' : 'Go on.';
|
|
71
|
+
if (feedback === 'first')
|
|
72
|
+
return formFirstLine(cargo, id, input, es) + (retry || question);
|
|
58
73
|
if (feedback && retry)
|
|
59
74
|
return retry;
|
|
60
75
|
return (feedback === 'miss' ? sorryNotCaught(es ? 'es' : 'en', cargo) : '') + question;
|
|
61
76
|
}
|
|
62
77
|
/** Whether an accepted input is acknowledged ("Got it, your amount."). A form declaring acknowledge: 'data' (jsfe 1.20.0,
|
|
63
78
|
* owner 2026-10-31), or the nearest enclosing form that declares it, acknowledges only a value the caller supplied (digits,
|
|
64
|
-
* email, phone, amount, identifier, account, text), never a pick among offered words (choice, pattern)
|
|
79
|
+
* email, phone, amount, identifier, account, text), never a pick among offered words (choice, pattern) to the question asked.
|
|
80
|
+
* An input filled out of order is always acknowledged (owner 2026-11-02). Default: every input. */
|
|
65
81
|
const DATA_KINDS = new Set(['digits', 'email', 'phone', 'amount', 'identifier', 'account', 'text']);
|
|
66
82
|
export function formAcknowledges(cargo, reading) {
|
|
67
83
|
const seen = new Set();
|
|
@@ -75,7 +91,7 @@ export function formAcknowledges(cargo, reading) {
|
|
|
75
91
|
}
|
|
76
92
|
id = state.parent;
|
|
77
93
|
}
|
|
78
|
-
if (mode !== 'data')
|
|
94
|
+
if (mode !== 'data' || reading.out_of_order === true)
|
|
79
95
|
return true;
|
|
80
96
|
const state = cargo.forms[reading.form] || {}, group = (state.specs || []).find(s => s.name === reading.name || s.any_of?.some(i => i.name === reading.name));
|
|
81
97
|
const spec = group?.any_of?.find(i => i.name === reading.name) || group, kind = spec?.profile?.kind;
|
|
@@ -18,7 +18,7 @@ export function settleFormActivations(batch?: {}, cargo?: null): {
|
|
|
18
18
|
pending: any[];
|
|
19
19
|
};
|
|
20
20
|
/** Explicit ownership: unrelated tasks and sibling inputs never share an instance by definition id. */
|
|
21
|
-
export function openFormInstance(cargo: any, definition: any, specs: any, { parent, input, resume, task, providers, questions, context, resume_on_parent_change, incomplete_outcome, on_exhausted, on_no, acknowledge, must_complete }?: {
|
|
21
|
+
export function openFormInstance(cargo: any, definition: any, specs: any, { parent, input, resume, task, providers, questions, context, resume_on_parent_change, incomplete_outcome, on_exhausted, on_no, acknowledge, must_complete, first_task, first_task_es }?: {
|
|
22
22
|
parent?: null | undefined;
|
|
23
23
|
input?: string | undefined;
|
|
24
24
|
resume?: string | undefined;
|
|
@@ -32,6 +32,8 @@ export function openFormInstance(cargo: any, definition: any, specs: any, { pare
|
|
|
32
32
|
on_no?: undefined;
|
|
33
33
|
acknowledge?: undefined;
|
|
34
34
|
must_complete?: undefined;
|
|
35
|
+
first_task?: undefined;
|
|
36
|
+
first_task_es?: undefined;
|
|
35
37
|
}): any;
|
|
36
38
|
/** An incomplete optional follow-up may preserve an explicitly completed task outcome. */
|
|
37
39
|
export function validateFormIncompleteOutcome(value: any): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-state.d.ts","sourceRoot":"","sources":["../../src/helpers/form-state.js"],"names":[],"mappings":"AAQA,qDAKC;AAED,oDAEC;AAED,qFAAqF;AACrF,oEA+BC;AA0CD,2FAEC;AACD,8FAcC;AACD,2DAOC;AACD,uEA8CC;AAED,kGAAkG;AAClG,2GAOC;AACD,0HAA0H;AAC1H,uEAwBC;AACD,8HAA8H;AAC9H;;;;;EAeC;AACD,uGAAuG;AACvG
|
|
1
|
+
{"version":3,"file":"form-state.d.ts","sourceRoot":"","sources":["../../src/helpers/form-state.js"],"names":[],"mappings":"AAQA,qDAKC;AAED,oDAEC;AAED,qFAAqF;AACrF,oEA+BC;AA0CD,2FAEC;AACD,8FAcC;AACD,2DAOC;AACD,uEA8CC;AAED,kGAAkG;AAClG,2GAOC;AACD,0HAA0H;AAC1H,uEAwBC;AACD,8HAA8H;AAC9H;;;;;EAeC;AACD,uGAAuG;AACvG;;;;;;;;;;;;;;;;QA2CC;AAED,0FAA0F;AAC1F;;;SAIC;AACD,gGAAgG;AAChG;;;;;;;;;;;EAQC;AAED,sGAAsG;AACtG,2DAIC;AACD;;;GAGG;AACH;;;;;;;SAkBC;AAED,2FAA2F;AAC3F,oGAIC;AACD,gFA4BC;AAED,2GAA2G;AAC3G;;;EASC;AACD,mEAoBC;AACD,mEAGC;AACD,sEAUC;AACD,+EAEC;AAoCD,qFAYC;AACD,oGAqCC;AACD;;;SAKC;AACD,qEAGC;AACD,gEAgBC;AACD;;uGAEuG;AACvG,sEAGC;AACD,2DAQC;AACD,oGAUC;AAED,uEAAuE;AACvE,wHA+BC;AAED,uHAAuH;AACvH,6EAaC;AACD,mHAAmH;AACnH,iGAsDC;AACD;;;GAGG;AACH;;;SAcC;AACD,+EASC;AACD,8EAeC;AAlqBM,8CAAmE"}
|
|
@@ -221,7 +221,7 @@ export function enrichFormMatches(matches, chain, form, names = [], asked = '')
|
|
|
221
221
|
const enrich = h => {
|
|
222
222
|
const spec = chain.find(c => c.form === h.form && c.name === h.name) || {};
|
|
223
223
|
return { ...h, label: h.option_label || spec.label || h.name, label_es: h.option_label_es || spec.label_es || spec.label || h.name, ...(h.option_label ? { option: true } : {}),
|
|
224
|
-
validator: spec.validator || '', ...(!(h.form === form && names.includes(h.name)) && spec.profile && !['choice', 'amount', 'text'].includes(spec.profile.kind) && /\d/.test(String(h.value)) ? { out_of_order_number: true } : {}), ...(spec.response ? { response: spec.response } : {}), after: spec.after || '', validate_always: spec.validate_always === true, ...(spec.activation ? { activation: spec.activation } : {}), ...(spec.silent === true ? { silent: true } : {}), pii: spec.pii === true, current: h.form === form && names.includes(h.name), asked };
|
|
224
|
+
validator: spec.validator || '', ...((matches.decisions || []).some(d => d.form === h.form && d.name === h.name && (d.rule === 'out_of_order' || d.rule === 'compound')) ? { out_of_order: true } : {}), ...(!(h.form === form && names.includes(h.name)) && spec.profile && !['choice', 'amount', 'text'].includes(spec.profile.kind) && /\d/.test(String(h.value)) ? { out_of_order_number: true } : {}), ...(spec.response ? { response: spec.response } : {}), after: spec.after || '', validate_always: spec.validate_always === true, ...(spec.activation ? { activation: spec.activation } : {}), ...(spec.silent === true ? { silent: true } : {}), pii: spec.pii === true, current: h.form === form && names.includes(h.name), asked };
|
|
225
225
|
};
|
|
226
226
|
return { ...matches, hits: matches.hits.map(enrich), ambiguous: matches.ambiguous.map(enrich), remaining: (matches.remaining || []).map(group => group.map(enrich)) };
|
|
227
227
|
}
|
|
@@ -301,7 +301,7 @@ export function settleFormActivations(batch = {}, cargo = null) {
|
|
|
301
301
|
rejected: rejected.map(h => h.activation_inferred ? { ...h, ...h.activation_entry, activation_inferred: false } : h), pending: pending.concat(accepted.filter(h => held.has(h.activation_group))).filter(h => !discarded.has(h.activation_group)).map(h => held.has(h.activation_group) ? { ...h, ok: undefined, outcome: 'pending', silent: true } : h) };
|
|
302
302
|
}
|
|
303
303
|
/** Explicit ownership: unrelated tasks and sibling inputs never share an instance by definition id. */
|
|
304
|
-
export function openFormInstance(cargo, definition, specs, { parent = null, input = '', resume = '', task = '', providers = null, questions = null, context = false, resume_on_parent_change = undefined, incomplete_outcome = undefined, on_exhausted = undefined, on_no = undefined, acknowledge = undefined, must_complete = undefined } = {}) {
|
|
304
|
+
export function openFormInstance(cargo, definition, specs, { parent = null, input = '', resume = '', task = '', providers = null, questions = null, context = false, resume_on_parent_change = undefined, incomplete_outcome = undefined, on_exhausted = undefined, on_no = undefined, acknowledge = undefined, must_complete = undefined, first_task = undefined, first_task_es = undefined } = {}) {
|
|
305
305
|
const incomplete = validateFormIncompleteOutcome(incomplete_outcome);
|
|
306
306
|
validateFormExhaustion(on_exhausted);
|
|
307
307
|
if (acknowledge !== undefined && acknowledge !== 'all' && acknowledge !== 'data')
|
|
@@ -323,6 +323,10 @@ export function openFormInstance(cargo, definition, specs, { parent = null, inpu
|
|
|
323
323
|
existing.on_no = on_no || '';
|
|
324
324
|
if (must_complete !== undefined)
|
|
325
325
|
existing.must_complete = must_complete === true;
|
|
326
|
+
if (first_task !== undefined)
|
|
327
|
+
existing.first_task = first_task;
|
|
328
|
+
if (first_task_es !== undefined)
|
|
329
|
+
existing.first_task_es = first_task_es;
|
|
326
330
|
if (acknowledge !== undefined)
|
|
327
331
|
existing.acknowledge = acknowledge;
|
|
328
332
|
return resume;
|
|
@@ -345,6 +349,10 @@ export function openFormInstance(cargo, definition, specs, { parent = null, inpu
|
|
|
345
349
|
cargo.forms[child].on_no = on_no || '';
|
|
346
350
|
if (must_complete !== undefined)
|
|
347
351
|
cargo.forms[child].must_complete = must_complete === true;
|
|
352
|
+
if (first_task !== undefined)
|
|
353
|
+
cargo.forms[child].first_task = first_task;
|
|
354
|
+
if (first_task_es !== undefined)
|
|
355
|
+
cargo.forms[child].first_task_es = first_task_es;
|
|
348
356
|
if (acknowledge !== undefined)
|
|
349
357
|
cargo.forms[child].acknowledge = acknowledge;
|
|
350
358
|
return child;
|
|
@@ -353,7 +361,7 @@ export function openFormInstance(cargo, definition, specs, { parent = null, inpu
|
|
|
353
361
|
cargo.formSequence = Number(cargo.formSequence || 0) + 1;
|
|
354
362
|
const id = `${definition}:${cargo.formSequence}`;
|
|
355
363
|
cargo.forms[id] = { id, definition, task: owner?.task || task || id, parent, result_input: input,
|
|
356
|
-
on_exhausted: on_exhausted || '', on_no: on_no || '', must_complete: must_complete === true, ...(acknowledge !== undefined ? { acknowledge } : {}), incomplete_outcome: incomplete, context_only: !!context, resume_on_parent_change: resume_on_parent_change === true, parent_revision: owner?.revision ?? null, specs, values: {}, accepted: {}, errors: {}, pending: {}, seeds: {}, attempts: {}, misses: {}, feedback: {}, prepared: {}, data: {}, arguments: {}, contexts: {}, children: {}, childResults: {}, revision: 0,
|
|
364
|
+
on_exhausted: on_exhausted || '', on_no: on_no || '', must_complete: must_complete === true, ...(first_task !== undefined ? { first_task } : {}), ...(first_task_es !== undefined ? { first_task_es } : {}), ...(acknowledge !== undefined ? { acknowledge } : {}), incomplete_outcome: incomplete, context_only: !!context, resume_on_parent_change: resume_on_parent_change === true, parent_revision: owner?.revision ?? null, specs, values: {}, accepted: {}, errors: {}, pending: {}, seeds: {}, attempts: {}, misses: {}, feedback: {}, prepared: {}, data: {}, arguments: {}, contexts: {}, children: {}, childResults: {}, revision: 0,
|
|
357
365
|
providers: providers || owner?.providers || null, questions: questions?.length ? questions : owner?.questions || [], status: 'collecting' };
|
|
358
366
|
if (owner) {
|
|
359
367
|
if (context) {
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -123,6 +123,8 @@ export namespace STANDARD_FUNCTIONS {
|
|
|
123
123
|
export { validateEmail };
|
|
124
124
|
export { urlToSpeech };
|
|
125
125
|
export { textWithUrlToSpeech };
|
|
126
|
+
export { joinSpokenDigits };
|
|
127
|
+
export { wholeSpokenNumber };
|
|
126
128
|
}
|
|
127
129
|
import { continuationSafetyProtocol } from '../forms/continuation-safety.js';
|
|
128
130
|
import { cancelFormTask } from './form-conversation.js';
|
|
@@ -253,5 +255,8 @@ import { validatePhone } from './validators.js';
|
|
|
253
255
|
import { validateEmail } from './validators.js';
|
|
254
256
|
import { urlToSpeech } from './url-speech.js';
|
|
255
257
|
import { textWithUrlToSpeech } from './url-speech.js';
|
|
256
|
-
|
|
258
|
+
import { joinSpokenDigits } from './spoken-digits.js';
|
|
259
|
+
import { spokenDigitsText } from './spoken-digits.js';
|
|
260
|
+
import { wholeSpokenNumber } from './spoken-digits.js';
|
|
261
|
+
export { continuationSafetyProtocol, cancelFormTask, contextualResponseProtocol, validateFormResponse, hasFormResponse, formProposalPolicy, stageFormProposal, nextFormProposal, formProposalReadings, bindFormProposal, decideFormProposal, commitFormProposals, settleFormProposalValidation, formProposalProtocol, validateFormProposalPolicy, validateFormProposalDescriptor, formProposalDescriptor, clearFormMisses, formNoOwner, missFormInput, formMustComplete, formInputPrompt, formAcknowledges, consumeFormFeedback, formConversationOutcome, readMoneyAmount, isMoneyAmount, moneyIntentAllows, isPastPaymentStatement, isPartialMoneyAnswer, validateMoneyOptions, takeChoiceOffer, saysConfirmWord, confirmOutOfOrderLine, matchesChoice, ANSWER_WORDS, CONFIRM_WORDS, isAnswer, isAgentRequest, isExitRequest, isOtherRequest, isSpelledFragment, isAmountAnswer, amountInAnswer, pickChoice, withoutPromptEcho, readEmail, readPhone, readInternationalPhone, readIdentifier, last4, maskEmail, callerTextNumber, textDestination, callerIsInternational, normalizeAndFindCapture, anythingElse, goodbye, sayName, sorryNotCaught, dateToWords, amountToSpeech, validateCardNumber, validateExpiration, consumeActionReceipt, authorizeFormActionRetry, formSignature, selectFormAction, confirmFormRevision, prepareFormAction, actionConfirmationValid, beginFormAction, finishFormAction, actionGateVerified, sourceNeedsLoad, beginSourceRefresh, completeSourceRefresh, pickProviderQuestion, matchInputs, readFormAnswer, readInputProfile, formAcceptanceTrace, resolveFormInputs, formInputApplies, formInputFilled, nextFormInput, formInputChain, openFormInstance, validateFormIncompleteOutcome, formIncompleteOutcome, validateFormExhaustion, exhaustFormInput, formInitialReadings, orderFormReadings, proposedFormValues, applyFormValidation, formReadingDependencies, exclusiveFormReadings, enrichFormMatches, expandFormActivations, settleFormActivations, rememberFormArguments, resetFormInputs, hasFormValue, formPath, formValuesEqual, formReadingReady, formReadingRelevant, formPreparation, queueFormReadings, pendingFormReadings, formWorkLimit, answerResetsFormReplays, rejectFormReadings, invalidateFormInputs, acceptFormReadings, formInstanceApplies, formParentResume, closeFormInstance, checkOtp, clearOtp, maskDestination, validateOTP, OTP_EXPIRY_MS, validateDigits, validatePhone, validateEmail, urlToSpeech, textWithUrlToSpeech, joinSpokenDigits, spokenDigitsText, wholeSpokenNumber };
|
|
257
262
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;4BAUO,mBAAmB;+BAAnB,mBAAmB;iCAAnB,mBAAmB;oCAAnB,mBAAmB;kCAC0lB,iBAAiB;iCAAjB,iBAAiB;gCAAjB,iBAAiB;8BAAjB,iBAAiB;+BAAjB,iBAAiB;iCAAjB,iBAAiB;8CAAjB,iBAAiB;sCAAjB,iBAAiB;uCAAjB,iBAAiB;iCAAjB,iBAAiB;oCAAjB,iBAAiB;kCAAjB,iBAAiB;mCAAjB,iBAAiB;oCAAjB,iBAAiB;wCAAjB,iBAAiB;sCAAjB,iBAAiB;kCAAjB,iBAAiB;sCAAjB,iBAAiB;sCAAjB,iBAAiB;sCAAjB,iBAAiB;gCAAjB,iBAAiB;6BAAjB,iBAAiB;yBAAjB,iBAAiB;gCAAjB,iBAAiB;iCAAjB,iBAAiB;oCAAjB,iBAAiB;gCAAjB,iBAAiB;kCAAjB,iBAAiB;oCAAjB,iBAAiB;8BAAjB,iBAAiB;wCAAjB,iBAAiB;mCAAjB,iBAAiB;qCAAjB,iBAAiB;mCAAjB,iBAAiB;oCAAjB,iBAAiB;iCAAjB,iBAAiB;kCAAjB,iBAAiB;yBACzqB,gBAAgB;yBAAhB,gBAAgB;gCAAhB,gBAAgB;4BAAhB,gBAAgB;8BAAhB,gBAAgB;+BACnC,iBAAiB;8BAAjB,iBAAiB;8BAAjB,iBAAiB;4BAE7B,iBAAiB;oCAAjB,iBAAiB;iCADI,oBAAoB;iCAApB,oBAAoB;kCAApB,oBAAoB"}
|
package/dist/helpers/index.js
CHANGED
|
@@ -34,8 +34,9 @@ import { matchInputs, readFormAnswer, saysConfirmWord, confirmOutOfOrderLine, re
|
|
|
34
34
|
import { resolveFormInputs, formInputApplies, formInputFilled, nextFormInput, formInputChain, openFormInstance, validateFormIncompleteOutcome, formIncompleteOutcome, validateFormExhaustion, exhaustFormInput, formInitialReadings, orderFormReadings, proposedFormValues, applyFormValidation, formReadingDependencies, exclusiveFormReadings, enrichFormMatches, expandFormActivations, settleFormActivations, rememberFormArguments, resetFormInputs, hasFormValue, formPath, formValuesEqual, formReadingReady, formReadingRelevant, formPreparation, queueFormReadings, pendingFormReadings, formWorkLimit, answerResetsFormReplays, rejectFormReadings, invalidateFormInputs, acceptFormReadings, formInstanceApplies, formParentResume, closeFormInstance } from './form-state.js';
|
|
35
35
|
import { checkOtp, clearOtp, maskDestination, validateOTP, OTP_EXPIRY_MS } from './otp-check.js';
|
|
36
36
|
import { validateDigits, validatePhone, validateEmail } from './validators.js';
|
|
37
|
+
import { joinSpokenDigits, spokenDigitsText, wholeSpokenNumber } from './spoken-digits.js';
|
|
37
38
|
import { urlToSpeech, textWithUrlToSpeech } from './url-speech.js';
|
|
38
|
-
export { continuationSafetyProtocol, cancelFormTask, contextualResponseProtocol, validateFormResponse, hasFormResponse, formProposalPolicy, stageFormProposal, nextFormProposal, formProposalReadings, bindFormProposal, decideFormProposal, commitFormProposals, settleFormProposalValidation, formProposalProtocol, validateFormProposalPolicy, validateFormProposalDescriptor, formProposalDescriptor, clearFormMisses, formNoOwner, missFormInput, formMustComplete, formInputPrompt, formAcknowledges, consumeFormFeedback, formConversationOutcome, readMoneyAmount, isMoneyAmount, moneyIntentAllows, isPastPaymentStatement, isPartialMoneyAnswer, validateMoneyOptions, takeChoiceOffer, saysConfirmWord, confirmOutOfOrderLine, matchesChoice, ANSWER_WORDS, CONFIRM_WORDS, isAnswer, isAgentRequest, isExitRequest, isOtherRequest, isSpelledFragment, isAmountAnswer, amountInAnswer, pickChoice, withoutPromptEcho, readEmail, readPhone, readInternationalPhone, readIdentifier, last4, maskEmail, callerTextNumber, textDestination, callerIsInternational, normalizeAndFindCapture, anythingElse, goodbye, sayName, sorryNotCaught, dateToWords, amountToSpeech, validateCardNumber, validateExpiration, consumeActionReceipt, authorizeFormActionRetry, formSignature, selectFormAction, confirmFormRevision, prepareFormAction, actionConfirmationValid, beginFormAction, finishFormAction, actionGateVerified, sourceNeedsLoad, beginSourceRefresh, completeSourceRefresh, pickProviderQuestion, matchInputs, readFormAnswer, readInputProfile, formAcceptanceTrace, resolveFormInputs, formInputApplies, formInputFilled, nextFormInput, formInputChain, openFormInstance, validateFormIncompleteOutcome, formIncompleteOutcome, validateFormExhaustion, exhaustFormInput, formInitialReadings, orderFormReadings, proposedFormValues, applyFormValidation, formReadingDependencies, exclusiveFormReadings, enrichFormMatches, expandFormActivations, settleFormActivations, rememberFormArguments, resetFormInputs, hasFormValue, formPath, formValuesEqual, formReadingReady, formReadingRelevant, formPreparation, queueFormReadings, pendingFormReadings, formWorkLimit, answerResetsFormReplays, rejectFormReadings, invalidateFormInputs, acceptFormReadings, formInstanceApplies, formParentResume, closeFormInstance, checkOtp, clearOtp, maskDestination, validateOTP, OTP_EXPIRY_MS, validateDigits, validatePhone, validateEmail, urlToSpeech, textWithUrlToSpeech, };
|
|
39
|
+
export { continuationSafetyProtocol, cancelFormTask, contextualResponseProtocol, validateFormResponse, hasFormResponse, formProposalPolicy, stageFormProposal, nextFormProposal, formProposalReadings, bindFormProposal, decideFormProposal, commitFormProposals, settleFormProposalValidation, formProposalProtocol, validateFormProposalPolicy, validateFormProposalDescriptor, formProposalDescriptor, clearFormMisses, formNoOwner, missFormInput, formMustComplete, formInputPrompt, formAcknowledges, consumeFormFeedback, formConversationOutcome, readMoneyAmount, isMoneyAmount, moneyIntentAllows, isPastPaymentStatement, isPartialMoneyAnswer, validateMoneyOptions, takeChoiceOffer, saysConfirmWord, confirmOutOfOrderLine, matchesChoice, ANSWER_WORDS, CONFIRM_WORDS, isAnswer, isAgentRequest, isExitRequest, isOtherRequest, isSpelledFragment, isAmountAnswer, amountInAnswer, pickChoice, withoutPromptEcho, readEmail, readPhone, readInternationalPhone, readIdentifier, last4, maskEmail, callerTextNumber, textDestination, callerIsInternational, normalizeAndFindCapture, anythingElse, goodbye, sayName, sorryNotCaught, dateToWords, amountToSpeech, validateCardNumber, validateExpiration, consumeActionReceipt, authorizeFormActionRetry, formSignature, selectFormAction, confirmFormRevision, prepareFormAction, actionConfirmationValid, beginFormAction, finishFormAction, actionGateVerified, sourceNeedsLoad, beginSourceRefresh, completeSourceRefresh, pickProviderQuestion, matchInputs, readFormAnswer, readInputProfile, formAcceptanceTrace, resolveFormInputs, formInputApplies, formInputFilled, nextFormInput, formInputChain, openFormInstance, validateFormIncompleteOutcome, formIncompleteOutcome, validateFormExhaustion, exhaustFormInput, formInitialReadings, orderFormReadings, proposedFormValues, applyFormValidation, formReadingDependencies, exclusiveFormReadings, enrichFormMatches, expandFormActivations, settleFormActivations, rememberFormArguments, resetFormInputs, hasFormValue, formPath, formValuesEqual, formReadingReady, formReadingRelevant, formPreparation, queueFormReadings, pendingFormReadings, formWorkLimit, answerResetsFormReplays, rejectFormReadings, invalidateFormInputs, acceptFormReadings, formInstanceApplies, formParentResume, closeFormInstance, checkOtp, clearOtp, maskDestination, validateOTP, OTP_EXPIRY_MS, validateDigits, validatePhone, validateEmail, urlToSpeech, textWithUrlToSpeech, joinSpokenDigits, spokenDigitsText, wholeSpokenNumber, };
|
|
39
40
|
/** The functions flows call by name, ready to spread into a host's approved functions. */
|
|
40
41
|
export const STANDARD_FUNCTIONS = {
|
|
41
42
|
continuationSafetyProtocol, cancelFormTask, contextualResponseProtocol, validateFormResponse, hasFormResponse,
|
|
@@ -44,5 +45,5 @@ export const STANDARD_FUNCTIONS = {
|
|
|
44
45
|
readMoneyAmount, isMoneyAmount, moneyIntentAllows, isPastPaymentStatement, isPartialMoneyAnswer, validateMoneyOptions, takeChoiceOffer, saysConfirmWord, confirmOutOfOrderLine, matchesChoice, isAnswer, isAgentRequest, isExitRequest, isOtherRequest, isSpelledFragment, isAmountAnswer, amountInAnswer, pickChoice, withoutPromptEcho,
|
|
45
46
|
readEmail, readPhone, readInternationalPhone, readIdentifier, last4, maskEmail, callerTextNumber, textDestination, callerIsInternational,
|
|
46
47
|
normalizeAndFindCapture, anythingElse, goodbye, sayName, sorryNotCaught, dateToWords, amountToSpeech, validateCardNumber, validateExpiration, consumeActionReceipt, authorizeFormActionRetry, formSignature, selectFormAction, confirmFormRevision, prepareFormAction, actionConfirmationValid, beginFormAction, finishFormAction, actionGateVerified, sourceNeedsLoad, beginSourceRefresh, completeSourceRefresh, pickProviderQuestion, matchInputs, readFormAnswer, readInputProfile, formAcceptanceTrace, resolveFormInputs, formInputApplies, formInputFilled, nextFormInput, formInputChain, openFormInstance, validateFormIncompleteOutcome, formIncompleteOutcome, validateFormExhaustion, exhaustFormInput, formInitialReadings, orderFormReadings, proposedFormValues, applyFormValidation, formReadingDependencies, exclusiveFormReadings, enrichFormMatches, expandFormActivations, settleFormActivations, rememberFormArguments, resetFormInputs, hasFormValue, formPath, formValuesEqual, formReadingReady, formReadingRelevant, formPreparation, queueFormReadings, pendingFormReadings, formWorkLimit, answerResetsFormReplays, rejectFormReadings, invalidateFormInputs, acceptFormReadings, formInstanceApplies, formParentResume, closeFormInstance,
|
|
47
|
-
validateOTP, validateDigits, validatePhone, validateEmail, urlToSpeech, textWithUrlToSpeech,
|
|
48
|
+
validateOTP, validateDigits, validatePhone, validateEmail, urlToSpeech, textWithUrlToSpeech, joinSpokenDigits, wholeSpokenNumber,
|
|
48
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match-inputs.d.ts","sourceRoot":"","sources":["../../src/helpers/match-inputs.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"match-inputs.d.ts","sourceRoot":"","sources":["../../src/helpers/match-inputs.js"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,sEAQC;AAwFD;;;GAGG;AACH,sFAuHC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH;mHACmH;AAEnH,iEAEC;AAGD,gGAKC;AAED;;;;;;;;;;;;;;;;;;;;;;EAeC;AACD;;;;;;;;;;;;;;;;;;;;;;;EA+SC"}
|
|
@@ -14,6 +14,7 @@ import { readEmail, readPhone, readInternationalPhone, readIdentifier } from './
|
|
|
14
14
|
import { readSpokenMoney } from './spoken-money.js';
|
|
15
15
|
import { readMoneyAmount, isPartialMoneyAnswer } from './money.js';
|
|
16
16
|
import { pickProviderQuestion } from './form-sources.js';
|
|
17
|
+
import { spokenDigitsText, wholeSpokenNumber } from './spoken-digits.js';
|
|
17
18
|
/**
|
|
18
19
|
* This turn's acceptance decisions for the host to log, appended per match: fields filled out of order, in a compound
|
|
19
20
|
* answer or as an invited input, and every refused reading, by form, field and rule. Field names and rules only, never
|
|
@@ -137,7 +138,9 @@ export function readInputProfile(profile, answer, isCurrent = true) {
|
|
|
137
138
|
if (kind === 'choice') {
|
|
138
139
|
// An amount's own digits are the amount's: a number beside it ("51:72.45", sub account 51 and $72.45) is still a choice.
|
|
139
140
|
const free = isAmountAnswer(raw) ? amountMasked(raw) : raw;
|
|
140
|
-
|
|
141
|
+
// A declared number of three or more digits said in pieces is that number ("6, 5, 4, 6"); "1, 2" stays two keys.
|
|
142
|
+
const whole = wholeSpokenNumber(free), pieces = whole !== free && whole.length >= 3 ? whole : '';
|
|
143
|
+
const runs = [...(free.match(CHOICE_RUN) || []).map((r) => r.replace(/\D/g, '')), ...(pieces ? [pieces] : [])], joined = pieces ? ` ${pieces} ` : free.replace(CHOICE_RUN, run => ' ' + run.replace(/\D/g, '') + ' ');
|
|
141
144
|
const choices = (Array.isArray(profile.choices) ? profile.choices : []).filter(c => isCurrent || c.current_only !== true).map(c => ({ ...c,
|
|
142
145
|
numericWords: (c.phrases ?? c.words ?? []).filter(word => /^\d{2,}$/.test(String(word).trim())),
|
|
143
146
|
phrases: (c.phrases ?? c.words ?? []).concat(isCurrent ? c.keys || [] : []).filter(word => !(free !== raw && /^\d+$/.test(String(word).trim()) && !runs.includes(String(word).trim())) && (isCurrent || profile.numeric_values === true || !/^[\d*#]$/.test(String(word).trim()))) }));
|
|
@@ -173,12 +176,16 @@ export function readInputProfile(profile, answer, isCurrent = true) {
|
|
|
173
176
|
if (isPartialMoneyAnswer(raw))
|
|
174
177
|
return { value: raw, incompleteMoney: true, spans: [[0, raw.length]], evidence: ['partial-money'] };
|
|
175
178
|
const read = money ? text => readMoneyAmount(text, money) : amountInAnswer;
|
|
176
|
-
|
|
179
|
+
// A number said in pieces is the same number; the rules decide as for that number.
|
|
180
|
+
const whole = wholeSpokenNumber(raw);
|
|
181
|
+
const spelled = whole !== raw;
|
|
182
|
+
const text = spelled ? whole : raw.replace(/^\s*\d(?:(?:\s+|,\s*|-|\.\s+)\d)+(?=\s*(?:dollars?|d[oó]lar(?:es)?|bucks?)\b)/i, (digits) => digits.replace(/\D/g, ''));
|
|
183
|
+
const n = (profile.marked === 'out_of_order' ? !isCurrent : profile.marked) ? (isAmountAnswer(text) ? read(text) : NaN) : read(text);
|
|
177
184
|
const inRange = !isNaN(n) && (profile.min === undefined || n >= Number(profile.min)) && (profile.max === undefined || n <= Number(profile.max));
|
|
178
185
|
if (inRange) {
|
|
179
186
|
// the digits it was read from: the runs that start with its whole-dollar part ("82.50" said as "82 50" → 8250)
|
|
180
187
|
const runs = digitRuns(raw).filter((d) => d.indexOf(String(Math.trunc(n))) === 0);
|
|
181
|
-
return { value: String(n), spans: [...amountSpans(raw, n), ...(money?.cardinals ? readSpokenMoney(raw).filter(reading => reading.value === n).map(reading => [reading.start, reading.end]) : [])], evidence: runs.length ? runs.map((d) => `d:${d}`) : ['amount'] };
|
|
188
|
+
return { value: String(n), spans: [...(spelled ? [[raw.search(/\d/), raw.search(/\d[^\d]*$/) + 1]] : amountSpans(raw, n)), ...(money?.cardinals ? readSpokenMoney(raw).filter(reading => reading.value === n).map(reading => [reading.start, reading.end]) : [])], evidence: runs.length ? runs.map((d) => `d:${d}`) : ['amount'] };
|
|
182
189
|
}
|
|
183
190
|
else {
|
|
184
191
|
return null;
|
|
@@ -231,19 +238,22 @@ export function readInputProfile(profile, answer, isCurrent = true) {
|
|
|
231
238
|
}
|
|
232
239
|
}
|
|
233
240
|
else if (kind === 'pattern') {
|
|
241
|
+
// spoken_digits: the pattern reads a number said in pieces as one number ("5 0 9 Lazy Lane", "apt 2 0 4").
|
|
242
|
+
const said = profile.spoken_digits ? spokenDigitsText(raw, profile.spoken_digits) : { text: raw, at: (i) => i };
|
|
234
243
|
let m = null;
|
|
235
244
|
try {
|
|
236
|
-
m = new RegExp(profile.regex, profile.flags || 'i').exec(
|
|
245
|
+
m = new RegExp(profile.regex, profile.flags || 'i').exec(said.text);
|
|
237
246
|
}
|
|
238
247
|
catch {
|
|
239
248
|
m = null; // an invalid pattern in a spec reads nothing
|
|
240
249
|
}
|
|
241
250
|
if (m) {
|
|
242
251
|
const v = m[profile.group || 0] || m[0];
|
|
243
|
-
|
|
252
|
+
const start = m.index + m[0].indexOf(v);
|
|
253
|
+
return { value: v, spans: [[said.at(start), said.at(start + v.length - 1) + 1]], evidence: [`p:${String(v).toLowerCase()}`] };
|
|
244
254
|
}
|
|
245
255
|
else {
|
|
246
|
-
return isCurrent && profile.accept_other === true && raw.trim() ? { value:
|
|
256
|
+
return isCurrent && profile.accept_other === true && raw.trim() ? { value: said.text.trim(), fallback: true, spans: [[0, raw.length]] } : null;
|
|
247
257
|
}
|
|
248
258
|
}
|
|
249
259
|
else if (kind === 'text') {
|
|
@@ -515,6 +525,24 @@ export function matchInputs(answer, candidates, current, choiceKey) {
|
|
|
515
525
|
return false;
|
|
516
526
|
}
|
|
517
527
|
});
|
|
528
|
+
// Rule 1, a full match (owner 2026-11-02): one part of the answer read out of order, with nothing read for the question asked,
|
|
529
|
+
// accounts for the whole answer: the reading, courtesy or connecting words, and the words of the field itself (its names, label,
|
|
530
|
+
// template words, its confirmation word). Any other word means the matcher does not decide: the reply ranker does ("Si son 129"
|
|
531
|
+
// at the card number). An input asked keeps its reading ("mi código es 129"), several parts read are a compound answer, a
|
|
532
|
+
// confirmation asks no input (its fields are corrections, current.whole_reply declares when they must be whole), and an amount has rule 4.
|
|
533
|
+
const fieldWords = (reading) => { const field = fieldOf(reading), said = [String(field.name || '').replace(/_/g, ' '), ...(field.names || []), field.label, field.label_es, ...(field.profile.template_words || []), field.confirm_out_of_order?.word, field.confirm_out_of_order?.word_es].filter(Boolean); return said.flatMap((s) => String(s).split(/\s+/)); };
|
|
534
|
+
const unaccounted = unclaimedSpans(raw, readings.filter((reading) => !reading.fallback && reading.unlocated !== true)).map(([a, b]) => raw.slice(a, b)).join(' ');
|
|
535
|
+
const spansMeet = (a, b) => (a.spans || []).some(([s, e]) => (b.spans || []).some(([t, u]) => s < u && t < e));
|
|
536
|
+
const onePartAlone = !!cur.name && !readings.some(inOrder) && readings.every((reading) => spansMeet(reading, readings[0]));
|
|
537
|
+
readings = readings.filter((reading) => {
|
|
538
|
+
if (!onePartAlone || reading.rule !== 'out_of_order' || reading.unlocated === true || fieldOf(reading).profile.kind === 'amount' || isReaderFiller(unaccounted, fieldWords(reading))) {
|
|
539
|
+
return true;
|
|
540
|
+
}
|
|
541
|
+
else {
|
|
542
|
+
refused.push({ form: reading.form, name: reading.name, value: reading.value, rule: 'unaccounted_words', spans: reading.spans });
|
|
543
|
+
return false;
|
|
544
|
+
}
|
|
545
|
+
});
|
|
518
546
|
const paired = (a, b) => a.confirm.indexOf(b.name) > -1 || b.confirm.indexOf(a.name) > -1;
|
|
519
547
|
// Narrative ownership protects ancestor choices and same-form choices that reset
|
|
520
548
|
// the requested field. Other sibling choices remain independent compound data. A current choice can carry narrative context too (e.g. a channel plus a
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** { text, at }: the text with its spoken numbers joined, and at(i), the index in the original of text index i. */
|
|
2
|
+
export function spokenDigitsText(input: any, mode?: boolean): {
|
|
3
|
+
text: string;
|
|
4
|
+
at: (i: any) => any;
|
|
5
|
+
};
|
|
6
|
+
export function joinSpokenDigits(input: any, mode?: boolean): string;
|
|
7
|
+
/**
|
|
8
|
+
* A whole answer that is one number said digit by digit reads as that number: "6 5 4 6", "6, 5, 4, 6.", "6-5-4-6", "6. 5. 4. 6.".
|
|
9
|
+
* Anything else comes back as it was. A period with no space after it stays a decimal point ("4.5").
|
|
10
|
+
*/
|
|
11
|
+
export function wholeSpokenNumber(input: any): string;
|
|
12
|
+
//# sourceMappingURL=spoken-digits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spoken-digits.d.ts","sourceRoot":"","sources":["../../src/helpers/spoken-digits.js"],"names":[],"mappings":"AAoBA,mHAAmH;AACnH;;;EAyBC;AAED,qEAEC;AAED;;;GAGG;AACH,sDAGC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One number said in pieces, joined (owner 2026-11-03: every numeric reader takes spaces). Speech-to-text writes spoken
|
|
3
|
+
* digits apart ("5 0 9"), in groups ("50 9"), or with the pause as a comma, a period or a dash ("5, 0, 9.", "5-0-9").
|
|
4
|
+
* A dash joins only single digits: "12-34 Main St" is a hyphenated house number, not a pause.
|
|
5
|
+
*
|
|
6
|
+
* mode true: any run of groups of up to three digits. mode 'house_number': the first group has at most two digits,
|
|
7
|
+
* because "509 12 Ave" is a house number and a numbered street. Part of jsfe/helpers; zero imports.
|
|
8
|
+
*/
|
|
9
|
+
const RUN = /(?<![\w.,-])\d{1,3}(?:(?:[ \t]+|,\s*|\.\s+|-)\d{1,3})+(?![\w-])/g;
|
|
10
|
+
const joins = (run, mode) => {
|
|
11
|
+
const groups = run.split(/\D+/);
|
|
12
|
+
if (run.includes('-') && !groups.every((group) => group.length === 1)) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
else if (mode === 'house_number') {
|
|
16
|
+
return groups[0].length <= 2;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
/** { text, at }: the text with its spoken numbers joined, and at(i), the index in the original of text index i. */
|
|
23
|
+
export function spokenDigitsText(input, mode = true) {
|
|
24
|
+
const raw = String(input ?? '');
|
|
25
|
+
const cuts = [...raw.matchAll(RUN)].filter((match) => joins(match[0], mode));
|
|
26
|
+
let text = '';
|
|
27
|
+
const origin = [];
|
|
28
|
+
let from = 0;
|
|
29
|
+
const keep = (start, end) => {
|
|
30
|
+
for (let i = start; i < end; i++) {
|
|
31
|
+
text += raw[i];
|
|
32
|
+
origin.push(i);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
for (const cut of cuts) {
|
|
36
|
+
keep(from, cut.index);
|
|
37
|
+
for (let i = cut.index; i < cut.index + cut[0].length; i++) {
|
|
38
|
+
if (/\d/.test(raw[i])) {
|
|
39
|
+
text += raw[i];
|
|
40
|
+
origin.push(i);
|
|
41
|
+
}
|
|
42
|
+
else { /* a pause inside the number */ }
|
|
43
|
+
}
|
|
44
|
+
from = cut.index + cut[0].length;
|
|
45
|
+
}
|
|
46
|
+
keep(from, raw.length);
|
|
47
|
+
// A pause after the house number: "2 18, Nice Dr" (prod 11-02 CA120bcd), "633, North Normandy".
|
|
48
|
+
const pause = mode === 'house_number' ? /^\s*\d{1,6}([,.])\s/.exec(text) : null;
|
|
49
|
+
if (pause) {
|
|
50
|
+
const cut = pause[0].length - 2;
|
|
51
|
+
text = text.slice(0, cut) + text.slice(cut + 1);
|
|
52
|
+
origin.splice(cut, 1);
|
|
53
|
+
}
|
|
54
|
+
else { /* no pause there */ }
|
|
55
|
+
return { text, at: (i) => (i < origin.length ? origin[i] : raw.length) };
|
|
56
|
+
}
|
|
57
|
+
export function joinSpokenDigits(input, mode = true) {
|
|
58
|
+
return spokenDigitsText(input, mode).text;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A whole answer that is one number said digit by digit reads as that number: "6 5 4 6", "6, 5, 4, 6.", "6-5-4-6", "6. 5. 4. 6.".
|
|
62
|
+
* Anything else comes back as it was. A period with no space after it stays a decimal point ("4.5").
|
|
63
|
+
*/
|
|
64
|
+
export function wholeSpokenNumber(input) {
|
|
65
|
+
const text = String(input ?? '');
|
|
66
|
+
return /^\s*\d(?:(?:\s+|,\s*|-|\.\s+)\d)+[\s.]*$/.test(text) ? text.replace(/\D/g, '') : text;
|
|
67
|
+
}
|
package/dist/host/reply-rank.js
CHANGED
|
@@ -53,8 +53,8 @@ const CRITERIA = {
|
|
|
53
53
|
false: 'It withdraws the request, or asks for a different service or an unrelated question.',
|
|
54
54
|
},
|
|
55
55
|
abort: {
|
|
56
|
-
true: 'The latest message withdraws the current request (never mind, forget it, I no longer want it) and asks for nothing else.',
|
|
57
|
-
false: 'It responds to the current question, or asks for something.',
|
|
56
|
+
true: 'The latest message withdraws the current request (never mind, forget it, cancel it, I no longer want it) and asks for nothing else.',
|
|
57
|
+
false: 'It responds to the current question, or asks for something else.',
|
|
58
58
|
},
|
|
59
59
|
new_request: {
|
|
60
60
|
true: 'The latest message clearly asks for a different service, product or action, by name or in words, or asks a question unrelated to the current question. A stray word, an unfinished sentence, a remark or speech addressed to someone else does not qualify.',
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAC1D,YAAY,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAyB1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAA4B,MAAM,sBAAsB,CAAC;AAyBvF;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,EAAE,CASxD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,EAAE,CASxD;AAGD;;;;;;;;;;;;GAYG;AAIH,qBAAa,kBAAmB,SAAQ,KAAK;aACE,KAAK,CAAC,EAAE,KAAK;gBAA9C,OAAO,EAAE,MAAM,EAAkB,KAAK,CAAC,EAAE,KAAK,YAAA;CAI3D;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI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ACH,OAAO,CAAC,sBAAsB;IAmE9B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAyB7B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IA+C/B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IA+B9B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAsEzB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAmCxB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAmBxB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA4C3B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAiDzB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAmC7B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAwC5B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAe9B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAMhC;;;;OAIG;IACH,gBAAgB,CAAC,OAAO,GAAE,GAAQ,GAAG,GAAG;IAkHxC;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAwE5B;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAe7B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IA2BhC;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAiC9B;;OAEG;IACH,OAAO,CAAC,2BAA2B;IA2CnC;;OAEG;IACH,OAAO,CAAC,wBAAwB;IA6BhC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAwB7B,OAAO,CAAC,wBAAwB;IAMhC,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,qBAAqB;IAM7B,OAAO,CAAC,wBAAwB;IAShC,OAAO,CAAC,2BAA2B;CAKpC"}
|
package/dist/index.js
CHANGED
|
@@ -6029,6 +6029,16 @@ async function processActivity(input, userId, engine) {
|
|
|
6029
6029
|
else {
|
|
6030
6030
|
// an ordinary option or choice
|
|
6031
6031
|
}
|
|
6032
|
+
// responseStay: a new request cannot leave the question, it is one more reply that picked nothing. A clear withdrawal still ends the flows.
|
|
6033
|
+
if (option === 'new_request' && step.responseStay && frame.variables[step.responseStay] === true) {
|
|
6034
|
+
logger.info(`Contextual DISPATCH in '${frame.flowName}': a new request, and the question must be completed; the flow continues`);
|
|
6035
|
+
ranked = 'answers';
|
|
6036
|
+
frame.variables[declaration.variable] = declaration.parameters.length ? {} : { key: '' };
|
|
6037
|
+
return false;
|
|
6038
|
+
}
|
|
6039
|
+
else {
|
|
6040
|
+
// the reply may leave, or it did not ask to
|
|
6041
|
+
}
|
|
6032
6042
|
ranked = option.startsWith(CHOICE_PREFIX) ? 'answers' : option;
|
|
6033
6043
|
if (option.startsWith(CHOICE_PREFIX)) {
|
|
6034
6044
|
// A declared choice is the whole answer, unless it declares arguments: they are extracted like a flow's, and the
|
|
@@ -7678,7 +7688,7 @@ export class WorkflowEngine {
|
|
|
7678
7688
|
}
|
|
7679
7689
|
// DISPATCH always routes the turn's own input — no value. It may declare the ending of the
|
|
7680
7690
|
// flows it ends (`outcome` / `reason`, kept only when no flow matches).
|
|
7681
|
-
const extra = Object.keys(step).filter(k => !['id', 'type', 'outcome', 'reason', 'recovery', 'onResponse', 'responseContext', 'responseParameters', 'responseVariable', 'responseChoices', 'responseReasonFor', 'onNoIntent'].includes(k));
|
|
7691
|
+
const extra = Object.keys(step).filter(k => !['id', 'type', 'outcome', 'reason', 'recovery', 'onResponse', 'responseContext', 'responseParameters', 'responseVariable', 'responseChoices', 'responseReasonFor', 'responseStay', 'onNoIntent'].includes(k));
|
|
7682
7692
|
if (extra.length > 0) {
|
|
7683
7693
|
state.errors.push(`DISPATCH step "${step.id}" in flow "${flowDef.name}" has invalid attribute(s) ${extra.map(k => `"${k}"`).join(', ')} - DISPATCH takes only "id", "outcome", "reason", "recovery", "onResponse" "responseContext", "responseParameters", "responseVariable", "responseChoices" and "onNoIntent"`);
|
|
7684
7694
|
}
|
package/dist/runtime-identity.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const JSFE_RUNTIME_FINGERPRINT = "sha256:
|
|
1
|
+
export const JSFE_RUNTIME_FINGERPRINT = "sha256:615ae9b91c5c26356b7d94f1274e486dff28902a1a3f0c8311d258dc62eade9f";
|
|
@@ -334,7 +334,7 @@ lives:
|
|
|
334
334
|
| "Yes, but make it 60" is not consent | an answer with YES plus a correction or another request is not approval of the old request |
|
|
335
335
|
| No guessed success | an executor reports success, failure or unknown; unknown holds the action, it is never retried as if it failed |
|
|
336
336
|
| One effect, once | effects run only through `CALL-TOOL`; the session records the attempt (`lastTurnToolCalls`) and the host never rolls such a turn back |
|
|
337
|
-
| No escape from a half-finished effect | `must_complete` keeps a payment's card questions in place
|
|
337
|
+
| No escape from a half-finished effect | `must_complete` keeps a payment's card questions in place: the ranker reads a worded reply, a pick is taken, a clear withdrawal ends the flows, and any other verdict stays, saying the form's `first_task` |
|
|
338
338
|
|
|
339
339
|
The host keeps its side of the contract: one `updateActivity` at a time per conversation; a cancelled turn is awaited,
|
|
340
340
|
not abandoned; a turn that attempted a tool is never restored to its earlier session; and external effects carry an
|
|
@@ -193,7 +193,7 @@ Profiles:
|
|
|
193
193
|
| `choice` | `choices:[{key,phrases,label?,label_es?,keys?,exact?,neutral?,negative?,current_only?}]`; optional `accept_other`, `numeric_values`, `narrative`, `whole_phrases`, `template_words`. |
|
|
194
194
|
| `digits` | `min`, `max`: one unambiguous digit run of that length. |
|
|
195
195
|
| `identifier` | `pattern`: permitted account identifier shape. |
|
|
196
|
-
| `pattern` | `regex`, optional `flags`, `group`; optional `accept_other` for the current field only, `whole_phrases`, `template_words
|
|
196
|
+
| `pattern` | `regex`, optional `flags`, `group`; optional `accept_other` for the current field only, `whole_phrases`, `template_words`; `spoken_digits` (`true`, or `'house_number'` when a numbered street can follow) reads a number said in pieces as one number ("5 0 9 Lazy Lane", "apt 2 0 4"), required on any pattern that reads digits. |
|
|
197
197
|
| `phone`, `email` | Typed readers; email `literal:true` preserves an explicit visible address token in surrounding prose. |
|
|
198
198
|
| `amount` | `min`, `max`, optional `marked:true` or `marked:"out_of_order"`; optional `money:{currency:"USD",cardinals:true,intent:"payment"}`. |
|
|
199
199
|
| `text` | Current-field text fallback; `narrative:true` retains a substantive answer alongside independent structured fields. |
|
|
@@ -266,7 +266,7 @@ The loop skips accepted data and asks the first ready missing required field. Co
|
|
|
266
266
|
|
|
267
267
|
An unreadable answer with any words goes to the reply ranker, offered the question's choices (`exact` ones too, since `exact` is how words match a choice; never the YES of a firm confirmation; a NO always) and a person (`__agent`), never text (the words and keypad key for text are read before it): a picked choice is the answer, a person is taken, a reply that picks none is asked again (counted against `max_attempts`); only `abort` or `new_request` leaves the form. `max_misses` (default two) bounds unreadable answers without words (symbols, an unexpected keypad entry): clarify the first with explicit retry text or a localized “Sorry, I didn't catch that.” prefix; yield the second utterance to DISPATCH while preserving the draft. A form confirmation's unread answers are ranked the same way (offered NO, never YES); after two, the `give-up` worker takes over. Validator failures use a separate `max_attempts` budget. An out-of-order accepted answer is not a miss. On exhaustion the nearest declared `on_exhausted` receives `{form,input,failed_form,failed_input,reason:"attempts_exhausted"}` and must deliberately recover that branch; it does not receive consent.
|
|
268
268
|
|
|
269
|
-
`must_complete:true` on a form (inherited by every field of it and of the forms nested in it) or on one field (`false` on a field opts out): an unreadable answer is never yielded to DISPATCH, however long, and neither is a confirmation miss or an unresolved ambiguity — the question is asked again, acknowledged. Use it where leaving would strand an effect in progress (a payment's card, its billing-ZIP correction).
|
|
269
|
+
`must_complete:true` on a form (inherited by every field of it and of the forms nested in it) or on one field (`false` on a field opts out): an unreadable answer is never yielded to DISPATCH, however long, and neither is a confirmation miss or an unresolved ambiguity — the question is asked again, acknowledged. A worded reply always reaches the reply ranker, offered every choice the chain's reader accepts: a pick is taken, a clear withdrawal ends the flows, and any other verdict (a new request included) stays and says `first_task` / `first_task_es` from the nearest form declaring it, "I understand, first let's record your new card." / "Entiendo, primero vamos a registrar su tarjeta nueva.", then the field's `retry` or its question. It uses no attempt. Use it where leaving would strand an effect in progress (a payment's card, its billing-ZIP correction). Other exits stay explicit: the form's stop words, `max_attempts` with `on_exhausted`, and whatever the host intercepts before the engine. The form runaway guard counts passes without a caller answer only.
|
|
270
270
|
|
|
271
271
|
`confirm.named_fields: true` lets a caller correct a read-back in their own words: each input of this form that declares `names` and holds a value is offered to the reply ranker, and a pick extracts the new value of every such input, so one reply can change several. `confirm.reply_context` tells the ranker and the extraction what a reply may contain (never spoken); an input's `argument_description` says what its value looks like ("apartment or unit number alone, such as 4 or 12B"). A reply the word readers only partly account for goes to the ranker, so none of it is lost.
|
|
272
272
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsfe",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
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",
|