@lgcyaxi/oh-my-claude 1.1.1 → 1.1.2

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/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  sisyphusAgent,
63
63
  taskAgents,
64
64
  uninstall
65
- } from "./index-qrbfj4cd.js";
65
+ } from "./index-814gp2s3.js";
66
66
 
67
67
  // src/index.ts
68
68
  init_agents();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lgcyaxi/oh-my-claude",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Multi-agent orchestration plugin for Claude Code with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/cli.ts CHANGED
@@ -19,7 +19,7 @@ import { loadConfig } from "./config";
19
19
  program
20
20
  .name("oh-my-claude")
21
21
  .description("Multi-agent orchestration plugin for Claude Code")
22
- .version("1.1.1");
22
+ .version("1.1.2");
23
23
 
24
24
  // Install command
25
25
  program
@@ -268,7 +268,7 @@ program
268
268
  // Detailed MCP status
269
269
  console.log(`\n${header("MCP Server (detailed):")}`);
270
270
  try {
271
- const mcpList = execSync("claude mcp list 2>/dev/null", { encoding: "utf-8" });
271
+ const mcpList = execSync("claude mcp list", { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] });
272
272
  const omcLine = mcpList.split("\n").find((line: string) => line.includes("oh-my-claude-background"));
273
273
  if (omcLine) {
274
274
  const isConnected = omcLine.includes("✓ Connected");
@@ -457,8 +457,10 @@ program
457
457
  let latestVersion = "unknown";
458
458
  try {
459
459
  console.log(`${dimText("Checking npm registry for latest version...")}`);
460
- const npmInfo = execSync(`npm view ${PACKAGE_NAME} version 2>/dev/null`, {
460
+ // Use stdio: 'pipe' to suppress stderr instead of shell redirection (Windows compatible)
461
+ const npmInfo = execSync(`npm view ${PACKAGE_NAME} version`, {
461
462
  encoding: "utf-8",
463
+ stdio: ["pipe", "pipe", "pipe"],
462
464
  }).trim();
463
465
  latestVersion = npmInfo;
464
466
  console.log(`Latest version: ${c.cyan}${latestVersion}${c.reset}\n`);
@@ -489,12 +491,16 @@ program
489
491
  console.log(header("Updating oh-my-claude...\n"));
490
492
 
491
493
  try {
492
- // Step 1: Clear npx cache for the package
494
+ // Step 1: Clear npx cache for the package (optional, may fail on some systems)
493
495
  console.log(`${dimText("Clearing npx cache...")}`);
494
496
  try {
495
- execSync(`npx --yes clear-npx-cache 2>/dev/null || true`, { stdio: "pipe" });
497
+ // Use stdio: 'pipe' for Windows compatibility instead of shell redirection
498
+ execSync(`npx --yes clear-npx-cache`, {
499
+ stdio: ["pipe", "pipe", "pipe"],
500
+ timeout: 10000
501
+ });
496
502
  } catch {
497
- // Ignore errors - cache clear is optional
503
+ // Ignore errors - cache clear is optional and may not be available
498
504
  }
499
505
 
500
506
  // Step 2: Install latest version via npx
@@ -732,7 +738,7 @@ program
732
738
  if (installThinking) {
733
739
  console.log(`${c.bold}Anthropic Official:${c.reset}`);
734
740
  try {
735
- const mcpList = execSync("claude mcp list 2>/dev/null", { encoding: "utf-8" });
741
+ const mcpList = execSync("claude mcp list", { encoding: "utf-8" });
736
742
  if (mcpList.includes("sequential-thinking")) {
737
743
  console.log(` ${ok("sequential-thinking already installed")}`);
738
744
  } else {
@@ -755,7 +761,7 @@ program
755
761
  } else {
756
762
  try {
757
763
  // Check if already installed
758
- const mcpList = execSync("claude mcp list 2>/dev/null", { encoding: "utf-8" });
764
+ const mcpList = execSync("claude mcp list", { encoding: "utf-8" });
759
765
  if (mcpList.includes("MiniMax")) {
760
766
  console.log(` ${ok("MiniMax already installed")}`);
761
767
  } else {
@@ -782,7 +788,7 @@ program
782
788
  for (const [key, server] of glmServers) {
783
789
  try {
784
790
  // Check if already installed
785
- const mcpList = execSync("claude mcp list 2>/dev/null", { encoding: "utf-8" });
791
+ const mcpList = execSync("claude mcp list", { encoding: "utf-8" });
786
792
  if (mcpList.includes(server.name)) {
787
793
  console.log(` ${ok(`${server.name} already installed`)}`);
788
794
  } else {
@@ -246,7 +246,7 @@ export function installMcpServer(serverPath: string): boolean {
246
246
  // Check if already installed
247
247
  let alreadyInstalled = false;
248
248
  try {
249
- const list = execSync("claude mcp list 2>/dev/null", { encoding: "utf-8" });
249
+ const list = execSync("claude mcp list", { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] });
250
250
  alreadyInstalled = list.includes("oh-my-claude-background");
251
251
  } catch {
252
252
  // Ignore if list fails
@@ -313,7 +313,7 @@ export function uninstallFromSettings(): {
313
313
  // Remove MCP server via CLI
314
314
  let removedMcp = false;
315
315
  try {
316
- execSync("claude mcp remove --scope user oh-my-claude-background 2>/dev/null");
316
+ execSync("claude mcp remove --scope user oh-my-claude-background", { stdio: ["pipe", "pipe", "pipe"] });
317
317
  removedMcp = true;
318
318
  } catch {
319
319
  // Try removing from settings.json as fallback