Repository navigation
refactor(cli): share native emit target dispatch #572
Description
Activity
- addedtriage:bad-codeDebt intake that still needs scheduling, closure, or a repo moveDebt intake that still needs scheduling, closure, or a repo movelegend:RUNTIMERuntime/tooling/host/operator flow workRuntime/tooling/host/operator flow work
on Jun 4, 2026 🔗 Related PRs
#521 - Add Rust IR performance baseline [merged]
#526 - feat: add rust-native doctor command [merged]
#534 - Validate strict weslaw bindings [merged]
#618 - feat: LE binary Rust codec emitter (le-binary-rust) + output-object codecs [merged]
#686 - docs: add plain Wesley onboarding path [merged]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.- Create Plan
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:issue_enrichment: auto_enrich: enabled: false
💬 Have feedback or questions? Drop into our discord!
Triage decision: keep this in Wesley and move it out of the inbox into
lane:v0.4.0/Goalpost: Make It Boring.Rationale: Duplicate emit-target handler plumbing is concrete CLI maintainability debt in Wesley itself.
This is scheduled core Wesley work now, not an inbox item. The triage label is being removed as part of this state change.
- addedv0.4.0Scheduled work for the v0.4.0 release.Scheduled work for the v0.4.0 release.and removedtriage:bad-codeDebt intake that still needs scheduling, closure, or a repo moveDebt intake that still needs scheduling, closure, or a repo move
on Jun 25, 2026 - changed the title
[-]`wesley emit <target>` handlers are copy-paste[/-][+]refactor(cli): share native emit target dispatch[/+]on Jul 6, 2026 - addedenhancementNew feature or requestNew feature or request
on Jul 6, 2026
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsTodo
Rust-native audit disposition
Kept and rewritten as current Rust CLI refactoring work.
crates/wesley-cli/src/main.rsstill handles each native emit target with similar match-arm flow: parse options, read schema, lower to IR, collect operations, optionally load law data, call the target emitter, write output, and write metadata.Current task
Introduce a small shared dispatch layer for native emit targets so adding or changing a target does not require copy-paste across command handling and help text.
Current targets include:
emit rustemit typescriptemit le-binary-rustemit le-binary-typescriptAcceptance criteria
Out of scope