ccjk 3.7.3 → 3.8.0

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 (107) hide show
  1. package/README.md +103 -896
  2. package/dist/chunks/ccr.mjs +1 -0
  3. package/dist/chunks/doctor.mjs +58 -0
  4. package/dist/chunks/index.mjs +6 -0
  5. package/dist/chunks/package.mjs +1 -1
  6. package/dist/chunks/permissions.mjs +164 -342
  7. package/dist/chunks/thinking.mjs +615 -0
  8. package/dist/chunks/vim.mjs +891 -0
  9. package/dist/cli.mjs +49 -0
  10. package/dist/i18n/locales/en/configuration.json +97 -1
  11. package/dist/i18n/locales/en/lsp.json +78 -0
  12. package/dist/i18n/locales/en/mcp.json +11 -0
  13. package/dist/i18n/locales/en/permissions.json +53 -1
  14. package/dist/i18n/locales/en/thinking.json +65 -0
  15. package/dist/i18n/locales/en/vim.json +169 -0
  16. package/dist/i18n/locales/zh-CN/configuration.json +97 -1
  17. package/dist/i18n/locales/zh-CN/lsp.json +78 -0
  18. package/dist/i18n/locales/zh-CN/mcp.json +11 -0
  19. package/dist/i18n/locales/zh-CN/permissions.json +53 -1
  20. package/dist/i18n/locales/zh-CN/thinking.json +65 -0
  21. package/dist/i18n/locales/zh-CN/vim.json +169 -0
  22. package/dist/shared/ccjk.pi0nsyn3.mjs +1242 -0
  23. package/package.json +55 -55
  24. package/templates/claude-code/common/settings.json +63 -30
  25. package/templates/CLAUDE.md +0 -219
  26. package/templates/claude-code/CLAUDE.md +0 -250
  27. package/templates/claude-code/en/workflow/bmad/commands/bmad-init.md +0 -165
  28. package/templates/claude-code/en/workflow/common/agents/get-current-datetime.md +0 -29
  29. package/templates/claude-code/en/workflow/common/agents/init-architect.md +0 -114
  30. package/templates/claude-code/en/workflow/common/commands/init-project.md +0 -53
  31. package/templates/claude-code/en/workflow/essential/agents/get-current-datetime.md +0 -29
  32. package/templates/claude-code/en/workflow/essential/agents/init-architect.md +0 -114
  33. package/templates/claude-code/en/workflow/essential/agents/planner.md +0 -116
  34. package/templates/claude-code/en/workflow/essential/agents/ui-ux-designer.md +0 -91
  35. package/templates/claude-code/en/workflow/essential/commands/feat.md +0 -250
  36. package/templates/claude-code/en/workflow/essential/commands/init-project.md +0 -53
  37. package/templates/claude-code/en/workflow/plan/agents/planner.md +0 -116
  38. package/templates/claude-code/en/workflow/plan/agents/ui-ux-designer.md +0 -91
  39. package/templates/claude-code/en/workflow/plan/commands/feat.md +0 -105
  40. package/templates/claude-code/zh-CN/workflow/bmad/commands/bmad-init.md +0 -172
  41. package/templates/claude-code/zh-CN/workflow/common/agents/get-current-datetime.md +0 -29
  42. package/templates/claude-code/zh-CN/workflow/common/agents/init-architect.md +0 -114
  43. package/templates/claude-code/zh-CN/workflow/common/commands/init-project.md +0 -53
  44. package/templates/claude-code/zh-CN/workflow/essential/agents/get-current-datetime.md +0 -29
  45. package/templates/claude-code/zh-CN/workflow/essential/agents/init-architect.md +0 -114
  46. package/templates/claude-code/zh-CN/workflow/essential/agents/planner.md +0 -116
  47. package/templates/claude-code/zh-CN/workflow/essential/agents/ui-ux-designer.md +0 -91
  48. package/templates/claude-code/zh-CN/workflow/essential/commands/feat.md +0 -248
  49. package/templates/claude-code/zh-CN/workflow/essential/commands/init-project.md +0 -53
  50. package/templates/claude-code/zh-CN/workflow/plan/agents/planner.md +0 -116
  51. package/templates/claude-code/zh-CN/workflow/plan/agents/ui-ux-designer.md +0 -91
  52. package/templates/claude-code/zh-CN/workflow/plan/commands/feat.md +0 -105
  53. package/templates/codex/common/config.toml +0 -0
  54. package/templates/common/output-styles/en/casual-friendly.md +0 -97
  55. package/templates/common/output-styles/en/expert-concise.md +0 -93
  56. package/templates/common/output-styles/en/pair-programmer.md +0 -177
  57. package/templates/common/output-styles/en/senior-architect.md +0 -121
  58. package/templates/common/output-styles/en/speed-coder.md +0 -185
  59. package/templates/common/output-styles/en/teaching-mode.md +0 -102
  60. package/templates/common/output-styles/en/technical-precise.md +0 -101
  61. package/templates/common/output-styles/zh-CN/pair-programmer.md +0 -177
  62. package/templates/common/output-styles/zh-CN/senior-architect.md +0 -297
  63. package/templates/common/output-styles/zh-CN/speed-coder.md +0 -185
  64. package/templates/common/skills/code-review.md +0 -343
  65. package/templates/common/skills/en/agent-browser.md +0 -258
  66. package/templates/common/skills/en/brainstorming.md +0 -64
  67. package/templates/common/skills/en/code-review.md +0 -81
  68. package/templates/common/skills/en/documentation-gen.md +0 -808
  69. package/templates/common/skills/en/executing-plans.md +0 -75
  70. package/templates/common/skills/en/git-commit.md +0 -216
  71. package/templates/common/skills/en/interview.md +0 -223
  72. package/templates/common/skills/en/migration-assistant.md +0 -312
  73. package/templates/common/skills/en/performance-profiling.md +0 -576
  74. package/templates/common/skills/en/pr-review.md +0 -341
  75. package/templates/common/skills/en/refactoring.md +0 -384
  76. package/templates/common/skills/en/security-audit.md +0 -462
  77. package/templates/common/skills/en/systematic-debugging.md +0 -82
  78. package/templates/common/skills/en/tdd-workflow.md +0 -93
  79. package/templates/common/skills/en/verification.md +0 -81
  80. package/templates/common/skills/en/workflow.md +0 -370
  81. package/templates/common/skills/en/writing-plans.md +0 -78
  82. package/templates/common/skills/summarize.md +0 -312
  83. package/templates/common/skills/translate.md +0 -202
  84. package/templates/common/skills/zh-CN/agent-browser.md +0 -260
  85. package/templates/common/skills/zh-CN/documentation-gen.md +0 -807
  86. package/templates/common/skills/zh-CN/migration-assistant.md +0 -318
  87. package/templates/common/skills/zh-CN/performance-profiling.md +0 -746
  88. package/templates/common/skills/zh-CN/pr-review.md +0 -341
  89. package/templates/common/skills/zh-CN/refactoring.md +0 -384
  90. package/templates/common/skills/zh-CN/security-audit.md +0 -462
  91. package/templates/common/smart-guide/en/smart-guide.md +0 -72
  92. package/templates/common/smart-guide/zh-CN/smart-guide.md +0 -72
  93. package/templates/common/workflow/git/en/git-cleanBranches.md +0 -102
  94. package/templates/common/workflow/git/en/git-commit.md +0 -205
  95. package/templates/common/workflow/git/en/git-rollback.md +0 -90
  96. package/templates/common/workflow/git/en/git-worktree.md +0 -276
  97. package/templates/common/workflow/git/zh-CN/git-cleanBranches.md +0 -102
  98. package/templates/common/workflow/git/zh-CN/git-commit.md +0 -205
  99. package/templates/common/workflow/git/zh-CN/git-rollback.md +0 -90
  100. package/templates/common/workflow/git/zh-CN/git-worktree.md +0 -276
  101. package/templates/common/workflow/interview/en/interview.md +0 -212
  102. package/templates/common/workflow/interview/zh-CN/interview.md +0 -212
  103. package/templates/common/workflow/sixStep/en/workflow.md +0 -357
  104. package/templates/common/workflow/sixStep/zh-CN/workflow.md +0 -357
  105. package/templates/industry/devops/en/ci-cd-pipeline.md +0 -410
  106. package/templates/industry/web-dev/en/api-design.md +0 -299
  107. package/templates/industry/web-dev/en/react-nextjs-setup.md +0 -236
