devflow-kit 3.2.0 → 3.3.0
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/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/dist/cli/commands/learning.js +25 -5
- package/dist/commands/code-review.md +1 -1
- package/dist/commands/debug.md +1 -1
- package/dist/commands/dynamic-build.md +141 -94
- package/dist/commands/dynamic-plan.md +1 -1
- package/dist/commands/explore.md +1 -1
- package/dist/commands/implement.md +133 -133
- package/dist/commands/resolve.md +27 -16
- package/dist/commands/self-review.md +16 -11
- package/dist/core/agent-models.js +10 -7
- package/dist/core/learning-tuning-config.js +8 -0
- package/dist/core/plugins.js +7 -2
- package/dist/skills/git/references/tracker/github/gather-release-evidence.md +1 -1
- package/dist/skills/git/references/tracker/jira/gather-release-evidence.md +1 -1
- package/dist/skills/git/references/tracker/linear/gather-release-evidence.md +1 -1
- package/package.json +1 -1
- package/src/assets/agents/code.md +71 -18
- package/src/assets/agents/design.md +10 -0
- package/src/assets/agents/diagnose.md +16 -11
- package/src/assets/agents/evaluate.md +14 -25
- package/src/assets/agents/knowledge.md +5 -3
- package/src/assets/agents/learning.md +4 -6
- package/src/assets/agents/research.md +19 -0
- package/src/assets/agents/review.md +10 -0
- package/src/assets/agents/scrutinize.md +34 -10
- package/src/assets/agents/simplify.md +20 -0
- package/src/assets/agents/skim.md +4 -2
- package/src/assets/agents/synthesize.md +12 -0
- package/src/assets/agents/test.md +2 -2
- package/src/assets/agents/triage.md +7 -1
- package/src/assets/agents/validate.md +7 -2
- package/src/assets/commands/_partials/_engine.mds +21 -24
- package/src/assets/commands/_partials/_knowledge.mds +1 -1
- package/src/assets/commands/_partials/_plan_contract.mds +1 -1
- package/src/assets/commands/_partials/_wave.mds +8 -6
- package/src/assets/commands/code-review.mds +1 -1
- package/src/assets/commands/dynamic-build.mds +111 -63
- package/src/assets/commands/implement.mds +132 -132
- package/src/assets/commands/resolve.mds +26 -15
- package/src/assets/commands/self-review.mds +15 -10
- package/src/assets/mds/tracker/_common.mds +1 -1
- package/src/assets/scripts/ci-wait.cjs +636 -0
- package/src/assets/scripts/hooks/assets/orchestrator-charter.md +1 -1
- package/src/assets/scripts/hooks/background-memory-update +290 -9
- package/src/assets/scripts/release-trace.cjs +27 -10
- package/src/assets/skills/accessibility/SKILL.md +1 -1
- package/src/assets/skills/apply-decisions/SKILL.md +12 -82
- package/src/assets/skills/apply-feature-knowledge/SKILL.md +8 -42
- package/src/assets/skills/architecture/SKILL.md +1 -1
- package/src/assets/skills/boundary-validation/SKILL.md +1 -1
- package/src/assets/skills/complexity/SKILL.md +1 -1
- package/src/assets/skills/compliance/SKILL.md +1 -1
- package/src/assets/skills/consistency/SKILL.md +1 -1
- package/src/assets/skills/database/SKILL.md +1 -1
- package/src/assets/skills/dependencies/SKILL.md +1 -1
- package/src/assets/skills/dependency-research/SKILL.md +3 -6
- package/src/assets/skills/design-review/SKILL.md +1 -1
- package/src/assets/skills/docs-framework/SKILL.md +1 -1
- package/src/assets/skills/documentation/SKILL.md +1 -1
- package/src/assets/skills/gap-analysis/SKILL.md +1 -1
- package/src/assets/skills/git/SKILL.md +1 -1
- package/src/assets/skills/go/SKILL.md +1 -1
- package/src/assets/skills/java/SKILL.md +1 -1
- package/src/assets/skills/patterns/SKILL.md +1 -1
- package/src/assets/skills/performance/SKILL.md +1 -1
- package/src/assets/skills/python/SKILL.md +1 -1
- package/src/assets/skills/qa/SKILL.md +1 -3
- package/src/assets/skills/quality-gates/SKILL.md +9 -12
- package/src/assets/skills/quality-gates/references/report-template.md +20 -20
- package/src/assets/skills/react/SKILL.md +1 -1
- package/src/assets/skills/regression/SKILL.md +1 -1
- package/src/assets/skills/reliability/SKILL.md +1 -1
- package/src/assets/skills/research-codebase/SKILL.md +1 -1
- package/src/assets/skills/research-competitor/SKILL.md +1 -1
- package/src/assets/skills/research-external/SKILL.md +1 -1
- package/src/assets/skills/research-technology/SKILL.md +1 -1
- package/src/assets/skills/review-methodology/SKILL.md +1 -1
- package/src/assets/skills/rust/SKILL.md +1 -1
- package/src/assets/skills/security/SKILL.md +1 -1
- package/src/assets/skills/software-design/SKILL.md +1 -1
- package/src/assets/skills/test-driven-development/SKILL.md +9 -29
- package/src/assets/skills/testing/SKILL.md +1 -1
- package/src/assets/skills/typescript/SKILL.md +1 -1
- package/src/assets/skills/ui-design/SKILL.md +1 -1
- package/src/assets/skills/worktree-support/SKILL.md +3 -55
- package/src/assets/skills/worktree-support/references/discovery.md +48 -0
- package/src/assets/skills/worktree-support/references/roots.md +2 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Worktree Discovery
|
|
2
|
+
|
|
3
|
+
How commands that auto-discover worktrees (`/code-review`, `/resolve`) find them, and how the count found sets the flow. The protected-branch list lives only in the skill's `## Protected Branches (Canonical List)`; this file points to it and copies none of it.
|
|
4
|
+
|
|
5
|
+
## Algorithm
|
|
6
|
+
|
|
7
|
+
### Step 1: List Worktrees
|
|
8
|
+
|
|
9
|
+
Run `git worktree list --porcelain`
|
|
10
|
+
|
|
11
|
+
### Step 2: Parse Each Entry
|
|
12
|
+
|
|
13
|
+
Extract: `worktree {path}`, `HEAD {sha}`, `branch refs/heads/{name}`
|
|
14
|
+
|
|
15
|
+
### Step 3: Filter
|
|
16
|
+
|
|
17
|
+
Exclude:
|
|
18
|
+
- **Bare worktrees** (no branch)
|
|
19
|
+
- **Detached HEAD** (no named branch; roots and detached HEAD: `roots.md`)
|
|
20
|
+
- **Protected branches**: every branch in the skill's `## Protected Branches (Canonical List)`
|
|
21
|
+
- **Mid-rebase or mid-merge**: check `git -C {path} status` for "rebase in progress" or "merging"
|
|
22
|
+
|
|
23
|
+
### Step 4: Check for Work
|
|
24
|
+
|
|
25
|
+
Each worktree must have commits ahead of base branch. Skip those that are clean/up-to-date.
|
|
26
|
+
|
|
27
|
+
### Step 5: Deduplicate
|
|
28
|
+
|
|
29
|
+
If two worktrees are on the same branch, use only the first worktree's path.
|
|
30
|
+
|
|
31
|
+
### Step 6: Sort
|
|
32
|
+
|
|
33
|
+
Sort by last commit date (most recent first).
|
|
34
|
+
|
|
35
|
+
### Step 7: Return
|
|
36
|
+
|
|
37
|
+
Return list of reviewable worktrees with path, branch, HEAD SHA.
|
|
38
|
+
|
|
39
|
+
## Multi-Worktree Mode
|
|
40
|
+
|
|
41
|
+
| Condition | Behavior |
|
|
42
|
+
|-----------|----------|
|
|
43
|
+
| 0 reviewable worktrees | Error: no reviewable branches found |
|
|
44
|
+
| 1 worktree (common case) | Single-worktree flow, zero behavior change |
|
|
45
|
+
| 2+ worktrees | Report count, process worktrees **sequentially** (one at a time) |
|
|
46
|
+
| 5+ worktrees | Report count and proceed — user manages their worktree count |
|
|
47
|
+
| `--path` flag provided | Use only that worktree, skip discovery |
|
|
48
|
+
| Same branch in 2 worktrees | Deduplicate — review once using first worktree's path |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Project Roots and Detached HEAD
|
|
2
2
|
|
|
3
|
-
Where devflow keeps per-project data across checkouts, and what it does on a detached HEAD. Companion to the worktree discovery algorithm in `
|
|
3
|
+
Where devflow keeps per-project data across checkouts, and what it does on a detached HEAD. Companion to the worktree discovery algorithm in `discovery.md`.
|
|
4
4
|
|
|
5
5
|
## Which Root Holds What
|
|
6
6
|
|
|
@@ -24,6 +24,6 @@ A detached HEAD is a commit checked out without a branch (`git checkout <sha>`,
|
|
|
24
24
|
| Surface | Behaviour |
|
|
25
25
|
|---------|-----------|
|
|
26
26
|
| Knowledge commit | Skipped: a commit there becomes unreachable once HEAD moves. The Knowledge agent reports `KB_COMMIT: skipped (detached HEAD) — uncommitted: <paths>`, and the calling workflow names those paths to the user |
|
|
27
|
-
| Worktree discovery | Excluded from auto-review (discovery Step 3 in `
|
|
27
|
+
| Worktree discovery | Excluded from auto-review (discovery Step 3 in `discovery.md`): there is no branch to review, compare or push |
|
|
28
28
|
| Memory bootstrap | The first compaction bootstraps `WORKING-MEMORY.md` stamped `branch: (detached)`, keyed on the HEAD commit; an unborn branch has no commit and still skips |
|
|
29
29
|
| Memory header | Renders `detached @ <short-sha>` instead of `on unknown` |
|