@moxt-ai/mobius 0.0.159 → 0.0.160

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
@@ -42367,7 +42367,7 @@ async function executeWorkspaceList(socket, command, directories, audit, signal)
42367
42367
  reportOperationFailure(socket, command.requestId, "", error62);
42368
42368
  }
42369
42369
  }
42370
- async function executeSessionPrepare(publisher, socket, command, config2, directories, audit, sessions, signal) {
42370
+ async function executeSessionPrepare(publisher, socket, command, config2, directories, audit, sessions, diagnostics, signal) {
42371
42371
  const metrics = new AccumulatingOperationMetrics();
42372
42372
  try {
42373
42373
  const readyEvent = await metrics.measure("prepare-total", async () => {
@@ -42452,6 +42452,16 @@ async function executeSessionPrepare(publisher, socket, command, config2, direct
42452
42452
  runtimeTimings: metrics.snapshot()
42453
42453
  });
42454
42454
  } catch (error62) {
42455
+ diagnostics.daemonDiagnostic(
42456
+ "session_prepare_failed",
42457
+ command.requestId,
42458
+ {
42459
+ agentId: command.agentId,
42460
+ code: operationErrorCode(error62),
42461
+ sessionId: command.sessionId
42462
+ },
42463
+ error62
42464
+ );
42455
42465
  audit.record({
42456
42466
  commandId: command.requestId,
42457
42467
  details: {
@@ -42789,7 +42799,17 @@ function createDaemonCommandHandler({
42789
42799
  }
42790
42800
  if (kind === SESSION_PREPARE_KIND) {
42791
42801
  const command2 = message;
42792
- void executeSessionPrepare(publisher, socket, command2, config2, directories, audit, sessions, signal);
42802
+ void executeSessionPrepare(
42803
+ publisher,
42804
+ socket,
42805
+ command2,
42806
+ config2,
42807
+ directories,
42808
+ audit,
42809
+ sessions,
42810
+ diagnostics,
42811
+ signal
42812
+ );
42793
42813
  return;
42794
42814
  }
42795
42815
  if (kind === SESSION_CONFIGURE_KIND) {