@@ -55,6 +55,7 @@ import './config-switch.mjs';
55
55
  import './claude-code-config-manager.mjs';
56
56
  import './doctor.mjs';
57
57
  import './api-providers.mjs';
58
+ import '../shared/ccjk.pi0nsyn3.mjs';
58
59
  import '../shared/ccjk.J8YiPsOw.mjs';
59
60
  import '../shared/ccjk.BOCWGVzu.mjs';
60
61
  import './notification.mjs';
@@ -6,6 +6,7 @@ import { resolve, join, dirname } from 'pathe';
6
6
  import { getApiProviderPresets } from './api-providers.mjs';
7
7
  import { SETTINGS_FILE, CLAUDE_DIR } from './constants.mjs';
8
8
  import { i18n } from './index.mjs';
9
+ import { g as getPermissionManager } from '../shared/ccjk.pi0nsyn3.mjs';
9
10
  import { c as commandExists } from './platform.mjs';
10
11
  import { P as ProviderHealthMonitor } from '../shared/ccjk.J8YiPsOw.mjs';
11
12
  import { platform, userInfo, homedir } from 'node:os';
@@ -703,6 +704,57 @@ async function checkProviders(codeType = "claude-code") {
703
704
  };
704
705
  }
705
706
  }
707
+ async function checkPermissionRules() {
708
+ const isZh = i18n.language === "zh-CN";
709
+ try {
710
+ const permissionManager = getPermissionManager();
711
+ const unreachableRules = permissionManager.getUnreachableRules();
712
+ const allDiagnostics = permissionManager.getAllDiagnostics();
713
+ const shadowedRules = allDiagnostics.filter((d) => d.shadowedBy.length > 0);
714
+ const conflictedRules = allDiagnostics.filter((d) => d.conflicts.length > 0);
715
+ const problemCount = unreachableRules.length + shadowedRules.length + conflictedRules.length;
716
+ if (problemCount === 0) {
717
+ const stats = permissionManager.getStats();
718
+ return {
719
+ name: "Permission Rules",
720
+ status: "ok",
721
+ message: `${stats.total} rules configured`
722
+ };
723
+ }
724
+ const details = [];
725
+ if (unreachableRules.length > 0) {
726
+ details.push(isZh ? `${unreachableRules.length} unreachable rule(s)` : `${unreachableRules.length} unreachable rule(s)`);
727
+ for (const rule of unreachableRules.slice(0, 3)) {
728
+ details.push(` - ${ansis.dim(rule.pattern)}`);
729
+ }
730
+ if (unreachableRules.length > 3) {
731
+ details.push(` ... ${isZh ? "and" : "and"} ${unreachableRules.length - 3} ${isZh ? "more" : "more"}`);
732
+ }
733
+ }
734
+ if (shadowedRules.length > 0) {
735
+ details.push(isZh ? `${shadowedRules.length} shadowed rule(s)` : `${shadowedRules.length} shadowed rule(s)`);
736
+ for (const diag of shadowedRules.slice(0, 2)) {
737
+ details.push(` - ${ansis.dim(diag.rule.pattern)} ${ansis.dim(isZh ? "shadowed by" : "shadowed by")} ${diag.shadowedBy[0].pattern}`);
738
+ }
739
+ }
740
+ if (conflictedRules.length > 0) {
741
+ details.push(isZh ? `${conflictedRules.length} conflicted rule(s)` : `${conflictedRules.length} conflicted rule(s)`);
742
+ }
743
+ return {
744
+ name: "Permission Rules",
745
+ status: "warning",
746
+ message: `${problemCount} ${isZh ? "problematic" : "problematic"} ${isZh ? "rule(s)" : "rule(s)"}`,
747
+ fix: isZh ? "Run: ccjk permissions diagnose" : "Run: ccjk permissions diagnose",
748
+ details
749
+ };
750
+ } catch {
751
+ return {
752
+ name: "Permission Rules",
753
+ status: "warning",
754
+ message: "Unable to check"
755
+ };
756
+ }
757
+ }
706
758
  async function doctor(options = {}) {
707
759
  const isZh = i18n.language === "zh-CN";
708
760
  console.log("");
@@ -715,6 +767,7 @@ async function doctor(options = {}) {
715
767
  checkSettings,
716
768
  checkWorkflows,
717
769
  checkMcp,
770
+ checkPermissionRules,
718
771
  checkCcr,
719
772
  checkOutputStyles
720
773
  ];
@@ -731,6 +784,11 @@ async function doctor(options = {}) {
731
784
  if (result.fix) {
732
785
  console.log(ansis.dim(` \u{1F4A1} Fix: ${result.fix}`));
733
786
  }
787
+ if (result.details && result.details.length > 0) {
788
+ for (const detail of result.details) {
789
+ console.log(ansis.dim(` ${detail}`));
790
+ }
791
+ }
734
792
  if (result.status === "error")
735
793
  hasErrors = true;
736
794
  if (result.status === "warning")
@@ -25,6 +25,8 @@ const NAMESPACES = [
25
25
  "interview",
26
26
  // Interview-Driven Development
27
27
  "language",
28
+ "lsp",
29
+ // Language Server Protocol (v3.8+)
28
30
  "marketplace",
29
31
  // Marketplace system for plugins, skills, and workflows
30
32
  "mcp",
@@ -52,9 +54,13 @@ const NAMESPACES = [
52
54
  "superpowers",
53
55
  // Superpowers plugin integration
54
56
  "team",
57
+ "thinking",
58
+ // Thinking mode for Claude Code CLI 2.0.67+
55
59
  "tools",
56
60
  "uninstall",
57
61
  "updater",
62
+ "vim",
63
+ // Vim mode enhancement for Claude Code CLI 2.1.0+
58
64
  "workflow",
59
65
  "cloud-sync",
60
66
  "workspace"
@@ -1,4 +1,4 @@
1
- const version = "3.7.3";
1
+ const version = "3.8.0";
2
2
  const homepage = "https://github.com/miounet11/ccjk";
3
3
 
4
4
  export { homepage, version };