@moxt-ai/mobius 0.0.385 → 0.0.387
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/{chunk-OXXJU5VO.js → chunk-A62FEGIN.js} +20 -28
- package/dist/{chunk-OXXJU5VO.js.map → chunk-A62FEGIN.js.map} +3 -3
- package/dist/{chunk-VNT3WUWZ.js → chunk-S7PKNDIS.js} +2 -2
- package/dist/{chunk-VNT3WUWZ.js.map → chunk-S7PKNDIS.js.map} +1 -1
- package/dist/cli/handler/daemon/index.d.ts.map +1 -1
- package/dist/cli/handler/daemon/index.js +9 -4
- package/dist/cli/handler/daemon/index.js.map +1 -1
- package/dist/cli/handler/daemon/quit.d.ts.map +1 -1
- package/dist/cli/handler/daemon/quit.js +5 -4
- package/dist/cli/handler/daemon/quit.js.map +1 -1
- package/dist/cli/handler/daemon/release.js +1 -1
- package/dist/cli/handler/daemon/start.d.ts.map +1 -1
- package/dist/cli/handler/daemon/start.js +3 -3
- package/dist/cli/handler/daemon/start.js.map +1 -1
- package/dist/cli/handler/daemon/upgrade.d.ts.map +1 -1
- package/dist/cli/handler/daemon/upgrade.js +8 -24
- package/dist/cli/handler/daemon/upgrade.js.map +1 -1
- package/dist/cli/handler/pair/pair.js +3 -3
- package/dist/cli/handler/pair/pair.js.map +1 -1
- package/dist/cli/handler/pair/remove.js +1 -1
- package/dist/cli/handler/pair/stop.js +1 -1
- package/dist/cli/handler/version/index.d.ts.map +1 -1
- package/dist/cli/handler/version/index.js +6 -2
- package/dist/cli/handler/version/index.js.map +1 -1
- package/dist/{cli-WDPLOVF3.js → cli-43LPJ5ID.js} +412 -1143
- package/dist/cli-43LPJ5ID.js.map +7 -0
- package/dist/cli.js +1998 -6
- package/dist/cli.js.map +4 -4
- package/dist/daemon/control/protocol.d.ts +1 -133
- package/dist/daemon/control/protocol.d.ts.map +1 -1
- package/dist/daemon/control/protocol.js +4 -63
- package/dist/daemon/control/protocol.js.map +1 -1
- package/dist/daemon/lifecycle/daemon-client.d.ts +8 -0
- package/dist/daemon/lifecycle/daemon-client.d.ts.map +1 -0
- package/dist/daemon/lifecycle/daemon-client.js +154 -0
- package/dist/daemon/lifecycle/daemon-client.js.map +1 -0
- package/dist/daemon/lifecycle/{worker.d.ts → daemon.d.ts} +2 -2
- package/dist/daemon/lifecycle/daemon.d.ts.map +1 -0
- package/dist/daemon/lifecycle/daemon.js +266 -0
- package/dist/daemon/lifecycle/daemon.js.map +1 -0
- package/dist/daemon/lifecycle/unhandled-rejection.d.ts +1 -2
- package/dist/daemon/lifecycle/unhandled-rejection.d.ts.map +1 -1
- package/dist/daemon/lifecycle/unhandled-rejection.js +4 -7
- package/dist/daemon/lifecycle/unhandled-rejection.js.map +1 -1
- package/dist/daemon/upgrades/data.d.ts +0 -1
- package/dist/daemon/upgrades/data.d.ts.map +1 -1
- package/dist/daemon/upgrades/data.js +0 -5
- package/dist/daemon/upgrades/data.js.map +1 -1
- package/dist/engine/runtime/relay/session-event-publisher.d.ts.map +1 -1
- package/dist/engine/runtime/relay/session-event-publisher.js +6 -5
- package/dist/engine/runtime/relay/session-event-publisher.js.map +1 -1
- package/dist/engine/util/process/platform/windows.d.ts.map +1 -1
- package/dist/engine/util/process/platform/windows.js +7 -4
- package/dist/engine/util/process/platform/windows.js.map +1 -1
- package/dist/engine.js +2 -2
- package/dist/storage/daemon/daemon-lock.d.ts +9 -0
- package/dist/storage/daemon/daemon-lock.d.ts.map +1 -0
- package/dist/storage/daemon/{manager-lock.js → daemon-lock.js} +22 -7
- package/dist/storage/daemon/daemon-lock.js.map +1 -0
- package/dist/storage/state-root-layout.d.ts +0 -2
- package/dist/storage/state-root-layout.d.ts.map +1 -1
- package/dist/storage/state-root-layout.js +0 -2
- package/dist/storage/state-root-layout.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-NEAZO2JN.js +0 -2002
- package/dist/chunk-NEAZO2JN.js.map +0 -7
- package/dist/cli/handler/daemon/manager.d.ts +0 -4
- package/dist/cli/handler/daemon/manager.d.ts.map +0 -1
- package/dist/cli/handler/daemon/manager.js +0 -9
- package/dist/cli/handler/daemon/manager.js.map +0 -1
- package/dist/cli/handler/daemon/worker.d.ts +0 -4
- package/dist/cli/handler/daemon/worker.d.ts.map +0 -1
- package/dist/cli/handler/daemon/worker.js +0 -7
- package/dist/cli/handler/daemon/worker.js.map +0 -1
- package/dist/cli-WDPLOVF3.js.map +0 -7
- package/dist/daemon/control/switch-status.d.ts +0 -4
- package/dist/daemon/control/switch-status.d.ts.map +0 -1
- package/dist/daemon/control/switch-status.js +0 -10
- package/dist/daemon/control/switch-status.js.map +0 -1
- package/dist/daemon/lifecycle/manager-client.d.ts +0 -8
- package/dist/daemon/lifecycle/manager-client.d.ts.map +0 -1
- package/dist/daemon/lifecycle/manager-client.js +0 -130
- package/dist/daemon/lifecycle/manager-client.js.map +0 -1
- package/dist/daemon/lifecycle/manager.d.ts +0 -3
- package/dist/daemon/lifecycle/manager.d.ts.map +0 -1
- package/dist/daemon/lifecycle/manager.js +0 -215
- package/dist/daemon/lifecycle/manager.js.map +0 -1
- package/dist/daemon/lifecycle/worker-lifecycle-log.d.ts +0 -14
- package/dist/daemon/lifecycle/worker-lifecycle-log.d.ts.map +0 -1
- package/dist/daemon/lifecycle/worker-lifecycle-log.js +0 -63
- package/dist/daemon/lifecycle/worker-lifecycle-log.js.map +0 -1
- package/dist/daemon/lifecycle/worker-process.d.ts +0 -26
- package/dist/daemon/lifecycle/worker-process.d.ts.map +0 -1
- package/dist/daemon/lifecycle/worker-process.js +0 -145
- package/dist/daemon/lifecycle/worker-process.js.map +0 -1
- package/dist/daemon/lifecycle/worker.d.ts.map +0 -1
- package/dist/daemon/lifecycle/worker.js +0 -213
- package/dist/daemon/lifecycle/worker.js.map +0 -1
- package/dist/daemon/upgrades/package.d.ts +0 -9
- package/dist/daemon/upgrades/package.d.ts.map +0 -1
- package/dist/daemon/upgrades/package.js +0 -157
- package/dist/daemon/upgrades/package.js.map +0 -1
- package/dist/daemon/upgrades/upgrade.d.ts +0 -21
- package/dist/daemon/upgrades/upgrade.d.ts.map +0 -1
- package/dist/daemon/upgrades/upgrade.js +0 -242
- package/dist/daemon/upgrades/upgrade.js.map +0 -1
- package/dist/storage/daemon/manager-lock.d.ts +0 -9
- package/dist/storage/daemon/manager-lock.d.ts.map +0 -1
- package/dist/storage/daemon/manager-lock.js.map +0 -1
- package/dist/storage/daemon/release-files.d.ts +0 -9
- package/dist/storage/daemon/release-files.d.ts.map +0 -1
- package/dist/storage/daemon/release-files.js +0 -14
- package/dist/storage/daemon/release-files.js.map +0 -1
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__export,
|
|
4
4
|
__using,
|
|
5
5
|
package_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-S7PKNDIS.js";
|
|
7
7
|
|
|
8
8
|
// src/engine/runtime/relay/runtime-revocation.ts
|
|
9
9
|
var runtimeRevocationCloseCode = 1008;
|
|
@@ -64749,6 +64749,10 @@ ${message.api_refusal_explanation}` : "";
|
|
|
64749
64749
|
failActive(RequestError5.authRequired(errorKindData(message.error)));
|
|
64750
64750
|
break;
|
|
64751
64751
|
}
|
|
64752
|
+
if (message.type === "assistant" && message.parent_tool_use_id === null && message.error === "model_not_found") {
|
|
64753
|
+
failActive(RequestError5.internalError(errorKindData(message.error), "The selected model is unavailable"));
|
|
64754
|
+
break;
|
|
64755
|
+
}
|
|
64752
64756
|
let content;
|
|
64753
64757
|
if (message.type === "assistant" && message.parent_tool_use_id === null) {
|
|
64754
64758
|
const blocks = message.message.content;
|
|
@@ -67696,8 +67700,11 @@ async function resolveExecutableTarget(path7) {
|
|
|
67696
67700
|
}
|
|
67697
67701
|
if (extname(resolvedPath).toLowerCase() === ".cmd") {
|
|
67698
67702
|
const shim = await readFile5(resolvedPath, "utf8");
|
|
67699
|
-
|
|
67700
|
-
|
|
67703
|
+
for (const tool of ["npm", "npx"]) {
|
|
67704
|
+
const variable = `${tool.toUpperCase()}_CLI_JS`;
|
|
67705
|
+
if (shim.includes(`SET "${variable}=%~dp0\\node_modules\\npm\\bin\\${tool}-cli.js"`) && shim.includes(`"%NODE_EXE%" "%${variable}%" %*`)) {
|
|
67706
|
+
return await realpath6(resolve8(dirname6(resolvedPath), `node_modules/npm/bin/${tool}-cli.js`));
|
|
67707
|
+
}
|
|
67701
67708
|
}
|
|
67702
67709
|
const script = /"%_prog%"\s+"%dp0%[\\/]([^"\r\n]+\.(?:js|mjs|cjs))"\s+%\*/iu.exec(shim)?.[1];
|
|
67703
67710
|
if (script !== void 0 && shim.includes("SET dp0=%~dp0")) {
|
|
@@ -75442,7 +75449,6 @@ var LocalAgentInventory = class {
|
|
|
75442
75449
|
|
|
75443
75450
|
// src/engine/util/process/local-executable.ts
|
|
75444
75451
|
import { realpathSync as realpathSync4, statSync as statSync4 } from "node:fs";
|
|
75445
|
-
import { realpath as realpath7, stat as stat6 } from "node:fs/promises";
|
|
75446
75452
|
function readExecutableIdentity(path7) {
|
|
75447
75453
|
const resolvedPath = realpathSync4(path7);
|
|
75448
75454
|
const metadata = statSync4(resolvedPath);
|
|
@@ -75455,14 +75461,6 @@ function readExecutableIdentity(path7) {
|
|
|
75455
75461
|
metadata.ctimeMs
|
|
75456
75462
|
);
|
|
75457
75463
|
}
|
|
75458
|
-
async function resolveLaunchFiles(entry, executable) {
|
|
75459
|
-
const resolvedEntry = await realpath7(entry);
|
|
75460
|
-
const resolvedExecutable = await realpath7(executable);
|
|
75461
|
-
if (!(await stat6(resolvedEntry)).isFile() || !(await stat6(resolvedExecutable)).isFile()) {
|
|
75462
|
-
return null;
|
|
75463
|
-
}
|
|
75464
|
-
return { entry: resolvedEntry, executable: resolvedExecutable };
|
|
75465
|
-
}
|
|
75466
75464
|
|
|
75467
75465
|
// src/engine/acp/protocol/session-capabilities.ts
|
|
75468
75466
|
function hasTrueChildField(value, childKey, fieldKey) {
|
|
@@ -89520,7 +89518,7 @@ import { pathToFileURL as pathToFileURL3 } from "node:url";
|
|
|
89520
89518
|
|
|
89521
89519
|
// src/engine/storage/files/scratch-directory.ts
|
|
89522
89520
|
import { randomUUID as randomUUID17 } from "node:crypto";
|
|
89523
|
-
import { lstat as lstat4, mkdir as mkdir5, readdir as readdir6, readFile as readFile7, realpath as
|
|
89521
|
+
import { lstat as lstat4, mkdir as mkdir5, readdir as readdir6, readFile as readFile7, realpath as realpath7, rename as rename4, rm as rm3, stat as stat6, utimes, writeFile as writeFile2 } from "node:fs/promises";
|
|
89524
89522
|
import { dirname as dirname11, join as join28 } from "node:path";
|
|
89525
89523
|
async function atomicWrite(path7, bytes, signal) {
|
|
89526
89524
|
const temporary = `${path7}.${randomUUID17()}.tmp`;
|
|
@@ -89550,7 +89548,7 @@ var ScratchDirectory = class {
|
|
|
89550
89548
|
if (path7 === this.#root) {
|
|
89551
89549
|
continue;
|
|
89552
89550
|
}
|
|
89553
|
-
const modified = await
|
|
89551
|
+
const modified = await stat6(path7).then(
|
|
89554
89552
|
(entry) => entry.mtimeMs,
|
|
89555
89553
|
() => Date.now()
|
|
89556
89554
|
);
|
|
@@ -89575,8 +89573,8 @@ var ScratchDirectory = class {
|
|
|
89575
89573
|
resolveFile = async (path7) => {
|
|
89576
89574
|
try {
|
|
89577
89575
|
const [resolvedDirectory, resolvedPath, file2] = await Promise.all([
|
|
89578
|
-
|
|
89579
|
-
|
|
89576
|
+
realpath7(dirname11(path7)),
|
|
89577
|
+
realpath7(path7),
|
|
89580
89578
|
lstat4(path7)
|
|
89581
89579
|
]);
|
|
89582
89580
|
return file2.isFile() && !file2.isSymbolicLink() && dirname11(resolvedPath) === resolvedDirectory ? resolvedPath : null;
|
|
@@ -93105,17 +93103,17 @@ var RuntimeSessionEventPublisher = class {
|
|
|
93105
93103
|
if (connection.kind !== "connected" || connection.socket !== socket || socket.readyState !== WebSocket9.OPEN) {
|
|
93106
93104
|
return;
|
|
93107
93105
|
}
|
|
93108
|
-
let
|
|
93106
|
+
let sent = 0;
|
|
93109
93107
|
for (const batch of this.#pending) {
|
|
93110
93108
|
const encoded = encodeDaemonToServiceMessage({ events: batch.events, kind: SESSION_EVENT_KIND });
|
|
93111
93109
|
if (socket.bufferedAmount + Buffer.byteLength(encoded, "utf8") > MAX_BUFFERED_BYTES) {
|
|
93112
93110
|
socket.close(LOCAL_BACKPRESSURE_CLOSE_CODE, "Live event transport overloaded");
|
|
93113
93111
|
break;
|
|
93114
93112
|
}
|
|
93115
|
-
attempted += 1;
|
|
93116
|
-
this.#pendingBytes -= batch.bytes;
|
|
93117
93113
|
try {
|
|
93118
93114
|
socket.send(encoded);
|
|
93115
|
+
sent += 1;
|
|
93116
|
+
this.#pendingBytes -= batch.bytes;
|
|
93119
93117
|
for (const answer of batch.firstAnswers) {
|
|
93120
93118
|
console.info(
|
|
93121
93119
|
JSON.stringify({
|
|
@@ -93131,10 +93129,11 @@ var RuntimeSessionEventPublisher = class {
|
|
|
93131
93129
|
}
|
|
93132
93130
|
} catch {
|
|
93133
93131
|
console.warn("Live Session output could not be sent", { code: "live_event_send_failed" });
|
|
93132
|
+
socket.close(LOCAL_BACKPRESSURE_CLOSE_CODE, "Live event handoff failed");
|
|
93134
93133
|
break;
|
|
93135
93134
|
}
|
|
93136
93135
|
}
|
|
93137
|
-
this.#pending.splice(0,
|
|
93136
|
+
this.#pending.splice(0, sent);
|
|
93138
93137
|
if (this.#pending.length === 0) {
|
|
93139
93138
|
this.#overflowReported = false;
|
|
93140
93139
|
}
|
|
@@ -93552,26 +93551,19 @@ export {
|
|
|
93552
93551
|
external_exports,
|
|
93553
93552
|
isNodeError,
|
|
93554
93553
|
installationPointerPath,
|
|
93555
|
-
decodeIdentifier,
|
|
93556
93554
|
decodeRuntimeUpgradeVersion,
|
|
93557
|
-
canonicalPath,
|
|
93558
93555
|
ensurePrivateDirectory,
|
|
93559
93556
|
platformSupportFor,
|
|
93560
93557
|
validateLocalPath,
|
|
93561
93558
|
RuntimeInstallationStoreError,
|
|
93562
93559
|
RuntimeInstallationStore,
|
|
93563
|
-
isRecord4 as isRecord,
|
|
93564
|
-
findExecutableOnPath,
|
|
93565
|
-
runBoundedProcess,
|
|
93566
93560
|
MissingAdapter,
|
|
93567
93561
|
UnsupportedAgentVersion,
|
|
93568
|
-
resolveLaunchFiles,
|
|
93569
93562
|
discoverLocalAgentInventory,
|
|
93570
93563
|
BoundedLineLog,
|
|
93571
93564
|
WORKER_LIFECYCLE_LOG_FILENAME,
|
|
93572
93565
|
unhandledRejectionLogFilename,
|
|
93573
93566
|
logDirectory,
|
|
93574
|
-
RuntimeDiagnosticLog,
|
|
93575
93567
|
RuntimeLocalContext,
|
|
93576
93568
|
PairingClientError,
|
|
93577
93569
|
parseRelayOrigin2 as parseRelayOrigin,
|
|
@@ -93595,4 +93587,4 @@ export {
|
|
|
93595
93587
|
* MIT Licensed
|
|
93596
93588
|
*)
|
|
93597
93589
|
*/
|
|
93598
|
-
//# sourceMappingURL=chunk-
|
|
93590
|
+
//# sourceMappingURL=chunk-A62FEGIN.js.map
|