Skip to content

[codex] Refactor invoke command and app error facades#174

Merged
chuanman2707 merged 65 commits into
mainfrom
codex/invoke-command-app-error-refactor
May 23, 2026
Merged

[codex] Refactor invoke command and app error facades#174
chuanman2707 merged 65 commits into
mainfrom
codex/invoke-command-app-error-refactor

Conversation

@chuanman2707
Copy link
Copy Markdown
Owner

Summary

  • Split the appError facade into focused type, registry, normalization, formatting, and exception modules while preserving public exports.
  • Split the invokeCommand facade into command payload, idempotency, and invoke modules while keeping the wrapper contract stable.
  • Added regression coverage for facade contracts, immutable error registry constants, and the raw invoke guardrail allowlist.

Validation

  • cargo clippy --all-targets --all-features -- -D warnings
  • npm run test -- src/lib/invokeCommand.test.ts src/lib/appError.test.ts tests/frontend-invoke-wrapper-guardrails.test.ts
  • git diff --check
  • GitNexus compare against origin/main: critical risk expected for shared command/error wrappers; 35 changed symbols, 169 affected processes.

Notes

  • Branch was locally merged with origin/main before opening this PR to keep the PR diff scoped to the facade refactor.

…ntime-gating

# Conflicts:
#	mhm/src/App.tsx
#	mhm/src/pages/settings/index.tsx
#	mhm/tests/frontend-invoke-wrapper-guardrails.test.ts
…ntime-gating

# Conflicts:
#	mhm/src-tauri/src/lib.rs
#	mhm/src-tauri/src/runtime_config.rs
# Conflicts:
#	mhm/src-tauri/src/command_idempotency.rs
@chuanman2707 chuanman2707 marked this pull request as ready for review May 23, 2026 08:59
@chuanman2707 chuanman2707 merged commit fd10c6e into main May 23, 2026
4 checks passed
@chuanman2707 chuanman2707 deleted the codex/invoke-command-app-error-refactor branch May 23, 2026 08:59
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