Commit Graph
231 Commits
Author SHA1 Message Date
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
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
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
Helian Nuits 1613ef0a93 Merge pull request #1 from SXP-Simon/codex/locate-version-display-issue
fix: stabilize CLI version detection to avoid showing 0.0.0
2026-03-19 17:07:08 +08:00
Helian Nuits e08a7c35da refactor: align version lookup behavior with review feedback 2026-03-19 17:04:52 +08:00
Helian Nuits e07edbc721 fix: resolve current version detection fallback to 0.0.0 2026-03-19 16:58:38 +08:00
li 92e1e4251e fix: correct run_skill.js path in SKILL.md for ccg namespace
The skill runner path was still pointing to ~/.claude/skills/run_skill.js
instead of ~/.claude/skills/ccg/run_skill.js after the v1.7.75 namespace
migration, causing quality gate invocations to fail.
2026-03-18 12:10:17 +08:00
li e4eace2e42 fix: eliminate silent install failures and atomic update with rollback
Root cause: Windows/Linux users reported missing commands and skills after
install/update. Three critical issues found:

1. Update flow deleted all files BEFORE installing new ones. If the
   subprocess failed (network timeout, npm cache, permissions), the user
   was left with nothing — no commands, no skills, no rollback.

2. Multiple install functions silently returned empty results when template
   directories were missing (wrong PACKAGE_ROOT resolution), while still
   reporting success. Users saw "install complete" but had 0 files.

3. findPackageRoot only searched 5 levels up, insufficient for deeply
   nested npm cache paths on Windows.

Changes:
- Rewrite update flow: backup → install → verify → cleanup/rollback
  If install fails, old version is automatically restored from backup
- findPackageRoot: depth 5→10, validate templates/ dir exists, detect
  filesystem root, log actionable error on failure
- installWorkflows: pre-flight templateDir validation, post-flight
  0-commands check → force success=false
- installSkillFiles: report errors instead of silent return, post-copy
  SKILL.md validation, individual try-catch for migration moves,
  always overwrite (not conditional on --force)
- installPromptFiles: report errors instead of silent return
- copyMdTemplates: log warning when source dir missing
- collectSkillNames: distinguish ENOENT from permission/path errors
- init.ts: prominent red-box error display with fix instructions
- showBinaryDownloadWarning: correct Windows path separators
2026-03-17 19:23:03 +08:00
li 8ea7e59685 fix(ci): use shell loop for R2 upload instead of wrangler-action
wrangler-action@v3 installs wrangler v3 which doesn't support --remote.
Switch to direct npm install + shell loop for reliable multi-file upload.
2026-03-17 11:35:23 +08:00
li 40f1432228 fix(ci): add packageManager: npm for wrangler-action
CI environment only has Go + Node, no pnpm. Explicit npm avoids
wrangler-action failing on missing pnpm.
2026-03-17 11:32:34 +08:00
li 27b9ae7680 ci: auto-sync binaries to Cloudflare R2 after build
Adds wrangler-action step to upload all 6 binaries to R2 mirror
after GitHub Release upload. Requires CLOUDFLARE_API_TOKEN and
CLOUDFLARE_ACCOUNT_ID secrets.
2026-03-17 11:27:29 +08:00
li 371bc50f91 feat: dual-source binary download — GitHub + Cloudflare R2 mirror
GitHub Release (8s timeout) → Cloudflare R2 mirror (60s timeout) automatic
fallback. China users no longer suffer from GitHub download failures.
2026-03-17 11:25:24 +08:00
li a722a8a7e9 fix: skip binary re-download during update when unchanged
- installBinaryFile() checks existing binary before downloading
- uninstallWorkflows() accepts preserveBinary option for updates
- update.ts verifies binary post-update with same red-box warning as init
- Extract shared verifyBinary() and showBinaryDownloadWarning() utils
2026-03-17 10:56:31 +08:00
li f5f6d2e6b5 fix: sync MCP mirrors to Codex/Gemini after config-mcp install/uninstall
config-mcp handlers only wrote to ~/.claude.json but never called
syncMcpToCodex()/syncMcpToGemini(), so MCP servers added via the
config menu (e.g. fast-context) were missing from Codex and Gemini.
2026-03-12 17:19:42 +08:00
li 1cbcabd6fb docs: clarify code authorship — Claude writes code by default, codex-exec as alternative
Make it clear that Codex/Gemini are analyzers, not code writers.
Default: Claude writes code (transparent, no black box).
codex-exec: Codex writes code + multi-model review.
2026-03-12 14:09:54 +08:00
li 2864b16968 style: rewrite docs content — less AI, more developer voice
Remove formulaic structure, marketing buzzwords, and template-speak.
Rewrite all 12 pages in a conversational developer-to-developer tone.
2026-03-12 14:06:57 +08:00
li c80f58b086 feat: VitePress documentation site with GitHub Pages deployment
- VitePress config with zh-CN (default) + English i18n
- 12 content pages: landing page + 5 guide pages per locale
- GitHub Actions workflow for auto-deploy on docs/** changes
- Logo SVG + local search enabled
- Homepage URL updated to https://fengshao1227.github.io/ccg-workflow/
2026-03-12 14:00:46 +08:00
li d58968055c chore: bump version to 1.7.83 2026-03-12 13:39:32 +08:00