ccjk 13.3.5 → 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 +11 -8
  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 +65 -67
  149. package/dist/chunks/index15.mjs +0 -218
  150. package/dist/shared/{ccjk.c-ETfBZ_.mjs → ccjk.eIn-g1yI.mjs} +96 -96
@@ -1,5 +1,5 @@
1
- import a from './index3.mjs';
2
- import { i18n } from './index6.mjs';
1
+ import a from './index2.mjs';
2
+ import { i18n } from './index5.mjs';
3
3
  import { displayBannerWithInfo } from './banner.mjs';
4
4
  import process__default from 'node:process';
5
5
  import { n as nanoid } from '../shared/ccjk.BoApaI4j.mjs';
@@ -1,7 +1,7 @@
1
- import a from './index3.mjs';
2
- import { i as inquirer } from './index4.mjs';
3
- import { i18n } from './index6.mjs';
4
- import { m as maskToken, a as isValidTokenFormat, c as generateDeviceToken, d as decryptToken, e as encryptToken, f as getDeviceInfo, i as isDeviceBound, g as getBindingStatus, u as unbindDevice, b as bindDevice, s as sendNotification } from '../shared/ccjk.c-ETfBZ_.mjs';
1
+ import a from './index2.mjs';
2
+ import { i as inquirer } from './index3.mjs';
3
+ import { i18n } from './index5.mjs';
4
+ import { m as maskToken, a as isValidTokenFormat, c as generateDeviceToken, d as decryptToken, e as encryptToken, f as getDeviceInfo, i as isDeviceBound, g as getBindingStatus, u as unbindDevice, b as bindDevice, s as sendNotification } from '../shared/ccjk.eIn-g1yI.mjs';
5
5
  import { exec } from 'node:child_process';
6
6
  import * as fs from 'node:fs';
7
7
  import fs__default from 'node:fs';
@@ -13,7 +13,7 @@ import process__default from 'node:process';
13
13
  import { promisify } from 'node:util';
14
14
  import { writeFileAtomic } from './fs-operations.mjs';
15
15
  import { p as parse } from '../shared/ccjk.BBtCGd_g.mjs';
16
- import { stringify } from './index7.mjs';
16
+ import { stringify } from './index6.mjs';
17
17
  import '../shared/ccjk.BAGoDD49.mjs';
18
18
  import 'node:readline';
19
19
  import 'stream';
@@ -28,10 +28,10 @@ import 'buffer';
28
28
  import 'string_decoder';
29
29
  import 'node:url';
30
30
  import '../shared/ccjk.bQ7Dh1g4.mjs';
31
- import 'node:buffer';
32
31
  import '../shared/ccjk.BtB1e5jm.mjs';
33
32
  import './constants.mjs';
34
33
  import '../shared/ccjk.D6ycHbak.mjs';
34
+ import 'node:buffer';
35
35
  import 'node:fs/promises';
36
36
 
37
37
  const execAsync = promisify(exec);
@@ -1,25 +1,26 @@
1
- import a from './index3.mjs';
2
1
  import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'node:fs';
2
+ import a from './index2.mjs';
3
3
  import { CCJK_CONFIG_DIR } from './constants.mjs';
4
- import { i18n } from './index6.mjs';
5
- import { r as runHealthCheck } from '../shared/ccjk.CfrpIIKy.mjs';
4
+ import { i18n } from './index5.mjs';
5
+ import { r as runHealthCheck } from '../shared/ccjk.Crd_nEfj.mjs';
6
6
  import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
7
7
  import '../shared/ccjk.BAGoDD49.mjs';
8
8
  import 'node:os';
9
9
  import 'node:process';
10
10
  import 'node:url';
11
+ import 'node:path';
11
12
  import 'fs';
12
13
  import 'constants';
13
14
  import 'stream';
14
15
  import 'util';
15
16
  import 'assert';
16
17
  import 'path';
17
- import 'node:path';
18
18
 
19
19
  const ONBOARDING_STATE_FILE = join(CCJK_CONFIG_DIR, "onboarding.json");
