ccjk 13.3.6 → 13.3.7

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 (150) hide show
  1. package/dist/chunks/agent-teams.mjs +7 -5
  2. package/dist/chunks/agent.mjs +2 -2
  3. package/dist/chunks/agents.mjs +16 -16
  4. package/dist/chunks/api-cli.mjs +6 -6
  5. package/dist/chunks/api-providers.mjs +1 -1
  6. package/dist/chunks/api.mjs +4 -4
  7. package/dist/chunks/auto-bootstrap.mjs +1 -1
  8. package/dist/chunks/auto-fix.mjs +49 -4
  9. package/dist/chunks/auto-fixer.mjs +7 -5
  10. package/dist/chunks/auto-init.mjs +9 -7208
  11. package/dist/chunks/auto-memory-bridge.mjs +9 -3
  12. package/dist/chunks/auto-updater.mjs +9 -9
  13. package/dist/chunks/auto-upgrade.mjs +5 -3
  14. package/dist/chunks/banner.mjs +4 -3
  15. package/dist/chunks/boost.mjs +118 -62
  16. package/dist/chunks/ccjk-agents.mjs +3 -3
  17. package/dist/chunks/ccjk-all.mjs +7 -7
  18. package/dist/chunks/ccjk-config.mjs +2 -2
  19. package/dist/chunks/ccjk-hooks.mjs +4 -4
  20. package/dist/chunks/ccjk-mcp.mjs +5 -5
  21. package/dist/chunks/ccjk-setup.mjs +5 -5
  22. package/dist/chunks/ccjk-skills.mjs +5 -5
  23. package/dist/chunks/ccr.mjs +18 -16
  24. package/dist/chunks/ccu.mjs +2 -2
  25. package/dist/chunks/check-updates.mjs +8 -8
  26. package/dist/chunks/claude-code-config-manager.mjs +12 -10
  27. package/dist/chunks/claude-code-incremental-manager.mjs +7 -7
  28. package/dist/chunks/claude-config.mjs +1 -1
  29. package/dist/chunks/claude-wrapper.mjs +1 -1
  30. package/dist/chunks/cli-hook.mjs +15 -15
  31. package/dist/chunks/codex-config-switch.mjs +7 -7
  32. package/dist/chunks/codex-provider-manager.mjs +7 -7
  33. package/dist/chunks/codex-uninstaller.mjs +2 -2
  34. package/dist/chunks/codex.mjs +5 -5
  35. package/dist/chunks/commands.mjs +2 -2
  36. package/dist/chunks/commands2.mjs +3 -3
  37. package/dist/chunks/commit.mjs +2 -2
  38. package/dist/chunks/completion.mjs +2 -2
  39. package/dist/chunks/config-consolidator.mjs +2 -2
  40. package/dist/chunks/config-switch.mjs +8 -8
  41. package/dist/chunks/config.mjs +6 -5
  42. package/dist/chunks/config2.mjs +5 -5
  43. package/dist/chunks/config3.mjs +4 -4
  44. package/dist/chunks/constants.mjs +1 -1
  45. package/dist/chunks/context-opt.mjs +92 -90
  46. package/dist/chunks/context.mjs +659 -0
  47. package/dist/chunks/dashboard.mjs +14 -9
  48. package/dist/chunks/doctor.mjs +4 -4
  49. package/dist/chunks/eval.mjs +502 -0
  50. package/dist/chunks/evolution.mjs +46 -39
  51. package/dist/chunks/health-alerts.mjs +9 -9
  52. package/dist/chunks/help.mjs +1 -1
  53. package/dist/chunks/hook-installer.mjs +6 -3
  54. package/dist/chunks/index.mjs +23 -0
  55. package/dist/chunks/index10.mjs +634 -571
  56. package/dist/chunks/index11.mjs +1061 -569
  57. package/dist/chunks/index12.mjs +914 -1076
  58. package/dist/chunks/index13.mjs +136 -951
  59. package/dist/chunks/index14.mjs +209 -185
  60. package/dist/chunks/index2.mjs +19 -24
  61. package/dist/chunks/index3.mjs +19085 -12
  62. package/dist/chunks/index4.mjs +16 -19092
  63. package/dist/chunks/index5.mjs +7602 -16
  64. package/dist/chunks/index6.mjs +159 -7590
  65. package/dist/chunks/index7.mjs +1602 -171
  66. package/dist/chunks/index8.mjs +19 -1602
  67. package/dist/chunks/index9.mjs +612 -15
  68. package/dist/chunks/init.mjs +26 -19
  69. package/dist/chunks/installer.mjs +5 -5
  70. package/dist/chunks/installer2.mjs +2 -2
  71. package/dist/chunks/intent-engine.mjs +1 -1
  72. package/dist/chunks/interview.mjs +4 -4
  73. package/dist/chunks/manager.mjs +1 -1
  74. package/dist/chunks/marketplace.mjs +2 -2
  75. package/dist/chunks/mcp-cli.mjs +12 -12
  76. package/dist/chunks/mcp.mjs +8 -8
  77. package/dist/chunks/memory.mjs +8 -8
  78. package/dist/chunks/menu-hierarchical.mjs +24 -22
  79. package/dist/chunks/menu.mjs +27 -22
  80. package/dist/chunks/metrics-display.mjs +2 -2
  81. package/dist/chunks/migrator.mjs +1 -1
  82. package/dist/chunks/monitor.mjs +2 -2
  83. package/dist/chunks/notification.mjs +6 -6
  84. package/dist/chunks/onboarding-wizard.mjs +6 -5
  85. package/dist/chunks/onboarding.mjs +4 -4
  86. package/dist/chunks/package.mjs +1 -1
  87. package/dist/chunks/paradigm.mjs +2 -2
  88. package/dist/chunks/permission-manager.mjs +2 -2
  89. package/dist/chunks/permissions.mjs +3 -3
  90. package/dist/chunks/persistence-manager.mjs +19 -12
  91. package/dist/chunks/persistence.mjs +5 -3
  92. package/dist/chunks/plugin.mjs +2 -2
  93. package/dist/chunks/prompts.mjs +5 -5
  94. package/dist/chunks/providers.mjs +2 -2
  95. package/dist/chunks/quick-actions.mjs +7 -6
  96. package/dist/chunks/quick-provider.mjs +5 -4
  97. package/dist/chunks/quick-setup.mjs +20 -15
  98. package/dist/chunks/remote.mjs +15 -16
  99. package/dist/chunks/{convoy-manager.mjs → session-manager.mjs} +1129 -1095
  100. package/dist/chunks/session.mjs +2 -2
  101. package/dist/chunks/sessions.mjs +3 -3
  102. package/dist/chunks/silent-updater.mjs +1 -1
  103. package/dist/chunks/simple-config.mjs +2 -2
  104. package/dist/chunks/skill2.mjs +3 -3
  105. package/dist/chunks/skills-sync.mjs +5 -5
  106. package/dist/chunks/skills.mjs +3 -3
  107. package/dist/chunks/slash-commands.mjs +9 -8
  108. package/dist/chunks/smart-defaults.mjs +9 -5
  109. package/dist/chunks/startup.mjs +1 -1
  110. package/dist/chunks/stats.mjs +2 -2
  111. package/dist/chunks/status.mjs +37 -22
  112. package/dist/chunks/team.mjs +3 -3
  113. package/dist/chunks/thinking.mjs +4 -4
  114. package/dist/chunks/trace.mjs +2 -2
  115. package/dist/chunks/uninstall.mjs +9 -9
  116. package/dist/chunks/update.mjs +14 -11
  117. package/dist/chunks/upgrade-manager.mjs +3 -3
  118. package/dist/chunks/upgrade.mjs +25 -9
  119. package/dist/chunks/version-checker.mjs +4 -4
  120. package/dist/chunks/vim.mjs +3 -3
  121. package/dist/chunks/workflows.mjs +1 -1
  122. package/dist/chunks/wsl.mjs +1 -1
  123. package/dist/chunks/zero-config.mjs +4 -4
  124. package/dist/cli.mjs +60 -26
  125. package/dist/index.d.mts +4392 -4392
  126. package/dist/index.d.ts +4392 -4392
  127. package/dist/index.mjs +4314 -4314
  128. package/dist/shared/{ccjk.DcKLglJQ.mjs → ccjk.BIxuVL3_.mjs} +2 -2
  129. package/dist/shared/{ccjk.DJdmgr2d.mjs → ccjk.BJMRY2Ra.mjs} +5 -3
  130. package/dist/shared/{ccjk.B1TwPltj.mjs → ccjk.BOu1yav7.mjs} +3 -2
  131. package/dist/shared/{ccjk.mJpVRDZ8.mjs → ccjk.BWFpnOr3.mjs} +1 -1
  132. package/dist/shared/{ccjk.BfIpomdz.mjs → ccjk.CHUEFqmw.mjs} +3 -2
  133. package/dist/shared/{ccjk.CqdbaXqU.mjs → ccjk.CLUL0pAV.mjs} +9 -5
  134. package/dist/shared/{ccjk.Cot9p9_n.mjs → ccjk.Cjj8SVrn.mjs} +1 -1
  135. package/dist/shared/{ccjk.CfrpIIKy.mjs → ccjk.Crd_nEfj.mjs} +38 -20
  136. package/dist/shared/{ccjk.DCw2WnZU.mjs → ccjk.CvChMYvB.mjs} +1 -1
  137. package/dist/shared/{ccjk.CXzjn01x.mjs → ccjk.D8ZLYSZZ.mjs} +1 -1
  138. package/dist/shared/{ccjk.BrPUmTqm.mjs → ccjk.DJuyfrlL.mjs} +164 -82
  139. package/dist/shared/{ccjk.DHXfsrwn.mjs → ccjk.DRfdq6yl.mjs} +4 -4
  140. package/dist/shared/{ccjk.DXRAZcix.mjs → ccjk.DScm_NnL.mjs} +8 -4
  141. package/dist/shared/{ccjk.XsJWJuQP.mjs → ccjk.DfZKjHvG.mjs} +6 -128
  142. package/dist/shared/{ccjk.BFxsJM0k.mjs → ccjk.DwSebGy0.mjs} +4 -3
  143. package/dist/shared/ccjk.DxWqH-EF.mjs +170 -0
  144. package/dist/shared/{ccjk.Cwa_FiTX.mjs → ccjk.I6IuYdc_.mjs} +2 -2
  145. package/dist/shared/{ccjk.DpstNaeR.mjs → ccjk.KpFl2RDA.mjs} +3 -3
  146. package/dist/shared/{ccjk.dYDLfmph.mjs → ccjk._dESH4Rk.mjs} +1 -1
  147. package/dist/shared/{ccjk.BxSmJ8B7.mjs → ccjk.wLJHO0Af.mjs} +2 -1
  148. package/package.json +2 -1
  149. package/dist/chunks/index15.mjs +0 -218
  150. package/dist/shared/{ccjk.c-ETfBZ_.mjs → ccjk.eIn-g1yI.mjs} +96 -96
