claude-cac 1.0.0
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/LICENSE +21 -0
- package/README.md +254 -0
- package/cac +1193 -0
- package/package.json +42 -0
- package/scripts/postinstall.js +25 -0
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "claude-cac",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Claude Code Cloak — Privacy cloak + CLI proxy for Claude Code. Zero source invasion.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"cac": "cac"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"cac",
|
|
10
|
+
"scripts/postinstall.js",
|
|
11
|
+
"README.md",
|
|
12
|
+
"LICENSE"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"postinstall": "node scripts/postinstall.js"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"claude",
|
|
19
|
+
"claude-code",
|
|
20
|
+
"anthropic",
|
|
21
|
+
"privacy",
|
|
22
|
+
"proxy",
|
|
23
|
+
"telemetry",
|
|
24
|
+
"fingerprint",
|
|
25
|
+
"cloak",
|
|
26
|
+
"cli"
|
|
27
|
+
],
|
|
28
|
+
"author": "nmhjklnm",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/nmhjklnm/cac.git"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://github.com/nmhjklnm/cac#readme",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/nmhjklnm/cac/issues"
|
|
37
|
+
},
|
|
38
|
+
"os": ["darwin", "linux"],
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=14.0.0"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { execSync } = require('child_process');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const fs = require('fs');
|
|
5
|
+
|
|
6
|
+
const cacBin = path.join(__dirname, '..', 'cac');
|
|
7
|
+
|
|
8
|
+
// 确保 cac 可执行
|
|
9
|
+
try {
|
|
10
|
+
fs.chmodSync(cacBin, 0o755);
|
|
11
|
+
} catch (e) {
|
|
12
|
+
// Windows 或权限不足时忽略
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
console.log(`
|
|
16
|
+
✅ claude-cac 安装成功
|
|
17
|
+
|
|
18
|
+
首次使用:
|
|
19
|
+
cac setup 初始化
|
|
20
|
+
cac add <名字> <host:port:u:p> 添加代理配置
|
|
21
|
+
cac <名字> 切换配置
|
|
22
|
+
claude 启动 Claude Code
|
|
23
|
+
|
|
24
|
+
更多信息:https://github.com/nmhjklnm/cac
|
|
25
|
+
`);
|