20
20
  function readOnboardingState() {
21
21
  try {
22
- if (!existsSync(ONBOARDING_STATE_FILE)) return null;
22
+ if (!existsSync(ONBOARDING_STATE_FILE))
23
+ return null;
23
24
  return JSON.parse(readFileSync(ONBOARDING_STATE_FILE, "utf-8"));
24
25
  } catch {
25
26
  return null;
@@ -1,9 +1,9 @@
1
1
  import { existsSync, readFileSync, readdirSync, mkdirSync, statSync } from 'node:fs';
2
2
  import process__default from 'node:process';
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 { CCJK_CONFIG_DIR } from './constants.mjs';
8
8
  import { d as detectProject, g as getProjectSummary, a as generateSuggestions } from '../shared/ccjk.hoqrwWdN.mjs';
9
9
  import { boxify, COLORS as theme, STATUS } from './banner.mjs';
@@ -25,7 +25,7 @@ import 'node:crypto';
25
25
  import 'buffer';
26
26
  import 'string_decoder';
27
27
  import '../shared/ccjk.DeWpAShp.mjs';
28
- import './index6.mjs';
28
+ import './index5.mjs';
29
29
  import 'node:url';
30
30
  import '../shared/ccjk.gDEDGD_t.mjs';
31
31
  import 'node:fs/promises';
@@ -1,3 +1,3 @@
1
- const version = "13.3.5";
1
+ const version = "13.3.7";
2
2
 
3
3
  export { version };
@@ -1,5 +1,5 @@
1
- import a from './index3.mjs';
2
- import { f as fsParadigm } from '../shared/ccjk.BxSmJ8B7.mjs';
1
+ import a from './index2.mjs';
2
+ import { f as fsParadigm } from '../shared/ccjk.wLJHO0Af.mjs';
3
3
  import '../shared/ccjk.BAGoDD49.mjs';
4
4
  import 'node:fs';
5
5
  import 'tinyglobby';
@@ -1,11 +1,11 @@
1
1
  import { existsSync, readFileSync } from 'node:fs';
2
- import a from './index3.mjs';
2
+ import a from './index2.mjs';
3
3
  import { SETTINGS_FILE, CCJK_CONFIG_DIR } from './constants.mjs';
4
4
  import { STATUS } from './banner.mjs';
5
5
  import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
6
6
  import '../shared/ccjk.BAGoDD49.mjs';
7
7
  import 'node:os';
8
- import './index6.mjs';
8
+ import './index5.mjs';
9
9
  import 'node:process';
10
10
  import 'node:url';
11
11
  import '../shared/ccjk.gDEDGD_t.mjs';
@@ -1,8 +1,8 @@
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 './main.mjs';
5
- import { i18n } from './index6.mjs';
5
+ import { i18n } from './index5.mjs';
6
6
  import { g as getPermissionManager } from '../shared/ccjk.SPoXMvZD.mjs';
7
7
  import '../shared/ccjk.BAGoDD49.mjs';
8
8
  import 'node:readline';
@@ -1,8 +1,8 @@
1
- import a from './index3.mjs';
2
- import { i as inquirer } from './index4.mjs';
3
1
  import { writeFileSync } from 'node:fs';
4
- import { i18n } from './index6.mjs';
2
+ import a from './index2.mjs';
3
+ import { i as inquirer } from './index3.mjs';
5
4
  import { getContextPersistence } from './persistence.mjs';
5
+ import { i18n } from './index5.mjs';
6
6
  import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
7
7
  import '../shared/ccjk.BAGoDD49.mjs';
8
8
  import 'node:readline';
@@ -20,8 +20,8 @@ import 'node:os';
20
20
  import 'node:crypto';
21
21
  import 'buffer';
22
22
  import 'string_decoder';
23
- import 'node:url';
24
23
  import 'better-sqlite3';
24
+ import 'node:url';
25
25
 
26
26
  class L0Cache {
27
27
  cache;
@@ -69,7 +69,8 @@ class L0Cache {
69
69
  }
70
70
  delete(id) {
71
71
  const entry = this.cache.get(id);
72
- if (!entry) return false;
72
+ if (!entry)
73
+ return false;
73
74
  this.currentSize -= this.estimateSize(entry.context);
74
75
  return this.cache.delete(id);
75
76
  }
@@ -142,7 +143,8 @@ class HierarchicalContextLoader {
142
143
  return l0Entry.context;
143
144
  }
144
145
  const persisted = this.persistence.getContext(contextId);
145
- if (!persisted) return null;
146
+ if (!persisted)
147
+ return null;
146
148
  const context = this.persistedToCompressed(persisted);
147
149
  const tier = this.determineTier(persisted.lastAccessed);
148
150
  if (tier === "L0" /* HOT */ || persisted.accessCount > 5) {
@@ -363,7 +365,8 @@ class HierarchicalContextLoader {
363
365
  * Calculate average access time for contexts
364
366
  */
365
367
  calculateAvgAccessTime(contexts) {
366
- if (contexts.length === 0) return 0;
368
+ if (contexts.length === 0)
369
+ return 0;
367
370
  const now = Date.now();
368
371
  const totalAge = contexts.reduce((sum, c) => sum + (now - c.lastAccessed), 0);
369
372
  return totalAge / contexts.length;
@@ -374,11 +377,12 @@ function createHierarchicalLoader(persistence, projectHash, config) {
374
377
  }
375
378
 
376
379
  function formatBytes(bytes) {
377
- if (bytes === 0) return "0 B";
380
+ if (bytes === 0)
381
+ return "0 B";
378
382
  const k = 1024;
379
383
  const sizes = ["B", "KB", "MB", "GB"];
380
384
  const i = Math.floor(Math.log(bytes) / Math.log(k));
381
- return `${(bytes / Math.pow(k, i)).toFixed(2)} ${sizes[i]}`;
385
+ return `${(bytes / k ** i).toFixed(2)} ${sizes[i]}`;
382
386
  }
383
387
  function formatDate(timestamp) {
384
388
  const date = new Date(timestamp);
@@ -389,9 +393,12 @@ function formatDuration(ms) {
389
393
  const minutes = Math.floor(seconds / 60);
390
394
  const hours = Math.floor(minutes / 60);
391
395
  const days = Math.floor(hours / 24);
392
- if (days > 0) return `${days}d ${hours % 24}h`;
393
- if (hours > 0) return `${hours}h ${minutes % 60}m`;
394
- if (minutes > 0) return `${minutes}m ${seconds % 60}s`;
396
+ if (days > 0)
397
+ return `${days}d ${hours % 24}h`;
398
+ if (hours > 0)
399
+ return `${hours}h ${minutes % 60}m`;
400
+ if (minutes > 0)
401
+ return `${minutes}m ${seconds % 60}s`;
395
402
  return `${seconds}s`;
396
403
  }
397
404
  async function listContexts(projectHash) {
@@ -1,5 +1,5 @@
1
- import Database from 'better-sqlite3';
2
1
  import { existsSync, mkdirSync } from 'node:fs';
2
+ import Database from 'better-sqlite3';
3
3
  import { j as join, d as dirname } from '../shared/ccjk.bQ7Dh1g4.mjs';
4
4
 
5
5
  class ContextPersistence {
@@ -165,7 +165,8 @@ class ContextPersistence {
165
165
  SELECT * FROM contexts WHERE id = ?
166
166
  `);
167
167
  const row = stmt.get(contextId);
168
- if (!row) return null;
168
+ if (!row)
169
+ return null;
169
170
  this.updateLastAccessed(contextId);
170
171
  return this.rowToContext(row);
171
172
  }
@@ -324,7 +325,8 @@ class ContextPersistence {
324
325
  */
325
326
  deleteContext(contextId) {
326
327
  const context = this.getContext(contextId);
327
- if (!context) return false;
328
+ if (!context)
329
+ return false;
328
330
  const stmt = this.db.prepare("DELETE FROM contexts WHERE id = ?");
329
331
  const result = stmt.run(contextId);
330
332
  if (context.projectHash) {
@@ -1,9 +1,9 @@
1
1
  import process__default from 'node:process';
2
- import a from './index3.mjs';
2
+ import a from './index2.mjs';
3
3
  import { Buffer } from 'node:buffer';
4
4
  import { existsSync, mkdirSync, readFileSync, unlinkSync, readdirSync, statSync, rmSync } from 'node:fs';
5
5
  import { CCJK_CLOUD_PLUGINS_DIR, CCJK_CLOUD_PLUGINS_CACHE_DIR, CCJK_CLOUD_PLUGINS_INSTALLED_DIR } from './constants.mjs';
6
- import { i18n } from './index6.mjs';
6
+ import { i18n } from './index5.mjs';
7
7
  import { writeFileAtomic } from './fs-operations.mjs';
8
8
  import { homedir } from 'node:os';
9
9
  import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
@@ -1,12 +1,12 @@
1
- import a from './index3.mjs';
2
- import { i as inquirer } from './index4.mjs';
3
1
  import process__default from 'node:process';
2
+ import a from './index2.mjs';
3
+ import { i as inquirer } from './index3.mjs';
4
4
  import { LANG_LABELS, getAiOutputLanguageLabel, SUPPORTED_LANGS, AI_OUTPUT_LANGUAGES } from './constants.mjs';
5
- import { ensureI18nInitialized, i18n } from './index6.mjs';
5
+ import { ensureI18nInitialized, i18n } from './index5.mjs';
6
6
  import { readZcfConfig, updateZcfConfig } from './ccjk-config.mjs';
7
7
  import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
8
8
  import { g as getRuntimeVersion } from '../shared/ccjk.gDEDGD_t.mjs';
9
- import { p as promptBoolean } from '../shared/ccjk.mJpVRDZ8.mjs';
9
+ import { p as promptBoolean } from '../shared/ccjk.BWFpnOr3.mjs';
10
10
  import '../shared/ccjk.BAGoDD49.mjs';
11
11
  import 'node:readline';
12
12
  import 'stream';
@@ -26,7 +26,7 @@ import '../shared/ccjk.bQ7Dh1g4.mjs';
26
26
  import 'node:fs';
27
27
  import 'node:url';
28
28
  import '../shared/ccjk.BBtCGd_g.mjs';
29
- import './index7.mjs';
29
+ import './index6.mjs';
30
30
  import './fs-operations.mjs';
31
31
  import 'node:fs/promises';
32
32
  import './json-config.mjs';
@@ -1,6 +1,6 @@
1
- import a from './index3.mjs';
1
+ import a from './index2.mjs';
2
2
  import { getApiProviderPresets } from './api-providers.mjs';
3
- import { i18n } from './index6.mjs';
3
+ import { i18n } from './index5.mjs';
4
4
  import { P as ProviderHealthMonitor } from '../shared/ccjk.J8YiPsOw.mjs';
5
5
  import '../shared/ccjk.BAGoDD49.mjs';
6
6
  import './constants.mjs';
@@ -1,23 +1,23 @@
1
1
  import { existsSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { homedir } from 'node:os';
3
- import a from './index3.mjs';
4
- import { getContextPersistence } from './persistence.mjs';
3
+ import a from './index2.mjs';
5
4
  import { MetricsDisplay } from './metrics-display.mjs';
6
- import { r as runHealthCheck } from '../shared/ccjk.CfrpIIKy.mjs';
5
+ import { getContextPersistence } from './persistence.mjs';
6
+ import { r as runHealthCheck } from '../shared/ccjk.Crd_nEfj.mjs';
7
7
  import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
8
8
  import '../shared/ccjk.BAGoDD49.mjs';
9
9
  import 'better-sqlite3';
10
10
  import './constants.mjs';
11
- import './index6.mjs';
11
+ import './index5.mjs';
12
12
  import 'node:process';
13
13
  import 'node:url';
14
+ import 'node:path';
14
15
  import 'fs';
15
16
  import 'constants';
16
17
  import 'stream';
17
18
  import 'util';
18
19
  import 'assert';
19
20
  import 'path';
20
- import 'node:path';
21
21
 
22
22
  const HABIT_FILE = join(homedir(), ".ccjk", "habits.json");
23
23
  function loadHabitStats() {
@@ -76,7 +76,8 @@ function updateHabitStats(command) {
76
76
  }
77
77
  function getDaysUsed() {
78
78
  const stats = loadHabitStats();
79
- if (stats.totalCommands === 0) return 0;
79
+ if (stats.totalCommands === 0)
80
+ return 0;
80
81
  const firstDate = new Date(stats.firstUsed);
81
82
  const now = /* @__PURE__ */ new Date();
82
83
  const diffTime = Math.abs(now.getTime() - firstDate.getTime());
@@ -1,6 +1,6 @@
1
- import a from './index3.mjs';
2
- import { i as inquirer } from './index4.mjs';
3
- import ora from './index8.mjs';
1
+ import a from './index2.mjs';
2
+ import { i as inquirer } from './index3.mjs';
3
+ import ora from './index7.mjs';
4
4
  import { c as createApiClient } from '../shared/ccjk.D6ycHbak.mjs';
5
5
  import '../shared/ccjk.BAGoDD49.mjs';
6
6
  import 'node:readline';
@@ -355,6 +355,7 @@ const KNOWN_COMMANDS = /* @__PURE__ */ new Set([
355
355
  "st",
356
356
  "boost",
357
357
  "evolution",
358
+ "eval",
358
359
  // CCJK v8 commands
359
360
  "ccjk:mcp",
360
361
  "ccjk-mcp",
@@ -630,7 +631,7 @@ async function saveProviderConfig(config) {
630
631
  const spinner = ora("\u6B63\u5728\u4FDD\u5B58\u914D\u7F6E...").start();
631
632
  try {
632
633
  const { readJsonFile, writeJsonFile } = await import('./fs-operations.mjs');
633
- const { join } = await import('./index9.mjs');
634
+ const { join } = await import('./index8.mjs');
634
635
  const { homedir } = await import('node:os');
635
636
  const { existsSync, mkdirSync } = await import('node:fs');
636
637
  const claudeDir = join(homedir(), ".claude");
@@ -1,7 +1,7 @@
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 { d as detectSmartDefaults } from './smart-defaults.mjs';
4
- import { i18n } from './index6.mjs';
4
+ import { i18n } from './index5.mjs';
5
5
  import { updateZcfConfig } from './ccjk-config.mjs';
6
6
  import { g as getRuntimeVersion } from '../shared/ccjk.gDEDGD_t.mjs';
7
7
  import { i as init } from './init.mjs';
@@ -33,29 +33,31 @@ import './platform.mjs';
33
33
  import './main.mjs';
34
34
  import 'module';
35
35
  import 'node:stream';
36
- import '../shared/ccjk.BrPUmTqm.mjs';
36
+ import '../shared/ccjk.DJuyfrlL.mjs';
37
37
  import 'node:url';
38
38
  import '../shared/ccjk.BBtCGd_g.mjs';
39
- import './index7.mjs';
39
+ import './index6.mjs';
40
40
  import './codex.mjs';
41
- import './index8.mjs';
41
+ import './index7.mjs';
42
42
  import '../shared/ccjk.DeWpAShp.mjs';
43
43
  import '../shared/ccjk.CxpGa6MC.mjs';
44
44
  import './config.mjs';
45
45
  import './claude-config.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.XsJWJuQP.mjs';
49
+ import '../shared/ccjk.BWFpnOr3.mjs';
50
+ import '../shared/ccjk.DfZKjHvG.mjs';
51
51
  import './banner.mjs';
52
52
  import './config2.mjs';
53
53
  import './auto-updater.mjs';
54
54
  import './version-checker.mjs';
55
- import '../shared/ccjk.Cot9p9_n.mjs';
56
- import '../shared/ccjk.DcKLglJQ.mjs';
55
+ import '../shared/ccjk.Cjj8SVrn.mjs';
56
+ import '../shared/ccjk.DxWqH-EF.mjs';
57
+ import './claude-code-config-manager.mjs';
58
+ import '../shared/ccjk.BIxuVL3_.mjs';
57
59
  import './installer.mjs';
58
- import '../shared/ccjk.dYDLfmph.mjs';
60
+ import '../shared/ccjk._dESH4Rk.mjs';
59
61
 
60
62
  const ccjkVersion = getRuntimeVersion();
61
63
  function displayHeader() {
@@ -287,9 +289,12 @@ async function quickSetup(options = {}) {
287
289
  const ctx = defaults.projectContext;
288
290
  const parts = [ctx.language, ctx.framework !== "none" ? ctx.framework : null, ctx.testRunner !== "none" ? ctx.testRunner : null, ctx.packageManager !== "none" ? ctx.packageManager : null].filter(Boolean);
289
291
  console.log(` ${a.gray("Project:")} ${a.green(parts.join(" + "))}`);
290
- if (ctx.runtime.isHeadless) console.log(` ${a.gray("Runtime:")} ${a.yellow("headless server")}`);
291
- if (ctx.runtime.isContainer) console.log(` ${a.gray("Runtime:")} ${a.yellow("container")}`);
292
- if (ctx.runtime.isCI) console.log(` ${a.gray("Runtime:")} ${a.yellow("CI/CD")}`);
292
+ if (ctx.runtime.isHeadless)
293
+ console.log(` ${a.gray("Runtime:")} ${a.yellow("headless server")}`);
294
+ if (ctx.runtime.isContainer)
295
+ console.log(` ${a.gray("Runtime:")} ${a.yellow("container")}`);
296
+ if (ctx.runtime.isCI)
297
+ console.log(` ${a.gray("Runtime:")} ${a.yellow("CI/CD")}`);
293
298
  }
294
299
  console.log("");
295
300
  displayStep(2, 4, "Configuring API key...");
@@ -1,12 +1,12 @@
1
- import { spawn } from 'child_process';
2
- import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
3
- import { i as inquirer } from './index4.mjs';
4
- import ora from './index8.mjs';
5
- import { homedir } from 'os';
6
- import { join } from 'path';
7
- import { i18n } from './index6.mjs';
8
- import { i as isDeviceBound, g as getBindingStatus, b as bindDevice } from '../shared/ccjk.c-ETfBZ_.mjs';
9
- import { l as logger } from '../shared/ccjk.DJdmgr2d.mjs';
1
+ import { spawn } from 'node:child_process';
2
+ import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'node:fs';
3
+ import { homedir } from 'node:os';
4
+ import { join } from 'node:path';
5
+ import { i as inquirer } from './index3.mjs';
6
+ import ora from './index7.mjs';
7
+ import { i18n } from './index5.mjs';
8
+ import { i as isDeviceBound, g as getBindingStatus, b as bindDevice } from '../shared/ccjk.eIn-g1yI.mjs';
9
+ import { l as logger } from '../shared/ccjk.BJMRY2Ra.mjs';
10
10
  import 'node:readline';
11
11
  import '../shared/ccjk.BAGoDD49.mjs';
12
12
  import 'stream';
@@ -16,22 +16,21 @@ import 'node:async_hooks';
16
16
  import '../shared/ccjk.Cjgrln_h.mjs';
17
17
  import 'node:util';
18
18
  import 'tty';
19
- import 'node:path';
20
- import 'node:os';
19
+ import 'fs';
20
+ import 'child_process';
21
21
  import 'node:crypto';
22
22
  import 'buffer';
23
23
  import 'string_decoder';
24
24
  import '../shared/ccjk.DeWpAShp.mjs';
25
- import 'node:fs';
26
25
  import 'node:url';
27
26
  import '../shared/ccjk.bQ7Dh1g4.mjs';
28
- import './fs-operations.mjs';
29
- import 'node:fs/promises';
30
- import 'node:buffer';
31
27
  import '../shared/ccjk.BtB1e5jm.mjs';
32
28
  import './constants.mjs';
33
29
  import '../shared/ccjk.D6ycHbak.mjs';
34
- import './index3.mjs';
30
+ import './fs-operations.mjs';
31
+ import 'node:fs/promises';
32
+ import 'node:buffer';
33
+ import './index2.mjs';
35
34
 
36
35
  const DAEMON_CONFIG_PATH = join(homedir(), ".ccjk", "daemon.json");
37
36
  async function setupRemote(options = {}) {