Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

Packaging: ship pruned DSH runtime as extraResources; relative paths in progress

Marla744cb22c8d4a
diff --git a/package.json b/package.json
index 7738e6c..f831747 100644
--- a/package.json
+++ b/package.json
@@ -96,8 +96,14 @@
"to": "dsh",
"filter": [
"package.json",
- "plugins/**",
- "node_modules/**",
+ "plugins/**"
+ ]
+ },
+ {
+ "from": "dsh-runtime/node_modules",
+ "to": "dsh/node_modules",
+ "filter": [
+ "**/*",
"!**/*.map",
"!**/*.d.ts"
]
@@ -125,8 +131,14 @@
"to": "dsh",
"filter": [
"package.json",
- "plugins/**",
- "node_modules/**",
+ "plugins/**"
+ ]
+ },
+ {
+ "from": "dsh-runtime/node_modules",
+ "to": "dsh/node_modules",
+ "filter": [
+ "**/*",
"!**/*.map",
"!**/*.d.ts"
]
@@ -164,8 +176,14 @@
"to": "dsh",
"filter": [
"package.json",
- "plugins/**",
- "node_modules/**",
+ "plugins/**"
+ ]
+ },
+ {
+ "from": "dsh-runtime/node_modules",
+ "to": "dsh/node_modules",
+ "filter": [
+ "**/*",
"!**/*.map",
"!**/*.d.ts"
]
diff --git a/src/agent/host.ts b/src/agent/host.ts
index e922cea..47c5756 100644
--- a/src/agent/host.ts
+++ b/src/agent/host.ts
@@ -398,7 +398,7 @@ exec "$REAL" "$@"
if (ev?.type === "tool/call") {
this.calls.set(String(data.callId), { name: String(data.name), args: String(data.arguments ?? ""), at: Date.now() });
if (this.calls.size > 500) this.calls.delete(this.calls.keys().next().value!);
- input.observer?.onProgress?.(`🔧 ${summarizeCall(String(data.name), String(data.arguments ?? ""))}`);
+ input.observer?.onProgress?.(`🔧 ${summarizeCall(String(data.name), String(data.arguments ?? "")).split(this.workspace + "/").join("")}`);
}
if (ev?.type === "turn/end" && data?.reason?.kind === "error") turnError = String(data.reason.error?.message ?? "unknown error");
input.observer?.onEvent?.(String(ev?.type), data);