@danielstyle/featflow 0.6.3 → 0.6.5

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
@@ -2,7 +2,12 @@
2
2
 
3
3
  **AI-native feature workflow: Skill + CLI + Git & Agent Hooks.**
4
4
 
5
- [中文文档](./README.zh-CN.md)
5
+ [![npm version](https://img.shields.io/npm/v/@danielstyle/featflow.svg)](https://www.npmjs.com/package/@danielstyle/featflow)
6
+ [![CI](https://github.com/daniel-style/featflow/actions/workflows/ci.yml/badge.svg)](https://github.com/daniel-style/featflow/actions/workflows/ci.yml)
7
+ [![Node.js >=20](https://img.shields.io/node/v/@danielstyle/featflow.svg)](https://nodejs.org/)
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/daniel-style/featflow/blob/main/LICENSE)
9
+
10
+ [中文文档](https://github.com/daniel-style/featflow/blob/main/README.zh-CN.md)
6
11
 
7
12
  `featflow` gives human developers and AI coding agents (Codex, Claude Code, Cursor, Antigravity, and any Agent Skills-compatible client) a disciplined, resumable engineering loop:
8
13
 
@@ -10,7 +15,7 @@
10
15
  2. **Concrete Plan & Explicit Approval** before implementation.
11
16
  3. **Isolated Git Worktrees** per task branch so parallel sessions never collide.
12
17
  4. **Canonical Feature & Program Records** under `features/` so long-running tasks survive context compaction, session handoffs, and multi-phase initiatives.
13
- 5. **Programmatic Guardrails** via Git hooks and optional Coding Agent `PreToolUse` / `UserPromptSubmit` / `Stop` hooks that actually enforce branch protection and plan completeness.
18
+ 5. **Programmatic Guardrails** via Git hooks (`pre-commit` branch protection & file-size budget, `pre-push`, `post-merge`) and optional Coding Agent hooks (`UserPromptSubmit` / `PreInvocation` / `beforeSubmitPrompt`, `PreToolUse`, `PostToolUse`, `Stop`) that enforce branch protection, plan completeness, and file-size budgets.
14
19
 
15
20
  Zero runtime dependencies. Pure Node.js ESM (`>=20`). Cross-platform (macOS, Linux, Windows).
16
21
 
@@ -22,9 +27,9 @@ Install `featflow` **once globally** and adapt its footprint per repository —
22
27
 
23
28
  | Mode | Footprint in target repo | Best for |
24
29
  | --- | --- | --- |
25
- | **1. Zero-Footprint Global (Recommended)** | **0 files** (uses built-in templates via `featflow new --local` and `.git/hooks/` via `featflow hooks install --local`) | Personal repos, Python/Go/Rust repos, contributing to external OSS repos without touching tracked files |
26
- | **2. Lightweight (`featflow init --minimal`)** | **`.featflow.json` + managed `AGENTS.md` block + local `.git/hooks/`** (no `package.json`, lockfile, or boilerplate dirs) | Multi-repo developers and teams who install `featflow` once globally and want one-command auto-detected onboarding |
27
- | **3. Team Embedded (`devDependency`)** | `package.json` + `.featflow.json` + `AGENTS.md` block + synced Skill/templates/`.githooks/` + CI `featflow sync --check` | Large JS/TS teams requiring identical locked versions across all contributors and CI |
30
+ | **1. Zero-Footprint Global (Recommended)** | **0 files** (global Skills via `featflow skills install`, built-in templates via `featflow new --local`, `.git/hooks/` via `featflow hooks install --local`) | Personal repos, Python/Go/Rust repos, contributing to external OSS repos without touching tracked files |
31
+ | **2. Project Workflow (`featflow init` / `--minimal`)** | **Project config & hooks only** (`.featflow.json` + managed `AGENTS.md` block + hooks/templates; **reuses global Skills** so updates never drift or get shadowed) | Solo & multi-repo developers wanting full guardrails (`fileSizeBudget`, Regression Guardian, Issues, 4 AI agent hooks) without duplicating `SKILL.md` into every repo |
32
+ | **3. Team Repo-Locked (`--with-repo-skills`)** | `package.json` + `.featflow.json` + `AGENTS.md` block + embedded `.agents/skills/` + templates/`.githooks/` + CI `featflow sync --check` | Teams requiring zero global setup for new contributors with every Skill and template locked in Git |
28
33
 
29
34
  ---
30
35
 
@@ -33,10 +38,13 @@ Install `featflow` **once globally** and adapt its footprint per repository —
33
38
  ### Option A — Global Install (Recommended, works across all repos & languages)
34
39
 
35
40
  ```bash
36
- # 1. Install the CLI globally once (or pin via GitHub tag: github:daniel-style/featflow#v0.6.3)
41
+ # 1. Install the CLI globally once from npm
37
42
  npm install -g @danielstyle/featflow
38
43
 
39
- # 2. Install the Agent Skill globally once (Codex, Claude Code, Cursor, Antigravity)
44
+ # 2. Sync bundled Agent Skills globally once (offline, version-matched across ~/.agents, ~/.claude, ~/.codex, ~/.cursor)
45
+ featflow skills install
46
+
47
+ # Alternative: install via the skills.sh CLI from GitHub
40
48
  npx skills add https://github.com/daniel-style/featflow --skill featflow -g
41
49
  ```
42
50
 
@@ -63,21 +71,37 @@ Want one-command project onboarding (auto-detected `baseBranch`, `productPaths`,
63
71
  featflow init --minimal
64
72
  ```
65
73
 
74
+ Upgrade the global CLI & global Skills anytime in one line (or run one-off commands without installing via the scoped package name):
75
+
76
+ ```bash
77
+ npm install -g @danielstyle/featflow@latest && featflow skills install
78
+ # One-off without global/local install:
79
+ npx @danielstyle/featflow status
80
+ ```
81
+
66
82
  ### Option B — Embed in a Team JS/TS Repository
67
83
 
68
84
  ```bash
69
85
  npm install -D @danielstyle/featflow
70
86
 
71
- # Interactive wizard with checkbox multi-select (workflow guardrails + AI agent hooks):
87
+ # Interactive wizard with arrow-key single-select & multi-select checkboxes (uses global Skills by default):
72
88
  npx featflow init
73
89
 
74
- # Or one-command full bundle (size budget + pre-commit guard + Regression Guardian + Issues + all 4 AI agent hooks):
90
+ # One-command full bundle (size budget + pre-commit guard + Regression Guardian + Issues + Codex subagents + all 4 AI agent hooks):
75
91
  npx featflow init --preset full --yes
76
92
 
77
- # Or non-destructively upgrade an existing repo to add universal agent hooks & regression ledger:
78
- npx featflow init --merge --with-all-hooks --with-regression
93
+ # Need repo-locked .agents/skills/ so teammates don't have to install global Skills? Opt in explicitly:
94
+ npx featflow init --preset full --with-repo-skills --yes
95
+
96
+ # Non-destructively upgrade an existing repo (adds universal agent hooks, regression ledger, and auto-generates legacy file-size baseline):
97
+ npx featflow init --merge --with-all-hooks --with-size-budget --with-regression
98
+
99
+ # Upgrade later and sync managed templates, hooks, AGENTS.md blocks (and repo skills if embedded):
100
+ npm install -D @danielstyle/featflow@latest && npx featflow sync
79
101
  ```
80
102
 
103
+ > Tip: AI coding-agent hooks (`.agents/hooks.json`, `.claude/settings.json`, `.codex/config.toml`, `.cursor/hooks.json`) invoke `featflow hook ...` from `PATH`. Even in team repos with `devDependencies`, installing `@danielstyle/featflow` globally once ensures hooks work seamlessly across all worktrees. `featflow init` and `featflow doctor` automatically verify both CLI and global Skill readiness.
104
+
81
105
  `featflow init` automatically injects a non-destructive `<!-- FEATFLOW_START --> ... <!-- FEATFLOW_END -->` workflow block into `AGENTS.md` / `CLAUDE.md` (opt out with `--no-agent-docs`) and keeps it synced via `featflow sync`.
82
106
 
83
107
  ---
@@ -107,9 +131,10 @@ main (release, protected)
107
131
  └── bob (personal developer branch)
108
132
  ```
109
133
 
110
- - Run once per checkout: `featflow setup alice` (creates/tracks `alice` from `origin/dev`, saves `git config featflow.developerBranch alice`, enables hooks).
134
+ - Run once per checkout: `featflow setup alice` (auto-fetches remote branches, interactively offers to bootstrap a missing `origin/dev` — or pass `--bootstrap-integration` — creates/tracks `alice` from `origin/dev`, saves `git config featflow.developerBranch alice`, and enables hooks). `featflow init` can also trigger this step directly in `developer-branch` mode.
111
135
  - Daily tasks branch from `alice` as `<prefix>/alice-<task>` (never `alice/...`, because Git cannot store both `alice` and `alice/...` refs simultaneously).
112
- - `featflow finish feat/alice-oauth-pkce` merges into `alice`, pushes `alice`, removes the clean task worktree and local branch, and never merges directly into `dev` or `main`.
136
+ - `featflow sync-dev` syncs the latest `origin/dev` back into `alice` (also runs automatically before `featflow worktree` and `featflow finish` by default; aborts cleanly on merge conflicts and can be skipped with `--no-sync-dev` or configured via `syncIntegration` in `.featflow.json`).
137
+ - `featflow finish feat/alice-oauth-pkce` syncs `origin/dev` into `alice`, merges into `alice`, pushes `alice`, removes the clean task worktree and local branch, and never merges directly into `dev` or `main`.
113
138
  - Team integration (`alice -> dev`) and release promotion (`dev -> main`) happen via explicit pull requests.
114
139
 
115
140
  ---
@@ -119,13 +144,15 @@ main (release, protected)
119
144
  | Command | Description |
120
145
  | --- | --- |
121
146
  | `featflow new <slug> [options]` | Create a feature (or `--program`) record from the repo template or `featflow`'s built-in template, auto-filling timestamps, `owner`, and branch. Pass `--local` to store under `.featflow/features/` (excluded via `.git/info/exclude`, zero tracked files). |
147
+ | `featflow skills <install\|status\|uninstall>` | Install, inspect, or uninstall global Agent Skills (`featflow`, `featflow-issues`, `featflow-regression`) directly from the installed package into `~/.agents/skills/` and detected `~/.claude/skills/`, `~/.codex/skills/`, `~/.cursor/skills/` (offline, always version-matched with your CLI). |
122
148
  | `featflow hooks <install\|uninstall\|status>` | Manage Git hooks: `--local` (default) adds/removes fenced blocks inside `.git/hooks/` without modifying repo files or overwriting custom hooks; `--repo` installs tracked `.githooks/`. |
123
- | `featflow init [options]` | Auto-detect repo config, inject managed `AGENTS.md`/`CLAUDE.md` block, and interactively pick guardrails & AI coding-agent hooks with TUI multi-select checkboxes. Supports `--preset full` (all guardrails + all 4 agent hooks), `--minimal`, `--merge` (non-destructive upgrade of existing repos with auto legacy size baseline), `--agent-hooks <antigravity,claude-code,codex,cursor|all|none>`, and `--yes`. |
124
- | `featflow sync [options]` | Sync managed Skill, feature templates, `.githooks/`, and `AGENTS.md`/`CLAUDE.md` blocks from the installed `featflow` version without modifying `.featflow.json`, feature records, or custom doc content. Pass `--check` in CI to fail on drift, or `--only skill,templates,githooks,agent-docs`. |
125
- | `featflow setup [dev-branch]` | Configure personal developer branch (in `developer-branch` mode) and safely enable Git hooks without clobbering Husky/Lefthook. |
126
- | `featflow status` | Inspect workflow mode, branch/remote status, all worktrees, active/paused feature records, and next recommended step. |
127
- | `featflow worktree <branch> [path] [base]` | Create a typed task branch in a dedicated sibling worktree and run configured `postWorktreeCreate` commands. |
128
- | `featflow finish <branch>` | Merge/push a verified task branch, safely exit the task worktree, delete the clean worktree & local branch, and prune other merged task branches. Supports `--no-push`, `--pr`, `--dry-run`, `--keep-worktree`, `--keep-branch`. |
149
+ | `featflow init [options]` | Auto-detect repo config, inject managed `AGENTS.md`/`CLAUDE.md` block, check global Skills & CLI readiness, and interactively pick guardrails & AI coding-agent hooks with arrow-key single/multi-select prompts. Reuses global Skills by default (pass `--with-repo-skills` to embed `.agents/skills/` in the repo, or `--install-global-skills` to auto-sync global skills). Supports `--preset <minimal\|standard\|full>`, `--minimal`, `--merge`, `--with-codex-agents`, `--agent-hooks <antigravity,claude-code,codex,cursor\|all\|none>`, and `--yes`. |
150
+ | `featflow sync [options]` | Sync repo-managed templates, `.githooks/`, `AGENTS.md`/`CLAUDE.md` blocks, and repo-embedded Skills (when present or opted in via `--with-repo-skills`) without modifying `.featflow.json`, feature records, or custom doc content. Pass `--check` in CI to fail on drift, or `--only skill,issues-skill,regression-skill,templates,githooks,agent-docs`. |
151
+ | `featflow sync-dev [options]` | Sync the shared integration branch (e.g. `origin/dev`) back into your personal developer branch in `developer-branch` mode (`--no-push`, `--abort-on-conflict`, `--dry-run`). |
152
+ | `featflow setup [dev-branch]` | Configure personal developer branch (in `developer-branch` mode), auto-fetch remote branches, optionally bootstrap a missing integration branch (`--bootstrap-integration`), and safely enable Git hooks without clobbering Husky/Lefthook. |
153
+ | `featflow status` | Inspect workflow mode, branch/remote status, commits behind `origin/dev`, all worktrees, active/paused feature records, and next recommended step. |
154
+ | `featflow worktree <branch> [path] [base]` | Create a typed task branch in a dedicated sibling worktree (auto-syncing `origin/dev` into your developer branch first in `developer-branch` mode; `--no-sync-dev` to skip) and run configured `postWorktreeCreate` commands. |
155
+ | `featflow finish <branch>` | Merge/push a verified task branch (auto-syncing `origin/dev` in `developer-branch` mode), safely exit the task worktree, delete the clean worktree & local branch, and prune other merged task branches. Supports `--no-push`, `--no-sync-dev`, `--pr`, `--dry-run`, `--keep-worktree`, `--keep-branch`. |
129
156
  | `featflow issue <subcommand>` | Optional GitHub Issues closed-loop CLI (`create`, `list`, `view`, `claim`, `review`, `release`, `labels:sync`) powered by `gh`. Atomically preflights worktree creation before claiming, supports optional screenshot uploads via `issues.assetsRepo`, and syncs optional `featflow-issues` Skill via `featflow init --with-issues` / `featflow sync`. |
130
157
  | `featflow size-check [options]` | Optional multi-language file line-count budget checker with legacy baseline ratchet (`--changed`, `--update-baseline`, `--json`), configured via `fileSizeBudget` in `.featflow.json`. |
131
158
  | `featflow regression <impact\|check\|validate>` | Optional Regression Guardian CLI for YAML/JSON regression ledgers (`regression.ledgerFile`): find impacted bug invariants for changed files, run guard commands, or validate ledger integrity. |
@@ -136,7 +163,7 @@ main (release, protected)
136
163
  | `featflow plan-check [path]` | Validate required `Plan Details` headings, placeholder resolution (ignoring code spans/fences), and recorded pre-implementation approval. |
137
164
  | `featflow policy <pre-commit\|pre-push>` | Git hook guard blocking direct commits/pushes to protected branches and staged files exceeding `fileSizeBudget` when `enforceInPreCommit: true` (bypass once with `FEATFLOW_BOOTSTRAP=1` / `FEATFLOW_SKIP_SIZE_CHECK=1`). |
138
165
  | `featflow hook <antigravity\|claude-code\|codex\|cursor> <event>` | Universal AI coding-agent hook adapter supporting Antigravity (`.agents/hooks.json`), Claude Code (`.claude/settings.json`), OpenAI Codex (`.codex/config.toml`), and Cursor (`.cursor/hooks.json`). |
139
- | `featflow doctor` | Run repository health checks across Git, config, templates, Skill, hooks, and active feature plan. |
166
+ | `featflow doctor` | Run repository health checks across Git, config, templates, Skill, managed docs, agent/Git hooks, CodeGraph, and active feature plan. |
140
167
 
141
168
  ---
142
169
 
@@ -148,7 +175,7 @@ main (release, protected)
148
175
  "remote": "origin",
149
176
  "requireRemote": false,
150
177
  "baseBranch": "main",
151
- "integrationBranch": "dev",
178
+ "integrationBranch": "main",
152
179
  "releaseBranch": "main",
153
180
  "protectedBranches": ["main"],
154
181
  "finishTarget": "merge",
@@ -169,6 +196,21 @@ main (release, protected)
169
196
  "blockEnvWrite": true,
170
197
  "blockedPackageManagers": []
171
198
  },
199
+ "fileSizeBudget": {
200
+ "production": 600,
201
+ "style": 700,
202
+ "test": 900,
203
+ "extensions": [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".py", ".css"],
204
+ "ignore": [],
205
+ "baselineFile": ".featflow-size-baseline.json",
206
+ "enforceInPostToolUse": true,
207
+ "enforceInStopGate": true,
208
+ "enforceInPreCommit": true
209
+ },
210
+ "regression": {
211
+ "ledgerFile": "context/regression-ledger.yml",
212
+ "enforceInStopGate": false
213
+ },
172
214
  "issues": {
173
215
  "provider": "github",
174
216
  "repo": null,
@@ -180,7 +222,9 @@ main (release, protected)
180
222
  }
181
223
  ```
182
224
 
183
- > Note: `"issues"` is completely optional (omitted by default). Only repositories opting into `featflow issue` need it — and `assetsRepo` is only needed when uploading/downloading local screenshots via `--attach` / `--download-images`.
225
+ > Notes:
226
+ > - In `developer-branch` mode, `baseBranch` and `integrationBranch` default to `"dev"`, `protectedBranches` defaults to `["main", "dev"]`, `requireRemote` defaults to `true`, and `finishTarget` is `"developer-branch"`.
227
+ > - `"fileSizeBudget"`, `"regression"`, and `"issues"` are all **optional** (omitted by default). Enable them selectively with `featflow init --with-size-budget` / `--with-regression` / `--with-issues` or all at once via `--preset full`. `issues.assetsRepo` is only needed when uploading/downloading local screenshots via `--attach` / `--download-images`.
184
228
 
185
229
  ### Notable Design Choices
186
230
 
@@ -189,7 +233,7 @@ main (release, protected)
189
233
  - **Tracked vs. Local-only `features/`**: Prefer keeping AI planning records out of Git history? Pass `featflow init --local-features` to ignore `features/` while keeping the full Skill, CLI, and plan-gate workflow locally.
190
234
  - **Smart `PreToolUse` plan gating**: Unlike naive keyword regexes, `featflow hook` distinguishes read-only shell commands (`rg`, `cat`, `git diff`) from mutating writes, strips Markdown code spans/fences before checking template placeholders, and checks that `Pre-Implementation Approval` is no longer `pending`.
191
235
  - **Optional post-worktree hooks**: Need automatic dependency install (`pnpm install --frozen-lockfile --offline`) or local index bootstrap (`codegraph init`) when creating a worktree? Add them to `postWorktreeCreate` in `.featflow.json`.
192
- - **Multi-repository sync without drift**: Upgrade `featflow` in any project and run `featflow sync` to refresh the managed Skill, templates, and `.githooks/` while keeping `.featflow.json` and active/done records untouched. Add `featflow sync --check` to CI so repositories stay aligned with their pinned `featflow` version.
236
+ - **Multi-repository sync without drift**: Upgrade `@danielstyle/featflow` in any project and run `featflow sync` to refresh the managed Skills, templates, `.githooks/`, and `AGENTS.md`/`CLAUDE.md` blocks while keeping `.featflow.json`, active/done records, and custom doc content untouched. Add `featflow sync --check` to CI so repositories stay aligned with their pinned `featflow` version.
193
237
 
194
238
  ---
195
239
 
@@ -197,6 +241,7 @@ main (release, protected)
197
241
 
198
242
  ```bash
199
243
  npm run smoke
244
+ npm run lint:size
200
245
  npm test
201
246
  ```
202
247
 
@@ -204,4 +249,4 @@ All tests run with Node's built-in test runner (`node:test`) against isolated te
204
249
 
205
250
  ## License
206
251
 
207
- [MIT](./LICENSE)
252
+ [MIT](https://github.com/daniel-style/featflow/blob/main/LICENSE)
package/README.zh-CN.md CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  **面向 AI 编程的工程化特性工作流:Skill + CLI + Git / Agent Hooks。**
4
4
 
5
- [English README](./README.md)
5
+ [![npm version](https://img.shields.io/npm/v/@danielstyle/featflow.svg)](https://www.npmjs.com/package/@danielstyle/featflow)
6
+ [![CI](https://github.com/daniel-style/featflow/actions/workflows/ci.yml/badge.svg)](https://github.com/daniel-style/featflow/actions/workflows/ci.yml)
7
+ [![Node.js >=20](https://img.shields.io/node/v/@danielstyle/featflow.svg)](https://nodejs.org/)
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/daniel-style/featflow/blob/main/LICENSE)
9
+
10
+ [English README](https://github.com/daniel-style/featflow/blob/main/README.md)
6
11
 
7
12
  `featflow` 为人类开发者和 AI Coding Agents(Codex、Claude Code、Cursor、Antigravity 等支持 Agent Skills 的工具)提供一套经过高频实战打磨的闭环工作流:
8
13
 
@@ -10,7 +15,7 @@
10
15
  2. **先出方案并等待审批(Pre-Implementation Gate)**:任何写操作之前输出具体方案,获批后再动手。
11
16
  3. **任务级 Git Worktree 隔离**:每个需求/修复独立分支与独立目录,多任务并行互不干扰。
12
17
  4. **结构化 Feature & Program 记录**:在 `features/` 下沉淀需求 brief、详细实现计划、决策与验证结果,跨会话/长周期项目随时可恢复。
13
- 5. **程序化硬护栏**:通过 Git Hooks 与可选的 Agent Hooks(`PreToolUse` / `UserPromptSubmit` / `Stop`),真正拦截保护分支误写和“计划没填完就改产品代码”。
18
+ 5. **程序化硬护栏**:通过 Git Hooks(`pre-commit` 保护分支与代码行数拦截、`pre-push`、`post-merge`)与可选的 Agent Hooks(`UserPromptSubmit` / `PreInvocation` / `beforeSubmitPrompt`、`PreToolUse`、`PostToolUse`、`Stop`),真正拦截保护分支误写、“计划没填完就改产品代码”以及文件行数超限。
14
19
 
15
20
  零第三方运行时依赖,纯 Node.js ESM(`>=20`),支持 macOS / Linux / Windows。
16
21
 
@@ -22,9 +27,9 @@
22
27
 
23
28
  | 模式 | 目标仓库改动 | 适用场景 |
24
29
  | --- | --- | --- |
25
- | **1. 纯全局零入侵(推荐)** | **0 个文件**(`featflow new --local` 用内置模板写到 `.featflow/features/` 并写入 `.git/info/exclude`;`featflow hooks install --local` 装在 `.git/hooks/`) | 个人项目、Python/Go/Rust 等非 JS 项目、给外部开源项目提 PR |
26
- | **2. 轻量一键接入(`featflow init --minimal`)** | **`.featflow.json` + `AGENTS.md` 托管块 + 本地 `.git/hooks/`**(不动 `package.json`、不拷模板和 Skill 目录) | 多仓库开发者,全局装一次 CLI 后在任意项目一条命令配齐自动探测配置与工作流规则 |
27
- | **3. 团队项目内置(`devDependency`)** | `package.json` + `.featflow.json` + `AGENTS.md` 托管块 + 同步的 Skill/模板/`.githooks/` + CI `featflow sync --check` | 多人协作 JS/TS 仓库,希望新人 `pnpm install` 零额外步骤且 CI 强锁版本 |
30
+ | **1. 纯全局零入侵(推荐)** | **0 个文件**(`featflow skills install` 同步全局 Skill;`featflow new --local` 写到 `.featflow/features/` 并写入 `.git/info/exclude`;`featflow hooks install --local` 装在 `.git/hooks/`) | 个人项目、Python/Go/Rust 等非 JS 项目、给外部开源项目提 PR |
31
+ | **2. 项目接入(`featflow init` / `--minimal`)** | **只放项目专属配置与钩子**(`.featflow.json` + `AGENTS.md` 托管块 + 钩子/模板;**默认直接复用全局 Skill**,避免项目副本覆盖全局新版) | 个人与多仓库团队,需要完整护栏(代码行数限制、回归守卫、Issues、四大 Agent Hooks)且不想往每个仓库拷重复 `SKILL.md` |
32
+ | **3. 团队强锁入库(`--with-repo-skills`)** | `package.json` + `.featflow.json` + `AGENTS.md` 托管块 + 入库 `.agents/skills/` + 模板/`.githooks/` + CI `featflow sync --check` | 多人协作仓库,希望新人克隆即可用、无需全局装 Skill 且 CI 强锁版本 |
28
33
 
29
34
  ---
30
35
 
@@ -33,10 +38,13 @@
33
38
  ### 方式 A:全局安装(推荐,跨所有项目与语言通用)
34
39
 
35
40
  ```bash
36
- # 1. 本机全局安装一次 CLI(也可通过 GitHub tag 安装:github:daniel-style/featflow#v0.6.3)
41
+ # 1. 从 npm 本机全局安装一次 CLI
37
42
  npm install -g @danielstyle/featflow
38
43
 
39
- # 2. 本机全局安装一次 Agent Skill(Codex / Claude Code / Cursor / Antigravity 自动识别)
44
+ # 2. 一键同步内置 Agent Skills 到全局(离线、与 CLI 版本严格一致,自动覆盖 ~/.agents、~/.claude、~/.codex、~/.cursor)
45
+ featflow skills install
46
+
47
+ # 备选:也可通过 skills.sh CLI 从 GitHub 安装
40
48
  npx skills add https://github.com/daniel-style/featflow --skill featflow -g
41
49
  ```
42
50
 
@@ -63,21 +71,37 @@ featflow finish feat/oauth-pkce
63
71
  featflow init --minimal
64
72
  ```
65
73
 
74
+ 随时一条命令同步升级全局 CLI 与全局 Skills,或在未安装时通过带 scope 的包名临时执行:
75
+
76
+ ```bash
77
+ npm install -g @danielstyle/featflow@latest && featflow skills install
78
+ # 未安装时临时运行(需带 @danielstyle/ scope):
79
+ npx @danielstyle/featflow status
80
+ ```
81
+
66
82
  ### 方式 B:多人 JS/TS 项目内置锁定版本
67
83
 
68
84
  ```bash
69
85
  npm install -D @danielstyle/featflow
70
86
 
71
- # 交互式初始化向导:TTY 下带多选勾选框,手动勾选护栏模块和要安装的 Agent Hooks
87
+ # 交互式初始化向导:TTY 下带方向键单选与多选勾选框(默认复用全局 Skills,缺失时交互引导一键同步)
72
88
  npx featflow init
73
89
 
74
- # 或者一条命令直接开启全家桶(600 行代码限制 + pre-commit 兜底 + 回归守卫 + Issues 闭环 + 四大 Agent Hooks):
90
+ # 一条命令开启全家桶(600 行代码限制 + pre-commit 兜底 + 回归守卫 + Issues 闭环 + Codex 只读子代理 + 四大 Agent Hooks):
75
91
  npx featflow init --preset full --yes
76
92
 
77
- # 已有项目无损升级(保留原配置,只增量合并新 hooks / 回归账本 / 自动生成历史行数基线):
78
- npx featflow init --merge --with-all-hooks --with-regression
93
+ # 如团队希望把 .agents/skills/ 一并提交入库(新人无需全局安装 Skill),显式加上 --with-repo-skills:
94
+ npx featflow init --preset full --with-repo-skills --yes
95
+
96
+ # 已有项目无损升级(保留原配置,增量合并新 hooks / 回归账本 / 行数预算并自动生成历史行数基线):
97
+ npx featflow init --merge --with-all-hooks --with-size-budget --with-regression
98
+
99
+ # 后续升级并一键同步项目内模板、钩子与 AGENTS.md 块(若项目内置了 Skill 也会同步):
100
+ npm install -D @danielstyle/featflow@latest && npx featflow sync
79
101
  ```
80
102
 
103
+ > 提示:四大 AI Coding Agent Hooks(`.agents/hooks.json`、`.claude/settings.json`、`.codex/config.toml`、`.cursor/hooks.json`)会直接调用 `PATH` 上的 `featflow hook ...`,因此即便项目内已装 `devDependency`,也建议本机全局安装一次 `npm install -g @danielstyle/featflow`,确保所有 worktree 下无缝触发。`featflow init` 与 `featflow doctor` 会自动体检 CLI 与全局 Skill 的就绪状态。
104
+
81
105
  `featflow init` 默认会用 `<!-- FEATFLOW_START --> ... <!-- FEATFLOW_END -->` 托管块无损写入项目的 `AGENTS.md` / `CLAUDE.md`(可用 `--no-agent-docs` 跳过),后续升级可通过 `featflow sync` 一键同步。
82
106
 
83
107
  ---
@@ -107,9 +131,10 @@ main (发布分支,受保护)
107
131
  └── bob (个人长期开发分支)
108
132
  ```
109
133
 
110
- - 每个本地克隆首次执行一次:`featflow setup alice`(基于 `origin/dev` 创建/跟踪 `alice`,写入 `git config featflow.developerBranch alice`,并安全启用 hooks)。
134
+ - 每个本地克隆首次执行一次:`featflow setup alice`(自动 fetch 远端分支,若远端缺少 `origin/dev` 会交互引导创建并推送——或传 `--bootstrap-integration`——随后基于 `origin/dev` 创建/跟踪 `alice`,写入 `git config featflow.developerBranch alice`,并安全启用 hooks)。在 `developer-branch` 模式下运行 `featflow init` 也可直接联动完成此步骤。
111
135
  - 日常任务从 `alice` 分叉,命名为 `<prefix>/alice-<task>`(不要用 `alice/...`,因为 Git 不允许同名分支与命名空间前缀并存)。
112
- - `featflow finish feat/alice-oauth-pkce` 合回并推送 `alice`,清理干净的任务 worktree 与本地分支,**绝不直接改动 `dev` 或 `main`**。
136
+ - `featflow sync-dev` 可随时将最新 `origin/dev` 同步回 `alice`(默认也会在 `featflow worktree` 和 `featflow finish` 前自动执行;遇冲突自动 `git merge --abort` 安全中止,可用 `--no-sync-dev` 单次跳过或在 `.featflow.json` 的 `syncIntegration` 中配置)。
137
+ - `featflow finish feat/alice-oauth-pkce` 先同步 `origin/dev` 到 `alice`,再合并并推送 `alice`,清理干净的任务 worktree 与本地分支,**绝不直接改动 `dev` 或 `main`**。
113
138
  - 需要团队集成(`alice -> dev`)或发布(`dev -> main`)时再显式提 PR。
114
139
 
115
140
  ---
@@ -119,15 +144,17 @@ main (发布分支,受保护)
119
144
  | 命令 | 说明 |
120
145
  | --- | --- |
121
146
  | `featflow new <slug>` | 使用项目模板或 `featflow` 内置模板新建 feature(或 `--program`)记录,自动填入时间戳、`owner` 与分支;加 `--local` 存到 `.featflow/features/` 并写入 `.git/info/exclude` 实现零入侵。 |
147
+ | `featflow skills <install\|status\|uninstall>` | 直接从已安装的 `@danielstyle/featflow` 包离线安装/更新/体检全局 Agent Skills(`featflow`、`featflow-issues`、`featflow-regression`),自动同步到 `~/.agents/skills/` 及已检测的 `~/.claude/skills/`、`~/.codex/skills/`、`~/.cursor/skills/`。 |
122
148
  | `featflow hooks <install\|uninstall\|status>` | 管理 Git hooks:`--local`(默认)在 `.git/hooks/` 中无损增删托管块,保留已有自定义 hook 且不改仓库文件;`--repo` 生成入库的 `.githooks/`。 |
123
- | `featflow init` | 自动探测项目配置、无损注入 `AGENTS.md`/`CLAUDE.md` 托管块,并在 TTY 下提供方向键/空格多选勾选框让用户勾选护栏模块和四大 Agent Hooks。支持 `--preset full`(一键全家桶)、`--minimal`、`--merge`(老项目无损增量升级并自动生成历史行数基线)、`--agent-hooks <antigravity,claude-code,codex,cursor\|all\|none>` 与 `--yes`。 |
124
- | `featflow sync` | 从当前安装的 `featflow` 同步更新 Skill、模板、`.githooks/` 与 `AGENTS.md`/`CLAUDE.md` 托管块,不改动 `.featflow.json`、已有记录及托管块外的自定义文档。支持 `--check` 放进 CI 防漂移、`--only skill,templates,githooks,agent-docs` 按需同步。 |
125
- | `featflow setup [branch]` | 初始化个人开发分支(`developer-branch` 模式)并安全配置 Git hooks。 |
126
- | `featflow status` | 查看当前模式、分支状态、所有 worktree、进行中/暂停中的 feature 记录和下一步建议。 |
127
- | `featflow worktree <branch>` | 为任务分支创建独立 worktree,并自动执行 `.featflow.json` 中配置的 `postWorktreeCreate` 命令。 |
128
- | `featflow finish <branch>` | 完成并收尾任务分支(合并/推送、自动切出待删 worktree、移除干净 worktree 与本地分支)。支持 `--no-push`、`--pr`、`--dry-run`、`--keep-worktree`、`--keep-branch`。 |
149
+ | `featflow init` | 自动探测项目配置、无损注入 `AGENTS.md`/`CLAUDE.md` 托管块、体检全局 Skill 与 CLI 就绪状态,并在 TTY 下提供方向键单选与多选勾选框。默认直接复用全局 Skills(需入库可显式加 `--with-repo-skills`,非交互自动同步全局可加 `--install-global-skills`)。支持 `--preset <minimal\|standard\|full>`、`--minimal`、`--merge`、`--with-codex-agents`、`--agent-hooks <antigravity,claude-code,codex,cursor\|all\|none>` 与 `--yes`。 |
150
+ | `featflow sync` | 从当前安装的 `featflow` 同步更新项目内模板、`.githooks/`、`AGENTS.md`/`CLAUDE.md` 托管块,以及已入库(或显式 `--with-repo-skills`)的项目级 Skill,不改动 `.featflow.json`、已有记录及托管块外自定义文档。支持 `--check` 放进 CI 防漂移、`--only skill,issues-skill,regression-skill,templates,githooks,agent-docs` 按需同步。 |
151
+ | `featflow sync-dev` | 在 `developer-branch` 模式下将最新集成分支(如 `origin/dev`)安全合并回个人开发分支(支持 `--no-push`、`--abort-on-conflict`、`--dry-run`)。 |
152
+ | `featflow setup [branch]` | 初始化个人开发分支(`developer-branch` 模式)、自动 fetch 远端分支、按需引导创建缺失的集成分支(`--bootstrap-integration`)并安全配置 Git hooks。 |
153
+ | `featflow status` | 查看当前模式、分支状态、落后 `origin/dev` 提交数、所有 worktree、进行中/暂停中的 feature 记录和下一步建议。 |
154
+ | `featflow worktree <branch>` | 为任务分支创建独立 worktree(`developer-branch` 模式下默认先将 `origin/dev` 同步回个人开发分支,可用 `--no-sync-dev` 跳过),并自动执行 `.featflow.json` 中配置的 `postWorktreeCreate` 命令。 |
155
+ | `featflow finish <branch>` | 完成并收尾任务分支(`developer-branch` 模式下默认先同步 `origin/dev`,再合并/推送、自动切出待删 worktree、移除干净 worktree 与本地分支)。支持 `--no-push`、`--no-sync-dev`、`--pr`、`--dry-run`、`--keep-worktree`、`--keep-branch`。 |
129
156
  | `featflow issue <subcommand>` | 可选的 GitHub Issues 闭环 CLI(`create` / `list` / `view` / `claim` / `review` / `release` / `labels:sync`,仅在调用时依赖 `gh`)。认领前先预检本地 worktree 再改远端状态,支持通过 `.featflow.json` 的 `issues.assetsRepo` 托管截图,并可通过 `featflow init --with-issues` / `featflow sync` 同步可选 `featflow-issues` Skill。 |
130
- | `featflow size-check [options]` | 可选的多语言文件行数预算守卫(支持历史基线只减不增棘轮、`--changed`、`--update-baseline`、`--json` 及 `post-tool-use` 即时拦截),通过 `.featflow.json` 的 `fileSizeBudget` 按需启用。 |
157
+ | `featflow size-check [options]` | 可选的多语言文件行数预算守卫(支持历史基线只减不增棘轮、`--changed`、`--update-baseline`、`--json` 及 `post-tool-use` / `pre-commit` 即时拦截),通过 `.featflow.json` 的 `fileSizeBudget` 按需启用。 |
131
158
  | `featflow regression <impact\|check\|validate>` | 可选的回归守卫账本 CLI(支持 YAML/JSON 账本):按改动文件检索命中的历史 Bug 不变量、运行守卫命令或校验账本完整性,配套可选 `featflow-regression` Skill。 |
132
159
  | `featflow verify [options]` | 按改动文件匹配执行 `.featflow.json` 中的 `verifyCommands`(支持 `--all`、`--with-size`、`--with-regression`、`--dry-run`、`--json`)。 |
133
160
  | `featflow codegraph [bootstrap\|status]` | 一键初始化或同步本地 `.codegraph/codegraph.db` 索引(CI 环境或未装 CLI 时静默跳过)。 |
@@ -136,7 +163,68 @@ main (发布分支,受保护)
136
163
  | `featflow plan-check [path]` | 校验当前 active feature 记录的 `Plan Details` 章节完整度、占位符清理与审批状态。 |
137
164
  | `featflow policy <pre-commit\|pre-push>` | Git hooks 护栏:拦截保护分支直提交/直推送,以及 `enforceInPreCommit: true` 时拦截超出 `fileSizeBudget` 的暂存文件(一次性放行可用 `FEATFLOW_BOOTSTRAP=1` / `FEATFLOW_SKIP_SIZE_CHECK=1`)。 |
138
165
  | `featflow hook <antigravity\|claude-code\|codex\|cursor> <event>` | 通用 AI Coding Agent Hook 适配器,原生支持 Antigravity(`.agents/hooks.json`)、Claude Code(`.claude/settings.json`)、OpenAI Codex(`.codex/config.toml`)与 Cursor(`.cursor/hooks.json`)。 |
139
- | `featflow doctor` | 体检 Git、配置、模板、Skill、Hooks 与当前 feature 计划状态。 |
166
+ | `featflow doctor` | 体检 Git、配置、模板、Skill、托管文档、Agent/Git Hooks、CodeGraph 与当前 feature 计划状态。 |
167
+
168
+ ---
169
+
170
+ ## 配置参考(`.featflow.json`)
171
+
172
+ ```json
173
+ {
174
+ "mode": "trunk",
175
+ "remote": "origin",
176
+ "requireRemote": false,
177
+ "baseBranch": "main",
178
+ "integrationBranch": "main",
179
+ "releaseBranch": "main",
180
+ "protectedBranches": ["main"],
181
+ "finishTarget": "merge",
182
+ "developerBranchConfigKey": "featflow.developerBranch",
183
+ "worktreeParent": null,
184
+ "featuresDir": "features",
185
+ "trackFeaturesInGit": true,
186
+ "trackCurrentFeaturePointer": false,
187
+ "prefixes": ["feat", "fix", "chore", "docs", "test", "refactor", "perf", "security"],
188
+ "productPaths": ["src/", "apps/", "services/", "packages/", "lib/"],
189
+ "postWorktreeCreate": [],
190
+ "verifyCommands": {
191
+ "src/": "npm test"
192
+ },
193
+ "dangerousCommands": {
194
+ "blockDestructiveGit": true,
195
+ "blockForcePush": true,
196
+ "blockEnvWrite": true,
197
+ "blockedPackageManagers": []
198
+ },
199
+ "fileSizeBudget": {
200
+ "production": 600,
201
+ "style": 700,
202
+ "test": 900,
203
+ "extensions": [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".py", ".css"],
204
+ "ignore": [],
205
+ "baselineFile": ".featflow-size-baseline.json",
206
+ "enforceInPostToolUse": true,
207
+ "enforceInStopGate": true,
208
+ "enforceInPreCommit": true
209
+ },
210
+ "regression": {
211
+ "ledgerFile": "context/regression-ledger.yml",
212
+ "enforceInStopGate": false
213
+ },
214
+ "issues": {
215
+ "provider": "github",
216
+ "repo": null,
217
+ "assetsRepo": "owner/issue-assets",
218
+ "assetsBranch": "main",
219
+ "assetsPrefix": "assets",
220
+ "autoWorktree": true
221
+ }
222
+ }
223
+ ```
224
+
225
+ > 说明:
226
+ > - 在 `developer-branch` 模式下,`baseBranch` 与 `integrationBranch` 默认为 `"dev"`,`protectedBranches` 默认为 `["main", "dev"]`,`requireRemote` 默认为 `true`,`finishTarget` 为 `"developer-branch"`。
227
+ > - `"fileSizeBudget"`、`"regression"` 和 `"issues"` 均为**可选配置块**(默认省略),可通过 `featflow init --with-size-budget` / `--with-regression` / `--with-issues` 按需开启,或通过 `--preset full` 一键启用;其中 `issues.assetsRepo` 仅在使用 `--attach` / `--download-images` 上传或下载截图时需要配置。
140
228
 
141
229
  ---
142
230
 
@@ -147,7 +235,7 @@ main (发布分支,受保护)
147
235
  - **支持记录不入库(本地模式)**:不希望把 AI 规划文档提交进 Git 历史?运行 `featflow init --local-features` 即可将 `features/` 写入 `.gitignore`,同时保留完整的规划校验与 worktree 自动化。
148
236
  - **更精准的 `PreToolUse` 校验**:区分只读命令(`rg`、`cat`、`git diff`)与真实写操作,检测占位符前自动剥离 Markdown 代码块与行内代码避免误拦,且校验 `Pre-Implementation Approval` 非 `pending`。
149
237
  - **可扩展的 `postWorktreeCreate` 钩子**:需要在建完 worktree 后自动装依赖(如 `pnpm install --frozen-lockfile --offline`)或构建索引(如 `codegraph init`),直接配置到 `.featflow.json` 的 `postWorktreeCreate` 数组即可。
150
- - **多仓库一键同步防漂移**:在业务仓库升级 `featflow` 后运行 `featflow sync` 即可同步最新 Skill、模板与 `.githooks/`,不会覆盖项目自身的 `.featflow.json`;把 `featflow sync --check` 放进 CI 可自动防止文档/模板与 CLI 版本脱节。
238
+ - **多仓库一键同步防漂移**:在业务仓库升级 `@danielstyle/featflow` 后运行 `featflow sync` 即可同步最新 Skill(含可选 `featflow-issues` / `featflow-regression`)、模板、`.githooks/` 与 `AGENTS.md`/`CLAUDE.md` 托管块,不会覆盖项目自身的 `.featflow.json` 或托管块外自定义文档;把 `featflow sync --check` 放进 CI 可自动防止文档/模板与 CLI 版本脱节。
151
239
 
152
240
  ---
153
241
 
@@ -155,9 +243,10 @@ main (发布分支,受保护)
155
243
 
156
244
  ```bash
157
245
  npm run smoke
246
+ npm run lint:size
158
247
  npm test
159
248
  ```
160
249
 
161
250
  ## 开源协议
162
251
 
163
- [MIT](./LICENSE)
252
+ [MIT](https://github.com/daniel-style/featflow/blob/main/LICENSE)
package/bin/featflow.mjs CHANGED
@@ -19,7 +19,9 @@ import { runPrCleanup } from "../src/commands/pr-cleanup.mjs";
19
19
  import { runRegression } from "../src/commands/regression.mjs";
20
20
  import { runSetup } from "../src/commands/setup.mjs";
21
21
  import { runSizeCheck } from "../src/commands/size-check.mjs";
22
+ import { runSkills } from "../src/commands/skills.mjs";
22
23
  import { runStatus } from "../src/commands/status.mjs";
24
+ import { runSyncDev } from "../src/commands/sync-dev.mjs";
23
25
  import { runSync } from "../src/commands/sync.mjs";
24
26
  import { runVerify } from "../src/commands/verify.mjs";
25
27
  import { runWorktree } from "../src/commands/worktree.mjs";
@@ -34,9 +36,11 @@ Usage:
34
36
 
35
37
  Commands:
36
38
  new Create a feature or program record from repo or built-in template (--local for zero-footprint)
39
+ skills Install/sync/inspect global Agent Skills across Antigravity, Claude Code, Codex, and Cursor
37
40
  hooks Install/uninstall/inspect Git hooks (--local into .git/hooks/ or --repo into .githooks/)
38
41
  init Auto-detect repo config, inject AGENTS.md block, and scaffold featflow (--minimal for lightweight)
39
42
  sync Sync managed Skill, templates, .githooks, and AGENTS.md blocks (--check for CI)
43
+ sync-dev Sync integration branch (e.g. origin/dev) back into your personal developer branch
40
44
  setup Configure developer branch (if applicable) and safely enable Git hooks
41
45
  status Show workflow mode, branch/worktree state, active features, and next step
42
46
  worktree Create a typed task branch in a dedicated Git worktree
@@ -62,9 +66,12 @@ Run "featflow <command> --help" for command-specific options.
62
66
 
63
67
  const commands = {
64
68
  new: runNew,
69
+ skills: runSkills,
65
70
  hooks: runHooks,
66
71
  init: runInit,
67
72
  sync: runSync,
73
+ "sync-dev": runSyncDev,
74
+ "sync-integration": runSyncDev,
68
75
  setup: runSetup,
69
76
  status: runStatus,
70
77
  worktree: runWorktree,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielstyle/featflow",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "description": "AI-native feature workflow: Skill + CLI + Git/Agent Hooks for discovery-first planning, Git worktree isolation, GitHub Issues closed loop, and safe branch lifecycles.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -45,7 +45,8 @@
45
45
  "./hooks": "./src/hooks-core.mjs",
46
46
  "./issues": "./src/issues.mjs",
47
47
  "./size-check": "./src/size-check.mjs",
48
- "./regression": "./src/regression.mjs"
48
+ "./regression": "./src/regression.mjs",
49
+ "./skills": "./src/skills-manager.mjs"
49
50
  },
50
51
  "files": [
51
52
  "bin/",
@@ -45,8 +45,9 @@ Inspect `.featflow.json` (or run `featflow status`) to determine the repository'
45
45
  - **`developer-branch` mode (team workflow)**:
46
46
  - Protected branches: `main` (release) and `dev` (team integration).
47
47
  - Personal developer branch: stored in `git config featflow.developerBranch` (configured once via `featflow setup <name>`).
48
+ - Integration sync: `featflow sync-dev` merges the latest `origin/dev` into your personal developer branch; `featflow worktree` and `featflow finish` also auto-sync `origin/dev` into your developer branch by default (cleanly aborting with `git merge --abort` on conflicts; configurable via `.featflow.json` `syncIntegration` or skipped once with `--no-sync-dev`).
48
49
  - Task branch format: `<prefix>/<developer>-<short-kebab-title>` (e.g., `feat/alice-oauth-pkce`). Never use `<developer>/...` because Git cannot store both `<developer>` and `<developer>/...` refs simultaneously.
49
- - Finish: `featflow finish <branch>` merges into the personal developer branch, pushes it (unless `--no-push`), and removes the clean worktree and local task branch. Open `<developer> -> dev` or `dev -> main` PRs only when the user explicitly requests team integration or release promotion.
50
+ - Finish: `featflow finish <branch>` syncs `origin/dev` into the personal developer branch, merges the task branch, pushes it (unless `--no-push`), and removes the clean worktree and local task branch. Open `<developer> -> dev` or `dev -> main` PRs only when the user explicitly requests team integration or release promotion.
50
51
 
51
52
  ## Branch Prefix Policy
52
53
 
@@ -17,10 +17,8 @@ Options:
17
17
  -h, --help Show this help
18
18
 
19
19
  Environment:
20
- FEATFLOW_SKIP_CODEGRAPH=1 Skip CodeGraph bootstrap
21
- CELHIVE_SKIP_CODEGRAPH=1 Skip CodeGraph bootstrap (legacy alias)
22
- FEATFLOW_CODEGRAPH_IN_CI=1 Allow bootstrap in CI
23
- CELHIVE_CODEGRAPH_BOOTSTRAP_IN_CI=1 Allow bootstrap in CI (legacy alias)
20
+ FEATFLOW_SKIP_CODEGRAPH=1 Skip CodeGraph bootstrap
21
+ FEATFLOW_CODEGRAPH_IN_CI=1 Allow bootstrap in CI
24
22
  `.trim();
25
23
 
26
24
  function parseArgs(argv) {