Skip to content

PROD-2230: scope --contentIDs/--pageIDs to the workflows command - #201

Open
5PK wants to merge 1 commit into
mainfrom
fix/prod-2230-scope-workflow-only-args
Open

PROD-2230: scope --contentIDs/--pageIDs to the workflows command#201
5PK wants to merge 1 commit into
mainfrom
fix/prod-2230-scope-workflow-only-args

Conversation

@5PK

@5PK 5PK commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • pull/push/sync --help advertised --contentIDs and --pageIDs, but those commands never consumed them — only lib/workflows/workflow-operation.ts reads state.explicitContentIDs/state.explicitPageIDs. Passing them to a real sync silently did nothing, which is exactly what PROD-2230 reported (the ticket's Done status was based on --dryRun being removed; --contentIDs/--pageIDs were left behind).
  • Moved contentIDs/pageIDs out of the shared systemArgs object into a new workflowArgs object, spread only into the workflows command builder — the same scoping pattern already used to remove --dryRun from pull/push/sync.
  • No behavior change for workflows itself.

Test plan

  • npx tsc --noEmit clean
  • npx jest — 105/105 suites, 1897/1897 tests passing (6 new tests added covering the new scoping; updated the tests that asserted the old shape)
  • node dist/index.js push --help / sync --help / pull --help no longer mention --contentIDs/--pageIDs
  • node dist/index.js workflows --help still shows both, unchanged

🤖 Generated with Claude Code

pull/push/sync advertised --contentIDs and --pageIDs in --help but never
consumed them (only lib/workflows/workflow-operation.ts reads
state.explicitContentIDs/explicitPageIDs), so the flags silently had no
effect there. Split them out of the shared systemArgs into a new
workflowArgs object and spread it only into the workflows command builder,
matching how --dryRun was previously scoped out of pull/push/sync entirely.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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