@genesislcap/ai-assistant 15.85.0 → 15.85.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-assistant.d.ts +7 -1
- package/dist/chat-driver.cjs +11 -2
- package/dist/chat-driver.cjs.map +2 -2
- package/dist/chat-driver.mjs +11 -2
- package/dist/chat-driver.mjs.map +2 -2
- package/dist/custom-elements.json +631 -631
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +7 -1
- package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
- package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +11 -2
- package/package.json +17 -17
package/dist/ai-assistant.d.ts
CHANGED
|
@@ -8100,7 +8100,8 @@ export declare class OrchestratingDriver extends BaseDriverDecorator<ChatDriver>
|
|
|
8100
8100
|
*
|
|
8101
8101
|
* A failed call ends the turn there, as a Stop does: what it asked for still happens, and the
|
|
8102
8102
|
* next agent runs on the next message. Running it now would meet the same wall (a budget, a
|
|
8103
|
-
* refused account, a full context window), or build on a reply that never came.
|
|
8103
|
+
* refused account, a full context window), or build on a reply that never came. The one thing a
|
|
8104
|
+
* Stop takes back is a hand-off that has not started (see `afterAgentCall`).
|
|
8104
8105
|
*/
|
|
8105
8106
|
private carryOn;
|
|
8106
8107
|
/**
|
|
@@ -8110,6 +8111,11 @@ export declare class OrchestratingDriver extends BaseDriverDecorator<ChatDriver>
|
|
|
8110
8111
|
*
|
|
8111
8112
|
* A plain target hands back when its call ends, released or not, as a plain agent is done once
|
|
8112
8113
|
* it has answered. A stateful one holds the hand-off until it releases, as it holds its flow.
|
|
8114
|
+
*
|
|
8115
|
+
* A Stop cancels a hand-off that has not started: the user stopped the turn the caller asked for
|
|
8116
|
+
* it in, often during the caller's closing call, so the target is not activated, and the call
|
|
8117
|
+
* ends as if it had never asked (a plain caller's turn ends as usual below). A hand-back is not
|
|
8118
|
+
* taken back: the target finished the work it was given.
|
|
8113
8119
|
*/
|
|
8114
8120
|
private afterAgentCall;
|
|
8115
8121
|
/** How the target of `frame` finished: with `completeHandOff`, or a release and its last reply. */
|
package/dist/chat-driver.cjs
CHANGED
|
@@ -10337,7 +10337,8 @@ var OrchestratingDriver = class _OrchestratingDriver extends BaseDriverDecorator
|
|
|
10337
10337
|
*
|
|
10338
10338
|
* A failed call ends the turn there, as a Stop does: what it asked for still happens, and the
|
|
10339
10339
|
* next agent runs on the next message. Running it now would meet the same wall (a budget, a
|
|
10340
|
-
* refused account, a full context window), or build on a reply that never came.
|
|
10340
|
+
* refused account, a full context window), or build on a reply that never came. The one thing a
|
|
10341
|
+
* Stop takes back is a hand-off that has not started (see `afterAgentCall`).
|
|
10341
10342
|
*/
|
|
10342
10343
|
async carryOn(result) {
|
|
10343
10344
|
let last = result;
|
|
@@ -10355,10 +10356,18 @@ var OrchestratingDriver = class _OrchestratingDriver extends BaseDriverDecorator
|
|
|
10355
10356
|
*
|
|
10356
10357
|
* A plain target hands back when its call ends, released or not, as a plain agent is done once
|
|
10357
10358
|
* it has answered. A stateful one holds the hand-off until it releases, as it holds its flow.
|
|
10359
|
+
*
|
|
10360
|
+
* A Stop cancels a hand-off that has not started: the user stopped the turn the caller asked for
|
|
10361
|
+
* it in, often during the caller's closing call, so the target is not activated, and the call
|
|
10362
|
+
* ends as if it had never asked (a plain caller's turn ends as usual below). A hand-back is not
|
|
10363
|
+
* taken back: the target finished the work it was given.
|
|
10358
10364
|
*/
|
|
10359
10365
|
async afterAgentCall() {
|
|
10360
10366
|
const request = this.chatDriver.getHandOffRequest();
|
|
10361
|
-
if (request) return this.startHandOff(request);
|
|
10367
|
+
if (request && !this.cancelled) return this.startHandOff(request);
|
|
10368
|
+
if (request) {
|
|
10369
|
+
logger2.debug(`OrchestratingDriver: stopped before the hand-off to "${request.to}" started`);
|
|
10370
|
+
}
|
|
10362
10371
|
const active = this.agentSession.getActive();
|
|
10363
10372
|
if (!active) return void 0;
|
|
10364
10373
|
const frame = this.topFrameFor(active.name);
|