Skip to content

fix(cli): count workflow states/transitions from linked files#2413

Merged
kitelev merged 1 commit intomainfrom
fix/cli-workflow-counts
Mar 23, 2026
Merged

fix(cli): count workflow states/transitions from linked files#2413
kitelev merged 1 commit intomainfrom
fix/cli-workflow-counts

Conversation

@kitelev
Copy link
Owner

@kitelev kitelev commented Mar 23, 2026

Summary

Fix workflow list command to correctly count states and transitions by scanning linked .md files instead of looking for non-existent inline arrays.

Before: States/Transitions always showed 0 (looked for ems__Workflow_states array in workflow file)
After: Scans vault for ems__WorkflowState/ems__WorkflowTransition files that reference the workflow UID

Test plan

  • Pre-commit hooks pass
  • Manual test: workflow list shows correct counts for Simple Kanban Workflow (3 states, 3 transitions)

@kitelev kitelev enabled auto-merge (squash) March 23, 2026 18:25
@kitelev kitelev force-pushed the fix/cli-workflow-counts branch from e0ad704 to a177754 Compare March 23, 2026 18:30
Instead of looking for inline arrays (ems__Workflow_states) which
don't exist in our architecture, scan all .md files for
ems__WorkflowState and ems__WorkflowTransition that reference the
workflow UID via ems__WorkflowState_workflow property.
@kitelev kitelev force-pushed the fix/cli-workflow-counts branch from a177754 to 497892e Compare March 23, 2026 18:36
@kitelev kitelev merged commit 360181a into main Mar 23, 2026
20 checks passed
@kitelev kitelev deleted the fix/cli-workflow-counts branch March 23, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant