ccjk 9.12.5 → 9.12.8
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/agent-teams.mjs +137 -0
- package/dist/chunks/agent.mjs +1436 -0
- package/dist/chunks/api-providers.mjs +131 -0
- package/dist/chunks/api.mjs +852 -0
- package/dist/chunks/auto-bootstrap.mjs +360 -0
- package/dist/chunks/auto-updater.mjs +398 -0
- package/dist/chunks/bash.mjs +187 -0
- package/dist/chunks/boost.mjs +398 -0
- package/dist/chunks/ccjk-agents.mjs +416 -0
- package/dist/chunks/ccjk-all.mjs +2045 -0
- package/dist/chunks/ccjk-config.mjs +261 -0
- package/dist/chunks/ccjk-hooks.mjs +1062 -0
- package/dist/chunks/ccjk-mcp.mjs +748 -0
- package/dist/chunks/ccjk-setup.mjs +752 -0
- package/dist/chunks/ccjk-skills.mjs +503 -0
- package/dist/chunks/ccr.mjs +85 -0
- package/dist/chunks/ccu.mjs +36 -0
- package/dist/chunks/check-updates.mjs +96 -0
- package/dist/chunks/claude-code-config-manager.mjs +734 -0
- package/dist/chunks/claude-code-incremental-manager.mjs +608 -0
- package/dist/chunks/claude-config.mjs +236 -0
- package/dist/chunks/claude-wrapper.mjs +82 -0
- package/dist/chunks/cleanup-migration.mjs +20 -0
- package/dist/chunks/cli-hook.mjs +3130 -0
- package/dist/chunks/cloud-sync.mjs +29 -0
- package/dist/chunks/codex-config-switch.mjs +437 -0
- package/dist/chunks/codex-provider-manager.mjs +222 -0
- package/dist/chunks/codex-uninstaller.mjs +405 -0
- package/dist/chunks/codex.mjs +1950 -0
- package/dist/chunks/commands.mjs +412 -0
- package/dist/chunks/commands2.mjs +109 -0
- package/dist/chunks/commit.mjs +119 -0
- package/dist/chunks/completion.mjs +516 -0
- package/dist/chunks/config-consolidator.mjs +173 -0
- package/dist/chunks/config-switch.mjs +303 -0
- package/dist/chunks/config.mjs +455 -0
- package/dist/chunks/config2.mjs +455 -0
- package/dist/chunks/config3.mjs +465 -0
- package/dist/chunks/constants.mjs +104 -0
- package/dist/chunks/context.mjs +775 -0
- package/dist/chunks/doctor.mjs +926 -0
- package/dist/chunks/features.mjs +597 -0
- package/dist/chunks/fish.mjs +181 -0
- package/dist/chunks/fs-operations.mjs +192 -0
- package/dist/chunks/help.mjs +339 -0
- package/dist/chunks/hook-installer.mjs +44 -0
- package/dist/chunks/index.mjs +182 -0
- package/dist/chunks/index2.mjs +1171 -0
- package/dist/chunks/index3.mjs +1005 -0
- package/dist/chunks/index4.mjs +195 -0
- package/dist/chunks/index5.mjs +663 -0
- package/dist/chunks/init.mjs +1316 -0
- package/dist/chunks/installer.mjs +178 -0
- package/dist/chunks/installer2.mjs +680 -0
- package/dist/chunks/interview.mjs +2916 -0
- package/dist/chunks/json-config.mjs +59 -0
- package/dist/chunks/marketplace.mjs +946 -0
- package/dist/chunks/mcp-performance.mjs +187 -0
- package/dist/chunks/mcp.mjs +1546 -0
- package/dist/chunks/menu.mjs +551 -0
- package/dist/chunks/migrator.mjs +179 -0
- package/dist/chunks/monitor.mjs +1856 -0
- package/dist/chunks/notification.mjs +2336 -0
- package/dist/chunks/onboarding.mjs +374 -0
- package/dist/chunks/package.mjs +4 -0
- package/dist/chunks/permission-manager.mjs +133 -0
- package/dist/chunks/permissions.mjs +250 -0
- package/dist/chunks/platform.mjs +391 -0
- package/dist/chunks/plugin.mjs +1937 -0
- package/dist/chunks/powershell.mjs +213 -0
- package/dist/chunks/prompts.mjs +229 -0
- package/dist/chunks/providers.mjs +261 -0
- package/dist/chunks/quick-provider.mjs +926 -0
- package/dist/chunks/quick-setup.mjs +399 -0
- package/dist/chunks/session.mjs +865 -0
- package/dist/chunks/silent-updater.mjs +398 -0
- package/dist/chunks/simple-config.mjs +100 -0
- package/dist/chunks/skill.mjs +546 -0
- package/dist/chunks/skills-sync.mjs +846 -0
- package/dist/chunks/skills.mjs +1705 -0
- package/dist/chunks/smart-defaults.mjs +330 -0
- package/dist/chunks/smart-guide.mjs +194 -0
- package/dist/chunks/startup.mjs +489 -0
- package/dist/chunks/stats.mjs +411 -0
- package/dist/chunks/status.mjs +261 -0
- package/dist/chunks/team.mjs +51 -0
- package/dist/chunks/thinking.mjs +615 -0
- package/dist/chunks/uninstall.mjs +836 -0
- package/dist/chunks/update.mjs +120 -0
- package/dist/chunks/upgrade-manager.mjs +197 -0
- package/dist/chunks/version-checker.mjs +877 -0
- package/dist/chunks/vim.mjs +891 -0
- package/dist/chunks/workflows.mjs +633 -0
- package/dist/chunks/zsh.mjs +182 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.mjs +1746 -0
- package/dist/i18n/locales/en/agent-teams.json +18 -0
- package/dist/i18n/locales/en/agentBrowser.json +79 -0
- package/dist/i18n/locales/en/agents.json +135 -0
- package/dist/i18n/locales/en/api.json +63 -0
- package/dist/i18n/locales/en/ccjk-agents.json +33 -0
- package/dist/i18n/locales/en/ccjk-all.json +23 -0
- package/dist/i18n/locales/en/ccjk-skills.json +22 -0
- package/dist/i18n/locales/en/ccjk.json +276 -0
- package/dist/i18n/locales/en/ccr.json +65 -0
- package/dist/i18n/locales/en/claude-md.json +73 -0
- package/dist/i18n/locales/en/cli.json +139 -0
- package/dist/i18n/locales/en/cloud-setup.json +31 -0
- package/dist/i18n/locales/en/cloud-sync.json +147 -0
- package/dist/i18n/locales/en/cloudPlugins.json +118 -0
- package/dist/i18n/locales/en/codex.json +127 -0
- package/dist/i18n/locales/en/cometix.json +29 -0
- package/dist/i18n/locales/en/common.json +41 -0
- package/dist/i18n/locales/en/config.json +108 -0
- package/dist/i18n/locales/en/configuration.json +193 -0
- package/dist/i18n/locales/en/context.json +32 -0
- package/dist/i18n/locales/en/errors.json +26 -0
- package/dist/i18n/locales/en/hooks.json +74 -0
- package/dist/i18n/locales/en/hooksSync.json +133 -0
- package/dist/i18n/locales/en/installation.json +83 -0
- package/dist/i18n/locales/en/interview.json +104 -0
- package/dist/i18n/locales/en/language.json +19 -0
- package/dist/i18n/locales/en/lsp.json +78 -0
- package/dist/i18n/locales/en/marketplace.json +116 -0
- package/dist/i18n/locales/en/mcp.json +176 -0
- package/dist/i18n/locales/en/memory.json +92 -0
- package/dist/i18n/locales/en/menu.json +143 -0
- package/dist/i18n/locales/en/multi-config.json +79 -0
- package/dist/i18n/locales/en/notification.json +306 -0
- package/dist/i18n/locales/en/permissions.json +95 -0
- package/dist/i18n/locales/en/plugins.json +146 -0
- package/dist/i18n/locales/en/registry.json +54 -0
- package/dist/i18n/locales/en/sandbox.json +44 -0
- package/dist/i18n/locales/en/setup.json +44 -0
- package/dist/i18n/locales/en/shencha.json +14 -0
- package/dist/i18n/locales/en/skills.json +100 -0
- package/dist/i18n/locales/en/skillsSync.json +74 -0
- package/dist/i18n/locales/en/smartGuide.json +49 -0
- package/dist/i18n/locales/en/stats.json +20 -0
- package/dist/i18n/locales/en/subagent.json +69 -0
- package/dist/i18n/locales/en/superpowers.json +117 -0
- package/dist/i18n/locales/en/team.json +7 -0
- package/dist/i18n/locales/en/thinking.json +65 -0
- package/dist/i18n/locales/en/tools.json +42 -0
- package/dist/i18n/locales/en/uninstall.json +56 -0
- package/dist/i18n/locales/en/updater.json +29 -0
- package/dist/i18n/locales/en/vim.json +169 -0
- package/dist/i18n/locales/en/workflow.json +55 -0
- package/dist/i18n/locales/en/workspace.json +108 -0
- package/dist/i18n/locales/zh-CN/agent-teams.json +18 -0
- package/dist/i18n/locales/zh-CN/agentBrowser.json +79 -0
- package/dist/i18n/locales/zh-CN/agents.json +135 -0
- package/dist/i18n/locales/zh-CN/api.json +63 -0
- package/dist/i18n/locales/zh-CN/ccjk-agents.json +33 -0
- package/dist/i18n/locales/zh-CN/ccjk-all.json +23 -0
- package/dist/i18n/locales/zh-CN/ccjk-skills.json +22 -0
- package/dist/i18n/locales/zh-CN/ccjk.json +276 -0
- package/dist/i18n/locales/zh-CN/ccr.json +65 -0
- package/dist/i18n/locales/zh-CN/claude-md.json +73 -0
- package/dist/i18n/locales/zh-CN/cli.json +139 -0
- package/dist/i18n/locales/zh-CN/cloud-setup.json +31 -0
- package/dist/i18n/locales/zh-CN/cloud-sync.json +147 -0
- package/dist/i18n/locales/zh-CN/cloudPlugins.json +118 -0
- package/dist/i18n/locales/zh-CN/codex.json +127 -0
- package/dist/i18n/locales/zh-CN/cometix.json +29 -0
- package/dist/i18n/locales/zh-CN/common.json +41 -0
- package/dist/i18n/locales/zh-CN/config.json +108 -0
- package/dist/i18n/locales/zh-CN/configuration.json +191 -0
- package/dist/i18n/locales/zh-CN/context.json +32 -0
- package/dist/i18n/locales/zh-CN/errors.json +26 -0
- package/dist/i18n/locales/zh-CN/hooks.json +74 -0
- package/dist/i18n/locales/zh-CN/hooksSync.json +133 -0
- package/dist/i18n/locales/zh-CN/installation.json +83 -0
- package/dist/i18n/locales/zh-CN/interview.json +104 -0
- package/dist/i18n/locales/zh-CN/language.json +19 -0
- package/dist/i18n/locales/zh-CN/lsp.json +78 -0
- package/dist/i18n/locales/zh-CN/marketplace.json +116 -0
- package/dist/i18n/locales/zh-CN/mcp.json +176 -0
- package/dist/i18n/locales/zh-CN/memory.json +92 -0
- package/dist/i18n/locales/zh-CN/menu.json +143 -0
- package/dist/i18n/locales/zh-CN/multi-config.json +79 -0
- package/dist/i18n/locales/zh-CN/notification.json +306 -0
- package/dist/i18n/locales/zh-CN/permissions.json +95 -0
- package/dist/i18n/locales/zh-CN/plugins.json +146 -0
- package/dist/i18n/locales/zh-CN/registry.json +54 -0
- package/dist/i18n/locales/zh-CN/sandbox.json +44 -0
- package/dist/i18n/locales/zh-CN/setup.json +44 -0
- package/dist/i18n/locales/zh-CN/shencha.json +14 -0
- package/dist/i18n/locales/zh-CN/skills.json +100 -0
- package/dist/i18n/locales/zh-CN/skillsSync.json +74 -0
- package/dist/i18n/locales/zh-CN/smartGuide.json +49 -0
- package/dist/i18n/locales/zh-CN/stats.json +20 -0
- package/dist/i18n/locales/zh-CN/subagent.json +69 -0
- package/dist/i18n/locales/zh-CN/superpowers.json +117 -0
- package/dist/i18n/locales/zh-CN/team.json +7 -0
- package/dist/i18n/locales/zh-CN/thinking.json +65 -0
- package/dist/i18n/locales/zh-CN/tools.json +42 -0
- package/dist/i18n/locales/zh-CN/uninstall.json +56 -0
- package/dist/i18n/locales/zh-CN/updater.json +29 -0
- package/dist/i18n/locales/zh-CN/vim.json +169 -0
- package/dist/i18n/locales/zh-CN/workflow.json +55 -0
- package/dist/i18n/locales/zh-CN/workspace.json +108 -0
- package/dist/index.d.mts +2684 -0
- package/dist/index.d.ts +2684 -0
- package/dist/index.mjs +3668 -0
- package/dist/shared/ccjk.AqnXPAzw.mjs +52 -0
- package/dist/shared/ccjk.BFQ7yr5S.mjs +16 -0
- package/dist/shared/ccjk.BNwRnWYx.mjs +2735 -0
- package/dist/shared/ccjk.Bdhyg3X-.mjs +317 -0
- package/dist/shared/ccjk.Bndhan7G.mjs +400 -0
- package/dist/shared/ccjk.Br91zBIG.mjs +138 -0
- package/dist/shared/ccjk.BsXQugfY.mjs +1447 -0
- package/dist/shared/ccjk.Bvoex4TZ.mjs +126 -0
- package/dist/shared/ccjk.CBhIZiPz.mjs +333 -0
- package/dist/shared/ccjk.DE91nClQ.mjs +111 -0
- package/dist/shared/ccjk.DHbrGcgg.mjs +13 -0
- package/dist/shared/ccjk.DKojSRzw.mjs +266 -0
- package/dist/shared/ccjk.DntgA8fQ.mjs +42 -0
- package/dist/shared/ccjk.Dpw86UX0.mjs +54 -0
- package/dist/shared/ccjk.DvIrK0wz.mjs +25 -0
- package/dist/shared/ccjk.J8YiPsOw.mjs +259 -0
- package/dist/shared/ccjk.LsPZ2PYo.mjs +1048 -0
- package/dist/shared/ccjk.h7_W-wTs.mjs +1242 -0
- package/package.json +1 -1
|
@@ -0,0 +1,137 @@
|
|
|
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 };
|