@moxt-ai/mobius 0.0.288 → 0.0.290
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/acp/harness/codex/agent.js +1 -1
- package/dist/acp/harness/codex/agent.js.map +1 -1
- package/dist/acp/harness/codex/borrowed-agent.d.ts.map +1 -1
- package/dist/acp/harness/codex/borrowed-agent.js +1 -3
- package/dist/acp/harness/codex/borrowed-agent.js.map +1 -1
- package/dist/acp/harness/codex/owned-agent.d.ts +1 -1
- package/dist/acp/harness/codex/owned-agent.d.ts.map +1 -1
- package/dist/acp/harness/codex/owned-agent.js +8 -8
- package/dist/acp/harness/codex/owned-agent.js.map +1 -1
- package/dist/cli.js +24708 -24702
- package/dist/cli.js.map +4 -4
- package/dist/runtime.js +18 -14
- package/dist/runtime.js.map +3 -3
- package/package.json +1 -1
package/dist/runtime.js
CHANGED
|
@@ -22568,7 +22568,7 @@ import { fetch as fetch3 } from "undici";
|
|
|
22568
22568
|
// package.json
|
|
22569
22569
|
var package_default = {
|
|
22570
22570
|
name: "@moxt-ai/mobius",
|
|
22571
|
-
version: "0.0.
|
|
22571
|
+
version: "0.0.290",
|
|
22572
22572
|
description: "Mobius CLI for pairing and running local AI agent services.",
|
|
22573
22573
|
type: "module",
|
|
22574
22574
|
bin: {
|
|
@@ -60054,6 +60054,10 @@ function permissionOptionOrder(option) {
|
|
|
60054
60054
|
|
|
60055
60055
|
// src/acp/harness/claude/upstream/dist/tools.js
|
|
60056
60056
|
import path3 from "node:path";
|
|
60057
|
+
var fileWritePreviewInputSchema = external_exports.object({
|
|
60058
|
+
file_path: external_exports.string().optional(),
|
|
60059
|
+
content: external_exports.string().optional()
|
|
60060
|
+
});
|
|
60057
60061
|
function toDisplayPath(filePath, cwd) {
|
|
60058
60062
|
if (!cwd) {
|
|
60059
60063
|
return filePath;
|
|
@@ -60117,9 +60121,10 @@ function toolInfoFromToolUse(toolUse, supportsTerminalOutput = false, cwd) {
|
|
|
60117
60121
|
};
|
|
60118
60122
|
}
|
|
60119
60123
|
case "Write": {
|
|
60120
|
-
const
|
|
60124
|
+
const parsed = fileWritePreviewInputSchema.safeParse(toolUse.input);
|
|
60125
|
+
const input2 = parsed.success ? parsed.data : void 0;
|
|
60121
60126
|
let content = [];
|
|
60122
|
-
if (input2?.file_path) {
|
|
60127
|
+
if (input2?.file_path && typeof input2.content === "string") {
|
|
60123
60128
|
content = [
|
|
60124
60129
|
{
|
|
60125
60130
|
type: "diff",
|
|
@@ -60128,7 +60133,7 @@ function toolInfoFromToolUse(toolUse, supportsTerminalOutput = false, cwd) {
|
|
|
60128
60133
|
newText: input2.content
|
|
60129
60134
|
}
|
|
60130
60135
|
];
|
|
60131
|
-
} else if (input2?.content) {
|
|
60136
|
+
} else if (typeof input2?.content === "string") {
|
|
60132
60137
|
content = [
|
|
60133
60138
|
{
|
|
60134
60139
|
type: "content",
|
|
@@ -67413,7 +67418,7 @@ var CodexBorrowedAcpAgent = class {
|
|
|
67413
67418
|
const text2 = previous !== void 0 && value.startsWith(previous) ? value.slice(previous.length) : value;
|
|
67414
67419
|
if (text2.length > 0) {
|
|
67415
67420
|
await this.#emit({
|
|
67416
|
-
sessionUpdate: item.type === "agentMessage"
|
|
67421
|
+
sessionUpdate: item.type === "agentMessage" ? "agent_message_chunk" : "agent_thought_chunk",
|
|
67417
67422
|
messageId: key,
|
|
67418
67423
|
content: { type: "text", text: text2 }
|
|
67419
67424
|
});
|
|
@@ -67641,11 +67646,11 @@ function steeringPrompt(prompt) {
|
|
|
67641
67646
|
}
|
|
67642
67647
|
return blocks;
|
|
67643
67648
|
}
|
|
67644
|
-
function agentMessageUpdate(messageId, text2
|
|
67649
|
+
function agentMessageUpdate(messageId, text2) {
|
|
67645
67650
|
return {
|
|
67646
67651
|
content: { text: text2, type: "text" },
|
|
67647
67652
|
messageId,
|
|
67648
|
-
sessionUpdate:
|
|
67653
|
+
sessionUpdate: "agent_message_chunk"
|
|
67649
67654
|
};
|
|
67650
67655
|
}
|
|
67651
67656
|
function userInputSchema(questions) {
|
|
@@ -67894,10 +67899,9 @@ var CodexOwnedAcpAgent = class {
|
|
|
67894
67899
|
if (method === "item/agentMessage/delta") {
|
|
67895
67900
|
const decoded = reasoningTextDeltaParamsSchema.safeParse(params);
|
|
67896
67901
|
if (decoded.success && decoded.data.threadId === this.#context.threadId() && this.#turn !== null && decoded.data.turnId === this.#turn.turn.id && decoded.data.delta.length > 0) {
|
|
67897
|
-
|
|
67898
|
-
this.#agentMessages.set(decoded.data.itemId, { phase, kind: "streaming" });
|
|
67902
|
+
this.#agentMessages.set(decoded.data.itemId, "streaming");
|
|
67899
67903
|
await this.#enqueue(async () => {
|
|
67900
|
-
await this.#context.emit(agentMessageUpdate(decoded.data.itemId, decoded.data.delta
|
|
67904
|
+
await this.#context.emit(agentMessageUpdate(decoded.data.itemId, decoded.data.delta));
|
|
67901
67905
|
});
|
|
67902
67906
|
}
|
|
67903
67907
|
return;
|
|
@@ -67911,16 +67915,16 @@ var CodexOwnedAcpAgent = class {
|
|
|
67911
67915
|
}
|
|
67912
67916
|
if (item.type === "agentMessage") {
|
|
67913
67917
|
if (method === "item/started") {
|
|
67914
|
-
this.#agentMessages.set(item.id,
|
|
67918
|
+
this.#agentMessages.set(item.id, "started");
|
|
67915
67919
|
return;
|
|
67916
67920
|
}
|
|
67917
67921
|
const message = this.#agentMessages.get(item.id);
|
|
67918
67922
|
this.#agentMessages.delete(item.id);
|
|
67919
|
-
if (message
|
|
67923
|
+
if (message === "streaming") {
|
|
67920
67924
|
return;
|
|
67921
67925
|
}
|
|
67922
67926
|
await this.#enqueue(async () => {
|
|
67923
|
-
await this.#context.emit(agentMessageUpdate(item.id, item.text
|
|
67927
|
+
await this.#context.emit(agentMessageUpdate(item.id, item.text));
|
|
67924
67928
|
});
|
|
67925
67929
|
return;
|
|
67926
67930
|
}
|
|
@@ -68917,7 +68921,7 @@ var CodexAcpAgent = class {
|
|
|
68917
68921
|
continue;
|
|
68918
68922
|
}
|
|
68919
68923
|
if (item.type === "agentMessage") {
|
|
68920
|
-
await this.#emit(agentMessageUpdate(item.id, item.text
|
|
68924
|
+
await this.#emit(agentMessageUpdate(item.id, item.text));
|
|
68921
68925
|
continue;
|
|
68922
68926
|
}
|
|
68923
68927
|
if (item.type === "contextCompaction") {
|