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
package/dist/cli.mjs CHANGED
@@ -385,7 +385,7 @@ const COMMANDS = [
385
385
  ],
386
386
  loader: async () => {
387
387
  return async (_options, projectPath) => {
388
- const { smartGenerateAndInstall } = await import('./chunks/index11.mjs');
388
+ const { smartGenerateAndInstall } = await import('./chunks/index10.mjs');
389
389
  await smartGenerateAndInstall(projectPath);
390
390
  };
391
391
  }
@@ -519,7 +519,7 @@ const COMMANDS = [
519
519
  await contextOptStats();
520
520
  } else if (actionStr === "search") {
521
521
  const { contextOptSearch } = await import('./chunks/context-opt.mjs');
522
- await contextOptSearch(argsArr[0] || "", options);
522
+ await contextOptSearch(argsArr[0] || "", { topK: options.topK });
523
523
  } else if (actionStr === "decay") {
524
524
  const { contextOptDecay } = await import('./chunks/context-opt.mjs');
525
525
  await contextOptDecay();
@@ -622,7 +622,7 @@ const COMMANDS = [
622
622
  ],
623
623
  loader: async () => {
624
624
  return async (options, action, args) => {
625
- const { initI18n } = await import('./chunks/index6.mjs');
625
+ const { initI18n } = await import('./chunks/index5.mjs');
626
626
  await initI18n(options.lang || "zh-CN");
627
627
  const actionStr = action;
628
628
  const argsArr = args;
@@ -861,7 +861,7 @@ const COMMANDS = [
861
861
  { flags: "--recover", description: "Attempt database recovery" }
862
862
  ],
863
863
  loader: async () => {
864
- const { contextCommand } = await import('./chunks/index.mjs');
864
+ const { contextCommand } = await import('./chunks/context.mjs');
865
865
  return async (options) => {
866
866
  await contextCommand(options);
867
867
  };
@@ -981,11 +981,11 @@ const COMMANDS = [
981
981
  return async (options, action, args) => {
982
982
  const actionStr = action;
983
983
  const argsArr = args || [];
984
- const { getPostmortemManager } = await import('./chunks/index12.mjs');
984
+ const { getPostmortemManager } = await import('./chunks/index11.mjs');
985
985
  const manager = getPostmortemManager(process__default.cwd());
986
986
  if (actionStr === "init") {
987
- const ora = (await import('./chunks/index8.mjs')).default;
988
- const ansis = (await import('./chunks/index3.mjs')).default;
987
+ const ora = (await import('./chunks/index7.mjs')).default;
988
+ const ansis = (await import('./chunks/index2.mjs')).default;
989
989
  const spinner = ora("Analyzing historical fix commits...").start();
990
990
  try {
991
991
  const result = await manager.init();
@@ -999,8 +999,8 @@ const COMMANDS = [
999
999
  console.error(error);
1000
1000
  }
1001
1001
  } else if (actionStr === "generate" || actionStr === "gen") {
1002
- const ora = (await import('./chunks/index8.mjs')).default;
1003
- const ansis = (await import('./chunks/index3.mjs')).default;
1002
+ const ora = (await import('./chunks/index7.mjs')).default;
1003
+ const ansis = (await import('./chunks/index2.mjs')).default;
1004
1004
  const spinner = ora("Analyzing commits...").start();
1005
1005
  try {
1006
1006
  if (options.version) {
@@ -1027,7 +1027,7 @@ const COMMANDS = [
1027
1027
  console.error(error);
1028
1028
  }
1029
1029
  } else if (actionStr === "list" || actionStr === "ls") {
1030
- const ansis = (await import('./chunks/index3.mjs')).default;
1030
+ const ansis = (await import('./chunks/index2.mjs')).default;
1031
1031
  let reports = manager.listReports();
1032
1032
  if (options.severity)
1033
1033
  reports = reports.filter((r) => r.severity === options.severity);
@@ -1052,7 +1052,7 @@ ${severityEmoji[r.severity] || "\u26AA"} ${ansis.bold(r.id)}: ${r.title}`);
1052
1052
  \u2500 Total: ${reports.length} reports \u2500
1053
1053
  `));
1054
1054
  } else if (actionStr === "show") {
1055
- const ansis = (await import('./chunks/index3.mjs')).default;
1055
+ const ansis = (await import('./chunks/index2.mjs')).default;
1056
1056
  const id = argsArr[0];
1057
1057
  if (!id) {
1058
1058
  console.log(ansis.red("Please specify a postmortem ID"));
@@ -1083,8 +1083,8 @@ ${ansis.cyan("AI Directives:")}
1083
1083
  ${report.aiDirectives.map((d) => ` \u2022 ${d}`).join("\n")}
1084
1084
  `);
1085
1085
  } else if (actionStr === "check") {
1086
- const ora = (await import('./chunks/index8.mjs')).default;
1087
- const ansis = (await import('./chunks/index3.mjs')).default;
1086
+ const ora = (await import('./chunks/index7.mjs')).default;
1087
+ const ansis = (await import('./chunks/index2.mjs')).default;
1088
1088
  const spinner = ora("Checking code...").start();
1089
1089
  try {
1090
1090
  const result = await manager.checkCode({
@@ -1117,8 +1117,8 @@ ${report.aiDirectives.map((d) => ` \u2022 ${d}`).join("\n")}
1117
1117
  console.error(error);
1118
1118
  }
1119
1119
  } else if (actionStr === "sync") {
1120
- const ora = (await import('./chunks/index8.mjs')).default;
1121
- const ansis = (await import('./chunks/index3.mjs')).default;
1120
+ const ora = (await import('./chunks/index7.mjs')).default;
1121
+ const ansis = (await import('./chunks/index2.mjs')).default;
1122
1122
  const spinner = ora("Syncing to CLAUDE.md...").start();
1123
1123
  try {
1124
1124
  const result = await manager.syncToClaudeMd();
@@ -1132,7 +1132,7 @@ ${report.aiDirectives.map((d) => ` \u2022 ${d}`).join("\n")}
1132
1132
  console.error(error);
1133
1133
  }
1134
1134
  } else if (actionStr === "stats") {
1135
- const ansis = (await import('./chunks/index3.mjs')).default;
1135
+ const ansis = (await import('./chunks/index2.mjs')).default;
1136
1136
  const index = manager.loadIndex();
1137
1137
  if (!index) {
1138
1138
  console.log(ansis.yellow("\nNo statistics available"));
@@ -1230,7 +1230,7 @@ ${ansis.yellow("By Status:")}`);
1230
1230
  args.push(key);
1231
1231
  if (value !== void 0)
1232
1232
  args.push(value);
1233
- await configCommand(args, {
1233
+ await configCommand(args[0] || "list", args.slice(1), {
1234
1234
  lang: options.lang,
1235
1235
  codeType: options.codeType,
1236
1236
  global: options.global,
@@ -1352,7 +1352,7 @@ ${ansis.yellow("By Status:")}`);
1352
1352
  { flags: "--lang, -l <lang>", description: "Display language (zh-CN, en)" }
1353
1353
  ],
1354
1354
  loader: async () => {
1355
- return async (options) => {
1355
+ return async (_options) => {
1356
1356
  const { persistenceManager } = await import('./chunks/persistence-manager.mjs');
1357
1357
  await persistenceManager();
1358
1358
  };
@@ -1517,6 +1517,39 @@ ${ansis.yellow("By Status:")}`);
1517
1517
  };
1518
1518
  }
1519
1519
  },
1520
+ // ==================== Evaluation System ====================
1521
+ {
1522
+ name: "eval",
1523
+ description: "Run evaluation scenarios and benchmarks",
1524
+ tier: "extended",
1525
+ options: [
1526
+ { flags: "--scenario <id>", description: "Run specific scenario" },
1527
+ { flags: "--suite <name>", description: "Run specific suite" },
1528
+ { flags: "--runs <n>", description: "Number of runs per scenario" },
1529
+ { flags: "--verbose, -v", description: "Verbose output" },
1530
+ { flags: "--html", description: "Generate HTML dashboard" },
1531
+ { flags: "--json", description: "Generate JSON reports" },
1532
+ { flags: "--baseline <path>", description: "Baseline report path" },
1533
+ { flags: "--candidate <path>", description: "Candidate report path" },
1534
+ { flags: "--compare", description: "Compare baseline and candidate" }
1535
+ ],
1536
+ loader: async () => {
1537
+ const { evalCommand } = await import('./chunks/eval.mjs');
1538
+ return async (options) => {
1539
+ await evalCommand({
1540
+ scenario: options.scenario,
1541
+ suite: options.suite,
1542
+ runs: options.runs ? parseInt(options.runs, 10) : 1,
1543
+ verbose: options.verbose,
1544
+ html: options.html !== false,
1545
+ json: options.json !== false,
1546
+ baseline: options.baseline,
1547
+ candidate: options.candidate,
1548
+ compare: options.compare
1549
+ });
1550
+ };
1551
+ }
1552
+ },
1520
1553
  {
1521
1554
  name: "context",
1522
1555
  description: "View and manage hierarchical context loading",
@@ -1528,7 +1561,7 @@ ${ansis.yellow("By Status:")}`);
1528
1561
  { flags: "--clear", description: "Clear context cache" }
1529
1562
  ],
1530
1563
  loader: async () => {
1531
- const { contextCommand } = await import('./chunks/index.mjs');
1564
+ const { contextCommand } = await import('./chunks/context.mjs');
1532
1565
  return async (options) => {
1533
1566
  await contextCommand({
1534
1567
  show: options.show,
@@ -1804,7 +1837,7 @@ ${ansis.yellow("By Status:")}`);
1804
1837
  { flags: "--lang, -l <lang>", description: "Display language (zh-CN, en)" }
1805
1838
  ],
1806
1839
  loader: async () => {
1807
- const { addCommand } = await import('./chunks/index13.mjs');
1840
+ const { addCommand } = await import('./chunks/index12.mjs');
1808
1841
  return async (options, source) => {
1809
1842
  await addCommand(source, {
1810
1843
  type: options.type,
@@ -1822,7 +1855,7 @@ let currentLang = "en";
1822
1855
  async function initI18nLazy(lang) {
1823
1856
  if (i18nInitialized && lang === currentLang)
1824
1857
  return;
1825
- const { initI18n, changeLanguage } = await import('./chunks/index6.mjs');
1858
+ const { initI18n, changeLanguage } = await import('./chunks/index5.mjs');
1826
1859
  if (!i18nInitialized) {
1827
1860
  await initI18n(lang || "en");
1828
1861
  i18nInitialized = true;
@@ -2064,6 +2097,7 @@ function customizeHelpLazy(_sections, version) {
2064
2097
  ` ${cyan("ccjk skills")} ${gray("sk")} Manage CCJK skills ${green("NEW")}`,
2065
2098
  ` ${cyan("ccjk memory")} ${gray("mem")} Manage Claude Code memory ${green("NEW")}`,
2066
2099
  ` ${cyan("ccjk monitor")} ${gray("mon")} Performance monitoring ${green("NEW")}`,
2100
+ ` ${cyan("ccjk eval")} Run evaluation scenarios ${green("NEW")}`,
2067
2101
  ` ${cyan("ccjk interview")} ${gray("iv")} Interview-driven development`,
2068
2102
  ` ${cyan("ccjk commit")} Smart git commit`,
2069
2103
  ` ${cyan("ccjk config-switch")} ${gray("cs")} Switch configuration`,
@@ -2120,7 +2154,7 @@ async function runHealthAlertsCheck() {
2120
2154
  if (!shouldCheck) {
2121
2155
  return;
2122
2156
  }
2123
- const { join } = await import('./chunks/index9.mjs');
2157
+ const { join } = await import('./chunks/index8.mjs');
2124
2158
  const dbPath = join(
2125
2159
  process__default.env.HOME || process__default.env.USERPROFILE || ".",
2126
2160
  ".ccjk",
@@ -2141,7 +2175,7 @@ async function showCommandDiscoveryBanner() {
2141
2175
  if (args.length > 0 && !args[0].startsWith("-")) {
2142
2176
  return;
2143
2177
  }
2144
- const { join } = await import('./chunks/index9.mjs');
2178
+ const { join } = await import('./chunks/index8.mjs');
2145
2179
  const { existsSync, writeFileSync } = await import('node:fs');
2146
2180
  const markerPath = join(
2147
2181
  process__default.env.HOME || process__default.env.USERPROFILE || ".",
@@ -2216,7 +2250,7 @@ async function runLazyCli() {
2216
2250
  }
2217
2251
  }
2218
2252
  }
2219
- const cac = (await import('./chunks/index10.mjs')).default;
2253
+ const cac = (await import('./chunks/index9.mjs')).default;
2220
2254
  const cli = cac("ccjk");
2221
2255
  await setupCommandsLazy(cli);
2222
2256
  spinner?.stop();
@@ -2235,7 +2269,7 @@ async function showStartupSpinner() {
2235
2269
  return null;
2236
2270
  }
2237
2271
  try {
2238
- const ora = (await import('./chunks/index8.mjs')).default;
2272
+ const ora = (await import('./chunks/index7.mjs')).default;
2239
2273
  const isZh = process__default.env.CCJK_LANG === "zh-CN" || process__default.env.LANG?.includes("zh");
2240
2274
  const spinner = ora({
2241
2275
  text: isZh ? "\u6B63\u5728\u542F\u52A8 CCJK..." : "Starting CCJK...",
@@ -2297,7 +2331,7 @@ function bootstrapCloudServices() {
2297
2331
  await autoBootstrap();
2298
2332
  const { autoUpgrade } = await import('./chunks/silent-updater.mjs');
2299
2333
  await autoUpgrade();
2300
- const { activateSuperpowers } = await import('./chunks/index14.mjs');
2334
+ const { activateSuperpowers } = await import('./chunks/index13.mjs');
2301
2335
  await activateSuperpowers("zh-CN");
2302
2336
  const { setupBrainHook } = await import('./chunks/cli-hook.mjs');
2303
2337
  await setupBrainHook({