ccjk 14.2.0 → 14.2.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/dist/chunks/api-cli.mjs +3 -2
- package/dist/chunks/api-config-selector.mjs +8 -6
- package/dist/chunks/auto-updater.mjs +1 -1
- package/dist/chunks/ccjk-agents.mjs +2 -2
- package/dist/chunks/ccjk-all.mjs +6 -6
- package/dist/chunks/ccjk-hooks.mjs +2 -2
- package/dist/chunks/ccjk-mcp.mjs +5 -5
- package/dist/chunks/ccjk-setup.mjs +4 -4
- package/dist/chunks/ccjk-skills.mjs +2 -2
- package/dist/chunks/ccr.mjs +11 -9
- package/dist/chunks/check-updates.mjs +2 -1
- package/dist/chunks/claude-code-incremental-manager.mjs +8 -6
- package/dist/chunks/claude-config.mjs +594 -62
- package/dist/chunks/claude-config2.mjs +62 -0
- package/dist/chunks/clavue-config.mjs +1454 -0
- package/dist/chunks/code-type-resolver.mjs +1 -1
- package/dist/chunks/codex-config-switch.mjs +1 -0
- package/dist/chunks/codex-provider-manager.mjs +2 -1
- package/dist/chunks/codex.mjs +4 -3
- package/dist/chunks/config-switch.mjs +6 -4
- package/dist/chunks/config.mjs +7 -1973
- package/dist/chunks/config2.mjs +8 -7
- package/dist/chunks/config3.mjs +1 -0
- package/dist/chunks/doctor.mjs +7 -6
- package/dist/chunks/features.mjs +9 -7
- package/dist/chunks/index10.mjs +14 -5379
- package/dist/chunks/index9.mjs +5379 -14
- package/dist/chunks/init.mjs +12 -10
- package/dist/chunks/installer.mjs +7 -5
- package/dist/chunks/interview.mjs +1 -1
- package/dist/chunks/mcp-cli.mjs +23 -22
- package/dist/chunks/mcp.mjs +8 -7
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/platform.mjs +1 -1
- package/dist/chunks/quick-provider.mjs +7 -5
- package/dist/chunks/quick-setup.mjs +7 -5
- package/dist/chunks/simple-config.mjs +3 -2
- package/dist/chunks/slash-commands.mjs +1 -1
- package/dist/chunks/thinking.mjs +1 -1
- package/dist/chunks/uninstall.mjs +1 -1
- package/dist/chunks/update.mjs +10 -9
- package/dist/chunks/version-checker.mjs +1 -1
- package/dist/chunks/zero-config.mjs +4 -3
- package/dist/cli.mjs +3 -3
- package/dist/i18n/locales/en/configuration.json +2 -0
- package/dist/i18n/locales/zh-CN/configuration.json +2 -0
- package/dist/index.mjs +7 -6
- package/dist/shared/{ccjk.DOw7Fawt.mjs → ccjk.5bEolFrk.mjs} +2 -2
- package/dist/shared/{ccjk.DGllfVCZ.mjs → ccjk.BtrioX1Z.mjs} +1 -1
- package/dist/shared/{ccjk.BCzOWT1L.mjs → ccjk.C0WLUnFV.mjs} +12 -2
- package/dist/shared/{ccjk.Cv13QsGp.mjs → ccjk.CoCHVXl3.mjs} +1 -1
- package/dist/shared/{ccjk.f3TBLJSt.mjs → ccjk.CwGZSTAK.mjs} +7 -7
- package/dist/shared/{ccjk.CfKJnpbB.mjs → ccjk.D-magaEx.mjs} +2 -2
- package/dist/shared/{ccjk.CbWVbtb9.mjs → ccjk.DhJ1kyDR.mjs} +1 -1
- package/dist/shared/{ccjk.Cgv_cFVX.mjs → ccjk.L7yC58_i.mjs} +2 -2
- package/dist/shared/{ccjk.zFGcZT7Y.mjs → ccjk.OJKHVSOb.mjs} +1 -1
- package/dist/templates/common/output-styles/zh-CN/codex-rigor-mode.md +114 -0
- package/package.json +43 -40
- package/templates/common/output-styles/zh-CN/codex-rigor-mode.md +114 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { SETTINGS_FILE } from './constants.mjs';
|
|
2
|
+
import { n as normalizeClaudeFamilySettings } from '../shared/ccjk.DDL-4C-k.mjs';
|
|
3
|
+
import { exists, ensureDir } from './fs-operations.mjs';
|
|
4
|
+
import { readJsonConfig, writeJsonConfig } from './json-config.mjs';
|
|
5
|
+
import { e as deepMerge } from './claude-config.mjs';
|
|
6
|
+
import { d as dirname } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
7
|
+
import 'node:os';
|
|
8
|
+
import './index2.mjs';
|
|
9
|
+
import 'node:fs';
|
|
10
|
+
import 'node:process';
|
|
11
|
+
import 'node:url';
|
|
12
|
+
import './ccjk-config.mjs';
|
|
13
|
+
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
14
|
+
import './index3.mjs';
|
|
15
|
+
import 'node:crypto';
|
|
16
|
+
import 'node:fs/promises';
|
|
17
|
+
import '../shared/ccjk.RyizuzOI.mjs';
|
|
18
|
+
import '../shared/ccjk.BAGoDD49.mjs';
|
|
19
|
+
import 'node:child_process';
|
|
20
|
+
import './platform.mjs';
|
|
21
|
+
import './main.mjs';
|
|
22
|
+
import 'module';
|
|
23
|
+
import 'node:path';
|
|
24
|
+
import 'node:stream';
|
|
25
|
+
import 'node:readline';
|
|
26
|
+
|
|
27
|
+
function readClaudeConfig(configPath = SETTINGS_FILE) {
|
|
28
|
+
try {
|
|
29
|
+
if (!exists(configPath)) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return readJsonConfig(configPath) || null;
|
|
33
|
+
} catch (error) {
|
|
34
|
+
console.error(`Failed to read Claude config from ${configPath}:`, error);
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function writeClaudeConfig(config, options = {}, configPath = SETTINGS_FILE) {
|
|
39
|
+
try {
|
|
40
|
+
ensureDir(dirname(configPath));
|
|
41
|
+
normalizeClaudeFamilySettings(config);
|
|
42
|
+
writeJsonConfig(configPath, config, {
|
|
43
|
+
atomic: options.atomic !== false,
|
|
44
|
+
pretty: true,
|
|
45
|
+
backup: options.backup
|
|
46
|
+
});
|
|
47
|
+
} catch (error) {
|
|
48
|
+
console.error(`Failed to write Claude config to ${configPath}:`, error);
|
|
49
|
+
throw new Error(`Failed to write Claude config: ${error instanceof Error ? error.message : String(error)}`);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function updateClaudeConfig(updates, options = {}, configPath = SETTINGS_FILE) {
|
|
53
|
+
const existingConfig = readClaudeConfig(configPath) || {};
|
|
54
|
+
const mergedConfig = deepMerge(existingConfig, updates, {
|
|
55
|
+
mergeArrays: options.merge === "preserve",
|
|
56
|
+
arrayMergeStrategy: "unique"
|
|
57
|
+
});
|
|
58
|
+
writeClaudeConfig(mergedConfig, options, configPath);
|
|
59
|
+
return mergedConfig;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { readClaudeConfig, updateClaudeConfig, writeClaudeConfig };
|