@@ -1,15 +1,15 @@
1
1
  import { displayBannerWithInfo } from './banner.mjs';
2
- import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.DcKLglJQ.mjs';
2
+ import { h as handleExitPromptError, a as handleGeneralError } from '../shared/ccjk.BIxuVL3_.mjs';
3
3
  import { s as showCcrMenu, a as showMainMenu } from './menu.mjs';
4
- import './index3.mjs';
4
+ import './index2.mjs';
5
5
  import '../shared/ccjk.BAGoDD49.mjs';
6
- import './index6.mjs';
6
+ import './index5.mjs';
7
7
  import 'node:fs';
8
8
  import 'node:process';
9
9
  import 'node:url';
10
10
  import '../shared/ccjk.bQ7Dh1g4.mjs';
11
11
  import '../shared/ccjk.gDEDGD_t.mjs';
12
- import './index4.mjs';
12
+ import './index3.mjs';
13
13
  import 'node:readline';
14
14
  import 'stream';
15
15
  import 'node:tty';
@@ -26,7 +26,7 @@ import 'buffer';
26
26
  import 'string_decoder';
27
27
  import './codex.mjs';
28
28
  import '../shared/ccjk.RyizuzOI.mjs';
29
- import './index8.mjs';
29
+ import './index7.mjs';
30
30
  import '../shared/ccjk.DeWpAShp.mjs';
