ccjk 9.12.4 → 9.12.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/package.json +1 -1
- package/dist/chunks/agent-teams.mjs +0 -137
- package/dist/chunks/agent.mjs +0 -1436
- package/dist/chunks/api-providers.mjs +0 -131
- package/dist/chunks/api.mjs +0 -852
- package/dist/chunks/auto-bootstrap.mjs +0 -360
- package/dist/chunks/auto-updater.mjs +0 -398
- package/dist/chunks/bash.mjs +0 -187
- package/dist/chunks/boost.mjs +0 -398
- package/dist/chunks/ccjk-agents.mjs +0 -416
- package/dist/chunks/ccjk-all.mjs +0 -2045
- package/dist/chunks/ccjk-config.mjs +0 -261
- package/dist/chunks/ccjk-hooks.mjs +0 -1062
- package/dist/chunks/ccjk-mcp.mjs +0 -748
- package/dist/chunks/ccjk-setup.mjs +0 -752
- package/dist/chunks/ccjk-skills.mjs +0 -503
- package/dist/chunks/ccr.mjs +0 -85
- package/dist/chunks/ccu.mjs +0 -36
- package/dist/chunks/check-updates.mjs +0 -96
- package/dist/chunks/claude-code-config-manager.mjs +0 -734
- package/dist/chunks/claude-code-incremental-manager.mjs +0 -608
- package/dist/chunks/claude-config.mjs +0 -236
- package/dist/chunks/claude-wrapper.mjs +0 -82
- package/dist/chunks/cleanup-migration.mjs +0 -20
- package/dist/chunks/cli-hook.mjs +0 -3130
- package/dist/chunks/cloud-sync.mjs +0 -29
- package/dist/chunks/codex-config-switch.mjs +0 -437
- package/dist/chunks/codex-provider-manager.mjs +0 -222
- package/dist/chunks/codex-uninstaller.mjs +0 -405
- package/dist/chunks/codex.mjs +0 -1950
- package/dist/chunks/commands.mjs +0 -412
- package/dist/chunks/commands2.mjs +0 -109
- package/dist/chunks/commit.mjs +0 -119
- package/dist/chunks/completion.mjs +0 -516
- package/dist/chunks/config-consolidator.mjs +0 -173
- package/dist/chunks/config-switch.mjs +0 -303
- package/dist/chunks/config.mjs +0 -456
- package/dist/chunks/config2.mjs +0 -455
- package/dist/chunks/config3.mjs +0 -465
- package/dist/chunks/constants.mjs +0 -104
- package/dist/chunks/context.mjs +0 -775
- package/dist/chunks/doctor.mjs +0 -926
- package/dist/chunks/features.mjs +0 -597
- package/dist/chunks/fish.mjs +0 -181
- package/dist/chunks/fs-operations.mjs +0 -192
- package/dist/chunks/help.mjs +0 -339
- package/dist/chunks/hook-installer.mjs +0 -44
- package/dist/chunks/index.mjs +0 -182
- package/dist/chunks/index2.mjs +0 -1171
- package/dist/chunks/index3.mjs +0 -1005
- package/dist/chunks/index4.mjs +0 -195
- package/dist/chunks/index5.mjs +0 -663
- package/dist/chunks/init.mjs +0 -1316
- package/dist/chunks/installer.mjs +0 -178
- package/dist/chunks/installer2.mjs +0 -680
- package/dist/chunks/interview.mjs +0 -2916
- package/dist/chunks/json-config.mjs +0 -59
- package/dist/chunks/marketplace.mjs +0 -946
- package/dist/chunks/mcp-performance.mjs +0 -187
- package/dist/chunks/mcp.mjs +0 -1546
- package/dist/chunks/menu.mjs +0 -551
- package/dist/chunks/migrator.mjs +0 -179
- package/dist/chunks/monitor.mjs +0 -1856
- package/dist/chunks/notification.mjs +0 -2336
- package/dist/chunks/onboarding.mjs +0 -374
- package/dist/chunks/package.mjs +0 -4
- package/dist/chunks/permission-manager.mjs +0 -133
- package/dist/chunks/permissions.mjs +0 -250
- package/dist/chunks/platform.mjs +0 -391
- package/dist/chunks/plugin.mjs +0 -1937
- package/dist/chunks/powershell.mjs +0 -213
- package/dist/chunks/prompts.mjs +0 -229
- package/dist/chunks/providers.mjs +0 -261
- package/dist/chunks/quick-provider.mjs +0 -926
- package/dist/chunks/quick-setup.mjs +0 -399
- package/dist/chunks/session.mjs +0 -865
- package/dist/chunks/silent-updater.mjs +0 -398
- package/dist/chunks/simple-config.mjs +0 -100
- package/dist/chunks/skill.mjs +0 -546
- package/dist/chunks/skills-sync.mjs +0 -846
- package/dist/chunks/skills.mjs +0 -1705
- package/dist/chunks/smart-defaults.mjs +0 -330
- package/dist/chunks/smart-guide.mjs +0 -194
- package/dist/chunks/startup.mjs +0 -489
- package/dist/chunks/stats.mjs +0 -411
- package/dist/chunks/status.mjs +0 -261
- package/dist/chunks/team.mjs +0 -51
- package/dist/chunks/thinking.mjs +0 -615
- package/dist/chunks/uninstall.mjs +0 -836
- package/dist/chunks/update.mjs +0 -120
- package/dist/chunks/upgrade-manager.mjs +0 -197
- package/dist/chunks/version-checker.mjs +0 -877
- package/dist/chunks/vim.mjs +0 -891
- package/dist/chunks/workflows.mjs +0 -633
- package/dist/chunks/zsh.mjs +0 -182
- package/dist/cli.d.mts +0 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.mjs +0 -1746
- package/dist/i18n/locales/en/agent-teams.json +0 -18
- package/dist/i18n/locales/en/agentBrowser.json +0 -79
- package/dist/i18n/locales/en/agents.json +0 -135
- package/dist/i18n/locales/en/api.json +0 -63
- package/dist/i18n/locales/en/ccjk-agents.json +0 -33
- package/dist/i18n/locales/en/ccjk-all.json +0 -23
- package/dist/i18n/locales/en/ccjk-skills.json +0 -22
- package/dist/i18n/locales/en/ccjk.json +0 -276
- package/dist/i18n/locales/en/ccr.json +0 -65
- package/dist/i18n/locales/en/claude-md.json +0 -73
- package/dist/i18n/locales/en/cli.json +0 -139
- package/dist/i18n/locales/en/cloud-setup.json +0 -31
- package/dist/i18n/locales/en/cloud-sync.json +0 -147
- package/dist/i18n/locales/en/cloudPlugins.json +0 -118
- package/dist/i18n/locales/en/codex.json +0 -127
- package/dist/i18n/locales/en/cometix.json +0 -29
- package/dist/i18n/locales/en/common.json +0 -35
- package/dist/i18n/locales/en/config.json +0 -108
- package/dist/i18n/locales/en/configuration.json +0 -193
- package/dist/i18n/locales/en/context.json +0 -32
- package/dist/i18n/locales/en/errors.json +0 -26
- package/dist/i18n/locales/en/hooks.json +0 -74
- package/dist/i18n/locales/en/hooksSync.json +0 -133
- package/dist/i18n/locales/en/installation.json +0 -83
- package/dist/i18n/locales/en/interview.json +0 -104
- package/dist/i18n/locales/en/language.json +0 -19
- package/dist/i18n/locales/en/lsp.json +0 -78
- package/dist/i18n/locales/en/marketplace.json +0 -116
- package/dist/i18n/locales/en/mcp.json +0 -176
- package/dist/i18n/locales/en/memory.json +0 -92
- package/dist/i18n/locales/en/menu.json +0 -143
- package/dist/i18n/locales/en/multi-config.json +0 -79
- package/dist/i18n/locales/en/notification.json +0 -306
- package/dist/i18n/locales/en/permissions.json +0 -95
- package/dist/i18n/locales/en/plugins.json +0 -146
- package/dist/i18n/locales/en/registry.json +0 -54
- package/dist/i18n/locales/en/sandbox.json +0 -44
- package/dist/i18n/locales/en/setup.json +0 -44
- package/dist/i18n/locales/en/shencha.json +0 -14
- package/dist/i18n/locales/en/skills.json +0 -100
- package/dist/i18n/locales/en/skillsSync.json +0 -74
- package/dist/i18n/locales/en/smartGuide.json +0 -49
- package/dist/i18n/locales/en/stats.json +0 -20
- package/dist/i18n/locales/en/subagent.json +0 -69
- package/dist/i18n/locales/en/superpowers.json +0 -117
- package/dist/i18n/locales/en/team.json +0 -7
- package/dist/i18n/locales/en/thinking.json +0 -65
- package/dist/i18n/locales/en/tools.json +0 -42
- package/dist/i18n/locales/en/uninstall.json +0 -56
- package/dist/i18n/locales/en/updater.json +0 -29
- package/dist/i18n/locales/en/vim.json +0 -169
- package/dist/i18n/locales/en/workflow.json +0 -55
- package/dist/i18n/locales/en/workspace.json +0 -108
- package/dist/i18n/locales/zh-CN/agent-teams.json +0 -18
- package/dist/i18n/locales/zh-CN/agentBrowser.json +0 -79
- package/dist/i18n/locales/zh-CN/agents.json +0 -135
- package/dist/i18n/locales/zh-CN/api.json +0 -63
- package/dist/i18n/locales/zh-CN/ccjk-agents.json +0 -33
- package/dist/i18n/locales/zh-CN/ccjk-all.json +0 -23
- package/dist/i18n/locales/zh-CN/ccjk-skills.json +0 -22
- package/dist/i18n/locales/zh-CN/ccjk.json +0 -276
- package/dist/i18n/locales/zh-CN/ccr.json +0 -65
- package/dist/i18n/locales/zh-CN/claude-md.json +0 -73
- package/dist/i18n/locales/zh-CN/cli.json +0 -139
- package/dist/i18n/locales/zh-CN/cloud-setup.json +0 -31
- package/dist/i18n/locales/zh-CN/cloud-sync.json +0 -147
- package/dist/i18n/locales/zh-CN/cloudPlugins.json +0 -118
- package/dist/i18n/locales/zh-CN/codex.json +0 -127
- package/dist/i18n/locales/zh-CN/cometix.json +0 -29
- package/dist/i18n/locales/zh-CN/common.json +0 -35
- package/dist/i18n/locales/zh-CN/config.json +0 -108
- package/dist/i18n/locales/zh-CN/configuration.json +0 -191
- package/dist/i18n/locales/zh-CN/context.json +0 -32
- package/dist/i18n/locales/zh-CN/errors.json +0 -26
- package/dist/i18n/locales/zh-CN/hooks.json +0 -74
- package/dist/i18n/locales/zh-CN/hooksSync.json +0 -133
- package/dist/i18n/locales/zh-CN/installation.json +0 -83
- package/dist/i18n/locales/zh-CN/interview.json +0 -104
- package/dist/i18n/locales/zh-CN/language.json +0 -19
- package/dist/i18n/locales/zh-CN/lsp.json +0 -78
- package/dist/i18n/locales/zh-CN/marketplace.json +0 -116
- package/dist/i18n/locales/zh-CN/mcp.json +0 -176
- package/dist/i18n/locales/zh-CN/memory.json +0 -92
- package/dist/i18n/locales/zh-CN/menu.json +0 -143
- package/dist/i18n/locales/zh-CN/multi-config.json +0 -79
- package/dist/i18n/locales/zh-CN/notification.json +0 -306
- package/dist/i18n/locales/zh-CN/permissions.json +0 -95
- package/dist/i18n/locales/zh-CN/plugins.json +0 -146
- package/dist/i18n/locales/zh-CN/registry.json +0 -54
- package/dist/i18n/locales/zh-CN/sandbox.json +0 -44
- package/dist/i18n/locales/zh-CN/setup.json +0 -44
- package/dist/i18n/locales/zh-CN/shencha.json +0 -14
- package/dist/i18n/locales/zh-CN/skills.json +0 -100
- package/dist/i18n/locales/zh-CN/skillsSync.json +0 -74
- package/dist/i18n/locales/zh-CN/smartGuide.json +0 -49
- package/dist/i18n/locales/zh-CN/stats.json +0 -20
- package/dist/i18n/locales/zh-CN/subagent.json +0 -69
- package/dist/i18n/locales/zh-CN/superpowers.json +0 -117
- package/dist/i18n/locales/zh-CN/team.json +0 -7
- package/dist/i18n/locales/zh-CN/thinking.json +0 -65
- package/dist/i18n/locales/zh-CN/tools.json +0 -42
- package/dist/i18n/locales/zh-CN/uninstall.json +0 -56
- package/dist/i18n/locales/zh-CN/updater.json +0 -29
- package/dist/i18n/locales/zh-CN/vim.json +0 -169
- package/dist/i18n/locales/zh-CN/workflow.json +0 -55
- package/dist/i18n/locales/zh-CN/workspace.json +0 -108
- package/dist/index.d.mts +0 -2684
- package/dist/index.d.ts +0 -2684
- package/dist/index.mjs +0 -3668
- package/dist/shared/ccjk.AqnXPAzw.mjs +0 -52
- package/dist/shared/ccjk.BFQ7yr5S.mjs +0 -16
- package/dist/shared/ccjk.BNwRnWYx.mjs +0 -2735
- package/dist/shared/ccjk.Bdhyg3X-.mjs +0 -317
- package/dist/shared/ccjk.Bndhan7G.mjs +0 -400
- package/dist/shared/ccjk.Br91zBIG.mjs +0 -138
- package/dist/shared/ccjk.BsXQugfY.mjs +0 -1447
- package/dist/shared/ccjk.Bvoex4TZ.mjs +0 -126
- package/dist/shared/ccjk.CBhIZiPz.mjs +0 -333
- package/dist/shared/ccjk.DE91nClQ.mjs +0 -111
- package/dist/shared/ccjk.DHbrGcgg.mjs +0 -13
- package/dist/shared/ccjk.DKojSRzw.mjs +0 -266
- package/dist/shared/ccjk.DntgA8fQ.mjs +0 -42
- package/dist/shared/ccjk.Dpw86UX0.mjs +0 -54
- package/dist/shared/ccjk.DvIrK0wz.mjs +0 -25
- package/dist/shared/ccjk.J8YiPsOw.mjs +0 -259
- package/dist/shared/ccjk.LsPZ2PYo.mjs +0 -1048
- package/dist/shared/ccjk.h7_W-wTs.mjs +0 -1242
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccjk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "9.12.
|
|
4
|
+
"version": "9.12.5",
|
|
5
5
|
"packageManager": "pnpm@10.17.1",
|
|
6
6
|
"description": "CCJK v9.0.0 - Revolutionary AI Development Platform with Enterprise Security, Streaming Cloud Sync, CRDT Conflict Resolution, and Unified V3 Architecture",
|
|
7
7
|
"author": {
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
-
import ansis from 'ansis';
|
|
3
|
-
import { SETTINGS_FILE } from './constants.mjs';
|
|
4
|
-
import { ensureI18nInitialized, i18n } from './index.mjs';
|
|
5
|
-
import { writeJsonConfig } from './json-config.mjs';
|
|
6
|
-
import 'node:os';
|
|
7
|
-
import 'pathe';
|
|
8
|
-
import 'node:process';
|
|
9
|
-
import 'node:url';
|
|
10
|
-
import 'i18next';
|
|
11
|
-
import 'i18next-fs-backend';
|
|
12
|
-
import 'dayjs';
|
|
13
|
-
import './fs-operations.mjs';
|
|
14
|
-
import 'node:crypto';
|
|
15
|
-
import 'node:fs/promises';
|
|
16
|
-
|
|
17
|
-
const ENV_KEY = "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS";
|
|
18
|
-
function t(key, opts) {
|
|
19
|
-
return i18n.t(`agent-teams:${key}`, opts);
|
|
20
|
-
}
|
|
21
|
-
function readSettings() {
|
|
22
|
-
if (!existsSync(SETTINGS_FILE)) return {};
|
|
23
|
-
try {
|
|
24
|
-
return JSON.parse(readFileSync(SETTINGS_FILE, "utf-8"));
|
|
25
|
-
} catch {
|
|
26
|
-
return {};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
function isAgentTeamsEnabled() {
|
|
30
|
-
const settings = readSettings();
|
|
31
|
-
return settings?.env?.[ENV_KEY] === "1";
|
|
32
|
-
}
|
|
33
|
-
function setAgentTeams(enabled) {
|
|
34
|
-
const settings = readSettings();
|
|
35
|
-
if (!settings.env) settings.env = {};
|
|
36
|
-
if (enabled) {
|
|
37
|
-
settings.env[ENV_KEY] = "1";
|
|
38
|
-
} else {
|
|
39
|
-
delete settings.env[ENV_KEY];
|
|
40
|
-
}
|
|
41
|
-
writeJsonConfig(SETTINGS_FILE, settings);
|
|
42
|
-
}
|
|
43
|
-
function getTeammateMode() {
|
|
44
|
-
const settings = readSettings();
|
|
45
|
-
return settings?.teammateMode || "auto";
|
|
46
|
-
}
|
|
47
|
-
function setTeammateMode(mode) {
|
|
48
|
-
const settings = readSettings();
|
|
49
|
-
settings.teammateMode = mode;
|
|
50
|
-
writeJsonConfig(SETTINGS_FILE, settings);
|
|
51
|
-
}
|
|
52
|
-
async function agentTeamsCommand(options) {
|
|
53
|
-
ensureI18nInitialized();
|
|
54
|
-
if (options.status) {
|
|
55
|
-
printStatus();
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
if (options.on !== void 0 || options.off !== void 0) {
|
|
59
|
-
const enable = options.on === true;
|
|
60
|
-
setAgentTeams(enable);
|
|
61
|
-
console.log(ansis.green(t(enable ? "enabled" : "disabled")));
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
if (options.mode) {
|
|
65
|
-
const valid = ["auto", "in-process", "tmux"];
|
|
66
|
-
if (!valid.includes(options.mode)) {
|
|
67
|
-
console.log(ansis.red(t("invalidMode")));
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
setTeammateMode(options.mode);
|
|
71
|
-
console.log(ansis.green(t("modeSet", { mode: options.mode })));
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
const current = isAgentTeamsEnabled();
|
|
75
|
-
const { default: inquirer } = await import('inquirer');
|
|
76
|
-
const { action } = await inquirer.prompt([{
|
|
77
|
-
type: "list",
|
|
78
|
-
name: "action",
|
|
79
|
-
message: t("settings"),
|
|
80
|
-
choices: [
|
|
81
|
-
{
|
|
82
|
-
name: current ? t("toggleDisable") : t("toggleEnable"),
|
|
83
|
-
value: "toggle"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: t("setMode"),
|
|
87
|
-
value: "mode"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: t("viewStatus"),
|
|
91
|
-
value: "status"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
name: t("back"),
|
|
95
|
-
value: "back"
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
}]);
|
|
99
|
-
if (action === "toggle") {
|
|
100
|
-
setAgentTeams(!current);
|
|
101
|
-
console.log(ansis.green(t(!current ? "enabled" : "disabled")));
|
|
102
|
-
} else if (action === "mode") {
|
|
103
|
-
const currentMode = getTeammateMode();
|
|
104
|
-
const { mode } = await inquirer.prompt([{
|
|
105
|
-
type: "list",
|
|
106
|
-
name: "mode",
|
|
107
|
-
message: t("selectMode"),
|
|
108
|
-
choices: [
|
|
109
|
-
{ name: `auto ${currentMode === "auto" ? "(current)" : ""}`, value: "auto" },
|
|
110
|
-
{ name: `in-process ${currentMode === "in-process" ? "(current)" : ""}`, value: "in-process" },
|
|
111
|
-
{ name: `tmux ${currentMode === "tmux" ? "(current)" : ""}`, value: "tmux" }
|
|
112
|
-
]
|
|
113
|
-
}]);
|
|
114
|
-
setTeammateMode(mode);
|
|
115
|
-
console.log(ansis.green(t("modeSet", { mode })));
|
|
116
|
-
} else if (action === "status") {
|
|
117
|
-
printStatus();
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
function printStatus() {
|
|
121
|
-
const enabled = isAgentTeamsEnabled();
|
|
122
|
-
const mode = getTeammateMode();
|
|
123
|
-
console.log();
|
|
124
|
-
console.log(ansis.bold(t("statusTitle")));
|
|
125
|
-
console.log(ansis.gray("\u2500".repeat(40)));
|
|
126
|
-
console.log(` ${t("statusLabel")}: ${enabled ? ansis.green("\u2705 Enabled") : ansis.dim("\u2B1C Disabled")}`);
|
|
127
|
-
console.log(` ${t("modeLabel")}: ${ansis.cyan(mode)}`);
|
|
128
|
-
console.log();
|
|
129
|
-
if (!enabled) {
|
|
130
|
-
console.log(ansis.dim(` ${t("enableHint")}`));
|
|
131
|
-
} else {
|
|
132
|
-
console.log(ansis.dim(` ${t("usageHint")}`));
|
|
133
|
-
}
|
|
134
|
-
console.log();
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export { agentTeamsCommand, getTeammateMode, isAgentTeamsEnabled, setAgentTeams, setTeammateMode };
|