@moxt-ai/mobius 0.0.100 → 0.0.101
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 +52 -26
- package/dist/cli.js.map +2 -2
- package/dist/index.js +51 -25
- package/dist/index.js.map +2 -2
- package/dist/run-daemon.d.ts.map +1 -1
- package/dist/run-daemon.js +52 -25
- package/dist/run-daemon.js.map +1 -1
- package/dist/runtime.js +51 -25
- package/dist/runtime.js.map +2 -2
- package/package.json +1 -1
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.
|
|
3384
|
+
version: "0.0.101",
|
|
3385
3385
|
description: "Mobius CLI for pairing and running local AI agent services.",
|
|
3386
3386
|
type: "module",
|
|
3387
3387
|
bin: {
|
|
@@ -40411,7 +40411,24 @@ async function runRelayConnection(config2, directories, audit, sessions, install
|
|
|
40411
40411
|
const existing = [...agentSettingsDiscoveries.values()].find(
|
|
40412
40412
|
(request) => request.agentId === command2.agentId && !request.controller.signal.aborted
|
|
40413
40413
|
);
|
|
40414
|
-
if (agentSettingsDiscoveries.
|
|
40414
|
+
if ([...agentSettingsDiscoveries.values()].some(
|
|
40415
|
+
(request) => request.requestIds.has(command2.requestId)
|
|
40416
|
+
)) {
|
|
40417
|
+
if (socket.readyState === WebSocket5.OPEN) {
|
|
40418
|
+
send(socket, {
|
|
40419
|
+
code: "agent_settings_discovery_busy",
|
|
40420
|
+
kind: AGENT_SETTINGS_DISCOVERY_FAILED_KIND,
|
|
40421
|
+
message: "This settings discovery request is already running",
|
|
40422
|
+
requestId: command2.requestId
|
|
40423
|
+
});
|
|
40424
|
+
}
|
|
40425
|
+
return;
|
|
40426
|
+
}
|
|
40427
|
+
if (existing !== void 0 && existing.model === command2.model && existing.requestIds.size < 16) {
|
|
40428
|
+
existing.requestIds.add(command2.requestId);
|
|
40429
|
+
return;
|
|
40430
|
+
}
|
|
40431
|
+
if (existing !== void 0) {
|
|
40415
40432
|
if (socket.readyState === WebSocket5.OPEN) {
|
|
40416
40433
|
send(socket, {
|
|
40417
40434
|
code: "agent_settings_discovery_busy",
|
|
@@ -40434,6 +40451,7 @@ async function runRelayConnection(config2, directories, audit, sessions, install
|
|
|
40434
40451
|
return;
|
|
40435
40452
|
}
|
|
40436
40453
|
const controller = new AbortController();
|
|
40454
|
+
const requestIds = /* @__PURE__ */ new Set([command2.requestId]);
|
|
40437
40455
|
const operationSignal = AbortSignal.any([connectionController.signal, controller.signal]);
|
|
40438
40456
|
const timeout = timer.schedule(
|
|
40439
40457
|
() => controller.abort(
|
|
@@ -40472,17 +40490,19 @@ async function runRelayConnection(config2, directories, audit, sessions, install
|
|
|
40472
40490
|
`
|
|
40473
40491
|
);
|
|
40474
40492
|
}
|
|
40475
|
-
|
|
40476
|
-
|
|
40477
|
-
|
|
40478
|
-
|
|
40479
|
-
|
|
40480
|
-
|
|
40481
|
-
|
|
40482
|
-
|
|
40483
|
-
|
|
40484
|
-
|
|
40485
|
-
|
|
40493
|
+
for (const requestId of requestIds) {
|
|
40494
|
+
audit.record({
|
|
40495
|
+
commandId: requestId,
|
|
40496
|
+
details: {
|
|
40497
|
+
agentId: command2.agentId,
|
|
40498
|
+
unsupportedModelCount: result.unsupportedModels.length.toString()
|
|
40499
|
+
},
|
|
40500
|
+
event: "agent_settings_discovered",
|
|
40501
|
+
sessionId: `agent-settings:${command2.agentId}`
|
|
40502
|
+
});
|
|
40503
|
+
if (socket.readyState === WebSocket5.OPEN) {
|
|
40504
|
+
send(socket, { ...result.event, requestId });
|
|
40505
|
+
}
|
|
40486
40506
|
}
|
|
40487
40507
|
} catch (error62) {
|
|
40488
40508
|
const failure2 = operationSignal.aborted ? controller.signal.reason ?? new AcpExecutionError(
|
|
@@ -40491,12 +40511,14 @@ async function runRelayConnection(config2, directories, audit, sessions, install
|
|
|
40491
40511
|
"agent_settings_discovery_cancelled"
|
|
40492
40512
|
) : error62;
|
|
40493
40513
|
const details = agentSettingsFailureDetails(command2.agentId, failure2);
|
|
40494
|
-
|
|
40495
|
-
|
|
40496
|
-
|
|
40497
|
-
|
|
40498
|
-
|
|
40499
|
-
|
|
40514
|
+
for (const requestId of requestIds) {
|
|
40515
|
+
audit.record({
|
|
40516
|
+
commandId: requestId,
|
|
40517
|
+
details,
|
|
40518
|
+
event: "agent_settings_discovery_failed",
|
|
40519
|
+
sessionId: `agent-settings:${command2.agentId}`
|
|
40520
|
+
});
|
|
40521
|
+
}
|
|
40500
40522
|
diagnostics.daemonDiagnostic(
|
|
40501
40523
|
"agent_settings_discovery_failed",
|
|
40502
40524
|
command2.requestId,
|
|
@@ -40510,12 +40532,14 @@ async function runRelayConnection(config2, directories, audit, sessions, install
|
|
|
40510
40532
|
);
|
|
40511
40533
|
}
|
|
40512
40534
|
if (socket.readyState === WebSocket5.OPEN) {
|
|
40513
|
-
|
|
40514
|
-
|
|
40515
|
-
|
|
40516
|
-
|
|
40517
|
-
|
|
40518
|
-
|
|
40535
|
+
for (const requestId of requestIds) {
|
|
40536
|
+
send(socket, {
|
|
40537
|
+
code: operationErrorCode(failure2),
|
|
40538
|
+
kind: AGENT_SETTINGS_DISCOVERY_FAILED_KIND,
|
|
40539
|
+
message: operationErrorMessage(failure2),
|
|
40540
|
+
requestId
|
|
40541
|
+
});
|
|
40542
|
+
}
|
|
40519
40543
|
}
|
|
40520
40544
|
} finally {
|
|
40521
40545
|
timeout.cancel();
|
|
@@ -40524,6 +40548,8 @@ async function runRelayConnection(config2, directories, audit, sessions, install
|
|
|
40524
40548
|
})();
|
|
40525
40549
|
agentSettingsDiscoveries.set(command2.requestId, {
|
|
40526
40550
|
agentId: command2.agentId,
|
|
40551
|
+
model: command2.model,
|
|
40552
|
+
requestIds,
|
|
40527
40553
|
completion,
|
|
40528
40554
|
controller
|
|
40529
40555
|
});
|
|
@@ -40607,7 +40633,7 @@ async function runRelayConnection(config2, directories, audit, sessions, install
|
|
|
40607
40633
|
const previous = [...nativeRequests.values()].filter(
|
|
40608
40634
|
(request) => request.agentId === command2.agentId
|
|
40609
40635
|
);
|
|
40610
|
-
if (nativeRequests.has(command2.requestId) || nativeRequests.size >= 4 || previous.some((request) => !request.controller.signal.aborted)) {
|
|
40636
|
+
if (nativeRequests.has(command2.requestId) || nativeRequests.size >= 4 || command2.action !== "linked-history" && previous.some((request) => !request.controller.signal.aborted)) {
|
|
40611
40637
|
reportOperationFailure(
|
|
40612
40638
|
socket,
|
|
40613
40639
|
command2.requestId,
|