@moxt-ai/mobius 0.0.141 → 0.0.142

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/runtime.js CHANGED
@@ -37894,6 +37894,7 @@ var ActiveDaemonTurn = class {
37894
37894
  state: "running"
37895
37895
  } : null;
37896
37896
  matches = (cancellation) => cancellation.commandId === this.command.commandId && cancellation.sessionId === this.command.sessionId;
37897
+ matchesInteraction = (interactionId, sessionId) => this.command.sessionId === sessionId && this.#interaction?.interactionId === interactionId;
37897
37898
  requestCancellation = () => {
37898
37899
  if (this.#cancellationRequested) {
37899
37900
  return "already-requested";
@@ -37962,6 +37963,13 @@ var DaemonTurnRegistry = class {
37962
37963
  return turn.recordEvent(event);
37963
37964
  }
37964
37965
  }
37966
+ if (event.kind === SESSION_PERMISSION_RESOLVED_KIND || event.kind === SESSION_ELICITATION_RESOLVED_KIND) {
37967
+ for (const turn of this.#turns.values()) {
37968
+ if (turn.matchesInteraction(event.interactionId, event.sessionId)) {
37969
+ return turn.recordEvent(event);
37970
+ }
37971
+ }
37972
+ }
37965
37973
  return event;
37966
37974
  };
37967
37975
  executionSnapshot = async (matches) => {