🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

cc-channel-patch

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cc-channel-patch - npm Package Compare versions

Comparing version
0.6.0
to
0.6.1
+22
-1
index.mjs

@@ -416,3 +416,15 @@ #!/usr/bin/env node

}
console.log('\n ✅ 补丁已直接写入,立即生效!\n');
// macOS 需要重新签名(ad-hoc),否则 Gatekeeper 阻止运行
if (process.platform === 'darwin') {
try {
execSync(`codesign --force --sign - "${exePath}"`, { stdio: 'pipe' });
console.log('\n ✅ 补丁已直接写入 + codesign 重签名,立即生效!\n');
} catch {
console.log('\n ✅ 补丁已直接写入!');
console.log(' ⚠️ codesign 重签名失败,请手动执行:');
console.log(` codesign --force --sign - "${exePath}"\n`);
}
} else {
console.log('\n ✅ 补丁已直接写入,立即生效!\n');
}
} catch {

@@ -425,2 +437,8 @@ const tmpPath = exePath + '.patched';

}
// macOS 需要重新签名
if (process.platform === 'darwin') {
try {
execSync(`codesign --force --sign - "${tmpPath}"`, { stdio: 'pipe' });
} catch { /* ignore, user will need to codesign manually */ }
}
console.log(`\n ⚠️ Claude Code 正在运行,无法直接写入。`);

@@ -438,2 +456,5 @@ console.log(` 补丁已保存到: ${tmpPath}\n`);

console.log(` mv "${tmpPath}" "${exePath}"`);
if (process.platform === 'darwin') {
console.log(` codesign --force --sign - "${exePath}"`);
}
}

@@ -440,0 +461,0 @@ console.log();

+1
-1
{
"name": "cc-channel-patch",
"version": "0.6.0",
"version": "0.6.1",
"description": "One-command patch to enable Claude Code Channels (bypasses tengu_harbor feature flag)",

@@ -5,0 +5,0 @@ "type": "module",