@1agh/maude 1.9.1 → 1.10.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 -4
- package/apps/studio/dist/client.bundle.js +1 -1
- package/cli/bin/maude.mjs +1 -0
- package/cli/commands/flow.mjs +62 -0
- package/cli/commands/help.mjs +6 -1
- package/cli/commands/init.mjs +1 -1
- package/cli/lib/cache.mjs +1 -1
- package/cli/lib/ddr-to-kgai.mjs +2 -2
- package/cli/lib/flow-usage.mjs +137 -0
- package/package.json +9 -9
- package/plugins/flow/.claude-plugin/config.schema.json +164 -8
- package/plugins/flow/README.md +18 -17
- package/plugins/flow/dependencies.json +25 -26
- package/plugins/flow/templates/ai-skeleton/INDEX.md +3 -3
- package/plugins/flow/templates/ai-skeleton/README.md +5 -5
- package/plugins/flow/templates/ai-skeleton/context/README.md +1 -1
- package/plugins/flow/templates/ai-skeleton/logs/README.md +1 -1
- package/plugins/flow/templates/ai-skeleton/plans/README.md +1 -1
- package/plugins/flow/templates/ai-skeleton/reviews/README.md +2 -2
- package/plugins/flow/templates/ai-skeleton/scenario-guide.md +4 -4
- package/plugins/flow/templates/ai-skeleton/scenarios/README.md +2 -2
- package/plugins/flow/templates/ai-skeleton/templates/HANDOFF.md +1 -1
|
@@ -33,9 +33,26 @@
|
|
|
33
33
|
"linux": "apt-get install -y git || dnf install -y git"
|
|
34
34
|
},
|
|
35
35
|
"autoInstall": false,
|
|
36
|
-
"usedBy": ["commands/init.md", "commands/done.md", "commands/
|
|
36
|
+
"usedBy": ["commands/init.md", "commands/done.md", "commands/execute.md"],
|
|
37
37
|
"docsUrl": "https://git-scm.com"
|
|
38
38
|
},
|
|
39
|
+
{
|
|
40
|
+
"id": "claude",
|
|
41
|
+
"type": "cli",
|
|
42
|
+
"hardness": "soft",
|
|
43
|
+
"check": {
|
|
44
|
+
"command": "claude --version",
|
|
45
|
+
"expectExit": 0,
|
|
46
|
+
"minVersion": "2.1.280"
|
|
47
|
+
},
|
|
48
|
+
"install": {
|
|
49
|
+
"preferred": "https://docs.anthropic.com/en/docs/claude-code"
|
|
50
|
+
},
|
|
51
|
+
"autoInstall": false,
|
|
52
|
+
"fallbackBehavior": "/flow:run hooks need Claude Code 2.1.280+ (SubagentStart/SubagentStop/Stop plugin hooks, agent model/effort frontmatter). Older versions and Codex run every flow command without them.",
|
|
53
|
+
"usedBy": ["commands/run.md", "hooks/hooks.json"],
|
|
54
|
+
"docsUrl": "https://docs.anthropic.com/en/docs/claude-code"
|
|
55
|
+
},
|
|
39
56
|
{
|
|
40
57
|
"id": "maude",
|
|
41
58
|
"type": "cli",
|
|
@@ -64,11 +81,9 @@
|
|
|
64
81
|
"preferred": "npm i -g @anthropic-ai/agent-browser"
|
|
65
82
|
},
|
|
66
83
|
"autoInstall": true,
|
|
67
|
-
"fallbackBehavior": "/flow:scenario and a11y-auditor degrade to screenshot-less reports. Web scenarios cannot run.",
|
|
84
|
+
"fallbackBehavior": "/flow:validate --scenario and a11y-auditor degrade to screenshot-less reports. Web scenarios cannot run.",
|
|
68
85
|
"usedBy": [
|
|
69
|
-
"commands/scenario.md",
|
|
70
86
|
"commands/validate.md",
|
|
71
|
-
"commands/utils-verify.md",
|
|
72
87
|
"agents/scenario-runner.md",
|
|
73
88
|
"agents/a11y-auditor.md",
|
|
74
89
|
"skills/agent-browser/SKILL.md"
|
|
@@ -87,11 +102,11 @@
|
|
|
87
102
|
"preferred": "Requires Xcode + Android SDK. See agent-device docs."
|
|
88
103
|
},
|
|
89
104
|
"autoInstall": false,
|
|
90
|
-
"fallbackBehavior": "/flow:scenario skips native (iOS/Android) variants. Web variants still run via agent-browser.",
|
|
105
|
+
"fallbackBehavior": "/flow:validate --scenario skips native (iOS/Android) variants. Web variants still run via agent-browser.",
|
|
91
106
|
"usedBy": [
|
|
92
|
-
"commands/scenario.md",
|
|
93
107
|
"agents/scenario-runner.md",
|
|
94
|
-
"skills/agent-device/SKILL.md"
|
|
108
|
+
"skills/agent-device/SKILL.md",
|
|
109
|
+
"commands/validate.md"
|
|
95
110
|
],
|
|
96
111
|
"docsUrl": "https://github.com/anthropics/agent-device"
|
|
97
112
|
},
|
|
@@ -109,7 +124,7 @@
|
|
|
109
124
|
},
|
|
110
125
|
"autoInstall": false,
|
|
111
126
|
"fallbackBehavior": "flow/design fall back to the classic .ai/decisions/ + STATE.md file path (no regression). The kgai knowledge-graph backend (kg context/ingest/sync, cross-repo company memory) is inactive.",
|
|
112
|
-
"usedBy": ["skills/kgai-backend/SKILL.md", "commands/
|
|
127
|
+
"usedBy": ["skills/kgai-backend/SKILL.md", "commands/init.md"],
|
|
113
128
|
"docsUrl": "https://github.com/kgaidev/kgai"
|
|
114
129
|
},
|
|
115
130
|
{
|
|
@@ -126,13 +141,8 @@
|
|
|
126
141
|
"win32": "winget install jqlang.jq"
|
|
127
142
|
},
|
|
128
143
|
"autoInstall": false,
|
|
129
|
-
"fallbackBehavior": "Slash commands' bash blocks that read .ai/workflows.config.json via jq cannot run. /flow:validate and
|
|
130
|
-
"usedBy": [
|
|
131
|
-
"commands/validate.md",
|
|
132
|
-
"commands/utils-verify.md",
|
|
133
|
-
"commands/quick.md",
|
|
134
|
-
"commands/done.md"
|
|
135
|
-
]
|
|
144
|
+
"fallbackBehavior": "Slash commands' bash blocks that read .ai/workflows.config.json via jq cannot run. /flow:validate (and its --fast lane) quality gates need this.",
|
|
145
|
+
"usedBy": ["commands/validate.md", "commands/done.md", "commands/execute.md"]
|
|
136
146
|
},
|
|
137
147
|
{
|
|
138
148
|
"id": "askuserquestion-mcp",
|
|
@@ -144,17 +154,6 @@
|
|
|
144
154
|
},
|
|
145
155
|
"fallbackBehavior": "Question prompts fall back to numbered-prose chat. No multi-select UI.",
|
|
146
156
|
"usedBy": ["skills/question-protocol/SKILL.md"]
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"id": "terminal-skills-mcp",
|
|
150
|
-
"type": "mcp",
|
|
151
|
-
"hardness": "soft",
|
|
152
|
-
"check": {
|
|
153
|
-
"mcp": "terminal-skills",
|
|
154
|
-
"tool": "search_skills"
|
|
155
|
-
},
|
|
156
|
-
"fallbackBehavior": "skill-loader falls back to built-in plugin skills → matching agents → WebFetch on library docs.",
|
|
157
|
-
"usedBy": ["skills/skill-loader/SKILL.md"]
|
|
158
157
|
}
|
|
159
158
|
]
|
|
160
159
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `.ai/` — Index
|
|
2
2
|
|
|
3
|
-
> Second-brain map. Auto-maintained by `/flow:status` and `/flow:
|
|
3
|
+
> Second-brain map. Auto-maintained by `/flow:run --status` and `/flow:init --context`. Hand-edit additions are welcome.
|
|
4
4
|
|
|
5
5
|
## Identity
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
## Active work
|
|
14
14
|
|
|
15
|
-
> Updated by `/flow:status`. The single most useful screen for "where am I?".
|
|
15
|
+
> Updated by `/flow:run --status`. The single most useful screen for "where am I?".
|
|
16
16
|
|
|
17
17
|
- current phase: see `state/STATE.md`
|
|
18
18
|
- active plan: see `state/STATE.md` → Active plan
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
> Most recent run per scenario. Drill into `scenarios/<id>/` for the full history.
|
|
36
36
|
|
|
37
|
-
- (none yet — run with `/flow:scenario <flow>`)
|
|
37
|
+
- (none yet — run with `/flow:validate --scenario <flow>`)
|
|
38
38
|
|
|
39
39
|
## Where to find things
|
|
40
40
|
|
|
@@ -6,16 +6,16 @@ This folder is your project's persistent memory for the `flow` plugin. Plans, de
|
|
|
6
6
|
|
|
7
7
|
| Folder | Owner command | Purpose |
|
|
8
8
|
| ------ | ------------- | ------- |
|
|
9
|
-
| `state/` | `/flow:
|
|
9
|
+
| `state/` | `/flow:run` | Single source of truth for current workflow phase. `STATE.md` is durable; `HANDOFF.md` is transient (created by `/flow:run --pause`, deleted by `--resume`). |
|
|
10
10
|
| `plans/` | `/flow:plan`, `/flow:execute` | Feature plans with task lists. `archive/` holds completed plans. |
|
|
11
11
|
| `decisions/` | `/flow:record-ddr` | Design Decision Records. Append-only, numbered, never deleted. |
|
|
12
|
-
| `reviews/` | `/flow:review
|
|
13
|
-
| `scenarios/` | `/flow:scenario` | Cross-platform UI scenario specs + per-run report folders (screenshots, evidence). `_lib/` holds shared helpers. |
|
|
14
|
-
| `logs/` | `/flow:validate`,
|
|
12
|
+
| `reviews/` | `/flow:validate --review`, `/flow:done` | Code review snapshots and retrospective notes from completed work. |
|
|
13
|
+
| `scenarios/` | `/flow:validate --scenario` | Cross-platform UI scenario specs + per-run report folders (screenshots, evidence). `_lib/` holds shared helpers. |
|
|
14
|
+
| `logs/` | `/flow:validate`, `maude doctor` | System-level audit logs (validation runs, infrastructure reviews). |
|
|
15
15
|
| `dev-logs/` | manual | Dev journal — free-form notes, links, scratchpad. Optional. |
|
|
16
16
|
| `browser/` | `agent-browser` skill | Web automation evidence — DOM snapshots, HAR captures. |
|
|
17
17
|
| `device/` | `agent-device` skill | Native device automation evidence — accessibility snapshots, screenshots, traces. |
|
|
18
|
-
| `context/` | `/flow:
|
|
18
|
+
| `context/` | `/flow:init --map`, `/flow:init --context` | Living snapshots of codebase architecture (auto-generated, refresh periodically). |
|
|
19
19
|
| `business/` | manual | Domain knowledge, glossary, stakeholders, personas. Hand-curated. |
|
|
20
20
|
| `docs/` | manual | Internal design docs, patterns, ADR-adjacent prose. |
|
|
21
21
|
| `design-import/` | `/design:handoff` (design plugin) | Canvas artifacts in transit from `.design/` to production code. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Context
|
|
2
2
|
|
|
3
|
-
Living snapshots of the codebase architecture. Generated by `/flow:
|
|
3
|
+
Living snapshots of the codebase architecture. Generated by `/flow:init --map`; consumed by `/flow:plan`, `/flow:init --context`, and subagents.
|
|
4
4
|
|
|
5
5
|
## Key files
|
|
6
6
|
|
|
@@ -11,6 +11,6 @@ Feature implementation plans. One file per feature, slug as filename (e.g. `onbo
|
|
|
11
11
|
## Conventions
|
|
12
12
|
|
|
13
13
|
- **Front matter:** `name`, `status` (`proposed | active | done | archived`), `created`, `decisions` (DDR IDs).
|
|
14
|
-
- **Task IDs:** `T1, T2, …` so `/flow:resume` can re-enter mid-flow.
|
|
14
|
+
- **Task IDs:** `T1, T2, …` so `/flow:run --resume` can re-enter mid-flow.
|
|
15
15
|
- **Cross-links:** plan links to the PRD section it implements and to DDRs it depends on.
|
|
16
16
|
- **Archive on `/flow:done`,** not on completion of the last task — `archive/` means "shipped, link permanent."
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Reviews
|
|
2
2
|
|
|
3
|
-
Code-review snapshots and retrospectives. Output of `/flow:review
|
|
3
|
+
Code-review snapshots and retrospectives. Output of `/flow:validate --review` and `/flow:done`.
|
|
4
4
|
|
|
5
5
|
## File naming
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ Code-review snapshots and retrospectives. Output of `/flow:review-code` and `/fl
|
|
|
9
9
|
|
|
10
10
|
## What goes here
|
|
11
11
|
|
|
12
|
-
- Findings from pre-commit `/flow:review
|
|
12
|
+
- Findings from pre-commit `/flow:validate --review` (verdicts, suggestions, follow-ups).
|
|
13
13
|
- Retro notes after `/flow:done` — what worked, what didn't, what to change in the workflow loop itself.
|
|
14
14
|
|
|
15
15
|
These are durable. Don't truncate; later retros benefit from older patterns.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Scenario Guide — PROJECT_NAME
|
|
2
2
|
|
|
3
|
-
> Read by
|
|
3
|
+
> Read by `/flow:validate --scenario` (skill + `scenario-runner` agent) before running or authoring a scenario. This file documents ONLY where this project's scenario testing diverges from `/flow:validate --scenario`'s generic protocol — device/platform matrix, selector strategy, report shape, speed levers. An absent or empty file is valid: `/flow:validate --scenario` runs its documented defaults with no changes. Delete any section below that doesn't apply to this project; don't fill a section with a generic restatement of the default behavior.
|
|
4
4
|
|
|
5
5
|
## Device / platform lifecycle
|
|
6
6
|
|
|
@@ -16,13 +16,13 @@ _Not yet documented — using the generic default (no project-specific reset ste
|
|
|
16
16
|
|
|
17
17
|
## Selector strategy overrides
|
|
18
18
|
|
|
19
|
-
>
|
|
19
|
+
> `/flow:validate --scenario`'s default selector reach-order is: stable locator (testID / `data-testid`) → accessible name/text → vision-based check (advisory only, never gates a pass/fail). Document here only if this project's locator convention deviates — e.g. a different testID naming scheme, a platform where accessible-name lookup is unreliable, or an additional locator tier.
|
|
20
20
|
|
|
21
21
|
_Not yet documented — using the generic default._
|
|
22
22
|
|
|
23
23
|
## Infra-error classification overrides
|
|
24
24
|
|
|
25
|
-
>
|
|
25
|
+
> `/flow:validate --scenario`'s default treats environment/flake failures (device boot timeout, network blip, stale simulator state) as distinct from real product regressions, so they don't count as blockers. If this project binds that convention to a specific exit code or detection rule, document it here.
|
|
26
26
|
|
|
27
27
|
_Not yet documented — using the generic default._
|
|
28
28
|
|
|
@@ -34,6 +34,6 @@ _None recorded yet._
|
|
|
34
34
|
|
|
35
35
|
## Scenario-authoring notes
|
|
36
36
|
|
|
37
|
-
> Anything specific to how new scenarios should be authored for this project beyond
|
|
37
|
+
> Anything specific to how new scenarios should be authored for this project beyond `/flow:validate --scenario`'s default collaborative loop (announce → act → screenshot → co-design asserts with the user → stop, one step at a time). E.g. project-specific `--save-script` conventions, or app areas that need special care when picking assertions.
|
|
38
38
|
|
|
39
39
|
_Not yet documented — using the generic default._
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Cross-platform UI scenarios. One folder per scenario; per-run reports inside.
|
|
4
4
|
|
|
5
|
-
> This file documents the **directory layout** convention for individual scenarios. For *behavioral* deltas from
|
|
5
|
+
> This file documents the **directory layout** convention for individual scenarios. For *behavioral* deltas from `/flow:validate --scenario`'s generic protocol (device lifecycle, selector conventions, infra-error classification, platform gotchas), see `../scenario-guide.md` instead — the two files have distinct scopes and shouldn't be merged.
|
|
6
6
|
|
|
7
7
|
## Layout
|
|
8
8
|
|
|
@@ -27,4 +27,4 @@ scenarios/
|
|
|
27
27
|
- **Report format:** owned by the `scenario` skill — `maude scenario-report <run-dir>` generates the mechanical tables; the LLM authors only the prose sections.
|
|
28
28
|
- **`covers.json`** (optional): declares the source globs the scenario exercises, split into `web` / `native` / `shared` git pathspecs. Enables the route-aware skip (re-run only when covered files changed) and the web-only scope skip (no sim boot for web-only diffs). Example: `{"web":["app/(video)/**"],"native":["expo-app/**"],"shared":["packages/api-client/**"]}`. Absent → the scenario always runs the full platform matrix.
|
|
29
29
|
|
|
30
|
-
Run with `/flow:scenario <slug>` (registered scenarios) or `/flow:scenario <ad-hoc description>` (one-off).
|
|
30
|
+
Run with `/flow:validate --scenario <slug>` (registered scenarios) or `/flow:validate --scenario <ad-hoc description>` (one-off).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# HANDOFF
|
|
2
2
|
|
|
3
|
-
> Transient file. Created on `/flow:pause`, removed on `/flow:resume`. Do not commit standalone.
|
|
3
|
+
> Transient file. Created on `/flow:run --pause`, removed on `/flow:run --resume`. Do not commit standalone.
|
|
4
4
|
|
|
5
5
|
**Created:** YYYY-MM-DD HH:MM
|
|
6
6
|
**Reason:** <why paused — end of session, context switch, blocker>
|