bpmax-cli 0.2.1-beta.36 → 0.2.1-beta.38

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.
Files changed (28) hide show
  1. package/README.md +2 -0
  2. package/dist/bin.js +1303 -499
  3. package/dist/bin.js.map +1 -1
  4. package/package.json +1 -1
  5. package/skills/bpmax-ai-taskbook/SKILL.md +1 -0
  6. package/skills/bpmax-builder-shared/SKILL.md +1 -0
  7. package/skills/bpmax-builder-shared/configuration-impact-review.md +76 -0
  8. package/skills/bpmax-cli/SKILL.md +1 -0
  9. package/skills/bpmax-console-template-editor/SKILL.md +4 -2
  10. package/skills/bpmax-dataset-field-template-editor/SKILL.md +4 -2
  11. package/skills/bpmax-dataset-template-editor/SKILL.md +4 -1
  12. package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +7 -0
  13. package/skills/bpmax-e2e-flow-config-orchestrator/agents/openai.yaml +2 -2
  14. package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +13 -9
  15. package/skills/bpmax-e2e-flow-test-operator/SKILL.md +14 -6
  16. package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +2 -2
  17. package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +15 -0
  18. package/skills/bpmax-e2e-flow-test-operator/references/full-detail-guide.md +3 -1
  19. package/skills/bpmax-filter-template-editor/SKILL.md +4 -2
  20. package/skills/bpmax-flow-template-editor/SKILL.md +5 -1
  21. package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +17 -0
  22. package/skills/bpmax-form-template-editor/SKILL.md +5 -1
  23. package/skills/bpmax-list-template-editor/SKILL.md +5 -2
  24. package/skills/bpmax-ui-ux-audit/LICENSE.upstream +23 -0
  25. package/skills/bpmax-ui-ux-audit/SKILL.md +42 -0
  26. package/skills/bpmax-ui-ux-audit/agents/openai.yaml +4 -0
  27. package/skills/bpmax-ui-ux-audit/references/audit-framework.md +39 -0
  28. package/skills/bpmax-ui-ux-audit/references/bpmax-ux-findings.md +56 -0
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "BPMAX UI/UX Audit"
3
+ short_description: "Audit BPMAX interfaces and record UX BUGs"
4
+ default_prompt: "Use $bpmax-ui-ux-audit to audit this BPMAX journey with current-run evidence and structured UX BUG findings."
@@ -0,0 +1,39 @@
1
+ # BPMAX UX audit framework
2
+
3
+ ## Four review passes
4
+
5
+ 1. **Goal walk:** follow the functional case as the stated actor. Identify friction, ambiguity, dead ends, lost work, and unclear completion.
6
+ 2. **Framework sweep:** cite the smallest relevant named rule. Prefer Nielsen, Norman, WCAG, content design, and established behavioral laws over generic taste.
7
+ 3. **Recurring checks:** use stable labels so repeated defects are classified consistently.
8
+ 4. **Journey review:** compare pages for terminology, action placement, status visibility, progress, memory load, and recovery continuity.
9
+
10
+ ## Core heuristics
11
+
12
+ - **Nielsen:** system status, real-world language, user control, consistency, error prevention, recognition over recall, efficiency, minimalism, error recovery(错误恢复), and contextual help.
13
+ - **Norman:** discoverability, signifiers, mapping, feedback, constraints, affordances, and a coherent conceptual model.
14
+ - **WCAG:** color is not the only signal; text and controls have sufficient contrast; headings and labels are descriptive; targets are usable; errors are identified with corrective guidance; navigation/components stay consistent.
15
+ - **Behavioral laws:** apply Hick's Law to ungrouped choices, Fitts's Law to target size and distance, Miller's Law to memory load, Jakob's Law to convention drift, and Peak-End to the worst moment and final confirmation.
16
+ - **Content design:** use plain language, one term per concept, verb-first actions, honest expectations, scannable structure, and errors that say what happened and how to recover.
17
+
18
+ ## Recurring checks
19
+
20
+ | ID | Check |
21
+ |---|---|
22
+ | CTA-AMBIGUITY | The next action or its consequence is unclear. |
23
+ | DEAD-END | An empty, error, or terminal state has no recovery or exit. |
24
+ | ERROR-VAGUE | The error does not explain cause and recovery. |
25
+ | FORM-FRICTION | Labels, formats, defaults, validation, or field order add avoidable effort. |
26
+ | STATUS-BLIND | Current state, progress, save state, or completion is not visible. |
27
+ | PATTERN-DRIFT | The same concept or action changes wording, position, or behavior across pages. |
28
+ | ACCESS-FOCUS | 键盘焦点不可见、顺序异常或操作无法通过键盘完成;只有本轮交互证据才能确认。 |
29
+ | TARGET-SIZE | A control is too small or crowded for reliable activation. |
30
+ | HIERARCHY-FLAT | Primary, secondary, and dangerous actions lack visual priority. |
31
+ | RECALL-TAX | Users must remember data from an earlier surface to continue. |
32
+
33
+ ## Evidence calibration
34
+
35
+ - Static screenshots can prove visible text, hierarchy, spacing, grouping, color-only signaling, and visible states.
36
+ - Live interaction evidence is required for keyboard focus, focus order, latency, loading behavior, preserved input, error recovery, and action consequences.
37
+ - Borderline contrast requires a measurement note; do not invent a ratio.
38
+ - Illegible text is evidence of illegibility, not permission to guess the wording.
39
+ - A positive observation may be documented separately, but it is not a finding and does not offset a BUG.
@@ -0,0 +1,56 @@
1
+ # BPMAX UX finding contract
2
+
3
+ Write one `ux-findings.json` in the current `.ai_test/report/<run>/` directory:
4
+
5
+ ```json
6
+ {
7
+ "version": 1,
8
+ "run_id": "20260723-001",
9
+ "scenario_id": "expense-approval",
10
+ "audit_status": "completed",
11
+ "evaluated_surfaces": ["create form", "approval detail"],
12
+ "findings": [
13
+ {
14
+ "bug_id": "UX-BUG-001",
15
+ "classification": "BUG",
16
+ "severity": "P2",
17
+ "title": "错误提示没有恢复方法",
18
+ "surface": "create form",
19
+ "user_impact": "用户无法判断如何完成提交",
20
+ "reproduction_steps": ["打开创建页", "输入非法金额并提交"],
21
+ "heuristic_refs": ["Nielsen #9", "WCAG 3.3.3"],
22
+ "evidence": ["screenshots/C001-S002.png"],
23
+ "recommendation": "说明有效范围,并把焦点保留在错误字段",
24
+ "status": "open"
25
+ }
26
+ ]
27
+ }
28
+ ```
29
+
30
+ ## Required rules
31
+
32
+ - `version` is `1`; `audit_status` is `completed|blocked`.
33
+ - A completed audit has at least one `evaluated_surfaces` entry. An audit can complete with an empty `findings` array.
34
+ - Every finding has `classification: "BUG"`, severity `P0|P1|P2|P3`, non-empty reproduction steps, heuristic references, evidence, recommendation, and status `open|fixed|verified`.
35
+ - Evidence paths are relative to the current run, point to ordinary PNG/JSON/HTML/TXT/Markdown files, and must be registered or referenced by the current execution manifest. Directories, `ux-findings.json` self-references, stale files, and unregistered copied artifacts are invalid.
36
+ - `verified` requires a non-empty `retest_evidence` array whose registered current-run files are different from and newer than the original `evidence`. `fixed` without retest remains unresolved.
37
+ - `ux_bug_counts` counts unresolved `open|fixed` BUGs by severity. A correctly verified BUG remains in `findings` for traceability but is excluded from the active counts and outcome gate.
38
+
39
+ ## Scenario report metadata
40
+
41
+ ```text
42
+ test_design_skill: bpmax-functional-test-design
43
+ ux_audit_skill: bpmax-ui-ux-audit
44
+ ux_audit_status: completed
45
+ ux_findings: ux-findings.json
46
+ ux_bug_counts: P0=0,P1=0,P2=1,P3=0
47
+ ```
48
+
49
+ ## Severity and outcome
50
+
51
+ - Unresolved P0/P1: blocks release or materially prevents/corrupts the journey; final result is `fail`.
52
+ - Unresolved P2/P3 only: result is `pass-with-warnings`; retain evidence, remediation, and retest status.
53
+ - Zero unresolved BUGs: result may be `pass` when functional and browser gates also pass.
54
+ - Audit unavailable or incomplete: result is `partial` or `blocked`.
55
+
56
+ Run `bpmax-cli test-suite lint-report` after updating both files. The lint result must agree with `ux-findings.json`; manually written prose is not a substitute.