ccjk 9.3.8 → 9.3.10

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.
@@ -44,7 +44,7 @@ import './auto-updater.mjs';
44
44
  import './version-checker.mjs';
45
45
  import 'node:path';
46
46
  import './installer.mjs';
47
- import '../shared/ccjk.BCP2jaYq.mjs';
47
+ import '../shared/ccjk.DE91nClQ.mjs';
48
48
  import './commands.mjs';
49
49
  import './claude-code-config-manager.mjs';
50
50
  import './config-switch.mjs';
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { homedir } from 'node:os';
3
3
  import process__default from 'node:process';
4
4
  import { join } from 'pathe';
5
- import { i as installSuperpowers } from '../shared/ccjk.BCP2jaYq.mjs';
5
+ import { i as installSuperpowers } from '../shared/ccjk.DE91nClQ.mjs';
6
6
  import 'node:child_process';
7
7
  import 'node:fs/promises';
8
8
  import 'node:util';
@@ -24,7 +24,7 @@ import { h as handleExitPromptError, a as handleGeneralError } from '../shared/c
24
24
  import { getInstallationStatus, installClaudeCode } from './installer.mjs';
25
25
  import { a as addNumbersToChoices } from '../shared/ccjk.BFQ7yr5S.mjs';
26
26
  import { resolveAiOutputLanguage } from './prompts.mjs';
27
- import { c as checkSuperpowersInstalled, i as installSuperpowers } from '../shared/ccjk.BCP2jaYq.mjs';
27
+ import { c as checkSuperpowersInstalled, i as installSuperpowers } from '../shared/ccjk.DE91nClQ.mjs';
28
28
  import { p as promptBoolean } from '../shared/ccjk.DHbrGcgg.mjs';
29
29
  import { checkClaudeCodeVersionAndPrompt } from './version-checker.mjs';
30
30
 
@@ -1,4 +1,4 @@
1
- const version = "9.3.8";
1
+ const version = "9.3.10";
2
2
  const homepage = "https://github.com/miounet11/ccjk";
3
3
 
4
4
  export { homepage, version };
@@ -42,7 +42,7 @@ import '../shared/ccjk.SIo9I8q3.mjs';
42
42
  import '../shared/ccjk.KfIN1Sqj.mjs';
43
43
  import '../shared/ccjk.DvIrK0wz.mjs';
44
44
  import './installer.mjs';
45
- import '../shared/ccjk.BCP2jaYq.mjs';
45
+ import '../shared/ccjk.DE91nClQ.mjs';
46
46
 
47
47
  function displayHeader() {
48
48
  console.log("");
@@ -50,14 +50,18 @@ async function installSuperpowers(options) {
50
50
  message: i18n.t("superpowers:alreadyInstalled")
51
51
  };
52
52
  }
53
- const result = await installSuperpowersViaGit();
53
+ const result = await installSuperpowersViaGit(options.skipPrompt);
54
54
  if (result.success && options.enableCloudSync && options.cloudProvider && options.cloudCredentials) {
55
55
  try {
56
56
  const { configureCloudSync } = await import('../chunks/cloud-sync.mjs');
57
57
  await configureCloudSync(options.cloudProvider, options.cloudCredentials);
58
- console.log(i18n.t("superpowers:cloudSync.configured"));
58
+ if (!options.skipPrompt) {
59
+ console.log(i18n.t("superpowers:cloudSync.configured"));
60
+ }
59
61
  } catch (error) {
60
- console.warn(i18n.t("superpowers:cloudSync.configFailed"), error);
62
+ if (!options.skipPrompt) {
63
+ console.warn(i18n.t("superpowers:cloudSync.configFailed"), error);
64
+ }
61
65
  }
62
66
  }
63
67
  return result;
@@ -70,13 +74,15 @@ async function installSuperpowers(options) {
70
74
  };
71
75
  }
72
76
  }
