@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/cli.js CHANGED
@@ -3381,7 +3381,7 @@ var program = new Command();
3381
3381
  // package.json
3382
3382
  var package_default = {
3383
3383
  name: "@moxt-ai/mobius",
3384
- version: "0.0.141",
3384
+ version: "0.0.142",
3385
3385
  description: "Mobius CLI for pairing and running local AI agent services.",
3386
3386
  type: "module",
3387
3387
  bin: {
@@ -42213,6 +42213,7 @@ var ActiveDaemonTurn = class {
42213
42213
  state: "running"
42214
42214
  } : null;
42215
42215
  matches = (cancellation) => cancellation.commandId === this.command.commandId && cancellation.sessionId === this.command.sessionId;
42216
+ matchesInteraction = (interactionId, sessionId) => this.command.sessionId === sessionId && this.#interaction?.interactionId === interactionId;
42216
42217
  requestCancellation = () => {
42217
42218
  if (this.#cancellationRequested) {
42218
42219
  return "already-requested";
@@ -42281,6 +42282,13 @@ var DaemonTurnRegistry = class {
42281
42282
  return turn.recordEvent(event);
42282
42283
  }
42283
42284
  }
42285
+ if (event.kind === SESSION_PERMISSION_RESOLVED_KIND || event.kind === SESSION_ELICITATION_RESOLVED_KIND) {
42286
+ for (const turn of this.#turns.values()) {
42287
+ if (turn.matchesInteraction(event.interactionId, event.sessionId)) {
42288
+ return turn.recordEvent(event);
42289
+ }
42290
+ }
42291
+ }
42284
42292
  return event;
42285
42293
  };
42286
42294
  executionSnapshot = async (matches) => {