@moxt-ai/mobius 0.0.158 → 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/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.158",
3384
+ version: "0.0.160",
3385
3385
  description: "Mobius CLI for pairing and running local AI agent services.",
3386
3386
  type: "module",
3387
3387
  bin: {
@@ -46728,7 +46728,7 @@ async function executeWorkspaceList(socket, command, directories, audit, signal)
46728
46728
  reportOperationFailure(socket, command.requestId, "", error62);
46729
46729
  }
46730
46730
  }
46731
- async function executeSessionPrepare(publisher, socket, command, config2, directories, audit, sessions, signal) {
46731
+ async function executeSessionPrepare(publisher, socket, command, config2, directories, audit, sessions, diagnostics, signal) {
46732
46732
  const metrics = new AccumulatingOperationMetrics();
46733
46733
  try {
46734
46734
  const readyEvent = await metrics.measure("prepare-total", async () => {
@@ -46813,6 +46813,16 @@ async function executeSessionPrepare(publisher, socket, command, config2, direct
46813
46813
  runtimeTimings: metrics.snapshot()
46814
46814
  });
46815
46815
  } catch (error62) {
46816
+ diagnostics.daemonDiagnostic(
46817
+ "session_prepare_failed",
46818
+ command.requestId,
46819
+ {
46820
+ agentId: command.agentId,
46821
+ code: operationErrorCode(error62),
46822
+ sessionId: command.sessionId
46823
+ },
46824
+ error62
46825
+ );
46816
46826
  audit.record({
46817
46827
  commandId: command.requestId,
46818
46828
  details: {
@@ -47150,7 +47160,17 @@ function createDaemonCommandHandler({
47150
47160
  }
47151
47161
  if (kind === SESSION_PREPARE_KIND) {
47152
47162
  const command2 = message;
47153
- void executeSessionPrepare(publisher, socket, command2, config2, directories, audit, sessions, signal);
47163
+ void executeSessionPrepare(
47164
+ publisher,
47165
+ socket,
47166
+ command2,
47167
+ config2,
47168
+ directories,
47169
+ audit,
47170
+ sessions,
47171
+ diagnostics,
47172
+ signal
47173
+ );
47154
47174
  return;
47155
47175
  }
47156
47176
  if (kind === SESSION_CONFIGURE_KIND) {
@@ -47911,21 +47931,9 @@ var DaemonSessionEventLogV2 = class {
47911
47931
  payload: { commandId: command.commandId, content, kind: "prompt.requested" },
47912
47932
  type: "lifecycle-metadata"
47913
47933
  });
47914
- let eventTail = { event, previous: null };
47915
- for (const block of content) {
47916
- const userMessageEvent = this.#append(command.sessionId, {
47917
- payload: {
47918
- content: block,
47919
- messageId: command.commandId,
47920
- sessionUpdate: "user_message_chunk"
47921
- },
47922
- type: "acp"
47923
- });
47924
- eventTail = { event: userMessageEvent, previous: eventTail };
47925
- }
47926
47934
  this.#requests.set(command.commandId, {
47927
47935
  commandId: command.commandId,
47928
- eventTail,
47936
+ eventTail: { event, previous: null },
47929
47937
  kind: "requested",
47930
47938
  sessionId: command.sessionId
47931
47939
  });