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.
- package/README.md +103 -896
- package/dist/chunks/ccr.mjs +1 -0
- package/dist/chunks/doctor.mjs +58 -0
- package/dist/chunks/index.mjs +6 -0
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/permissions.mjs +164 -342
- package/dist/chunks/thinking.mjs +615 -0
- package/dist/chunks/vim.mjs +891 -0
- package/dist/cli.mjs +49 -0
- package/dist/i18n/locales/en/configuration.json +97 -1
- package/dist/i18n/locales/en/lsp.json +78 -0
- package/dist/i18n/locales/en/mcp.json +11 -0
- package/dist/i18n/locales/en/permissions.json +53 -1
- package/dist/i18n/locales/en/thinking.json +65 -0
- package/dist/i18n/locales/en/vim.json +169 -0
- package/dist/i18n/locales/zh-CN/configuration.json +97 -1
- package/dist/i18n/locales/zh-CN/lsp.json +78 -0
- package/dist/i18n/locales/zh-CN/mcp.json +11 -0
- package/dist/i18n/locales/zh-CN/permissions.json +53 -1
- package/dist/i18n/locales/zh-CN/thinking.json +65 -0
- package/dist/i18n/locales/zh-CN/vim.json +169 -0
- package/dist/shared/ccjk.pi0nsyn3.mjs +1242 -0
- package/package.json +55 -55
- package/templates/claude-code/common/settings.json +63 -30
- package/templates/CLAUDE.md +0 -219
- package/templates/claude-code/CLAUDE.md +0 -250
- package/templates/claude-code/en/workflow/bmad/commands/bmad-init.md +0 -165
- package/templates/claude-code/en/workflow/common/agents/get-current-datetime.md +0 -29
- package/templates/claude-code/en/workflow/common/agents/init-architect.md +0 -114
- package/templates/claude-code/en/workflow/common/commands/init-project.md +0 -53
- package/templates/claude-code/en/workflow/essential/agents/get-current-datetime.md +0 -29
- package/templates/claude-code/en/workflow/essential/agents/init-architect.md +0 -114
- package/templates/claude-code/en/workflow/essential/agents/planner.md +0 -116
- package/templates/claude-code/en/workflow/essential/agents/ui-ux-designer.md +0 -91
- package/templates/claude-code/en/workflow/essential/commands/feat.md +0 -250
- package/templates/claude-code/en/workflow/essential/commands/init-project.md +0 -53
- package/templates/claude-code/en/workflow/plan/agents/planner.md +0 -116
- package/templates/claude-code/en/workflow/plan/agents/ui-ux-designer.md +0 -91
- package/templates/claude-code/en/workflow/plan/commands/feat.md +0 -105
- package/templates/claude-code/zh-CN/workflow/bmad/commands/bmad-init.md +0 -172
- package/templates/claude-code/zh-CN/workflow/common/agents/get-current-datetime.md +0 -29
- package/templates/claude-code/zh-CN/workflow/common/agents/init-architect.md +0 -114
- package/templates/claude-code/zh-CN/workflow/common/commands/init-project.md +0 -53
- package/templates/claude-code/zh-CN/workflow/essential/agents/get-current-datetime.md +0 -29
- package/templates/claude-code/zh-CN/workflow/essential/agents/init-architect.md +0 -114
- package/templates/claude-code/zh-CN/workflow/essential/agents/planner.md +0 -116
- package/templates/claude-code/zh-CN/workflow/essential/agents/ui-ux-designer.md +0 -91
- package/templates/claude-code/zh-CN/workflow/essential/commands/feat.md +0 -248
- package/templates/claude-code/zh-CN/workflow/essential/commands/init-project.md +0 -53
- package/templates/claude-code/zh-CN/workflow/plan/agents/planner.md +0 -116
- package/templates/claude-code/zh-CN/workflow/plan/agents/ui-ux-designer.md +0 -91
- package/templates/claude-code/zh-CN/workflow/plan/commands/feat.md +0 -105
- package/templates/codex/common/config.toml +0 -0
- package/templates/common/output-styles/en/casual-friendly.md +0 -97
- package/templates/common/output-styles/en/expert-concise.md +0 -93
- package/templates/common/output-styles/en/pair-programmer.md +0 -177
- package/templates/common/output-styles/en/senior-architect.md +0 -121
- package/templates/common/output-styles/en/speed-coder.md +0 -185
- package/templates/common/output-styles/en/teaching-mode.md +0 -102
- package/templates/common/output-styles/en/technical-precise.md +0 -101
- package/templates/common/output-styles/zh-CN/pair-programmer.md +0 -177
- package/templates/common/output-styles/zh-CN/senior-architect.md +0 -297
- package/templates/common/output-styles/zh-CN/speed-coder.md +0 -185
- package/templates/common/skills/code-review.md +0 -343
- package/templates/common/skills/en/agent-browser.md +0 -258
- package/templates/common/skills/en/brainstorming.md +0 -64
- package/templates/common/skills/en/code-review.md +0 -81
- package/templates/common/skills/en/documentation-gen.md +0 -808
- package/templates/common/skills/en/executing-plans.md +0 -75
- package/templates/common/skills/en/git-commit.md +0 -216
- package/templates/common/skills/en/interview.md +0 -223
- package/templates/common/skills/en/migration-assistant.md +0 -312
- package/templates/common/skills/en/performance-profiling.md +0 -576
- package/templates/common/skills/en/pr-review.md +0 -341
- package/templates/common/skills/en/refactoring.md +0 -384
- package/templates/common/skills/en/security-audit.md +0 -462
- package/templates/common/skills/en/systematic-debugging.md +0 -82
- package/templates/common/skills/en/tdd-workflow.md +0 -93
- package/templates/common/skills/en/verification.md +0 -81
- package/templates/common/skills/en/workflow.md +0 -370
- package/templates/common/skills/en/writing-plans.md +0 -78
- package/templates/common/skills/summarize.md +0 -312
- package/templates/common/skills/translate.md +0 -202
- package/templates/common/skills/zh-CN/agent-browser.md +0 -260
- package/templates/common/skills/zh-CN/documentation-gen.md +0 -807
- package/templates/common/skills/zh-CN/migration-assistant.md +0 -318
- package/templates/common/skills/zh-CN/performance-profiling.md +0 -746
- package/templates/common/skills/zh-CN/pr-review.md +0 -341
- package/templates/common/skills/zh-CN/refactoring.md +0 -384
- package/templates/common/skills/zh-CN/security-audit.md +0 -462
- package/templates/common/smart-guide/en/smart-guide.md +0 -72
- package/templates/common/smart-guide/zh-CN/smart-guide.md +0 -72
- package/templates/common/workflow/git/en/git-cleanBranches.md +0 -102
- package/templates/common/workflow/git/en/git-commit.md +0 -205
- package/templates/common/workflow/git/en/git-rollback.md +0 -90
- package/templates/common/workflow/git/en/git-worktree.md +0 -276
- package/templates/common/workflow/git/zh-CN/git-cleanBranches.md +0 -102
- package/templates/common/workflow/git/zh-CN/git-commit.md +0 -205
- package/templates/common/workflow/git/zh-CN/git-rollback.md +0 -90
- package/templates/common/workflow/git/zh-CN/git-worktree.md +0 -276
- package/templates/common/workflow/interview/en/interview.md +0 -212
- package/templates/common/workflow/interview/zh-CN/interview.md +0 -212
- package/templates/common/workflow/sixStep/en/workflow.md +0 -357
- package/templates/common/workflow/sixStep/zh-CN/workflow.md +0 -357
- package/templates/industry/devops/en/ci-cd-pipeline.md +0 -410
- package/templates/industry/web-dev/en/api-design.md +0 -299
- package/templates/industry/web-dev/en/react-nextjs-setup.md +0 -236
package/dist/chunks/ccr.mjs
CHANGED
|
@@ -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';
|
package/dist/chunks/doctor.mjs
CHANGED
|
@@ -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")
|
package/dist/chunks/index.mjs
CHANGED
|
@@ -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"
|
package/dist/chunks/package.mjs
CHANGED