@genesislcap/ai-assistant 15.96.3-GENC-1640.2 → 15.97.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.
@@ -11033,9 +11033,6 @@ var BaseDriverDecorator = class _BaseDriverDecorator extends EventTarget {
11033
11033
  serializeWaitingCallers() {
11034
11034
  return this.inner.serializeWaitingCallers?.() ?? {};
11035
11035
  }
11036
- getWaitingCallers() {
11037
- return this.inner.getWaitingCallers?.() ?? [];
11038
- }
11039
11036
  getHandOffData() {
11040
11037
  return this.inner.getHandOffData?.() ?? {};
11041
11038
  }
@@ -11167,7 +11164,6 @@ var OUTCOME_KINDS = [
11167
11164
  "released",
11168
11165
  "cleared",
11169
11166
  "agent-removed",
11170
- "target-interrupted",
11171
11167
  "state-lost"
11172
11168
  ];
11173
11169
  function handOffNote(caller) {
@@ -11179,7 +11175,6 @@ function handBackNote(frame, outcome) {
11179
11175
  released: `${frame.target} has finished the request you handed it, without a summary. Its last reply is above.`,
11180
11176
  cleared: "The hand-off was cleared.",
11181
11177
  "agent-removed": `${frame.target} is no longer available, so the request you handed it was not finished.`,
11182
- "target-interrupted": `${frame.target} was cut short by a page reload and could not resume, so the request you handed it was not finished and its unsaved work is lost.`,
11183
11178
  "state-lost": `The hand-off to ${frame.target} could not be resumed.`
11184
11179
  };
11185
11180
  const summary = outcome.kind === "completed" && outcome.message ? " Its summary is the message above." : "";
@@ -11781,7 +11776,7 @@ var OrchestratingDriver = class _OrchestratingDriver extends BaseDriverDecorator
11781
11776
  const outcome = frame.outcome;
11782
11777
  if (!caller) {
11783
11778
  this.unwound(frame, "agent-removed");
11784
- } else if (caller.serialize && savedStates?.[caller.name] === void 0) {
11779
+ } else if (interrupted || caller.serialize && savedStates?.[caller.name] === void 0) {
11785
11780
  this.unwound(frame, "state-lost");
11786
11781
  } else {
11787
11782
  kept.push(frame);
@@ -11798,8 +11793,6 @@ var OrchestratingDriver = class _OrchestratingDriver extends BaseDriverDecorator
11798
11793
  const top = kept[kept.length - 1];
11799
11794
  if (top && !top.outcome && !this.agents.some((a) => a.name === top.target)) {
11800
11795
  top.outcome = { kind: "agent-removed" };
11801
- } else if (top && !top.outcome && interrupted) {
11802
- top.outcome = { kind: "target-interrupted" };
11803
11796
  }
11804
11797
  this.handOffStack = kept;
11805
11798
  this.chatDriver.suspendRestoredActivations(kept.map((f) => f.caller));
@@ -11845,16 +11838,6 @@ var OrchestratingDriver = class _OrchestratingDriver extends BaseDriverDecorator
11845
11838
  if (interrupted || !saved || typeof saved !== "object" || Array.isArray(saved)) return;
11846
11839
  for (const [name, data] of Object.entries(saved)) this.agentSession.setHandOffData(name, data);
11847
11840
  }
11848
- /** {@inheritDoc AiDriver.getWaitingCallers} */
11849
- getWaitingCallers() {
11850
- const live2 = this.agentSession.getSuspended();
11851
- const callers = [];
11852
- for (const frame of this.handOffStack) {
11853
- const agent = live2.find((a) => a.name === frame.caller) ?? this.agents.find((a) => a.name === frame.caller);
11854
- if (agent) callers.push(agent);
11855
- }
11856
- return callers;
11857
- }
11858
11841
  /** {@inheritDoc AiDriver.serializeWaitingCallers} */
11859
11842
  serializeWaitingCallers() {
11860
11843
  const states = {};