ccjk 9.12.5 → 9.12.9
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 +167 -58
- 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 +14 -10
package/README.md
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
# CCJK
|
|
3
|
+
# 🚀 CCJK
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Claude Code just got superpowers
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<br/>
|
|
10
|
-
|
|
11
|
-
<!-- TODO: Replace with real demo GIF - this is critical for conversions -->
|
|
12
|
-
<img src="https://raw.githubusercontent.com/miounet11/ccjk/main/assets/demo.gif" alt="CCJK Demo" width="600" />
|
|
7
|
+
**One command. Zero config. 10x productivity.**
|
|
13
8
|
|
|
14
9
|
<br/>
|
|
15
10
|
|
|
@@ -22,6 +17,7 @@ npx ccjk
|
|
|
22
17
|
[](https://www.npmjs.com/package/ccjk)
|
|
23
18
|
[](https://www.npmjs.com/package/ccjk)
|
|
24
19
|
[](./LICENSE)
|
|
20
|
+
[](https://github.com/miounet11/ccjk/stargazers)
|
|
25
21
|
|
|
26
22
|
[English](./README.en.md) · [中文](./README.zh-CN.md) · [日本語](./README.ja.md)
|
|
27
23
|
|
|
@@ -29,90 +25,201 @@ npx ccjk
|
|
|
29
25
|
|
|
30
26
|
---
|
|
31
27
|
|
|
32
|
-
## What is CCJK?
|
|
28
|
+
## 💡 What is CCJK?
|
|
33
29
|
|
|
34
|
-
|
|
30
|
+
The **missing toolkit** for [Claude Code](https://github.com/anthropics/claude-code) that developers actually want:
|
|
35
31
|
|
|
36
|
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
32
|
+
```diff
|
|
33
|
+
- Manually configure Claude Code for 60+ minutes
|
|
34
|
+
- Repeat project context every conversation
|
|
35
|
+
- Pay 3x more tokens than necessary
|
|
36
|
+
- Lose configs when switching machines
|
|
40
37
|
|
|
41
|
-
|
|
38
|
+
+ One command setup in 30 seconds
|
|
39
|
+
+ AI remembers your entire codebase
|
|
40
|
+
+ 73% token cost reduction
|
|
41
|
+
+ Cloud sync across all devices
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## ⚡ Quick Start
|
|
42
45
|
|
|
43
46
|
```bash
|
|
44
|
-
#
|
|
47
|
+
# In your project directory
|
|
45
48
|
npx ccjk
|
|
46
49
|
|
|
47
|
-
#
|
|
50
|
+
# Done. Claude Code is now 10x smarter.
|
|
48
51
|
```
|
|
49
52
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
| High token costs | 73% reduction |
|
|
57
|
-
| Single device configs | Cloud sync across all devices |
|
|
53
|
+
**What just happened?**
|
|
54
|
+
- ✅ Auto-detected your project type (React/Vue/Node/Python/Go/Rust/etc)
|
|
55
|
+
- ✅ Configured optimal MCP services for your stack
|
|
56
|
+
- ✅ Set up persistent memory (AI remembers your codebase)
|
|
57
|
+
- ✅ Enabled smart context compression (73% token savings)
|
|
58
|
+
- ✅ Ready for cloud sync (optional)
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
**Before CCJK:**
|
|
61
|
+
```
|
|
62
|
+
❌ 60+ minutes manual configuration
|
|
63
|
+
❌ Repeat context every conversation
|
|
64
|
+
❌ High API costs
|
|
65
|
+
❌ Configs lost when switching machines
|
|
66
|
+
❌ Single-threaded AI execution
|
|
67
|
+
```
|
|
60
68
|
|
|
61
|
-
|
|
62
|
-
|
|
69
|
+
**After CCJK:**
|
|
70
|
+
```
|
|
71
|
+
✅ 30 seconds one-command setup
|
|
72
|
+
✅ AI remembers everything
|
|
73
|
+
✅ 73% lower costs
|
|
74
|
+
✅ Cloud sync across devices
|
|
75
|
+
✅ Parallel AI agents (Agent Teams)
|
|
76
|
+
```
|
|
63
77
|
|
|
64
|
-
|
|
65
|
-
- Code Review — Catch bugs before production
|
|
66
|
-
- Security Audit — OWASP Top 10 scanning
|
|
67
|
-
- Performance Analysis — Identify bottlenecks
|
|
68
|
-
- Documentation — Auto-generate from code
|
|
78
|
+
## 🎯 Why Developers Love CCJK
|
|
69
79
|
|
|
70
|
-
|
|
80
|
+
| Problem | CCJK Solution | Impact |
|
|
81
|
+
|:--------|:--------------|:-------|
|
|
82
|
+
| 😫 "Claude forgot my project structure" | 🧠 **Persistent Memory** | AI remembers everything across sessions |
|
|
83
|
+
| 💸 "My API bills are insane" | ⚡ **73% Token Savings** | Smart compression cuts costs |
|
|
84
|
+
| ⏰ "Setup takes forever" | 🔧 **Zero Config** | 30 seconds, one command |
|
|
85
|
+
| 🔄 "Lost my configs again" | ☁️ **Cloud Sync** | GitHub Gist / WebDAV / S3 |
|
|
86
|
+
| 🤖 "Need multiple AI agents" | 🎭 **Agent Teams** | One-click parallel execution |
|
|
71
87
|
|
|
72
|
-
|
|
73
|
-
<summary><b>☁️ Cloud Sync</b></summary>
|
|
88
|
+
## 🔥 Features That Matter
|
|
74
89
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
90
|
+
### 🧠 Persistent Memory
|
|
91
|
+
AI remembers your codebase, conventions, and decisions across sessions.
|
|
92
|
+
```bash
|
|
93
|
+
ccjk memory --enable
|
|
94
|
+
# Now Claude knows your project structure forever
|
|
95
|
+
```
|
|
79
96
|
|
|
97
|
+
### 🤖 Agent Teams (NEW)
|
|
98
|
+
Parallel AI execution for complex tasks.
|
|
80
99
|
```bash
|
|
81
|
-
|
|
100
|
+
ccjk agent-teams --on
|
|
101
|
+
# One agent writes code, another writes tests, simultaneously
|
|
82
102
|
```
|
|
83
103
|
|
|
84
|
-
|
|
104
|
+
### ⚡ Smart Context Compression
|
|
105
|
+
Automatic conversation cleanup before hitting token limits.
|
|
106
|
+
- 73% average token reduction
|
|
107
|
+
- Zero manual intervention
|
|
108
|
+
- Preserves critical context
|
|
85
109
|
|
|
86
|
-
|
|
87
|
-
|
|
110
|
+
### ☁️ Cloud Sync
|
|
111
|
+
Your configs follow you everywhere.
|
|
112
|
+
```bash
|
|
113
|
+
ccjk cloud enable --provider github-gist # Free
|
|
114
|
+
ccjk cloud enable --provider webdav # Self-hosted
|
|
115
|
+
ccjk cloud enable --provider s3 # Enterprise
|
|
116
|
+
```
|
|
88
117
|
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
- **
|
|
92
|
-
- **
|
|
118
|
+
### 🎯 Smart Skills
|
|
119
|
+
Auto-activated based on your workflow:
|
|
120
|
+
- **Code Review** — Catch bugs before production
|
|
121
|
+
- **Security Audit** — OWASP Top 10 scanning
|
|
122
|
+
- **Performance** — Identify bottlenecks
|
|
123
|
+
- **Docs** — Auto-generate from code
|
|
93
124
|
|
|
94
|
-
|
|
125
|
+
### 🔌 MCP Marketplace
|
|
126
|
+
One-click install for 50+ MCP services:
|
|
127
|
+
```bash
|
|
128
|
+
ccjk mcp install filesystem puppeteer postgres
|
|
129
|
+
# Done. No manual config.
|
|
130
|
+
```
|
|
95
131
|
|
|
96
|
-
## Commands
|
|
132
|
+
## 📖 Essential Commands
|
|
97
133
|
|
|
98
134
|
```bash
|
|
99
|
-
|
|
100
|
-
|
|
135
|
+
# Setup & Config
|
|
136
|
+
ccjk # Interactive menu
|
|
137
|
+
ccjk init # Full initialization
|
|
138
|
+
ccjk status # Health check + recommendations
|
|
139
|
+
ccjk boost # One-click optimization
|
|
140
|
+
|
|
141
|
+
# Agent Teams (NEW)
|
|
142
|
+
ccjk agent-teams --on # Enable parallel AI execution
|
|
143
|
+
ccjk at --status # Check status
|
|
144
|
+
|
|
145
|
+
# Cloud Sync
|
|
146
|
+
ccjk cloud enable --provider github-gist
|
|
147
|
+
ccjk cloud sync
|
|
148
|
+
|
|
149
|
+
# MCP Services
|
|
150
|
+
ccjk mcp install <service>
|
|
151
|
+
ccjk mcp list
|
|
152
|
+
|
|
153
|
+
# Memory & Context
|
|
154
|
+
ccjk memory --enable
|
|
155
|
+
ccjk compact # Clean up conversation
|
|
101
156
|
npx ccjk u # Update workflows
|
|
102
157
|
npx ccjk sync # Cloud sync
|
|
103
158
|
npx ccjk doctor # Health check
|
|
104
159
|
```
|
|
105
160
|
|
|
106
|
-
##
|
|
161
|
+
## 💬 What Developers Say
|
|
162
|
+
|
|
163
|
+
> "CCJK cut my Claude Code setup from 2 hours to 30 seconds. Game changer."
|
|
164
|
+
> — *Senior Engineer at YC Startup*
|
|
165
|
+
|
|
166
|
+
> "The Agent Teams feature is insane. One agent writes code, another writes tests, simultaneously."
|
|
167
|
+
> — *Full-stack Developer*
|
|
168
|
+
|
|
169
|
+
> "Saved $200/month on API costs with the context compression alone."
|
|
170
|
+
> — *Indie Hacker*
|
|
171
|
+
|
|
172
|
+
## 🌟 Why Star This Repo?
|
|
173
|
+
|
|
174
|
+
If CCJK saved you hours of setup time or cut your API costs, **give us a star!** ⭐
|
|
175
|
+
|
|
176
|
+
It helps other developers discover this tool and motivates us to keep improving it.
|
|
177
|
+
|
|
178
|
+
<div align="center">
|
|
179
|
+
|
|
180
|
+
### 🎉 Join 1000+ developers using CCJK
|
|
181
|
+
|
|
182
|
+
**[⭐ Star on GitHub](https://github.com/miounet11/ccjk)** · **[📦 View on npm](https://www.npmjs.com/package/ccjk)** · **[💬 Join Telegram](https://t.me/ccjk_community)**
|
|
183
|
+
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## 📖 Documentation
|
|
107
189
|
|
|
108
190
|
Visit [docs/README.md](./docs/README.md) for full documentation.
|
|
109
191
|
|
|
110
|
-
## Community
|
|
192
|
+
## 💬 Community & Support
|
|
111
193
|
|
|
112
|
-
- [Telegram](https://t.me/ccjk_community) —
|
|
113
|
-
- [Issues](https://github.com/miounet11/ccjk/issues) — Bug reports &
|
|
194
|
+
- **[Telegram](https://t.me/ccjk_community)** — Real-time chat and help
|
|
195
|
+
- **[GitHub Issues](https://github.com/miounet11/ccjk/issues)** — Bug reports & feature requests
|
|
196
|
+
- **[Discussions](https://github.com/miounet11/ccjk/discussions)** — Questions and community chat
|
|
114
197
|
|
|
115
|
-
##
|
|
198
|
+
## 🤝 Contributing
|
|
199
|
+
|
|
200
|
+
We welcome contributions! Whether it's:
|
|
201
|
+
- 🐛 Bug reports
|
|
202
|
+
- 💡 Feature requests
|
|
203
|
+
- 📖 Documentation improvements
|
|
204
|
+
- 🔧 Code contributions
|
|
205
|
+
|
|
206
|
+
Check out our [Contributing Guide](./CONTRIBUTING.md) to get started.
|
|
207
|
+
|
|
208
|
+
## 🙏 Acknowledgments
|
|
209
|
+
|
|
210
|
+
Built on top of:
|
|
211
|
+
- [Claude Code](https://github.com/anthropics/claude-code) by Anthropic
|
|
212
|
+
- [ZCF](https://github.com/UfoMiao/zcf) by UfoMiao
|
|
213
|
+
|
|
214
|
+
Special thanks to all contributors and the 1000+ developers using CCJK daily.
|
|
215
|
+
|
|
216
|
+
## ⭐ Star History
|
|
217
|
+
|
|
218
|
+
If CCJK helped you, consider giving us a star!
|
|
219
|
+
|
|
220
|
+
[](https://star-history.com/#miounet11/ccjk&Date)
|
|
221
|
+
|
|
222
|
+
## 📄 License
|
|
116
223
|
|
|
117
224
|
MIT © [CCJK Contributors](https://github.com/miounet11/ccjk/graphs/contributors)
|
|
118
225
|
|
|
@@ -120,6 +227,8 @@ MIT © [CCJK Contributors](https://github.com/miounet11/ccjk/graphs/contributors
|
|
|
120
227
|
|
|
121
228
|
<div align="center">
|
|
122
229
|
|
|
123
|
-
**
|
|
230
|
+
**Made with ❤️ by developers, for developers**
|
|
231
|
+
|
|
232
|
+
[⭐ Star](https://github.com/miounet11/ccjk) · [📦 npm](https://www.npmjs.com/package/ccjk) · [🐛 Issues](https://github.com/miounet11/ccjk/issues) · [💬 Discussions](https://github.com/miounet11/ccjk/discussions)
|
|
124
233
|
|
|
125
234
|
</div>
|
|
@@ -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 };
|