@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/CHANGELOG.md +8 -0
- package/changelog/v1.1.2.md +15 -0
- package/dist/cli.js +13 -9
- package/dist/index-814gp2s3.js +7664 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/cli.ts +15 -9
- package/src/installer/settings-merger.ts +2 -2
package/dist/index.js
CHANGED
package/package.json
CHANGED
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.
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|