ccjk 13.6.4 → 13.6.5
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/dist/chunks/agents.mjs +1 -1
- package/dist/chunks/ccr.mjs +1 -1
- package/dist/chunks/check-updates.mjs +16 -16
- package/dist/chunks/claude-code-config-manager.mjs +1 -1
- package/dist/chunks/claude-config.mjs +18 -1
- package/dist/chunks/cli-hook.mjs +21 -78
- package/dist/chunks/config2.mjs +2 -2
- package/dist/chunks/constants.mjs +178 -2
- package/dist/chunks/index10.mjs +40 -21
- package/dist/chunks/init.mjs +108 -33
- package/dist/chunks/installer.mjs +80 -19
- package/dist/chunks/mcp.mjs +1 -1
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/platform.mjs +4 -0
- package/dist/chunks/quick-setup.mjs +1 -1
- package/dist/chunks/research.mjs +979 -0
- package/dist/chunks/sessions.mjs +1 -1
- package/dist/chunks/smart-defaults.mjs +41 -13
- package/dist/chunks/uninstall.mjs +1 -1
- package/dist/cli.mjs +28 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +8 -174
- package/dist/shared/{ccjk.DwSebGy0.mjs → ccjk.BOO14f66.mjs} +1 -1
- package/dist/shared/ccjk.BnsY5WxD.mjs +171 -0
- package/dist/shared/ccjk.yYQMbHH3.mjs +115 -0
- package/package.json +68 -65
- package/dist/shared/ccjk.CiKtBUW_.mjs +0 -54
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccjk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "13.6.
|
|
4
|
+
"version": "13.6.5",
|
|
5
|
+
"packageManager": "pnpm@10.17.1",
|
|
5
6
|
"description": "Production-ready AI dev environment for Claude Code, Codex, and modern coding workflows with 30-second onboarding, persistent memory, Agent Teams, remote control, and capability discovery.",
|
|
6
7
|
"author": {
|
|
7
8
|
"name": "CCJK Team",
|
|
@@ -80,69 +81,6 @@
|
|
|
80
81
|
"engines": {
|
|
81
82
|
"node": ">=20"
|
|
82
83
|
},
|
|
83
|
-
"dependencies": {
|
|
84
|
-
"better-sqlite3": "^12.6.2",
|
|
85
|
-
"fdir": "^6.5.0",
|
|
86
|
-
"globby": "^14.1.0",
|
|
87
|
-
"ioredis": "^5.9.3",
|
|
88
|
-
"node-cron": "^4.2.1",
|
|
89
|
-
"sql.js": "^1.14.0",
|
|
90
|
-
"tar": "^7.5.9",
|
|
91
|
-
"tinyglobby": "^0.2.15",
|
|
92
|
-
"web-tree-sitter": "^0.26.5"
|
|
93
|
-
},
|
|
94
|
-
"devDependencies": {
|
|
95
|
-
"@antfu/eslint-config": "^5.4.1",
|
|
96
|
-
"@anthropic-ai/sdk": "^0.52.0",
|
|
97
|
-
"@types/better-sqlite3": "^7.6.13",
|
|
98
|
-
"@types/fs-extra": "^11.0.4",
|
|
99
|
-
"@types/inquirer": "^9.0.9",
|
|
100
|
-
"@types/node": "^22.18.6",
|
|
101
|
-
"@types/node-cron": "^3.0.11",
|
|
102
|
-
"@types/semver": "^7.7.1",
|
|
103
|
-
"@types/uuid": "^11.0.0",
|
|
104
|
-
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
105
|
-
"@typescript-eslint/parser": "^6.0.0",
|
|
106
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
107
|
-
"@vitest/ui": "^3.2.4",
|
|
108
|
-
"ansis": "^4.2.0",
|
|
109
|
-
"cac": "^6.7.14",
|
|
110
|
-
"chokidar": "^4.0.3",
|
|
111
|
-
"concurrently": "^9.2.1",
|
|
112
|
-
"consola": "^3.4.2",
|
|
113
|
-
"dayjs": "^1.11.19",
|
|
114
|
-
"eslint": "^9.36.0",
|
|
115
|
-
"eslint-plugin-format": "^1.4.0",
|
|
116
|
-
"find-up-simple": "^1.0.1",
|
|
117
|
-
"fs-extra": "^11.3.3",
|
|
118
|
-
"gray-matter": "^4.0.3",
|
|
119
|
-
"handlebars": "^4.7.8",
|
|
120
|
-
"husky": "^9.1.7",
|
|
121
|
-
"i18next": "^25.8.13",
|
|
122
|
-
"i18next-fs-backend": "^2.6.1",
|
|
123
|
-
"inquirer": "^12.9.6",
|
|
124
|
-
"inquirer-toggle": "^1.0.1",
|
|
125
|
-
"lint-staged": "^16.2.7",
|
|
126
|
-
"lowdb": "^7.0.1",
|
|
127
|
-
"nanoid": "^5.1.6",
|
|
128
|
-
"ofetch": "^1.5.1",
|
|
129
|
-
"ohash": "^1.1.4",
|
|
130
|
-
"ora": "^8.2.0",
|
|
131
|
-
"pathe": "^2.0.3",
|
|
132
|
-
"pkgroll": "^2.26.3",
|
|
133
|
-
"prettier": "^3.8.1",
|
|
134
|
-
"semver": "^7.7.4",
|
|
135
|
-
"shx": "^0.4.0",
|
|
136
|
-
"smol-toml": "^1.6.0",
|
|
137
|
-
"tinyexec": "^1.0.2",
|
|
138
|
-
"trash": "^10.1.0",
|
|
139
|
-
"tsx": "^4.21.0",
|
|
140
|
-
"tweetnacl": "^1.0.3",
|
|
141
|
-
"typescript": "^5.9.3",
|
|
142
|
-
"unbuild": "^3.6.1",
|
|
143
|
-
"uuid": "^11.1.0",
|
|
144
|
-
"vitest": "^3.2.4"
|
|
145
|
-
},
|
|
146
84
|
"scripts": {
|
|
147
85
|
"dev": "tsx ./src/cli.ts",
|
|
148
86
|
"build": "unbuild",
|
|
@@ -150,6 +88,7 @@
|
|
|
150
88
|
"typecheck": "tsc --noEmit",
|
|
151
89
|
"release:verify": "node scripts/release-verify.mjs",
|
|
152
90
|
"release:verify:full": "node scripts/release-verify.mjs --with-tests",
|
|
91
|
+
"prepublishOnly": "node scripts/validate-prepublish.mjs && pnpm contract:check && pnpm build",
|
|
153
92
|
"lint": "eslint",
|
|
154
93
|
"lint:fix": "eslint --fix",
|
|
155
94
|
"test": "vitest",
|
|
@@ -171,6 +110,7 @@
|
|
|
171
110
|
"test:integration:run": "NODE_ENV=test vitest run --config vitest.integration.config.ts",
|
|
172
111
|
"test:integration:ui": "NODE_ENV=test vitest --config vitest.integration.config.ts --ui",
|
|
173
112
|
"test:integration:coverage": "NODE_ENV=test vitest run --config vitest.integration.config.ts --coverage",
|
|
113
|
+
"prepare": "husky",
|
|
174
114
|
"format": "prettier --write src/**/*.ts",
|
|
175
115
|
"prepublish:fix": "node scripts/fix-package-catalog.mjs",
|
|
176
116
|
"cleanup": "node scripts/cleanup.js",
|
|
@@ -205,5 +145,68 @@
|
|
|
205
145
|
"i18n:check": "tsx scripts/check-i18n.ts",
|
|
206
146
|
"i18n:report": "tsx scripts/check-i18n.ts --report",
|
|
207
147
|
"contract:check": "node scripts/check-remote-contract.mjs"
|
|
148
|
+
},
|
|
149
|
+
"dependencies": {
|
|
150
|
+
"better-sqlite3": "^12.6.2",
|
|
151
|
+
"fdir": "^6.5.0",
|
|
152
|
+
"globby": "^14.1.0",
|
|
153
|
+
"ioredis": "^5.9.3",
|
|
154
|
+
"node-cron": "^4.2.1",
|
|
155
|
+
"sql.js": "^1.14.0",
|
|
156
|
+
"tar": "^7.5.9",
|
|
157
|
+
"tinyglobby": "^0.2.15",
|
|
158
|
+
"web-tree-sitter": "^0.26.5"
|
|
159
|
+
},
|
|
160
|
+
"devDependencies": {
|
|
161
|
+
"@antfu/eslint-config": "^5.4.1",
|
|
162
|
+
"@anthropic-ai/sdk": "^0.52.0",
|
|
163
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
164
|
+
"@types/fs-extra": "^11.0.4",
|
|
165
|
+
"@types/inquirer": "^9.0.9",
|
|
166
|
+
"@types/node": "^22.18.6",
|
|
167
|
+
"@types/node-cron": "^3.0.11",
|
|
168
|
+
"@types/semver": "^7.7.1",
|
|
169
|
+
"@types/uuid": "^11.0.0",
|
|
170
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
171
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
172
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
173
|
+
"@vitest/ui": "^3.2.4",
|
|
174
|
+
"ansis": "^4.2.0",
|
|
175
|
+
"cac": "^6.7.14",
|
|
176
|
+
"chokidar": "^4.0.3",
|
|
177
|
+
"concurrently": "^9.2.1",
|
|
178
|
+
"consola": "^3.4.2",
|
|
179
|
+
"dayjs": "^1.11.19",
|
|
180
|
+
"eslint": "^9.36.0",
|
|
181
|
+
"eslint-plugin-format": "^1.4.0",
|
|
182
|
+
"find-up-simple": "^1.0.1",
|
|
183
|
+
"fs-extra": "^11.3.3",
|
|
184
|
+
"gray-matter": "^4.0.3",
|
|
185
|
+
"handlebars": "^4.7.8",
|
|
186
|
+
"husky": "^9.1.7",
|
|
187
|
+
"i18next": "^25.8.13",
|
|
188
|
+
"i18next-fs-backend": "^2.6.1",
|
|
189
|
+
"inquirer": "^12.9.6",
|
|
190
|
+
"inquirer-toggle": "^1.0.1",
|
|
191
|
+
"lint-staged": "^16.2.7",
|
|
192
|
+
"lowdb": "^7.0.1",
|
|
193
|
+
"nanoid": "^5.1.6",
|
|
194
|
+
"ofetch": "^1.5.1",
|
|
195
|
+
"ohash": "^1.1.4",
|
|
196
|
+
"ora": "^8.2.0",
|
|
197
|
+
"pathe": "^2.0.3",
|
|
198
|
+
"pkgroll": "^2.26.3",
|
|
199
|
+
"prettier": "^3.8.1",
|
|
200
|
+
"semver": "^7.7.4",
|
|
201
|
+
"shx": "^0.4.0",
|
|
202
|
+
"smol-toml": "^1.6.0",
|
|
203
|
+
"tinyexec": "^1.0.2",
|
|
204
|
+
"trash": "^10.1.0",
|
|
205
|
+
"tsx": "^4.21.0",
|
|
206
|
+
"tweetnacl": "^1.0.3",
|
|
207
|
+
"typescript": "^5.9.3",
|
|
208
|
+
"unbuild": "^3.6.1",
|
|
209
|
+
"uuid": "^11.1.0",
|
|
210
|
+
"vitest": "^3.2.4"
|
|
208
211
|
}
|
|
209
|
-
}
|
|
212
|
+
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { a as detectCodeToolType } from '../chunks/smart-defaults.mjs';
|
|
2
|
-
import { DEFAULT_CODE_TOOL_TYPE } from '../chunks/constants.mjs';
|
|
3
|
-
import { i18n } from '../chunks/index2.mjs';
|
|
4
|
-
import { readZcfConfigAsync } from '../chunks/ccjk-config.mjs';
|
|
5
|
-
|
|
6
|
-
const CODE_TYPE_ABBREVIATIONS = {
|
|
7
|
-
cc: "claude-code",
|
|
8
|
-
cx: "codex"
|
|
9
|
-
};
|
|
10
|
-
async function resolveCodeType(codeTypeParam) {
|
|
11
|
-
if (codeTypeParam) {
|
|
12
|
-
const normalizedParam = codeTypeParam.toLowerCase().trim();
|
|
13
|
-
if (normalizedParam in CODE_TYPE_ABBREVIATIONS) {
|
|
14
|
-
return CODE_TYPE_ABBREVIATIONS[normalizedParam];
|
|
15
|
-
}
|
|
16
|
-
if (isValidCodeType(normalizedParam)) {
|
|
17
|
-
return normalizedParam;
|
|
18
|
-
}
|
|
19
|
-
const validAbbreviations = Object.keys(CODE_TYPE_ABBREVIATIONS);
|
|
20
|
-
const validFullTypes = Object.values(CODE_TYPE_ABBREVIATIONS);
|
|
21
|
-
const validOptions = [...validAbbreviations, ...validFullTypes].join(", ");
|
|
22
|
-
let defaultValue = DEFAULT_CODE_TOOL_TYPE;
|
|
23
|
-
try {
|
|
24
|
-
const config = await readZcfConfigAsync();
|
|
25
|
-
if (config?.codeToolType && isValidCodeType(config.codeToolType)) {
|
|
26
|
-
defaultValue = config.codeToolType;
|
|
27
|
-
}
|
|
28
|
-
} catch {
|
|
29
|
-
}
|
|
30
|
-
throw new Error(
|
|
31
|
-
i18n.t("errors:invalidCodeType", { value: codeTypeParam, validOptions, defaultValue })
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
try {
|
|
35
|
-
const config = await readZcfConfigAsync();
|
|
36
|
-
if (config?.codeToolType && isValidCodeType(config.codeToolType)) {
|
|
37
|
-
return config.codeToolType;
|
|
38
|
-
}
|
|
39
|
-
} catch {
|
|
40
|
-
}
|
|
41
|
-
try {
|
|
42
|
-
const freshDetected = detectCodeToolType();
|
|
43
|
-
if (isValidCodeType(freshDetected)) {
|
|
44
|
-
return freshDetected;
|
|
45
|
-
}
|
|
46
|
-
} catch {
|
|
47
|
-
}
|
|
48
|
-
return DEFAULT_CODE_TOOL_TYPE;
|
|
49
|
-
}
|
|
50
|
-
function isValidCodeType(value) {
|
|
51
|
-
return ["claude-code", "codex"].includes(value);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export { resolveCodeType as r };
|