@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 +24 -16
- package/dist/cli.js.map +2 -2
- package/dist/daemon-command-handler.d.ts.map +1 -1
- package/dist/daemon-command-handler.js +1 -1
- package/dist/daemon-command-handler.js.map +1 -1
- package/dist/daemon-session-commands.d.ts +2 -1
- package/dist/daemon-session-commands.d.ts.map +1 -1
- package/dist/daemon-session-commands.js +6 -1
- package/dist/daemon-session-commands.js.map +1 -1
- package/dist/index.js +23 -15
- package/dist/index.js.map +2 -2
- package/dist/runtime.js +23 -15
- package/dist/runtime.js.map +2 -2
- package/dist/session-event-log-v2.d.ts.map +1 -1
- package/dist/session-event-log-v2.js +1 -13
- package/dist/session-event-log-v2.js.map +1 -1
- package/package.json +1 -1
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(
|
|
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) {
|
|
@@ -43550,21 +43570,9 @@ var DaemonSessionEventLogV2 = class {
|
|
|
43550
43570
|
payload: { commandId: command.commandId, content, kind: "prompt.requested" },
|
|
43551
43571
|
type: "lifecycle-metadata"
|
|
43552
43572
|
});
|
|
43553
|
-
let eventTail = { event, previous: null };
|
|
43554
|
-
for (const block of content) {
|
|
43555
|
-
const userMessageEvent = this.#append(command.sessionId, {
|
|
43556
|
-
payload: {
|
|
43557
|
-
content: block,
|
|
43558
|
-
messageId: command.commandId,
|
|
43559
|
-
sessionUpdate: "user_message_chunk"
|
|
43560
|
-
},
|
|
43561
|
-
type: "acp"
|
|
43562
|
-
});
|
|
43563
|
-
eventTail = { event: userMessageEvent, previous: eventTail };
|
|
43564
|
-
}
|
|
43565
43573
|
this.#requests.set(command.commandId, {
|
|
43566
43574
|
commandId: command.commandId,
|
|
43567
|
-
eventTail,
|
|
43575
|
+
eventTail: { event, previous: null },
|
|
43568
43576
|
kind: "requested",
|
|
43569
43577
|
sessionId: command.sessionId
|
|
43570
43578
|
});
|