cc-channel-patch
Advanced tools
+8
-0
@@ -408,2 +408,6 @@ #!/usr/bin/env node | ||
| fs.writeFileSync(exePath, buf); | ||
| // 保留执行权限(Linux/macOS) | ||
| if (process.platform !== 'win32') { | ||
| try { fs.chmodSync(exePath, 0o755); } catch { /* ignore */ } | ||
| } | ||
| console.log('\n ✅ 补丁已直接写入,立即生效!\n'); | ||
@@ -413,2 +417,6 @@ } catch { | ||
| fs.writeFileSync(tmpPath, buf); | ||
| // 保留执行权限(Linux/macOS) | ||
| if (process.platform !== 'win32') { | ||
| try { fs.chmodSync(tmpPath, 0o755); } catch { /* ignore */ } | ||
| } | ||
| console.log(`\n ⚠️ Claude Code 正在运行,无法直接写入。`); | ||
@@ -415,0 +423,0 @@ console.log(` 补丁已保存到: ${tmpPath}\n`); |
+1
-1
| { | ||
| "name": "cc-channel-patch", | ||
| "version": "0.5.0", | ||
| "version": "0.5.1", | ||
| "description": "One-command patch to enable Claude Code Channels (bypasses tengu_harbor feature flag)", | ||
@@ -5,0 +5,0 @@ "type": "module", |
21121
1.5%451
1.81%