ccg-workflow 1.7.46 → 1.7.47

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 CHANGED
@@ -88,11 +88,15 @@ v1.7.39 新增 `/ccg:plan` 和 `/ccg:execute` 命令,将规划与执行解耦
88
88
  "CODEAGENT_POST_MESSAGE_DELAY": "1",
89
89
  "CODEX_TIMEOUT": "7200",
90
90
  "BASH_DEFAULT_TIMEOUT_MS": "600000",
91
- "BASH_MAX_TIMEOUT_MS": "3600000"
91
+ "BASH_MAX_TIMEOUT_MS": "3600000",
92
+ "GEMINI_API_KEY": "your-gemini-api-key",
93
+ "GOOGLE_API_KEY": "your-google-api-key"
92
94
  }
93
95
  }
94
96
  ```
95
97
 
98
+ > **VSCode 插件用户注意**:VSCode 启动的子进程不会继承终端环境变量,必须在 `settings.json` 中配置 API 密钥,否则 Gemini 会报退出码 41(授权失败)。
99
+
96
100
  ### MCP 配置
97
101
 
98
102
  ace-tool 用于代码检索和 Prompt 增强,安装时可选配置。
@@ -153,4 +157,4 @@ MIT
153
157
 
154
158
  ---
155
159
 
156
- v1.7.39 | [Issues](https://github.com/fengshao1227/ccg-workflow/issues)
160
+ v1.7.47 | [Issues](https://github.com/fengshao1227/ccg-workflow/issues)
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import cac from 'cac';
3
3
  import ansis from 'ansis';
4
- import { z as diagnoseMcpConfig, A as isWindows, B as readClaudeCodeConfig, C as fixWindowsMcpConfig, D as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, E as configMcp, F as version, a as i18n } from './shared/ccg-workflow.CG7COXKD.mjs';
4
+ import { z as diagnoseMcpConfig, A as isWindows, B as readClaudeCodeConfig, C as fixWindowsMcpConfig, D as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, E as configMcp, F as version, a as i18n } from './shared/ccg-workflow.DrIczHh4.mjs';
5
5
  import 'inquirer';
6
6
  import 'node:child_process';
7
7
  import 'node:util';
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as changeLanguage, x as checkForUpdates, y as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, t as getCurrentVersion, v as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, k as installWorkflows, p as migrateToV1_4_0, q as needsMigration, r as readCcgConfig, s as showMainMenu, o as uninstallAceTool, n as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.CG7COXKD.mjs';
1
+ export { c as changeLanguage, x as checkForUpdates, y as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, t as getCurrentVersion, v as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, k as installWorkflows, p as migrateToV1_4_0, q as needsMigration, r as readCcgConfig, s as showMainMenu, o as uninstallAceTool, n as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.DrIczHh4.mjs';
2
2
  import 'ansis';
3
3
  import 'inquirer';
4
4
  import 'node:child_process';
@@ -10,7 +10,7 @@ import i18next from 'i18next';
10
10
  import ora from 'ora';
11
11
  import { parse, stringify } from 'smol-toml';
12
12
 
13
- const version = "1.7.46";
13
+ const version = "1.7.47";
14
14
 
15
15
  function isWindows() {
16
16
  return process.platform === "win32";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccg-workflow",
3
- "version": "1.7.46",
3
+ "version": "1.7.47",
4
4
  "description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.17.1",
@@ -47,6 +47,7 @@
47
47
  "templates/commands/agents/",
48
48
  "templates/prompts/codex/",
49
49
  "templates/prompts/gemini/analyzer.md",
50
+ "templates/prompts/gemini/architect.md",
50
51
  "templates/prompts/gemini/debugger.md",
51
52
  "templates/prompts/gemini/frontend.md",
52
53
  "templates/prompts/gemini/optimizer.md",
@@ -0,0 +1,47 @@
1
+ # Gemini Role: Frontend Architect
2
+
3
+ > For: /ccg:plan, /ccg:execute, /ccg:workflow Phase 2-3
4
+
5
+ You are a senior frontend architect specializing in UI/UX design systems, component architecture, and modern web application structure.
6
+
7
+ ## CRITICAL CONSTRAINTS
8
+
9
+ - **ZERO file system write permission** - READ-ONLY sandbox
10
+ - **OUTPUT FORMAT**: Unified Diff Patch ONLY
11
+ - **NEVER** execute actual modifications
12
+
13
+ ## Core Expertise
14
+
15
+ - React/Vue/Svelte component architecture and design patterns
16
+ - Design system creation (tokens, themes, variants)
17
+ - State management architecture (Redux, Zustand, Pinia)
18
+ - Micro-frontend and module federation strategies
19
+ - Performance optimization (code splitting, lazy loading)
20
+ - Accessibility architecture (WCAG 2.1 AA compliance)
21
+
22
+ ## Approach
23
+
24
+ 1. **Analyze First** - Understand existing patterns before proposing changes
25
+ 2. **Component-Driven** - Design reusable, composable UI building blocks
26
+ 3. **Scalable Structure** - Plan for growth and team collaboration
27
+ 4. **Performance Budget** - Consider bundle size and runtime impact
28
+ 5. **Concrete Plans** - Provide actionable implementation steps
29
+
30
+ ## Output Format
31
+
32
+ ```diff
33
+ --- a/src/components/Button/Button.tsx
34
+ +++ b/src/components/Button/Button.tsx
35
+ @@ -5,6 +5,10 @@ interface ButtonProps {
36
+ children: React.ReactNode;
37
+ + variant?: 'primary' | 'secondary' | 'danger';
38
+ + size?: 'sm' | 'md' | 'lg';
39
+ }
40
+ ```
41
+
42
+ ## Response Structure
43
+
44
+ 1. **Analysis** - Current architecture assessment
45
+ 2. **Architecture Decision** - Key design choices with rationale
46
+ 3. **Implementation Plan** - Step-by-step with pseudo-code
47
+ 4. **Considerations** - Performance, accessibility, maintainability notes