clawmux 0.3.3 → 0.3.5

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/README.md CHANGED
@@ -17,7 +17,7 @@ Smart model routing + context compression proxy for OpenClaw.
17
17
  Copy and paste this into your OpenClaw agent:
18
18
 
19
19
  ```bash
20
- Install and configure oh-my-opencode by following the instructions here:
20
+ Install and configure ClawMux by following the instructions here:
21
21
  curl -s https://raw.githubusercontent.com/HyeokjaeLee/ClawMux/refs/heads/main/docs/guide/installation.md
22
22
  ```
23
23
 
package/dist/cli.cjs CHANGED
@@ -3778,7 +3778,10 @@ async function handleApiRequest(req, body, apiType, config, openclawConfig, auth
3778
3778
  const message = err instanceof Error ? err.message : String(err);
3779
3779
  return jsonErrorResponse(`Upstream request failed: ${message}`, 502);
3780
3780
  }
3781
- console.log(`[clawmux] [llm] ${decision.tier} → ${decision.model} | conf=${classification.confidence.toFixed(2)}${classification.reasoning ? ` | ${classification.reasoning}` : ""}`);
3781
+ const lastUserMsg = [...parsed.messages].reverse().find((m) => m.role === "user");
3782
+ const msgText = typeof lastUserMsg?.content === "string" ? lastUserMsg.content : Array.isArray(lastUserMsg?.content) ? lastUserMsg.content.filter((b) => b.type === "text").map((b) => b.text ?? "").join(" ") : "";
3783
+ const preview = msgText.replace(/\s+/g, " ").trim().slice(0, 100);
3784
+ console.log(`[clawmux] [llm] ${decision.tier} → ${decision.model} | conf=${classification.confidence.toFixed(2)}${classification.reasoning ? ` | ${classification.reasoning}` : ""}${preview ? ` | "${preview}${msgText.length > 100 ? "…" : ""}"` : ""}`);
3782
3785
  if (compressionMiddleware && upstreamResponse.ok) {
3783
3786
  compressionMiddleware.afterResponse(parsed, adapter, baseUrl, authInfo);
3784
3787
  }
@@ -3942,7 +3945,7 @@ function getLogDir() {
3942
3945
  }
3943
3946
 
3944
3947
  // src/cli.ts
3945
- var VERSION2 = process.env.npm_package_version ?? "0.3.3";
3948
+ var VERSION2 = process.env.npm_package_version ?? "0.3.5";
3946
3949
  var SERVICE_NAME = "clawmux";
3947
3950
  var HELP = `Usage: clawmux <command>
3948
3951
 
@@ -4319,7 +4322,8 @@ Next steps:`);
4319
4322
  console.log(" 2. ClawMux is running and will auto-start on boot");
4320
4323
  console.log(" Check status: clawmux status");
4321
4324
  }
4322
- console.log(" 3. Select a provider: openclaw provider clawmux-openai");
4325
+ console.log(" 3. Ask the user whether to switch agent and session models to clawmux/auto,");
4326
+ console.log(" then use the openclaw CLI to apply their choice per agent.");
4323
4327
  console.log(" 4. Start chatting: openclaw chat");
4324
4328
  }
4325
4329
  async function start() {
package/dist/index.cjs CHANGED
@@ -3801,7 +3801,10 @@ async function handleApiRequest(req, body, apiType, config, openclawConfig, auth
3801
3801
  const message = err instanceof Error ? err.message : String(err);
3802
3802
  return jsonErrorResponse(`Upstream request failed: ${message}`, 502);
3803
3803
  }
3804
- console.log(`[clawmux] [llm] ${decision.tier} → ${decision.model} | conf=${classification.confidence.toFixed(2)}${classification.reasoning ? ` | ${classification.reasoning}` : ""}`);
3804
+ const lastUserMsg = [...parsed.messages].reverse().find((m) => m.role === "user");
3805
+ const msgText = typeof lastUserMsg?.content === "string" ? lastUserMsg.content : Array.isArray(lastUserMsg?.content) ? lastUserMsg.content.filter((b) => b.type === "text").map((b) => b.text ?? "").join(" ") : "";
3806
+ const preview = msgText.replace(/\s+/g, " ").trim().slice(0, 100);
3807
+ console.log(`[clawmux] [llm] ${decision.tier} → ${decision.model} | conf=${classification.confidence.toFixed(2)}${classification.reasoning ? ` | ${classification.reasoning}` : ""}${preview ? ` | "${preview}${msgText.length > 100 ? "…" : ""}"` : ""}`);
3805
3808
  if (compressionMiddleware && upstreamResponse.ok) {
3806
3809
  compressionMiddleware.afterResponse(parsed, adapter, baseUrl, authInfo);
3807
3810
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawmux",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Smart model routing + context compression proxy for OpenClaw",
5
5
  "type": "module",
6
6
  "bin": {