73
- async function installSuperpowersViaGit() {
77
+ async function installSuperpowersViaGit(silent = false) {
74
78
  try {
75
79
  const pluginDir = getClaudePluginDir();
76
80
  const superpowersPath = getSuperpowersPath();
77
81
  const { mkdir } = await import('node:fs/promises');
78
82
  await mkdir(pluginDir, { recursive: true });
79
- console.log(i18n.t("superpowers:cloning"));
83
+ if (!silent) {
84
+ console.log(i18n.t("superpowers:cloning"));
85
+ }
80
86
  await execAsync(
81
87
  `git clone https://github.com/obra/superpowers.git "${superpowersPath}"`,
82
88
  { timeout: 12e4 }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ccjk",
3
3
  "type": "module",
4
- "version": "9.3.8",
4
+ "version": "9.3.10",
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": {
@@ -62,13 +62,21 @@ $ARGUMENTS
62
62
 
63
63
  **执行流程**:
64
64
 
65
- 0. **环境预检查** (新增)
65
+ 0. **环境预检查**
66
66
  - 验证 `.ccjk/plan/current/` 目录是否存在
67
67
  - 检查目录写入权限
68
68
  - 如果目录不存在,自动创建
69
69
  - 如果权限不足,提示用户修复并提供具体命令
70
70
 
71
- 1. **启用 Planner Agent** 进行深度分析
71
+ 1. **启动规划 Agent** - 使用 Task tool 调用规划专家:
72
+ ```
73
+ Task tool 参数:
74
+ - subagent_type: "general-purpose"
75
+ - description: "功能规划分析"
76
+ - prompt: 读取 ~/.claude/agents/planner.md 的内容作为 system prompt,
77
+ 然后分析用户的功能需求: $ARGUMENTS
78
+ ```
79
+
72
80
  2. **生成规划文档** 存储至 `.ccjk/plan/current/`
73
81
  3. **文档命名**: `功能名称.md`
74
82
 
@@ -113,7 +121,14 @@ $ARGUMENTS
113
121
 
114
122
  1. **检索上次规划** 从 `.ccjk/plan/current/` 读取
115
123
  2. **分析用户反馈** 识别修改点
116
- 3. **启用 Planner Agent** 重新规划
124
+ 3. **启动规划 Agent** - 使用 Task tool 重新规划:
125
+ ```
126
+ Task tool 参数:
127
+ - subagent_type: "general-purpose"
128
+ - description: "规划迭代更新"
129
+ - prompt: 读取 ~/.claude/agents/planner.md 的内容作为 system prompt,
130
+ 结合已有规划文档和用户反馈进行迭代优化
131
+ ```
117
132
  4. **版本管理**:
118
133
  - 原文件: `功能名称.md`
119
134
  - 迭代版本: `功能名称-v2.md`, `功能名称-v3.md`
@@ -162,7 +177,14 @@ $ARGUMENTS
162
177
  **前端任务特殊处理**:
163
178
 
164
179
  1. **检查 UI 设计** - 是否存在设计稿
165
- 2. **无设计时** - 必须调用 `UI-UX-Designer Agent`
180
+ 2. **无设计时** - 使用 Task tool 调用 UI-UX-Designer Agent
181
+ ```
182
+ Task tool 参数:
183
+ - subagent_type: "general-purpose"
184
+ - description: "UI/UX 设计"
185
+ - prompt: 读取 ~/.claude/agents/ui-ux-designer.md 的内容作为 system prompt,
186
+ 为当前前端任务提供 UI/UX 设计规范
187
+ ```
166
188
  3. **设计完成后** - 再进行开发实施
167
189
 
168
190
  ---
@@ -177,7 +199,7 @@ $ARGUMENTS
177
199
  | `!status` | 查看任务完成状态 |
178
200
  | `!next` | 执行下一个子任务 |
179
201
  | `!pause` | 暂停执行,保存进度 |
180
- | `!design` | 调用 UI-UX-Designer |
202
+ | `!design` | 调用 UI-UX-Designer Agent (使用 Task tool) |
181
203
  | `!test` | 为当前功能生成测试 |
182
204
 
183
205
  ---
@@ -62,13 +62,21 @@ $ARGUMENTS
62
62
 
63
63
  **执行流程**:
64
64
 
65
- 0. **环境预检查** (新增)
65
+ 0. **环境预检查**
66
66
  - 验证 `.ccjk/plan/current/` 目录是否存在
67
67
  - 检查目录写入权限
68
68
  - 如果目录不存在,自动创建
69
69
  - 如果权限不足,提示用户修复并提供具体命令
70
70
 
71
- 1. **启用 Planner Agent** 进行深度分析
71
+ 1. **启动规划 Agent** - 使用 Task tool 调用规划专家:
72
+ ```
73
+ Task tool 参数:
74
+ - subagent_type: "general-purpose"
75
+ - description: "功能规划分析"
76
+ - prompt: 读取 ~/.claude/agents/planner.md 的内容作为 system prompt,
77
+ 然后分析用户的功能需求: $ARGUMENTS
78
+ ```
79
+
72
80
  2. **生成规划文档** 存储至 `.ccjk/plan/current/`
73
81
  3. **文档命名**: `功能名称.md`
74
82
 
@@ -113,7 +121,14 @@ $ARGUMENTS
113
121
 
114
122
  1. **检索上次规划** 从 `.ccjk/plan/current/` 读取
115
123
  2. **分析用户反馈** 识别修改点
116
- 3. **启用 Planner Agent** 重新规划
124
+ 3. **启动规划 Agent** - 使用 Task tool 重新规划:
125
+ ```
126
+ Task tool 参数:
127
+ - subagent_type: "general-purpose"
128
+ - description: "规划迭代更新"
129
+ - prompt: 读取 ~/.claude/agents/planner.md 的内容作为 system prompt,
130
+ 结合已有规划文档和用户反馈进行迭代优化
131
+ ```
117
132
  4. **版本管理**:
118
133
  - 原文件: `功能名称.md`
119
134
  - 迭代版本: `功能名称-v2.md`, `功能名称-v3.md`
@@ -162,7 +177,14 @@ $ARGUMENTS
162
177
  **前端任务特殊处理**:
163
178
 
164
179
  1. **检查 UI 设计** - 是否存在设计稿
165
- 2. **无设计时** - 必须调用 `UI-UX-Designer Agent`
180
+ 2. **无设计时** - 使用 Task tool 调用 UI-UX-Designer Agent
181
+ ```
182
+ Task tool 参数:
183
+ - subagent_type: "general-purpose"
184
+ - description: "UI/UX 设计"
185
+ - prompt: 读取 ~/.claude/agents/ui-ux-designer.md 的内容作为 system prompt,
186
+ 为当前前端任务提供 UI/UX 设计规范
187
+ ```
166
188
  3. **设计完成后** - 再进行开发实施
167
189
 
168
190
  ---
@@ -177,7 +199,7 @@ $ARGUMENTS
177
199
  | `!status` | 查看任务完成状态 |
178
200
  | `!next` | 执行下一个子任务 |
179
201
  | `!pause` | 暂停执行,保存进度 |
180
- | `!design` | 调用 UI-UX-Designer |
202
+ | `!design` | 调用 UI-UX-Designer Agent (使用 Task tool) |
181
203
  | `!test` | 为当前功能生成测试 |
182
204
 
183
205
  ---