31
31
  import '../shared/ccjk.CxpGa6MC.mjs';
32
32
  import '../shared/ccjk.BBtCGd_g.mjs';
@@ -36,32 +36,34 @@ import 'node:child_process';
36
36
  import 'node:stream';
37
37
  import './constants.mjs';
38
38
  import './ccjk-config.mjs';
39
- import './index7.mjs';
39
+ import './index6.mjs';
40
40
  import './fs-operations.mjs';
41
41
  import 'node:fs/promises';
42
42
  import './json-config.mjs';
43
43
  import './config.mjs';
44
44
  import './claude-config.mjs';
45
45
  import './platform.mjs';
46
- import '../shared/ccjk.DXRAZcix.mjs';
46
+ import '../shared/ccjk.DScm_NnL.mjs';
47
47
  import '../shared/ccjk.BFQ7yr5S.mjs';
48
48
  import './prompts.mjs';
49
- import '../shared/ccjk.mJpVRDZ8.mjs';
50
- import '../shared/ccjk.Cot9p9_n.mjs';
49
+ import '../shared/ccjk.BWFpnOr3.mjs';
50
+ import '../shared/ccjk.Cjj8SVrn.mjs';
51
51
  import './smart-defaults.mjs';
52
- import '../shared/ccjk.BrPUmTqm.mjs';
52
+ import '../shared/ccjk.DJuyfrlL.mjs';
53
53
  import './config2.mjs';
54
54
  import './init.mjs';
55
- import '../shared/ccjk.XsJWJuQP.mjs';
55
+ import '../shared/ccjk.DfZKjHvG.mjs';
56
56
  import './auto-updater.mjs';
57
57
  import './version-checker.mjs';
58
+ import '../shared/ccjk.DxWqH-EF.mjs';
59
+ import './claude-code-config-manager.mjs';
58
60
  import './installer.mjs';
59
- import '../shared/ccjk.dYDLfmph.mjs';
61
+ import '../shared/ccjk._dESH4Rk.mjs';
60
62
  import './simple-config.mjs';
61
63
  import './commands.mjs';
62
64
  import './ccjk-agents.mjs';
63
- import '../shared/ccjk.DHXfsrwn.mjs';
64
- import './index9.mjs';
65
+ import '../shared/ccjk.DRfdq6yl.mjs';
66
+ import './index8.mjs';
65
67
  import 'tinyglobby';
66
68
  import '../shared/ccjk.CfKKcvWy.mjs';
67
69
  import '../shared/ccjk.C2jHOZVP.mjs';
@@ -73,10 +75,10 @@ import './api-providers.mjs';
73
75
  import '../shared/ccjk.SPoXMvZD.mjs';
74
76
  import '../shared/ccjk.J8YiPsOw.mjs';
75
77
  import './uninstall.mjs';
76
- import '../shared/ccjk.DCw2WnZU.mjs';
78
+ import '../shared/ccjk.CvChMYvB.mjs';
77
79
  import 'globby';
78
80
  import './update.mjs';
79
- import '../shared/ccjk.DpstNaeR.mjs';
81
+ import '../shared/ccjk.KpFl2RDA.mjs';
80
82
 
