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.
Files changed (59) hide show
  1. package/dist/chunks/api-cli.mjs +3 -2
  2. package/dist/chunks/api-config-selector.mjs +8 -6
  3. package/dist/chunks/auto-updater.mjs +1 -1
  4. package/dist/chunks/ccjk-agents.mjs +2 -2
  5. package/dist/chunks/ccjk-all.mjs +6 -6
  6. package/dist/chunks/ccjk-hooks.mjs +2 -2
  7. package/dist/chunks/ccjk-mcp.mjs +5 -5
  8. package/dist/chunks/ccjk-setup.mjs +4 -4
  9. package/dist/chunks/ccjk-skills.mjs +2 -2
  10. package/dist/chunks/ccr.mjs +11 -9
  11. package/dist/chunks/check-updates.mjs +2 -1
  12. package/dist/chunks/claude-code-incremental-manager.mjs +8 -6
  13. package/dist/chunks/claude-config.mjs +594 -62
  14. package/dist/chunks/claude-config2.mjs +62 -0
  15. package/dist/chunks/clavue-config.mjs +1454 -0
  16. package/dist/chunks/code-type-resolver.mjs +1 -1
  17. package/dist/chunks/codex-config-switch.mjs +1 -0
  18. package/dist/chunks/codex-provider-manager.mjs +2 -1
  19. package/dist/chunks/codex.mjs +4 -3
  20. package/dist/chunks/config-switch.mjs +6 -4
  21. package/dist/chunks/config.mjs +7 -1973
  22. package/dist/chunks/config2.mjs +8 -7
  23. package/dist/chunks/config3.mjs +1 -0
  24. package/dist/chunks/doctor.mjs +7 -6
  25. package/dist/chunks/features.mjs +9 -7
  26. package/dist/chunks/index10.mjs +14 -5379
  27. package/dist/chunks/index9.mjs +5379 -14
  28. package/dist/chunks/init.mjs +12 -10
  29. package/dist/chunks/installer.mjs +7 -5
  30. package/dist/chunks/interview.mjs +1 -1
  31. package/dist/chunks/mcp-cli.mjs +23 -22
  32. package/dist/chunks/mcp.mjs +8 -7
  33. package/dist/chunks/package.mjs +1 -1
  34. package/dist/chunks/platform.mjs +1 -1
  35. package/dist/chunks/quick-provider.mjs +7 -5
  36. package/dist/chunks/quick-setup.mjs +7 -5
  37. package/dist/chunks/simple-config.mjs +3 -2
  38. package/dist/chunks/slash-commands.mjs +1 -1
  39. package/dist/chunks/thinking.mjs +1 -1
  40. package/dist/chunks/uninstall.mjs +1 -1
  41. package/dist/chunks/update.mjs +10 -9
  42. package/dist/chunks/version-checker.mjs +1 -1
  43. package/dist/chunks/zero-config.mjs +4 -3
  44. package/dist/cli.mjs +3 -3
  45. package/dist/i18n/locales/en/configuration.json +2 -0
  46. package/dist/i18n/locales/zh-CN/configuration.json +2 -0
  47. package/dist/index.mjs +7 -6
  48. package/dist/shared/{ccjk.DOw7Fawt.mjs → ccjk.5bEolFrk.mjs} +2 -2
  49. package/dist/shared/{ccjk.DGllfVCZ.mjs → ccjk.BtrioX1Z.mjs} +1 -1
  50. package/dist/shared/{ccjk.BCzOWT1L.mjs → ccjk.C0WLUnFV.mjs} +12 -2
  51. package/dist/shared/{ccjk.Cv13QsGp.mjs → ccjk.CoCHVXl3.mjs} +1 -1
  52. package/dist/shared/{ccjk.f3TBLJSt.mjs → ccjk.CwGZSTAK.mjs} +7 -7
  53. package/dist/shared/{ccjk.CfKJnpbB.mjs → ccjk.D-magaEx.mjs} +2 -2
  54. package/dist/shared/{ccjk.CbWVbtb9.mjs → ccjk.DhJ1kyDR.mjs} +1 -1
  55. package/dist/shared/{ccjk.Cgv_cFVX.mjs → ccjk.L7yC58_i.mjs} +2 -2
  56. package/dist/shared/{ccjk.zFGcZT7Y.mjs → ccjk.OJKHVSOb.mjs} +1 -1
  57. package/dist/templates/common/output-styles/zh-CN/codex-rigor-mode.md +114 -0
  58. package/package.json +43 -40
  59. 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 };