@tkpdx01/ccc 1.2.7 → 1.3.1
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/Claude Code settings.txt +776 -776
- package/README.md +77 -0
- package/index.js +4 -2
- package/package.json +40 -39
- package/src/commands/delete.js +66 -66
- package/src/commands/edit.js +120 -120
- package/src/commands/help.js +61 -50
- package/src/commands/import.js +356 -356
- package/src/commands/index.js +11 -10
- package/src/commands/list.js +46 -46
- package/src/commands/new.js +109 -109
- package/src/commands/show.js +68 -68
- package/src/commands/sync.js +93 -93
- package/src/commands/use.js +19 -19
- package/src/commands/webdav.js +477 -0
- package/src/config.js +9 -9
- package/src/crypto.js +147 -0
- package/src/launch.js +69 -69
- package/src/parsers.js +154 -154
- package/src/profiles.js +182 -182
- package/src/utils.js +67 -67
- package/src/webdav.js +268 -0
- package/.claude/settings.local.json +0 -34
- package/nul +0 -1
package/src/commands/help.js
CHANGED
|
@@ -1,50 +1,61 @@
|
|
|
1
|
-
import chalk from 'chalk';
|
|
2
|
-
|
|
3
|
-
export function showHelp() {
|
|
4
|
-
console.log(chalk.cyan.bold('\n CCC - Claude Code Settings Launcher\n'));
|
|
5
|
-
console.log(chalk.white(' 管理多个 Claude Code 配置文件,快速切换不同的 API 设置\n'));
|
|
6
|
-
|
|
7
|
-
console.log(chalk.yellow(' 启动命令:'));
|
|
8
|
-
console.log(chalk.gray(' ccc ') + '使用默认配置启动,无默认则交互选择');
|
|
9
|
-
console.log(chalk.gray(' ccc <profile> ') + '使用指定配置启动(支持名称或序号)');
|
|
10
|
-
console.log(chalk.gray(' ccc <序号> ') + '使用序号启动(如 ccc 1)');
|
|
11
|
-
console.log(chalk.gray(' ccc -d, --ddd ') + '启动时添加 --dangerously-skip-permissions');
|
|
12
|
-
console.log();
|
|
13
|
-
|
|
14
|
-
console.log(chalk.yellow(' 管理命令:'));
|
|
15
|
-
console.log(chalk.gray(' ccc list, ls ') + '列出所有配置(带序号,按 a-z 排序)');
|
|
16
|
-
console.log(chalk.gray(' ccc show [profile] ') + '显示完整配置');
|
|
17
|
-
console.log(chalk.gray(' ccc use <profile> ') + '设置默认配置');
|
|
18
|
-
console.log(chalk.gray(' ccc new [name] ') + '创建新的影子配置');
|
|
19
|
-
console.log(chalk.gray(' ccc import <file> ') + '从文件导入(自动识别格式)');
|
|
20
|
-
console.log(chalk.gray(' ccc
|
|
21
|
-
console.log(chalk.gray(' ccc
|
|
22
|
-
console.log(chalk.gray(' ccc
|
|
23
|
-
console.log();
|
|
24
|
-
|
|
25
|
-
console.log(
|
|
26
|
-
|
|
27
|
-
console.log(chalk.
|
|
28
|
-
console.log();
|
|
29
|
-
|
|
30
|
-
console.log(chalk.
|
|
31
|
-
console.log(chalk.gray('
|
|
32
|
-
console.log(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
console.log(chalk.
|
|
36
|
-
console.log(chalk.gray(' ccc
|
|
37
|
-
console.log(chalk.gray(' ccc
|
|
38
|
-
console.log(
|
|
39
|
-
|
|
40
|
-
console.log(chalk.
|
|
41
|
-
console.log();
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
|
|
3
|
+
export function showHelp() {
|
|
4
|
+
console.log(chalk.cyan.bold('\n CCC - Claude Code Settings Launcher\n'));
|
|
5
|
+
console.log(chalk.white(' 管理多个 Claude Code 配置文件,快速切换不同的 API 设置\n'));
|
|
6
|
+
|
|
7
|
+
console.log(chalk.yellow(' 启动命令:'));
|
|
8
|
+
console.log(chalk.gray(' ccc ') + '使用默认配置启动,无默认则交互选择');
|
|
9
|
+
console.log(chalk.gray(' ccc <profile> ') + '使用指定配置启动(支持名称或序号)');
|
|
10
|
+
console.log(chalk.gray(' ccc <序号> ') + '使用序号启动(如 ccc 1)');
|
|
11
|
+
console.log(chalk.gray(' ccc -d, --ddd ') + '启动时添加 --dangerously-skip-permissions');
|
|
12
|
+
console.log();
|
|
13
|
+
|
|
14
|
+
console.log(chalk.yellow(' 管理命令:'));
|
|
15
|
+
console.log(chalk.gray(' ccc list, ls ') + '列出所有配置(带序号,按 a-z 排序)');
|
|
16
|
+
console.log(chalk.gray(' ccc show [profile] ') + '显示完整配置');
|
|
17
|
+
console.log(chalk.gray(' ccc use <profile> ') + '设置默认配置');
|
|
18
|
+
console.log(chalk.gray(' ccc new [name] ') + '创建新的影子配置');
|
|
19
|
+
console.log(chalk.gray(' ccc import <file> ') + '从文件导入(自动识别格式)');
|
|
20
|
+
console.log(chalk.gray(' ccc sync [profile] ') + '从模板同步配置(保留 API 凭证)');
|
|
21
|
+
console.log(chalk.gray(' ccc sync --all ') + '同步所有配置');
|
|
22
|
+
console.log(chalk.gray(' ccc edit [profile] ') + '编辑配置');
|
|
23
|
+
console.log(chalk.gray(' ccc delete, rm [name] ') + '删除配置');
|
|
24
|
+
console.log(chalk.gray(' ccc help ') + '显示此帮助信息');
|
|
25
|
+
console.log();
|
|
26
|
+
|
|
27
|
+
console.log(chalk.yellow(' 云同步命令:'));
|
|
28
|
+
console.log(chalk.gray(' ccc webdav setup ') + '配置 WebDAV 连接和同步密码');
|
|
29
|
+
console.log(chalk.gray(' ccc webdav push ') + '推送到云端(加密)');
|
|
30
|
+
console.log(chalk.gray(' ccc webdav pull ') + '从云端拉取(解密)');
|
|
31
|
+
console.log(chalk.gray(' ccc webdav status ') + '查看同步状态');
|
|
32
|
+
console.log();
|
|
33
|
+
|
|
34
|
+
console.log(chalk.yellow(' 配置存储:'));
|
|
35
|
+
console.log(chalk.gray(' ~/.ccc/profiles/ ') + '影子配置文件目录');
|
|
36
|
+
console.log(chalk.gray(' ~/.ccc/webdav.json ') + 'WebDAV 连接配置');
|
|
37
|
+
console.log(chalk.gray(' ~/.ccc/.sync_key ') + '本地密码缓存(机器指纹加密)');
|
|
38
|
+
console.log();
|
|
39
|
+
|
|
40
|
+
console.log(chalk.yellow(' 支持的导入格式:'));
|
|
41
|
+
console.log(chalk.gray(' CC-Switch SQL ') + '自动识别 INSERT INTO providers 语句');
|
|
42
|
+
console.log(chalk.gray(' All API Hub JSON ') + '自动识别 accounts.accounts 结构');
|
|
43
|
+
console.log();
|
|
44
|
+
|
|
45
|
+
console.log(chalk.yellow(' 示例:'));
|
|
46
|
+
console.log(chalk.gray(' ccc ls ') + '查看配置列表和序号');
|
|
47
|
+
console.log(chalk.gray(' ccc 3 ') + '启动第 3 个配置');
|
|
48
|
+
console.log(chalk.gray(' ccc 3 -d ') + '启动第 3 个配置 + 跳过权限');
|
|
49
|
+
console.log(chalk.gray(' ccc kfc ') + '使用名称启动');
|
|
50
|
+
console.log(chalk.gray(' ccc import export.sql ') + '从文件导入配置');
|
|
51
|
+
console.log(chalk.gray(' ccc webdav push ') + '推送配置到云端');
|
|
52
|
+
console.log();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function helpCommand(program) {
|
|
56
|
+
program
|
|
57
|
+
.command('help')
|
|
58
|
+
.description('显示帮助信息')
|
|
59
|
+
.action(showHelp);
|
|
60
|
+
}
|
|
61
|
+
|