Skip to content

fix: batch path substitution for custom commands and preset single-item support#26

Merged
sofq merged 2 commits intomainfrom
fix/batch-path-substitution-and-presets
Apr 15, 2026
Merged

fix: batch path substitution for custom commands and preset single-item support#26
sofq merged 2 commits intomainfrom
fix/batch-path-substitution-and-presets

Conversation

@sofq
Copy link
Copy Markdown
Owner

@sofq sofq commented Apr 15, 2026

Summary

  • Fixed batch path parameter substitution for custom commands (diff, export, workflow) — {id} was sent literally instead of being replaced with the actual value
  • Fixed workflow move schema where {targetId} placeholder didn't match the target-id flag name
  • Built-in presets now auto-detect single-item vs list responses and handle v2 API status as a string
  • Aligned docs (CLAUDE.md, SKILL.md, README.md, website/) with actual CLI flags and verb names

Test plan

  • Added 5 batch path substitution tests for diff, export, workflow comment, workflow move, and missing param validation
  • Added 6 preset tests for single-item responses (agent, brief, meta, titles) and string status handling
  • Fixed ExecuteBatchOps test helper to include custom schema ops
  • All existing tests pass
  • Verified against real Confluence Cloud account (quanhh.atlassian.net)

…em support

Custom commands (diff, export, workflow) used In:"custom" for path
parameters like {id}, causing batch to send literal {id} instead of
the actual value. Changed to In:"path" so batch substitution works.

Also fixed workflow move schema where {targetId} didn't match the
flag name target-id.

Built-in presets now auto-detect single-item vs list responses using
conditional jq (if has("results")), and use .status directly instead
of .status.current to match the v2 API response shape.

Updated ExecuteBatchOps test helper to include custom schema ops.
Added 11 tests covering batch path substitution and preset behavior
on both single-item and list responses.

Aligned docs (CLAUDE.md, SKILL.md, README.md, website/) with actual
CLI flags: --space-id not --spaceId, auto version increment, relative
raw paths, correct verb names.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sofq sofq merged commit 94e3c99 into main Apr 15, 2026
14 checks passed
@sofq sofq deleted the fix/batch-path-substitution-and-presets branch April 15, 2026 15:29
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