@moxt-ai/mobius 0.0.159 → 0.0.161

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.159",
3384
+ version: "0.0.161",
3385
3385
  description: "Mobius CLI for pairing and running local AI agent services.",
3386
3386
  type: "module",
3387
3387
  bin: {
@@ -46126,7 +46126,7 @@ function replayEvent(sessionId, position, update) {
46126
46126
  type: "acp"
46127
46127
  };
46128
46128
  }
46129
- async function executeSessionLiveHistoryV2PageLoad(socket, command, config2, directories, audit, sessions, executingPromptRequest, signal) {
46129
+ async function executeSessionLiveHistoryV2PageLoad(socket, command, config2, directories, audit, diagnostics, sessions, executingPromptRequest, signal) {
46130
46130
  try {
46131
46131
  const resolved = await resolveSessionDirectories(
46132
46132
  directories,
@@ -46173,6 +46173,25 @@ async function executeSessionLiveHistoryV2PageLoad(socket, command, config2, dir
46173
46173
  });
46174
46174
  } catch (error62) {
46175
46175
  if (!signal.aborted) {
46176
+ diagnostics.daemonDiagnostic(
46177
+ "session_history_v2_load_failed",
46178
+ command.requestId,
46179
+ {
46180
+ agentId: command.agentId,
46181
+ code: operationErrorCode(error62),
46182
+ sessionId: command.sessionId
46183
+ },
46184
+ error62
46185
+ );
46186
+ audit.record({
46187
+ commandId: command.requestId,
46188
+ details: {
46189
+ agentId: command.agentId,
46190
+ code: operationErrorCode(error62)
46191
+ },
46192
+ event: "session_history_v2_load_failed",
46193
+ sessionId: command.sessionId
46194
+ });
46176
46195
  reportOperationFailure(socket, command.requestId, command.sessionId, error62);
46177
46196
  }
46178
46197
  }
@@ -46728,7 +46747,7 @@ async function executeWorkspaceList(socket, command, directories, audit, signal)
46728
46747
  reportOperationFailure(socket, command.requestId, "", error62);
46729
46748
  }
46730
46749
  }
46731
- async function executeSessionPrepare(publisher, socket, command, config2, directories, audit, sessions, signal) {
46750
+ async function executeSessionPrepare(publisher, socket, command, config2, directories, audit, sessions, diagnostics, signal) {
46732
46751
  const metrics = new AccumulatingOperationMetrics();
46733
46752
  try {
46734
46753
  const readyEvent = await metrics.measure("prepare-total", async () => {
@@ -46813,6 +46832,16 @@ async function executeSessionPrepare(publisher, socket, command, config2, direct
46813
46832
  runtimeTimings: metrics.snapshot()
46814
46833
  });
46815
46834
  } catch (error62) {
46835
+ diagnostics.daemonDiagnostic(
46836
+ "session_prepare_failed",
46837
+ command.requestId,
46838
+ {
46839
+ agentId: command.agentId,
46840
+ code: operationErrorCode(error62),
46841
+ sessionId: command.sessionId
46842
+ },
46843
+ error62
46844
+ );
46816
46845
  audit.record({
46817
46846
  commandId: command.requestId,
46818
46847
  details: {
@@ -47063,6 +47092,7 @@ function createDaemonCommandHandler({
47063
47092
  config2,
47064
47093
  directories,
47065
47094
  audit,
47095
+ diagnostics,
47066
47096
  sessions,
47067
47097
  eventLogV2.executingPromptRequest,
47068
47098
  signal
@@ -47150,7 +47180,17 @@ function createDaemonCommandHandler({
47150
47180
  }
47151
47181
  if (kind === SESSION_PREPARE_KIND) {
47152
47182
  const command2 = message;
47153
- void executeSessionPrepare(publisher, socket, command2, config2, directories, audit, sessions, signal);
47183
+ void executeSessionPrepare(
47184
+ publisher,
47185
+ socket,
47186
+ command2,
47187
+ config2,
47188
+ directories,
47189
+ audit,
47190
+ sessions,
47191
+ diagnostics,
47192
+ signal
47193
+ );
47154
47194
  return;
47155
47195
  }
47156
47196
  if (kind === SESSION_CONFIGURE_KIND) {