flow-workflows 0.97.1 → 0.98.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/README.md +4 -5
- package/adapters/codex/AGENTS.md +0 -1
- package/adapters/codex/CORE.md +11 -5
- package/adapters/codex/README.md +3 -6
- package/adapters/codex/skills/flow-bug-review/SKILL.md +1 -1
- package/adapters/codex/skills/flow-bug-start/SKILL.md +1 -1
- package/adapters/codex/skills/flow-doctor/SKILL.md +1 -1
- package/adapters/codex/skills/flow-feat-review/SKILL.md +1 -1
- package/adapters/codex/skills/flow-feat-ship/SKILL.md +1 -1
- package/adapters/codex/skills/flow-feat-start/SKILL.md +1 -1
- package/adapters/codex/skills/flow-init/SKILL.md +1 -1
- package/adapters/codex/skills/flow-next/SKILL.md +2 -2
- package/adapters/codex/skills/flow-work-README/SKILL.md +3 -4
- package/adapters/codex/skills/flow-work-abandon/SKILL.md +1 -1
- package/adapters/codex/skills/flow-work-clean/SKILL.md +1 -1
- package/adapters/codex/skills/flow-work-daily/SKILL.md +71 -17
- package/adapters/codex/skills/flow-work-green/SKILL.md +2 -2
- package/adapters/codex/skills/flow-work-respond/SKILL.md +3 -3
- package/adapters/codex/skills/flow-work-resume/SKILL.md +1 -1
- package/adapters/gemini/CORE.md +11 -5
- package/adapters/gemini/README.md +2 -2
- package/adapters/gemini/commands/flow/bug/review.toml +1 -1
- package/adapters/gemini/commands/flow/bug/start.toml +1 -1
- package/adapters/gemini/commands/flow/doctor.toml +1 -1
- package/adapters/gemini/commands/flow/feat/review.toml +1 -1
- package/adapters/gemini/commands/flow/feat/ship.toml +1 -1
- package/adapters/gemini/commands/flow/feat/start.toml +1 -1
- package/adapters/gemini/commands/flow/init.toml +1 -1
- package/adapters/gemini/commands/flow/next.toml +2 -2
- package/adapters/gemini/commands/flow/work/README.toml +3 -4
- package/adapters/gemini/commands/flow/work/abandon.toml +1 -1
- package/adapters/gemini/commands/flow/work/clean.toml +1 -1
- package/adapters/gemini/commands/flow/work/daily.toml +71 -17
- package/adapters/gemini/commands/flow/work/green.toml +2 -2
- package/adapters/gemini/commands/flow/work/respond.toml +3 -3
- package/adapters/gemini/commands/flow/work/resume.toml +1 -1
- package/adapters/hermes/CORE.md +11 -5
- package/adapters/hermes/README.md +1 -4
- package/adapters/hermes/skills/flow-bug-review/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-bug-start/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-doctor/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-feat-review/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-feat-ship/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-feat-start/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-init/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-next/SKILL.md +2 -2
- package/adapters/hermes/skills/flow-work-README/SKILL.md +3 -4
- package/adapters/hermes/skills/flow-work-abandon/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-work-clean/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-work-daily/SKILL.md +71 -17
- package/adapters/hermes/skills/flow-work-green/SKILL.md +2 -2
- package/adapters/hermes/skills/flow-work-respond/SKILL.md +3 -3
- package/adapters/hermes/skills/flow-work-resume/SKILL.md +1 -1
- package/adapters/opencode/CORE.md +11 -5
- package/adapters/opencode/README.md +1 -1
- package/adapters/opencode/commands/flow-bug-review.md +1 -1
- package/adapters/opencode/commands/flow-bug-start.md +1 -1
- package/adapters/opencode/commands/flow-doctor.md +1 -1
- package/adapters/opencode/commands/flow-feat-review.md +1 -1
- package/adapters/opencode/commands/flow-feat-ship.md +1 -1
- package/adapters/opencode/commands/flow-feat-start.md +1 -1
- package/adapters/opencode/commands/flow-init.md +1 -1
- package/adapters/opencode/commands/flow-next.md +2 -2
- package/adapters/opencode/commands/flow-work-README.md +3 -4
- package/adapters/opencode/commands/flow-work-abandon.md +1 -1
- package/adapters/opencode/commands/flow-work-clean.md +1 -1
- package/adapters/opencode/commands/flow-work-daily.md +71 -17
- package/adapters/opencode/commands/flow-work-green.md +2 -2
- package/adapters/opencode/commands/flow-work-respond.md +3 -3
- package/adapters/opencode/commands/flow-work-resume.md +1 -1
- package/package.json +1 -1
- package/plugins/flow/.claude-plugin/plugin.json +1 -1
- package/plugins/flow/CHANGELOG.md +37 -0
- package/plugins/flow/examples/FLOW.template.md +5 -5
- package/adapters/codex/skills/flow-work-status/SKILL.md +0 -131
- package/adapters/gemini/commands/flow/work/status.toml +0 -128
- package/adapters/hermes/skills/flow-work-status/SKILL.md +0 -131
- package/adapters/opencode/commands/flow-work-status.md +0 -129
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Summary of all open works in .claude/work/
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<!-- GENERATED by script/adapter-build.py from plugins/flow/commands/work/status.md — do not edit; change the plugin file and run the script. -->
|
|
6
|
-
|
|
7
|
-
# `/flow-work-status`
|
|
8
|
-
|
|
9
|
-
> **opencode adapter — how the Claude Code primitives named below map here.**
|
|
10
|
-
> - `AskUserQuestion` → ask in plain text with numbered options and wait for the reply.
|
|
11
|
-
> - `Agent <role>` / `Agent general-purpose` / subagents → `@<name>` declared in `agents/<name>.md` (`mode: subagent`); the name comes from `agents.<role>` in `FLOW.md`, empty → do it in this context.
|
|
12
|
-
> - Parallel fan-out → several `@name` in one prompt, capped at `agents.fanout_max` (empty → 4); `agents.fanout_tool` is Claude Code-only, ignore it.
|
|
13
|
-
> - `ScheduleWakeup` / `Monitor` / `/loop` → not available in-session: run one cycle, persist state in `monitor.md`, let the user schedule `opencode run -p "<command>"` with cron.
|
|
14
|
-
> - `TaskCreate` → a markdown checklist in the phase artifact.
|
|
15
|
-
> - `Skill commit-commands:commit-push-pr` → `git add` · `git commit` · `git push -u origin HEAD` · the `git.cli` CLI (`gh pr create` / `glab mr create`).
|
|
16
|
-
> - `/model <value>` → opencode's model picker (`/models`).
|
|
17
|
-
> - `knowledge.*` roles → whatever tools `FLOW.md` names there; an MCP tool keeps its name, its server is declared in `opencode.json` (see this adapter's `opencode.json` for the domain-memory example).
|
|
18
|
-
|
|
19
|
-
Read `~/.claude/flow/CORE.opencode.md` first (shared rules: `FLOW.md` step 0, autonomy, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session.
|
|
20
|
-
|
|
21
|
-
**Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told.
|
|
22
|
-
|
|
23
|
-
Overview of works in progress; detects divergences between artifacts and actual git state.
|
|
24
|
-
|
|
25
|
-
## 1. List works
|
|
26
|
-
|
|
27
|
-
- `ls -1 .claude/work/` (ignore `_archive`).
|
|
28
|
-
- **Then `_archive/*/meta.json` for `followups[]` alone** — entries not `declined`/`logged`/`done` (§5). Nothing else about an archived work is shown; a finished work is exactly when its deferred items stop being visible, which is the point of reading them here.
|
|
29
|
-
- Read the `meta.json` of **every** folder (named `<TICKET>-<slug>`, `<slug>` for ticket-less/local works, or just `<TICKET>` for older ones). Identify each work by `meta.json.ticket`, not by the folder name.
|
|
30
|
-
- Read `00-summary.md` per work when it exists and use it for the recap (`Next:` line, what is pending) instead of reading every artifact (flow-core §5); missing → fall back to the artifacts.
|
|
31
|
-
|
|
32
|
-
## 2. For each work, display
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
<TICKET> — <title> [feat|bug] [XS|S|M|L] ⏵ <current phase>
|
|
36
|
-
Branch: <branch> [✓ active | ⚠ not current]
|
|
37
|
-
Started: <date>
|
|
38
|
-
Updated: <date>
|
|
39
|
-
Phases done: context, design, build…
|
|
40
|
-
MR/PRs: 2/4 merged · MR/PR #3 in_progress · MR/PR #4 pending
|
|
41
|
-
Cross-repo: <meta.related_repos entries not "done", as "repo: scope"> (line only if any)
|
|
42
|
-
Follow-ups: 2 awaiting a decision · 1 accepted, not started (line only if any)
|
|
43
|
-
Cost: $0.71 measured over 2 phases · 1 phase not reported (line only if any)
|
|
44
|
-
Next: <suggested next command>
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
- "MR"/"PR" from `git.host` (`gitlab` → MR, every other host → PR); no host → "MR/PR".
|
|
48
|
-
- `Cross-repo:` only when `meta.json.related_repos` has entries not `done`: each as `<repo>: <scope>`, appending ` — contract not handed over` when that entry's `contract_handoff` is `pending`. It flags that a **sibling repo still has a pending part**; flow never scans or touches the other repo.
|
|
49
|
-
- `Follow-ups:` only when `meta.json.followups[]` has entries not `declined`/`logged`/`done` (flow-core §7): count the `proposed` ones as *awaiting a decision* and the `accepted` ones without a `work` as *accepted, not started*, naming the ticket id when there is one. `in_progress` entries are already visible as their own work — do not double-count them.
|
|
50
|
-
- `Cost:` only when `meta.json.cost[]` has entries (flow-core §4): sum the `usd` figures that are there, count the phases behind them, and count separately the entries whose `source` is `not reported`. A work with no entries shows **no line at all** — absence is not zero, and a `$0.00` under a work nobody measured is the one output that would make the block worth ignoring. The figures are the harness's own client-side estimates, not a bill; `flow cost` prints the same data phase by phase.
|
|
51
|
-
- `MR/PRs:` only when `meta.json.mrs` exists with >0 entries:
|
|
52
|
-
- Summary: `<merged>/<total> merged`.
|
|
53
|
-
- `closed` or `superseded` MR/PRs present → add to the count: `2/4 merged · 1 closed · 1 pending`.
|
|
54
|
-
- One `in_progress` → show it explicitly with its number.
|
|
55
|
-
- Any `closed`/`superseded` → list the reason (truncated to 40 chars): `MR/PR #2 closed (reviewer requested different approach)`.
|
|
56
|
-
|
|
57
|
-
### Actual progress vs estimate
|
|
58
|
-
|
|
59
|
-
**Only for the `in_progress` MR/PR and only if the branch matches the current one** (you can measure the diff). Base = `git.default_base` in FLOW.md; empty → auto-discover the repo's base branch. Calculate:
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
git diff --shortstat <base>..HEAD # lines
|
|
63
|
-
git diff --name-only <base>..HEAD | wc -l # files
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
Compare with `mrs[in_progress].lines_est` and `files_est`; show a line below `MR/PRs:`:
|
|
67
|
-
|
|
68
|
-
```
|
|
69
|
-
Current MR/PR size: 180/120 lines (150%) · 7/6 files ⚠ exceeds estimate
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Rules:
|
|
73
|
-
- lines ≤ `lines_est * 1.5` **and** files ≤ `files_est + 2` → show without warning, in grey.
|
|
74
|
-
- **Either** threshold exceeded → add `⚠ exceeds estimate` and suggest that `/flow-feat-build` applies §2.3 (the size thermometer: cut / continue / reopen).
|
|
75
|
-
- No `lines_est` in meta.json (older work) → do not show the line, do not invent an estimate.
|
|
76
|
-
|
|
77
|
-
## 3. Divergences with git
|
|
78
|
-
|
|
79
|
-
Only if the branch in meta.json **is the current one**:
|
|
80
|
-
|
|
81
|
-
- `git diff --name-only <base>...HEAD | wc -l` → files changed on the branch.
|
|
82
|
-
- Read `05-implementation.md` (features) or `04-fix.md` (bugs); extract the listed files.
|
|
83
|
-
- Files changed in git that do not appear in the log:
|
|
84
|
-
```
|
|
85
|
-
⚠ Divergence: <N> changed files not recorded in log.
|
|
86
|
-
Examples: <path>, <path>…
|
|
87
|
-
```
|
|
88
|
-
- Files in the log with no actual change in git → same.
|
|
89
|
-
|
|
90
|
-
## 4. Orphaned works
|
|
91
|
-
|
|
92
|
-
- Local branches matching the ticket pattern with no work folder (`.claude/work/<TICKET>/` or `.claude/work/<TICKET>-*/`, matched via `meta.json.ticket`/`branch`) → warn.
|
|
93
|
-
- Work folders whose branch no longer exists locally → ask whether to archive.
|
|
94
|
-
- **Residue count** (one line, no per-entry detail): worktrees registered (`git worktree list`, minus the main checkout), work folders with `phase: done` still outside `_archive/`, and prunable registrations (`git worktree prune --dry-run`). Total above a handful → `Residue: <N> worktrees · <N> unarchived done · <N> prunable → /flow-work-clean --dry-run`. This command never deletes anything — `clean` establishes the merged/open verdict and acts.
|
|
95
|
-
- Branch pattern from `git.branch_pattern` in FLOW.md; empty → branches matching `<prefix>XXXXX-*` or orphaned folders in `.claude/work/`.
|
|
96
|
-
|
|
97
|
-
## 5. Open follow-ups (live works and `_archive/`)
|
|
98
|
-
|
|
99
|
-
One block at the end, only when there is anything to show. Deferred work outlives the work that
|
|
100
|
-
deferred it, and `_archive/` is where it goes to be forgotten:
|
|
101
|
-
|
|
102
|
-
```
|
|
103
|
-
Follow-ups awaiting a decision
|
|
104
|
-
PROJ-123 F2 audit the other three callers of the same helper (archived work)
|
|
105
|
-
PROJ-140 F1 index on events.created_at — plan says full scan → PROJ-155
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
- Source: `followups[]` of every `meta.json`, live folders **and** `_archive/`, entries not
|
|
109
|
-
`declined`/`logged`/`done`. Show the originating ticket, the id, the `title`, and the created ticket when
|
|
110
|
-
`ticket` is set. Mark archived origins so it is clear the work itself is finished.
|
|
111
|
-
- `proposed` entries are listed under *awaiting a decision*; `accepted` ones without a `work` under
|
|
112
|
-
*accepted, not started*. Suggest `/flow-feat-start <ticket>` for the latter.
|
|
113
|
-
- More than about eight → show the newest five and the total. This command is read-only: it never
|
|
114
|
-
triages, creates a ticket, or edits `followups[]`. That happens once, at `ship` (flow-core §7).
|
|
115
|
-
|
|
116
|
-
## 6. Quick actions
|
|
117
|
-
|
|
118
|
-
If a work's branch matches the current one, suggest:
|
|
119
|
-
- `phase = "done"` → nothing to do; offer to archive.
|
|
120
|
-
- `phase = "abandoned"` → the folder should already be in `_archive/`; at the root → suggest moving it.
|
|
121
|
-
- An `in_progress` MR/PR waiting for merge confirmation → `/flow-feat-ship` should update the state.
|
|
122
|
-
- A `closed` MR/PR with no subsequent decision → warn so the user can decide (retry build or abandon).
|
|
123
|
-
- Otherwise → the concrete next command.
|
|
124
|
-
|
|
125
|
-
**A mid-work knowledge save lives here.** `knowledge.read_staging` is set and returns entries for the
|
|
126
|
-
current branch → offer, as one more action, to consolidate them now (flow-core §0) instead of waiting
|
|
127
|
-
for `ship` or `postmortem`. Only when there are entries, only as an option among the others, and
|
|
128
|
-
never as a question of its own: this is the last place a session that is about to end can bank what
|
|
129
|
-
it learned.
|