@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 +44 -4
- package/dist/cli.js.map +2 -2
- package/dist/daemon-command-handler.d.ts.map +1 -1
- package/dist/daemon-command-handler.js +2 -2
- package/dist/daemon-command-handler.js.map +1 -1
- package/dist/daemon-history-commands.d.ts +2 -1
- package/dist/daemon-history-commands.d.ts.map +1 -1
- package/dist/daemon-history-commands.js +15 -1
- package/dist/daemon-history-commands.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 +43 -3
- package/dist/index.js.map +2 -2
- package/dist/runtime.js +43 -3
- package/dist/runtime.js.map +2 -2
- package/package.json +1 -1
package/dist/runtime.js
CHANGED
|
@@ -41765,7 +41765,7 @@ function replayEvent(sessionId, position, update) {
|
|
|
41765
41765
|
type: "acp"
|
|
41766
41766
|
};
|
|
41767
41767
|
}
|
|
41768
|
-
async function executeSessionLiveHistoryV2PageLoad(socket, command, config2, directories, audit, sessions, executingPromptRequest, signal) {
|
|
41768
|
+
async function executeSessionLiveHistoryV2PageLoad(socket, command, config2, directories, audit, diagnostics, sessions, executingPromptRequest, signal) {
|
|
41769
41769
|
try {
|
|
41770
41770
|
const resolved = await resolveSessionDirectories(
|
|
41771
41771
|
directories,
|
|
@@ -41812,6 +41812,25 @@ async function executeSessionLiveHistoryV2PageLoad(socket, command, config2, dir
|
|
|
41812
41812
|
});
|
|
41813
41813
|
} catch (error62) {
|
|
41814
41814
|
if (!signal.aborted) {
|
|
41815
|
+
diagnostics.daemonDiagnostic(
|
|
41816
|
+
"session_history_v2_load_failed",
|
|
41817
|
+
command.requestId,
|
|
41818
|
+
{
|
|
41819
|
+
agentId: command.agentId,
|
|
41820
|
+
code: operationErrorCode(error62),
|
|
41821
|
+
sessionId: command.sessionId
|
|
41822
|
+
},
|
|
41823
|
+
error62
|
|
41824
|
+
);
|
|
41825
|
+
audit.record({
|
|
41826
|
+
commandId: command.requestId,
|
|
41827
|
+
details: {
|
|
41828
|
+
agentId: command.agentId,
|
|
41829
|
+
code: operationErrorCode(error62)
|
|
41830
|
+
},
|
|
41831
|
+
event: "session_history_v2_load_failed",
|
|
41832
|
+
sessionId: command.sessionId
|
|
41833
|
+
});
|
|
41815
41834
|
reportOperationFailure(socket, command.requestId, command.sessionId, error62);
|
|
41816
41835
|
}
|
|
41817
41836
|
}
|
|
@@ -42367,7 +42386,7 @@ async function executeWorkspaceList(socket, command, directories, audit, signal)
|
|
|
42367
42386
|
reportOperationFailure(socket, command.requestId, "", error62);
|
|
42368
42387
|
}
|
|
42369
42388
|
}
|
|
42370
|
-
async function executeSessionPrepare(publisher, socket, command, config2, directories, audit, sessions, signal) {
|
|
42389
|
+
async function executeSessionPrepare(publisher, socket, command, config2, directories, audit, sessions, diagnostics, signal) {
|
|
42371
42390
|
const metrics = new AccumulatingOperationMetrics();
|
|
42372
42391
|
try {
|
|
42373
42392
|
const readyEvent = await metrics.measure("prepare-total", async () => {
|
|
@@ -42452,6 +42471,16 @@ async function executeSessionPrepare(publisher, socket, command, config2, direct
|
|
|
42452
42471
|
runtimeTimings: metrics.snapshot()
|
|
42453
42472
|
});
|
|
42454
42473
|
} catch (error62) {
|
|
42474
|
+
diagnostics.daemonDiagnostic(
|
|
42475
|
+
"session_prepare_failed",
|
|
42476
|
+
command.requestId,
|
|
42477
|
+
{
|
|
42478
|
+
agentId: command.agentId,
|
|
42479
|
+
code: operationErrorCode(error62),
|
|
42480
|
+
sessionId: command.sessionId
|
|
42481
|
+
},
|
|
42482
|
+
error62
|
|
42483
|
+
);
|
|
42455
42484
|
audit.record({
|
|
42456
42485
|
commandId: command.requestId,
|
|
42457
42486
|
details: {
|
|
@@ -42702,6 +42731,7 @@ function createDaemonCommandHandler({
|
|
|
42702
42731
|
config2,
|
|
42703
42732
|
directories,
|
|
42704
42733
|
audit,
|
|
42734
|
+
diagnostics,
|
|
42705
42735
|
sessions,
|
|
42706
42736
|
eventLogV2.executingPromptRequest,
|
|
42707
42737
|
signal
|
|
@@ -42789,7 +42819,17 @@ function createDaemonCommandHandler({
|
|
|
42789
42819
|
}
|
|
42790
42820
|
if (kind === SESSION_PREPARE_KIND) {
|
|
42791
42821
|
const command2 = message;
|
|
42792
|
-
void executeSessionPrepare(
|
|
42822
|
+
void executeSessionPrepare(
|
|
42823
|
+
publisher,
|
|
42824
|
+
socket,
|
|
42825
|
+
command2,
|
|
42826
|
+
config2,
|
|
42827
|
+
directories,
|
|
42828
|
+
audit,
|
|
42829
|
+
sessions,
|
|
42830
|
+
diagnostics,
|
|
42831
|
+
signal
|
|
42832
|
+
);
|
|
42793
42833
|
return;
|
|
42794
42834
|
}
|
|
42795
42835
|
if (kind === SESSION_CONFIGURE_KIND) {
|