246 Commits
Author SHA1 Message Date
li 90f8e0f8c6 docs: add GitHub stars and NPM downloads badges to README for enhanced visibility 2026-04-06 11:30:46 +08:00
li cc966bdca9 fix: Windows Gemini multi-line arg truncation via stdin pipe (#129)
Windows cmd.exe truncates multi-line -p args at first newline when
routed through npm .cmd wrappers. Switch to stdin pipe on Windows
so Gemini receives the full task content.

- executor.go: detect isWindows(), use stdin pipe instead of -p
- backend.go: omit -p flag when targetArg is empty (stdin pipe mode)
- main.go: align display logic with new stdin pipe path
- backend_test.go: add tests for empty targetArg behavior
- Binary version: 5.9.0 → 5.10.0
2026-04-05 20:36:00 +08:00
li 74d1bc1eca feat: add n1n.ai as sponsor in README 2026-04-03 19:22:24 +08:00
li c4270afba3 chore: bump version to 2.1.12 2026-04-03 19:13:08 +08:00
li 0854b890ab feat: integrate 302.AI as sponsor provider (#126)
- Activate 302.AI option in init Step 1/4 and menu API config
- Auto-fill baseUrl (https://api.302.ai/cc), user only inputs API Key
- Show referral link (https://share.302.ai/oUDqQ6) in CLI
- Add sponsor banner + product intro to README.md and README.zh-CN.md
- Add 302.AI banner images (zh/en) to assets/sponsors/
2026-04-03 19:10:30 +08:00
li f2ea034890 docs: add CCG logo and multi-size assets
- Add transparent logo (cropped + original), multi-size favicons with
  dark rounded background, social media cards (OG + Twitter), npm badge
- Display logo in both README.md and README.zh-CN.md
2026-04-02 14:18:43 +08:00
li 9c4d3e402e docs: add star badge to README for project visibility 2026-04-01 16:45:04 +08:00
li b1a94dc7d2 docs: fix outdated numbers in README (commands 27→29+, tests 134→139) 2026-03-31 20:08:50 +08:00
风少1227 ae4a7741c2 Merge pull request #122 from Aliang1337/fix/gemini-cwd-hang
fix: Gemini CLI 长 prompt 时因 CWD 为 $HOME 导致挂起
2026-03-31 19:36:46 +08:00
li ea4cf5d2bc fix: MCP provider preserved during update + optional Impeccable commands (#124, #125)
- fix: update no longer resets mcpProvider to 'skip' — reads from existing config (#124)
- feat: init Step 4/4 adds confirm for Impeccable frontend tools, default OFF (#125)
- feat: add X (Twitter) @CCG_Workflow badge + demo tweet link to README
- chore: bump version to 2.1.11
2026-03-31 19:30:02 +08:00
li ad56c63400 fix: add YAML frontmatter to Skill Registry generated commands (#122)
Skill Registry's generateCommandContent() produced command files without
YAML frontmatter, causing Claude Code's command parser to fail on the
entire commands directory — breaking all /ccg:* and project-level commands.
2026-03-31 16:07:00 +08:00
li a2c161729c feat: configurable model routing for frontend/backend (#121)
Allow users to choose which model (Gemini/Codex) handles frontend and
backend tasks during init (Step 2/4) and via menu option 6. Gemini model
name is also configurable (e.g. gemini-2.5-flash). All 21 command
templates updated from hardcoded model names to template variables.
2026-03-31 14:20:01 +08:00
Aliang 6a6bf8f6e0 Merge branch 'main' into fix/gemini-cwd-hang 2026-03-31 13:21:43 +08:00
li 93ffe1f574 chore: bump version to 2.0.0 2026-03-31 11:23:14 +08:00
li 0d997f4b70 feat: Skill Registry + domain knowledge + impeccable tools + 3 output styles (v1.8.4)
- Skill Registry: SKILL.md frontmatter-driven auto command generation (skill-registry.ts)
- Import 61 domain knowledge files (security/architecture/devops/ai/dev/frontend-design/infra/mobile/data-eng)
- Import 20 impeccable UI/UX tools (polish/audit/harden/clarify/critique/animate/colorize etc.)
- Import override-refusal tool (/hi session rewriter) + scrapling skill
- Add 3 output styles: abyss-concise, abyss-command, abyss-ritual (total 8)
- Add ccg-skill-routing.md rules for auto-triggering domain knowledge on keyword match
- Fix imported skill paths to use ~/.claude/skills/ccg/ namespace
2026-03-31 11:20:41 +08:00
Aliang 1262daeae9 Merge branch 'main' into fix/gemini-cwd-hang 2026-03-31 10:12:37 +08:00
li c8f831c290 fix: static link Linux binaries to remove GLIBC dependency
CGO_ENABLED=0 produces fully static binaries, fixing
compatibility with Ubuntu 20.04 and older distros.

Closes #123
2026-03-30 22:22:39 +08:00
AliangandClaude Opus 4.6 a8377c4a4e fix: Gemini CLI hangs on long prompts when CWD is $HOME
When codeagent-wrapper sets cmd.Dir=$HOME for Gemini backend, Gemini CLI
hangs after emitting init event on long prompts (e.g. with ROLE_FILE
injection). Only the init JSON event is output, then no further events
are produced — causing the wrapper to block indefinitely.

Root cause: Gemini CLI performs directory scanning from CWD. When CWD is
$HOME (which typically contains thousands of files), combined with a
long prompt, Gemini stalls between init and the first user message event.

Fix: Use workDir as CWD for Gemini (same as Claude backend). The
original $HOME workaround was to prevent project .env files from
overriding global API keys (gemini-cli#2493), but this is already
handled by cmd.SetEnv() which injects API keys from
loadMinimalEnvSettings() with higher priority than .env files.

Tested: exact same command that previously hung for 90s+ now completes
in 65-85s with correct output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 19:09:25 +08:00
li 9d94b6f3ab fix: Windows ccline statusLine path use ~ instead of %USERPROFILE% 2026-03-27 18:00:38 +08:00
li 75753febe5 fix: force pwd/cd to resolve WORKDIR in all 20 command templates
Prevents Claude from inferring incorrect working directory from $HOME
or environment variables in sandbox/cloud environments.
2026-03-27 16:52:49 +08:00
li 6988f6421a fix: Gemini session_id parsing + restore resume <SESSION_ID>
Root cause: Gemini CLI prepends MCP warning text to init event line,
causing JSON parse failure and losing session_id.

Fix: extract JSON from first '{' when initial parse fails.

All templates restored to `resume <SESSION_ID>` for both Codex and
Gemini, supporting parallel multi-session workflows.

New: spec-impl cross-phase session reuse (prototype → review).
2026-03-26 14:41:09 +08:00
li d1fa209158 chore: bump version to 1.7.99
- Gemini resume latest for all templates (7 files)
- spec-impl cross-phase session reuse (prototype → review)
- Binary 5.9.0 (Session-ID early output + -p display fix)
2026-03-26 14:21:28 +08:00
li fc89a63dcb fix: spec-impl resume sessions between prototype and review phases
Step 4 prototype → Step 7 review now reuses sessions:
- Codex: resume <CODEX_PROTO_SESSION>
- Gemini: resume latest
2026-03-26 14:03:51 +08:00
li c3508bfb3e fix: execute.md Gemini resume latest for parallel route 2026-03-26 13:59:15 +08:00
li 8244463eb8 fix: Gemini templates use resume latest instead of SESSION_ID
Gemini CLI stream-json does not output session_id in events,
so the wrapper cannot capture it. All templates now use
`resume latest` for Gemini (Codex still uses `resume <SESSION_ID>`).

Affected templates: frontend, workflow, execute, feat, plan, codex-exec
2026-03-26 13:57:20 +08:00
li 32a5043bdb fix: early Session-ID output + Gemini -p display correction
- Output Session-ID to stderr immediately when backend reports
  session_started, so Claude can capture it even if task times out
- Fix Command: display line to show actual task text instead of
  misleading -p - for Gemini backend (geminiDirect logic)
- Bump codeagent-wrapper 5.8.0 → 5.9.0
- Bump EXPECTED_BINARY_VERSION to 5.9.0
2026-03-26 13:23:52 +08:00
li 88ac6a9a2f fix: CDN download + curl proxy + binary version check + install count fix 2026-03-25 23:36:40 +08:00
li 64a0c15809 fix: add --remote flag to wrangler R2 upload in CI 2026-03-25 22:58:03 +08:00
li 420cc2f0d0 fix: R2 priority download + binary version check in update flow 2026-03-25 22:28:38 +08:00
li 9072ebb8f1 docs: add CI-only binary upload rule to release checklist 2026-03-25 22:16:26 +08:00
li 4ad80e2a3e docs: add binary version sync reminder to release checklist 2026-03-25 22:04:42 +08:00
li aa689e89d0 fix: binary version check on update — force re-download when outdated 2026-03-25 22:01:40 +08:00
li 550a932c23 chore: bump version to 1.7.93 2026-03-25 15:35:41 +08:00
li 1f1637ac2f fix: clarify skill names have no ccg: prefix in rules template 2026-03-25 15:33:36 +08:00
li fc964a3229 chore: bump version to 1.7.92 2026-03-25 14:34:00 +08:00
li 7822a5f4b0 chore: bump version to 1.7.91 2026-03-25 13:56:45 +08:00
li fb03bb325a fix: pass task text directly via -p for Gemini CLI instead of stdin marker
Gemini CLI does not support "-" as stdin marker for the -p flag.
When useStdin=true, the wrapper was passing "-p -" which caused Gemini
to misparse arguments (--include-directories consuming "-" as its value).
Now Gemini backend receives the actual task text via -p directly,
skipping the stdin pipe entirely.
2026-03-25 13:47:32 +08:00
li 3abb80c3cd chore: bump version to 1.7.90 2026-03-23 16:29:07 +08:00
li a9cadd4483 fix: add missing --progress flag to debug, spec-review, codex-exec templates 2026-03-23 16:27:07 +08:00
aleng e816091620 feat: add --progress flag for codeagent-wrapper stderr progress output
* fix: surface wrapper progress in task output

Propagate the --progress flag through the wrapper runtime path so background Codex tasks emit compact progress lines to stderr. Also enable progress output in long-running CCG command templates and add focused parser/arg coverage for the new behavior.

* fix: address review feedback for task progress output

Remove the unintended progress enablement in runCodexProcess, make progress snippets rune-safe for CJK output, add direct utility coverage, and align the remaining background command templates to use --progress consistently.
2026-03-23 16:25:45 +08:00
li e9ba77a2c5 docs: update contributors list (add SXP-Simon, Sakuranda, Mriris) 2026-03-20 14:51:53 +08:00
li 9315ce26a8 fix: set collaborators=all to avoid 404 on collaborators API 2026-03-20 14:48:42 +08:00
li e390b41815 fix: remove claude/- exclusion from contributors markers causing 404 2026-03-20 14:47:48 +08:00
li 250cf03edb fix: add pull-requests permission to contributors action 2026-03-20 14:46:33 +08:00
li 4f76c5a602 fix: upgrade contributors-readme-action to v2.3.11 2026-03-20 14:44:40 +08:00
li 2fbe4bc589 fix: remove unsupported exclude param from contributors action 2026-03-20 14:43:32 +08:00
li d03d324828 fix: unified permissions.allow for all platforms, fix pattern matching
- Fix permission pattern: Bash(codeagent-wrapper*) → Bash(*codeagent-wrapper*)
- Fix spec-init <<< here-string triggering Claude Code security check
- Unify all platforms to use permissions.allow (remove Hook + jq dependency)
- Auto-migrate: clean up old Hook and old permission entries on upgrade
2026-03-20 14:36:24 +08:00
li ec026ad8c9 fix: strict McpServerConfig type + mandatory typecheck in release flow
- Fix TS2345 in installer-mcp.ts by narrowing serverConfig to McpServerConfig
- Add pnpm typecheck + pnpm test as required pre-release checks in CLAUDE.md
2026-03-19 19:11:03 +08:00
风少1227 c0506c2146 Merge pull request #103 from SXP-Simon/fix/version
Fix: stabilize CLI version detection to avoid showing 0.0.0
2026-03-19 19:03:02 +08:00
li aa53e9689b fix: Gemini retry on failure, Codex must-wait, team-exec use real Agent Teams
- Add Gemini failure retry (2x, 5s interval) to all 20 command templates
- Add Codex must-wait rule to prevent skipping long-running Codex tasks
- Fix team-exec to use TeamCreate + TaskCreate + Agent(team_name=...) instead of plain Agent subagents
2026-03-19 18:52:33 +08:00