jsfe 1.87.1 → 1.88.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
CHANGED
|
@@ -387,7 +387,7 @@ in the chain declaring `user_description` / `user_description_es`, written with
|
|
|
387
387
|
a reason question; cut 0.6, and the top score wins over a cleared choice): the caller expresses doubt that the current process is what they need.
|
|
388
388
|
The reader says the description, how to cancel ("To cancel, press the asterisk key or say EXIT." / "To cancel, type EXIT."; Spanish
|
|
389
389
|
SALIR) and the question again; no attempt is counted;
|
|
390
|
-
`irrelevant` (a stray word, an unfinished sentence
|
|
390
|
+
`irrelevant` (a stray word, an unfinished sentence; speech to someone else on a phone line is the host preprocessor's; cut 0.7; rated above a cleared choice, it outranks it) extracts nothing and asks again: no flow moves. `new_request` ends the flows and routes the input through intent detection, which reads it with the exchange it answered (the caller's previous words and what the flow said after them), as the ranker did. Only a new request is routed: after
|
|
391
391
|
`answers` a later ordinary DISPATCH in the same turn hands the host the turn without detection. A host that does not know the task answers the `llm`
|
|
392
392
|
instructions with its text model.
|
|
393
393
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* answers the reply answers the question (the default: an open question's reply that clears no option is its answer)
|
|
8
8
|
* abort the caller withdraws the request and asks for nothing else
|
|
9
9
|
* new_request the caller clearly asks for something else: a different service, product or action, or an unrelated question
|
|
10
|
-
* irrelevant the reply means nothing here (a stray word, an unfinished sentence
|
|
10
|
+
* irrelevant the reply means nothing here (a stray word, an unfinished sentence): the question
|
|
11
11
|
* is asked again and no flow moves. A reason question does not offer it.
|
|
12
12
|
* concern the caller doubts the current process is what they need (offered only when a form declares
|
|
13
13
|
* user_description, passed as `concern`): the form says what it does and how to cancel, then asks again
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reply-rank.d.ts","sourceRoot":"","sources":["../../src/host/reply-rank.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,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S,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,gBAAgB,CAoDzN;AAED,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,CAMnG;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAAC,GAAG,SAAS,EACnE,OAAO,EAAE,gBAAgB,EACzB,EAAE,SAA+B,EAAE,IAAiB,EAAE,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAA;CAAO,GAC/H;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CA6B7F;AAED,+FAA+F;AAC/F,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,gBAAgB,CAGhF"}
|
package/dist/host/reply-rank.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* answers the reply answers the question (the default: an open question's reply that clears no option is its answer)
|
|
8
8
|
* abort the caller withdraws the request and asks for nothing else
|
|
9
9
|
* new_request the caller clearly asks for something else: a different service, product or action, or an unrelated question
|
|
10
|
-
* irrelevant the reply means nothing here (a stray word, an unfinished sentence
|
|
10
|
+
* irrelevant the reply means nothing here (a stray word, an unfinished sentence): the question
|
|
11
11
|
* is asked again and no flow moves. A reason question does not offer it.
|
|
12
12
|
* concern the caller doubts the current process is what they need (offered only when a form declares
|
|
13
13
|
* user_description, passed as `concern`): the form says what it does and how to cancel, then asks again
|
|
@@ -63,7 +63,9 @@ const CRITERIA = {
|
|
|
63
63
|
false: 'It responds to the current question, only withdraws the request, or does not clearly say what the caller wants.',
|
|
64
64
|
},
|
|
65
65
|
irrelevant: {
|
|
66
|
-
|
|
66
|
+
// Not speech meant for someone else (owner 2026-11-21): on a phone line the host's preprocessor hears every turn first and
|
|
67
|
+
// answers it, so it never reaches a flow; a typed message is always meant for the assistant.
|
|
68
|
+
true: 'The latest message means nothing here: a stray word or name, or an unfinished sentence. It names no service, action, product, amount or person to speak to.',
|
|
67
69
|
false: 'It responds to the current question in any words (yes, no, thanks, a name, a number, a question about it), withdraws the request, or names something the caller wants.',
|
|
68
70
|
},
|
|
69
71
|
};
|
package/dist/runtime-identity.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const JSFE_RUNTIME_FINGERPRINT = "sha256:
|
|
1
|
+
export const JSFE_RUNTIME_FINGERPRINT = "sha256:0ae44a665a24ada501c56e254ed6920f3feb879ec0b3f181707043cb00665fa7";
|
|
@@ -293,7 +293,7 @@ does this reply do with the question the flow asked? The model picks from a clos
|
|
|
293
293
|
| `choice:<key>` | the reply picks one of the question's offered choices | that choice is the answer |
|
|
294
294
|
| `abort` | the caller withdraws the request | every flow ends; the caller hears that the request was cancelled |
|
|
295
295
|
| `new_request` | the caller clearly asks for something else | DISPATCH: the message goes to intent detection |
|
|
296
|
-
| `irrelevant` | the reply means nothing here: a stray word, an unfinished sentence
|
|
296
|
+
| `irrelevant` | the reply means nothing here: a stray word, an unfinished sentence (speech to someone else on a phone line is the host preprocessor's) | the question is asked again; no flow moves |
|
|
297
297
|
| `concern` | the caller expresses doubt that the current process is what they need ("It's not a new address, I'm just changing the delivery address") | offered only when a form in the chain declares `user_description`: the caller hears it, how to cancel, and the question again; no attempt is counted |
|
|
298
298
|
|
|
299
299
|
**Saying what a process does.** A form declares `user_description` / `user_description_es` (the engine's own `{{...}}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsfe",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.88.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",
|