@moxt-ai/mobius 0.0.288 → 0.0.289
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 +24699 -24692
- package/dist/cli.js.map +4 -4
- package/dist/runtime.js +9 -4
- 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.289",
|
|
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",
|