81
83
  async function ccr(options = {}) {
82
84
  try {
@@ -1,7 +1,7 @@
1
1
  import process__default from 'node:process';
2
- import a from './index3.mjs';
2
+ import a from './index2.mjs';
3
3
  import { x as K } from './main.mjs';
4
- import { i18n } from './index6.mjs';
4
+ import { i18n } from './index5.mjs';
5
5
  import '../shared/ccjk.BAGoDD49.mjs';
6
6
  import 'module';
7
7
  import 'node:child_process';
@@ -1,7 +1,7 @@
1
1
  import process__default from 'node:process';
2
- import a from './index3.mjs';
3
- import { ensureI18nInitialized, i18n } from './index6.mjs';
4
- import { r as resolveCodeType } from '../shared/ccjk.Cot9p9_n.mjs';
2
+ import a from './index2.mjs';
3
+ import { ensureI18nInitialized, i18n } from './index5.mjs';
4
+ import { r as resolveCodeType } from '../shared/ccjk.Cjj8SVrn.mjs';
5
5
  import { checkAndUpdateTools } from './auto-updater.mjs';
6
6
  import { r as runCodexUpdate } from './codex.mjs';
7
7
  import '../shared/ccjk.BAGoDD49.mjs';
@@ -23,16 +23,16 @@ import 'module';
23
23
  import 'node:path';
24
24
  import 'node:stream';
25
25
  import 'node:readline';
26
- import '../shared/ccjk.BrPUmTqm.mjs';
26
+ import '../shared/ccjk.DJuyfrlL.mjs';
27
27
  import './ccjk-config.mjs';
28
28
  import '../shared/ccjk.BBtCGd_g.mjs';
29
+ import './index6.mjs';
29
30
  import './index7.mjs';
30
- import './index8.mjs';
31
31
  import '../shared/ccjk.Cjgrln_h.mjs';
32
32
  import '../shared/ccjk.DeWpAShp.mjs';
33
- import '../shared/ccjk.mJpVRDZ8.mjs';
33
+ import '../shared/ccjk.BWFpnOr3.mjs';
34
34
  import 'node:async_hooks';
35
- import './index4.mjs';
35
+ import './index3.mjs';
36
36
  import 'stream';
37
37
  import 'node:tty';
38
38
  import 'node:util';
@@ -45,7 +45,7 @@ import './version-checker.mjs';
45
45
  import '../shared/ccjk.CxpGa6MC.mjs';
46
46
  import './config.mjs';
47
47
  import './claude-config.mjs';
48
- import '../shared/ccjk.DXRAZcix.mjs';
48
+ import '../shared/ccjk.DScm_NnL.mjs';
49
49
  import '../shared/ccjk.BFQ7yr5S.mjs';
50
50
  import './prompts.mjs';
51
51
  import '../shared/ccjk.gDEDGD_t.mjs';
@@ -7,16 +7,16 @@ import { readJsonConfig } from './json-config.mjs';
7
7
  import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
8
8
  import '../shared/ccjk.BAGoDD49.mjs';
9
9
  import 'node:os';
10
- import './index6.mjs';
10
+ import './index5.mjs';
11
11
  import 'node:fs';
12
12
  import 'node:process';
13
13
  import 'node:url';
14
14
  import '../shared/ccjk.BBtCGd_g.mjs';
15
- import './index7.mjs';
15
+ import './index6.mjs';
16
16
  import 'node:crypto';
17
17
  import 'node:fs/promises';
18
+ import './index2.mjs';
18
19
  import './index3.mjs';
19
- import './index4.mjs';
20
20
  import 'node:readline';
21
21
  import 'stream';
22
22
  import 'node:tty';
@@ -35,7 +35,7 @@ import './main.mjs';
35
35
  import 'module';
36
36
  import 'node:child_process';
37
37
  import 'node:stream';
38
- import '../shared/ccjk.DXRAZcix.mjs';
38
+ import '../shared/ccjk.DScm_NnL.mjs';
39
39
 
40
40
  class ClaudeCodeConfigManager {
41
41
  static CONFIG_FILE = ZCF_CONFIG_FILE;
@@ -202,7 +202,7 @@ class ClaudeCodeConfigManager {
202
202
  * Apply profile settings to Claude Code runtime
203
203
  */
204
204
  static async applyProfileSettings(profile) {
205
- const { ensureI18nInitialized, i18n } = await import('./index6.mjs');
205
+ const { ensureI18nInitialized, i18n } = await import('./index5.mjs');
206
206
  ensureI18nInitialized();
207
207
  try {
208
208
  if (!profile) {
@@ -242,18 +242,20 @@ class ClaudeCodeConfigManager {
242
242
  else
243
243
  delete settings.env.ANTHROPIC_BASE_URL;
244
244
  }
245
- const hasModelConfig = Boolean(
246
- profile.primaryModel || profile.defaultHaikuModel || profile.defaultSonnetModel || profile.defaultOpusModel
245
+ const hasAdaptiveModelConfig = Boolean(
246
+ profile.defaultHaikuModel || profile.defaultSonnetModel || profile.defaultOpusModel
247
247
  );
248
- if (hasModelConfig) {
249
- if (profile.primaryModel)
250
- settings.env.ANTHROPIC_MODEL = profile.primaryModel;
248
+ if (hasAdaptiveModelConfig) {
249
+ delete settings.model;
251
250
  if (profile.defaultHaikuModel)
252
251
  settings.env.ANTHROPIC_DEFAULT_HAIKU_MODEL = profile.defaultHaikuModel;
253
252
  if (profile.defaultSonnetModel)
254
253
  settings.env.ANTHROPIC_DEFAULT_SONNET_MODEL = profile.defaultSonnetModel;
255
254
  if (profile.defaultOpusModel)
256
255
  settings.env.ANTHROPIC_DEFAULT_OPUS_MODEL = profile.defaultOpusModel;
256
+ } else if (profile.primaryModel) {
257
+ delete settings.model;
258
+ settings.env.ANTHROPIC_MODEL = profile.primaryModel;
257
259
  } else {
258
260
  clearModelEnv(settings.env);
259
261
  }
@@ -1,10 +1,10 @@
1
- import a from './index3.mjs';
2
- import { i as inquirer } from './index4.mjs';
3
- import { ensureI18nInitialized, i18n } from './index6.mjs';
1
+ import a from './index2.mjs';
2
+ import { i as inquirer } from './index3.mjs';
3
+ import { ensureI18nInitialized, i18n } from './index5.mjs';
4
4
  import { ClaudeCodeConfigManager } from './claude-code-config-manager.mjs';
5
5
  import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
6
- import { p as promptBoolean } from '../shared/ccjk.mJpVRDZ8.mjs';
7
- import { v as validateApiKey } from '../shared/ccjk.XsJWJuQP.mjs';
6
+ import { p as promptBoolean } from '../shared/ccjk.BWFpnOr3.mjs';
7
+ import { v as validateApiKey } from '../shared/ccjk.DfZKjHvG.mjs';
8
8
  import '../shared/ccjk.BAGoDD49.mjs';
9
9
  import 'node:readline';
10
10
  import 'stream';
@@ -28,7 +28,7 @@ import '../shared/ccjk.RyizuzOI.mjs';
28
28
  import './constants.mjs';
29
29
  import './ccjk-config.mjs';
30
30
  import '../shared/ccjk.BBtCGd_g.mjs';
31
- import './index7.mjs';
31
+ import './index6.mjs';
32
32
  import './fs-operations.mjs';
33
33
  import 'node:fs/promises';
34
34
  import './json-config.mjs';
@@ -39,7 +39,7 @@ import './main.mjs';
39
39
  import 'module';
40
40
  import 'node:child_process';
41
41
  import 'node:stream';
42
- import '../shared/ccjk.DXRAZcix.mjs';
42
+ import '../shared/ccjk.DScm_NnL.mjs';
43
43
  import '../shared/ccjk.DeWpAShp.mjs';
44
44
 
45
45
  function getAuthTypeLabel(authType) {
@@ -1,6 +1,6 @@
1
1
  import { existsSync, readFileSync } from 'node:fs';
2
2
  import { CLAUDE_VSC_CONFIG_FILE, CLAUDE_DIR, ClAUDE_CONFIG_FILE } from './constants.mjs';
3
- import { ensureI18nInitialized, i18n } from './index6.mjs';
3
+ import { ensureI18nInitialized, i18n } from './index5.mjs';
4
4
  import { readJsonConfig, writeJsonConfig, backupJsonConfig } from './json-config.mjs';
5
5
  import { k as isWindows, m as getMcpCommand } from './platform.mjs';
6
6
  import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
@@ -1,6 +1,6 @@
1
1
  import process__default from 'node:process';
2
2
  import { exec as q } from './main.mjs';
3
- import { i18n, initI18n } from './index6.mjs';
3
+ import { i18n, initI18n } from './index5.mjs';
4
4
  import { j as findRealCommandPath } from './platform.mjs';
5
5
  import 'module';
6
6
  import 'node:child_process';
@@ -1,26 +1,26 @@
1
1
  import { EventEmitter } from 'node:events';
2
- import { a as getGlobalStateManager, g as getGlobalConvoyManager, c as contextLoader, S as SessionIntelligence } from './convoy-manager.mjs';
3
- import { l as logger } from '../shared/ccjk.DJdmgr2d.mjs';
4
- import { h as hookRegistry } from '../shared/ccjk.B1TwPltj.mjs';
2
+ import { a as getGlobalStateManager, g as getGlobalConvoyManager, c as contextLoader, S as SessionIntelligence } from './session-manager.mjs';
3
+ import { l as logger } from '../shared/ccjk.BJMRY2Ra.mjs';
4
+ import { h as hookRegistry } from '../shared/ccjk.BOu1yav7.mjs';
5
5
  import { Buffer } from 'node:buffer';
6
6
  import { randomUUID } from 'node:crypto';
7
7
  import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'node:fs';
8
8
  import { d as dirname, j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
9
9
  import { n as nanoid } from '../shared/ccjk.BoApaI4j.mjs';
10
10
  import process__default from 'node:process';
11
- import 'tinyglobby';
12
- import '../shared/ccjk.BfIpomdz.mjs';
13
- import './index3.mjs';
14
- import '../shared/ccjk.BAGoDD49.mjs';
15
- import '../shared/ccjk.BxSmJ8B7.mjs';
16
- import 'node:child_process';
17
- import 'node:fs/promises';
18
11
  import 'node:os';
19
- import 'node:path';
20
12
  import './main.mjs';
21
13
  import 'module';
14
+ import 'node:child_process';
15
+ import 'node:path';
22
16
  import 'node:stream';
23
17
  import 'node:readline';
18
+ import 'tinyglobby';
19
+ import '../shared/ccjk.CHUEFqmw.mjs';
20
+ import './index2.mjs';
21
+ import '../shared/ccjk.BAGoDD49.mjs';
22
+ import '../shared/ccjk.wLJHO0Af.mjs';
23
+ import 'node:fs/promises';
24
24
 
25
25
  async function emitCommandHookEvent(event, data, sessionId) {
26
26
  try {
@@ -2224,7 +2224,7 @@ const promptUserQuestion = async (question) => {
2224
2224
  return null;
2225
2225
  }
2226
2226
  try {
2227
- const inquirer = (await import('./index4.mjs').then(function (n) { return n.c; })).default;
2227
+ const inquirer = (await import('./index3.mjs').then(function (n) { return n.c; })).default;
2228
2228
  const choices = question.options.map((option) => ({
2229
2229
  name: option.description ? `${option.label} \u2014 ${option.description}` : option.label,
2230
2230
  value: option.value
@@ -3875,9 +3875,9 @@ class BrainCliHook extends EventEmitter {
3875
3875
  if (this.initialized) {
3876
3876
  return;
3877
3877
  }
3878
- const { getGlobalStateManager } = await import('./convoy-manager.mjs').then(function (n) { return n.d; });
3878
+ const { getGlobalStateManager } = await import('./session-manager.mjs').then(function (n) { return n.b; });
3879
3879
  const { getGlobalMailboxManager } = await Promise.resolve().then(function () { return persistentMailbox; });
3880
- const { getGlobalConvoyManager } = await import('./convoy-manager.mjs').then(function (n) { return n.e; });
3880
+ const { getGlobalConvoyManager } = await import('./session-manager.mjs').then(function (n) { return n.d; });
3881
3881
  const stateManager = getGlobalStateManager();
3882
3882
  const mailboxManager = getGlobalMailboxManager();
3883
3883
  const convoyManager = getGlobalConvoyManager();
@@ -4032,7 +4032,7 @@ ${"=".repeat(60)}`);
4032
4032
  */
4033
4033
  async buildAdditionalContext() {
4034
4034
  try {
4035
- const { loadContextAtDepth } = await import('./convoy-manager.mjs').then(function (n) { return n.b; });
4035
+ const { loadContextAtDepth } = await import('./session-manager.mjs').then(function (n) { return n.e; });
4036
4036
  const ctx = await loadContextAtDepth("L0");
4037
4037
  if (ctx.totalTokens > 0) {
4038
4038
  return `[Brain Context: ${ctx.layers.size} layers, ~${ctx.totalTokens} tokens, depth=${ctx.depth}]`;
@@ -1,10 +1,10 @@
1
- import a from './index3.mjs';
2
- import { i as inquirer } from './index4.mjs';
1
+ import a from './index2.mjs';
2
+ import { i as inquirer } from './index3.mjs';
3
3
  import { CODEX_AUTH_FILE } from './constants.mjs';
4
- import { ensureI18nInitialized, i18n } from './index6.mjs';
4
+ import { ensureI18nInitialized, i18n } from './index5.mjs';
5
5
  import { readJsonConfig } from './json-config.mjs';
6
6
  import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
7
- import { p as promptBoolean } from '../shared/ccjk.mJpVRDZ8.mjs';
7
+ import { p as promptBoolean } from '../shared/ccjk.BWFpnOr3.mjs';
8
8
  import { f as detectConfigManagementMode } from './codex.mjs';
9
9
  import { deleteProviders, addProviderToExisting, editExistingProvider } from './codex-provider-manager.mjs';
10
10
  import '../shared/ccjk.BAGoDD49.mjs';
@@ -30,7 +30,7 @@ import '../shared/ccjk.RyizuzOI.mjs';
30
30
  import './fs-operations.mjs';
31
31
  import 'node:fs/promises';
32
32
  import '../shared/ccjk.DeWpAShp.mjs';
33
- import './index8.mjs';
33
+ import './index7.mjs';
34
34
  import '../shared/ccjk.CxpGa6MC.mjs';
35
35
  import '../shared/ccjk.BBtCGd_g.mjs';
36
36
  import './main.mjs';
@@ -38,11 +38,11 @@ import 'module';
38
38
  import 'node:child_process';
39
39
  import 'node:stream';
40
40
  import './ccjk-config.mjs';
41
- import './index7.mjs';
41
+ import './index6.mjs';
42
42
  import './config.mjs';
43
43
  import './claude-config.mjs';
44
44
  import './platform.mjs';
45
- import '../shared/ccjk.DXRAZcix.mjs';
45
+ import '../shared/ccjk.DScm_NnL.mjs';
46
46
  import './prompts.mjs';
47
47
  import '../shared/ccjk.gDEDGD_t.mjs';
48
48
 
@@ -1,13 +1,13 @@
1
- import { ensureI18nInitialized, i18n } from './index6.mjs';
1
+ import { ensureI18nInitialized, i18n } from './index5.mjs';
2
2
  import { a as readCodexConfig, d as backupCodexComplete, w as writeCodexConfig, e as writeAuthFile } from './codex.mjs';
3
3
  import 'node:fs';
4
4
  import 'node:process';
5
5
  import 'node:url';
6
6
  import '../shared/ccjk.bQ7Dh1g4.mjs';
7
- import './index3.mjs';
7
+ import './index2.mjs';
8
8
  import '../shared/ccjk.BAGoDD49.mjs';
9
9
  import '../shared/ccjk.RyizuzOI.mjs';
10
- import './index4.mjs';
10
+ import './index3.mjs';
11
11
  import 'node:readline';
12
12
  import 'stream';
13
13
  import 'node:tty';
@@ -22,7 +22,7 @@ import 'node:os';
22
22
  import 'node:crypto';
23
23
  import 'buffer';
24
24
  import 'string_decoder';
25
- import './index8.mjs';
25
+ import './index7.mjs';
26
26
  import '../shared/ccjk.DeWpAShp.mjs';
27
27
  import '../shared/ccjk.CxpGa6MC.mjs';
28
28
  import '../shared/ccjk.BBtCGd_g.mjs';
@@ -32,18 +32,18 @@ import 'node:child_process';
32
32
  import 'node:stream';
33
33
  import './constants.mjs';
34
34
  import './ccjk-config.mjs';
35
- import './index7.mjs';
35
+ import './index6.mjs';
36
36
  import './fs-operations.mjs';
37
37
  import 'node:fs/promises';
38
38
  import './json-config.mjs';
39
39
  import './config.mjs';
40
40
  import './claude-config.mjs';
41
41
  import './platform.mjs';
42
- import '../shared/ccjk.DXRAZcix.mjs';
42
+ import '../shared/ccjk.DScm_NnL.mjs';
43
43
  import '../shared/ccjk.BFQ7yr5S.mjs';
44
44
  import './prompts.mjs';
45
45
  import '../shared/ccjk.gDEDGD_t.mjs';
46
- import '../shared/ccjk.mJpVRDZ8.mjs';
46
+ import '../shared/ccjk.BWFpnOr3.mjs';
47
47
 
48
48
  async function addProviderToExisting(provider, apiKey, allowOverwrite = false) {
49
49
  ensureI18nInitialized();
@@ -1,8 +1,8 @@
1
1
  import { promises } from 'node:fs';
2
2
  import { CODEX_DIR, CODEX_CONFIG_FILE, CODEX_AUTH_FILE, CODEX_AGENTS_FILE, CODEX_PROMPTS_DIR } from './constants.mjs';
3
- import { i18n } from './index6.mjs';
3
+ import { i18n } from './index5.mjs';
4
4
  import { writeFileAtomic } from './fs-operations.mjs';
5
- import { m as moveToTrash } from '../shared/ccjk.DCw2WnZU.mjs';
5
+ import { m as moveToTrash } from '../shared/ccjk.CvChMYvB.mjs';
6
6
  import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
7
7
  import 'node:os';
8
8
  import 'node:process';
@@ -1,14 +1,14 @@
1
1
  import process__default from 'node:process';
2
2
  import { fileURLToPath } from 'node:url';
3
- import a from './index3.mjs';
3
+ import a from './index2.mjs';
4
4
  import { d as dayjs } from '../shared/ccjk.RyizuzOI.mjs';
5
- import { i as inquirer } from './index4.mjs';
6
- import ora from './index8.mjs';
5
+ import { i as inquirer } from './index3.mjs';
6
+ import ora from './index7.mjs';
7
7
  import { a as semver } from '../shared/ccjk.CxpGa6MC.mjs';
8
8
  import { p as parse } from '../shared/ccjk.BBtCGd_g.mjs';
9
9
  import { x as K } from './main.mjs';
10
10
  import { CODEX_AUTH_FILE, SUPPORTED_LANGS, CODEX_DIR, CODEX_AGENTS_FILE, CODEX_PROMPTS_DIR, CODEX_CONFIG_FILE, AI_OUTPUT_LANGUAGES, ZCF_CONFIG_FILE } from './constants.mjs';
11
- import { ensureI18nInitialized, i18n, format } from './index6.mjs';
11
+ import { ensureI18nInitialized, i18n, format } from './index5.mjs';
12
12
  import { updateZcfConfig, readZcfConfig, readDefaultTomlConfig, updateTomlConfig } from './ccjk-config.mjs';
13
13
  import { e as applyAiLanguageDirective } from './config.mjs';
14
14
  import { exists, readFile, ensureDir, writeFileAtomic, writeFile, copyFile, copyDir } from './fs-operations.mjs';
@@ -16,7 +16,7 @@ import { readJsonConfig, writeJsonConfig } from './json-config.mjs';
16
16
  import { k as isWindows, m as getMcpCommand, l as getSystemRoot, w as wrapCommandWithSudo, n as normalizeTomlPath } from './platform.mjs';
17
17
  import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
18
18
  import { resolveAiOutputLanguage } from './prompts.mjs';
19
- import { p as promptBoolean } from '../shared/ccjk.mJpVRDZ8.mjs';
19
+ import { p as promptBoolean } from '../shared/ccjk.BWFpnOr3.mjs';
20
20
  import 'node:child_process';
21
21
  import { homedir } from 'node:os';
22
22
  import { j as join, d as dirname } from '../shared/ccjk.bQ7Dh1g4.mjs';
@@ -1,7 +1,7 @@
1
1
  import { exec } from 'node:child_process';
2
2
  import { promisify } from 'node:util';
3
- import a from './index3.mjs';
4
- import { ensureI18nInitialized, i18n } from './index6.mjs';
3
+ import a from './index2.mjs';
4
+ import { ensureI18nInitialized, i18n } from './index5.mjs';
5
5
  import '../shared/ccjk.BAGoDD49.mjs';
6
6
  import 'node:fs';
7
7
  import 'node:process';
@@ -1,10 +1,10 @@
1
1
  import process__default from 'node:process';
2
- import a from './index3.mjs';
2
+ import a from './index2.mjs';
3
3
  import { checkAgentBrowserInstalled } from './installer2.mjs';
4
4
  import '../shared/ccjk.BAGoDD49.mjs';
5
5
  import 'node:child_process';
6
6
  import 'node:util';
7
- import './index6.mjs';
7
+ import './index5.mjs';
8
8
  import 'node:fs';
9
9
  import 'node:url';
10
10
  import '../shared/ccjk.bQ7Dh1g4.mjs';
@@ -322,7 +322,7 @@ ${bold(cyan("Agent Browser Status"))}
322
322
  if (options.verbose) {
323
323
  console.log(`
324
324
  ${gray("Debug Info:")}`);
325
- console.log(` ${gray("Install path:")} ${installPath}`);
325
+ console.log(` ${gray("Install path:")} global npm package`);
326
326
  console.log(` ${gray("Platform:")} ${process__default.platform}`);
327
327
  console.log(` ${gray("Arch:")} ${process__default.arch}`);
328
328
  }
@@ -1,5 +1,5 @@
1
- import a from './index3.mjs';
2
- import { i as inquirer } from './index4.mjs';
1
+ import a from './index2.mjs';
2
+ import { i as inquirer } from './index3.mjs';
3
3
  import { exec as q } from './main.mjs';
4
4
  import '../shared/ccjk.BAGoDD49.mjs';
5
5
  import 'node:readline';
@@ -1,8 +1,8 @@
1
1
  import { existsSync, mkdirSync, writeFileSync } from 'node:fs';
2
2
  import { homedir } from 'node:os';
3
3
  import { join } from 'node:path';
4
- import a from './index3.mjs';
5
- import { i18n } from './index6.mjs';
4
+ import a from './index2.mjs';
5
+ import { i18n } from './index5.mjs';
6
6
  import '../shared/ccjk.BAGoDD49.mjs';
7
7
  import 'node:process';
8
8
  import 'node:url';
@@ -1,13 +1,13 @@
1
1
  import { existsSync, statSync, readFileSync } from 'node:fs';
2
2
  import { homedir } from 'node:os';
3
3
  import process__default from 'node:process';
4
- import a from './index3.mjs';
4
+ import a from './index2.mjs';
5
5
  import { d as dayjs } from '../shared/ccjk.RyizuzOI.mjs';
6
6
  import { SETTINGS_FILE, ClAUDE_CONFIG_FILE, CLAUDE_VSC_CONFIG_FILE } from './constants.mjs';
7
7
  import { STATUS } from './banner.mjs';
8
8
  import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
9
9
  import '../shared/ccjk.BAGoDD49.mjs';
10
- import './index6.mjs';
10
+ import './index5.mjs';
11
11
  import 'node:url';
12
12
  import '../shared/ccjk.gDEDGD_t.mjs';
13
13
 
@@ -1,12 +1,12 @@
1
1
  import process__default from 'node:process';
2
- import a from './index3.mjs';
3
- import { i as inquirer } from './index4.mjs';
2
+ import a from './index2.mjs';
3
+ import { i as inquirer } from './index3.mjs';
4
4
  import { resolveCodeToolType, isCodeToolType, DEFAULT_CODE_TOOL_TYPE } from './constants.mjs';
5
- import { ensureI18nInitialized, i18n } from './index6.mjs';
5
+ import { ensureI18nInitialized, i18n } from './index5.mjs';
6
6
  import { readZcfConfig } from './ccjk-config.mjs';
7
7
  import { ClaudeCodeConfigManager } from './claude-code-config-manager.mjs';
8
8
  import { s as switchCodexProvider, l as listCodexProviders, a as readCodexConfig, b as switchToOfficialLogin, c as switchToProvider } from './codex.mjs';
9
- import { a as handleGeneralError } from '../shared/ccjk.DcKLglJQ.mjs';
9
+ import { a as handleGeneralError } from '../shared/ccjk.BIxuVL3_.mjs';
10
10
  import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
11
11
  import '../shared/ccjk.BAGoDD49.mjs';
12
12
  import 'node:readline';
@@ -27,7 +27,7 @@ import '../shared/ccjk.bQ7Dh1g4.mjs';
27
27
  import 'node:fs';
28
28
  import 'node:url';
29
29
  import '../shared/ccjk.BBtCGd_g.mjs';
30
- import './index7.mjs';
30
+ import './index6.mjs';
31
31
  import './fs-operations.mjs';
32
32
  import 'node:fs/promises';
33
33
  import './json-config.mjs';
@@ -39,13 +39,13 @@ import './main.mjs';
39
39
  import 'module';
40
40
  import 'node:child_process';
41
41
  import 'node:stream';
42
- import '../shared/ccjk.DXRAZcix.mjs';
43
- import './index8.mjs';
42
+ import '../shared/ccjk.DScm_NnL.mjs';
43
+ import './index7.mjs';
44
44
  import '../shared/ccjk.DeWpAShp.mjs';
45
45
  import '../shared/ccjk.CxpGa6MC.mjs';
46
46
  import './prompts.mjs';
47
47
  import '../shared/ccjk.gDEDGD_t.mjs';
48
- import '../shared/ccjk.mJpVRDZ8.mjs';
48
+ import '../shared/ccjk.BWFpnOr3.mjs';
49
49
 
50
50
  async function configSwitchCommand(options) {
51
51
  try {
@@ -1,13 +1,13 @@
1
1
  import { fileURLToPath } from 'node:url';
2
- import a from './index3.mjs';
2
+ import a from './index2.mjs';
3
3
  import { d as dayjs } from '../shared/ccjk.RyizuzOI.mjs';
4
- import { i as inquirer } from './index4.mjs';
4
+ import { i as inquirer } from './index3.mjs';
5
5
  import { CLAUDE_DIR, SETTINGS_FILE, CLAUDE_VSC_CONFIG_FILE, AI_OUTPUT_LANGUAGES } from './constants.mjs';
6
- import { ensureI18nInitialized, i18n } from './index6.mjs';
6
+ import { ensureI18nInitialized, i18n } from './index5.mjs';
7
7
  import { s as setPrimaryApiKey, a as addCompletedOnboarding, d as deepMerge } from './claude-config.mjs';
8
8
  import { exists, ensureDir, copyDir, writeFileAtomic, copyFile } from './fs-operations.mjs';
9
9
  import { readJsonConfig, writeJsonConfig } from './json-config.mjs';
10
- import { m as mergeAndCleanPermissions } from '../shared/ccjk.DXRAZcix.mjs';
10
+ import { m as mergeAndCleanPermissions } from '../shared/ccjk.DScm_NnL.mjs';
11
11
  import { j as join, d as dirname } from '../shared/ccjk.bQ7Dh1g4.mjs';
12
12
 
13
13
  const MODEL_ENV_KEYS = [
@@ -109,7 +109,8 @@ function configureApi(apiConfig) {
109
109
  if (verification.env[envKey] !== apiConfig.key) {
110
110
  console.error(a.red("\u26A0 API config write verification failed \u2014 retrying..."));
111
111
  const freshSettings = readJsonConfig(SETTINGS_FILE) || settings;
112
- if (!freshSettings.env) freshSettings.env = {};
112
+ if (!freshSettings.env)
113
+ freshSettings.env = {};
113
114
  if (apiConfig.authType === "api_key") {
114
115
  freshSettings.env.ANTHROPIC_API_KEY = apiConfig.key;
115
116
  delete freshSettings.env.ANTHROPIC_AUTH_TOKEN;
@@ -3,15 +3,15 @@ import { existsSync, copyFileSync, mkdirSync } from 'node:fs';
3
3
  import { homedir } from 'node:os';
4
4
  import process__default from 'node:process';
5
5
  import { promisify } from 'node:util';
6
- import a from './index3.mjs';
6
+ import a from './index2.mjs';
7
7
  import { d as dayjs } from '../shared/ccjk.RyizuzOI.mjs';
8
- import { i as inquirer } from './index4.mjs';
8
+ import { i as inquirer } from './index3.mjs';
9
9
  import { SETTINGS_FILE } from './constants.mjs';
10
- import { ensureI18nInitialized, i18n } from './index6.mjs';
10
+ import { ensureI18nInitialized, i18n } from './index5.mjs';
11
11
  import { s as setPrimaryApiKey, a as addCompletedOnboarding } from './claude-config.mjs';
12
12
  import { b as backupExistingConfig } from './config.mjs';
13
13
  import { readJsonConfig, writeJsonConfig } from './json-config.mjs';
14
- import { p as promptBoolean } from '../shared/ccjk.mJpVRDZ8.mjs';
14
+ import { p as promptBoolean } from '../shared/ccjk.BWFpnOr3.mjs';
15
15
  import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
16
16
  import '../shared/ccjk.BAGoDD49.mjs';
17
17
  import 'node:readline';
@@ -33,7 +33,7 @@ import 'module';
33
33
  import 'node:stream';
34
34
  import './fs-operations.mjs';
35
35
  import 'node:fs/promises';
36
- import '../shared/ccjk.DXRAZcix.mjs';
36
+ import '../shared/ccjk.DScm_NnL.mjs';
37
37
  import '../shared/ccjk.DeWpAShp.mjs';
38
38
 
39
39
  const PROVIDER_PRESETS_URL = "https://pub-0dc3e1677e894f07bbea11b17a29e032.r2.dev/providers.json";