cc-claw 0.2.5 → 0.2.7

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.
Files changed (3) hide show
  1. package/README.md +10 -0
  2. package/dist/cli.js +7 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -43,6 +43,16 @@ Send text, voice, photos, documents, or videos. Switch backends with `/claude`,
43
43
  npm install -g cc-claw
44
44
  ```
45
45
 
46
+ ## Upgrade
47
+
48
+ ```bash
49
+ npm install -g cc-claw@latest # Update to latest version
50
+ cc-claw --version # Verify
51
+ cc-claw service restart # Restart to pick up changes
52
+ ```
53
+
54
+ No config changes or migrations needed.
55
+
46
56
  ## Setup
47
57
 
48
58
  ```bash
package/dist/cli.js CHANGED
@@ -48,7 +48,7 @@ var VERSION;
48
48
  var init_version = __esm({
49
49
  "src/version.ts"() {
50
50
  "use strict";
51
- VERSION = true ? "0.2.5" : (() => {
51
+ VERSION = true ? "0.2.7" : (() => {
52
52
  try {
53
53
  return JSON.parse(readFileSync(join2(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
54
54
  } catch {
@@ -2436,7 +2436,9 @@ var init_gemini = __esm({
2436
2436
  "-p",
2437
2437
  opts.prompt,
2438
2438
  "-o",
2439
- "stream-json"
2439
+ "stream-json",
2440
+ "--allowed-mcp-server-names=__none__"
2441
+ // nonexistent name = skip all user MCP servers (avoids crash/hang from broken servers)
2440
2442
  ];
2441
2443
  if (opts.sessionId) args.push("--resume", opts.sessionId);
2442
2444
  if (opts.model) args.push("-m", opts.model);
@@ -5376,7 +5378,7 @@ function spawnQuery(adapter, config2, model2, cancelState, onStream, onToolActio
5376
5378
  }
5377
5379
  if (code && code !== 0 && !cancelState.cancelled && !resultText) {
5378
5380
  const stderr = Buffer.concat(stderrChunks).toString().trim();
5379
- reject(new Error(`CLI exited with code ${code}${stderr ? `: ${stderr.slice(0, 200)}` : ""}`));
5381
+ reject(new Error(`CLI exited with code ${code}${stderr ? `: ${stderr.slice(0, 500)}` : ""}`));
5380
5382
  return;
5381
5383
  }
5382
5384
  resolve({ resultText, sessionId, input, output: output2, cacheRead, sawToolEvents, sawResultEvent });
@@ -11054,7 +11056,8 @@ async function restartService() {
11054
11056
  const os = platform2();
11055
11057
  try {
11056
11058
  if (os === "darwin") {
11057
- execSync6("launchctl stop com.cc-claw && launchctl start com.cc-claw");
11059
+ const uid = process.getuid?.() ?? execSync6("id -u", { encoding: "utf-8" }).trim();
11060
+ execSync6(`launchctl kickstart -k gui/${uid}/com.cc-claw`);
11058
11061
  console.log(`
11059
11062
  ${success("Daemon restarted.")}
11060
11063
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-claw",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "CC-Claw: Personal AI assistant on Telegram — multi-backend (Claude, Gemini, Codex), sub-agent orchestration, MCP management",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",